ocean-brain 0.2.1 → 0.3.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/dist/index.js +73 -41
- package/dist/mcp.js +587 -26
- package/package.json +6 -1
- package/scripts/postinstall-prisma.mjs +41 -0
- package/server/client/dist/assets/Calendar-DRv2aEl8.js +28 -0
- package/server/client/dist/assets/Callout-B2kPcDrq.js +1 -0
- package/server/client/dist/assets/Graph-DotbTrZR.js +1 -0
- package/server/client/dist/assets/Image-B5R7gF2P.js +1 -0
- package/server/client/dist/assets/Image.es-Dld9r9MJ.js +1 -0
- package/server/client/dist/assets/ModalActionRow-CES9L_Gy.js +1 -0
- package/server/client/dist/assets/Note-SK4hDhEM.css +1 -0
- package/server/client/dist/assets/Note-cIbXJc1v.js +1 -0
- package/server/client/dist/assets/Reminders-4LunlZRb.js +1 -0
- package/server/client/dist/assets/Search-Cp17DGR6.js +1 -0
- package/server/client/dist/assets/SurfaceCard-yzVU4Qkx.js +1 -0
- package/server/client/dist/assets/Tag-CwmuMPmo.js +1 -0
- package/server/client/dist/assets/TagNotes-gGroWMtT.js +1 -0
- package/server/client/dist/assets/Trash.es-B3KWD8_C.js +1 -0
- package/server/client/dist/assets/color-wpu7wT_s.js +1 -0
- package/server/client/dist/assets/graph-vendor-CUxe67Lr.js +46 -0
- package/server/client/dist/assets/image.api-DJgOBt8S.js +17 -0
- package/server/client/dist/assets/index-40Y2UsVr.js +205 -0
- package/server/client/dist/assets/index-BnxpTwtL.css +1 -0
- package/server/client/dist/assets/index-DYUg2N-6.js +1 -0
- package/server/client/dist/assets/manage-image-ByY1mRZx.js +1 -0
- package/server/client/dist/assets/manage-image-detail-BVaDZHRu.js +1 -0
- package/server/client/dist/assets/mcp-Jj3061aI.js +1 -0
- package/server/client/dist/assets/{note-core-DTIu0anW.js → note-core-BCgMq5QA.js} +7 -7
- package/server/client/dist/assets/note-vendor-BofYbzmZ.js +54 -0
- package/server/client/dist/assets/placeholder-4P_GK7fV.js +34 -0
- package/server/client/dist/assets/trash-CPBwY07S.js +1 -0
- package/server/client/dist/assets/useReminderMutate-1YVndM2T.js +82 -0
- package/server/client/dist/index.html +5 -4
- package/server/dist/app.js +97 -9
- package/server/dist/app.js.map +1 -1
- package/server/dist/main.js +16 -2
- package/server/dist/main.js.map +1 -1
- package/server/dist/modules/auth-guard.js +73 -0
- package/server/dist/modules/auth-guard.js.map +1 -0
- package/server/dist/modules/auth-mode.js +51 -0
- package/server/dist/modules/auth-mode.js.map +1 -0
- package/server/dist/modules/auth.js +9 -0
- package/server/dist/modules/auth.js.map +1 -1
- package/server/dist/modules/blocknote.js +7 -1
- package/server/dist/modules/blocknote.js.map +1 -1
- package/server/dist/modules/error-handler.js +41 -0
- package/server/dist/modules/error-handler.js.map +1 -0
- package/server/dist/modules/image-upload.js +114 -0
- package/server/dist/modules/image-upload.js.map +1 -0
- package/server/dist/modules/mcp-admin.js +88 -0
- package/server/dist/modules/mcp-admin.js.map +1 -0
- package/server/dist/modules/mcp-auth.js +71 -0
- package/server/dist/modules/mcp-auth.js.map +1 -0
- package/server/dist/modules/mcp-token.js +28 -0
- package/server/dist/modules/mcp-token.js.map +1 -0
- package/server/dist/modules/note-authoring.js +140 -0
- package/server/dist/modules/note-authoring.js.map +1 -0
- package/server/dist/modules/note-cleanup.js +207 -0
- package/server/dist/modules/note-cleanup.js.map +1 -0
- package/server/dist/modules/note-snapshot.js +223 -0
- package/server/dist/modules/note-snapshot.js.map +1 -0
- package/server/dist/modules/note-trash.js +262 -0
- package/server/dist/modules/note-trash.js.map +1 -0
- package/server/dist/modules/prisma-runtime.js +46 -0
- package/server/dist/modules/prisma-runtime.js.map +1 -0
- package/server/dist/modules/recovery-retention.js +26 -0
- package/server/dist/modules/recovery-retention.js.map +1 -0
- package/server/dist/modules/remote-image.js +176 -0
- package/server/dist/modules/remote-image.js.map +1 -0
- package/server/dist/modules/tag-organization.js +66 -0
- package/server/dist/modules/tag-organization.js.map +1 -0
- package/server/dist/modules/use-async.js +2 -4
- package/server/dist/modules/use-async.js.map +1 -1
- package/server/dist/schema/note/index.js +150 -6
- package/server/dist/schema/note/index.js.map +1 -1
- package/server/dist/start.js +11 -0
- package/server/dist/start.js.map +1 -0
- package/server/dist/types/index.js.map +1 -1
- package/server/dist/urls.js +3 -2
- package/server/dist/urls.js.map +1 -1
- package/server/dist/views/auth.js +305 -0
- package/server/dist/views/auth.js.map +1 -0
- package/server/dist/views/image.js +24 -81
- package/server/dist/views/image.js.map +1 -1
- package/server/dist/views/index.js +4 -0
- package/server/dist/views/index.js.map +1 -1
- package/server/dist/views/mcp-admin.js +42 -0
- package/server/dist/views/mcp-admin.js.map +1 -0
- package/server/dist/views/note.js +124 -0
- package/server/dist/views/note.js.map +1 -0
- package/server/dist/views/tag.js +23 -0
- package/server/dist/views/tag.js.map +1 -0
- package/server/prisma/migrations/20260331183000_0010_note_snapshot/migration.sql +13 -0
- package/server/prisma/migrations/20260331195000_0011_note_trash_entities/migration.sql +35 -0
- package/server/prisma/migrations/20260331213000_0012_image_hash_unique/migration.sql +49 -0
- package/server/prisma/migrations/20260404000000_0013_mcp_admin_control/migration.sql +9 -0
- package/server/prisma/schema.prisma +66 -1
- package/server/client/dist/assets/index-BJgBFWwL.css +0 -1
- package/server/client/dist/assets/index-DvNRv9YC.js +0 -391
- package/server/client/dist/assets/note-vendor-CUVHa9LU.js +0 -54
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import{g as Ud,a as aS,f as rS,P as iS,b as sS,y as cS,c as uS,d as Md,D as $f,e as fS,M as dS,m as mS,h as pS,H as hS,N as gS,i as vS,j as yS,w as kg,k as bS,K as xS,l as SS,C as CS,x as wS,n as ES,o as gt,R as b0,L as TS,A as MS,B as RS,_ as ho,p as Bt,q as xs,r as Nr,s as _S,t as Sl,u as Je,v as Ps,S as Ar,T as jS,z as Xs,E as Zn,I as Rd,F as Bg,G as OS,J as NS,O as x0,Q as S0,U as C0,V as AS,W as HS,X as Hr,Y as DS,Z as zS,$ as LS,a0 as VS,a1 as Me,a2 as _d}from"./note-core-DTIu0anW.js";function kS(t,o){for(var a=0;a<o.length;a++){const r=o[a];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(r,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Gf={exports:{}},Er={};var Ug;function BS(){if(Ug)return Er;Ug=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 Er.Fragment=o,Er.jsx=a,Er.jsxs=a,Er}var $g;function US(){return $g||($g=1,Gf.exports=BS()),Gf.exports}var g=US(),Zf={exports:{}},Ce={};var Gg;function $S(){if(Gg)return Ce;Gg=1;var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function C(_){return _===null||typeof _!="object"?null:(_=x&&_[x]||_["@@iterator"],typeof _=="function"?_:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,M={};function R(_,$,F){this.props=_,this.context=$,this.refs=M,this.updater=F||E}R.prototype.isReactComponent={},R.prototype.setState=function(_,$){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,$,"setState")},R.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function O(){}O.prototype=R.prototype;function A(_,$,F){this.props=_,this.context=$,this.refs=M,this.updater=F||E}var H=A.prototype=new O;H.constructor=A,w(H,R.prototype),H.isPureReactComponent=!0;var z=Array.isArray;function k(){}var V={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function W(_,$,F){var ae=F.ref;return{$$typeof:t,type:_,key:$,ref:ae!==void 0?ae:null,props:F}}function Q(_,$){return W(_.type,$,_.props)}function oe(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function ie(_){var $={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(F){return $[F]})}var le=/\/+/g;function G(_,$){return typeof _=="object"&&_!==null&&_.key!=null?ie(""+_.key):$.toString(36)}function re(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(k,k):(_.status="pending",_.then(function($){_.status==="pending"&&(_.status="fulfilled",_.value=$)},function($){_.status==="pending"&&(_.status="rejected",_.reason=$)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function D(_,$,F,ae,se){var ue=typeof _;(ue==="undefined"||ue==="boolean")&&(_=null);var ve=!1;if(_===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(_.$$typeof){case t:case o:ve=!0;break;case v:return ve=_._init,D(ve(_._payload),$,F,ae,se)}}if(ve)return se=se(_),ve=ae===""?"."+G(_,0):ae,z(se)?(F="",ve!=null&&(F=ve.replace(le,"$&/")+"/"),D(se,$,F,"",function(We){return We})):se!=null&&(oe(se)&&(se=Q(se,F+(se.key==null||_&&_.key===se.key?"":(""+se.key).replace(le,"$&/")+"/")+ve)),$.push(se)),1;ve=0;var Se=ae===""?".":ae+":";if(z(_))for(var me=0;me<_.length;me++)ae=_[me],ue=Se+G(ae,me),ve+=D(ae,$,F,ue,se);else if(me=C(_),typeof me=="function")for(_=me.call(_),me=0;!(ae=_.next()).done;)ae=ae.value,ue=Se+G(ae,me++),ve+=D(ae,$,F,ue,se);else if(ue==="object"){if(typeof _.then=="function")return D(re(_),$,F,ae,se);throw $=String(_),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return ve}function B(_,$,F){if(_==null)return _;var ae=[],se=0;return D(_,ae,"","",function(ue){return $.call(F,ue,se++)}),ae}function U(_){if(_._status===-1){var $=_._result;$=$(),$.then(function(F){(_._status===0||_._status===-1)&&(_._status=1,_._result=F)},function(F){(_._status===0||_._status===-1)&&(_._status=2,_._result=F)}),_._status===-1&&(_._status=0,_._result=$)}if(_._status===1)return _._result.default;throw _._result}var ee=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},ne={map:B,forEach:function(_,$,F){B(_,function(){$.apply(this,arguments)},F)},count:function(_){var $=0;return B(_,function(){$++}),$},toArray:function(_){return B(_,function($){return $})||[]},only:function(_){if(!oe(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ce.Activity=y,Ce.Children=ne,Ce.Component=R,Ce.Fragment=a,Ce.Profiler=s,Ce.PureComponent=A,Ce.StrictMode=r,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(_){return V.H.useMemoCache(_)}},Ce.cache=function(_){return function(){return _.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(_,$,F){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var ae=w({},_.props),se=_.key;if($!=null)for(ue in $.key!==void 0&&(se=""+$.key),$)!J.call($,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&$.ref===void 0||(ae[ue]=$[ue]);var ue=arguments.length-2;if(ue===1)ae.children=F;else if(1<ue){for(var ve=Array(ue),Se=0;Se<ue;Se++)ve[Se]=arguments[Se+2];ae.children=ve}return W(_.type,se,ae)},Ce.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:c,_context:_},_},Ce.createElement=function(_,$,F){var ae,se={},ue=null;if($!=null)for(ae in $.key!==void 0&&(ue=""+$.key),$)J.call($,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(se[ae]=$[ae]);var ve=arguments.length-2;if(ve===1)se.children=F;else if(1<ve){for(var Se=Array(ve),me=0;me<ve;me++)Se[me]=arguments[me+2];se.children=Se}if(_&&_.defaultProps)for(ae in ve=_.defaultProps,ve)se[ae]===void 0&&(se[ae]=ve[ae]);return W(_,ue,se)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(_){return{$$typeof:d,render:_}},Ce.isValidElement=oe,Ce.lazy=function(_){return{$$typeof:v,_payload:{_status:-1,_result:_},_init:U}},Ce.memo=function(_,$){return{$$typeof:h,type:_,compare:$===void 0?null:$}},Ce.startTransition=function(_){var $=V.T,F={};V.T=F;try{var ae=_(),se=V.S;se!==null&&se(F,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(k,ee)}catch(ue){ee(ue)}finally{$!==null&&F.types!==null&&($.types=F.types),V.T=$}},Ce.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ce.use=function(_){return V.H.use(_)},Ce.useActionState=function(_,$,F){return V.H.useActionState(_,$,F)},Ce.useCallback=function(_,$){return V.H.useCallback(_,$)},Ce.useContext=function(_){return V.H.useContext(_)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(_,$){return V.H.useDeferredValue(_,$)},Ce.useEffect=function(_,$){return V.H.useEffect(_,$)},Ce.useEffectEvent=function(_){return V.H.useEffectEvent(_)},Ce.useId=function(){return V.H.useId()},Ce.useImperativeHandle=function(_,$,F){return V.H.useImperativeHandle(_,$,F)},Ce.useInsertionEffect=function(_,$){return V.H.useInsertionEffect(_,$)},Ce.useLayoutEffect=function(_,$){return V.H.useLayoutEffect(_,$)},Ce.useMemo=function(_,$){return V.H.useMemo(_,$)},Ce.useOptimistic=function(_,$){return V.H.useOptimistic(_,$)},Ce.useReducer=function(_,$,F){return V.H.useReducer(_,$,F)},Ce.useRef=function(_){return V.H.useRef(_)},Ce.useState=function(_){return V.H.useState(_)},Ce.useSyncExternalStore=function(_,$,F){return V.H.useSyncExternalStore(_,$,F)},Ce.useTransition=function(){return V.H.useTransition()},Ce.version="19.2.4",Ce}var Zg;function Br(){return Zg||(Zg=1,Zf.exports=$S()),Zf.exports}var S=Br();const Be=Ud(S),w0=kS({__proto__:null,default:Be},[S]);var qf={exports:{}},Tr={},Yf={exports:{}},Pf={};var qg;function GS(){return qg||(qg=1,(function(t){function o(D,B){var U=D.length;D.push(B);e:for(;0<U;){var ee=U-1>>>1,ne=D[ee];if(0<s(ne,B))D[ee]=B,D[U]=ne,U=ee;else break e}}function a(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var B=D[0],U=D.pop();if(U!==B){D[0]=U;e:for(var ee=0,ne=D.length,_=ne>>>1;ee<_;){var $=2*(ee+1)-1,F=D[$],ae=$+1,se=D[ae];if(0>s(F,U))ae<ne&&0>s(se,F)?(D[ee]=se,D[ae]=U,ee=ae):(D[ee]=F,D[$]=U,ee=$);else if(ae<ne&&0>s(se,U))D[ee]=se,D[ae]=U,ee=ae;else break e}}return B}function s(D,B){var U=D.sortIndex-B.sortIndex;return U!==0?U:D.id-B.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,E=!1,w=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function H(D){for(var B=a(h);B!==null;){if(B.callback===null)r(h);else if(B.startTime<=D)r(h),B.sortIndex=B.expirationTime,o(p,B);else break;B=a(h)}}function z(D){if(w=!1,H(D),!E)if(a(p)!==null)E=!0,k||(k=!0,ie());else{var B=a(h);B!==null&&re(z,B.startTime-D)}}var k=!1,V=-1,J=5,W=-1;function Q(){return M?!0:!(t.unstable_now()-W<J)}function oe(){if(M=!1,k){var D=t.unstable_now();W=D;var B=!0;try{e:{E=!1,w&&(w=!1,O(V),V=-1),C=!0;var U=x;try{t:{for(H(D),y=a(p);y!==null&&!(y.expirationTime>D&&Q());){var ee=y.callback;if(typeof ee=="function"){y.callback=null,x=y.priorityLevel;var ne=ee(y.expirationTime<=D);if(D=t.unstable_now(),typeof ne=="function"){y.callback=ne,H(D),B=!0;break t}y===a(p)&&r(p),H(D)}else r(p);y=a(p)}if(y!==null)B=!0;else{var _=a(h);_!==null&&re(z,_.startTime-D),B=!1}}break e}finally{y=null,x=U,C=!1}B=void 0}}finally{B?ie():k=!1}}}var ie;if(typeof A=="function")ie=function(){A(oe)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,G=le.port2;le.port1.onmessage=oe,ie=function(){G.postMessage(null)}}else ie=function(){R(oe,0)};function re(D,B){V=R(function(){D(t.unstable_now())},B)}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"):J=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 B=3;break;default:B=x}var U=x;x=B;try{return D()}finally{x=U}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(D,B){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var U=x;x=D;try{return B()}finally{x=U}},t.unstable_scheduleCallback=function(D,B,U){var ee=t.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?ee+U:ee):U=ee,D){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=U+ne,D={id:v++,callback:B,priorityLevel:D,startTime:U,expirationTime:ne,sortIndex:-1},U>ee?(D.sortIndex=U,o(h,D),a(p)===null&&D===a(h)&&(w?(O(V),V=-1):w=!0,re(z,U-ee))):(D.sortIndex=ne,o(p,D),E||C||(E=!0,k||(k=!0,ie()))),D},t.unstable_shouldYield=Q,t.unstable_wrapCallback=function(D){var B=x;return function(){var U=x;x=B;try{return D.apply(this,arguments)}finally{x=U}}}})(Pf)),Pf}var Yg;function ZS(){return Yg||(Yg=1,Yf.exports=GS()),Yf.exports}var Xf={exports:{}},Tt={};var Pg;function qS(){if(Pg)return Tt;Pg=1;var t=Br();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 Xg;function E0(){if(Xg)return Xf.exports;Xg=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(),Xf.exports=qS(),Xf.exports}var Qg;function YS(){if(Qg)return Tr;Qg=1;var t=ZS(),o=Br(),a=E0();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,T=u.child;T;){if(T===l){b=!0,l=u,i=m;break}if(T===i){b=!0,i=u,l=m;break}T=T.sibling}if(!b){for(T=m.child;T;){if(T===l){b=!0,l=m,i=u;break}if(T===i){b=!0,i=m,l=u;break}T=T.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"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),A=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function G(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?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 z:return"Suspense";case k:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case A:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case H:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return n=e.displayName||null,n!==null?n:G(e.type)||"Memo";case J:n=e._payload,e=e._init;try{return G(e(n))}catch{}}return null}var re=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},ee=[],ne=-1;function _(e){return{current:e}}function $(e){0>ne||(e.current=ee[ne],ee[ne]=null,ne--)}function F(e,n){ne++,ee[ne]=e.current,e.current=n}var ae=_(null),se=_(null),ue=_(null),ve=_(null);function Se(e,n){switch(F(ue,n),F(se,e),F(ae,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?ig(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=ig(n),e=sg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ae),F(ae,e)}function me(){$(ae),$(se),$(ue)}function We(e){e.memoizedState!==null&&F(ve,e);var n=ae.current,l=sg(n,e.type);n!==l&&(F(se,e),F(ae,l))}function it(e){se.current===e&&($(ae),$(se)),ve.current===e&&($(ve),xr._currentValue=U)}var tt,Ve;function lt(e){if(tt===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);tt=n&&n[1]||"",Ve=-1<l.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+tt+e+Ve}var nn=!1;function Nn(e,n){if(!e||nn)return"";nn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(P){var Y=P}Reflect.construct(e,[],K)}else{try{K.call()}catch(P){Y=P}e.call(K.prototype)}}else{try{throw Error()}catch(P){Y=P}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(P){if(P&&Y&&typeof P.stack=="string")return[P.stack,Y.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],T=m[1];if(b&&T){var j=b.split(`
|
|
4
|
-
`),q=T.split(`
|
|
5
|
-
`);for(u=i=0;i<j.length&&!j[i].includes("DetermineComponentFrameRoot");)i++;for(;u<q.length&&!q[u].includes("DetermineComponentFrameRoot");)u++;if(i===j.length||u===q.length)for(i=j.length-1,u=q.length-1;1<=i&&0<=u&&j[i]!==q[u];)u--;for(;1<=i&&0<=u;i--,u--)if(j[i]!==q[u]){if(i!==1||u!==1)do if(i--,u--,0>u||j[i]!==q[u]){var X=`
|
|
6
|
-
`+j[i].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=i&&0<=u);break}}}finally{nn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?lt(l):""}function Co(e,n){switch(e.tag){case 26:case 27:case 5:return lt(e.type);case 16:return lt("Lazy");case 13:return e.child!==n&&n!==null?lt("Suspense Fallback"):lt("Suspense");case 19:return lt("SuspenseList");case 0:case 15:return Nn(e.type,!1);case 11:return Nn(e.type.render,!1);case 1:return Nn(e.type,!0);case 31:return lt("Activity");default:return""}}function An(e){try{var n="",l=null;do n+=Co(e,l),l=e,e=e.return;while(e);return n}catch(i){return`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var Et=Object.prototype.hasOwnProperty,Xn=t.unstable_scheduleCallback,Tl=t.unstable_cancelCallback,wc=t.unstable_shouldYield,Ec=t.unstable_requestPaint,jt=t.unstable_now,Tc=t.unstable_getCurrentPriorityLevel,Na=t.unstable_ImmediatePriority,dt=t.unstable_UserBlockingPriority,Ml=t.unstable_NormalPriority,Mc=t.unstable_LowPriority,Qr=t.unstable_IdlePriority,Rc=t.log,Qn=t.unstable_setDisableYieldValue,Aa=null,qt=null;function wo(e){if(typeof Rc=="function"&&Qn(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(Aa,e)}catch{}}var Yt=Math.clz32?Math.clz32:Yb,Zb=Math.log,qb=Math.LN2;function Yb(e){return e>>>=0,e===0?32:31-(Zb(e)/qb|0)|0}var Ir=256,Kr=262144,Fr=4194304;function nl(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 Jr(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 T=i&134217727;return T!==0?(i=T&~m,i!==0?u=nl(i):(b&=T,b!==0?u=nl(b):l||(l=T&~e,l!==0&&(u=nl(l))))):(T=i&~m,T!==0?u=nl(T):b!==0?u=nl(b):l||(l=i&~e,l!==0&&(u=nl(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 Ha(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Pb(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 Gm(){var e=Fr;return Fr<<=1,(Fr&62914560)===0&&(Fr=4194304),e}function _c(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 Xb(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 T=e.entanglements,j=e.expirationTimes,q=e.hiddenUpdates;for(l=b&~l;0<l;){var X=31-Yt(l),K=1<<X;T[X]=0,j[X]=-1;var Y=q[X];if(Y!==null)for(q[X]=null,X=0;X<Y.length;X++){var P=Y[X];P!==null&&(P.lane&=-536870913)}l&=~K}i!==0&&Zm(e,i,0),m!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=m&~(b&~n))}function Zm(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-Yt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function qm(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var i=31-Yt(l),u=1<<i;u&n|e[i]&n&&(e[i]|=n),l&=~u}}function Ym(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 Oc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Pm(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:Ng(e.type))}function Xm(e,n){var l=B.p;try{return B.p=e,n()}finally{B.p=l}}var Eo=Math.random().toString(36).slice(2),yt="__reactFiber$"+Eo,Nt="__reactProps$"+Eo,Rl="__reactContainer$"+Eo,Nc="__reactEvents$"+Eo,Qb="__reactListeners$"+Eo,Ib="__reactHandles$"+Eo,Qm="__reactResources$"+Eo,za="__reactMarker$"+Eo;function Ac(e){delete e[yt],delete e[Nt],delete e[Nc],delete e[Qb],delete e[Ib]}function _l(e){var n=e[yt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[Rl]||l[yt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=hg(e);e!==null;){if(l=e[yt])return l;e=hg(e)}return n}e=l,l=e.parentNode}return null}function jl(e){if(e=e[yt]||e[Rl]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function La(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function Ol(e){var n=e[Qm];return n||(n=e[Qm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pt(e){e[za]=!0}var Im=new Set,Km={};function ol(e,n){Nl(e,n),Nl(e+"Capture",n)}function Nl(e,n){for(Km[e]=n,e=0;e<n.length;e++)Im.add(n[e])}var Kb=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]*$"),Fm={},Jm={};function Fb(e){return Et.call(Jm,e)?!0:Et.call(Fm,e)?!1:Kb.test(e)?Jm[e]=!0:(Fm[e]=!0,!1)}function Wr(e,n,l){if(Fb(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 ei(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 In(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 on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Jb(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 Hc(e){if(!e._valueTracker){var n=Wm(e)?"checked":"value";e._valueTracker=Jb(e,n,""+e[n])}}function ep(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),i="";return e&&(i=Wm(e)?e.checked?"true":"false":e.value),e=i,e!==l?(n.setValue(e),!0):!1}function ti(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 Wb=/[\n"\\]/g;function ln(e){return e.replace(Wb,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Dc(e,n,l,i,u,m,b,T){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=""+on(n)):e.value!==""+on(n)&&(e.value=""+on(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?zc(e,b,on(n)):l!=null?zc(e,b,on(l)):i!=null&&e.removeAttribute("value"),u==null&&m!=null&&(e.defaultChecked=!!m),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+on(T):e.removeAttribute("name")}function tp(e,n,l,i,u,m,b,T){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)){Hc(e);return}l=l!=null?""+on(l):"",n=n!=null?""+on(n):l,T||n===e.value||(e.value=n),e.defaultValue=n}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=T?e.checked:!!i,e.defaultChecked=!!i,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Hc(e)}function zc(e,n,l){n==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Al(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=""+on(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 np(e,n,l){if(n!=null&&(n=""+on(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+on(l):""}function op(e,n,l,i){if(n==null){if(i!=null){if(l!=null)throw Error(r(92));if(re(i)){if(1<i.length)throw Error(r(93));i=i[0]}l=i}l==null&&(l=""),n=l}l=on(n),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Hc(e)}function Hl(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var e2=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 lp(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||e2.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function ap(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&&lp(e,u,i)}else for(var m in n)n.hasOwnProperty(m)&&lp(e,m,n[m])}function Lc(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 t2=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"]]),n2=/^[\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 ni(e){return n2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kn(){}var Vc=null;function kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,zl=null;function rp(e){var n=jl(e);if(n&&(e=n.stateNode)){var l=e[Nt]||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="'+ln(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var i=l[n];if(i!==e&&i.form===e.form){var u=i[Nt]||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&&ep(i)}break e;case"textarea":np(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Al(e,!!l.multiple,n,!1)}}}var Bc=!1;function ip(e,n,l){if(Bc)return e(n,l);Bc=!0;try{var i=e(n);return i}finally{if(Bc=!1,(Dl!==null||zl!==null)&&(Zi(),Dl&&(n=Dl,e=zl,zl=Dl=null,rp(n),e)))for(n=0;n<e.length;n++)rp(e[n])}}function Va(e,n){var l=e.stateNode;if(l===null)return null;var i=l[Nt]||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 Fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=!1;if(Fn)try{var ka={};Object.defineProperty(ka,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",ka,ka),window.removeEventListener("test",ka,ka)}catch{Uc=!1}var To=null,$c=null,oi=null;function sp(){if(oi)return oi;var e,n=$c,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 oi=u.slice(e,1<i?1-i:void 0)}function li(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 ai(){return!0}function cp(){return!1}function At(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 T in e)e.hasOwnProperty(T)&&(l=e[T],this[T]=l?l(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ai:cp,this.isPropagationStopped=cp,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=ai)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ai)},persist:function(){},isPersistent:ai}),n}var ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ri=At(ll),Ba=y({},ll,{view:0,detail:0}),o2=At(Ba),Gc,Zc,Ua,ii=y({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yc,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!==Ua&&(Ua&&e.type==="mousemove"?(Gc=e.screenX-Ua.screenX,Zc=e.screenY-Ua.screenY):Zc=Gc=0,Ua=e),Gc)},movementY:function(e){return"movementY"in e?e.movementY:Zc}}),up=At(ii),l2=y({},ii,{dataTransfer:0}),a2=At(l2),r2=y({},Ba,{relatedTarget:0}),qc=At(r2),i2=y({},ll,{animationName:0,elapsedTime:0,pseudoElement:0}),s2=At(i2),c2=y({},ll,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u2=At(c2),f2=y({},ll,{data:0}),fp=At(f2),d2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m2={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"},p2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h2(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=p2[e])?!!n[e]:!1}function Yc(){return h2}var g2=y({},Ba,{key:function(e){if(e.key){var n=d2[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?m2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yc,charCode:function(e){return e.type==="keypress"?li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),v2=At(g2),y2=y({},ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dp=At(y2),b2=y({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yc}),x2=At(b2),S2=y({},ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),C2=At(S2),w2=y({},ii,{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}),E2=At(w2),T2=y({},ll,{newState:0,oldState:0}),M2=At(T2),R2=[9,13,27,32],Pc=Fn&&"CompositionEvent"in window,$a=null;Fn&&"documentMode"in document&&($a=document.documentMode);var _2=Fn&&"TextEvent"in window&&!$a,mp=Fn&&(!Pc||$a&&8<$a&&11>=$a),pp=" ",hp=!1;function gp(e,n){switch(e){case"keyup":return R2.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ll=!1;function j2(e,n){switch(e){case"compositionend":return vp(n);case"keypress":return n.which!==32?null:(hp=!0,pp);case"textInput":return e=n.data,e===pp&&hp?null:e;default:return null}}function O2(e,n){if(Ll)return e==="compositionend"||!Pc&&gp(e,n)?(e=sp(),oi=$c=To=null,Ll=!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 mp&&n.locale!=="ko"?null:n.data;default:return null}}var N2={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 yp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!N2[e.type]:n==="textarea"}function bp(e,n,l,i){Dl?zl?zl.push(i):zl=[i]:Dl=i,n=Ki(n,"onChange"),0<n.length&&(l=new ri("onChange","change",null,l,i),e.push({event:l,listeners:n}))}var Ga=null,Za=null;function A2(e){tg(e,0)}function si(e){var n=La(e);if(ep(n))return e}function xp(e,n){if(e==="change")return n}var Sp=!1;if(Fn){var Xc;if(Fn){var Qc="oninput"in document;if(!Qc){var Cp=document.createElement("div");Cp.setAttribute("oninput","return;"),Qc=typeof Cp.oninput=="function"}Xc=Qc}else Xc=!1;Sp=Xc&&(!document.documentMode||9<document.documentMode)}function wp(){Ga&&(Ga.detachEvent("onpropertychange",Ep),Za=Ga=null)}function Ep(e){if(e.propertyName==="value"&&si(Za)){var n=[];bp(n,Za,e,kc(e)),ip(A2,n)}}function H2(e,n,l){e==="focusin"?(wp(),Ga=n,Za=l,Ga.attachEvent("onpropertychange",Ep)):e==="focusout"&&wp()}function D2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si(Za)}function z2(e,n){if(e==="click")return si(n)}function L2(e,n){if(e==="input"||e==="change")return si(n)}function V2(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Pt=typeof Object.is=="function"?Object.is:V2;function qa(e,n){if(Pt(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(!Et.call(n,u)||!Pt(e[u],n[u]))return!1}return!0}function Tp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mp(e,n){var l=Tp(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=Tp(l)}}function Rp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Rp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function _p(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ti(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=ti(e.document)}return n}function Ic(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 k2=Fn&&"documentMode"in document&&11>=document.documentMode,Vl=null,Kc=null,Ya=null,Fc=!1;function jp(e,n,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fc||Vl==null||Vl!==ti(i)||(i=Vl,"selectionStart"in i&&Ic(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}),Ya&&qa(Ya,i)||(Ya=i,i=Ki(Kc,"onSelect"),0<i.length&&(n=new ri("onSelect","select",null,n,l),e.push({event:n,listeners:i}),n.target=Vl)))}function al(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var kl={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},Jc={},Op={};Fn&&(Op=document.createElement("div").style,"AnimationEvent"in window||(delete kl.animationend.animation,delete kl.animationiteration.animation,delete kl.animationstart.animation),"TransitionEvent"in window||delete kl.transitionend.transition);function rl(e){if(Jc[e])return Jc[e];if(!kl[e])return e;var n=kl[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Op)return Jc[e]=n[l];return e}var Np=rl("animationend"),Ap=rl("animationiteration"),Hp=rl("animationstart"),B2=rl("transitionrun"),U2=rl("transitionstart"),$2=rl("transitioncancel"),Dp=rl("transitionend"),zp=new Map,Wc="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(" ");Wc.push("scrollEnd");function bn(e,n){zp.set(e,n),ol(n,[e])}var ci=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)},an=[],Bl=0,eu=0;function ui(){for(var e=Bl,n=eu=Bl=0;n<e;){var l=an[n];an[n++]=null;var i=an[n];an[n++]=null;var u=an[n];an[n++]=null;var m=an[n];if(an[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&&Lp(l,u,m)}}function fi(e,n,l,i){an[Bl++]=e,an[Bl++]=n,an[Bl++]=l,an[Bl++]=i,eu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function tu(e,n,l,i){return fi(e,n,l,i),di(e)}function il(e,n){return fi(e,null,null,n),di(e)}function Lp(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-Yt(l),e=m.hiddenUpdates,i=e[u],i===null?e[u]=[n]:i.push(n),n.lane=l|536870912),m):null}function di(e){if(50<mr)throw mr=0,ff=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ul={};function G2(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 G2(e,n,l,i)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jn(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 Vp(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 mi(e,n,l,i,u,m){var b=0;if(i=e,typeof e=="function")nu(e)&&(b=1);else if(typeof e=="string")b=Xx(e,l,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Xt(31,l,n,u),e.elementType=W,e.lanes=m,e;case w:return sl(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 z:return e=Xt(13,l,n,u),e.elementType=z,e.lanes=m,e;case k:return e=Xt(19,l,n,u),e.elementType=k,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:b=10;break e;case O:b=9;break e;case H:b=11;break e;case V:b=14;break e;case J: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 sl(e,n,l,i){return e=Xt(7,e,i,n),e.lanes=l,e}function ou(e,n,l){return e=Xt(6,e,null,n),e.lanes=l,e}function kp(e){var n=Xt(18,null,null,0);return n.stateNode=e,n}function lu(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 Bp=new WeakMap;function rn(e,n){if(typeof e=="object"&&e!==null){var l=Bp.get(e);return l!==void 0?l:(n={value:e,source:n,stack:An(n)},Bp.set(e,n),n)}return{value:e,source:n,stack:An(n)}}var $l=[],Gl=0,pi=null,Pa=0,sn=[],cn=0,Mo=null,Hn=1,Dn="";function Wn(e,n){$l[Gl++]=Pa,$l[Gl++]=pi,pi=e,Pa=n}function Up(e,n,l){sn[cn++]=Hn,sn[cn++]=Dn,sn[cn++]=Mo,Mo=e;var i=Hn;e=Dn;var u=32-Yt(i)-1;i&=~(1<<u),l+=1;var m=32-Yt(n)+u;if(30<m){var b=u-u%5;m=(i&(1<<b)-1).toString(32),i>>=b,u-=b,Hn=1<<32-Yt(n)+u|l<<u|i,Dn=m+e}else Hn=1<<m|l<<u|i,Dn=e}function au(e){e.return!==null&&(Wn(e,1),Up(e,1,0))}function ru(e){for(;e===pi;)pi=$l[--Gl],$l[Gl]=null,Pa=$l[--Gl],$l[Gl]=null;for(;e===Mo;)Mo=sn[--cn],sn[cn]=null,Dn=sn[--cn],sn[cn]=null,Hn=sn[--cn],sn[cn]=null}function $p(e,n){sn[cn++]=Hn,sn[cn++]=Dn,sn[cn++]=Mo,Hn=n.id,Dn=n.overflow,Mo=e}var bt=null,Ie=null,Ne=!1,Ro=null,un=!1,iu=Error(r(519));function _o(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xa(rn(n,e)),iu}function Gp(e){var n=e.stateNode,l=e.type,i=e.memoizedProps;switch(n[yt]=e,n[Nt]=i,l){case"dialog":_e("cancel",n),_e("close",n);break;case"iframe":case"object":case"embed":_e("load",n);break;case"video":case"audio":for(l=0;l<hr.length;l++)_e(hr[l],n);break;case"source":_e("error",n);break;case"img":case"image":case"link":_e("error",n),_e("load",n);break;case"details":_e("toggle",n);break;case"input":_e("invalid",n),tp(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":_e("invalid",n);break;case"textarea":_e("invalid",n),op(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||ag(n.textContent,l)?(i.popover!=null&&(_e("beforetoggle",n),_e("toggle",n)),i.onScroll!=null&&_e("scroll",n),i.onScrollEnd!=null&&_e("scrollend",n),i.onClick!=null&&(n.onclick=Kn),n=!0):n=!1,n||_o(e,!0)}function Zp(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:bt=bt.return}}function Zl(e){if(e!==bt)return!1;if(!Ne)return Zp(e),Ne=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Mf(e.type,e.memoizedProps)),l=!l),l&&Ie&&_o(e),Zp(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ie=pg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ie=pg(e)}else n===27?(n=Ie,Go(e.type)?(e=Nf,Nf=null,Ie=e):Ie=n):Ie=bt?dn(e.stateNode.nextSibling):null;return!0}function cl(){Ie=bt=null,Ne=!1}function su(){var e=Ro;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),Ro=null),e}function Xa(e){Ro===null?Ro=[e]:Ro.push(e)}var cu=_(null),ul=null,eo=null;function jo(e,n,l){F(cu,n._currentValue),n._currentValue=l}function to(e){e._currentValue=cu.current,$(cu)}function uu(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 fu(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 T=m;m=u;for(var j=0;j<n.length;j++)if(T.context===n[j]){m.lanes|=l,T=m.alternate,T!==null&&(T.lanes|=l),uu(m.return,l,e),i||(b=null);break e}m=T.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),uu(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 ql(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 T=u.type;Pt(u.pendingProps.value,b.value)||(e!==null?e.push(T):e=[T])}}else if(u===ve.current){if(b=u.alternate,b===null)throw Error(r(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(xr):e=[xr])}u=u.return}e!==null&&fu(n,e,l,i),n.flags|=262144}function hi(e){for(e=e.firstContext;e!==null;){if(!Pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function fl(e){ul=e,eo=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return qp(ul,e)}function gi(e,n){return ul===null&&fl(e),qp(e,n)}function qp(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},eo===null){if(e===null)throw Error(r(308));eo=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else eo=eo.next=n;return l}var Z2=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()})}},q2=t.unstable_scheduleCallback,Y2=t.unstable_NormalPriority,st={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function du(){return{controller:new Z2,data:new Map,refCount:0}}function Qa(e){e.refCount--,e.refCount===0&&q2(Y2,function(){e.controller.abort()})}var Ia=null,mu=0,Yl=0,Pl=null;function P2(e,n){if(Ia===null){var l=Ia=[];mu=0,Yl=vf(),Pl={status:"pending",value:void 0,then:function(i){l.push(i)}}}return mu++,n.then(Yp,Yp),n}function Yp(){if(--mu===0&&Ia!==null){Pl!==null&&(Pl.status="fulfilled");var e=Ia;Ia=null,Yl=0,Pl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function X2(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 Pp=D.S;D.S=function(e,n){j1=jt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&P2(e,n),Pp!==null&&Pp(e,n)};var dl=_(null);function pu(){var e=dl.current;return e!==null?e:Ye.pooledCache}function vi(e,n){n===null?F(dl,dl.current):F(dl,n.pool)}function Xp(){var e=pu();return e===null?null:{parent:st._currentValue,pool:e}}var Xl=Error(r(460)),hu=Error(r(474)),yi=Error(r(542)),bi={then:function(){}};function Qp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ip(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(Kn,Kn),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Fp(e),e;default:if(typeof n.status=="string")n.then(Kn,Kn);else{if(e=Ye,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,Fp(e),e}throw pl=n,Xl}}function ml(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(pl=l,Xl):l}}var pl=null;function Kp(){if(pl===null)throw Error(r(459));var e=pl;return pl=null,e}function Fp(e){if(e===Xl||e===yi)throw Error(r(483))}var Ql=null,Ka=0;function xi(e){var n=Ka;return Ka+=1,Ql===null&&(Ql=[]),Ip(Ql,e,n)}function Fa(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Si(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 Jp(e){function n(L,N){if(e){var Z=L.deletions;Z===null?(L.deletions=[N],L.flags|=16):Z.push(N)}}function l(L,N){if(!e)return null;for(;N!==null;)n(L,N),N=N.sibling;return null}function i(L){for(var N=new Map;L!==null;)L.key!==null?N.set(L.key,L):N.set(L.index,L),L=L.sibling;return N}function u(L,N){return L=Jn(L,N),L.index=0,L.sibling=null,L}function m(L,N,Z){return L.index=Z,e?(Z=L.alternate,Z!==null?(Z=Z.index,Z<N?(L.flags|=67108866,N):Z):(L.flags|=67108866,N)):(L.flags|=1048576,N)}function b(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function T(L,N,Z,I){return N===null||N.tag!==6?(N=ou(Z,L.mode,I),N.return=L,N):(N=u(N,Z),N.return=L,N)}function j(L,N,Z,I){var pe=Z.type;return pe===w?X(L,N,Z.props.children,I,Z.key):N!==null&&(N.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===J&&ml(pe)===N.type)?(N=u(N,Z.props),Fa(N,Z),N.return=L,N):(N=mi(Z.type,Z.key,Z.props,null,L.mode,I),Fa(N,Z),N.return=L,N)}function q(L,N,Z,I){return N===null||N.tag!==4||N.stateNode.containerInfo!==Z.containerInfo||N.stateNode.implementation!==Z.implementation?(N=lu(Z,L.mode,I),N.return=L,N):(N=u(N,Z.children||[]),N.return=L,N)}function X(L,N,Z,I,pe){return N===null||N.tag!==7?(N=sl(Z,L.mode,I,pe),N.return=L,N):(N=u(N,Z),N.return=L,N)}function K(L,N,Z){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=ou(""+N,L.mode,Z),N.return=L,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case C:return Z=mi(N.type,N.key,N.props,null,L.mode,Z),Fa(Z,N),Z.return=L,Z;case E:return N=lu(N,L.mode,Z),N.return=L,N;case J:return N=ml(N),K(L,N,Z)}if(re(N)||ie(N))return N=sl(N,L.mode,Z,null),N.return=L,N;if(typeof N.then=="function")return K(L,xi(N),Z);if(N.$$typeof===A)return K(L,gi(L,N),Z);Si(L,N)}return null}function Y(L,N,Z,I){var pe=N!==null?N.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return pe!==null?null:T(L,N,""+Z,I);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case C:return Z.key===pe?j(L,N,Z,I):null;case E:return Z.key===pe?q(L,N,Z,I):null;case J:return Z=ml(Z),Y(L,N,Z,I)}if(re(Z)||ie(Z))return pe!==null?null:X(L,N,Z,I,null);if(typeof Z.then=="function")return Y(L,N,xi(Z),I);if(Z.$$typeof===A)return Y(L,N,gi(L,Z),I);Si(L,Z)}return null}function P(L,N,Z,I,pe){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return L=L.get(Z)||null,T(N,L,""+I,pe);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case C:return L=L.get(I.key===null?Z:I.key)||null,j(N,L,I,pe);case E:return L=L.get(I.key===null?Z:I.key)||null,q(N,L,I,pe);case J:return I=ml(I),P(L,N,Z,I,pe)}if(re(I)||ie(I))return L=L.get(Z)||null,X(N,L,I,pe,null);if(typeof I.then=="function")return P(L,N,Z,xi(I),pe);if(I.$$typeof===A)return P(L,N,Z,gi(N,I),pe);Si(N,I)}return null}function ce(L,N,Z,I){for(var pe=null,ze=null,de=N,Ee=N=0,Oe=null;de!==null&&Ee<Z.length;Ee++){de.index>Ee?(Oe=de,de=null):Oe=de.sibling;var Le=Y(L,de,Z[Ee],I);if(Le===null){de===null&&(de=Oe);break}e&&de&&Le.alternate===null&&n(L,de),N=m(Le,N,Ee),ze===null?pe=Le:ze.sibling=Le,ze=Le,de=Oe}if(Ee===Z.length)return l(L,de),Ne&&Wn(L,Ee),pe;if(de===null){for(;Ee<Z.length;Ee++)de=K(L,Z[Ee],I),de!==null&&(N=m(de,N,Ee),ze===null?pe=de:ze.sibling=de,ze=de);return Ne&&Wn(L,Ee),pe}for(de=i(de);Ee<Z.length;Ee++)Oe=P(de,L,Ee,Z[Ee],I),Oe!==null&&(e&&Oe.alternate!==null&&de.delete(Oe.key===null?Ee:Oe.key),N=m(Oe,N,Ee),ze===null?pe=Oe:ze.sibling=Oe,ze=Oe);return e&&de.forEach(function(Xo){return n(L,Xo)}),Ne&&Wn(L,Ee),pe}function ye(L,N,Z,I){if(Z==null)throw Error(r(151));for(var pe=null,ze=null,de=N,Ee=N=0,Oe=null,Le=Z.next();de!==null&&!Le.done;Ee++,Le=Z.next()){de.index>Ee?(Oe=de,de=null):Oe=de.sibling;var Xo=Y(L,de,Le.value,I);if(Xo===null){de===null&&(de=Oe);break}e&&de&&Xo.alternate===null&&n(L,de),N=m(Xo,N,Ee),ze===null?pe=Xo:ze.sibling=Xo,ze=Xo,de=Oe}if(Le.done)return l(L,de),Ne&&Wn(L,Ee),pe;if(de===null){for(;!Le.done;Ee++,Le=Z.next())Le=K(L,Le.value,I),Le!==null&&(N=m(Le,N,Ee),ze===null?pe=Le:ze.sibling=Le,ze=Le);return Ne&&Wn(L,Ee),pe}for(de=i(de);!Le.done;Ee++,Le=Z.next())Le=P(de,L,Ee,Le.value,I),Le!==null&&(e&&Le.alternate!==null&&de.delete(Le.key===null?Ee:Le.key),N=m(Le,N,Ee),ze===null?pe=Le:ze.sibling=Le,ze=Le);return e&&de.forEach(function(lS){return n(L,lS)}),Ne&&Wn(L,Ee),pe}function qe(L,N,Z,I){if(typeof Z=="object"&&Z!==null&&Z.type===w&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case C:e:{for(var pe=Z.key;N!==null;){if(N.key===pe){if(pe=Z.type,pe===w){if(N.tag===7){l(L,N.sibling),I=u(N,Z.props.children),I.return=L,L=I;break e}}else if(N.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===J&&ml(pe)===N.type){l(L,N.sibling),I=u(N,Z.props),Fa(I,Z),I.return=L,L=I;break e}l(L,N);break}else n(L,N);N=N.sibling}Z.type===w?(I=sl(Z.props.children,L.mode,I,Z.key),I.return=L,L=I):(I=mi(Z.type,Z.key,Z.props,null,L.mode,I),Fa(I,Z),I.return=L,L=I)}return b(L);case E:e:{for(pe=Z.key;N!==null;){if(N.key===pe)if(N.tag===4&&N.stateNode.containerInfo===Z.containerInfo&&N.stateNode.implementation===Z.implementation){l(L,N.sibling),I=u(N,Z.children||[]),I.return=L,L=I;break e}else{l(L,N);break}else n(L,N);N=N.sibling}I=lu(Z,L.mode,I),I.return=L,L=I}return b(L);case J:return Z=ml(Z),qe(L,N,Z,I)}if(re(Z))return ce(L,N,Z,I);if(ie(Z)){if(pe=ie(Z),typeof pe!="function")throw Error(r(150));return Z=pe.call(Z),ye(L,N,Z,I)}if(typeof Z.then=="function")return qe(L,N,xi(Z),I);if(Z.$$typeof===A)return qe(L,N,gi(L,Z),I);Si(L,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,N!==null&&N.tag===6?(l(L,N.sibling),I=u(N,Z),I.return=L,L=I):(l(L,N),I=ou(Z,L.mode,I),I.return=L,L=I),b(L)):l(L,N)}return function(L,N,Z,I){try{Ka=0;var pe=qe(L,N,Z,I);return Ql=null,pe}catch(de){if(de===Xl||de===yi)throw de;var ze=Xt(29,de,null,L.mode);return ze.lanes=I,ze.return=L,ze}}}var hl=Jp(!0),Wp=Jp(!1),Oo=!1;function gu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vu(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 No(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ao(e,n,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ke&2)!==0){var u=i.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),i.pending=n,n=di(e),Lp(e,null,l),n}return fi(e,i,n,l),di(e)}function Ja(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,qm(e,l)}}function yu(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 bu=!1;function Wa(){if(bu){var e=Pl;if(e!==null)throw e}}function er(e,n,l,i){bu=!1;var u=e.updateQueue;Oo=!1;var m=u.firstBaseUpdate,b=u.lastBaseUpdate,T=u.shared.pending;if(T!==null){u.shared.pending=null;var j=T,q=j.next;j.next=null,b===null?m=q:b.next=q,b=j;var X=e.alternate;X!==null&&(X=X.updateQueue,T=X.lastBaseUpdate,T!==b&&(T===null?X.firstBaseUpdate=q:T.next=q,X.lastBaseUpdate=j))}if(m!==null){var K=u.baseState;b=0,X=q=j=null,T=m;do{var Y=T.lane&-536870913,P=Y!==T.lane;if(P?(je&Y)===Y:(i&Y)===Y){Y!==0&&Y===Yl&&(bu=!0),X!==null&&(X=X.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ce=e,ye=T;Y=n;var qe=l;switch(ye.tag){case 1:if(ce=ye.payload,typeof ce=="function"){K=ce.call(qe,K,Y);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ye.payload,Y=typeof ce=="function"?ce.call(qe,K,Y):ce,Y==null)break e;K=y({},K,Y);break e;case 2:Oo=!0}}Y=T.callback,Y!==null&&(e.flags|=64,P&&(e.flags|=8192),P=u.callbacks,P===null?u.callbacks=[Y]:P.push(Y))}else P={lane:Y,tag:T.tag,payload:T.payload,callback:T.callback,next:null},X===null?(q=X=P,j=K):X=X.next=P,b|=Y;if(T=T.next,T===null){if(T=u.shared.pending,T===null)break;P=T,T=P.next,P.next=null,u.lastBaseUpdate=P,u.shared.pending=null}}while(!0);X===null&&(j=K),u.baseState=j,u.firstBaseUpdate=q,u.lastBaseUpdate=X,m===null&&(u.shared.lanes=0),Vo|=b,e.lanes=b,e.memoizedState=K}}function eh(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function th(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)eh(l[e],n)}var Il=_(null),Ci=_(0);function nh(e,n){e=uo,F(Ci,e),F(Il,n),uo=e|n.baseLanes}function xu(){F(Ci,uo),F(Il,Il.current)}function Su(){uo=Ci.current,$(Il),$(Ci)}var Qt=_(null),fn=null;function Ho(e){var n=e.alternate;F(at,at.current&1),F(Qt,e),fn===null&&(n===null||Il.current!==null||n.memoizedState!==null)&&(fn=e)}function Cu(e){F(at,at.current),F(Qt,e),fn===null&&(fn=e)}function oh(e){e.tag===22?(F(at,at.current),F(Qt,e),fn===null&&(fn=e)):Do()}function Do(){F(at,at.current),F(Qt,Qt.current)}function It(e){$(Qt),fn===e&&(fn=null),$(at)}var at=_(0);function wi(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)||Of(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 no=0,we=null,Ge=null,ct=null,Ei=!1,Kl=!1,gl=!1,Ti=0,tr=0,Fl=null,Q2=0;function nt(){throw Error(r(321))}function wu(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Pt(e[l],n[l]))return!1;return!0}function Eu(e,n,l,i,u,m){return no=m,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=e===null||e.memoizedState===null?Uh:Bu,gl=!1,m=l(i,u),gl=!1,Kl&&(m=ah(n,l,i,u)),lh(e),m}function lh(e){D.H=lr;var n=Ge!==null&&Ge.next!==null;if(no=0,ct=Ge=we=null,Ei=!1,tr=0,Fl=null,n)throw Error(r(300));e===null||ut||(e=e.dependencies,e!==null&&hi(e)&&(ut=!0))}function ah(e,n,l,i){we=e;var u=0;do{if(Kl&&(Fl=null),tr=0,Kl=!1,25<=u)throw Error(r(301));if(u+=1,ct=Ge=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=$h,m=n(l,i)}while(Kl);return m}function I2(){var e=D.H,n=e.useState()[0];return n=typeof n.then=="function"?nr(n):n,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(we.flags|=1024),n}function Tu(){var e=Ti!==0;return Ti=0,e}function Mu(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function Ru(e){if(Ei){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ei=!1}no=0,ct=Ge=we=null,Kl=!1,tr=Ti=0,Fl=null}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?we.memoizedState=ct=e:ct=ct.next=e,ct}function rt(){if(Ge===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var n=ct===null?we.memoizedState:ct.next;if(n!==null)ct=n,Ge=e;else{if(e===null)throw we.alternate===null?Error(r(467)):Error(r(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},ct===null?we.memoizedState=ct=e:ct=ct.next=e}return ct}function Mi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nr(e){var n=tr;return tr+=1,Fl===null&&(Fl=[]),e=Ip(Fl,e,n),n=we,(ct===null?n.memoizedState:ct.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?Uh:Bu),e}function Ri(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nr(e);if(e.$$typeof===A)return xt(e)}throw Error(r(438,String(e)))}function _u(e){var n=null,l=we.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var i=we.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=Mi(),we.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]=Q;return n.index++,l}function oo(e,n){return typeof n=="function"?n(e):n}function _i(e){var n=rt();return ju(n,Ge,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 T=b=null,j=null,q=n,X=!1;do{var K=q.lane&-536870913;if(K!==q.lane?(je&K)===K:(no&K)===K){var Y=q.revertLane;if(Y===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),K===Yl&&(X=!0);else if((no&Y)===Y){q=q.next,Y===Yl&&(X=!0);continue}else K={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},j===null?(T=j=K,b=m):j=j.next=K,we.lanes|=Y,Vo|=Y;K=q.action,gl&&l(m,K),m=q.hasEagerState?q.eagerState:l(m,K)}else Y={lane:K,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},j===null?(T=j=Y,b=m):j=j.next=Y,we.lanes|=K,Vo|=K;q=q.next}while(q!==null&&q!==n);if(j===null?b=m:j.next=T,!Pt(m,e.memoizedState)&&(ut=!0,X&&(l=Pl,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 Ou(e){var n=rt(),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);Pt(m,n.memoizedState)||(ut=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),l.lastRenderedState=m}return[m,i]}function rh(e,n,l){var i=we,u=rt(),m=Ne;if(m){if(l===void 0)throw Error(r(407));l=l()}else l=n();var b=!Pt((Ge||u).memoizedState,l);if(b&&(u.memoizedState=l,ut=!0),u=u.queue,Hu(ch.bind(null,i,u,e),[e]),u.getSnapshot!==n||b||ct!==null&&ct.memoizedState.tag&1){if(i.flags|=2048,Jl(9,{destroy:void 0},sh.bind(null,i,u,l,n),null),Ye===null)throw Error(r(349));m||(no&127)!==0||ih(i,n,l)}return l}function ih(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=we.updateQueue,n===null?(n=Mi(),we.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function sh(e,n,l,i){n.value=l,n.getSnapshot=i,uh(n)&&fh(e)}function ch(e,n,l){return l(function(){uh(n)&&fh(e)})}function uh(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Pt(e,l)}catch{return!0}}function fh(e){var n=il(e,2);n!==null&&Vt(n,e,2)}function Nu(e){var n=Ot();if(typeof e=="function"){var l=e;if(e=l(),gl){wo(!0);try{l()}finally{wo(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e},n}function dh(e,n,l,i){return e.baseState=l,ju(e,Ge,typeof i=="function"?i:oo)}function K2(e,n,l,i,u){if(Ni(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,mh(n,m)):(m.next=l.next,n.pending=l.next=m)}}function mh(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 T=l(u,i),j=D.S;j!==null&&j(b,T),ph(e,n,T)}catch(q){Au(e,n,q)}finally{m!==null&&b.types!==null&&(m.types=b.types),D.T=m}}else try{m=l(u,i),ph(e,n,m)}catch(q){Au(e,n,q)}}function ph(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){hh(e,n,i)},function(i){return Au(e,n,i)}):hh(e,n,l)}function hh(e,n,l){n.status="fulfilled",n.value=l,gh(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,mh(e,l)))}function Au(e,n,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=l,gh(n),n=n.next;while(n!==i)}e.action=null}function gh(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function vh(e,n){return n}function yh(e,n){if(Ne){var l=Ye.formState;if(l!==null){e:{var i=we;if(Ne){if(Ie){t:{for(var u=Ie,m=un;u.nodeType!==8;){if(!m){u=null;break t}if(u=dn(u.nextSibling),u===null){u=null;break t}}m=u.data,u=m==="F!"||m==="F"?u:null}if(u){Ie=dn(u.nextSibling),i=u.data==="F!";break e}}_o(i)}i=!1}i&&(n=l[0])}}return l=Ot(),l.memoizedState=l.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vh,lastRenderedState:n},l.queue=i,l=Vh.bind(null,we,i),i.dispatch=l,i=Nu(!1),m=ku.bind(null,we,!1,i.queue),i=Ot(),u={state:n,dispatch:null,action:e,pending:null},i.queue=u,l=K2.bind(null,we,u,m,l),u.dispatch=l,i.memoizedState=e,[n,l,!1]}function bh(e){var n=rt();return xh(n,Ge,e)}function xh(e,n,l){if(n=ju(e,n,vh)[0],e=_i(oo)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=nr(n)}catch(b){throw b===Xl?yi:b}else i=n;n=rt();var u=n.queue,m=u.dispatch;return l!==n.memoizedState&&(we.flags|=2048,Jl(9,{destroy:void 0},F2.bind(null,u,l),null)),[i,m,e]}function F2(e,n){e.action=n}function Sh(e){var n=rt(),l=Ge;if(l!==null)return xh(n,l,e);rt(),n=n.memoizedState,l=rt();var i=l.queue.dispatch;return l.memoizedState=e,[n,i,!1]}function Jl(e,n,l,i){return e={tag:e,create:l,deps:i,inst:n,next:null},n=we.updateQueue,n===null&&(n=Mi(),we.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 Ch(){return rt().memoizedState}function ji(e,n,l,i){var u=Ot();we.flags|=e,u.memoizedState=Jl(1|n,{destroy:void 0},l,i===void 0?null:i)}function Oi(e,n,l,i){var u=rt();i=i===void 0?null:i;var m=u.memoizedState.inst;Ge!==null&&i!==null&&wu(i,Ge.memoizedState.deps)?u.memoizedState=Jl(n,m,l,i):(we.flags|=e,u.memoizedState=Jl(1|n,m,l,i))}function wh(e,n){ji(8390656,8,e,n)}function Hu(e,n){Oi(2048,8,e,n)}function J2(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=Mi(),we.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function Eh(e){var n=rt().memoizedState;return J2({ref:n,nextImpl:e}),function(){if((ke&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function Th(e,n){return Oi(4,2,e,n)}function Mh(e,n){return Oi(4,4,e,n)}function Rh(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 _h(e,n,l){l=l!=null?l.concat([e]):null,Oi(4,4,Rh.bind(null,n,e),l)}function Du(){}function jh(e,n){var l=rt();n=n===void 0?null:n;var i=l.memoizedState;return n!==null&&wu(n,i[1])?i[0]:(l.memoizedState=[e,n],e)}function Oh(e,n){var l=rt();n=n===void 0?null:n;var i=l.memoizedState;if(n!==null&&wu(n,i[1]))return i[0];if(i=e(),gl){wo(!0);try{e()}finally{wo(!1)}}return l.memoizedState=[i,n],i}function zu(e,n,l){return l===void 0||(no&1073741824)!==0&&(je&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=N1(),we.lanes|=e,Vo|=e,l)}function Nh(e,n,l,i){return Pt(l,n)?l:Il.current!==null?(e=zu(e,l,i),Pt(e,n)||(ut=!0),e):(no&42)===0||(no&1073741824)!==0&&(je&261930)===0?(ut=!0,e.memoizedState=l):(e=N1(),we.lanes|=e,Vo|=e,n)}function Ah(e,n,l,i,u){var m=B.p;B.p=m!==0&&8>m?m:8;var b=D.T,T={};D.T=T,ku(e,!1,n,l);try{var j=u(),q=D.S;if(q!==null&&q(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var X=X2(j,i);or(e,n,X,Jt(e))}else or(e,n,i,Jt(e))}catch(K){or(e,n,{then:function(){},status:"rejected",reason:K},Jt())}finally{B.p=m,b!==null&&T.types!==null&&(b.types=T.types),D.T=b}}function W2(){}function Lu(e,n,l,i){if(e.tag!==5)throw Error(r(476));var u=Hh(e).queue;Ah(e,u,n,U,l===null?W2:function(){return Dh(e),l(i)})}function Hh(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:U},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Dh(e){var n=Hh(e);n.next===null&&(n=e.alternate.memoizedState),or(e,n.next.queue,{},Jt())}function Vu(){return xt(xr)}function zh(){return rt().memoizedState}function Lh(){return rt().memoizedState}function ex(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=Jt();e=No(l);var i=Ao(n,e,l);i!==null&&(Vt(i,n,l),Ja(i,n,l)),n={cache:du()},e.payload=n;return}n=n.return}}function tx(e,n,l){var i=Jt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ni(e)?kh(n,l):(l=tu(e,n,l,i),l!==null&&(Vt(l,e,i),Bh(l,n,i)))}function Vh(e,n,l){var i=Jt();or(e,n,l,i)}function or(e,n,l,i){var u={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ni(e))kh(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,T=m(b,l);if(u.hasEagerState=!0,u.eagerState=T,Pt(T,b))return fi(e,n,u,0),Ye===null&&ui(),!1}catch{}if(l=tu(e,n,u,i),l!==null)return Vt(l,e,i),Bh(l,n,i),!0}return!1}function ku(e,n,l,i){if(i={lane:2,revertLane:vf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ni(e)){if(n)throw Error(r(479))}else n=tu(e,l,i,2),n!==null&&Vt(n,e,2)}function Ni(e){var n=e.alternate;return e===we||n!==null&&n===we}function kh(e,n){Kl=Ei=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function Bh(e,n,l){if((l&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,qm(e,l)}}var lr={readContext:xt,use:Ri,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};lr.useEffectEvent=nt;var Uh={readContext:xt,use:Ri,useCallback:function(e,n){return Ot().memoizedState=[e,n===void 0?null:n],e},useContext:xt,useEffect:wh,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,ji(4194308,4,Rh.bind(null,n,e),l)},useLayoutEffect:function(e,n){return ji(4194308,4,e,n)},useInsertionEffect:function(e,n){ji(4,2,e,n)},useMemo:function(e,n){var l=Ot();n=n===void 0?null:n;var i=e();if(gl){wo(!0);try{e()}finally{wo(!1)}}return l.memoizedState=[i,n],i},useReducer:function(e,n,l){var i=Ot();if(l!==void 0){var u=l(n);if(gl){wo(!0);try{l(n)}finally{wo(!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=tx.bind(null,we,e),[i.memoizedState,e]},useRef:function(e){var n=Ot();return e={current:e},n.memoizedState=e},useState:function(e){e=Nu(e);var n=e.queue,l=Vh.bind(null,we,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:Du,useDeferredValue:function(e,n){var l=Ot();return zu(l,e,n)},useTransition:function(){var e=Nu(!1);return e=Ah.bind(null,we,e.queue,!0,!1),Ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var i=we,u=Ot();if(Ne){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),Ye===null)throw Error(r(349));(je&127)!==0||ih(i,n,l)}u.memoizedState=l;var m={value:l,getSnapshot:n};return u.queue=m,wh(ch.bind(null,i,m,e),[e]),i.flags|=2048,Jl(9,{destroy:void 0},sh.bind(null,i,m,l,n),null),l},useId:function(){var e=Ot(),n=Ye.identifierPrefix;if(Ne){var l=Dn,i=Hn;l=(i&~(1<<32-Yt(i)-1)).toString(32)+l,n="_"+n+"R_"+l,l=Ti++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=Q2++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Vu,useFormState:yh,useActionState:yh,useOptimistic:function(e){var n=Ot();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=ku.bind(null,we,!0,l),l.dispatch=n,[e,n]},useMemoCache:_u,useCacheRefresh:function(){return Ot().memoizedState=ex.bind(null,we)},useEffectEvent:function(e){var n=Ot(),l={impl:e};return n.memoizedState=l,function(){if((ke&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Bu={readContext:xt,use:Ri,useCallback:jh,useContext:xt,useEffect:Hu,useImperativeHandle:_h,useInsertionEffect:Th,useLayoutEffect:Mh,useMemo:Oh,useReducer:_i,useRef:Ch,useState:function(){return _i(oo)},useDebugValue:Du,useDeferredValue:function(e,n){var l=rt();return Nh(l,Ge.memoizedState,e,n)},useTransition:function(){var e=_i(oo)[0],n=rt().memoizedState;return[typeof e=="boolean"?e:nr(e),n]},useSyncExternalStore:rh,useId:zh,useHostTransitionStatus:Vu,useFormState:bh,useActionState:bh,useOptimistic:function(e,n){var l=rt();return dh(l,Ge,e,n)},useMemoCache:_u,useCacheRefresh:Lh};Bu.useEffectEvent=Eh;var $h={readContext:xt,use:Ri,useCallback:jh,useContext:xt,useEffect:Hu,useImperativeHandle:_h,useInsertionEffect:Th,useLayoutEffect:Mh,useMemo:Oh,useReducer:Ou,useRef:Ch,useState:function(){return Ou(oo)},useDebugValue:Du,useDeferredValue:function(e,n){var l=rt();return Ge===null?zu(l,e,n):Nh(l,Ge.memoizedState,e,n)},useTransition:function(){var e=Ou(oo)[0],n=rt().memoizedState;return[typeof e=="boolean"?e:nr(e),n]},useSyncExternalStore:rh,useId:zh,useHostTransitionStatus:Vu,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,n){var l=rt();return Ge!==null?dh(l,Ge,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:_u,useCacheRefresh:Lh};$h.useEffectEvent=Eh;function Uu(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 $u={enqueueSetState:function(e,n,l){e=e._reactInternals;var i=Jt(),u=No(i);u.payload=n,l!=null&&(u.callback=l),n=Ao(e,u,i),n!==null&&(Vt(n,e,i),Ja(n,e,i))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var i=Jt(),u=No(i);u.tag=1,u.payload=n,l!=null&&(u.callback=l),n=Ao(e,u,i),n!==null&&(Vt(n,e,i),Ja(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Jt(),i=No(l);i.tag=2,n!=null&&(i.callback=n),n=Ao(e,i,l),n!==null&&(Vt(n,e,l),Ja(n,e,l))}};function Gh(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?!qa(l,i)||!qa(u,m):!0}function Zh(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&&$u.enqueueReplaceState(n,n.state,null)}function vl(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 qh(e){ci(e)}function Yh(e){console.error(e)}function Ph(e){ci(e)}function Ai(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function Xh(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 Gu(e,n,l){return l=No(l),l.tag=3,l.payload={element:null},l.callback=function(){Ai(e,n)},l}function Qh(e){return e=No(e),e.tag=3,e}function Ih(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(){Xh(n,l,i)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Xh(n,l,i),typeof u!="function"&&(ko===null?ko=new Set([this]):ko.add(this));var T=i.stack;this.componentDidCatch(i.value,{componentStack:T!==null?T:""})})}function nx(e,n,l,i,u){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=l.alternate,n!==null&&ql(n,l,u,!0),l=Qt.current,l!==null){switch(l.tag){case 31:case 13:return fn===null?qi():l.alternate===null&&ot===0&&(ot=3),l.flags&=-257,l.flags|=65536,l.lanes=u,i===bi?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([i]):n.add(i),pf(e,i,u)),!1;case 22:return l.flags|=65536,i===bi?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)),pf(e,i,u)),!1}throw Error(r(435,l.tag))}return pf(e,i,u),qi(),!1}if(Ne)return n=Qt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,i!==iu&&(e=Error(r(422),{cause:i}),Xa(rn(e,l)))):(i!==iu&&(n=Error(r(423),{cause:i}),Xa(rn(n,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=rn(i,l),u=Gu(e.stateNode,i,u),yu(e,u),ot!==4&&(ot=2)),!1;var m=Error(r(520),{cause:i});if(m=rn(m,l),dr===null?dr=[m]:dr.push(m),ot!==4&&(ot=2),n===null)return!0;i=rn(i,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=Gu(l.stateNode,i,e),yu(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"&&(ko===null||!ko.has(m))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Qh(u),Ih(u,e,l,i),yu(l,u),!1}l=l.return}while(l!==null);return!1}var Zu=Error(r(461)),ut=!1;function St(e,n,l,i){n.child=e===null?Wp(n,null,l,i):hl(n,e.child,l,i)}function Kh(e,n,l,i,u){l=l.render;var m=n.ref;if("ref"in i){var b={};for(var T in i)T!=="ref"&&(b[T]=i[T])}else b=i;return fl(n),i=Eu(e,n,l,b,m,u),T=Tu(),e!==null&&!ut?(Mu(e,n,u),lo(e,n,u)):(Ne&&T&&au(n),n.flags|=1,St(e,n,i,u),n.child)}function Fh(e,n,l,i,u){if(e===null){var m=l.type;return typeof m=="function"&&!nu(m)&&m.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=m,Jh(e,n,m,i,u)):(e=mi(l.type,null,i,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Fu(e,u)){var b=m.memoizedProps;if(l=l.compare,l=l!==null?l:qa,l(b,i)&&e.ref===n.ref)return lo(e,n,u)}return n.flags|=1,e=Jn(m,i),e.ref=n.ref,e.return=n,n.child=e}function Jh(e,n,l,i,u){if(e!==null){var m=e.memoizedProps;if(qa(m,i)&&e.ref===n.ref)if(ut=!1,n.pendingProps=i=m,Fu(e,u))(e.flags&131072)!==0&&(ut=!0);else return n.lanes=e.lanes,lo(e,n,u)}return qu(e,n,l,i,u)}function Wh(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 e1(e,n,m,l,i)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&vi(n,m!==null?m.cachePool:null),m!==null?nh(n,m):xu(),oh(n);else return i=n.lanes=536870912,e1(e,n,m!==null?m.baseLanes|l:l,l,i)}else m!==null?(vi(n,m.cachePool),nh(n,m),Do(),n.memoizedState=null):(e!==null&&vi(n,null),xu(),Do());return St(e,n,u,l),n.child}function ar(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function e1(e,n,l,i,u){var m=pu();return m=m===null?null:{parent:st._currentValue,pool:m},n.memoizedState={baseLanes:l,cachePool:m},e!==null&&vi(n,null),xu(),oh(n),e!==null&&ql(e,n,i,!0),n.childLanes=u,null}function Hi(e,n){return n=zi({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function t1(e,n,l){return hl(n,e.child,null,l),e=Hi(n,n.pendingProps),e.flags|=2,It(n),n.memoizedState=null,e}function ox(e,n,l){var i=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ne){if(i.mode==="hidden")return e=Hi(n,i),n.lanes=536870912,ar(null,e);if(Cu(n),(e=Ie)?(e=mg(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Mo!==null?{id:Hn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},l=kp(e),l.return=n,n.child=l,bt=n,Ie=null)):e=null,e===null)throw _o(n);return n.lanes=536870912,null}return Hi(n,i)}var m=e.memoizedState;if(m!==null){var b=m.dehydrated;if(Cu(n),u)if(n.flags&256)n.flags&=-257,n=t1(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(ut||ql(e,n,l,!1),u=(l&e.childLanes)!==0,ut||u){if(i=Ye,i!==null&&(b=Ym(i,l),b!==0&&b!==m.retryLane))throw m.retryLane=b,il(e,b),Vt(i,e,b),Zu;qi(),n=t1(e,n,l)}else e=m.treeContext,Ie=dn(b.nextSibling),bt=n,Ne=!0,Ro=null,un=!1,e!==null&&$p(n,e),n=Hi(n,i),n.flags|=4096;return n}return e=Jn(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Di(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 qu(e,n,l,i,u){return fl(n),l=Eu(e,n,l,i,void 0,u),i=Tu(),e!==null&&!ut?(Mu(e,n,u),lo(e,n,u)):(Ne&&i&&au(n),n.flags|=1,St(e,n,l,u),n.child)}function n1(e,n,l,i,u,m){return fl(n),n.updateQueue=null,l=ah(n,i,l,u),lh(e),i=Tu(),e!==null&&!ut?(Mu(e,n,m),lo(e,n,m)):(Ne&&i&&au(n),n.flags|=1,St(e,n,l,m),n.child)}function o1(e,n,l,i,u){if(fl(n),n.stateNode===null){var m=Ul,b=l.contextType;typeof b=="object"&&b!==null&&(m=xt(b)),m=new l(i,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=$u,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=i,m.state=n.memoizedState,m.refs={},gu(n),b=l.contextType,m.context=typeof b=="object"&&b!==null?xt(b):Ul,m.state=n.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Uu(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&&$u.enqueueReplaceState(m,m.state,null),er(n,i,m,u),Wa(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){m=n.stateNode;var T=n.memoizedProps,j=vl(l,T);m.props=j;var q=m.context,X=l.contextType;b=Ul,typeof X=="object"&&X!==null&&(b=xt(X));var K=l.getDerivedStateFromProps;X=typeof K=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=n.pendingProps!==T,X||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||q!==b)&&Zh(n,m,i,b),Oo=!1;var Y=n.memoizedState;m.state=Y,er(n,i,m,u),Wa(),q=n.memoizedState,T||Y!==q||Oo?(typeof K=="function"&&(Uu(n,l,K,i),q=n.memoizedState),(j=Oo||Gh(n,l,j,i,Y,q,b))?(X||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=q),m.props=i,m.state=q,m.context=b,i=j):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{m=n.stateNode,vu(e,n),b=n.memoizedProps,X=vl(l,b),m.props=X,K=n.pendingProps,Y=m.context,q=l.contextType,j=Ul,typeof q=="object"&&q!==null&&(j=xt(q)),T=l.getDerivedStateFromProps,(q=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(b!==K||Y!==j)&&Zh(n,m,i,j),Oo=!1,Y=n.memoizedState,m.state=Y,er(n,i,m,u),Wa();var P=n.memoizedState;b!==K||Y!==P||Oo||e!==null&&e.dependencies!==null&&hi(e.dependencies)?(typeof T=="function"&&(Uu(n,l,T,i),P=n.memoizedState),(X=Oo||Gh(n,l,X,i,Y,P,j)||e!==null&&e.dependencies!==null&&hi(e.dependencies))?(q||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(i,P,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(i,P,j)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=P),m.props=i,m.state=P,m.context=j,i=X):(typeof m.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),i=!1)}return m=i,Di(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=hl(n,e.child,null,u),n.child=hl(n,null,l,u)):St(e,n,l,u),n.memoizedState=m.state,e=n.child):e=lo(e,n,u),e}function l1(e,n,l,i){return cl(),n.flags|=256,St(e,n,l,i),n.child}var Yu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:Xp()}}function Xu(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Ft),e}function a1(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:(at.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ne){if(u?Ho(n):Do(),(e=Ie)?(e=mg(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Mo!==null?{id:Hn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},l=kp(e),l.return=n,n.child=l,bt=n,Ie=null)):e=null,e===null)throw _o(n);return Of(e)?n.lanes=32:n.lanes=536870912,null}var T=i.children;return i=i.fallback,u?(Do(),u=n.mode,T=zi({mode:"hidden",children:T},u),i=sl(i,u,l,null),T.return=n,i.return=n,T.sibling=i,n.child=T,i=n.child,i.memoizedState=Pu(l),i.childLanes=Xu(e,b,l),n.memoizedState=Yu,ar(null,i)):(Ho(n),Qu(n,T))}var j=e.memoizedState;if(j!==null&&(T=j.dehydrated,T!==null)){if(m)n.flags&256?(Ho(n),n.flags&=-257,n=Iu(e,n,l)):n.memoizedState!==null?(Do(),n.child=e.child,n.flags|=128,n=null):(Do(),T=i.fallback,u=n.mode,i=zi({mode:"visible",children:i.children},u),T=sl(T,u,l,null),T.flags|=2,i.return=n,T.return=n,i.sibling=T,n.child=i,hl(n,e.child,null,l),i=n.child,i.memoizedState=Pu(l),i.childLanes=Xu(e,b,l),n.memoizedState=Yu,n=ar(null,i));else if(Ho(n),Of(T)){if(b=T.nextSibling&&T.nextSibling.dataset,b)var q=b.dgst;b=q,i=Error(r(419)),i.stack="",i.digest=b,Xa({value:i,source:null,stack:null}),n=Iu(e,n,l)}else if(ut||ql(e,n,l,!1),b=(l&e.childLanes)!==0,ut||b){if(b=Ye,b!==null&&(i=Ym(b,l),i!==0&&i!==j.retryLane))throw j.retryLane=i,il(e,i),Vt(b,e,i),Zu;jf(T)||qi(),n=Iu(e,n,l)}else jf(T)?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,Ie=dn(T.nextSibling),bt=n,Ne=!0,Ro=null,un=!1,e!==null&&$p(n,e),n=Qu(n,i.children),n.flags|=4096);return n}return u?(Do(),T=i.fallback,u=n.mode,j=e.child,q=j.sibling,i=Jn(j,{mode:"hidden",children:i.children}),i.subtreeFlags=j.subtreeFlags&65011712,q!==null?T=Jn(q,T):(T=sl(T,u,l,null),T.flags|=2),T.return=n,i.return=n,i.sibling=T,n.child=i,ar(null,i),i=n.child,T=e.child.memoizedState,T===null?T=Pu(l):(u=T.cachePool,u!==null?(j=st._currentValue,u=u.parent!==j?{parent:j,pool:j}:u):u=Xp(),T={baseLanes:T.baseLanes|l,cachePool:u}),i.memoizedState=T,i.childLanes=Xu(e,b,l),n.memoizedState=Yu,ar(e.child,i)):(Ho(n),l=e.child,e=l.sibling,l=Jn(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 Qu(e,n){return n=zi({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function zi(e,n){return e=Xt(22,e,null,n),e.lanes=0,e}function Iu(e,n,l){return hl(n,e.child,null,l),e=Qu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function r1(e,n,l){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),uu(e.return,n,l)}function Ku(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 i1(e,n,l){var i=n.pendingProps,u=i.revealOrder,m=i.tail;i=i.children;var b=at.current,T=(b&2)!==0;if(T?(b=b&1|2,n.flags|=128):b&=1,F(at,b),St(e,n,i,l),i=Ne?Pa:0,!T&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&r1(e,l,n);else if(e.tag===19)r1(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&&wi(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=n.child,n.child=null):(u=l.sibling,l.sibling=null),Ku(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&&wi(e)===null){n.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}Ku(n,!0,l,null,m,i);break;case"together":Ku(n,!1,null,null,void 0,i);break;default:n.memoizedState=null}return n.child}function lo(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Vo|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(ql(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=Jn(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Jn(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Fu(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&hi(e)))}function lx(e,n,l){switch(n.tag){case 3:Se(n,n.stateNode.containerInfo),jo(n,st,e.memoizedState.cache),cl();break;case 27:case 5:We(n);break;case 4:Se(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,Cu(n),null;break;case 13:var i=n.memoizedState;if(i!==null)return i.dehydrated!==null?(Ho(n),n.flags|=128,null):(l&n.child.childLanes)!==0?a1(e,n,l):(Ho(n),e=lo(e,n,l),e!==null?e.sibling:null);Ho(n);break;case 19:var u=(e.flags&128)!==0;if(i=(l&n.childLanes)!==0,i||(ql(e,n,l,!1),i=(l&n.childLanes)!==0),u){if(i)return i1(e,n,l);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),F(at,at.current),i)break;return null;case 22:return n.lanes=0,Wh(e,n,l,n.pendingProps);case 24:jo(n,st,e.memoizedState.cache)}return lo(e,n,l)}function s1(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)ut=!0;else{if(!Fu(e,l)&&(n.flags&128)===0)return ut=!1,lx(e,n,l);ut=(e.flags&131072)!==0}else ut=!1,Ne&&(n.flags&1048576)!==0&&Up(n,Pa,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=ml(n.elementType),n.type=e,typeof e=="function")nu(e)?(i=vl(e,i),n.tag=1,n=o1(null,n,e,i,l)):(n.tag=0,n=qu(null,n,e,i,l));else{if(e!=null){var u=e.$$typeof;if(u===H){n.tag=11,n=Kh(null,n,e,i,l);break e}else if(u===V){n.tag=14,n=Fh(null,n,e,i,l);break e}}throw n=G(e)||e,Error(r(306,n,""))}}return n;case 0:return qu(e,n,n.type,n.pendingProps,l);case 1:return i=n.type,u=vl(i,n.pendingProps),o1(e,n,i,u,l);case 3:e:{if(Se(n,n.stateNode.containerInfo),e===null)throw Error(r(387));i=n.pendingProps;var m=n.memoizedState;u=m.element,vu(e,n),er(n,i,null,l);var b=n.memoizedState;if(i=b.cache,jo(n,st,i),i!==m.cache&&fu(n,[st],l,!0),Wa(),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=l1(e,n,i,l);break e}else if(i!==u){u=rn(Error(r(424)),n),Xa(u),n=l1(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,Ie=dn(e.firstChild),bt=n,Ne=!0,Ro=null,un=!0,l=Wp(n,null,i,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(cl(),i===u){n=lo(e,n,l);break e}St(e,n,i,l)}n=n.child}return n;case 26:return Di(e,n),e===null?(l=bg(n.type,null,n.pendingProps,null))?n.memoizedState=l:Ne||(l=n.type,e=n.pendingProps,i=Fi(ue.current).createElement(l),i[yt]=n,i[Nt]=e,Ct(i,l,e),pt(i),n.stateNode=i):n.memoizedState=bg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return We(n),e===null&&Ne&&(i=n.stateNode=gg(n.type,n.pendingProps,ue.current),bt=n,un=!0,u=Ie,Go(n.type)?(Nf=u,Ie=dn(i.firstChild)):Ie=u),St(e,n,n.pendingProps.children,l),Di(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ne&&((u=i=Ie)&&(i=Dx(i,n.type,n.pendingProps,un),i!==null?(n.stateNode=i,bt=n,Ie=dn(i.firstChild),un=!1,u=!0):u=!1),u||_o(n)),We(n),u=n.type,m=n.pendingProps,b=e!==null?e.memoizedProps:null,i=m.children,Mf(u,m)?i=null:b!==null&&Mf(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=Eu(e,n,I2,null,null,l),xr._currentValue=u),Di(e,n),St(e,n,i,l),n.child;case 6:return e===null&&Ne&&((e=l=Ie)&&(l=zx(l,n.pendingProps,un),l!==null?(n.stateNode=l,bt=n,Ie=null,e=!0):e=!1),e||_o(n)),null;case 13:return a1(e,n,l);case 4:return Se(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=hl(n,null,i,l):St(e,n,i,l),n.child;case 11:return Kh(e,n,n.type,n.pendingProps,l);case 7:return St(e,n,n.pendingProps,l),n.child;case 8:return St(e,n,n.pendingProps.children,l),n.child;case 12:return St(e,n,n.pendingProps.children,l),n.child;case 10:return i=n.pendingProps,jo(n,n.type,i.value),St(e,n,i.children,l),n.child;case 9:return u=n.type._context,i=n.pendingProps.children,fl(n),u=xt(u),i=i(u),n.flags|=1,St(e,n,i,l),n.child;case 14:return Fh(e,n,n.type,n.pendingProps,l);case 15:return Jh(e,n,n.type,n.pendingProps,l);case 19:return i1(e,n,l);case 31:return ox(e,n,l);case 22:return Wh(e,n,l,n.pendingProps);case 24:return fl(n),i=xt(st),e===null?(u=pu(),u===null&&(u=Ye,m=du(),u.pooledCache=m,m.refCount++,m!==null&&(u.pooledCacheLanes|=l),u=m),n.memoizedState={parent:i,cache:u},gu(n),jo(n,st,u)):((e.lanes&l)!==0&&(vu(e,n),er(n,null,null,l),Wa()),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,st,i)):(i=m.cache,jo(n,st,i),i!==u.cache&&fu(n,[st],l,!0))),St(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function ao(e){e.flags|=4}function Ju(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(z1())e.flags|=8192;else throw pl=bi,hu}else e.flags&=-16777217}function c1(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Eg(n))if(z1())e.flags|=8192;else throw pl=bi,hu}function Li(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Gm():536870912,e.lanes|=n,na|=n)}function rr(e,n){if(!Ne)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 Ke(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 ax(e,n,l){var i=n.pendingProps;switch(ru(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(n),null;case 1:return Ke(n),null;case 3:return l=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),to(st),me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Zl(n)?ao(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,su())),Ke(n),null;case 26:var u=n.type,m=n.memoizedState;return e===null?(ao(n),m!==null?(Ke(n),c1(n,m)):(Ke(n),Ju(n,u,null,i,l))):m?m!==e.memoizedState?(ao(n),Ke(n),c1(n,m)):(Ke(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&ao(n),Ke(n),Ju(n,u,e,i,l)),null;case 27:if(it(n),l=ue.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&ao(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Ke(n),null}e=ae.current,Zl(n)?Gp(n):(e=gg(u,i,l),n.stateNode=e,ao(n))}return Ke(n),null;case 5:if(it(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&ao(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Ke(n),null}if(m=ae.current,Zl(n))Gp(n);else{var b=Fi(ue.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[yt]=n,m[Nt]=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(Ct(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&&ao(n)}}return Ke(n),Ju(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&ao(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(r(166));if(e=ue.current,Zl(n)){if(e=n.stateNode,l=n.memoizedProps,i=null,u=bt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[yt]=n,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||ag(e.nodeValue,l)),e||_o(n,!0)}else e=Fi(e).createTextNode(i),e[yt]=n,n.stateNode=e}return Ke(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(i=Zl(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[yt]=n}else cl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),e=!1}else l=su(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(It(n),n):(It(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Ke(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Zl(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[yt]=n}else cl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),u=!1}else u=su(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(It(n),n):(It(n),null)}return It(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),Li(n,n.updateQueue),Ke(n),null);case 4:return me(),e===null&&Sf(n.stateNode.containerInfo),Ke(n),null;case 10:return to(n.type),Ke(n),null;case 19:if($(at),i=n.memoizedState,i===null)return Ke(n),null;if(u=(n.flags&128)!==0,m=i.rendering,m===null)if(u)rr(i,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=wi(e),m!==null){for(n.flags|=128,rr(i,!1),e=m.updateQueue,n.updateQueue=e,Li(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Vp(l,e),l=l.sibling;return F(at,at.current&1|2),Ne&&Wn(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&jt()>$i&&(n.flags|=128,u=!0,rr(i,!1),n.lanes=4194304)}else{if(!u)if(e=wi(m),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Li(n,e),rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!m.alternate&&!Ne)return Ke(n),null}else 2*jt()-i.renderingStartTime>$i&&l!==536870912&&(n.flags|=128,u=!0,rr(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=at.current,F(at,u?l&1|2:l&1),Ne&&Wn(n,i.treeForkCount),e):(Ke(n),null);case 22:case 23:return It(n),Su(),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&&(Ke(n),n.subtreeFlags&6&&(n.flags|=8192)):Ke(n),l=n.updateQueue,l!==null&&Li(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&&$(dl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),to(st),Ke(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function rx(e,n){switch(ru(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return to(st),me(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return it(n),null;case 31:if(n.memoizedState!==null){if(It(n),n.alternate===null)throw Error(r(340));cl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(It(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));cl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(at),null;case 4:return me(),null;case 10:return to(n.type),null;case 22:case 23:return It(n),Su(),e!==null&&$(dl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return to(st),null;case 25:return null;default:return null}}function u1(e,n){switch(ru(n),n.tag){case 3:to(st),me();break;case 26:case 27:case 5:it(n);break;case 4:me();break;case 31:n.memoizedState!==null&&It(n);break;case 13:It(n);break;case 19:$(at);break;case 10:to(n.type);break;case 22:case 23:It(n),Su(),e!==null&&$(dl);break;case 24:to(st)}}function ir(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(T){$e(n,n.return,T)}}function zo(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,T=b.destroy;if(T!==void 0){b.destroy=void 0,u=n;var j=l,q=T;try{q()}catch(X){$e(u,j,X)}}}i=i.next}while(i!==m)}}catch(X){$e(n,n.return,X)}}function f1(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{th(n,l)}catch(i){$e(e,e.return,i)}}}function d1(e,n,l){l.props=vl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){$e(e,n,i)}}function sr(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){$e(e,n,u)}}function zn(e,n){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(u){$e(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){$e(e,n,u)}else l.current=null}function m1(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){$e(e,e.return,u)}}function Wu(e,n,l){try{var i=e.stateNode;_x(i,e.type,l,n),i[Nt]=n}catch(u){$e(e,e.return,u)}}function p1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Go(e.type)||e.tag===4}function ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p1(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&&Go(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 tf(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=Kn));else if(i!==4&&(i===27&&Go(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(tf(e,n,l),e=e.sibling;e!==null;)tf(e,n,l),e=e.sibling}function Vi(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&&Go(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Vi(e,n,l),e=e.sibling;e!==null;)Vi(e,n,l),e=e.sibling}function h1(e){var n=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);Ct(n,i,l),n[yt]=e,n[Nt]=l}catch(m){$e(e,e.return,m)}}var ro=!1,ft=!1,nf=!1,g1=typeof WeakSet=="function"?WeakSet:Set,ht=null;function ix(e,n){if(e=e.containerInfo,Ef=ls,e=_p(e),Ic(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,T=-1,j=-1,q=0,X=0,K=e,Y=null;t:for(;;){for(var P;K!==l||u!==0&&K.nodeType!==3||(T=b+u),K!==m||i!==0&&K.nodeType!==3||(j=b+i),K.nodeType===3&&(b+=K.nodeValue.length),(P=K.firstChild)!==null;)Y=K,K=P;for(;;){if(K===e)break t;if(Y===l&&++q===u&&(T=b),Y===m&&++X===i&&(j=b),(P=K.nextSibling)!==null)break;K=Y,Y=K.parentNode}K=P}l=T===-1||j===-1?null:{start:T,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(Tf={focusedElem:e,selectionRange:l},ls=!1,ht=n;ht!==null;)if(n=ht,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ht=e;else for(;ht!==null;){switch(n=ht,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 ce=vl(l.type,u);e=i.getSnapshotBeforeUpdate(ce,m),i.__reactInternalSnapshotBeforeUpdate=e}catch(ye){$e(l,l.return,ye)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)_f(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_f(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,ht=e;break}ht=n.return}}function v1(e,n,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:so(e,l),i&4&&ir(5,l);break;case 1:if(so(e,l),i&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(b){$e(l,l.return,b)}else{var u=vl(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){$e(l,l.return,b)}}i&64&&f1(l),i&512&&sr(l,l.return);break;case 3:if(so(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{th(e,n)}catch(b){$e(l,l.return,b)}}break;case 27:n===null&&i&4&&h1(l);case 26:case 5:so(e,l),n===null&&i&4&&m1(l),i&512&&sr(l,l.return);break;case 12:so(e,l);break;case 31:so(e,l),i&4&&x1(e,l);break;case 13:so(e,l),i&4&&S1(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gx.bind(null,l),Lx(e,l))));break;case 22:if(i=l.memoizedState!==null||ro,!i){n=n!==null&&n.memoizedState!==null||ft,u=ro;var m=ft;ro=i,(ft=n)&&!m?co(e,l,(l.subtreeFlags&8772)!==0):so(e,l),ro=u,ft=m}break;case 30:break;default:so(e,l)}}function y1(e){var n=e.alternate;n!==null&&(e.alternate=null,y1(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Ac(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 et=null,Ht=!1;function io(e,n,l){for(l=l.child;l!==null;)b1(e,n,l),l=l.sibling}function b1(e,n,l){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Aa,l)}catch{}switch(l.tag){case 26:ft||zn(l,n),io(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ft||zn(l,n);var i=et,u=Ht;Go(l.type)&&(et=l.stateNode,Ht=!1),io(e,n,l),vr(l.stateNode),et=i,Ht=u;break;case 5:ft||zn(l,n);case 6:if(i=et,u=Ht,et=null,io(e,n,l),et=i,Ht=u,et!==null)if(Ht)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(l.stateNode)}catch(m){$e(l,n,m)}else try{et.removeChild(l.stateNode)}catch(m){$e(l,n,m)}break;case 18:et!==null&&(Ht?(e=et,fg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ua(e)):fg(et,l.stateNode));break;case 4:i=et,u=Ht,et=l.stateNode.containerInfo,Ht=!0,io(e,n,l),et=i,Ht=u;break;case 0:case 11:case 14:case 15:zo(2,l,n),ft||zo(4,l,n),io(e,n,l);break;case 1:ft||(zn(l,n),i=l.stateNode,typeof i.componentWillUnmount=="function"&&d1(l,n,i)),io(e,n,l);break;case 21:io(e,n,l);break;case 22:ft=(i=ft)||l.memoizedState!==null,io(e,n,l),ft=i;break;default:io(e,n,l)}}function x1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ua(e)}catch(l){$e(n,n.return,l)}}}function S1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ua(e)}catch(l){$e(n,n.return,l)}}function sx(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new g1),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new g1),n;default:throw Error(r(435,e.tag))}}function ki(e,n){var l=sx(e);n.forEach(function(i){if(!l.has(i)){l.add(i);var u=vx.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,T=b;e:for(;T!==null;){switch(T.tag){case 27:if(Go(T.type)){et=T.stateNode,Ht=!1;break e}break;case 5:et=T.stateNode,Ht=!1;break e;case 3:case 4:et=T.stateNode.containerInfo,Ht=!0;break e}T=T.return}if(et===null)throw Error(r(160));b1(m,b,u),et=null,Ht=!1,m=u.alternate,m!==null&&(m.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)C1(n,e),n=n.sibling}var xn=null;function C1(e,n){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(n,e),zt(e),i&4&&(zo(3,e,e.return),ir(3,e),zo(5,e,e.return));break;case 1:Dt(n,e),zt(e),i&512&&(ft||l===null||zn(l,l.return)),i&64&&ro&&(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=xn;if(Dt(n,e),zt(e),i&512&&(ft||l===null||zn(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[za]||m[yt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=u.createElement(i),u.head.insertBefore(m,u.querySelector("head > title"))),Ct(m,i,l),m[yt]=e,pt(m),i=m;break e;case"link":var b=Cg("link","href",u).get(i+(l.href||""));if(b){for(var T=0;T<b.length;T++)if(m=b[T],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(T,1);break t}}m=u.createElement(i),Ct(m,i,l),u.head.appendChild(m);break;case"meta":if(b=Cg("meta","content",u).get(i+(l.content||""))){for(T=0;T<b.length;T++)if(m=b[T],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(T,1);break t}}m=u.createElement(i),Ct(m,i,l),u.head.appendChild(m);break;default:throw Error(r(468,i))}m[yt]=e,pt(m),i=m}e.stateNode=i}else wg(u,e.type,e.stateNode);else e.stateNode=Sg(u,i,e.memoizedProps);else m!==i?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,i===null?wg(u,e.type,e.stateNode):Sg(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Wu(e,e.memoizedProps,l.memoizedProps)}break;case 27:Dt(n,e),zt(e),i&512&&(ft||l===null||zn(l,l.return)),l!==null&&i&4&&Wu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Dt(n,e),zt(e),i&512&&(ft||l===null||zn(l,l.return)),e.flags&32){u=e.stateNode;try{Hl(u,"")}catch(ce){$e(e,e.return,ce)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,Wu(e,u,l!==null?l.memoizedProps:u)),i&1024&&(nf=!0);break;case 6:if(Dt(n,e),zt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(ce){$e(e,e.return,ce)}}break;case 3:if(es=null,u=xn,xn=Ji(n.containerInfo),Dt(n,e),xn=u,zt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{ua(n.containerInfo)}catch(ce){$e(e,e.return,ce)}nf&&(nf=!1,w1(e));break;case 4:i=xn,xn=Ji(e.stateNode.containerInfo),Dt(n,e),zt(e),xn=i;break;case 12:Dt(n,e),zt(e);break;case 31:Dt(n,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ki(e,i)));break;case 13:Dt(n,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ui=jt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ki(e,i)));break;case 22:u=e.memoizedState!==null;var j=l!==null&&l.memoizedState!==null,q=ro,X=ft;if(ro=q||u,ft=X||j,Dt(n,e),ft=X,ro=q,zt(e),i&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(l===null||j||ro||ft||yl(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{T=j.stateNode;var K=j.memoizedProps.style,Y=K!=null&&K.hasOwnProperty("display")?K.display:null;T.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(ce){$e(j,j.return,ce)}}}else if(n.tag===6){if(l===null){j=n;try{j.stateNode.nodeValue=u?"":j.memoizedProps}catch(ce){$e(j,j.return,ce)}}}else if(n.tag===18){if(l===null){j=n;try{var P=j.stateNode;u?dg(P,!0):dg(j.stateNode,!1)}catch(ce){$e(j,j.return,ce)}}}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,ki(e,l))));break;case 19:Dt(n,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ki(e,i)));break;case 30:break;case 21:break;default:Dt(n,e),zt(e)}}function zt(e){var n=e.flags;if(n&2){try{for(var l,i=e.return;i!==null;){if(p1(i)){l=i;break}i=i.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var u=l.stateNode,m=ef(e);Vi(e,m,u);break;case 5:var b=l.stateNode;l.flags&32&&(Hl(b,""),l.flags&=-33);var T=ef(e);Vi(e,T,b);break;case 3:case 4:var j=l.stateNode.containerInfo,q=ef(e);tf(e,q,j);break;default:throw Error(r(161))}}catch(X){$e(e,e.return,X)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function w1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;w1(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function so(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)v1(e,n.alternate,n),n=n.sibling}function yl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:zo(4,n,n.return),yl(n);break;case 1:zn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&d1(n,n.return,l),yl(n);break;case 27:vr(n.stateNode);case 26:case 5:zn(n,n.return),yl(n);break;case 22:n.memoizedState===null&&yl(n);break;case 30:yl(n);break;default:yl(n)}e=e.sibling}}function co(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:co(u,m,l),ir(4,m);break;case 1:if(co(u,m,l),i=m,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(q){$e(i,i.return,q)}if(i=m,u=i.updateQueue,u!==null){var T=i.stateNode;try{var j=u.shared.hiddenCallbacks;if(j!==null)for(u.shared.hiddenCallbacks=null,u=0;u<j.length;u++)eh(j[u],T)}catch(q){$e(i,i.return,q)}}l&&b&64&&f1(m),sr(m,m.return);break;case 27:h1(m);case 26:case 5:co(u,m,l),l&&i===null&&b&4&&m1(m),sr(m,m.return);break;case 12:co(u,m,l);break;case 31:co(u,m,l),l&&b&4&&x1(u,m);break;case 13:co(u,m,l),l&&b&4&&S1(u,m);break;case 22:m.memoizedState===null&&co(u,m,l),sr(m,m.return);break;case 30:break;default:co(u,m,l)}n=n.sibling}}function of(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&&Qa(l))}function lf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Qa(e))}function Sn(e,n,l,i){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)E1(e,n,l,i),n=n.sibling}function E1(e,n,l,i){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n,l,i),u&2048&&ir(9,n);break;case 1:Sn(e,n,l,i);break;case 3:Sn(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&&Qa(e)));break;case 12:if(u&2048){Sn(e,n,l,i),e=n.stateNode;try{var m=n.memoizedProps,b=m.id,T=m.onPostCommit;typeof T=="function"&&T(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){$e(n,n.return,j)}}else Sn(e,n,l,i);break;case 31:Sn(e,n,l,i);break;case 13:Sn(e,n,l,i);break;case 23:break;case 22:m=n.stateNode,b=n.alternate,n.memoizedState!==null?m._visibility&2?Sn(e,n,l,i):cr(e,n):m._visibility&2?Sn(e,n,l,i):(m._visibility|=2,Wl(e,n,l,i,(n.subtreeFlags&10256)!==0||!1)),u&2048&&of(b,n);break;case 24:Sn(e,n,l,i),u&2048&&lf(n.alternate,n);break;default:Sn(e,n,l,i)}}function Wl(e,n,l,i,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=e,b=n,T=l,j=i,q=b.flags;switch(b.tag){case 0:case 11:case 15:Wl(m,b,T,j,u),ir(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?Wl(m,b,T,j,u):cr(m,b):(X._visibility|=2,Wl(m,b,T,j,u)),u&&q&2048&&of(b.alternate,b);break;case 24:Wl(m,b,T,j,u),u&&q&2048&&lf(b.alternate,b);break;default:Wl(m,b,T,j,u)}n=n.sibling}}function cr(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:cr(l,i),u&2048&&of(i.alternate,i);break;case 24:cr(l,i),u&2048&&lf(i.alternate,i);break;default:cr(l,i)}n=n.sibling}}var ur=8192;function ea(e,n,l){if(e.subtreeFlags&ur)for(e=e.child;e!==null;)T1(e,n,l),e=e.sibling}function T1(e,n,l){switch(e.tag){case 26:ea(e,n,l),e.flags&ur&&e.memoizedState!==null&&Qx(l,xn,e.memoizedState,e.memoizedProps);break;case 5:ea(e,n,l);break;case 3:case 4:var i=xn;xn=Ji(e.stateNode.containerInfo),ea(e,n,l),xn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ur,ur=16777216,ea(e,n,l),ur=i):ea(e,n,l));break;default:ea(e,n,l)}}function M1(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 fr(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];ht=i,_1(i,e)}M1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)R1(e),e=e.sibling}function R1(e){switch(e.tag){case 0:case 11:case 15:fr(e),e.flags&2048&&zo(9,e,e.return);break;case 3:fr(e);break;case 12:fr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Bi(e)):fr(e);break;default:fr(e)}}function Bi(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];ht=i,_1(i,e)}M1(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:zo(8,n,n.return),Bi(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,Bi(n));break;default:Bi(n)}e=e.sibling}}function _1(e,n){for(;ht!==null;){var l=ht;switch(l.tag){case 0:case 11:case 15:zo(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:Qa(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,ht=i;else e:for(l=e;ht!==null;){i=ht;var u=i.sibling,m=i.return;if(y1(i),i===l){ht=null;break e}if(u!==null){u.return=m,ht=u;break e}ht=m}}}var cx={getCacheForType:function(e){var n=xt(st),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return xt(st).controller.signal}},ux=typeof WeakMap=="function"?WeakMap:Map,ke=0,Ye=null,Re=null,je=0,Ue=0,Kt=null,Lo=!1,ta=!1,af=!1,uo=0,ot=0,Vo=0,bl=0,rf=0,Ft=0,na=0,dr=null,Lt=null,sf=!1,Ui=0,j1=0,$i=1/0,Gi=null,ko=null,mt=0,Bo=null,oa=null,fo=0,cf=0,uf=null,O1=null,mr=0,ff=null;function Jt(){return(ke&2)!==0&&je!==0?je&-je:D.T!==null?vf():Pm()}function N1(){if(Ft===0)if((je&536870912)===0||Ne){var e=Kr;Kr<<=1,(Kr&3932160)===0&&(Kr=262144),Ft=e}else Ft=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Ft}function Vt(e,n,l){(e===Ye&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(la(e,0),Uo(e,je,Ft,!1)),Da(e,l),((ke&2)===0||e!==Ye)&&(e===Ye&&((ke&2)===0&&(bl|=l),ot===4&&Uo(e,je,Ft,!1)),Ln(e))}function A1(e,n,l){if((ke&6)!==0)throw Error(r(327));var i=!l&&(n&127)===0&&(n&e.expiredLanes)===0||Ha(e,n),u=i?mx(e,n):mf(e,n,!0),m=i;do{if(u===0){ta&&!i&&Uo(e,n,0,!1);break}else{if(l=e.current.alternate,m&&!fx(l)){u=mf(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 T=e;u=dr;var j=T.current.memoizedState.isDehydrated;if(j&&(la(T,b).flags|=256),b=mf(T,b,!1),b!==2){if(af&&!j){T.errorRecoveryDisabledLanes|=m,bl|=m,u=4;break e}m=Lt,Lt=u,m!==null&&(Lt===null?Lt=m:Lt.push.apply(Lt,m))}u=b}if(m=!1,u!==2)continue}}if(u===1){la(e,0),Uo(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:Uo(i,n,Ft,!Lo);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(u=Ui+300-jt(),10<u)){if(Uo(i,n,Ft,!Lo),Jr(i,0,!0)!==0)break e;fo=n,i.timeoutHandle=cg(H1.bind(null,i,l,Lt,Gi,sf,n,Ft,bl,na,Lo,m,"Throttled",-0,0),u);break e}H1(i,l,Lt,Gi,sf,n,Ft,bl,na,Lo,m,null,-0,0)}}break}while(!0);Ln(e)}function H1(e,n,l,i,u,m,b,T,j,q,X,K,Y,P){if(e.timeoutHandle=-1,K=n.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kn},T1(n,m,K);var ce=(m&62914560)===m?Ui-jt():(m&4194048)===m?j1-jt():0;if(ce=Ix(K,ce),ce!==null){fo=m,e.cancelPendingCommit=ce($1.bind(null,e,n,m,l,i,u,b,T,j,X,K,null,Y,P)),Uo(e,m,b,!q);return}}$1(e,n,m,l,i,u,b,T,j)}function fx(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(!Pt(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 Uo(e,n,l,i){n&=~rf,n&=~bl,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var u=n;0<u;){var m=31-Yt(u),b=1<<m;i[m]=-1,u&=~b}l!==0&&Zm(e,l,n)}function Zi(){return(ke&6)===0?(pr(0),!1):!0}function df(){if(Re!==null){if(Ue===0)var e=Re.return;else e=Re,eo=ul=null,Ru(e),Ql=null,Ka=0,e=Re;for(;e!==null;)u1(e.alternate,e),e=e.return;Re=null}}function la(e,n){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Nx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),fo=0,df(),Ye=e,Re=l=Jn(e.current,null),je=n,Ue=0,Kt=null,Lo=!1,ta=Ha(e,n),af=!1,na=Ft=rf=bl=Vo=ot=0,Lt=dr=null,sf=!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-Yt(i),m=1<<u;n|=e[u],i&=~m}return uo=n,ui(),l}function D1(e,n){we=null,D.H=lr,n===Xl||n===yi?(n=Kp(),Ue=3):n===hu?(n=Kp(),Ue=4):Ue=n===Zu?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Kt=n,Re===null&&(ot=1,Ai(e,rn(n,e.current)))}function z1(){var e=Qt.current;return e===null?!0:(je&4194048)===je?fn===null:(je&62914560)===je||(je&536870912)!==0?e===fn:!1}function L1(){var e=D.H;return D.H=lr,e===null?lr:e}function V1(){var e=D.A;return D.A=cx,e}function qi(){ot=4,Lo||(je&4194048)!==je&&Qt.current!==null||(ta=!0),(Vo&134217727)===0&&(bl&134217727)===0||Ye===null||Uo(Ye,je,Ft,!1)}function mf(e,n,l){var i=ke;ke|=2;var u=L1(),m=V1();(Ye!==e||je!==n)&&(Gi=null,la(e,n)),n=!1;var b=ot;e:do try{if(Ue!==0&&Re!==null){var T=Re,j=Kt;switch(Ue){case 8:df(),b=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(n=!0);var q=Ue;if(Ue=0,Kt=null,aa(e,T,j,q),l&&ta){b=0;break e}break;default:q=Ue,Ue=0,Kt=null,aa(e,T,j,q)}}dx(),b=ot;break}catch(X){D1(e,X)}while(!0);return n&&e.shellSuspendCounter++,eo=ul=null,ke=i,D.H=u,D.A=m,Re===null&&(Ye=null,je=0,ui()),b}function dx(){for(;Re!==null;)k1(Re)}function mx(e,n){var l=ke;ke|=2;var i=L1(),u=V1();Ye!==e||je!==n?(Gi=null,$i=jt()+500,la(e,n)):ta=Ha(e,n);e:do try{if(Ue!==0&&Re!==null){n=Re;var m=Kt;t:switch(Ue){case 1:Ue=0,Kt=null,aa(e,n,m,1);break;case 2:case 9:if(Qp(m)){Ue=0,Kt=null,B1(n);break}n=function(){Ue!==2&&Ue!==9||Ye!==e||(Ue=7),Ln(e)},m.then(n,n);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:Qp(m)?(Ue=0,Kt=null,B1(n)):(Ue=0,Kt=null,aa(e,n,m,7));break;case 5:var b=null;switch(Re.tag){case 26:b=Re.memoizedState;case 5:case 27:var T=Re;if(b?Eg(b):T.stateNode.complete){Ue=0,Kt=null;var j=T.sibling;if(j!==null)Re=j;else{var q=T.return;q!==null?(Re=q,Yi(q)):Re=null}break t}}Ue=0,Kt=null,aa(e,n,m,5);break;case 6:Ue=0,Kt=null,aa(e,n,m,6);break;case 8:df(),ot=6;break e;default:throw Error(r(462))}}px();break}catch(X){D1(e,X)}while(!0);return eo=ul=null,D.H=i,D.A=u,ke=l,Re!==null?0:(Ye=null,je=0,ui(),ot)}function px(){for(;Re!==null&&!wc();)k1(Re)}function k1(e){var n=s1(e.alternate,e,uo);e.memoizedProps=e.pendingProps,n===null?Yi(e):Re=n}function B1(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=n1(l,n,n.pendingProps,n.type,void 0,je);break;case 11:n=n1(l,n,n.pendingProps,n.type.render,n.ref,je);break;case 5:Ru(n);default:u1(l,n),n=Re=Vp(n,uo),n=s1(l,n,uo)}e.memoizedProps=e.pendingProps,n===null?Yi(e):Re=n}function aa(e,n,l,i){eo=ul=null,Ru(n),Ql=null,Ka=0;var u=n.return;try{if(nx(e,u,n,l,je)){ot=1,Ai(e,rn(l,e.current)),Re=null;return}}catch(m){if(u!==null)throw Re=u,m;ot=1,Ai(e,rn(l,e.current)),Re=null;return}n.flags&32768?(Ne||i===1?e=!0:ta||(je&536870912)!==0?e=!1:(Lo=e=!0,(i===2||i===9||i===3||i===6)&&(i=Qt.current,i!==null&&i.tag===13&&(i.flags|=16384))),U1(n,e)):Yi(n)}function Yi(e){var n=e;do{if((n.flags&32768)!==0){U1(n,Lo);return}e=n.return;var l=ax(n.alternate,n,uo);if(l!==null){Re=l;return}if(n=n.sibling,n!==null){Re=n;return}Re=n=e}while(n!==null);ot===0&&(ot=5)}function U1(e,n){do{var l=rx(e.alternate,e);if(l!==null){l.flags&=32767,Re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){Re=e;return}Re=e=l}while(e!==null);ot=6,Re=null}function $1(e,n,l,i,u,m,b,T,j){e.cancelPendingCommit=null;do Pi();while(mt!==0);if((ke&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(m=n.lanes|n.childLanes,m|=eu,Xb(e,l,m,b,T,j),e===Ye&&(Re=Ye=null,je=0),oa=n,Bo=e,fo=l,cf=m,uf=u,O1=i,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yx(Ml,function(){return P1(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,u=B.p,B.p=2,b=ke,ke|=4;try{ix(e,n,l)}finally{ke=b,B.p=u,D.T=i}}mt=1,G1(),Z1(),q1()}}function G1(){if(mt===1){mt=0;var e=Bo,n=oa,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var i=B.p;B.p=2;var u=ke;ke|=4;try{C1(n,e);var m=Tf,b=_p(e.containerInfo),T=m.focusedElem,j=m.selectionRange;if(b!==T&&T&&T.ownerDocument&&Rp(T.ownerDocument.documentElement,T)){if(j!==null&&Ic(T)){var q=j.start,X=j.end;if(X===void 0&&(X=q),"selectionStart"in T)T.selectionStart=q,T.selectionEnd=Math.min(X,T.value.length);else{var K=T.ownerDocument||document,Y=K&&K.defaultView||window;if(Y.getSelection){var P=Y.getSelection(),ce=T.textContent.length,ye=Math.min(j.start,ce),qe=j.end===void 0?ye:Math.min(j.end,ce);!P.extend&&ye>qe&&(b=qe,qe=ye,ye=b);var L=Mp(T,ye),N=Mp(T,qe);if(L&&N&&(P.rangeCount!==1||P.anchorNode!==L.node||P.anchorOffset!==L.offset||P.focusNode!==N.node||P.focusOffset!==N.offset)){var Z=K.createRange();Z.setStart(L.node,L.offset),P.removeAllRanges(),ye>qe?(P.addRange(Z),P.extend(N.node,N.offset)):(Z.setEnd(N.node,N.offset),P.addRange(Z))}}}}for(K=[],P=T;P=P.parentNode;)P.nodeType===1&&K.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<K.length;T++){var I=K[T];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}ls=!!Ef,Tf=Ef=null}finally{ke=u,B.p=i,D.T=l}}e.current=n,mt=2}}function Z1(){if(mt===2){mt=0;var e=Bo,n=oa,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var i=B.p;B.p=2;var u=ke;ke|=4;try{v1(e,n.alternate,n)}finally{ke=u,B.p=i,D.T=l}}mt=3}}function q1(){if(mt===4||mt===3){mt=0,Ec();var e=Bo,n=oa,l=fo,i=O1;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?mt=5:(mt=0,oa=Bo=null,Y1(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ko=null),Oc(l),n=n.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Aa,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=D.T,u=B.p,B.p=2,D.T=null;try{for(var m=e.onRecoverableError,b=0;b<i.length;b++){var T=i[b];m(T.value,{componentStack:T.stack})}}finally{D.T=n,B.p=u}}(fo&3)!==0&&Pi(),Ln(e),u=e.pendingLanes,(l&261930)!==0&&(u&42)!==0?e===ff?mr++:(mr=0,ff=e):mr=0,pr(0)}}function Y1(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Qa(n)))}function Pi(){return G1(),Z1(),q1(),P1()}function P1(){if(mt!==5)return!1;var e=Bo,n=cf;cf=0;var l=Oc(fo),i=D.T,u=B.p;try{B.p=32>l?32:l,D.T=null,l=uf,uf=null;var m=Bo,b=fo;if(mt=0,oa=Bo=null,fo=0,(ke&6)!==0)throw Error(r(331));var T=ke;if(ke|=4,R1(m.current),E1(m,m.current,b,l),ke=T,pr(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Aa,m)}catch{}return!0}finally{B.p=u,D.T=i,Y1(e,n)}}function X1(e,n,l){n=rn(l,n),n=Gu(e.stateNode,n,2),e=Ao(e,n,2),e!==null&&(Da(e,2),Ln(e))}function $e(e,n,l){if(e.tag===3)X1(e,e,l);else for(;n!==null;){if(n.tag===3){X1(n,e,l);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ko===null||!ko.has(i))){e=rn(l,e),l=Qh(2),i=Ao(n,l,2),i!==null&&(Ih(l,i,n,e),Da(i,2),Ln(i));break}}n=n.return}}function pf(e,n,l){var i=e.pingCache;if(i===null){i=e.pingCache=new ux;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)||(af=!0,u.add(l),e=hx.bind(null,e,n,l),n.then(e,e))}function hx(e,n,l){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ye===e&&(je&l)===l&&(ot===4||ot===3&&(je&62914560)===je&&300>jt()-Ui?(ke&2)===0&&la(e,0):rf|=l,na===je&&(na=0)),Ln(e)}function Q1(e,n){n===0&&(n=Gm()),e=il(e,n),e!==null&&(Da(e,n),Ln(e))}function gx(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),Q1(e,l)}function vx(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),Q1(e,l)}function yx(e,n){return Xn(e,n)}var Xi=null,ra=null,hf=!1,Qi=!1,gf=!1,$o=0;function Ln(e){e!==ra&&e.next===null&&(ra===null?Xi=ra=e:ra=ra.next=e),Qi=!0,hf||(hf=!0,xx())}function pr(e,n){if(!gf&&Qi){gf=!0;do for(var l=!1,i=Xi;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var m=0;else{var b=i.suspendedLanes,T=i.pingedLanes;m=(1<<31-Yt(42|e)+1)-1,m&=u&~(b&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,J1(i,m))}else m=je,m=Jr(i,i===Ye?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(m&3)===0||Ha(i,m)||(l=!0,J1(i,m));i=i.next}while(l);gf=!1}}function bx(){I1()}function I1(){Qi=hf=!1;var e=0;$o!==0&&Ox()&&(e=$o);for(var n=jt(),l=null,i=Xi;i!==null;){var u=i.next,m=K1(i,n);m===0?(i.next=null,l===null?Xi=u:l.next=u,u===null&&(ra=l)):(l=i,(e!==0||(m&3)!==0)&&(Qi=!0)),i=u}mt!==0&&mt!==5||pr(e),$o!==0&&($o=0)}function K1(e,n){for(var l=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var b=31-Yt(m),T=1<<b,j=u[b];j===-1?((T&l)===0||(T&i)!==0)&&(u[b]=Pb(T,n)):j<=n&&(e.expiredLanes|=T),m&=~T}if(n=Ye,l=je,l=Jr(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===n&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Tl(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ha(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(i!==null&&Tl(i),Oc(l)){case 2:case 8:l=dt;break;case 32:l=Ml;break;case 268435456:l=Qr;break;default:l=Ml}return i=F1.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 F1(e,n){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Pi()&&e.callbackNode!==l)return null;var i=je;return i=Jr(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(A1(e,i,n),K1(e,jt()),e.callbackNode!=null&&e.callbackNode===l?F1.bind(null,e):null)}function J1(e,n){if(Pi())return null;A1(e,n,!0)}function xx(){Ax(function(){(ke&6)!==0?Xn(Na,bx):I1()})}function vf(){if($o===0){var e=Yl;e===0&&(e=Ir,Ir<<=1,(Ir&261888)===0&&(Ir=256)),$o=e}return $o}function W1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ni(""+e)}function eg(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 Sx(e,n,l,i,u){if(n==="submit"&&l&&l.stateNode===u){var m=W1((u[Nt]||null).action),b=i.submitter;b&&(n=(n=b[Nt]||null)?W1(n.formAction):b.getAttribute("formAction"),n!==null&&(m=n,b=null));var T=new ri("action","action",null,i,u);e.push({event:T,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($o!==0){var j=b?eg(u,b):new FormData(u);Lu(l,{pending:!0,data:j,method:u.method,action:m},null,j)}}else typeof m=="function"&&(T.preventDefault(),j=b?eg(u,b):new FormData(u),Lu(l,{pending:!0,data:j,method:u.method,action:m},m,j))},currentTarget:u}]})}}for(var yf=0;yf<Wc.length;yf++){var bf=Wc[yf],Cx=bf.toLowerCase(),wx=bf[0].toUpperCase()+bf.slice(1);bn(Cx,"on"+wx)}bn(Np,"onAnimationEnd"),bn(Ap,"onAnimationIteration"),bn(Hp,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(B2,"onTransitionRun"),bn(U2,"onTransitionStart"),bn($2,"onTransitionCancel"),bn(Dp,"onTransitionEnd"),Nl("onMouseEnter",["mouseout","mouseover"]),Nl("onMouseLeave",["mouseout","mouseover"]),Nl("onPointerEnter",["pointerout","pointerover"]),Nl("onPointerLeave",["pointerout","pointerover"]),ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hr="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(" "),Ex=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hr));function tg(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 T=i[b],j=T.instance,q=T.currentTarget;if(T=T.listener,j!==m&&u.isPropagationStopped())break e;m=T,u.currentTarget=q;try{m(u)}catch(X){ci(X)}u.currentTarget=null,m=j}else for(b=0;b<i.length;b++){if(T=i[b],j=T.instance,q=T.currentTarget,T=T.listener,j!==m&&u.isPropagationStopped())break e;m=T,u.currentTarget=q;try{m(u)}catch(X){ci(X)}u.currentTarget=null,m=j}}}}function _e(e,n){var l=n[Nc];l===void 0&&(l=n[Nc]=new Set);var i=e+"__bubble";l.has(i)||(ng(n,e,2,!1),l.add(i))}function xf(e,n,l){var i=0;n&&(i|=4),ng(l,e,i,n)}var Ii="_reactListening"+Math.random().toString(36).slice(2);function Sf(e){if(!e[Ii]){e[Ii]=!0,Im.forEach(function(l){l!=="selectionchange"&&(Ex.has(l)||xf(l,!1,e),xf(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ii]||(n[Ii]=!0,xf("selectionchange",!1,n))}}function ng(e,n,l,i){switch(Ng(n)){case 2:var u=Jx;break;case 8:u=Wx;break;default:u=Lf}l=u.bind(null,n,l,e),u=void 0,!Uc||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 Cf(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 T=i.stateNode.containerInfo;if(T===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(;T!==null;){if(b=_l(T),b===null)return;if(j=b.tag,j===5||j===6||j===26||j===27){i=m=b;continue e}T=T.parentNode}}i=i.return}ip(function(){var q=m,X=kc(l),K=[];e:{var Y=zp.get(e);if(Y!==void 0){var P=ri,ce=e;switch(e){case"keypress":if(li(l)===0)break e;case"keydown":case"keyup":P=v2;break;case"focusin":ce="focus",P=qc;break;case"focusout":ce="blur",P=qc;break;case"beforeblur":case"afterblur":P=qc;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":P=up;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=a2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=x2;break;case Np:case Ap:case Hp:P=s2;break;case Dp:P=C2;break;case"scroll":case"scrollend":P=o2;break;case"wheel":P=E2;break;case"copy":case"cut":case"paste":P=u2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=dp;break;case"toggle":case"beforetoggle":P=M2}var ye=(n&4)!==0,qe=!ye&&(e==="scroll"||e==="scrollend"),L=ye?Y!==null?Y+"Capture":null:Y;ye=[];for(var N=q,Z;N!==null;){var I=N;if(Z=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||Z===null||L===null||(I=Va(N,L),I!=null&&ye.push(gr(N,I,Z))),qe)break;N=N.return}0<ye.length&&(Y=new P(Y,ce,null,l,X),K.push({event:Y,listeners:ye}))}}if((n&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",Y&&l!==Vc&&(ce=l.relatedTarget||l.fromElement)&&(_l(ce)||ce[Rl]))break e;if((P||Y)&&(Y=X.window===X?X:(Y=X.ownerDocument)?Y.defaultView||Y.parentWindow:window,P?(ce=l.relatedTarget||l.toElement,P=q,ce=ce?_l(ce):null,ce!==null&&(qe=c(ce),ye=ce.tag,ce!==qe||ye!==5&&ye!==27&&ye!==6)&&(ce=null)):(P=null,ce=q),P!==ce)){if(ye=up,I="onMouseLeave",L="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ye=dp,I="onPointerLeave",L="onPointerEnter",N="pointer"),qe=P==null?Y:La(P),Z=ce==null?Y:La(ce),Y=new ye(I,N+"leave",P,l,X),Y.target=qe,Y.relatedTarget=Z,I=null,_l(X)===q&&(ye=new ye(L,N+"enter",ce,l,X),ye.target=Z,ye.relatedTarget=qe,I=ye),qe=I,P&&ce)t:{for(ye=Tx,L=P,N=ce,Z=0,I=L;I;I=ye(I))Z++;I=0;for(var pe=N;pe;pe=ye(pe))I++;for(;0<Z-I;)L=ye(L),Z--;for(;0<I-Z;)N=ye(N),I--;for(;Z--;){if(L===N||N!==null&&L===N.alternate){ye=L;break t}L=ye(L),N=ye(N)}ye=null}else ye=null;P!==null&&og(K,Y,P,ye,!1),ce!==null&&qe!==null&&og(K,qe,ce,ye,!0)}}e:{if(Y=q?La(q):window,P=Y.nodeName&&Y.nodeName.toLowerCase(),P==="select"||P==="input"&&Y.type==="file")var ze=xp;else if(yp(Y))if(Sp)ze=L2;else{ze=D2;var de=H2}else P=Y.nodeName,!P||P.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?q&&Lc(q.elementType)&&(ze=xp):ze=z2;if(ze&&(ze=ze(e,q))){bp(K,ze,l,X);break e}de&&de(e,Y,q),e==="focusout"&&q&&Y.type==="number"&&q.memoizedProps.value!=null&&zc(Y,"number",Y.value)}switch(de=q?La(q):window,e){case"focusin":(yp(de)||de.contentEditable==="true")&&(Vl=de,Kc=q,Ya=null);break;case"focusout":Ya=Kc=Vl=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,jp(K,l,X);break;case"selectionchange":if(k2)break;case"keydown":case"keyup":jp(K,l,X)}var Ee;if(Pc)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Ll?gp(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(mp&&l.locale!=="ko"&&(Ll||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Ll&&(Ee=sp()):(To=X,$c="value"in To?To.value:To.textContent,Ll=!0)),de=Ki(q,Oe),0<de.length&&(Oe=new fp(Oe,e,null,l,X),K.push({event:Oe,listeners:de}),Ee?Oe.data=Ee:(Ee=vp(l),Ee!==null&&(Oe.data=Ee)))),(Ee=_2?j2(e,l):O2(e,l))&&(Oe=Ki(q,"onBeforeInput"),0<Oe.length&&(de=new fp("onBeforeInput","beforeinput",null,l,X),K.push({event:de,listeners:Oe}),de.data=Ee)),Sx(K,e,q,l,X)}tg(K,n)})}function gr(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Ki(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=Va(e,l),u!=null&&i.unshift(gr(e,u,m)),u=Va(e,n),u!=null&&i.push(gr(e,u,m))),e.tag===3)return i;e=e.return}return[]}function Tx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function og(e,n,l,i,u){for(var m=n._reactName,b=[];l!==null&&l!==i;){var T=l,j=T.alternate,q=T.stateNode;if(T=T.tag,j!==null&&j===i)break;T!==5&&T!==26&&T!==27||q===null||(j=q,u?(q=Va(l,m),q!=null&&b.unshift(gr(l,q,j))):u||(q=Va(l,m),q!=null&&b.push(gr(l,q,j)))),l=l.return}b.length!==0&&e.push({event:n,listeners:b})}var Mx=/\r\n?/g,Rx=/\u0000|\uFFFD/g;function lg(e){return(typeof e=="string"?e:""+e).replace(Mx,`
|
|
9
|
-
`).replace(Rx,"")}function ag(e,n){return n=lg(n),lg(e)===n}function Ze(e,n,l,i,u,m){switch(l){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||Hl(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&Hl(e,""+i);break;case"className":ei(e,"class",i);break;case"tabIndex":ei(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ei(e,l,i);break;case"style":ap(e,i,m);break;case"data":if(n!=="object"){ei(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=ni(""+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"&&Ze(e,n,"name",u.name,u,null),Ze(e,n,"formEncType",u.formEncType,u,null),Ze(e,n,"formMethod",u.formMethod,u,null),Ze(e,n,"formTarget",u.formTarget,u,null)):(Ze(e,n,"encType",u.encType,u,null),Ze(e,n,"method",u.method,u,null),Ze(e,n,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=ni(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=Kn);break;case"onScroll":i!=null&&_e("scroll",e);break;case"onScrollEnd":i!=null&&_e("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=ni(""+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":_e("beforetoggle",e),_e("toggle",e),Wr(e,"popover",i);break;case"xlinkActuate":In(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":In(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":In(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":In(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":In(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":In(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":In(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":In(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":In(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Wr(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=t2.get(l)||l,Wr(e,l,i))}}function wf(e,n,l,i,u,m){switch(l){case"style":ap(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"?Hl(e,i):(typeof i=="number"||typeof i=="bigint")&&Hl(e,""+i);break;case"onScroll":i!=null&&_e("scroll",e);break;case"onScrollEnd":i!=null&&_e("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Km.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[Nt]||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,""):Wr(e,l,i)}}}function Ct(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("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:Ze(e,n,m,b,l,null)}}u&&Ze(e,n,"srcSet",l.srcSet,l,null),i&&Ze(e,n,"src",l.src,l,null);return;case"input":_e("invalid",e);var T=m=b=u=null,j=null,q=null;for(i in l)if(l.hasOwnProperty(i)){var X=l[i];if(X!=null)switch(i){case"name":u=X;break;case"type":b=X;break;case"checked":j=X;break;case"defaultChecked":q=X;break;case"value":m=X;break;case"defaultValue":T=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,n));break;default:Ze(e,n,i,X,l,null)}}tp(e,m,T,j,q,b,u,!1);return;case"select":_e("invalid",e),i=b=m=null;for(u in l)if(l.hasOwnProperty(u)&&(T=l[u],T!=null))switch(u){case"value":m=T;break;case"defaultValue":b=T;break;case"multiple":i=T;default:Ze(e,n,u,T,l,null)}n=m,l=b,e.multiple=!!i,n!=null?Al(e,!!i,n,!1):l!=null&&Al(e,!!i,l,!0);return;case"textarea":_e("invalid",e),m=u=i=null;for(b in l)if(l.hasOwnProperty(b)&&(T=l[b],T!=null))switch(b){case"value":i=T;break;case"defaultValue":u=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:Ze(e,n,b,T,l,null)}op(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":Ze(e,n,j,i,l,null));return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(i=0;i<hr.length;i++)_e(hr[i],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(q in l)if(l.hasOwnProperty(q)&&(i=l[q],i!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:Ze(e,n,q,i,l,null)}return;default:if(Lc(n)){for(X in l)l.hasOwnProperty(X)&&(i=l[X],i!==void 0&&wf(e,n,X,i,l,void 0));return}}for(T in l)l.hasOwnProperty(T)&&(i=l[T],i!=null&&Ze(e,n,T,i,l,null))}function _x(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,T=null,j=null,q=null,X=null;for(P in l){var K=l[P];if(l.hasOwnProperty(P)&&K!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":j=K;default:i.hasOwnProperty(P)||Ze(e,n,P,null,i,K)}}for(var Y in i){var P=i[Y];if(K=l[Y],i.hasOwnProperty(Y)&&(P!=null||K!=null))switch(Y){case"type":m=P;break;case"name":u=P;break;case"checked":q=P;break;case"defaultChecked":X=P;break;case"value":b=P;break;case"defaultValue":T=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,n));break;default:P!==K&&Ze(e,n,Y,P,i,K)}}Dc(e,b,T,j,q,X,m,u);return;case"select":P=b=T=Y=null;for(m in l)if(j=l[m],l.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":P=j;default:i.hasOwnProperty(m)||Ze(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":Y=m;break;case"defaultValue":T=m;break;case"multiple":b=m;default:m!==j&&Ze(e,n,u,m,i,j)}n=T,l=b,i=P,Y!=null?Al(e,!!l,Y,!1):!!i!=!!l&&(n!=null?Al(e,!!l,n,!0):Al(e,!!l,l?[]:"",!1));return;case"textarea":P=Y=null;for(T in l)if(u=l[T],l.hasOwnProperty(T)&&u!=null&&!i.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ze(e,n,T,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":Y=u;break;case"defaultValue":P=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==m&&Ze(e,n,b,u,i,m)}np(e,Y,P);return;case"option":for(var ce in l)Y=l[ce],l.hasOwnProperty(ce)&&Y!=null&&!i.hasOwnProperty(ce)&&(ce==="selected"?e.selected=!1:Ze(e,n,ce,null,i,Y));for(j in i)Y=i[j],P=l[j],i.hasOwnProperty(j)&&Y!==P&&(Y!=null||P!=null)&&(j==="selected"?e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol":Ze(e,n,j,Y,i,P));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 ye in l)Y=l[ye],l.hasOwnProperty(ye)&&Y!=null&&!i.hasOwnProperty(ye)&&Ze(e,n,ye,null,i,Y);for(q in i)if(Y=i[q],P=l[q],i.hasOwnProperty(q)&&Y!==P&&(Y!=null||P!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,n));break;default:Ze(e,n,q,Y,i,P)}return;default:if(Lc(n)){for(var qe in l)Y=l[qe],l.hasOwnProperty(qe)&&Y!==void 0&&!i.hasOwnProperty(qe)&&wf(e,n,qe,void 0,i,Y);for(X in i)Y=i[X],P=l[X],!i.hasOwnProperty(X)||Y===P||Y===void 0&&P===void 0||wf(e,n,X,Y,i,P);return}}for(var L in l)Y=l[L],l.hasOwnProperty(L)&&Y!=null&&!i.hasOwnProperty(L)&&Ze(e,n,L,null,i,Y);for(K in i)Y=i[K],P=l[K],!i.hasOwnProperty(K)||Y===P||Y==null&&P==null||Ze(e,n,K,Y,i,P)}function rg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jx(){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,T=u.duration;if(m&&T&&rg(b)){for(b=0,T=u.responseEnd,i+=1;i<l.length;i++){var j=l[i],q=j.startTime;if(q>T)break;var X=j.transferSize,K=j.initiatorType;X&&rg(K)&&(j=j.responseEnd,b+=X*(j<T?1:(T-q)/(j-q)))}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 Ef=null,Tf=null;function Fi(e){return e.nodeType===9?e:e.ownerDocument}function ig(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 sg(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 Mf(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 Rf=null;function Ox(){var e=window.event;return e&&e.type==="popstate"?e===Rf?!1:(Rf=e,!0):(Rf=null,!1)}var cg=typeof setTimeout=="function"?setTimeout:void 0,Nx=typeof clearTimeout=="function"?clearTimeout:void 0,ug=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof ug<"u"?function(e){return ug.resolve(null).then(e).catch(Hx)}:cg;function Hx(e){setTimeout(function(){throw e})}function Go(e){return e==="head"}function fg(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),ua(n);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")vr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,vr(l);for(var m=l.firstChild;m;){var b=m.nextSibling,T=m.nodeName;m[za]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=b}}else l==="body"&&vr(e.ownerDocument.body);l=u}while(l);ua(n)}function dg(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 _f(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":_f(l),Ac(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Dx(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[za])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=dn(e.nextSibling),e===null)break}return null}function zx(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=dn(e.nextSibling),e===null))return null;return e}function mg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function jf(e){return e.data==="$?"||e.data==="$~"}function Of(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lx(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 dn(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 Nf=null;function pg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return dn(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function hg(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 gg(e,n,l){switch(n=Fi(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 vr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ac(e)}var mn=new Map,vg=new Set;function Ji(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var mo=B.d;B.d={f:Vx,r:kx,D:Bx,C:Ux,L:$x,m:Gx,X:qx,S:Zx,M:Yx};function Vx(){var e=mo.f(),n=Zi();return e||n}function kx(e){var n=jl(e);n!==null&&n.tag===5&&n.type==="form"?Dh(n):mo.r(e)}var ia=typeof document>"u"?null:document;function yg(e,n,l){var i=ia;if(i&&typeof n=="string"&&n){var u=ln(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),vg.has(u)||(vg.add(u),e={rel:e,crossOrigin:l,href:n},i.querySelector(u)===null&&(n=i.createElement("link"),Ct(n,"link",e),pt(n),i.head.appendChild(n)))}}function Bx(e){mo.D(e),yg("dns-prefetch",e,null)}function Ux(e,n){mo.C(e,n),yg("preconnect",e,n)}function $x(e,n,l){mo.L(e,n,l);var i=ia;if(i&&e&&n){var u='link[rel="preload"][as="'+ln(n)+'"]';n==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+ln(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+ln(l.imageSizes)+'"]')):u+='[href="'+ln(e)+'"]';var m=u;switch(n){case"style":m=sa(e);break;case"script":m=ca(e)}mn.has(m)||(e=y({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),mn.set(m,e),i.querySelector(u)!==null||n==="style"&&i.querySelector(yr(m))||n==="script"&&i.querySelector(br(m))||(n=i.createElement("link"),Ct(n,"link",e),pt(n),i.head.appendChild(n)))}}function Gx(e,n){mo.m(e,n);var l=ia;if(l&&e){var i=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+ln(i)+'"][href="'+ln(e)+'"]',m=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=ca(e)}if(!mn.has(m)&&(e=y({rel:"modulepreload",href:e},n),mn.set(m,e),l.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(br(m)))return}i=l.createElement("link"),Ct(i,"link",e),pt(i),l.head.appendChild(i)}}}function Zx(e,n,l){mo.S(e,n,l);var i=ia;if(i&&e){var u=Ol(i).hoistableStyles,m=sa(e);n=n||"default";var b=u.get(m);if(!b){var T={loading:0,preload:null};if(b=i.querySelector(yr(m)))T.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},l),(l=mn.get(m))&&Af(e,l);var j=b=i.createElement("link");pt(j),Ct(j,"link",e),j._p=new Promise(function(q,X){j.onload=q,j.onerror=X}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Wi(b,n,i)}b={type:"stylesheet",instance:b,count:1,state:T},u.set(m,b)}}}function qx(e,n){mo.X(e,n);var l=ia;if(l&&e){var i=Ol(l).hoistableScripts,u=ca(e),m=i.get(u);m||(m=l.querySelector(br(u)),m||(e=y({src:e,async:!0},n),(n=mn.get(u))&&Hf(e,n),m=l.createElement("script"),pt(m),Ct(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(u,m))}}function Yx(e,n){mo.M(e,n);var l=ia;if(l&&e){var i=Ol(l).hoistableScripts,u=ca(e),m=i.get(u);m||(m=l.querySelector(br(u)),m||(e=y({src:e,async:!0,type:"module"},n),(n=mn.get(u))&&Hf(e,n),m=l.createElement("script"),pt(m),Ct(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(u,m))}}function bg(e,n,l,i){var u=(u=ue.current)?Ji(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=sa(l.href),l=Ol(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=sa(l.href);var m=Ol(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(yr(e)))&&!m._p&&(b.instance=m,b.state.loading=5),mn.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},mn.set(e,l),m||Px(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=ca(l),l=Ol(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 sa(e){return'href="'+ln(e)+'"'}function yr(e){return'link[rel="stylesheet"]['+e+"]"}function xg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Px(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}),Ct(n,"link",l),pt(n),e.head.appendChild(n))}function ca(e){return'[src="'+ln(e)+'"]'}function br(e){return"script[async]"+e}function Sg(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+ln(l.href)+'"]');if(i)return n.instance=i,pt(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"),pt(i),Ct(i,"style",u),Wi(i,l.precedence,e),n.instance=i;case"stylesheet":u=sa(l.href);var m=e.querySelector(yr(u));if(m)return n.state.loading|=4,n.instance=m,pt(m),m;i=xg(l),(u=mn.get(u))&&Af(i,u),m=(e.ownerDocument||e).createElement("link"),pt(m);var b=m;return b._p=new Promise(function(T,j){b.onload=T,b.onerror=j}),Ct(m,"link",i),n.state.loading|=4,Wi(m,l.precedence,e),n.instance=m;case"script":return m=ca(l.src),(u=e.querySelector(br(m)))?(n.instance=u,pt(u),u):(i=l,(u=mn.get(m))&&(i=y({},l),Hf(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),pt(u),Ct(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,Wi(i,l.precedence,e));return n.instance}function Wi(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 T=i[b];if(T.dataset.precedence===n)m=T;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 Af(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Hf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var es=null;function Cg(e,n,l){if(es===null){var i=new Map,u=es=new Map;u.set(l,i)}else u=es,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[za]||m[yt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var b=m.getAttribute(n)||"";b=e+b;var T=i.get(b);T?T.push(m):i.set(b,[m])}}return i}function wg(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function Xx(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 Eg(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=sa(i.href),m=n.querySelector(yr(u));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=ts.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=m,pt(m);return}m=n.ownerDocument||n,i=xg(i),(u=mn.get(u))&&Af(i,u),m=m.createElement("link"),pt(m);var b=m;b._p=new Promise(function(T,j){b.onload=T,b.onerror=j}),Ct(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=ts.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var Df=0;function Ix(e,n){return e.stylesheets&&e.count===0&&os(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&os(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+n);0<e.imgBytes&&Df===0&&(Df=62500*jx());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&os(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 ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)os(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ns=null;function os(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ns=new Map,n.forEach(Kx,e),ns=null,ts.call(e))}function Kx(e,n){if(!(n.state.loading&4)){var l=ns.get(e);if(l)var i=l.get(null);else{l=new Map,ns.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=ts.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 xr={$$typeof:A,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function Fx(e,n,l,i,u,m,b,T,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=_c(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_c(0),this.hiddenUpdates=_c(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 Tg(e,n,l,i,u,m,b,T,j,q,X,K){return e=new Fx(e,n,l,b,j,q,X,K,T),n=1,m===!0&&(n|=24),m=Xt(3,null,null,n),e.current=m,m.stateNode=e,n=du(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:i,isDehydrated:l,cache:n},gu(m),e}function Mg(e){return e?(e=Ul,e):Ul}function Rg(e,n,l,i,u,m){u=Mg(u),i.context===null?i.context=u:i.pendingContext=u,i=No(n),i.payload={element:l},m=m===void 0?null:m,m!==null&&(i.callback=m),l=Ao(e,i,n),l!==null&&(Vt(l,e,n),Ja(l,e,n))}function _g(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function zf(e,n){_g(e,n),(e=e.alternate)&&_g(e,n)}function jg(e){if(e.tag===13||e.tag===31){var n=il(e,67108864);n!==null&&Vt(n,e,67108864),zf(e,67108864)}}function Og(e){if(e.tag===13||e.tag===31){var n=Jt();n=jc(n);var l=il(e,n);l!==null&&Vt(l,e,n),zf(e,n)}}var ls=!0;function Jx(e,n,l,i){var u=D.T;D.T=null;var m=B.p;try{B.p=2,Lf(e,n,l,i)}finally{B.p=m,D.T=u}}function Wx(e,n,l,i){var u=D.T;D.T=null;var m=B.p;try{B.p=8,Lf(e,n,l,i)}finally{B.p=m,D.T=u}}function Lf(e,n,l,i){if(ls){var u=Vf(i);if(u===null)Cf(e,n,i,as,l),Ag(e,i);else if(tS(u,e,n,l,i))i.stopPropagation();else if(Ag(e,i),n&4&&-1<eS.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=nl(m.pendingLanes);if(b!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;b;){var j=1<<31-Yt(b);T.entanglements[1]|=j,b&=~j}Ln(m),(ke&6)===0&&($i=jt()+500,pr(0))}}break;case 31:case 13:T=il(m,2),T!==null&&Vt(T,m,2),Zi(),zf(m,2)}if(m=Vf(i),m===null&&Cf(e,n,i,as,l),m===u)break;u=m}u!==null&&i.stopPropagation()}else Cf(e,n,i,null,l)}}function Vf(e){return e=kc(e),kf(e)}var as=null;function kf(e){if(as=null,e=_l(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 as=e,null}function Ng(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 Na:return 2;case dt:return 8;case Ml:case Mc:return 32;case Qr:return 268435456;default:return 32}default:return 32}}var Bf=!1,Zo=null,qo=null,Yo=null,Sr=new Map,Cr=new Map,Po=[],eS="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 Ag(e,n){switch(e){case"focusin":case"focusout":Zo=null;break;case"dragenter":case"dragleave":qo=null;break;case"mouseover":case"mouseout":Yo=null;break;case"pointerover":case"pointerout":Sr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cr.delete(n.pointerId)}}function wr(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&&jg(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function tS(e,n,l,i,u){switch(n){case"focusin":return Zo=wr(Zo,e,n,l,i,u),!0;case"dragenter":return qo=wr(qo,e,n,l,i,u),!0;case"mouseover":return Yo=wr(Yo,e,n,l,i,u),!0;case"pointerover":var m=u.pointerId;return Sr.set(m,wr(Sr.get(m)||null,e,n,l,i,u)),!0;case"gotpointercapture":return m=u.pointerId,Cr.set(m,wr(Cr.get(m)||null,e,n,l,i,u)),!0}return!1}function Hg(e){var n=_l(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,Xm(e.priority,function(){Og(l)});return}}else if(n===31){if(n=d(l),n!==null){e.blockedOn=n,Xm(e.priority,function(){Og(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 rs(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Vf(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Vc=i,l.target.dispatchEvent(i),Vc=null}else return n=jl(l),n!==null&&jg(n),e.blockedOn=l,!1;n.shift()}return!0}function Dg(e,n,l){rs(e)&&l.delete(n)}function nS(){Bf=!1,Zo!==null&&rs(Zo)&&(Zo=null),qo!==null&&rs(qo)&&(qo=null),Yo!==null&&rs(Yo)&&(Yo=null),Sr.forEach(Dg),Cr.forEach(Dg)}function is(e,n){e.blockedOn===n&&(e.blockedOn=null,Bf||(Bf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,nS)))}var ss=null;function zg(e){ss!==e&&(ss=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ss===e&&(ss=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(kf(i||l)===null)continue;break}var m=jl(l);m!==null&&(e.splice(n,3),n-=3,Lu(m,{pending:!0,data:u,method:l.method,action:i},i,u))}}))}function ua(e){function n(j){return is(j,e)}Zo!==null&&is(Zo,e),qo!==null&&is(qo,e),Yo!==null&&is(Yo,e),Sr.forEach(n),Cr.forEach(n);for(var l=0;l<Po.length;l++){var i=Po[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Po.length&&(l=Po[0],l.blockedOn===null);)Hg(l),l.blockedOn===null&&Po.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[Nt]||null;if(typeof m=="function")b||zg(l);else if(b){var T=null;if(m&&m.hasAttribute("formAction")){if(u=m,b=m[Nt]||null)T=b.formAction;else if(kf(u)!==null)continue}else T=b.action;typeof T=="function"?l[i+1]=T:(l.splice(i,3),i-=3),zg(l)}}}function Lg(){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 Uf(e){this._internalRoot=e}cs.prototype.render=Uf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var l=n.current,i=Jt();Rg(l,i,e,n,null,null)},cs.prototype.unmount=Uf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Rg(e.current,2,null,e,null,null),Zi(),n[Rl]=null}};function cs(e){this._internalRoot=e}cs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Pm();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Po.length&&n!==0&&n<Po[l].priority;l++);Po.splice(l,0,e),l===0&&Hg(e)}};var Vg=o.version;if(Vg!=="19.2.4")throw Error(r(527,Vg,"19.2.4"));B.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 oS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!us.isDisabled&&us.supportsFiber)try{Aa=us.inject(oS),qt=us}catch{}}return Tr.createRoot=function(e,n){if(!s(e))throw Error(r(299));var l=!1,i="",u=qh,m=Yh,b=Ph;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=Tg(e,1,!1,null,null,l,i,null,u,m,b,Lg),e[Rl]=n.current,Sf(e),new Uf(n)},Tr.hydrateRoot=function(e,n,l){if(!s(e))throw Error(r(299));var i=!1,u="",m=qh,b=Yh,T=Ph,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&&(T=l.onRecoverableError),l.formState!==void 0&&(j=l.formState)),n=Tg(e,1,!0,n,l??null,i,u,j,m,b,T,Lg),n.context=Mg(null),l=n.current,i=Jt(),i=jc(i),u=No(i),u.callback=null,Ao(l,u,i),l=i,n.current.lanes=l,Da(n,l),Ln(n),e[Rl]=n.current,Sf(e),new cs(n)},Tr.version="19.2.4",Tr}var Ig;function PS(){if(Ig)return qf.exports;Ig=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(),qf.exports=YS(),qf.exports}var T0=PS();const cT=Ud(T0);var qn=E0();const M0=Ud(qn);function R0(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=R0(t[o]))&&(r&&(r+=" "),r+=a)}else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}function So(){for(var t,o,a=0,r="",s=arguments.length;a<s;a++)(t=arguments[a])&&(o=R0(t))&&(r&&(r+=" "),r+=o);return r}var kn=function(){return kn=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},kn.apply(this,arguments)};function _0(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 XS(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 Ss="right-scroll-bar-position",Cs="width-before-scroll-bar",QS="with-scroll-bars-hidden",IS="--removed-body-scroll-bar-size";function Qf(t,o){return typeof t=="function"?t(o):t&&(t.current=o),t}function KS(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 FS=typeof window<"u"?S.useLayoutEffect:S.useEffect,Kg=new WeakMap;function JS(t,o){var a=KS(null,function(r){return t.forEach(function(s){return Qf(s,r)})});return FS(function(){var r=Kg.get(a);if(r){var s=new Set(r),c=new Set(t),f=a.current;s.forEach(function(d){c.has(d)||Qf(d,null)}),c.forEach(function(d){s.has(d)||Qf(d,f)})}Kg.set(a,t)},[t]),a}function WS(t){return t}function eC(t,o){o===void 0&&(o=WS);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 tC(t){t===void 0&&(t={});var o=eC(null);return o.options=kn({async:!0,ssr:!1},t),o}var j0=function(t){var o=t.sideCar,a=_0(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,kn({},a))};j0.isSideCarExport=!0;function nC(t,o){return t.useMedium(o),j0}var O0=tC(),If=function(){},Qs=S.forwardRef(function(t,o){var a=S.useRef(null),r=S.useState({onScrollCapture:If,onWheelCapture:If,onTouchMoveCapture:If}),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,E=t.noIsolation,w=t.inert,M=t.allowPinchZoom,R=t.as,O=R===void 0?"div":R,A=t.gapMode,H=_0(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=x,k=JS([a,o]),V=kn(kn({},H),s);return S.createElement(S.Fragment,null,v&&S.createElement(z,{sideCar:O0,removeScrollBar:h,shards:y,noRelative:C,noIsolation:E,inert:w,setCallbacks:c,allowPinchZoom:!!M,lockRef:a,gapMode:A}),f?S.cloneElement(S.Children.only(d),kn(kn({},V),{ref:k})):S.createElement(O,kn({},V,{className:p,ref:k}),d))});Qs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qs.classNames={fullWidth:Cs,zeroRight:Ss};var oC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lC(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var o=oC();return o&&t.setAttribute("nonce",o),t}function aC(t,o){t.styleSheet?t.styleSheet.cssText=o:t.appendChild(document.createTextNode(o))}function rC(t){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(t)}var iC=function(){var t=0,o=null;return{add:function(a){t==0&&(o=lC())&&(aC(o,a),rC(o)),t++},remove:function(){t--,!t&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},sC=function(){var t=iC();return function(o,a){S.useEffect(function(){return t.add(o),function(){t.remove()}},[o&&a])}},N0=function(){var t=sC(),o=function(a){var r=a.styles,s=a.dynamic;return t(r,s),null};return o},cC={left:0,top:0,right:0,gap:0},Kf=function(t){return parseInt(t||"",10)||0},uC=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[Kf(a),Kf(r),Kf(s)]},fC=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return cC;var o=uC(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])}},dC=N0(),ya="data-scroll-locked",mC=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(QS,` {
|
|
11
|
-
overflow: hidden `).concat(r,`;
|
|
12
|
-
padding-right: `).concat(d,"px ").concat(r,`;
|
|
13
|
-
}
|
|
14
|
-
body[`).concat(ya,`] {
|
|
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(Ss,` {
|
|
28
|
-
right: `).concat(d,"px ").concat(r,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(Cs,` {
|
|
32
|
-
margin-right: `).concat(d,"px ").concat(r,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.`).concat(Ss," .").concat(Ss,` {
|
|
36
|
-
right: 0 `).concat(r,`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.`).concat(Cs," .").concat(Cs,` {
|
|
40
|
-
margin-right: 0 `).concat(r,`;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
body[`).concat(ya,`] {
|
|
44
|
-
`).concat(IS,": ").concat(d,`px;
|
|
45
|
-
}
|
|
46
|
-
`)},Fg=function(){var t=parseInt(document.body.getAttribute(ya)||"0",10);return isFinite(t)?t:0},pC=function(){S.useEffect(function(){return document.body.setAttribute(ya,(Fg()+1).toString()),function(){var t=Fg()-1;t<=0?document.body.removeAttribute(ya):document.body.setAttribute(ya,t.toString())}},[])},hC=function(t){var o=t.noRelative,a=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;pC();var c=S.useMemo(function(){return fC(s)},[s]);return S.createElement(dC,{styles:mC(c,!o,s,a?"":"!important")})},jd=!1;if(typeof window<"u")try{var fs=Object.defineProperty({},"passive",{get:function(){return jd=!0,!0}});window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{jd=!1}var fa=jd?{passive:!1}:!1,gC=function(t){return t.tagName==="TEXTAREA"},A0=function(t,o){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[o]!=="hidden"&&!(a.overflowY===a.overflowX&&!gC(t)&&a[o]==="visible")},vC=function(t){return A0(t,"overflowY")},yC=function(t){return A0(t,"overflowX")},Jg=function(t,o){var a=o.ownerDocument,r=o;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=H0(t,r);if(s){var c=D0(t,r),f=c[1],d=c[2];if(f>d)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},bC=function(t){var o=t.scrollTop,a=t.scrollHeight,r=t.clientHeight;return[o,a,r]},xC=function(t){var o=t.scrollLeft,a=t.scrollWidth,r=t.clientWidth;return[o,a,r]},H0=function(t,o){return t==="v"?vC(o):yC(o)},D0=function(t,o){return t==="v"?bC(o):xC(o)},SC=function(t,o){return t==="h"&&o==="rtl"?-1:1},CC=function(t,o,a,r,s){var c=SC(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=D0(t,d),E=C[0],w=C[1],M=C[2],R=w-M-c*E;(E||R)&&H0(t,d)&&(y+=R,x+=E);var O=d.parentNode;d=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}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},ds=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Wg=function(t){return[t.deltaX,t.deltaY]},ev=function(t){return t&&"current"in t?t.current:t},wC=function(t,o){return t[0]===o[0]&&t[1]===o[1]},EC=function(t){return`
|
|
47
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
48
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
49
|
-
`)},TC=0,da=[];function MC(t){var o=S.useRef([]),a=S.useRef([0,0]),r=S.useRef(),s=S.useState(TC++)[0],c=S.useState(N0)[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=XS([t.lockRef.current],(t.shards||[]).map(ev),!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=ds(w),O=a.current,A="deltaX"in w?w.deltaX:O[0]-R[0],H="deltaY"in w?w.deltaY:O[1]-R[1],z,k=w.target,V=Math.abs(A)>Math.abs(H)?"h":"v";if("touches"in w&&V==="h"&&k.type==="range")return!1;var J=window.getSelection(),W=J&&J.anchorNode,Q=W?W===k||W.contains(k):!1;if(Q)return!1;var oe=Jg(V,k);if(!oe)return!0;if(oe?z=V:(z=V==="v"?"h":"v",oe=Jg(V,k)),!oe)return!1;if(!r.current&&"changedTouches"in w&&(A||H)&&(r.current=z),!z)return!0;var ie=r.current||z;return CC(ie,M,w,ie==="h"?A:H)},[]),p=S.useCallback(function(w){var M=w;if(!(!da.length||da[da.length-1]!==c)){var R="deltaY"in M?Wg(M):ds(M),O=o.current.filter(function(z){return z.name===M.type&&(z.target===M.target||M.target===z.shadowParent)&&wC(z.delta,R)})[0];if(O&&O.should){M.cancelable&&M.preventDefault();return}if(!O){var A=(f.current.shards||[]).map(ev).filter(Boolean).filter(function(z){return z.contains(M.target)}),H=A.length>0?d(M,A[0]):!f.current.noIsolation;H&&M.cancelable&&M.preventDefault()}}},[]),h=S.useCallback(function(w,M,R,O){var A={name:w,delta:M,target:R,should:O,shadowParent:RC(R)};o.current.push(A),setTimeout(function(){o.current=o.current.filter(function(H){return H!==A})},1)},[]),v=S.useCallback(function(w){a.current=ds(w),r.current=void 0},[]),y=S.useCallback(function(w){h(w.type,Wg(w),w.target,d(w,t.lockRef.current))},[]),x=S.useCallback(function(w){h(w.type,ds(w),w.target,d(w,t.lockRef.current))},[]);S.useEffect(function(){return da.push(c),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",p,fa),document.addEventListener("touchmove",p,fa),document.addEventListener("touchstart",v,fa),function(){da=da.filter(function(w){return w!==c}),document.removeEventListener("wheel",p,fa),document.removeEventListener("touchmove",p,fa),document.removeEventListener("touchstart",v,fa)}},[]);var C=t.removeScrollBar,E=t.inert;return S.createElement(S.Fragment,null,E?S.createElement(c,{styles:EC(s)}):null,C?S.createElement(hC,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function RC(t){for(var o=null;t!==null;)t instanceof ShadowRoot&&(o=t.host,t=t.host),t=t.parentNode;return o}const _C=nC(O0,MC);var jC=S.forwardRef(function(t,o){return S.createElement(Qs,kn({},t,{ref:o,sideCar:_C}))});jC.classNames=Qs.classNames;const z0=["top","right","bottom","left"],tv=["start","end"],nv=z0.reduce((t,o)=>t.concat(o,o+"-"+tv[0],o+"-"+tv[1]),[]),Tn=Math.min,Mt=Math.max,Ms=Math.round,ms=Math.floor,$n=t=>({x:t,y:t}),OC={left:"right",right:"left",bottom:"top",top:"bottom"},NC={start:"end",end:"start"};function Od(t,o,a){return Mt(t,Tn(o,a))}function Mn(t,o){return typeof t=="function"?t(o):t}function Wt(t){return t.split("-")[0]}function En(t){return t.split("-")[1]}function $d(t){return t==="x"?"y":"x"}function Gd(t){return t==="y"?"height":"width"}const AC=new Set(["top","bottom"]);function Cn(t){return AC.has(Wt(t))?"y":"x"}function Zd(t){return $d(Cn(t))}function L0(t,o,a){a===void 0&&(a=!1);const r=En(t),s=Zd(t),c=Gd(s);let f=s==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(f=_s(f)),[f,_s(f)]}function HC(t){const o=_s(t);return[Rs(t),o,Rs(o)]}function Rs(t){return t.replace(/start|end/g,o=>NC[o])}const ov=["left","right"],lv=["right","left"],DC=["top","bottom"],zC=["bottom","top"];function LC(t,o,a){switch(t){case"top":case"bottom":return a?o?lv:ov:o?ov:lv;case"left":case"right":return o?DC:zC;default:return[]}}function VC(t,o,a,r){const s=En(t);let c=LC(Wt(t),a==="start",r);return s&&(c=c.map(f=>f+"-"+s),o&&(c=c.concat(c.map(Rs)))),c}function _s(t){return t.replace(/left|right|bottom|top/g,o=>OC[o])}function kC(t){return{top:0,right:0,bottom:0,left:0,...t}}function qd(t){return typeof t!="number"?kC(t):{top:t,right:t,bottom:t,left:t}}function xa(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 av(t,o,a){let{reference:r,floating:s}=t;const c=Cn(o),f=Zd(o),d=Gd(f),p=Wt(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(En(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 BC(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}=Mn(o,t),E=qd(C),M=d[x?y==="floating"?"reference":"floating":y],R=xa(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})),O=y==="floating"?{x:r,y:s,width:f.floating.width,height:f.floating.height}:f.reference,A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),H=await(c.isElement==null?void 0:c.isElement(A))?await(c.getScale==null?void 0:c.getScale(A))||{x:1,y:1}:{x:1,y:1},z=xa(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:O,offsetParent:A,strategy:p}):O);return{top:(R.top-z.top+E.top)/H.y,bottom:(z.bottom-R.bottom+E.bottom)/H.y,left:(R.left-z.left+E.left)/H.x,right:(z.right-R.right+E.right)/H.x}}const UC=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}=av(h,r,p),x=r,C={},E=0;for(let M=0;M<d.length;M++){var w;const{name:R,fn:O}=d[M],{x:A,y:H,data:z,reset:k}=await O({x:v,y,initialPlacement:r,placement:x,strategy:s,middlewareData:C,rects:h,platform:{...f,detectOverflow:(w=f.detectOverflow)!=null?w:BC},elements:{reference:t,floating:o}});v=A??v,y=H??y,C={...C,[R]:{...C[R],...z}},k&&E<=50&&(E++,typeof k=="object"&&(k.placement&&(x=k.placement),k.rects&&(h=k.rects===!0?await f.getElementRects({reference:t,floating:o,strategy:s}):k.rects),{x:v,y}=av(h,x,p)),M=-1)}return{x:v,y,placement:x,strategy:s,middlewareData:C}},$C=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}=Mn(t,o)||{};if(h==null)return{};const y=qd(v),x={x:a,y:r},C=Zd(s),E=Gd(C),w=await f.getDimensions(h),M=C==="y",R=M?"top":"left",O=M?"bottom":"right",A=M?"clientHeight":"clientWidth",H=c.reference[E]+c.reference[C]-x[C]-c.floating[E],z=x[C]-c.reference[C],k=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let V=k?k[A]:0;(!V||!await(f.isElement==null?void 0:f.isElement(k)))&&(V=d.floating[A]||c.floating[E]);const J=H/2-z/2,W=V/2-w[E]/2-1,Q=Tn(y[R],W),oe=Tn(y[O],W),ie=Q,le=V-w[E]-oe,G=V/2-w[E]/2+J,re=Od(ie,G,le),D=!p.arrow&&En(s)!=null&&G!==re&&c.reference[E]/2-(G<ie?Q:oe)-w[E]/2<0,B=D?G<ie?G-ie:G-le:0;return{[C]:x[C]+B,data:{[C]:re,centerOffset:G-re-B,...D&&{alignmentOffset:B}},reset:D}}});function GC(t,o,a){return(t?[...a.filter(s=>En(s)===t),...a.filter(s=>En(s)!==t)]:a.filter(s=>Wt(s)===s)).filter(s=>t?En(s)===t||(o?Rs(s)!==s:!1):!0)}const ZC=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=nv,autoAlignment:C=!0,...E}=Mn(t,o),w=y!==void 0||x===nv?GC(y||null,C,x):x,M=await p.detectOverflow(o,E),R=((a=f.autoPlacement)==null?void 0:a.index)||0,O=w[R];if(O==null)return{};const A=L0(O,c,await(p.isRTL==null?void 0:p.isRTL(h.floating)));if(d!==O)return{reset:{placement:w[0]}};const H=[M[Wt(O)],M[A[0]],M[A[1]]],z=[...((r=f.autoPlacement)==null?void 0:r.overflows)||[],{placement:O,overflows:H}],k=w[R+1];if(k)return{data:{index:R+1,overflows:z},reset:{placement:k}};const V=z.map(Q=>{const oe=En(Q.placement);return[Q.placement,oe&&v?Q.overflows.slice(0,2).reduce((ie,le)=>ie+le,0):Q.overflows[0],Q.overflows]}).sort((Q,oe)=>Q[1]-oe[1]),W=((s=V.filter(Q=>Q[2].slice(0,En(Q[0])?2:3).every(oe=>oe<=0))[0])==null?void 0:s[0])||V[0][0];return W!==d?{data:{index:R+1,overflows:z},reset:{placement:W}}:{}}}},qC=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:E="none",flipAlignment:w=!0,...M}=Mn(t,o);if((a=c.arrow)!=null&&a.alignmentOffset)return{};const R=Wt(s),O=Cn(d),A=Wt(d)===d,H=await(p.isRTL==null?void 0:p.isRTL(h.floating)),z=x||(A||!w?[_s(d)]:HC(d)),k=E!=="none";!x&&k&&z.push(...VC(d,w,E,H));const V=[d,...z],J=await p.detectOverflow(o,M),W=[];let Q=((r=c.flip)==null?void 0:r.overflows)||[];if(v&&W.push(J[R]),y){const G=L0(s,f,H);W.push(J[G[0]],J[G[1]])}if(Q=[...Q,{placement:s,overflows:W}],!W.every(G=>G<=0)){var oe,ie;const G=(((oe=c.flip)==null?void 0:oe.index)||0)+1,re=V[G];if(re&&(!(y==="alignment"?O!==Cn(re):!1)||Q.every(U=>Cn(U.placement)===O?U.overflows[0]>0:!0)))return{data:{index:G,overflows:Q},reset:{placement:re}};let D=(ie=Q.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:ie.placement;if(!D)switch(C){case"bestFit":{var le;const B=(le=Q.filter(U=>{if(k){const ee=Cn(U.placement);return ee===O||ee==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(ee=>ee>0).reduce((ee,ne)=>ee+ne,0)]).sort((U,ee)=>U[1]-ee[1])[0])==null?void 0:le[0];B&&(D=B);break}case"initialPlacement":D=d;break}if(s!==D)return{reset:{placement:D}}}return{}}}};function rv(t,o){return{top:t.top-o.height,right:t.right-o.width,bottom:t.bottom-o.height,left:t.left-o.width}}function iv(t){return z0.some(o=>t[o]>=0)}const YC=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(o){const{rects:a,platform:r}=o,{strategy:s="referenceHidden",...c}=Mn(t,o);switch(s){case"referenceHidden":{const f=await r.detectOverflow(o,{...c,elementContext:"reference"}),d=rv(f,a.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:iv(d)}}}case"escaped":{const f=await r.detectOverflow(o,{...c,altBoundary:!0}),d=rv(f,a.floating);return{data:{escapedOffsets:d,escaped:iv(d)}}}default:return{}}}}};function V0(t){const o=Tn(...t.map(c=>c.left)),a=Tn(...t.map(c=>c.top)),r=Mt(...t.map(c=>c.right)),s=Mt(...t.map(c=>c.bottom));return{x:o,y:a,width:r-o,height:s-a}}function PC(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=>xa(V0(s)))}const XC=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}=Mn(t,o),v=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(r.reference))||[]),y=PC(v),x=xa(V0(v)),C=qd(d);function E(){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(Cn(a)==="y"){const Q=y[0],oe=y[y.length-1],ie=Wt(a)==="top",le=Q.top,G=oe.bottom,re=ie?Q.left:oe.left,D=ie?Q.right:oe.right,B=D-re,U=G-le;return{top:le,bottom:G,left:re,right:D,width:B,height:U,x:re,y:le}}const M=Wt(a)==="left",R=Mt(...y.map(Q=>Q.right)),O=Tn(...y.map(Q=>Q.left)),A=y.filter(Q=>M?Q.left===O:Q.right===R),H=A[0].top,z=A[A.length-1].bottom,k=O,V=R,J=V-k,W=z-H;return{top:H,bottom:z,left:k,right:V,width:J,height:W,x:k,y:H}}return x}const w=await c.getElementRects({reference:{getBoundingClientRect:E},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}}:{}}}},k0=new Set(["left","top"]);async function QC(t,o){const{placement:a,platform:r,elements:s}=t,c=await(r.isRTL==null?void 0:r.isRTL(s.floating)),f=Wt(a),d=En(a),p=Cn(a)==="y",h=k0.has(f)?-1:1,v=c&&p?-1:1,y=Mn(o,t);let{mainAxis:x,crossAxis:C,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof E=="number"&&(C=d==="end"?E*-1:E),p?{x:C*v,y:x*h}:{x:x*h,y:C*v}}const IC=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 QC(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}}}}},KC=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:O,y:A}=R;return{x:O,y:A}}},...h}=Mn(t,o),v={x:a,y:r},y=await c.detectOverflow(o,h),x=Cn(Wt(s)),C=$d(x);let E=v[C],w=v[x];if(f){const R=C==="y"?"top":"left",O=C==="y"?"bottom":"right",A=E+y[R],H=E-y[O];E=Od(A,E,H)}if(d){const R=x==="y"?"top":"left",O=x==="y"?"bottom":"right",A=w+y[R],H=w-y[O];w=Od(A,w,H)}const M=p.fn({...o,[C]:E,[x]:w});return{...M,data:{x:M.x-a,y:M.y-r,enabled:{[C]:f,[x]:d}}}}}},FC=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}=Mn(t,o),v={x:a,y:r},y=Cn(s),x=$d(y);let C=v[x],E=v[y];const w=Mn(d,o),M=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const A=x==="y"?"height":"width",H=c.reference[x]-c.floating[A]+M.mainAxis,z=c.reference[x]+c.reference[A]-M.mainAxis;C<H?C=H:C>z&&(C=z)}if(h){var R,O;const A=x==="y"?"width":"height",H=k0.has(Wt(s)),z=c.reference[y]-c.floating[A]+(H&&((R=f.offset)==null?void 0:R[y])||0)+(H?0:M.crossAxis),k=c.reference[y]+c.reference[A]+(H?0:((O=f.offset)==null?void 0:O[y])||0)-(H?M.crossAxis:0);E<z?E=z:E>k&&(E=k)}return{[x]:C,[y]:E}}}},JC=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}=Mn(t,o),v=await f.detectOverflow(o,h),y=Wt(s),x=En(s),C=Cn(s)==="y",{width:E,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 O=w-v.top-v.bottom,A=E-v.left-v.right,H=Tn(w-v[M],O),z=Tn(E-v[R],A),k=!o.middlewareData.shift;let V=H,J=z;if((a=o.middlewareData.shift)!=null&&a.enabled.x&&(J=A),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(V=O),k&&!x){const Q=Mt(v.left,0),oe=Mt(v.right,0),ie=Mt(v.top,0),le=Mt(v.bottom,0);C?J=E-2*(Q!==0||oe!==0?Q+oe:Mt(v.left,v.right)):V=w-2*(ie!==0||le!==0?ie+le:Mt(v.top,v.bottom))}await p({...o,availableWidth:J,availableHeight:V});const W=await f.getDimensions(d.floating);return E!==W.width||w!==W.height?{reset:{rects:!0}}:{}}}};function Is(){return typeof window<"u"}function Ca(t){return B0(t)?(t.nodeName||"").toLowerCase():"#document"}function $t(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function Pn(t){var o;return(o=(B0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function B0(t){return Is()?t instanceof Node||t instanceof $t(t).Node:!1}function Xe(t){return Is()?t instanceof Element||t instanceof $t(t).Element:!1}function en(t){return Is()?t instanceof HTMLElement||t instanceof $t(t).HTMLElement:!1}function js(t){return!Is()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $t(t).ShadowRoot}const WC=new Set(["inline","contents"]);function Ur(t){const{overflow:o,overflowX:a,overflowY:r,display:s}=gn(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+a)&&!WC.has(s)}const e4=new Set(["table","td","th"]);function t4(t){return e4.has(Ca(t))}const n4=[":popover-open",":modal"];function Ks(t){return n4.some(o=>{try{return t.matches(o)}catch{return!1}})}const o4=["transform","translate","scale","rotate","perspective"],l4=["transform","translate","scale","rotate","perspective","filter"],a4=["paint","layout","strict","content"];function Yd(t){const o=Fs(),a=Xe(t)?gn(t):t;return o4.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)||l4.some(r=>(a.willChange||"").includes(r))||a4.some(r=>(a.contain||"").includes(r))}function r4(t){let o=yo(t);for(;en(o)&&!go(o);){if(Yd(o))return o;if(Ks(o))return null;o=yo(o)}return null}function Fs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const i4=new Set(["html","body","#document"]);function go(t){return i4.has(Ca(t))}function gn(t){return $t(t).getComputedStyle(t)}function Js(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function yo(t){if(Ca(t)==="html")return t;const o=t.assignedSlot||t.parentNode||js(t)&&t.host||Pn(t);return js(o)?o.host:o}function U0(t){const o=yo(t);return go(o)?t.ownerDocument?t.ownerDocument.body:t.body:en(o)&&Ur(o)?o:U0(o)}function vo(t,o,a){var r;o===void 0&&(o=[]),a===void 0&&(a=!0);const s=U0(t),c=s===((r=t.ownerDocument)==null?void 0:r.body),f=$t(s);if(c){const d=Nd(f);return o.concat(f,f.visualViewport||[],Ur(s)?s:[],d&&a?vo(d):[])}return o.concat(s,vo(s,[],a))}function Nd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $0(t){const o=gn(t);let a=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const s=en(t),c=s?t.offsetWidth:a,f=s?t.offsetHeight:r,d=Ms(a)!==c||Ms(r)!==f;return d&&(a=c,r=f),{width:a,height:r,$:d}}function Pd(t){return Xe(t)?t:t.contextElement}function ba(t){const o=Pd(t);if(!en(o))return $n(1);const a=o.getBoundingClientRect(),{width:r,height:s,$:c}=$0(o);let f=(c?Ms(a.width):a.width)/r,d=(c?Ms(a.height):a.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const s4=$n(0);function G0(t){const o=$t(t);return!Fs()||!o.visualViewport?s4:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function c4(t,o,a){return o===void 0&&(o=!1),!a||o&&a!==$t(t)?!1:o}function Cl(t,o,a,r){o===void 0&&(o=!1),a===void 0&&(a=!1);const s=t.getBoundingClientRect(),c=Pd(t);let f=$n(1);o&&(r?Xe(r)&&(f=ba(r)):f=ba(t));const d=c4(c,a,r)?G0(c):$n(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=$t(c),C=r&&Xe(r)?$t(r):r;let E=x,w=Nd(E);for(;w&&r&&C!==E;){const M=ba(w),R=w.getBoundingClientRect(),O=gn(w),A=R.left+(w.clientLeft+parseFloat(O.paddingLeft))*M.x,H=R.top+(w.clientTop+parseFloat(O.paddingTop))*M.y;p*=M.x,h*=M.y,v*=M.x,y*=M.y,p+=A,h+=H,E=$t(w),w=Nd(E)}}return xa({width:v,height:y,x:p,y:h})}function Ws(t,o){const a=Js(t).scrollLeft;return o?o.left+a:Cl(Pn(t)).left+a}function Z0(t,o){const a=t.getBoundingClientRect(),r=a.left+o.scrollLeft-Ws(t,a),s=a.top+o.scrollTop;return{x:r,y:s}}function u4(t){let{elements:o,rect:a,offsetParent:r,strategy:s}=t;const c=s==="fixed",f=Pn(r),d=o?Ks(o.floating):!1;if(r===f||d&&c)return a;let p={scrollLeft:0,scrollTop:0},h=$n(1);const v=$n(0),y=en(r);if((y||!y&&!c)&&((Ca(r)!=="body"||Ur(f))&&(p=Js(r)),en(r))){const C=Cl(r);h=ba(r),v.x=C.x+r.clientLeft,v.y=C.y+r.clientTop}const x=f&&!y&&!c?Z0(f,p):$n(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 f4(t){return Array.from(t.getClientRects())}function d4(t){const o=Pn(t),a=Js(t),r=t.ownerDocument.body,s=Mt(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),c=Mt(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let f=-a.scrollLeft+Ws(t);const d=-a.scrollTop;return gn(r).direction==="rtl"&&(f+=Mt(o.clientWidth,r.clientWidth)-s),{width:s,height:c,x:f,y:d}}const sv=25;function m4(t,o){const a=$t(t),r=Pn(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=Fs();(!v||v&&o==="fixed")&&(d=s.offsetLeft,p=s.offsetTop)}const h=Ws(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,E=Math.abs(r.clientWidth-y.clientWidth-C);E<=sv&&(c-=E)}else h<=sv&&(c+=h);return{width:c,height:f,x:d,y:p}}const p4=new Set(["absolute","fixed"]);function h4(t,o){const a=Cl(t,!0,o==="fixed"),r=a.top+t.clientTop,s=a.left+t.clientLeft,c=en(t)?ba(t):$n(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 cv(t,o,a){let r;if(o==="viewport")r=m4(t,a);else if(o==="document")r=d4(Pn(t));else if(Xe(o))r=h4(o,a);else{const s=G0(t);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return xa(r)}function q0(t,o){const a=yo(t);return a===o||!Xe(a)||go(a)?!1:gn(a).position==="fixed"||q0(a,o)}function g4(t,o){const a=o.get(t);if(a)return a;let r=vo(t,[],!1).filter(d=>Xe(d)&&Ca(d)!=="body"),s=null;const c=gn(t).position==="fixed";let f=c?yo(t):t;for(;Xe(f)&&!go(f);){const d=gn(f),p=Yd(f);!p&&d.position==="fixed"&&(s=null),(c?!p&&!s:!p&&d.position==="static"&&!!s&&p4.has(s.position)||Ur(f)&&!p&&q0(t,f))?r=r.filter(v=>v!==f):s=d,f=yo(f)}return o.set(t,r),r}function v4(t){let{element:o,boundary:a,rootBoundary:r,strategy:s}=t;const f=[...a==="clippingAncestors"?Ks(o)?[]:g4(o,this._c):[].concat(a),r],d=f[0],p=f.reduce((h,v)=>{const y=cv(o,v,s);return h.top=Mt(y.top,h.top),h.right=Tn(y.right,h.right),h.bottom=Tn(y.bottom,h.bottom),h.left=Mt(y.left,h.left),h},cv(o,d,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function y4(t){const{width:o,height:a}=$0(t);return{width:o,height:a}}function b4(t,o,a){const r=en(o),s=Pn(o),c=a==="fixed",f=Cl(t,!0,c,o);let d={scrollLeft:0,scrollTop:0};const p=$n(0);function h(){p.x=Ws(s)}if(r||!r&&!c)if((Ca(o)!=="body"||Ur(s))&&(d=Js(o)),r){const C=Cl(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?Z0(s,d):$n(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 Ff(t){return gn(t).position==="static"}function uv(t,o){if(!en(t)||gn(t).position==="fixed")return null;if(o)return o(t);let a=t.offsetParent;return Pn(t)===a&&(a=a.ownerDocument.body),a}function Y0(t,o){const a=$t(t);if(Ks(t))return a;if(!en(t)){let s=yo(t);for(;s&&!go(s);){if(Xe(s)&&!Ff(s))return s;s=yo(s)}return a}let r=uv(t,o);for(;r&&t4(r)&&Ff(r);)r=uv(r,o);return r&&go(r)&&Ff(r)&&!Yd(r)?a:r||r4(t)||a}const x4=async function(t){const o=this.getOffsetParent||Y0,a=this.getDimensions,r=await a(t.floating);return{reference:b4(t.reference,await o(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function S4(t){return gn(t).direction==="rtl"}const C4={convertOffsetParentRelativeRectToViewportRelativeRect:u4,getDocumentElement:Pn,getClippingRect:v4,getOffsetParent:Y0,getElementRects:x4,getClientRects:f4,getDimensions:y4,getScale:ba,isElement:Xe,isRTL:S4};function P0(t,o){return t.x===o.x&&t.y===o.y&&t.width===o.width&&t.height===o.height}function w4(t,o){let a=null,r;const s=Pn(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 E=ms(y),w=ms(s.clientWidth-(v+x)),M=ms(s.clientHeight-(y+C)),R=ms(v),A={rootMargin:-E+"px "+-w+"px "+-M+"px "+-R+"px",threshold:Mt(0,Tn(1,p))||1};let H=!0;function z(k){const V=k[0].intersectionRatio;if(V!==p){if(!H)return f();V?f(!1,V):r=setTimeout(()=>{f(!1,1e-7)},1e3)}V===1&&!P0(h,t.getBoundingClientRect())&&f(),H=!1}try{a=new IntersectionObserver(z,{...A,root:s.ownerDocument})}catch{a=new IntersectionObserver(z,A)}a.observe(t)}return f(!0),c}function Os(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=Pd(t),v=s||c?[...h?vo(h):[],...vo(o)]:[];v.forEach(R=>{s&&R.addEventListener("scroll",a,{passive:!0}),c&&R.addEventListener("resize",a)});const y=h&&d?w4(h,a):null;let x=-1,C=null;f&&(C=new ResizeObserver(R=>{let[O]=R;O&&O.target===h&&C&&(C.unobserve(o),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var A;(A=C)==null||A.observe(o)})),a()}),h&&!p&&C.observe(h),C.observe(o));let E,w=p?Cl(t):null;p&&M();function M(){const R=Cl(t);w&&!P0(w,R)&&a(),w=R,E=requestAnimationFrame(M)}return a(),()=>{var R;v.forEach(O=>{s&&O.removeEventListener("scroll",a),c&&O.removeEventListener("resize",a)}),y?.(),(R=C)==null||R.disconnect(),C=null,p&&cancelAnimationFrame(E)}}const E4=IC,T4=ZC,M4=KC,R4=qC,_4=JC,j4=YC,fv=$C,O4=XC,N4=FC,A4=(t,o,a)=>{const r=new Map,s={platform:C4,...a},c={...s.platform,_c:r};return UC(t,o,{...s,platform:c})};var H4=typeof document<"u",D4=function(){},ws=H4?S.useLayoutEffect:D4;function Ns(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(!Ns(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)&&!Ns(t[c],o[c]))return!1}return!0}return t!==t&&o!==o}function X0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function dv(t,o){const a=X0(t);return Math.round(o*a)/a}function Jf(t){const o=S.useRef(t);return ws(()=>{o.current=t}),o}function z4(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);Ns(x,r)||C(r);const[E,w]=S.useState(null),[M,R]=S.useState(null),O=S.useCallback(U=>{U!==k.current&&(k.current=U,w(U))},[]),A=S.useCallback(U=>{U!==V.current&&(V.current=U,R(U))},[]),H=c||E,z=f||M,k=S.useRef(null),V=S.useRef(null),J=S.useRef(v),W=p!=null,Q=Jf(p),oe=Jf(s),ie=Jf(h),le=S.useCallback(()=>{if(!k.current||!V.current)return;const U={placement:o,strategy:a,middleware:x};oe.current&&(U.platform=oe.current),A4(k.current,V.current,U).then(ee=>{const ne={...ee,isPositioned:ie.current!==!1};G.current&&!Ns(J.current,ne)&&(J.current=ne,qn.flushSync(()=>{y(ne)}))})},[x,o,a,oe,ie]);ws(()=>{h===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[h]);const G=S.useRef(!1);ws(()=>(G.current=!0,()=>{G.current=!1}),[]),ws(()=>{if(H&&(k.current=H),z&&(V.current=z),H&&z){if(Q.current)return Q.current(H,z,le);le()}},[H,z,le,Q,W]);const re=S.useMemo(()=>({reference:k,floating:V,setReference:O,setFloating:A}),[O,A]),D=S.useMemo(()=>({reference:H,floating:z}),[H,z]),B=S.useMemo(()=>{const U={position:a,left:0,top:0};if(!D.floating)return U;const ee=dv(D.floating,v.x),ne=dv(D.floating,v.y);return d?{...U,transform:"translate("+ee+"px, "+ne+"px)",...X0(D.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ee,top:ne}},[a,d,D.floating,v.x,v.y]);return S.useMemo(()=>({...v,update:le,refs:re,elements:D,floatingStyles:B}),[v,le,re,D,B])}const L4=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?fv({element:r.current,padding:s}).fn(a):{}:r?fv({element:r,padding:s}).fn(a):{}}}},pn=(t,o)=>({...E4(t),options:[t,o]}),Ko=(t,o)=>({...M4(t),options:[t,o]}),mv=(t,o)=>({...N4(t),options:[t,o]}),bo=(t,o)=>({...R4(t),options:[t,o]}),Dr=(t,o)=>({..._4(t),options:[t,o]}),Q0=(t,o)=>({...T4(t),options:[t,o]}),V4=(t,o)=>({...j4(t),options:[t,o]}),jr=(t,o)=>({...O4(t),options:[t,o]}),I0=(t,o)=>({...L4(t),options:[t,o]}),k4="modulepreload",B4=function(t){return"/"+t},pv={},As=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=B4(h),h in pv)return;pv[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":k4,v||(x.as="script"),x.crossOrigin="",x.href=h,d&&x.setAttribute("nonce",d),document.head.appendChild(x),v)return new Promise((C,E)=>{x.addEventListener("load",C),x.addEventListener("error",()=>E(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 U4=Object.defineProperty,$4=(t,o,a)=>o in t?U4(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,hv=(t,o,a)=>$4(t,typeof o!="symbol"?o+"":o,a);const gv=dS.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",mS(t,{class:"bn-thread-mark"})]},parseHTML(){return[{tag:"span.bn-thread-mark"}]},extendMarkSchema(t){return t.name==="comment"?{blocknoteIgnore:!0}:{}}});let G4=class extends pS{constructor(o){super(),hv(this,"userCache",new Map),hv(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 ps=new iS("blocknote-comments");function Z4(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 vn=aS(({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=gv.name,c=new G4(r),f=rS({pendingComment:!1,selectedThreadId:void 0,threadPositions:new Map},{onUpdate(){f.state.selectedThreadId!==f.prevState.selectedThreadId&&t.transact(p=>p.setMeta(ps,!0))}}),d=p=>{t.transact(h=>{h.doc.descendants((v,y)=>{v.marks.forEach(x=>{if(x.type.name===s){const C=x.type,E=x.attrs.threadId,w=p.get(E),M=!!(!w||w.resolved||w.deletedAt);if(M!==x.attrs.orphan){const R=Math.max(y,0),O=Math.min(y+v.nodeSize,h.doc.content.size-1,h.doc.content.size-1);h.removeMark(R,O,x),h.addMark(R,O,C.create({...x.attrs,orphan:M})),M&&f.state.selectedThreadId===E&&f.setState(A=>({...A,selectedThreadId:void 0}))}}})})})};return{key:"comments",store:f,prosemirrorPlugins:[new sS({key:ps,state:{init(){return{decorations:$f.empty}},apply(p,h){const v=p.getMeta(ps);if(!p.docChanged&&!v)return h;const y=p.docChanged?Z4(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(fS.inline(C.from,C.to,{class:"bn-thread-mark-selected"}))}return{decorations:$f.create(p.doc,x)}}},props:{decorations(p){var h;return((h=ps.getState(p))==null?void 0:h.decorations)??$f.empty},handleClick:(p,h,v)=>{if(v.button!==0)return;const y=p.state.doc.nodeAt(h);if(!y){f.setState(E=>({...E,selectedThreadId:void 0}));return}const x=y.marks.find(E=>E.type.name===s&&E.attrs.orphan!==!0),C=x?.attrs.threadId;C!==f.state.selectedThreadId&&f.setState(E=>({...E,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(Md))==null||p.showSelection(!0,"comments")},stopPendingComment(){var p;f.setState(h=>({...h,selectedThreadId:void 0,pendingComment:!1})),(p=t.getExtension(Md))==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=cS.getState(v.state),C={prosemirror:{head:y.head,anchor:y.anchor},yjs:x?uS(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:[gv]}});let Wf;async function q4(){return Wf||(Wf=(async()=>{const[t,o]=await Promise.all([As(()=>import("./module-RjUF93sV.js"),[]),As(()=>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}})(),Wf)}async function Y4(t,o){if(!("text"in t.schema.inlineContentSchema)||t.schema.inlineContentSchema.text!==hS.text)return[];const{emojiData:a,emojiMart:r}=await q4();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 P4(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function X4(){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 Q4(){return/apple/i.test(navigator.vendor)}function I4(){return P4().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function K4(){return X4().includes("jsdom/")}const vv="data-floating-ui-focusable",F4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function yv(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 zr(t,o){if(!t||!o)return!1;const a=o.getRootNode==null?void 0:o.getRootNode();if(t.contains(o))return!0;if(a&&js(a)){let r=o;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function va(t){return"composedPath"in t?t.composedPath()[0]:t.target}function ed(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 J4(t){return t.matches("html,body")}function xl(t){return t?.ownerDocument||document}function W4(t){return en(t)&&t.matches(F4)}function e5(t){if(!t||K4())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function t5(t){return t?t.hasAttribute(vv)?t:t.querySelector("["+vv+"]")||t:null}function Es(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,...Es(t,s.id,a)])}function n5(t){return"nativeEvent"in t}function Ad(t,o){const a=["mouse","pen"];return a.push("",void 0),a.includes(t)}var o5=typeof document<"u",l5=function(){},hn=o5?S.useLayoutEffect:l5;const a5={...w0};function Qo(t){const o=S.useRef(t);return hn(()=>{o.current=t}),o}const r5=a5.useInsertionEffect,i5=r5||(t=>t());function Bn(t){const o=S.useRef(()=>{});return i5(()=>{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 s5(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 c5="data-floating-ui-focusable",bv="active",xv="selected",u5={...w0};let Sv=!1,f5=0;const Cv=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+f5++;function d5(){const[t,o]=S.useState(()=>Sv?Cv():void 0);return hn(()=>{t==null&&o(Cv())},[]),S.useEffect(()=>{Sv=!0},[]),t}const m5=u5.useId,K0=m5||d5;function p5(){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 h5=S.createContext(null),g5=S.createContext(null),Xd=()=>{var t;return((t=S.useContext(h5))==null?void 0:t.id)||null},Qd=()=>S.useContext(g5);function Id(t){return"data-floating-ui-"+t}function kt(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const wv=Id("safe-polygon");function Ts(t,o,a){if(a&&!Ad(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 td(t){return typeof t=="function"?t():t}function F0(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=Qd(),E=Xd(),w=Qo(h),M=Qo(p),R=Qo(a),O=Qo(y),A=S.useRef(),H=S.useRef(-1),z=S.useRef(),k=S.useRef(-1),V=S.useRef(!0),J=S.useRef(!1),W=S.useRef(()=>{}),Q=S.useRef(!1),oe=Bn(()=>{var B;const U=(B=s.current.openEvent)==null?void 0:B.type;return U?.includes("mouse")&&U!=="mousedown"});S.useEffect(()=>{if(!d)return;function B(U){let{open:ee}=U;ee||(kt(H),kt(k),V.current=!0,Q.current=!1)}return c.on("openchange",B),()=>{c.off("openchange",B)}},[d,c]),S.useEffect(()=>{if(!d||!w.current||!a)return;function B(ee){oe()&&r(!1,ee,"hover")}const U=xl(f.floating).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[f.floating,a,r,d,w,oe]);const ie=S.useCallback(function(B,U,ee){U===void 0&&(U=!0),ee===void 0&&(ee="hover");const ne=Ts(M.current,"close",A.current);ne&&!z.current?(kt(H),H.current=window.setTimeout(()=>r(!1,B,ee),ne)):U&&(kt(H),r(!1,B,ee))},[M,r]),le=Bn(()=>{W.current(),z.current=void 0}),G=Bn(()=>{if(J.current){const B=xl(f.floating).body;B.style.pointerEvents="",B.removeAttribute(wv),J.current=!1}}),re=Bn(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);S.useEffect(()=>{if(!d)return;function B($){if(kt(H),V.current=!1,v&&!Ad(A.current)||td(O.current)>0&&!Ts(M.current,"open"))return;const F=Ts(M.current,"open",A.current);F?H.current=window.setTimeout(()=>{R.current||r(!0,$,"hover")},F):a||r(!0,$,"hover")}function U($){if(re()){G();return}W.current();const F=xl(f.floating);if(kt(k),Q.current=!1,w.current&&s.current.floatingContext){a||kt(H),z.current=w.current({...s.current.floatingContext,tree:C,x:$.clientX,y:$.clientY,onClose(){G(),le(),re()||ie($,!0,"safe-polygon")}});const se=z.current;F.addEventListener("mousemove",se),W.current=()=>{F.removeEventListener("mousemove",se)};return}(A.current!=="touch"||!zr(f.floating,$.relatedTarget))&&ie($)}function ee($){re()||s.current.floatingContext&&(w.current==null||w.current({...s.current.floatingContext,tree:C,x:$.clientX,y:$.clientY,onClose(){G(),le(),re()||ie($)}})($))}function ne(){kt(H)}function _($){re()||ie($,!1)}if(Xe(f.domReference)){const $=f.domReference,F=f.floating;return a&&$.addEventListener("mouseleave",ee),x&&$.addEventListener("mousemove",B,{once:!0}),$.addEventListener("mouseenter",B),$.addEventListener("mouseleave",U),F&&(F.addEventListener("mouseleave",ee),F.addEventListener("mouseenter",ne),F.addEventListener("mouseleave",_)),()=>{a&&$.removeEventListener("mouseleave",ee),x&&$.removeEventListener("mousemove",B),$.removeEventListener("mouseenter",B),$.removeEventListener("mouseleave",U),F&&(F.removeEventListener("mouseleave",ee),F.removeEventListener("mouseenter",ne),F.removeEventListener("mouseleave",_))}}},[f,d,t,v,x,ie,le,G,r,a,R,C,M,w,s,re,O]),hn(()=>{var B;if(d&&a&&(B=w.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&oe()){J.current=!0;const ee=f.floating;if(Xe(f.domReference)&&ee){var U;const ne=xl(f.floating).body;ne.setAttribute(wv,"");const _=f.domReference,$=C==null||(U=C.nodesRef.current.find(F=>F.id===E))==null||(U=U.context)==null?void 0:U.elements.floating;return $&&($.style.pointerEvents=""),ne.style.pointerEvents="none",_.style.pointerEvents="auto",ee.style.pointerEvents="auto",()=>{ne.style.pointerEvents="",_.style.pointerEvents="",ee.style.pointerEvents=""}}}},[d,a,E,f,C,w,oe]),hn(()=>{a||(A.current=void 0,Q.current=!1,le(),G())},[a,le,G]),S.useEffect(()=>()=>{le(),kt(H),kt(k),G()},[d,f.domReference,le,G]);const D=S.useMemo(()=>{function B(U){A.current=U.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(U){const{nativeEvent:ee}=U;function ne(){!V.current&&!R.current&&r(!0,ee,"hover")}v&&!Ad(A.current)||a||td(O.current)===0||Q.current&&U.movementX**2+U.movementY**2<2||(kt(k),A.current==="touch"?ne():(Q.current=!0,k.current=window.setTimeout(ne,td(O.current))))}}},[v,r,a,R,O]);return S.useMemo(()=>d?{reference:D}:{},[d,D])}const Hd=()=>{},J0=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Hd,setState:Hd,isInstantPhase:!1}),v5=()=>S.useContext(J0);function y5(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 hn(()=>{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(J0.Provider,{value:S.useMemo(()=>({...s,setState:c,setCurrentId:d}),[s,d]),children:o})}function b5(t,o){o===void 0&&(o={});const{open:a,onOpenChange:r,floatingId:s}=t,{id:c,enabled:f=!0}=o,d=c??s,p=v5(),{currentId:h,setCurrentId:v,initialDelay:y,setState:x,timeoutMs:C}=p;return hn(()=>{f&&h&&(x({delay:{open:1,close:Ts(y,"close")}}),h!==d&&r(!1))},[f,d,r,x,h,y]),hn(()=>{function E(){r(!1),x({delay:y,currentId:null})}if(f&&h&&!a&&h===d){if(C){const w=window.setTimeout(E,C);return()=>{clearTimeout(w)}}E()}},[f,a,x,h,d,r,y,C]),hn(()=>{f&&(v===Hd||!a||v(d))},[f,a,v,d]),p}function nd(t,o){if(!t||!o)return!1;const a=o.getRootNode==null?void 0:o.getRootNode();if(t.contains(o))return!0;if(a&&js(a)){let r=o;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function x5(t){return"composedPath"in t?t.composedPath()[0]:t.target}const S5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},C5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ev=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 W0(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:E}=o,w=Qd(),M=Bn(typeof p=="function"?p:()=>!1),R=typeof p=="function"?M:p,O=S.useRef(!1),{escapeKey:A,outsidePress:H}=Ev(C),{escapeKey:z,outsidePress:k}=Ev(E),V=S.useRef(!1),J=Bn(G=>{var re;if(!a||!f||!d||G.key!=="Escape"||V.current)return;const D=(re=c.current.floatingContext)==null?void 0:re.nodeId,B=w?Es(w.nodesRef.current,D):[];if(!A&&(G.stopPropagation(),B.length>0)){let U=!0;if(B.forEach(ee=>{var ne;if((ne=ee.context)!=null&&ne.open&&!ee.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}r(!1,n5(G)?G.nativeEvent:G,"escape-key")}),W=Bn(G=>{var re;const D=()=>{var B;J(G),(B=va(G))==null||B.removeEventListener("keydown",D)};(re=va(G))==null||re.addEventListener("keydown",D)}),Q=Bn(G=>{var re;const D=c.current.insideReactTree;c.current.insideReactTree=!1;const B=O.current;if(O.current=!1,h==="click"&&B||D||typeof R=="function"&&!R(G))return;const U=va(G),ee="["+Id("inert")+"]",ne=xl(s.floating).querySelectorAll(ee);let _=Xe(U)?U:null;for(;_&&!go(_);){const se=yo(_);if(go(se)||!Xe(se))break;_=se}if(ne.length&&Xe(U)&&!J4(U)&&!zr(U,s.floating)&&Array.from(ne).every(se=>!zr(_,se)))return;if(en(U)&&le){const se=go(U),ue=gn(U),ve=/auto|scroll/,Se=se||ve.test(ue.overflowX),me=se||ve.test(ue.overflowY),We=Se&&U.clientWidth>0&&U.scrollWidth>U.clientWidth,it=me&&U.clientHeight>0&&U.scrollHeight>U.clientHeight,tt=ue.direction==="rtl",Ve=it&&(tt?G.offsetX<=U.offsetWidth-U.clientWidth:G.offsetX>U.clientWidth),lt=We&&G.offsetY>U.clientHeight;if(Ve||lt)return}const $=(re=c.current.floatingContext)==null?void 0:re.nodeId,F=w&&Es(w.nodesRef.current,$).some(se=>{var ue;return ed(G,(ue=se.context)==null?void 0:ue.elements.floating)});if(ed(G,s.floating)||ed(G,s.domReference)||F)return;const ae=w?Es(w.nodesRef.current,$):[];if(ae.length>0){let se=!0;if(ae.forEach(ue=>{var ve;if((ve=ue.context)!=null&&ve.open&&!ue.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}r(!1,G,"outside-press")}),oe=Bn(G=>{var re;const D=()=>{var B;Q(G),(B=va(G))==null||B.removeEventListener(h,D)};(re=va(G))==null||re.addEventListener(h,D)});S.useEffect(()=>{if(!a||!f)return;c.current.__escapeKeyBubbles=A,c.current.__outsidePressBubbles=H;let G=-1;function re(ne){r(!1,ne,"ancestor-scroll")}function D(){window.clearTimeout(G),V.current=!0}function B(){G=window.setTimeout(()=>{V.current=!1},Fs()?5:0)}const U=xl(s.floating);d&&(U.addEventListener("keydown",z?W:J,z),U.addEventListener("compositionstart",D),U.addEventListener("compositionend",B)),R&&U.addEventListener(h,k?oe:Q,k);let ee=[];return x&&(Xe(s.domReference)&&(ee=vo(s.domReference)),Xe(s.floating)&&(ee=ee.concat(vo(s.floating))),!Xe(s.reference)&&s.reference&&s.reference.contextElement&&(ee=ee.concat(vo(s.reference.contextElement)))),ee=ee.filter(ne=>{var _;return ne!==((_=U.defaultView)==null?void 0:_.visualViewport)}),ee.forEach(ne=>{ne.addEventListener("scroll",re,{passive:!0})}),()=>{d&&(U.removeEventListener("keydown",z?W:J,z),U.removeEventListener("compositionstart",D),U.removeEventListener("compositionend",B)),R&&U.removeEventListener(h,k?oe:Q,k),ee.forEach(ne=>{ne.removeEventListener("scroll",re)}),window.clearTimeout(G)}},[c,s,d,R,h,a,r,x,f,A,H,J,z,W,Q,k,oe]),S.useEffect(()=>{c.current.insideReactTree=!1},[c,R,h]);const ie=S.useMemo(()=>({onKeyDown:J,...v&&{[S5[y]]:G=>{r(!1,G.nativeEvent,"reference-press")},...y!=="click"&&{onClick(G){r(!1,G.nativeEvent,"reference-press")}}}}),[J,r,v,y]),le=S.useMemo(()=>({onKeyDown:J,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[C5[h]]:()=>{c.current.insideReactTree=!0}}),[J,h,c]);return S.useMemo(()=>f?{reference:ie,floating:le}:{},[f,ie,le])}function w5(t){const{open:o=!1,onOpenChange:a,elements:r}=t,s=K0(),c=S.useRef({}),[f]=S.useState(()=>p5()),d=Xd()!=null,[p,h]=S.useState(r.reference),v=Bn((C,E,w)=>{c.current.openEvent=C?E:void 0,f.emit("openchange",{open:C,event:E,reason:w,nested:d}),a?.(C,E,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 ec(t){t===void 0&&(t={});const{nodeId:o}=t,a=w5({...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=Qd();hn(()=>{v&&(y.current=v)},[v]);const C=z4({...t,elements:{...s,...d&&{reference:d}}}),E=S.useCallback(A=>{const H=Xe(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;p(H),C.refs.setReference(H)},[C.refs]),w=S.useCallback(A=>{(Xe(A)||A===null)&&(y.current=A,f(A)),(Xe(C.refs.reference.current)||C.refs.reference.current===null||A!==null&&!Xe(A))&&C.refs.setReference(A)},[C.refs]),M=S.useMemo(()=>({...C.refs,setReference:w,setPositionReference:E,domReference:y}),[C.refs,w,E]),R=S.useMemo(()=>({...C.elements,domReference:v}),[C.elements,v]),O=S.useMemo(()=>({...C,...r,refs:M,elements:R,nodeId:o}),[C,M,R,o,r]);return hn(()=>{r.dataRef.current.floatingContext=O;const A=x?.nodesRef.current.find(H=>H.id===o);A&&(A.context=O)}),S.useMemo(()=>({...C,context:O,refs:M,elements:R}),[C,M,R,O])}function od(){return I4()&&Q4()}function E5(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=$t(f.domReference);function E(){!a&&en(f.domReference)&&f.domReference===yv(xl(f.domReference))&&(h.current=!0)}function w(){y.current=!0}function M(){y.current=!1}return C.addEventListener("blur",E),od()&&(C.addEventListener("keydown",w,!0),C.addEventListener("pointerdown",M,!0)),()=>{C.removeEventListener("blur",E),od()&&(C.removeEventListener("keydown",w,!0),C.removeEventListener("pointerdown",M,!0))}},[f.domReference,a,d]),S.useEffect(()=>{if(!d)return;function C(E){let{reason:w}=E;(w==="reference-press"||w==="escape-key")&&(h.current=!0)}return s.on("openchange",C),()=>{s.off("openchange",C)}},[s,d]),S.useEffect(()=>()=>{kt(v)},[]);const x=S.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(C){if(h.current)return;const E=va(C.nativeEvent);if(p&&Xe(E)){if(od()&&!C.relatedTarget){if(!y.current&&!W4(E))return}else if(!e5(E))return}r(!0,C.nativeEvent,"focus")},onBlur(C){h.current=!1;const E=C.relatedTarget,w=C.nativeEvent,M=Xe(E)&&E.hasAttribute(Id("focus-guard"))&&E.getAttribute("data-type")==="outside";v.current=window.setTimeout(()=>{var R;const O=yv(f.domReference?f.domReference.ownerDocument:document);!E&&O===f.domReference||zr((R=c.current.floatingContext)==null?void 0:R.refs.floating.current,O)||zr(f.domReference,O)||M||r(!1,w,"focus")})}}),[c,f.domReference,r,p]);return S.useMemo(()=>d?{reference:x}:{},[d,x])}function ld(t,o,a){const r=new Map,s=a==="item";let c=t;if(s&&t){const{[bv]:f,[xv]:d,...p}=t;c=p}return{...a==="floating"&&{tabIndex:-1,[c5]:""},...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&&[bv,xv].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,E=new Array(C),w=0;w<C;w++)E[w]=arguments[w];return(x=r.get(h))==null?void 0:x.map(M=>M(...E)).find(M=>M!==void 0)}}}else f[h]=v}),f),{})}}function ey(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=>ld(d,t,"reference"),o),c=S.useCallback(d=>ld(d,t,"floating"),a),f=S.useCallback(d=>ld(d,t,"item"),r);return S.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:f}),[s,c,f])}const T5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function M5(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=K0(),v=((a=c.domReference)==null?void 0:a.id)||h,y=S.useMemo(()=>{var O;return((O=t5(c.floating))==null?void 0:O.id)||f},[c.floating,f]),x=(r=T5.get(p))!=null?r:p,E=Xd()!=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"&&E&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[x,y,E,s,v,p]),M=S.useMemo(()=>{const O={id:y,...x&&{role:x}};return x==="tooltip"||p==="label"?O:{...O,...x==="menu"&&{"aria-labelledby":v}}},[x,y,v,p]),R=S.useCallback(O=>{let{active:A,selected:H}=O;const z={role:"option",...A&&{id:y+"-fui-option"}};switch(p){case"select":case"combobox":return{...z,"aria-selected":H}}return{}},[y,p]);return S.useMemo(()=>d?{reference:w,floating:M,item:R}:{},[d,w,M,R])}const Tv=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(o,a)=>(a?"-":"")+o.toLowerCase());function ma(t,o){return typeof t=="function"?t(o):t}function R5(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 ty(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=R5(a,f);return!h&&d==="close"&&p("unmounted"),hn(()=>{if(r){if(a){p("initial");const v=requestAnimationFrame(()=>{qn.flushSync(()=>{p("open")})});return()=>{cancelAnimationFrame(v)}}p("close")}},[a,r]),{isMounted:h,status:d}}function _5(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,E]=S.useState(()=>({...ma(c,h),...ma(a,h)})),{isMounted:w,status:M}=ty(t,{duration:f}),R=Qo(a),O=Qo(r),A=Qo(s),H=Qo(c);return hn(()=>{const z=ma(R.current,h),k=ma(A.current,h),V=ma(H.current,h),J=ma(O.current,h)||Object.keys(z).reduce((W,Q)=>(W[Q]="",W),{});if(M==="initial"&&E(W=>({transitionProperty:W.transitionProperty,...V,...z})),M==="open"&&E({transitionProperty:Object.keys(J).map(Tv).join(","),transitionDuration:y+"ms",...V,...J}),M==="close"){const W=k||z;E({transitionProperty:Object.keys(W).map(Tv).join(","),transitionDuration:x+"ms",...V,...W})}},[x,A,R,O,H,y,M,h]),{isMounted:w,styles:C}}function ny(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,...ny(t,s.id,a)])}function Mv(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 j5(t,o){return t[0]>=o.x&&t[0]<=o.x+o.width&&t[1]>=o.y&&t[1]<=o.y+o.height}function O5(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(),E=C-p;if(f===null||d===null||E===0)return f=y,d=x,p=C,null;const w=y-f,M=x-d,O=Math.sqrt(w*w+M*M)/E;return f=y,d=x,p=C,O}const v=y=>{let{x,y:C,placement:E,elements:w,onClose:M,nodeId:R,tree:O}=y;return function(H){function z(){kt(s),M()}if(kt(s),!w.domReference||!w.floating||E==null||x==null||C==null)return;const{clientX:k,clientY:V}=H,J=[k,V],W=x5(H),Q=H.type==="mouseleave",oe=nd(w.floating,W),ie=nd(w.domReference,W),le=w.domReference.getBoundingClientRect(),G=w.floating.getBoundingClientRect(),re=E.split("-")[0],D=x>G.right-G.width/2,B=C>G.bottom-G.height/2,U=j5(J,le),ee=G.width>le.width,ne=G.height>le.height,_=(ee?le:G).left,$=(ee?le:G).right,F=(ne?le:G).top,ae=(ne?le:G).bottom;if(oe&&(c=!0,!Q))return;if(ie&&(c=!1),ie&&!Q){c=!0;return}if(Q&&Xe(H.relatedTarget)&&nd(w.floating,H.relatedTarget)||O&&ny(O.nodesRef.current,R).length)return;if(re==="top"&&C>=le.bottom-1||re==="bottom"&&C<=le.top+1||re==="left"&&x>=le.right-1||re==="right"&&x<=le.left+1)return z();let se=[];switch(re){case"top":se=[[_,le.top+1],[_,G.bottom-1],[$,G.bottom-1],[$,le.top+1]];break;case"bottom":se=[[_,G.top+1],[_,le.bottom-1],[$,le.bottom-1],[$,G.top+1]];break;case"left":se=[[G.right-1,ae],[G.right-1,F],[le.left+1,F],[le.left+1,ae]];break;case"right":se=[[le.right-1,ae],[le.right-1,F],[G.left+1,F],[G.left+1,ae]];break}function ue(ve){let[Se,me]=ve;switch(re){case"top":{const We=[ee?Se+o/2:D?Se+o*4:Se-o*4,me+o+1],it=[ee?Se-o/2:D?Se+o*4:Se-o*4,me+o+1],tt=[[G.left,D||ee?G.bottom-o:G.top],[G.right,D?ee?G.bottom-o:G.top:G.bottom-o]];return[We,it,...tt]}case"bottom":{const We=[ee?Se+o/2:D?Se+o*4:Se-o*4,me-o],it=[ee?Se-o/2:D?Se+o*4:Se-o*4,me-o],tt=[[G.left,D||ee?G.top+o:G.bottom],[G.right,D?ee?G.top+o:G.bottom:G.top+o]];return[We,it,...tt]}case"left":{const We=[Se+o+1,ne?me+o/2:B?me+o*4:me-o*4],it=[Se+o+1,ne?me-o/2:B?me+o*4:me-o*4];return[...[[B||ne?G.right-o:G.left,G.top],[B?ne?G.right-o:G.left:G.right-o,G.bottom]],We,it]}case"right":{const We=[Se-o,ne?me+o/2:B?me+o*4:me-o*4],it=[Se-o,ne?me-o/2:B?me+o*4:me-o*4],tt=[[B||ne?G.left+o:G.right,G.top],[B?ne?G.left+o:G.right:G.left+o,G.bottom]];return[We,it,...tt]}}}if(!Mv([k,V],se)){if(c&&!U)return z();if(!Q&&r){const ve=h(H.clientX,H.clientY);if(ve!==null&&ve<.1)return z()}Mv([k,V],ue([x,C]))?!c&&r&&(s.current=window.setTimeout(z,40)):z()}}};return v.__options={blockPointerEvents:a},v}var ad={exports:{}},rd={},id={exports:{}},sd={};var Rv;function N5(){if(Rv)return sd;Rv=1;var t=Br();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(),E=r({inst:{value:C,getSnapshot:x}}),w=E[0].inst,M=E[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 _v;function oy(){return _v||(_v=1,id.exports=N5()),id.exports}var jv;function A5(){if(jv)return rd;jv=1;var t=Br(),o=oy();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 rd.useSyncExternalStoreWithSelector=function(h,v,y,x,C){var E=c(null);if(E.current===null){var w={hasValue:!1,value:null};E.current=w}else w=E.current;E=d(function(){function R(k){if(!O){if(O=!0,A=k,k=x(k),C!==void 0&&w.hasValue){var V=w.value;if(C(V,k))return H=V}return H=k}if(V=H,r(A,k))return V;var J=x(k);return C!==void 0&&C(V,J)?(A=k,V):(A=k,H=J)}var O=!1,A,H,z=y===void 0?null:y;return[function(){return R(v())},z===null?void 0:function(){return R(z())}]},[v,y,x,C]);var M=s(h,E[0],E[1]);return f(function(){w.hasValue=!0,w.value=M},[M]),p(M),M},rd}var Ov;function H5(){return Ov||(Ov=1,ad.exports=A5()),ad.exports}var D5=H5();function z5(t,o=a=>a){return D5.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,o,L5)}function L5(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=Nv(t);if(a.length!==Nv(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 Nv(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}var V5=oy(),k5=(...t)=>o=>{t.forEach(a=>{typeof a=="function"?a(o):a&&(a.current=o)})},B5=({contentComponent:t})=>{const o=V5.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return g.jsx(g.Fragment,{children:Object.values(o)})};function U5(){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]:M0.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 $5=class extends Be.Component{constructor(t){var o;super(t),this.editorContentRef=Be.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=U5(),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:k5(o,this.editorContentRef),...a}),t?.contentComponent&&g.jsx(B5,{contentComponent:t.contentComponent})]})}},G5=S.forwardRef((t,o)=>{const a=Be.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return Be.createElement($5,{key:a,innerRef:o,...t})}),Z5=Be.memo(G5),ly=S.createContext({editor:null});ly.Consumer;var ay=S.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),Kd=()=>S.useContext(ay),ry=Be.forwardRef((t,o)=>{const{onDragStart:a}=Kd(),r=t.as||"div";return g.jsx(r,{...t,ref:o,"data-node-view-wrapper":"",onDragStart:a,style:{whiteSpace:"normal",...t.style}})});function Av(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function Hv(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function q5(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function Y5(t){if(Av(t)||Hv(t))return!0;if(q5(t)){const o=t.type;if(o)return Av(o)||Hv(o)}return!1}function P5(){try{if(S.version)return parseInt(S.version.split(".")[0],10)>=19}catch{}return!1}var X5=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?qn.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=P5(),c=Y5(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])})}};Be.createContext({markViewContentRef:()=>{}});var Q5=class extends gS{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(ay.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 X5(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=vS(this.node,o);t=this.options.attrs({node:this.node,HTMLAttributes:a})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function iy(t,o){return a=>a.editor.contentComponent?new Q5(t,a,o):{}}var Fd=S.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});Fd.displayName="TiptapContext";var I5=()=>S.useContext(Fd);function sy({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(ly.Provider,{value:c,children:g.jsx(Fd.Provider,{value:s,children:a})})}sy.displayName="Tiptap";function cy({...t}){const{editor:o}=I5();return g.jsx(Z5,{editor:o,...t})}cy.displayName="Tiptap.Content";Object.assign(sy,{Content:cy});var K5=Object.defineProperty,F5=(t,o,a)=>o in t?K5(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,Mr=(t,o,a)=>F5(t,typeof o!="symbol"?o+"":o,a);const uy=S.createContext(void 0);function Rn(t){return S.useContext(uy)}const fy=S.createContext(void 0);function he(){return S.useContext(fy)}function be(t){const o=Rn();if(!(o!=null&&o.editor))throw new Error("useBlockNoteEditor was called outside of a BlockNoteContext provider or BlockNoteView component");return o.editor}function Te(){return Rn().editor.dictionary}const J5=t=>{const o=he(),a=Te(),r=be(),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:Bg(c),url:c}}))},[r,s.id,c]),h=S.useCallback(()=>{r.updateBlock(s.id,{props:{name:Bg(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})]})},W5=t=>{var o,a;const r=he(),s=Te(),{setLoading:c}=t,f=be(),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 E(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)}}E(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})]})},dy=t=>{const o=he(),a=Te(),r=be(),[s,c]=S.useState(!1),f=t.tabs??[...r.uploadFile!==void 0?[{name:a.file_panel.upload.title,tabPanel:g.jsx(W5,{blockId:t.blockId,setLoading:c})}]:[],{name:a.file_panel.embed.title,tabPanel:g.jsx(J5,{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 e3(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 Un=t=>{var o,a,r;const{refs:s,floatingStyles:c,context:f}=ec({whileElementsMounted:Os,...t.useFloatingOptions}),{isMounted:d,styles:p}=_5(f,t.useTransitionStylesProps),{status:h}=ty(f,t.useTransitionStatusProps),v=W0(f,t.useDismissProps),y=F0(f,{enabled:!1,...t.useHoverProps}),{getFloatingProps:x}=ey([v,y]),C=S.useRef(""),E=S.useRef(null),w=s5([E,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:e3(t.reference),contextElement:R})}},[t.reference,s]),S.useEffect(()=>{var R;(h==="initial"||h==="open")&&(R=E.current)!=null&&R.innerHTML&&(C.current=E.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})},my=t=>{const{blockId:o,children:a,...r}=t,s=be(),c=S.useMemo(()=>s.transact(f=>{if(!o)return;const d=x0(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(Un,{reference:c,...r,children:o!==void 0&&a})};function De(t,o){const a=(o?.editor??be()).getExtension(t);if(!a)throw new Error("Extension not found",{cause:{plugin:t}});return a}function Pe(t,o){const{store:a}=De(t,o);if(!a)throw new Error("Store not found on plugin",{cause:{plugin:t}});return z5(a,o?.selector)}const t3=t=>{const o=be(),a=De(Rd),r=Pe(Rd),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:[pn(10),bo()],...(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||dy;return g.jsx(my,{blockId:r,...s,children:r&&g.jsx(c,{blockId:r})})};function n3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var o3=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 l3=n3(o3);var py={exports:{}},cd={},Dv={exports:{}},ud={};var zv;function a3(){if(zv)return ud;zv=1;var t=Be;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(),E=r({inst:{value:C,getSnapshot:x}}),w=E[0].inst,M=E[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 ud.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,ud}var Lv;function r3(){return Lv||(Lv=1,Dv.exports=a3()),Dv.exports}var Vv;function i3(){if(Vv)return cd;Vv=1;var t=Be,o=r3();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 cd.useSyncExternalStoreWithSelector=function(h,v,y,x,C){var E=c(null);if(E.current===null){var w={hasValue:!1,value:null};E.current=w}else w=E.current;E=d(function(){function R(k){if(!O){if(O=!0,A=k,k=x(k),C!==void 0&&w.hasValue){var V=w.value;if(C(V,k))return H=V}return H=k}if(V=H,r(A,k))return V;var J=x(k);return C!==void 0&&C(V,J)?(A=k,V):(A=k,H=J)}var O=!1,A,H,z=y===void 0?null:y;return[function(){return R(v())},z===null?void 0:function(){return R(z())}]},[v,y,x,C]);var M=s(h,E[0],E[1]);return f(function(){w.hasValue=!0,w.value=M},[M]),p(M),M},cd}py.exports=i3();var s3=py.exports;const c3=typeof window<"u"?S.useLayoutEffect:S.useEffect;class u3{constructor(o){Mr(this,"transactionNumber",0),Mr(this,"lastTransactionNumber",0),Mr(this,"lastSnapshot"),Mr(this,"editor"),Mr(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 vt(t){const o=Rn(),a=t.editor||o?.editor||null,r=t.on||"all",[s]=S.useState(()=>new u3(a)),c=s3.useSyncExternalStoreWithSelector(s.subscribe,s.getSnapshot,s.getServerSnapshot,t.selector,t.equalityFn??l3);return c3(()=>s.watch(a,r),[a,s,r]),S.useDebugValue(c),c}const Jd=t=>{const{position:o,children:a,...r}=t,{from:s,to:c}=o||{},f=be(),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:()=>_S(f.prosemirrorView,s,c??s)}},[f,s,c]);return g.jsx(Un,{reference:d,...r,children:o!==void 0&&a})};var hy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},kv=Be.createContext&&Be.createContext(hy),f3=["attr","size","title"];function d3(t,o){if(t==null)return{};var a=m3(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 m3(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 Hs(){return Hs=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},Hs.apply(this,arguments)}function Bv(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 Ds(t){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?Bv(Object(a),!0).forEach(function(r){p3(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Bv(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function p3(t,o,a){return o=h3(o),o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function h3(t){var o=g3(t,"string");return typeof o=="symbol"?o:o+""}function g3(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 gy(t){return t&&t.map((o,a)=>Be.createElement(o.tag,Ds({key:a},o.attr),gy(o.child)))}function ge(t){return o=>Be.createElement(v3,Hs({attr:Ds({},t.attr)},o),gy(t.child))}function v3(t){var o=a=>{var{attr:r,size:s,title:c}=t,f=d3(t,f3),d=s||a.size||"1em",p;return a.className&&(p=a.className),t.className&&(p=(p?p+" ":"")+t.className),Be.createElement("svg",Hs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:Ds(Ds({color:t.color||a.color},a.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&Be.createElement("title",null,c),t.children)};return kv!==void 0?Be.createElement(kv.Consumer,null,a=>o(a)):o(hy)}function y3(t){return ge({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 vy(t){return ge({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 b3(t){return ge({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 x3(t){return ge({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 S3(t){return ge({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 C3(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"},child:[]}]})(t)}function w3(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"},child:[]}]})(t)}function E3(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"},child:[]}]})(t)}function T3(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"},child:[]}]})(t)}function M3(t){return ge({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 R3(t){return ge({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 Uv(t){return ge({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 zs(t){return ge({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 Ls(t){return ge({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 Vs(t){return ge({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 yy(t){return ge({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 by(t){return ge({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 xy(t){return ge({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 _3(t){return ge({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 j3(t){return ge({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 $v(t){return ge({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 O3(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z"},child:[]}]})(t)}function N3(t){return ge({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 Sy(t){return ge({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 Cy(t){return ge({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 wy(t){return ge({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 Ey(t){return ge({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 A3(t){return ge({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 H3(t){return ge({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 Ty(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 4H3V6H21V4ZM21 11H8V13H21V11ZM21 18H8V20H21V18ZM5 11H3V20H5V11Z"},child:[]}]})(t)}function D3(t){return ge({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 z3(t){return ge({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 Wd(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 6V21H11V6H5V4H19V6H13Z"},child:[]}]})(t)}function L3(t){return ge({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 V3(t){return ge({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 k3(t){return ge({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 B3(t){return ge({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 U3(t){return ge({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 My(t){return ge({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 $3(t){return ge({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 G3(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z"},child:[]}]})(t)}function Z3(t){return ge({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 q3(t){return ge({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 Y3(t){return ge({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 P3(t){return ge({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 X3(t){return ge({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 Q3(t){return ge({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 I3(t){return ge({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 11V13H19V11H5Z"},child:[]}]})(t)}function K3(t){return ge({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 Gv(t){return ge({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 F3={bold:M3,italic:O3,underline:L3,strike:D3,code:x3};function J3(t,o){return t in o.schema.styleSchema&&o.schema.styleSchema[t].type===t&&o.schema.styleSchema[t].propSchema==="boolean"}const hs=t=>{const o=Te(),a=he(),r=be(),s=vt({editor:r,selector:({editor:d})=>{var p;if(!(!d.isEditable||!J3(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=F3[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:Ps(o.formatting_toolbar[t.basicTextStyle].secondary_tooltip,o.generic.ctrl_shortcut),icon:g.jsx(f,{})})},Dd=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"})},Zv=["default","gray","brown","red","orange","yellow","green","blue","purple","pink"],tc=t=>{const o=he(),a=Te();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}),Zv.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(Dd,{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}),Zv.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(Dd,{backgroundColor:r,size:t.iconSize}),checked:t.background.color===r,children:a.color_picker.colors[r]},"background-color-"+r))]}):null,{})]})};function gs(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 W3=()=>{const t=he(),o=Te(),a=be(),r=gs("text",a),s=gs("background",a),c=vt({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=gs("text",p),y=gs("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(Dd,{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(tc,{text:c.textColor?{color:c.textColor,setColor:f}:void 0,background:c.backgroundColor?{color:c.backgroundColor,setColor:d}:void 0})})]})},qv=t=>{for(const o of OS)if(t.startsWith(o))return t;return`${NS}://${t}`},Ry=t=>{const o=he(),a=Te(),{editLink:r}=De(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(qv(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),[]),E=S.useCallback(()=>{var w,M;r(qv(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(Sy,{}),autoFocus:!0,placeholder:a.link_toolbar.form.url_placeholder,value:d,onKeyDown:y,onChange:x,onSubmit:E}),f!==!1&&g.jsx(o.Generic.Form.TextInput,{className:"bn-text-input",name:"title",icon:g.jsx(Wd,{}),placeholder:a.link_toolbar.form.title_placeholder,value:h,onKeyDown:y,onChange:C,onSubmit:E})]})};function e8(t){return"link"in t.schema.inlineContentSchema&&t.schema.inlineContentSchema.link==="link"}const t8=()=>{const t=be(),o=he(),a=Te(),r=De(Nr),{showSelection:s}=De(Md),[c,f]=S.useState(!1);S.useEffect(()=>(s(c,"createLinkButton"),()=>s(!1,"createLinkButton")),[c,s]);const d=vt({editor:t,selector:({editor:p})=>{var h;if(!(!p.isEditable||!e8(p)||jS(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:Ps(a.formatting_toolbar.link.secondary_tooltip,a.generic.ctrl_shortcut),icon:g.jsx(Sy,{}),onClick:()=>f(p=>!p)})}),g.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:g.jsx(Ry,{url:d.url||"",text:d.text,range:d.range,showTextField:!1,setToolbarOpen:p=>r.store.setState(p)})})]})},n8=()=>{const t=Te(),o=he(),a=be(),r=vt({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(Bt(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&&Sl(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($v,{})})}),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($v,{}),value:s||"",autoFocus:!0,placeholder:t.formatting_toolbar.file_caption.input_placeholder,onKeyDown:d,onChange:f})})})]})},o8=()=>{const t=Te(),o=he(),a=be(),r=vt({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(Bt(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(q3,{}),onClick:s})},l8=()=>{const t=Te(),o=he(),a=be(),r=vt({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(Bt(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&&Sl(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(Uv,{})})}),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(Uv,{}),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})})})]})},a8=()=>{const t=Te(),o=he(),a=be(),r=vt({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(Bt(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(U3,{})})}),g.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-panel-popover",variant:"panel-popover",children:g.jsx(dy,{blockId:r.id})})]})},r8=()=>{const t=Te(),o=he(),a=be(),r=vt({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:Ps(t.formatting_toolbar.nest.secondary_tooltip,t.generic.ctrl_shortcut),icon:g.jsx(j3,{})})},i8=()=>{const t=Te(),o=he(),a=be(),r=vt({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:Ps(t.formatting_toolbar.unnest.secondary_tooltip,t.generic.ctrl_shortcut),icon:g.jsx(_3,{})})},s8=t=>[{name:t.slash_menu.paragraph.title,type:"paragraph",icon:Wd},{name:t.slash_menu.heading.title,type:"heading",props:{level:1,isToggleable:!1},icon:zs},{name:t.slash_menu.heading_2.title,type:"heading",props:{level:2,isToggleable:!1},icon:Ls},{name:t.slash_menu.heading_3.title,type:"heading",props:{level:3,isToggleable:!1},icon:Vs},{name:t.slash_menu.heading_4.title,type:"heading",props:{level:4,isToggleable:!1},icon:yy},{name:t.slash_menu.heading_5.title,type:"heading",props:{level:5,isToggleable:!1},icon:by},{name:t.slash_menu.heading_6.title,type:"heading",props:{level:6,isToggleable:!1},icon:xy},{name:t.slash_menu.toggle_heading.title,type:"heading",props:{level:1,isToggleable:!0},icon:zs},{name:t.slash_menu.toggle_heading_2.title,type:"heading",props:{level:2,isToggleable:!0},icon:Ls},{name:t.slash_menu.toggle_heading_3.title,type:"heading",props:{level:3,isToggleable:!0},icon:Vs},{name:t.slash_menu.quote.title,type:"quote",icon:Ty},{name:t.slash_menu.toggle_list.title,type:"toggleListItem",icon:My},{name:t.slash_menu.bullet_list.title,type:"bulletListItem",icon:Ey},{name:t.slash_menu.numbered_list.title,type:"numberedListItem",icon:wy},{name:t.slash_menu.check_list.title,type:"checkListItem",icon:Cy}],c8=t=>{const o=he(),a=be(),r=vt({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||s8(a.dictionary)).filter(d=>Sl(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})},u8=()=>{const t=Te(),o=he(),a=De("comments"),{store:r}=De(Nr),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(vy,{}),onClick:s})},f8=()=>be().getExtension("comments")?g.jsx(u8,{}):null,d8=()=>{const t=Te(),o=he(),a=be(),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(vy,{}),onClick:r})};function zd(t,o){try{const a=new URL(t,o);if(a.protocol!=="javascript:")return a.href}catch{}return"#"}const m8=()=>{const t=Te(),o=he(),a=be(),r=vt({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(Bt(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(zd(c,window.location.href))):window.open(zd(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(P3,{}),onClick:s})},p8=()=>{const t=Te(),o=he(),a=be(),r=vt({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(Bt(p,c,p.type,{url:"string",showPreview:"boolean"}))return p}}),s=S.useCallback(()=>{r!==void 0&&Sl(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(B3,{}),isSelected:r.props.showPreview,onClick:s})},h8=()=>{const t=Te(),o=he(),a=be(),r=De(Je),s=vt({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(A3,{}):g.jsx(H3,{}),onClick:c})},g8=()=>be().getExtension(Je)?g.jsx(h8,{}):null,v8={left:E3,center:C3,right:T3,justify:w3},fd=t=>{const o=he(),a=Te(),r=be(),s=vt({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(Bt(y,d,y.type,{textAlignment:xs.textAlignment}))return{textAlignment:y.props.textAlignment,blocks:v};if(v.length===1&&Bt(y,d,"table"))return(h=d.getExtension(Je))!=null&&h.getCellSelection()?{textAlignment:Ar(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(Bt(h,r,h.type,{textAlignment:xs.textAlignment})&&Sl(r,h.type,{textAlignment:xs.textAlignment}))r.updateBlock(h,{props:{textAlignment:d}});else if(h.type==="table"){const v=(p=r.getExtension(Je))==null?void 0:p.getCellSelection();if(!v)continue;const y=h.content.rows.map(x=>({...x,cells:x.cells.map(C=>Ar(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=v8[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,{})})},_y=t=>[g.jsx(c8,{items:t},"blockTypeSelect"),g.jsx(g8,{},"tableCellMergeButton"),g.jsx(n8,{},"fileCaptionButton"),g.jsx(a8,{},"replaceFileButton"),g.jsx(l8,{},"fileRenameButton"),g.jsx(o8,{},"fileDeleteButton"),g.jsx(m8,{},"fileDownloadButton"),g.jsx(p8,{},"filePreviewButton"),g.jsx(hs,{basicTextStyle:"bold"},"boldStyleButton"),g.jsx(hs,{basicTextStyle:"italic"},"italicStyleButton"),g.jsx(hs,{basicTextStyle:"underline"},"underlineStyleButton"),g.jsx(hs,{basicTextStyle:"strike"},"strikeStyleButton"),g.jsx(fd,{textAlignment:"left"},"textAlignLeftButton"),g.jsx(fd,{textAlignment:"center"},"textAlignCenterButton"),g.jsx(fd,{textAlignment:"right"},"textAlignRightButton"),g.jsx(W3,{},"colorStyleButton"),g.jsx(r8,{},"nestBlockButton"),g.jsx(i8,{},"unnestBlockButton"),g.jsx(t8,{},"createLinkButton"),g.jsx(f8,{},"addCommentButton"),g.jsx(d8,{},"addTiptapCommentButton")],jy=t=>{const o=he();return g.jsx(o.FormattingToolbar.Root,{className:"bn-toolbar bn-formatting-toolbar",children:t.children||_y(t.blockTypeSelectItems)})},y8=t=>{switch(t){case"left":return"top-start";case"center":return"top";case"right":return"top-end";default:return"top-start"}},Oy=t=>{const o=be(),a=De(Nr,{editor:o}),r=Pe(Nr,{editor:o}),s=vt({editor:o,selector:({editor:p})=>a.store.state?{from:p.prosemirrorState.selection.from,to:p.prosemirrorState.selection.to}:void 0}),c=vt({editor:o,selector:({editor:p})=>{const h=p.getTextCursorPosition().block;return Bt(h,p,h.type,{textAlignment:xs.textAlignment})?y8(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:[pn(10),Ko(),bo()],...(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||jy;return g.jsx(Jd,{position:s,...f,children:r&&g.jsx(d,{})})},b8=t=>{const o=he(),a=Te(),{deleteLink:r}=De(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(N3,{})})},x8=t=>{const o=he(),a=Te();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(Ry,{url:t.url,text:t.text,range:t.range,setToolbarOpen:t.setToolbarOpen,setToolbarPositionFrozen:t.setToolbarPositionFrozen})})]})},S8=t=>{const o=he(),a=Te();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(zd(t.url,window.location.href),"_blank")},icon:g.jsx(X3,{})})},C8=t=>{const o=he();return g.jsx(o.LinkToolbar.Root,{className:"bn-toolbar bn-link-toolbar",children:t.children||g.jsxs(g.Fragment,{children:[g.jsx(x8,{url:t.url,text:t.text,range:t.range,setToolbarOpen:t.setToolbarOpen,setToolbarPositionFrozen:t.setToolbarPositionFrozen}),g.jsx(S8,{url:t.url}),g.jsx(b8,{range:t.range,setToolbarOpen:t.setToolbarOpen})]})})},w8=t=>{const o=be(),[a,r]=S.useState(!1),[s,c]=S.useState(!1),f=De(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 O=f.getLinkAtElement(R.target);O&&p({cursorType:"mouse",url:O.mark.attrs.href,text:O.text,range:O.range,element:f.getLinkElementAtPos(O.range.from)})},E=o.onChange(x),w=o.onSelectionChange(x),M=o.domElement;return M?.addEventListener("mouseover",C),()=>{E(),w(),M?.removeEventListener("mouseover",C)}},[o,o.domElement,f,d,s]);const h=S.useMemo(()=>{var x,C,E;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:[pn(10),bo()],...(x=t.floatingUIOptions)==null?void 0:x.useFloatingOptions},useHoverProps:{enabled:d!==void 0&&d.cursorType==="mouse",delay:{open:250,close:250},handleClose:O5(),...(C=t.floatingUIOptions)==null?void 0:C.useHoverProps},elementProps:{style:{zIndex:50},...(E=t.floatingUIOptions)==null?void 0:E.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||C8;return g.jsx(Un,{reference:v,...h,children:d&&g.jsx(y,{url:d.url,text:d.text,range:d.range,setToolbarOpen:r,setToolbarPositionFrozen:c})})};function E8(t){return ge({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 T8=()=>{const t=he(),o=Te(),a=be(),r=De(ho),s=Pe(Zn,{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(E8,{size:24,onClick:c,"data-test":"dragHandleAdd"})})};function Ny(t){return ge({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 M8(t){return ge({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 R8=t=>{const o=he(),a=be(),r=Pe(Zn,{editor:a,selector:s=>s?.block});return r===void 0||!Bt(r,a,r.type,{textColor:"string"})&&!Bt(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(tc,{iconSize:18,text:Bt(r,a,r.type,{textColor:"string"})&&Sl(a,r.type,{textColor:"string"})?{color:r.props.textColor,setColor:s=>a.updateBlock(r,{type:r.type,props:{textColor:s}})}:void 0,background:Bt(r,a,r.type,{backgroundColor:"string"})&&Sl(a,r.type,{backgroundColor:"string"})?{color:r.props.backgroundColor,setColor:s=>a.updateBlock(r,{props:{backgroundColor:s}})}:void 0})})]})},_8=t=>{const o=he(),a=be(),r=Pe(Zn,{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})},j8=t=>{const o=he(),a=be(),r=Pe(Zn,{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})},O8=t=>{const o=he(),a=be(),r=Pe(Zn,{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})},N8=t=>{const o=he(),a=Te();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(_8,{children:a.drag_handle.delete_menuitem}),g.jsx(R8,{children:a.drag_handle.colors_menuitem}),g.jsx(j8,{children:a.drag_handle.header_row_menuitem}),g.jsx(O8,{children:a.drag_handle.header_column_menuitem})]})})},A8=t=>{const o=he(),a=Te(),r=De(Zn),s=Pe(Zn,{selector:f=>f?.block});if(s===void 0)return null;const c=t.dragHandleMenu||N8;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(Ny,{size:24,"data-test":"dragHandle"})})}),g.jsx(c,{children:t.children})]})},H8=t=>{const o=he(),a=be(),r=Pe(Zn,{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(T8,{}),g.jsx(A8,{dragHandleMenu:t.dragHandleMenu})]})})},D8=t=>{const o=Pe(Zn,{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||H8;return g.jsx(my,{blockId:a?r?.id:void 0,...s,children:r?.id&&g.jsx(c,{})})};async function z8(t,o){return(await Y4(t,o)).map(({id:a,onItemClick:r})=>({id:a,onItemClick:r,icon:a}))}function L8(t){const o=he(),a=Te(),{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 Ay(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 Hy(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 V8(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 k8(t){const o=Rn().setContentEditableProps,a=be(),{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}=Hy(c,r);Ay(y,x,d);const{selectedIndex:E}=V8(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":E?"bn-suggestion-menu-item-"+E:void 0})),()=>{o(w=>({...w,"aria-activedescendant":void 0}))}),[o,E]),g.jsx(s,{items:y,onItemClick:v,loadingState:C,selectedIndex:E,columns:h})}function B8(t){const o=be(),{triggerCharacter:a,gridSuggestionMenuComponent:r,columns:s,minQueryLength:c,onItemClick:f,getItems:d}=t,p=S.useMemo(()=>f||(E=>{E.onItemClick(o)}),[o,f]),h=S.useMemo(()=>d||(async E=>await z8(o,E)),[o,d]),v=De(ho);S.useEffect(()=>{v.addTriggerCharacter(a)},[v,a]);const y=Pe(ho),x=Pe(ho,{selector:E=>{var w;return{element:((w=o.domElement)==null?void 0:w.firstChild)||void 0,getBoundingClientRect:()=>E?.referencePos||new DOMRect}}}),C=S.useMemo(()=>{var E,w;return{...t.floatingUIOptions,useFloatingOptions:{open:y?.show&&y?.triggerCharacter===a,onOpenChange:M=>{M||v.closeMenu()},placement:"bottom-start",middleware:[pn(10),Q0({allowedPlacements:["bottom-start","top-start"],padding:10}),Ko(),Dr({apply({elements:M,availableHeight:R}){M.floating.style.maxHeight=`${Math.max(0,R)}px`},padding:10})],...(E=t.floatingUIOptions)==null?void 0:E.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(Un,{reference:x,...C,children:a&&g.jsx(k8,{query:y.query,closeMenu:v.closeMenu,clearQuery:v.clearQuery,getItems:h,columns:s,gridSuggestionMenuComponent:r||L8,onItemClick:p})})}function U8(t){const o=he(),a=Te(),{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:gt("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 $8(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=G8(s)?s.nativeEvent.isComposing:s.isComposing;return s.key==="Enter"&&!c?(s.preventDefault(),s.stopPropagation(),t.length&&o?.(t[a]),!0):!1}}}function G8(t){return t.nativeEvent!==void 0}function Z8(t,o,a,r,s){const{selectedIndex:c,setSelectedIndex:f,handler:d}=$8(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 q8(t){const o=Rn().setContentEditableProps,a=be(),{getItems:r,suggestionMenuComponent:s,query:c,clearQuery:f,closeMenu:d,onItemClick:p}=t,h=S.useCallback(E=>{d(),f(),p?.(E)},[p,d,f]),{items:v,usedQuery:y,loadingState:x}=Hy(c,r);Ay(v,y,d);const{selectedIndex:C}=Z8(a,c,v,h);return S.useEffect(()=>(o(E=>({...E,"aria-expanded":!0,"aria-controls":"bn-suggestion-menu"})),()=>{o(E=>({...E,"aria-expanded":!1,"aria-controls":void 0}))}),[o]),S.useEffect(()=>(o(E=>({...E,"aria-activedescendant":C?"bn-suggestion-menu-item-"+C:void 0})),()=>{o(E=>({...E,"aria-activedescendant":void 0}))}),[o,C]),g.jsx(s,{items:v,onItemClick:h,loadingState:x,selectedIndex:C})}const Y8={heading:zs,heading_2:Ls,heading_3:Vs,heading_4:yy,heading_5:by,heading_6:xy,toggle_heading:zs,toggle_heading_2:Ls,toggle_heading_3:Vs,quote:Ty,toggle_list:My,numbered_list:wy,bullet_list:Ey,check_list:Cy,paragraph:Wd,table:z3,image:k3,video:V3,audio:$3,file:S3,emoji:K3,code_block:R3,divider:I3};function P8(t){return RS(t).map(o=>{const a=Y8[o.key];return{...o,icon:g.jsx(a,{size:18})}})}function X8(t){const o=be(),{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=>MS(P8(o),C)),[o,f]),h=De(ho);S.useEffect(()=>{h.addTriggerCharacter(a)},[h,a]);const v=Pe(ho),y=Pe(ho,{selector:C=>{var E;return{element:((E=o.domElement)==null?void 0:E.firstChild)||void 0,getBoundingClientRect:()=>C?.referencePos||new DOMRect}}}),x=S.useMemo(()=>{var C,E;return{...t.floatingUIOptions,useFloatingOptions:{open:v?.show&&v?.triggerCharacter===a,onOpenChange:w=>{w||h.closeMenu()},placement:"bottom-start",middleware:[pn(10),Q0({allowedPlacements:["bottom-start","top-start"],padding:10}),Ko(),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},...(E=t.floatingUIOptions)==null?void 0:E.elementProps}}},[t.floatingUIOptions,v?.show,v?.triggerCharacter,h,a]);return!v||!v.ignoreQueryLength&&s&&(v.query.startsWith(" ")||v.query.length<s)?null:g.jsx(Un,{reference:y,...x,children:a&&g.jsx(q8,{query:v.query,closeMenu:h.closeMenu,clearQuery:h.clearQuery,getItems:p,suggestionMenuComponent:r||U8,onItemClick:d})})}const Q8=(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)},I8=t=>{const o=he(),a=be(),r=De(Je),s=Pe(Je,{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 E=(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,O=M+Q8(E/(t.orientation==="addOrRemoveColumns"?AS:HS),.3);O>=w&&O>0&&O!==R&&(a.updateBlock(s,{type:"table",content:{...s.content,rows:t.orientation==="addOrRemoveColumns"?r.addRowsOrColumns({type:"table",content:f.originalCroppedContent},"columns",O-w):r.addRowsOrColumns({type:"table",content:f.originalCroppedContent},"rows",O-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:gt("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(G3,{size:18,"data-test":"extendButton"})}):null},Yv=t=>{const o=he(),a=Te(),r=De(Je),s=Pe(Je,{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`]})},K8=t=>{const o=he(),a=Te(),r=De(Je),s=Pe(Je,{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})},F8=t=>{const o=he(),a=Te(),r=be(),s=De(Je),{block:c,index:f}=Pe(Je,{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(E=>Ar(E))}));d.forEach(({row:C,col:E})=>{y==="text"?x[C].cells[E].props.textColor=v:x[C].cells[E].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=Ar(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(tc,{iconSize:18,text:r.settings.tables.cellTextColor?{color:d.every(({cell:v})=>Hr(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})=>Hr(v)&&v.props.backgroundColor===h.props.backgroundColor)?h.props.backgroundColor:"default",setColor:v=>p(v,"background")}:void 0})})]})},J8=t=>{const o=he(),a=Te(),r=be(),s=De(Je),{block:c,index:f}=Pe(Je,{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})},W8=t=>{const o=he(),a=Te(),r=be(),s=De(Je),c=Pe(Je,{selector:p=>p?.block}),f=Pe(Je,{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})},e7=t=>{const o=he();return g.jsx(o.Generic.Menu.Dropdown,{className:"bn-table-handle-menu",children:t.children||g.jsxs(g.Fragment,{children:[g.jsx(K8,{orientation:t.orientation}),g.jsx(Yv,{orientation:t.orientation,side:t.orientation==="row"?"above":"left"}),g.jsx(Yv,{orientation:t.orientation,side:t.orientation==="row"?"below":"right"}),g.jsx(J8,{orientation:t.orientation}),g.jsx(W8,{orientation:t.orientation}),g.jsx(F8,{orientation:t.orientation})]})})},t7=t=>{const o=be(),a=he(),[r,s]=S.useState(!1),c=t.tableHandleMenu||e7,f=De(Je),d=Pe(Je),p=S.useMemo(()=>!f||!d||!d.block||d.block.type!=="table"?!1:t.orientation==="column"?f.getCellsAtColumnHandle(d.block,d.colIndex).every(({cell:h})=>S0(h)===1):f.getCellsAtRowHandle(d.block,d.rowIndex).every(({cell:h})=>C0(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:gt("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(Ny,{size:24,"data-test":"tableHandle"})})}),g.jsx(c,{orientation:t.orientation})]}):null},n7=t=>{var o,a;const r=he(),s=Te(),c=be(),{block:f,colIndex:d,rowIndex:p}=Pe(Je,{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(E=>({...E,cells:E.cells.map(w=>Ar(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(tc,{iconSize:18,text:c.settings.tables.cellTextColor?{color:Hr(v)?v.props.textColor:"default",setColor:y=>h(y,"text")}:void 0,background:c.settings.tables.cellBackgroundColor?{color:Hr(v)?v.props.backgroundColor:"default",setColor:y=>h(y,"background")}:void 0})})]})},o7=()=>{var t,o;const a=he(),r=Te(),s=be(),c=De(Je),{block:f,colIndex:d,rowIndex:p}=Pe(Je,{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||!Hr(h)||C0(h)===1&&S0(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})},l7=t=>{const o=he();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(o7,{}),g.jsx(n7,{})]})})},a7=t=>{const o=he(),a=be(),r=De(Je),s=t.tableCellMenu||l7;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(M8,{size:12,"data-test":"tableCellHandle"})})}),g.jsx(s,{})]})},r7=t=>{const o=be(),[a,r]=S.useState(),s=Pe(Je),c=S.useMemo(()=>{const v={};if(s===void 0)return{};const y=x0(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 E=o.prosemirrorState.doc.resolve(x+1).posAtIndex(s.rowIndex),w=o.prosemirrorState.doc.resolve(E+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(),O=M.getBoundingClientRect();return new DOMRect(R.x,s.draggingState&&s.draggingState.draggedCellOrientation==="row"?s.draggingState.mousePos-O.height/2:O.y,R.width,O.height)}},v.columnReference={element:C,getBoundingClientRect:()=>{const R=C.getBoundingClientRect(),O=M.getBoundingClientRect();return new DOMRect(s.draggingState&&s.draggingState.draggedCellOrientation==="col"?s.draggingState.mousePos-O.width/2:O.x,R.y,O.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:[pn(-10)]},elementProps:{style:{zIndex:10}}},columnTableHandle:{useFloatingOptions:{open:s.show&&s.colIndex!==void 0&&(!a||a==="columnTableHandle"),placement:"top",middleware:[pn(-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:[pn({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||t7,p=t.extendButton||I8,h=t.tableCellHandle||a7;return g.jsxs(g.Fragment,{children:[g.jsx(Un,{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(Un,{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(Un,{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(Un,{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(Un,{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)})})]})},i7=S.lazy(()=>Promise.resolve().then(()=>O7)),s7=S.lazy(()=>Promise.resolve().then(()=>H7));function c7(t){const o=be();if(!o)throw new Error("BlockNoteDefaultUI must be used within a BlockNoteContext.Provider");return g.jsxs(g.Fragment,{children:[o.getExtension(Nr)&&t.formattingToolbar!==!1&&g.jsx(Oy,{}),o.getExtension(Xs)&&t.linkToolbar!==!1&&g.jsx(w8,{}),o.getExtension(ho)&&t.slashMenu!==!1&&g.jsx(X8,{triggerCharacter:"/"}),o.getExtension(ho)&&t.emojiPicker!==!1&&g.jsx(B8,{triggerCharacter:":",columns:10,minQueryLength:2}),o.getExtension(Zn)&&t.sideMenu!==!1&&g.jsx(D8,{}),o.getExtension(Rd)&&t.filePanel!==!1&&g.jsx(t3,{}),o.getExtension(Je)&&t.tableHandles!==!1&&g.jsx(r7,{}),o.getExtension(vn)&&t.comments!==!1&&g.jsxs(S.Suspense,{children:[g.jsx(i7,{}),g.jsx(s7,{})]})]})}function u7(t,o){const a=Rn();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 f7(t,o,a){const r=Rn();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 Dy=()=>{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},zy=S.createContext(void 0);function d7(){return S.useContext(zy)}function m7(){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]:qn.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 p7=({contentComponent:t})=>{const o=S.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return g.jsx(g.Fragment,{children:Object.values(o)})},h7=S.forwardRef((t,o)=>{const[a,r]=S.useState();return S.useImperativeHandle(o,()=>(s,c)=>{qn.flushSync(()=>{r({node:s,container:c})}),r(void 0)},[]),g.jsx(g.Fragment,{children:a&&qn.createPortal(a.node,a.container)})}),Pv=()=>{};function g7(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:E,tableHandles:w,comments:M,autoFocus:R,renderEditor:O=!0,...A}=t,[H,z]=S.useState(),k=Rn(),V=Dy(),J=k?.colorSchemePreference||V,W=s||(J==="dark"?"dark":"light");u7(p||Pv,a),f7(d||Pv,a);const Q=S.useCallback(le=>{a.elementRenderer=le},[a]),oe=S.useMemo(()=>({...k,editor:a,setContentEditableProps:z,colorSchemePreference:W}),[k,a,W]),ie=S.useMemo(()=>({editorProps:{autoFocus:R,contentEditableProps:H,editable:f},defaultUIProps:{formattingToolbar:h,linkToolbar:v,slashMenu:y,emojiPicker:x,sideMenu:C,filePanel:E,tableHandles:w,comments:M}}),[R,H,f,h,v,y,x,C,E,w,M]);return g.jsx(uy.Provider,{value:oe,children:g.jsxs(zy.Provider,{value:ie,children:[g.jsx(h7,{ref:Q}),g.jsx(v7,{className:r,renderEditor:O,editorColorScheme:W,ref:o,...A,children:c})]})})}const v7=Be.forwardRef(({className:t,renderEditor:o,editorColorScheme:a,children:r,...s},c)=>g.jsx("div",{className:gt("bn-container",a,t),"data-color-scheme":a,...s,ref:c,children:o?g.jsx(b7,{children:r}):r})),y7=Be.forwardRef(g7),b7=t=>{const o=d7(),a=be(),r=S.useMemo(()=>m7(),[]),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(p7,{contentComponent:r}),g.jsx(x7,{...o.editorProps,...t,mount:s}),g.jsx(c7,{...o.defaultUIProps}),t.children]})},x7=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 Or(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=T0.createRoot(r),qn.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 dd(t){var o;return g.jsx(ry,{onDragOver:a=>a.preventDefault(),...Object.fromEntries(Object.entries(t.domAttributes||{}).filter(([a])=>a!=="class")),className:gt("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])=>[b0(a),r])),"data-file-block":t.isFileBlock===!0||void 0,children:t.children})}function fT(t,o,a){return(r={})=>{const s=typeof t=="function"?t(r):t,c=typeof o=="function"?o(r):o;return{config:s,implementation:{...c,toExternalHTML(d,p,h){const v=c.toExternalHTML||c.render;return Or(y=>g.jsx(dd,{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=gt("bn-inline-content",x.className))},context:h})}),p)},render(d,p){if(this.renderType==="nodeView")return iy(h=>{var v;const y=ES(h.getPos,p,h.editor,s.type),x=Kd().nodeViewContentRef;if(!x)throw new Error("nodeViewContentRef is not set");const C=c.render;return g.jsx(dd,{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:E=>{x(E),E&&(E.className=gt("bn-inline-content",E.className),E.dataset.nodeViewContent="")}})})},{className:"bn-react-node-view-renderer"})(this.props);{const h=c.render;return Or(v=>g.jsx(dd,{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=gt("bn-inline-content",y.className))}})}),p)}}},extensions:void 0}}}const em=(t={},o=[])=>S.useMemo(()=>{const a=TS.create(t);return window&&(window.ProseMirror=a._tiptapEditor),a},o),tm=t=>{const[o,a]=S.useState(!1),r=vt({editor:t.editor,selector:({editor:d})=>d.isEmpty}),s=he(),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 md;async function S7(){return md||(md=(async()=>{const[t,o]=await Promise.all([As(()=>import("./module-RjUF93sV.js"),[]),As(()=>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}})(),md)}function C7(t){const o=S.useRef(null),a=S.useRef(null);return a.current&&a.current.update(t),S.useEffect(()=>((async()=>{const{emojiMart:r}=await S7();a.current=new r.Picker({...t,ref:o})})(),()=>{a.current=null}),[]),Be.createElement("div",{ref:o})}const Xv=t=>{var o;const[a,r]=S.useState(!1),s=he(),c=be(),f=Rn();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)&&qn.createPortal(g.jsx(s.Generic.Popover.Content,{className:"bn-emoji-picker-popover",variant:"panel-popover",children:g.jsx(C7,{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 w7(t){return nm([t]).get(t)}function nm(t){const o=De(vn).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 E7=t=>{const o=he(),a=Te(),r=De(vn),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=nm(c);return g.jsx(o.Generic.Badge.Root,{className:gt("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:dT,backgroundColor:mT,...T7}=zS,om=DS.create({blockSpecs:{paragraph:LS()},styleSpecs:T7}),M7=({comment:t,thread:o,showResolveButton:a})=>{const r=De(vn),s=Te(),c=em({initialContent:t.body,trailingBlock:!1,dictionary:{...s,placeholders:{emptyDocument:s.placeholders.edit_comment}},schema:r.commentEditorSchema||om}),f=he(),[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]),E=S.useCallback(async Q=>{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 Q=>{y.auth.canAddReaction(t,Q)?await y.addReaction({threadId:o.id,commentId:t.id,emoji:Q}):y.auth.canDeleteReaction(t,Q)&&await y.deleteReaction({threadId:o.id,commentId:t.id,emoji:Q})},[y,t,o.id]),R=S.useCallback(async()=>{await y.resolveThread({threadId:o.id})},[o.id,y]),O=S.useCallback(async()=>{await y.unresolveThread({threadId:o.id})},[o.id,y]),A=w7(t.userId);if(!t.body)return null;let H;const z=y.auth.canAddReaction(t),k=y.auth.canDeleteComment(t),V=y.auth.canUpdateComment(t),J=a&&(o.resolved?y.auth.canUnresolveThread(o):y.auth.canResolveThread(o));d||(H=g.jsxs(f.Generic.Toolbar.Root,{className:gt("bn-action-toolbar","bn-comment-actions"),variant:"action-toolbar",children:[z&&g.jsx(Xv,{onEmojiSelect:Q=>M(Q.native),onOpenChange:v,children:g.jsx(f.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.add_reaction,variant:"compact",children:g.jsx(Gv,{size:16})},"add-reaction")}),J&&(o.resolved?g.jsx(f.Generic.Toolbar.Button,{mainTooltip:"Re-open",variant:"compact",onClick:O,children:g.jsx(y3,{size:16})},"reopen"):g.jsx(f.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.resolve,variant:"compact",onClick:R,children:g.jsx(Z3,{size:16})},"resolve")),(k||V)&&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(Q3,{size:16})},"more-actions")}),g.jsxs(f.Generic.Menu.Dropdown,{className:"bn-menu-dropdown",children:[V&&g.jsx(f.Generic.Menu.Item,{icon:g.jsx(b3,{}),onClick:x,children:s.comments.actions.edit_comment},"edit-comment"),k&&g.jsx(f.Generic.Menu.Item,{icon:g.jsx(Y3,{}),onClick:w,children:s.comments.actions.delete_comment},"delete-comment")]})]})]}));const W=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:A??"loading",timeString:W,edited:t.updatedAt.getTime()!==t.createdAt.getTime(),showActions:"hover",actions:H,className:"bn-thread-comment",emojiPickerOpen:h,children:g.jsx(tm,{autoFocus:d,editor:c,editable:d,actions:t.reactions.length>0||d?({isEmpty:Q})=>g.jsxs(g.Fragment,{children:[t.reactions.length>0&&!d&&g.jsxs(f.Generic.Badge.Group,{className:gt("bn-badge-group","bn-comment-reactions"),children:[t.reactions.map(oe=>g.jsx(E7,{comment:t,emoji:oe.emoji,onReactionSelect:M},oe.emoji)),z&&g.jsx(Xv,{onEmojiSelect:oe=>M(oe.native),onOpenChange:v,children:g.jsx(f.Generic.Badge.Root,{className:gt("bn-badge","bn-comment-add-reaction"),text:"+",icon:g.jsx(Gv,{size:16}),mainTooltip:s.comments.actions.add_reaction})})]}),d&&g.jsxs(f.Generic.Toolbar.Root,{variant:"action-toolbar",className:gt("bn-action-toolbar","bn-comment-actions"),children:[g.jsx(f.Generic.Toolbar.Button,{mainTooltip:s.comments.save_button_text,variant:"compact",onClick:E,isDisabled:Q,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})})},R7=({thread:t,maxCommentsBeforeCollapse:o})=>{const a=he(),r=Te(),s=nm(t.resolvedBy?[t.resolvedBy]:[]),c=t.comments.map((f,d)=>g.jsx(M7,{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 _7(){const t=De(vn),o=he(),a=Te(),r=em({trailingBlock:!1,dictionary:{...a,placeholders:{emptyDocument:a.placeholders.new_comment}},schema:t.commentEditorSchema||om});return g.jsx(o.Comments.Card,{className:"bn-thread",children:g.jsx(tm,{autoFocus:!0,editable:!0,editor:r,actions:({isEmpty:s})=>g.jsx(o.Generic.Toolbar.Root,{className:gt("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 j7(t){const o=be(),a=De(vn),r=Pe(vn,{editor:o,selector:d=>d.pendingComment}),s=vt({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:[pn(10),Ko(),bo()],...(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||_7;return g.jsx(Jd,{position:s,...c,children:g.jsx(f,{})})}const O7=Object.freeze(Object.defineProperty({__proto__:null,default:j7},Symbol.toStringTag,{value:"Module"})),Ly=({thread:t,selected:o,referenceText:a,maxCommentsBeforeCollapse:r,onFocus:s,onBlur:c,tabIndex:f})=>{const d=he(),p=Te(),h=De(vn),v=em({trailingBlock:!1,dictionary:{...p,placeholders:{emptyDocument:p.placeholders.comment_reply}},schema:h.commentEditorSchema||om}),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(R7,{thread:t,maxCommentsBeforeCollapse:o?void 0:r||5})}),o&&g.jsx(d.Comments.CardSection,{className:"bn-thread-composer",children:g.jsx(tm,{autoFocus:!1,editable:!0,editor:v,actions:({isEmpty:x})=>x?null:g.jsx(d.Generic.Toolbar.Root,{variant:"action-toolbar",className:gt("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 N7(){const t=De(vn).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 A7(t){const o=be(),a=De(vn),r=Pe(vn,{editor:o,selector:p=>p.selectedThreadId?{id:p.selectedThreadId,position:p.threadPositions.get(p.selectedThreadId)}:void 0}),s=N7(),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:[pn(10),Ko(),bo()],...(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||Ly;return g.jsx(Jd,{position:r?.position,...f,children:c&&g.jsx(d,{thread:c,selected:!0})})}const H7=Object.freeze(Object.defineProperty({__proto__:null,default:A7},Symbol.toStringTag,{value:"Module"}));Be.memo(({thread:t,selectedThreadId:o,maxCommentsBeforeCollapse:a,referenceText:r})=>{const s=De(vn),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(Ly,{thread:t,selected:t.id===o,referenceText:r,maxCommentsBeforeCollapse:a,onFocus:c,onBlur:f,tabIndex:0})});function pd(t){return g.jsx(ry,{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])=>[b0(o),a])),children:t.children})}function pT(t,o){var a;const r=yS.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 CS(t.propSchema)},addKeyboardShortcuts(){return SS(t)},parseHTML(){return xS(t,o.parse)},renderHTML({node:s}){const c=this.options.editor,f=kg(s,c.schema.inlineContentSchema,c.schema.styleSchema),d=o.toExternalHTML||o.render,p=Or(h=>g.jsx(d,{contentRef:v=>{h(v),v&&(v.dataset.editable="")},inlineContent:f,updateInlineContent:()=>{},editor:c}),c);return bS(p,t.type,s.attrs,t.propSchema)},addNodeView(){const s=this.options.editor;return c=>iy(f=>{const d=Kd().nodeViewContentRef;if(!d)throw new Error("nodeViewContentRef is not set");const p=o.render;return g.jsx(pd,{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:kg(f.node,s.schema.inlineContentSchema,s.schema.styleSchema),updateInlineContent:h=>{const v=VS([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 wS(t,{...o,node:r,render(s,c,f){const d=o.render;return Or(p=>g.jsx(pd,{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 Or(d=>g.jsx(pd,{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 Vy(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 D7(t){return o=>{t.forEach(a=>{typeof a=="function"?a(o):a!=null&&(a.current=o)})}}function Gn(t){return Object.keys(t)}function hd(t){return t&&typeof t=="object"&&!Array.isArray(t)}function lm(t,o){const a={...t},r=o;return hd(t)&&hd(o)&&Object.keys(o).forEach(s=>{hd(r[s])&&s in t?a[s]=lm(a[s],r[s]):a[s]=r[s]}),a}function z7(t){return t.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}function L7(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function V7(t){const o=L7(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 Qv(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function ky(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?Qv(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?Qv(c):c}}return r}return a}const te=ky("rem",{shouldScale:!0}),Iv=ky("em");function nc(t){return Object.keys(t).reduce((o,a)=>(t[a]!==void 0&&(o[a]=t[a]),o),{})}function By(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 Uy(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==S.Fragment:!1}function oc(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 lc(t=null){const o=S.createContext(t);return[({children:s,value:c})=>g.jsx(o.Provider,{value:c,children:s}),()=>S.useContext(o)]}function Kv(t,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${t}-${a}`}}function ks(t,o){let a=t;for(;(a=a.parentElement)&&!a.matches(o););return a}function k7(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 B7(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 U7(t,o,a){return ks(t,a)===ks(o,a)}function am({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(ks(d.currentTarget,t)?.querySelectorAll(o)||[]).filter(E=>U7(d.currentTarget,E,t)),h=p.findIndex(E=>d.currentTarget===E),v=B7(h,p,r),y=k7(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 E=p.length-1;!p[E].disabled&&p[E].focus();break}}}}const $7={app:100,modal:200,popover:300,overlay:400,max:9999};function $r(t){return $7[t]}const G7=()=>{};function Z7(t,o={active:!0}){return typeof t!="function"||!o.active?o.onKeyDown||G7:a=>{a.key==="Escape"&&(t(a),o.onTrigger?.())}}function Qe(t,o="size",a=!0){if(t!==void 0)return By(t)?a?te(t):t:`var(--${o}-${t})`}function Gr(t){return Qe(t,"mantine-spacing")}function Rt(t){return t===void 0?"var(--mantine-radius-default)":Qe(t,"mantine-radius")}function Gt(t){return Qe(t,"mantine-font-size")}function q7(t){return Qe(t,"mantine-line-height",!1)}function $y(t){if(t)return Qe(t,"mantine-shadow",!1)}function Ut(t,o){return a=>{t?.(a),o?.(a)}}function Y7(t,o,a){return a?Array.from(ks(a,o)?.querySelectorAll(t)||[]).findIndex(r=>r===a):null}function P7(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function Fv(t){const o=S.useRef(t);return S.useEffect(()=>{o.current=t}),S.useMemo(()=>((...a)=>o.current?.(...a)),[])}const X7=["mousedown","touchstart"];function Q7(t,o,a){const r=S.useRef(null),s=o||X7;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 I7(t,o){try{return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}catch{return t.addListener(o),()=>t.removeListener(o)}}function K7(t,o){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function F7(t,o,{getInitialValueInEffect:a}={getInitialValueInEffect:!0}){const[r,s]=S.useState(a?o:K7(t));return S.useEffect(()=>{try{const c=window.matchMedia(t);return s(c.matches),I7(c,f=>s(f.matches))}catch{return}},[t]),r||!1}const Zr=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Lr(t,o){const a=S.useRef(!1);S.useEffect(()=>()=>{a.current=!1},[]),S.useEffect(()=>{if(a.current)return t();a.current=!0},o)}function J7({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 Lr(()=>{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 W7=/input|select|textarea|button|object/,Gy="a, input, select, textarea, button, object, [tabindex]";function e9(t){return t.style.display==="none"}function t9(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(e9(a))return!1;a=a.parentNode}return!0}function Zy(t){let o=t.getAttribute("tabindex");return o===null&&(o=void 0),parseInt(o,10)}function Ld(t){const o=t.nodeName.toLowerCase(),a=!Number.isNaN(Zy(t));return(W7.test(o)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||a)&&t9(t)}function qy(t){const o=Zy(t);return(Number.isNaN(o)||o>=0)&&Ld(t)}function n9(t){return Array.from(t.querySelectorAll(Gy)).filter(qy)}function o9(t,o){const a=n9(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 Yy(t=!0){const o=S.useRef(null),a=s=>{let c=s.querySelector("[data-autofocus]");if(!c){const f=Array.from(s.querySelectorAll(Gy));c=f.find(qy)||f.find(Ld)||null,!c&&Ld(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&&o9(o.current,c)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t]),r}const l9=Be.useId||(()=>{});function a9(){const t=l9();return t?`mantine-${t.replace(/:/g,"")}`:""}function wa(t){const o=a9(),[a,r]=S.useState(o);return Zr(()=>{r(P7())},[]),typeof t=="string"?t:typeof window>"u"?o:a}function Bs(t,o){if(typeof t=="function")return t(o);typeof t=="object"&&t!==null&&"current"in t&&(t.current=o)}function ac(...t){const o=new Map;return a=>{if(t.forEach(r=>{const s=Bs(r,a);s&&o.set(r,s)}),o.size>0)return()=>{t.forEach(r=>{const s=o.get(r);s&&typeof s=="function"?s():Bs(r,null)}),o.clear()}}}function _n(...t){return S.useCallback(ac(...t),t)}function Ea({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 r9(t,o){return F7("(prefers-reduced-motion: reduce)",t,o)}function i9(){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 s9(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 c9(t){return t.currentTarget instanceof HTMLElement&&t.relatedTarget instanceof HTMLElement?t.currentTarget.contains(t.relatedTarget):!1}function u9({onBlur:t,onFocus:o}={}){const[a,r]=S.useState(!1),s=S.useRef(!1),c=S.useRef(null),f=Fv(o),d=Fv(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&&!c9(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 rm(t){const o=Be.version;return typeof Be.version!="string"||o.startsWith("18.")?t?.ref:t?.props?.ref}function qr(t){const o=S.Children.toArray(t);return o.length!==1||!Uy(o[0])?null:o[0]}const f9={};function d9(t){const o={};return t.forEach(a=>{Object.entries(a).forEach(([r,s])=>{o[r]?o[r]=So(o[r],s):o[r]=s})}),o}function rc({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||f9);return d9(c)}function Us({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 im=S.createContext(null);function Fo(){const t=S.useContext(im);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function m9(){return Fo().cssVariablesResolver}function p9(){return Fo().classNamesPrefix}function sm(){return Fo().getStyleNonce}function h9(){return Fo().withStaticClasses}function g9(){return Fo().headless}function v9(){return Fo().stylesTransform?.sx}function y9(){return Fo().stylesTransform?.styles}function ic(){return Fo().env||"default"}function b9(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function x9(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 S9(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 C9(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 cm(t){return b9(t)?x9(t):t.startsWith("rgb")?S9(t):t.startsWith("hsl")?C9(t):{r:0,g:0,b:0,a:1}}function vs(t,o){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${o*100}%)`;const{r:a,g:r,b:s,a:c}=cm(t),f=1-o,d=p=>Math.round(p*f);return`rgba(${d(a)}, ${d(r)}, ${d(s)}, ${c})`}function Vr(t,o){return typeof t.primaryShade=="number"?t.primaryShade:o==="dark"?t.primaryShade.dark:t.primaryShade.light}function gd(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function w9(t){const o=t.match(/oklch\((.*?)%\s/);return o?parseFloat(o[1]):null}function E9(t){if(t.startsWith("oklch("))return(w9(t)||0)/100;const{r:o,g:a,b:r}=cm(t),s=o/255,c=a/255,f=r/255,d=gd(s),p=gd(c),h=gd(f);return .2126*d+.7152*p+.0722*h}function Rr(t,o=.179){return t.startsWith("var(")?!1:E9(t)>o}function wl({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:Rr(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:Rr(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:Rr(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][Vr(o,a||"light")];return{color:r,value:d,shade:c,isThemeColor:f,isLight:Rr(d,o.luminanceThreshold),variable:s?`--mantine-color-${r}-${c}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:f,isLight:Rr(t,o.luminanceThreshold),shade:c,variable:void 0}}function xo(t,o){const a=wl({color:t||o.primaryColor,theme:o});return a.variable?`var(${a.variable})`:t}function Vd(t,o){const a={from:t?.from||o.defaultGradient.from,to:t?.to||o.defaultGradient.to,deg:t?.deg??o.defaultGradient.deg??0},r=xo(a.from,o),s=xo(a.to,o);return`linear-gradient(${a.deg}deg, ${r} 0%, ${s} 100%)`}function Vn(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}=cm(t);return`rgba(${a}, ${r}, ${s}, ${o})`}const pa=Vn,T9=({color:t,theme:o,variant:a,gradient:r,autoContrast:s})=>{const c=wl({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:`${te(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:`${te(1)} solid transparent`}:{background:t,hover:vs(t,.1),color:d,border:`${te(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:`${te(1)} solid transparent`};const d=o.colors[c.color][c.shade];return{background:Vn(d,.1),hover:Vn(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${te(1)} solid transparent`}}return{background:Vn(t,.1),hover:Vn(t,.12),color:t,border:`${te(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:`${te(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Vn(o.colors[c.color][c.shade],.05),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${te(1)} solid var(--mantine-color-${c.color}-${c.shade})`}:{background:"transparent",hover:Vn(t,.05),color:t,border:`${te(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:`${te(1)} solid transparent`};const d=o.colors[c.color][c.shade];return{background:"transparent",hover:Vn(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${te(1)} solid transparent`}}return{background:"transparent",hover:Vn(t,.12),color:t,border:`${te(1)} solid transparent`}}return a==="transparent"?c.isThemeColor?c.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${te(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${te(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${te(1)} solid transparent`}:a==="white"?c.isThemeColor?c.shade===void 0?{background:"var(--mantine-color-white)",hover:vs(o.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${te(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:vs(o.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${te(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:vs(o.white,.01),color:t,border:`${te(1)} solid transparent`}:a==="gradient"?{background:Vd(r,o),hover:Vd(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:`${te(1)} solid var(--mantine-color-default-border)`}:{}},M9={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"]},Jv="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",um={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:M9,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:T9,autoContrast:!1,luminanceThreshold:.3,fontFamily:Jv,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:Jv,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:te(34),lineHeight:"1.3"},h2:{fontSize:te(26),lineHeight:"1.35"},h3:{fontSize:te(22),lineHeight:"1.4"},h4:{fontSize:te(18),lineHeight:"1.45"},h5:{fontSize:te(16),lineHeight:"1.5"},h6:{fontSize:te(14),lineHeight:"1.5"}}},fontSizes:{xs:te(12),sm:te(14),md:te(16),lg:te(18),xl:te(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:te(2),sm:te(4),md:te(8),lg:te(16),xl:te(32)},spacing:{xs:te(10),sm:te(12),md:te(16),lg:te(20),xl:te(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${te(1)} ${te(3)} rgba(0, 0, 0, 0.05), 0 ${te(1)} ${te(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${te(1)} ${te(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${te(10)} ${te(15)} ${te(-5)}, rgba(0, 0, 0, 0.04) 0 ${te(7)} ${te(7)} ${te(-5)}`,md:`0 ${te(1)} ${te(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${te(20)} ${te(25)} ${te(-5)}, rgba(0, 0, 0, 0.04) 0 ${te(10)} ${te(10)} ${te(-5)}`,lg:`0 ${te(1)} ${te(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${te(28)} ${te(23)} ${te(-7)}, rgba(0, 0, 0, 0.04) 0 ${te(12)} ${te(12)} ${te(-7)}`,xl:`0 ${te(1)} ${te(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${te(36)} ${te(28)} ${te(-7)}, rgba(0, 0, 0, 0.04) 0 ${te(17)} ${te(17)} ${te(-7)}`},other:{},components:{}};function Wv(t){return t==="auto"||t==="dark"||t==="light"}function R9({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 Wv(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&&Wv(r.newValue)&&a(r.newValue)},window.addEventListener("storage",o)},unsubscribe:()=>{window.removeEventListener("storage",o)},clear:()=>{window.localStorage.removeItem(t)}}}const _9="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",e0="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function vd(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function t0(t){if(!(t.primaryColor in t.colors))throw new Error(_9);if(typeof t.primaryShade=="object"&&(!vd(t.primaryShade.dark)||!vd(t.primaryShade.light)))throw new Error(e0);if(typeof t.primaryShade=="number"&&!vd(t.primaryShade))throw new Error(e0)}function j9(t,o){if(!o)return t0(t),t;const a=lm(t,o);return o.fontFamily&&!o.headings?.fontFamily&&(a.headings.fontFamily=o.fontFamily),t0(a),a}const fm=S.createContext(null),O9=()=>S.useContext(fm)||um;function Zt(){const t=S.useContext(fm);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 Py({theme:t,children:o,inherit:a=!0}){const r=O9(),s=S.useMemo(()=>j9(a?r:um,t),[t,r,a]);return g.jsx(fm.Provider,{value:s,children:o})}Py.displayName="@mantine/core/MantineThemeProvider";function N9(){const t=Zt(),o=sm(),a=Gn(t.breakpoints).reduce((r,s)=>{const c=t.breakpoints[s].includes("px"),f=V7(t.breakpoints[s]),d=c?`${f-.1}px`:Iv(f-.1),p=c?`${f}px`:Iv(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 yd(t){return Object.entries(t).map(([o,a])=>`${o}: ${a};`).join("")}function Xy(t,o){const a=o?[o]:[":root",":host"],r=yd(t.variables),s=r?`${a.join(", ")}{${r}}`:"",c=yd(t.dark),f=yd(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)&&wl({color:t||o.primaryColor,theme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function n0(t,o){return Qy({color:t.colors[t.primaryColor][Vr(t,o)],theme:t,autoContrast:null})}function ys({theme:t,color:o,colorScheme:a,name:r=o,withColorValues:s=!0}){if(!t.colors[o])return{};if(a==="light"){const d=Vr(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`]:pa(t.colors[o][d],.1),[`--mantine-color-${r}-light-hover`]:pa(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`]:pa(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=Vr(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`]:pa(t.colors[o][Math.max(0,c-2)],.15),[`--mantine-color-${r}-light-hover`]:pa(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`]:pa(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 A9(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function ha(t,o,a){Gn(o).forEach(r=>Object.assign(t,{[`--mantine-${a}-${r}`]:o[r]}))}const Iy=t=>{const o=Vr(t,"light"),a=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:te(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":n0(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":n0(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)"}};ha(r.variables,t.breakpoints,"breakpoint"),ha(r.variables,t.spacing,"spacing"),ha(r.variables,t.fontSizes,"font-size"),ha(r.variables,t.lineHeights,"line-height"),ha(r.variables,t.shadows,"shadow"),ha(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${t.primaryColor}-${f})`}),Gn(t.colors).forEach(c=>{const f=t.colors[c];if(A9(f)){Object.assign(r.light,ys({theme:t,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,ys({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,ys({theme:t,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,ys({theme:t,color:c,colorScheme:"dark",withColorValues:!1}))});const s=t.headings.sizes;return Gn(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 H9({theme:t,generator:o}){const a=Iy(t),r=o?.(t);return r?lm(a,r):a}const bd=Iy(um);function D9(t){const o={variables:{},light:{},dark:{}};return Gn(t.variables).forEach(a=>{bd.variables[a]!==t.variables[a]&&(o.variables[a]=t.variables[a])}),Gn(t.light).forEach(a=>{bd.light[a]!==t.light[a]&&(o.light[a]=t.light[a])}),Gn(t.dark).forEach(a=>{bd.dark[a]!==t.dark[a]&&(o.dark[a]=t.dark[a])}),o}function z9(t){return Xy({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function Ky({cssVariablesSelector:t,deduplicateCssVariables:o}){const a=Zt(),r=sm(),s=m9(),c=H9({theme:a,generator:s}),f=(t===void 0||t===":root"||t===":host")&&o,d=f?D9(c):c,p=Xy(d,t);return p?g.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${p}${f?"":z9(t)}`}}):null}Ky.displayName="@mantine/CssVariables";function ga(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 L9({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||(ga(v,a),f(v),t.set(v))},[t.set,d,r]),h=S.useCallback(()=>{f(o),ga(o,a),t.clear()},[t.clear,o]);return S.useEffect(()=>(t.subscribe(p),t.unsubscribe),[t.subscribe,t.unsubscribe]),Zr(()=>{ga(t.get(o),a)},[]),S.useEffect(()=>{if(r)return ga(r,a),()=>{};r===void 0&&ga(c,a),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const v=y=>{c==="auto"&&ga(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 V9({respectReducedMotion:t,getRootElement:o}){Zr(()=>{t&&o()?.setAttribute("data-respect-reduced-motion","true")},[t])}function Fy({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=R9(),defaultColorScheme:v="light",getRootElement:y=()=>document.documentElement,cssVariablesResolver:x,forceColorScheme:C,stylesTransform:E,env:w}){const{colorScheme:M,setColorScheme:R,clearColorScheme:O}=L9({defaultColorScheme:v,forceColorScheme:C,manager:h,getRootElement:y});return V9({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:y}),g.jsx(im.Provider,{value:{colorScheme:M,setColorScheme:R,clearColorScheme:O,getRootElement:y,classNamesPrefix:p,getStyleNonce:a,cssVariablesResolver:x,cssVariablesSelector:d??":root",withStaticClasses:r,stylesTransform:E,env:w},children:g.jsxs(Py,{theme:t,children:[f&&g.jsx(Ky,{cssVariablesSelector:d,deduplicateCssVariables:c}),s&&g.jsx(N9,{}),o]})})}Fy.displayName="@mantine/core/MantineProvider";function sc({classNames:t,styles:o,props:a,stylesCtx:r}){const s=Zt();return{resolvedClassNames:rc({theme:s,classNames:t,props:a,stylesCtx:r||void 0}),resolvedStyles:Us({theme:s,styles:o,props:a,stylesCtx:r||void 0})}}const k9={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function B9({theme:t,options:o,unstyled:a}){return So(o?.focusable&&!a&&(t.focusClassName||k9[t.focusRing]),o?.active&&!a&&t.activeClassName)}function U9({selector:t,stylesCtx:o,options:a,props:r,theme:s}){return rc({theme:s,classNames:a?.classNames,props:a?.props||r,stylesCtx:o})[t]}function o0({selector:t,stylesCtx:o,theme:a,classNames:r,props:s}){return rc({theme:a,classNames:r,props:s,stylesCtx:o})[t]}function $9({rootSelector:t,selector:o,className:a}){return t===o?a:void 0}function G9({selector:t,classes:o,unstyled:a}){return a?void 0:o[t]}function Z9({themeName:t,classNamesPrefix:o,selector:a,withStaticClass:r}){return r===!1?[]:t.map(s=>`${o}-${s}-${a}`)}function q9({themeName:t,theme:o,selector:a,props:r,stylesCtx:s}){return t.map(c=>rc({theme:o,classNames:o.components[c]?.classNames,props:r,stylesCtx:s})?.[a])}function Y9({options:t,classes:o,selector:a,unstyled:r}){return t?.variant&&!r?o[`${a}--${t.variant}`]:void 0}function P9({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:E}){return So(B9({theme:t,options:o,unstyled:d||C}),q9({theme:t,themeName:a,selector:r,props:v,stylesCtx:y}),Y9({options:o,classes:f,selector:r,unstyled:d}),o0({selector:r,stylesCtx:y,theme:t,classNames:c,props:v}),o0({selector:r,stylesCtx:y,theme:t,classNames:E,props:v}),U9({selector:r,stylesCtx:y,options:o,props:v,theme:t}),$9({rootSelector:h,selector:r,className:p}),G9({selector:r,classes:f,unstyled:d||C}),x&&!C&&Z9({themeName:a,classNamesPrefix:s,selector:r,withStaticClass:o?.withStaticClass}),o?.className)}function X9({theme:t,themeName:o,props:a,stylesCtx:r,selector:s}){return o.map(c=>Us({theme:t,styles:t.components[c]?.styles,props:a,stylesCtx:r})[s]).reduce((c,f)=>({...c,...f}),{})}function kd({style:t,theme:o}){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...kd({style:r,theme:o})}),{}):typeof t=="function"?t(o):t??{}}function Q9(t){return t.reduce((o,a)=>(a&&Object.keys(a).forEach(r=>{o[r]={...o[r],...nc(a[r])}}),o),{})}function I9({vars:t,varsResolver:o,theme:a,props:r,stylesCtx:s,selector:c,themeName:f,headless:d}){return Q9([d?{}:o?.(a,r,s),...f.map(p=>a.components?.[p]?.vars?.(a,r,s)),t?.(a,r,s)])?.[c]}function K9({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&&X9({theme:t,themeName:o,props:s,stylesCtx:c,selector:a}),...!x&&Us({theme:t,styles:d,props:s,stylesCtx:c})[a],...!x&&Us({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:c})[a],...I9({theme:t,props:s,stylesCtx:c,vars:h,varsResolver:v,selector:a,themeName:o,headless:y}),...f===a?kd({style:p,theme:t}):null,...kd({style:r?.style,theme:t})}}function F9({props:t,stylesCtx:o,themeName:a}){const r=Zt(),s=y9()?.();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 Ae({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=Zt(),E=p9(),w=h9(),M=g9(),R=(Array.isArray(t)?t:[t]).filter(H=>H),{withStylesTransform:O,getTransformedStyles:A}=F9({props:a,stylesCtx:r,themeName:R});return(H,z)=>({className:P9({theme:C,options:z,themeName:R,selector:H,classNamesPrefix:E,classNames:p,classes:o,unstyled:d,className:s,rootSelector:f,props:a,stylesCtx:r,withStaticClasses:w,headless:M,transformedStyles:A([z?.styles,h])}),style:K9({theme:C,themeName:R,selector:H,options:z,props:a,stylesCtx:r,rootSelector:f,styles:h,style:c,vars:v,varsResolver:y,headless:M,withStylesTransform:O}),...x?.[H]})}function J9(t,o){return typeof t=="boolean"?t:o.autoContrast}function fe(t,o,a){const r=Zt(),s=r.components[t]?.defaultProps,c=typeof s=="function"?s(r):s;return{...o,...c,...nc(a)}}function xd(t){return Gn(t).reduce((o,a)=>t[a]!==void 0?`${o}${z7(a)}:${t[a]};`:o,"").trim()}function W9({selector:t,styles:o,media:a,container:r}){const s=o?xd(o):"",c=Array.isArray(a)?a.map(d=>`@media${d.query}{${t}{${xd(d.styles)}}}`):[],f=Array.isArray(r)?r.map(d=>`@container ${d.query}{${t}{${xd(d.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${c.join("")}${f.join("")}`.trim()}function Jy(t){const o=sm();return g.jsx("style",{"data-mantine-styles":"inline",nonce:o?.(),dangerouslySetInnerHTML:{__html:W9(t)}})}function cc(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:E,pl:w,pr:M,pe:R,ps:O,bd:A,bdrs:H,bg:z,c:k,opacity:V,ff:J,fz:W,fw:Q,lts:oe,ta:ie,lh:le,fs:G,tt:re,td:D,w:B,miw:U,maw:ee,h:ne,mih:_,mah:$,bgsz:F,bgp:ae,bgr:se,bga:ue,pos:ve,top:Se,left:me,bottom:We,right:it,inset:tt,display:Ve,flex:lt,hiddenFrom:nn,visibleFrom:Nn,lightHidden:Co,darkHidden:An,sx:Et,...Xn}=t;return{styleProps:nc({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:E,pl:w,pr:M,pe:R,ps:O,bd:A,bg:z,c:k,opacity:V,ff:J,fz:W,fw:Q,lts:oe,ta:ie,lh:le,fs:G,tt:re,td:D,w:B,miw:U,maw:ee,h:ne,mih:_,mah:$,bgsz:F,bgp:ae,bgr:se,bga:ue,pos:ve,top:Se,left:me,bottom:We,right:it,inset:tt,display:Ve,flex:lt,bdrs:H,hiddenFrom:nn,visibleFrom:Nn,lightHidden:Co,darkHidden:An,sx:Et}),rest:Xn}}const ew={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 dm(t,o){const a=wl({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 tw(t,o){const a=wl({color:t,theme:o});return a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-text)`:dm(t,o)}function nw(t,o){if(typeof t=="number")return te(t);if(typeof t=="string"){const[a,r,...s]=t.split(" ").filter(f=>f.trim()!=="");let c=`${te(a)}`;return r&&(c+=` ${r}`),s.length>0&&(c+=` ${dm(s.join(" "),o)}`),c.trim()}return t}const l0={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 ow(t){return typeof t=="string"&&t in l0?l0[t]:t}const lw=["h1","h2","h3","h4","h5","h6"];function aw(t,o){return typeof t=="string"&&t in o.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&lw.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?te(t):t}function rw(t){return t}const iw=["h1","h2","h3","h4","h5","h6"];function sw(t,o){return typeof t=="string"&&t in o.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&iw.includes(t)?`var(--mantine-${t}-line-height)`:t}function cw(t,o){return typeof t=="string"&&t in o.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?te(t):t}function uw(t){return typeof t=="number"?te(t):t}function fw(t,o){if(typeof t=="number")return te(t);if(typeof t=="string"){const a=t.replace("-","");if(!(a in o.spacing))return te(t);const r=`--mantine-spacing-${a}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const Sd={color:dm,textColor:tw,fontSize:aw,spacing:fw,radius:cw,identity:rw,size:uw,lineHeight:sw,fontFamily:ow,border:nw};function a0(t){return t.replace("(min-width: ","").replace("em)","")}function dw({media:t,...o}){const r=Object.keys(t).sort((s,c)=>Number(a0(s))-Number(a0(c))).map(s=>({query:s,styles:t[s]}));return{...o,media:r}}function mw(t){if(typeof t!="object"||t===null)return!1;const o=Object.keys(t);return!(o.length===1&&o[0]==="base")}function pw(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function hw(t){return typeof t=="object"&&t!==null?Gn(t).filter(o=>o!=="base"):[]}function gw(t,o){return typeof t=="object"&&t!==null&&o in t?t[o]:t}function Wy({styleProps:t,data:o,theme:a}){return dw(Gn(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=pw(t[s]);if(!mw(t[s]))return f.forEach(h=>{r.inlineStyles[h]=Sd[c.type](d,a)}),r;r.hasResponsiveStyles=!0;const p=hw(t[s]);return f.forEach(h=>{d!=null&&(r.styles[h]=Sd[c.type](d,a)),p.forEach(v=>{const y=`(min-width: ${a.breakpoints[v]})`;r.media[y]={...r.media[y],[h]:Sd[c.type](gw(t[s],v),a)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function eb(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function tb(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...tb(r,o)}),{}):typeof t=="function"?t(o):t??{}}function nb(t){return t.startsWith("data-")?t:`data-${t}`}function vw(t){return Object.keys(t).reduce((o,a)=>{const r=t[a];return r===void 0||r===""||r===!1||r===null||(o[nb(a)]=t[a]),o},{})}function ob(t){return t?typeof t=="string"?{[nb(t)]:!0}:Array.isArray(t)?[...t].reduce((o,a)=>({...o,...ob(a)}),{}):vw(t):null}function Bd(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...Bd(r,o)}),{}):typeof t=="function"?t(o):t??{}}function yw({theme:t,style:o,vars:a,styleProps:r}){const s=Bd(o,t),c=Bd(a,t);return{...s,...c,...r}}const lb=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},E)=>{const w=Zt(),M=t||"div",{styleProps:R,rest:O}=cc(C),H=v9()?.()?.(R.sx),z=eb(),k=Wy({styleProps:R,theme:w,data:ew}),V={ref:E,style:yw({theme:w,style:o,vars:a,styleProps:k.inlineStyles}),className:So(r,H,{[z]:k.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":v,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":By(f)?void 0:f||void 0,size:x,...ob(c),...O};return g.jsxs(g.Fragment,{children:[k.hasResponsiveStyles&&g.jsx(Jy,{selector:`.${z}`,styles:k.styles,media:k.media}),typeof y=="function"?y(V):g.jsx(M,{...V})]})});lb.displayName="@mantine/core/Box";const xe=lb;function ab(t){return t}function bw(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 He(t){const o=S.forwardRef(t);return o.extend=ab,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 _t(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=ab,o}const xw=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ta(){return S.useContext(xw)}var rb={root:"m_87cf2631"};const Sw={__staticSelector:"UnstyledButton"},Jo=_t((t,o)=>{const a=fe("UnstyledButton",Sw,t),{className:r,component:s="button",__staticSelector:c,unstyled:f,classNames:d,styles:p,style:h,attributes:v,...y}=a,x=Ae({name:c,props:a,classes:rb,className:r,style:h,classNames:d,styles:p,unstyled:f,attributes:v});return g.jsx(xe,{...x("root",{focusable:!0}),component:s,ref:o,type:s==="button"?"button":void 0,...y})});Jo.classes=rb;Jo.displayName="@mantine/core/UnstyledButton";var ib={root:"m_515a97f8"};const mm=He((t,o)=>{const a=fe("VisuallyHidden",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,attributes:h,...v}=a,y=Ae({name:"VisuallyHidden",classes:ib,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:h});return g.jsx(xe,{component:"span",ref:o,...y("root"),...v})});mm.classes=ib;mm.displayName="@mantine/core/VisuallyHidden";var sb={root:"m_1b7284a3"};const Cw=(t,{radius:o,shadow:a})=>({root:{"--paper-radius":o===void 0?void 0:Rt(o),"--paper-shadow":$y(a)}}),pm=_t((t,o)=>{const a=fe("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:E,...w}=a,M=Ae({name:"Paper",props:a,classes:sb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:h,varsResolver:Cw});return g.jsx(xe,{ref:o,mod:[{"data-with-border":p},C],...M("root"),variant:x,...w})});pm.classes=sb;pm.displayName="@mantine/core/Paper";function r0(t,o,a,r){return t==="center"||r==="center"?{top:o}:t==="end"?{bottom:a}:t==="start"?{top:a}:{}}function i0(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 ww={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Ew({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",[ww[p]]:r},y=-o/2;return p==="left"?{...v,...r0(h,f,a,s),right:y,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...v,...r0(h,f,a,s),left:y,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...v,...i0(h,c,a,s,d),bottom:y,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...v,...i0(h,c,a,s,d),top:y,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const $s=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,...Ew({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,dir:y,arrowX:f,arrowY:d})}}):null});$s.displayName="@mantine/core/FloatingArrow";function cb(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 ub={root:"m_9814e45f"};const Tw={zIndex:$r("modal")},Mw=(t,{gradient:o,color:a,backgroundOpacity:r,blur:s,radius:c,zIndex:f})=>({root:{"--overlay-bg":o||(a!==void 0||r!==void 0)&&Vn(a||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${te(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Rt(c),"--overlay-z-index":f?.toString()}}),kr=_t((t,o)=>{const a=fe("Overlay",Tw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,fixed:h,center:v,children:y,radius:x,zIndex:C,gradient:E,blur:w,color:M,backgroundOpacity:R,mod:O,attributes:A,...H}=a,z=Ae({name:"Overlay",props:a,classes:ub,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:A,vars:p,varsResolver:Mw});return g.jsx(xe,{ref:o,...z("root"),mod:[{center:v,fixed:h},O],...H,children:y})});kr.classes=ub;kr.displayName="@mantine/core/Overlay";function Cd(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 Rw({target:t,reuseTargetNode:o,...a}){if(t)return typeof t=="string"?document.querySelector(t)||Cd(a):t;if(o){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=Cd(a);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return Cd(a)}const _w={reuseTargetNode:!0},fb=He((t,o)=>{const{children:a,target:r,reuseTargetNode:s,...c}=fe("Portal",_w,t),[f,d]=S.useState(!1),p=S.useRef(null);return Zr(()=>(d(!0),p.current=Rw({target:r,reuseTargetNode:s,...c}),Bs(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:qn.createPortal(g.jsx(g.Fragment,{children:a}),p.current)});fb.displayName="@mantine/core/Portal";const Sa=He(({withinPortal:t=!0,children:o,...a},r)=>ic()==="test"||!t?g.jsx(g.Fragment,{children:o}):g.jsx(fb,{ref:r,...a,children:o}));Sa.displayName="@mantine/core/OptionalPortal";const _r=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),bs={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:{..._r("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{..._r("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{..._r("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{..._r("top"),common:{transformOrigin:"top left"}},"pop-top-right":{..._r("top"),common:{transformOrigin:"top right"}}},s0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function jw({transition:t,state:o,duration:a,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${a}ms`,transitionTimingFunction:r};return typeof t=="string"?t in bs?{transitionProperty:bs[t].transitionProperty,...s,...bs[t].common,...bs[t][s0[o]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[s0[o]]}}function Ow({duration:t,exitDuration:o,timingFunction:a,mounted:r,onEnter:s,onExit:c,onEntered:f,onExited:d,enterDelay:p,exitDelay:h}){const v=Zt(),y=r9(),x=v.respectReducedMotion?y:!1,[C,E]=S.useState(x?0:t),[w,M]=S.useState(r?"entered":"exited"),R=S.useRef(-1),O=S.useRef(-1),A=S.useRef(-1);function H(){window.clearTimeout(R.current),window.clearTimeout(O.current),cancelAnimationFrame(A.current)}const z=V=>{H();const J=V?s:c,W=V?f:d,Q=x?0:V?t:o;E(Q),Q===0?(typeof J=="function"&&J(),typeof W=="function"&&W(),M(V?"entered":"exited")):A.current=requestAnimationFrame(()=>{M0.flushSync(()=>{M(V?"pre-entering":"pre-exiting")}),A.current=requestAnimationFrame(()=>{typeof J=="function"&&J(),M(V?"entering":"exiting"),R.current=window.setTimeout(()=>{typeof W=="function"&&W(),M(V?"entered":"exited")},Q)})})},k=V=>{if(H(),typeof(V?p:h)!="number"){z(V);return}O.current=window.setTimeout(()=>{z(V)},V?p:h)};return Lr(()=>{k(r)},[r]),S.useEffect(()=>()=>{H()},[]),{transitionDuration:C,transitionStatus:w,transitionTimingFunction:a||"ease"}}function Io({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=ic(),{transitionDuration:E,transitionStatus:w,transitionTimingFunction:M}=Ow({mounted:s,exitDuration:r,duration:a,timingFunction:f,onExit:d,onEntered:p,onEnter:h,onExited:v,enterDelay:y,exitDelay:x});return E===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(jw({transition:o,duration:E,state:w,timingFunction:M}))})}Io.displayName="@mantine/core/Transition";const[Nw,db]=oc("Popover component was not found in the tree");var mb={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};function hm({children:t,active:o=!0,refProp:a="ref",innerRef:r}){const s=Yy(o),c=_n(s,r),f=qr(t);return f?S.cloneElement(f,{[a]:c}):t}function pb(t){return g.jsx(mm,{tabIndex:-1,"data-autofocus":!0,...t})}hm.displayName="@mantine/core/FocusTrap";pb.displayName="@mantine/core/FocusTrapInitialFocus";hm.InitialFocus=pb;const uc=He((t,o)=>{const a=fe("PopoverDropdown",null,t),{className:r,style:s,vars:c,children:f,onKeyDownCapture:d,variant:p,classNames:h,styles:v,...y}=a,x=db(),C=J7({opened:x.opened,shouldReturnFocus:x.returnFocus}),E=x.withRoles?{"aria-labelledby":x.getTargetId(),id:x.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=_n(o,x.floating);return x.disabled?null:g.jsx(Sa,{...x.portalProps,withinPortal:x.withinPortal,children:g.jsx(Io,{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(hm,{active:x.trapFocus&&x.opened,innerRef:w,children:g.jsxs(xe,{...E,...y,variant:p,onKeyDownCapture:Z7(()=>{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:te(x.width),...x.referenceHidden?{display:"none"}:null},x.resolvedStyles.dropdown,v?.dropdown,s]}),children:[f,g.jsx($s,{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})})]})})})})});uc.classes=mb;uc.displayName="@mantine/core/PopoverDropdown";const Aw={refProp:"ref",popupType:"dialog"},gm=He((t,o)=>{const{children:a,refProp:r,popupType:s,...c}=fe("PopoverTarget",Aw,t),f=qr(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=db(),h=_n(p.reference,rm(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:So(p.targetProps.className,d.className,y.className),[r]:h,...p.controlled?null:{onClick:()=>{p.onToggle(),y.onClick?.()}}})});gm.displayName="@mantine/core/PopoverTarget";function Hw(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 Dw(t,o,a){const r=Hw(t.middlewares),s=[pn(t.offset),V4()];return t.dropdownVisible&&a!=="test"&&t.preventPositionChangeWhenVisible&&(r.flip=!1),r.flip&&s.push(typeof r.flip=="boolean"?bo():bo(r.flip)),r.shift&&s.push(Ko(typeof r.shift=="boolean"?{limiter:mv(),padding:5}:{limiter:mv(),padding:5,...r.shift})),r.inline&&s.push(typeof r.inline=="boolean"?jr():jr(r.inline)),s.push(I0({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 zw(t){const o=ic(),[a,r]=Ea({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=ec({strategy:t.strategy,placement:t.preventPositionChangeWhenVisible?t.positionRef.current:t.position,middleware:Dw(t,()=>d,o),whileElementsMounted:t.keepMounted?void 0:Os});return S.useEffect(()=>{if(!(!d.refs.reference.current||!d.refs.floating.current)&&a)return Os(d.refs.reference.current,d.refs.floating.current,d.update)},[a,d.update]),Lr(()=>{t.onPositionChange?.(d.placement),t.positionRef.current=d.placement},[d.placement,t.preventPositionChangeWhenVisible]),Lr(()=>{a!==s.current&&(a?t.onOpen?.():t.onClose?.()),s.current=a},[a,t.onClose,t.onOpen]),Zr(()=>{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 Lw={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:$r("popover"),__staticSelector:"Popover",width:"max-content"},Vw=(t,{radius:o,shadow:a})=>({dropdown:{"--popover-radius":o===void 0?void 0:Rt(o),"--popover-shadow":$y(a)}});function jn(t){const o=fe("Popover",Lw,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:E,arrowOffset:w,arrowRadius:M,arrowPosition:R,unstyled:O,classNames:A,styles:H,closeOnClickOutside:z,withinPortal:k,portalProps:V,closeOnEscape:J,clickOutsideEvents:W,trapFocus:Q,onClose:oe,onDismiss:ie,onOpen:le,onChange:G,zIndex:re,radius:D,shadow:B,id:U,defaultOpened:ee,__staticSelector:ne,withRoles:_,disabled:$,returnFocus:F,variant:ae,keepMounted:se,vars:ue,floatingStrategy:ve,withOverlay:Se,overlayProps:me,hideDetached:We,attributes:it,preventPositionChangeWhenVisible:tt,...Ve}=o,lt=Ae({name:ne,props:o,classes:mb,classNames:A,styles:H,unstyled:O,attributes:it,rootSelector:"dropdown",vars:ue,varsResolver:Vw}),{resolvedStyles:nn}=sc({classNames:A,styles:H,props:o}),[Nn,Co]=S.useState(d??ee??!1),An=S.useRef(r),Et=S.useRef(null),[Xn,Tl]=S.useState(null),[wc,Ec]=S.useState(null),{dir:jt}=Ta(),Tc=ic(),Na=wa(U),dt=zw({middlewares:x,width:y,position:cb(jt,r),offset:typeof s=="number"?s+(C?E/2:0):s,arrowRef:Et,arrowOffset:w,onPositionChange:c,positionDependencies:f,opened:d,defaultOpened:ee,onChange:G,onOpen:le,onClose:oe,onDismiss:ie,strategy:ve,dropdownVisible:Nn,setDropdownVisible:Co,positionRef:An,disabled:$,preventPositionChangeWhenVisible:tt,keepMounted:se});Q7(()=>{z&&(dt.onClose(),ie?.())},W,[Xn,wc]);const Ml=S.useCallback(Qn=>{Tl(Qn),dt.floating.refs.setReference(Qn)},[dt.floating.refs.setReference]),Mc=S.useCallback(Qn=>{Ec(Qn),dt.floating.refs.setFloating(Qn)},[dt.floating.refs.setFloating]),Qr=S.useCallback(()=>{p?.onExited?.(),h?.(),Co(!1),tt||(An.current=r)},[p?.onExited,h,tt,r]),Rc=S.useCallback(()=>{p?.onEntered?.(),v?.()},[p?.onEntered,v]);return g.jsxs(Nw,{value:{returnFocus:F,disabled:$,controlled:dt.controlled,reference:Ml,floating:Mc,x:dt.floating.x,y:dt.floating.y,arrowX:dt.floating?.middlewareData?.arrow?.x,arrowY:dt.floating?.middlewareData?.arrow?.y,opened:dt.opened,arrowRef:Et,transitionProps:{...p,onExited:Qr,onEntered:Rc},width:y,withArrow:C,arrowSize:E,arrowOffset:w,arrowRadius:M,arrowPosition:R,placement:dt.floating.placement,trapFocus:Q,withinPortal:k,portalProps:V,zIndex:re,radius:D,shadow:B,closeOnEscape:J,onDismiss:ie,onClose:dt.onClose,onToggle:dt.onToggle,getTargetId:()=>`${Na}-target`,getDropdownId:()=>`${Na}-dropdown`,withRoles:_,targetProps:Ve,__staticSelector:ne,classNames:A,styles:H,unstyled:O,variant:ae,keepMounted:se,getStyles:lt,resolvedStyles:nn,floatingStrategy:ve,referenceHidden:We&&Tc!=="test"?dt.floating.middlewareData.hide?.referenceHidden:!1},children:[a,Se&&g.jsx(Io,{transition:"fade",mounted:dt.opened,duration:p?.duration||250,exitDuration:p?.exitDuration||250,children:Qn=>g.jsx(Sa,{withinPortal:k,children:g.jsx(kr,{...me,...lt("overlay",{className:me?.className,style:[Qn,me?.style]})})})})]})}jn.Target=gm;jn.Dropdown=uc;jn.displayName="@mantine/core/Popover";jn.extend=t=>t;var wn={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 hb=S.forwardRef(({className:t,...o},a)=>g.jsxs(xe,{component:"span",className:So(wn.barsLoader,t),...o,ref:a,children:[g.jsx("span",{className:wn.bar}),g.jsx("span",{className:wn.bar}),g.jsx("span",{className:wn.bar})]}));hb.displayName="@mantine/core/Bars";const gb=S.forwardRef(({className:t,...o},a)=>g.jsxs(xe,{component:"span",className:So(wn.dotsLoader,t),...o,ref:a,children:[g.jsx("span",{className:wn.dot}),g.jsx("span",{className:wn.dot}),g.jsx("span",{className:wn.dot})]}));gb.displayName="@mantine/core/Dots";const vb=S.forwardRef(({className:t,...o},a)=>g.jsx(xe,{component:"span",className:So(wn.ovalLoader,t),...o,ref:a}));vb.displayName="@mantine/core/Oval";const yb={bars:hb,oval:vb,dots:gb},kw={loaders:yb,type:"oval"},Bw=(t,{size:o,color:a})=>({root:{"--loader-size":Qe(o,"loader-size"),"--loader-color":a?xo(a,t):void 0}}),Wo=He((t,o)=>{const a=fe("Loader",kw,t),{size:r,color:s,type:c,vars:f,className:d,style:p,classNames:h,styles:v,unstyled:y,loaders:x,variant:C,children:E,attributes:w,...M}=a,R=Ae({name:"Loader",props:a,classes:wn,className:d,style:p,classNames:h,styles:v,unstyled:y,attributes:w,vars:f,varsResolver:Bw});return E?g.jsx(xe,{...R("root"),ref:o,...M,children:E}):g.jsx(xe,{...R("root"),ref:o,component:x[c],variant:C,size:r,...M})});Wo.defaultLoaders=yb;Wo.classes=wn;Wo.displayName="@mantine/core/Loader";var Ma={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const c0={orientation:"horizontal"},Uw=(t,{borderWidth:o})=>({group:{"--ai-border-width":te(o)}}),vm=He((t,o)=>{const a=fe("ActionIconGroup",c0,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...E}=fe("ActionIconGroup",c0,t),w=Ae({name:"ActionIconGroup",props:a,classes:Ma,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:Uw,rootSelector:"group"});return g.jsx(xe,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...E})});vm.classes=Ma;vm.displayName="@mantine/core/ActionIconGroup";const $w=(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":Qe(f,"section-height"),"--section-padding-x":Qe(f,"section-padding-x"),"--section-fz":Gt(f),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},ym=He((t,o)=>{const a=fe("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,...E}=a,w=Ae({name:"ActionIconGroupSection",props:a,classes:Ma,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:$w,rootSelector:"groupSection"});return g.jsx(xe,{...w("groupSection"),ref:o,variant:h,...E})});ym.classes=Ma;ym.displayName="@mantine/core/ActionIconGroupSection";const Gw=(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":Qe(o,"ai-size"),"--ai-radius":a===void 0?void 0:Rt(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}}},El=_t((t,o)=>{const a=fe("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:E,gradient:w,vars:M,children:R,disabled:O,"data-disabled":A,autoContrast:H,mod:z,attributes:k,...V}=a,J=Ae({name:["ActionIcon",E],props:a,className:r,style:p,classes:Ma,classNames:f,styles:d,unstyled:s,attributes:k,vars:M,varsResolver:Gw});return g.jsxs(Jo,{...J("root",{active:!O&&!h&&!A}),...V,unstyled:s,variant:c,size:y,disabled:O||h,ref:o,mod:[{loading:h,disabled:O||A},z],children:[typeof h=="boolean"&&g.jsx(Io,{mounted:h,transition:"slide-down",duration:150,children:W=>g.jsx(xe,{component:"span",...J("loader",{style:W}),"aria-hidden":!0,children:g.jsx(Wo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...v})})}),g.jsx(xe,{component:"span",mod:{loading:h},...J("icon"),children:R})]})});El.classes=Ma;El.displayName="@mantine/core/ActionIcon";El.Group=vm;El.GroupSection=ym;const bb=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"})}));bb.displayName="@mantine/core/CloseIcon";var xb={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Zw={variant:"subtle"},qw=(t,{size:o,radius:a,iconSize:r})=>({root:{"--cb-size":Qe(o,"cb-size"),"--cb-radius":a===void 0?void 0:Rt(a),"--cb-icon-size":te(r)}}),fc=_t((t,o)=>{const a=fe("CloseButton",Zw,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:E,icon:w,mod:M,attributes:R,__staticSelector:O,...A}=a,H=Ae({name:O||"CloseButton",props:a,className:d,style:h,classes:xb,classNames:p,styles:v,unstyled:y,attributes:R,vars:c,varsResolver:qw});return g.jsxs(Jo,{ref:o,...A,unstyled:y,variant:E,disabled:C,mod:[{disabled:C||x},M],...H("root",{variant:E,active:!C&&!x}),children:[w||g.jsx(bb,{}),s]})});fc.classes=xb;fc.displayName="@mantine/core/CloseButton";function Yw(t){return S.Children.toArray(t).filter(Boolean)}var Sb={root:"m_4081bf90"};const Pw={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Xw=(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":Gr(r),"--group-align":s,"--group-justify":c,"--group-wrap":f}}),wt=He((t,o)=>{const a=fe("Group",Pw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,children:p,gap:h,align:v,justify:y,wrap:x,grow:C,preventGrowOverflow:E,vars:w,variant:M,__size:R,mod:O,attributes:A,...H}=a,z=Yw(p),k=z.length,V=Gr(h??"md"),W={childWidth:`calc(${100/k}% - (${V} - ${V} / ${k}))`},Q=Ae({name:"Group",props:a,stylesCtx:W,className:s,style:c,classes:Sb,classNames:r,styles:f,unstyled:d,attributes:A,vars:w,varsResolver:Xw});return g.jsx(xe,{...Q("root"),ref:o,variant:M,mod:[{grow:C},O],size:R,...H,children:z})});wt.classes=Sb;wt.displayName="@mantine/core/Group";const[Qw,Iw]=lc({size:"sm"});var yn={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 Cb=He((t,o)=>{const a=fe("InputClearButton",null,t),{size:r,variant:s,vars:c,classNames:f,styles:d,...p}=a,h=Iw(),{resolvedClassNames:v,resolvedStyles:y}=sc({classNames:f,styles:d,props:a});return g.jsx(fc,{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})});Cb.displayName="@mantine/core/InputClearButton";const Kw={xs:7,sm:8,md:10,lg:12,xl:15};function Fw({__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:Kw[s]},children:[c,a||r]}):a===null?null:a||c||r}const[Jw,dc]=lc({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Ww=(t,{size:o})=>({description:{"--input-description-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),mc=He((t,o)=>{const a=fe("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,...E}=fe("InputDescription",null,a),w=dc(),M=Ae({name:["InputWrapper",v],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:x,rootSelector:"description",vars:p,varsResolver:Ww}),R=y&&w?.getStyles||M;return g.jsx(xe,{component:"p",ref:o,variant:C,size:h,...R("description",w?.getStyles?{className:s,style:c}:void 0),...E})});mc.classes=yn;mc.displayName="@mantine/core/InputDescription";const e6=(t,{size:o})=>({error:{"--input-error-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),pc=He((t,o)=>{const a=fe("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,...E}=a,w=Ae({name:["InputWrapper",y],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,rootSelector:"error",vars:p,varsResolver:e6}),M=dc(),R=x&&M?.getStyles||w;return g.jsx(xe,{component:"p",ref:o,variant:C,size:h,...R("error",M?.getStyles?{className:s,style:c}:void 0),...E})});pc.classes=yn;pc.displayName="@mantine/core/InputError";const u0={labelElement:"label"},t6=(t,{size:o})=>({label:{"--input-label-size":Gt(o),"--input-asterisk-color":void 0}}),hc=He((t,o)=>{const a=fe("InputLabel",u0,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,labelElement:h,size:v,required:y,htmlFor:x,onMouseDown:C,children:E,__staticSelector:w,variant:M,mod:R,attributes:O,...A}=fe("InputLabel",u0,a),H=Ae({name:["InputWrapper",w],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:O,rootSelector:"label",vars:p,varsResolver:t6}),z=dc(),k=z?.getStyles||H;return g.jsxs(xe,{...k("label",z?.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:V=>{C?.(V),!V.defaultPrevented&&V.detail>1&&V.preventDefault()},...A,children:[E,y&&g.jsx("span",{...k("required"),"aria-hidden":!0,children:" *"})]})});hc.classes=yn;hc.displayName="@mantine/core/InputLabel";const bm=He((t,o)=>{const a=fe("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,...E}=a,w=Ae({name:["InputPlaceholder",h],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,rootSelector:"placeholder"});return g.jsx(xe,{...w("placeholder"),mod:[{error:!!y},x],component:"span",variant:v,ref:o,...E})});bm.classes=yn;bm.displayName="@mantine/core/InputPlaceholder";function n6(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 o6={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},l6=(t,{size:o})=>({label:{"--input-label-size":Gt(o),"--input-asterisk-color":void 0},error:{"--input-error-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`},description:{"--input-description-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),xm=He((t,o)=>{const a=fe("InputWrapper",o6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,variant:v,__staticSelector:y,inputContainer:x,inputWrapperOrder:C,label:E,error:w,description:M,labelProps:R,descriptionProps:O,errorProps:A,labelElement:H,children:z,withAsterisk:k,id:V,required:J,__stylesApiProps:W,mod:Q,attributes:oe,...ie}=a,le=Ae({name:["InputWrapper",y],props:W||a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:oe,vars:p,varsResolver:l6}),G={size:h,variant:v,__staticSelector:y},re=wa(V),D=typeof k=="boolean"?k:J,B=A?.id||`${re}-error`,U=O?.id||`${re}-description`,ee=re,ne=!!w&&typeof w!="boolean",_=!!M,$=`${ne?B:""} ${_?U:""}`,F=$.trim().length>0?$.trim():void 0,ae=R?.id||`${re}-label`,se=E&&g.jsx(hc,{labelElement:H,id:ae,htmlFor:ee,required:D,...G,...R,children:E},"label"),ue=_&&g.jsx(mc,{...O,...G,size:O?.size||G.size,id:O?.id||U,children:M},"description"),ve=g.jsx(S.Fragment,{children:x(z)},"input"),Se=ne&&S.createElement(pc,{...A,...G,size:A?.size||G.size,key:"error",id:A?.id||B},w),me=C.map(We=>{switch(We){case"label":return se;case"input":return ve;case"description":return ue;case"error":return Se;default:return null}});return g.jsx(Jw,{value:{getStyles:le,describedBy:F,inputId:ee,labelId:ae,...n6(C,{hasDescription:_,hasError:ne})},children:g.jsx(xe,{ref:o,variant:v,size:h,mod:[{error:!!w},Q],...le("root"),...ie,children:me})})});xm.classes=yn;xm.displayName="@mantine/core/InputWrapper";const a6={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},r6=(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":Qe(o.size,"input-height"),"--input-fz":Gt(o.size),"--input-radius":o.radius===void 0?void 0:Rt(o.radius),"--input-left-section-width":o.leftSectionWidth!==void 0?te(o.leftSectionWidth):void 0,"--input-right-section-width":o.rightSectionWidth!==void 0?te(o.rightSectionWidth):void 0,"--input-padding-y":o.multiline?Qe(o.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":o.leftSectionPointerEvents,"--input-right-section-pointer-events":o.rightSectionPointerEvents}}),tn=_t((t,o)=>{const a=fe("Input",a6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,required:p,__staticSelector:h,__stylesApiProps:v,size:y,wrapperProps:x,error:C,disabled:E,leftSection:w,leftSectionProps:M,leftSectionWidth:R,rightSection:O,rightSectionProps:A,rightSectionWidth:H,rightSectionPointerEvents:z,leftSectionPointerEvents:k,variant:V,vars:J,pointer:W,multiline:Q,radius:oe,id:ie,withAria:le,withErrorStyles:G,mod:re,inputSize:D,attributes:B,__clearSection:U,__clearable:ee,__defaultRightSection:ne,..._}=a,{styleProps:$,rest:F}=cc(_),ae=dc(),se={offsetBottom:ae?.offsetBottom,offsetTop:ae?.offsetTop},ue=Ae({name:["Input",h],props:v||a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:B,stylesCtx:se,rootSelector:"wrapper",vars:J,varsResolver:r6}),ve=le?{required:p,disabled:E,"aria-invalid":!!C,"aria-describedby":ae?.describedBy,id:ae?.inputId||ie}:{},Se=Fw({__clearable:ee,__clearSection:U,rightSection:O,__defaultRightSection:ne,size:y});return g.jsx(Qw,{value:{size:y||"sm"},children:g.jsxs(xe,{...ue("wrapper"),...$,...x,mod:[{error:!!C&&G,pointer:W,disabled:E,multiline:Q,"data-with-right-section":!!Se,"data-with-left-section":!!w},re],variant:V,size:y,children:[w&&g.jsx("div",{...M,"data-position":"left",...ue("section",{className:M?.className,style:M?.style}),children:w}),g.jsx(xe,{component:"input",...F,...ve,ref:o,required:p,mod:{disabled:E,error:!!C&&G},variant:V,__size:D,...ue("input")}),Se&&g.jsx("div",{...A,"data-position":"right",...ue("section",{className:A?.className,style:A?.style}),children:Se})]})})});tn.classes=yn;tn.Wrapper=xm;tn.Label=hc;tn.Error=pc;tn.Description=mc;tn.Placeholder=bm;tn.ClearButton=Cb;tn.displayName="@mantine/core/Input";function i6(t,o,a){const r=fe(t,o,a),{label:s,description:c,error:f,required:d,classNames:p,styles:h,className:v,unstyled:y,__staticSelector:x,__stylesApiProps:C,errorProps:E,labelProps:w,descriptionProps:M,wrapperProps:R,id:O,size:A,style:H,inputContainer:z,inputWrapperOrder:k,withAsterisk:V,variant:J,vars:W,mod:Q,attributes:oe,...ie}=r,{styleProps:le,rest:G}=cc(ie),re={label:s,description:c,error:f,required:d,classNames:p,className:v,__staticSelector:x,__stylesApiProps:C||r,errorProps:E,labelProps:w,descriptionProps:M,unstyled:y,styles:h,size:A,style:H,inputContainer:z,inputWrapperOrder:k,withAsterisk:V,variant:J,id:O,mod:Q,attributes:oe,...R};return{...G,classNames:p,styles:h,unstyled:y,wrapperProps:{...re,...le},inputProps:{required:d,classNames:p,styles:h,unstyled:y,size:A,__staticSelector:x,__stylesApiProps:C||r,error:f,variant:J,id:O,attributes:oe}}}const s6={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ra=_t((t,o)=>{const{inputProps:a,wrapperProps:r,...s}=i6("InputBase",s6,t);return g.jsx(tn.Wrapper,{...r,children:g.jsx(tn,{...a,...s,ref:o})})});Ra.classes={...tn.classes,...tn.Wrapper.classes};Ra.displayName="@mantine/core/InputBase";const c6={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 wb={root:"m_8bffd616"};const Sm=_t((t,o)=>{const a=fe("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:E,direction:w,attributes:M,...R}=a,O=Ae({name:"Flex",classes:wb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p}),A=Zt(),H=eb(),z=Wy({styleProps:{gap:h,rowGap:v,columnGap:y,align:x,justify:C,wrap:E,direction:w},theme:A,data:c6});return g.jsxs(g.Fragment,{children:[z.hasResponsiveStyles&&g.jsx(Jy,{selector:`.${H}`,styles:z.styles,media:z.media}),g.jsx(xe,{ref:o,...O("root",{className:H,style:nc(z.inlineStyles)}),...R})]})});Sm.classes=wb;Sm.displayName="@mantine/core/Flex";function Eb({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 Tb({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:te(o),height:te(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"})})}Tb.displayName="@mantine/core/AccordionChevron";var Mb={root:"m_b6d8b162"};function u6(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const f6={inherit:!1},d6=(t,{variant:o,lineClamp:a,gradient:r,size:s,color:c})=>({root:{"--text-fz":Gt(s),"--text-lh":q7(s),"--text-gradient":o==="gradient"?Vd(r,t):void 0,"--text-line-clamp":typeof a=="number"?a.toString():void 0,"--text-color":c?xo(c,t):void 0}}),Yn=_t((t,o)=>{const a=fe("Text",f6,t),{lineClamp:r,truncate:s,inline:c,inherit:f,gradient:d,span:p,__staticSelector:h,vars:v,className:y,style:x,classNames:C,styles:E,unstyled:w,variant:M,mod:R,size:O,attributes:A,...H}=a,z=Ae({name:["Text",h],props:a,classes:Mb,className:y,style:x,classNames:C,styles:E,unstyled:w,attributes:A,vars:v,varsResolver:d6});return g.jsx(xe,{...z("root",{focusable:!0}),ref:o,component:p?"span":"p",variant:M,mod:[{"data-truncate":u6(s),"data-line-clamp":typeof r=="number","data-inline":c,"data-inherit":f},R],size:O,...H})});Yn.classes=Mb;Yn.displayName="@mantine/core/Text";function Gs({size:t,style:o,...a}){const r=t!==void 0?{width:te(t),height:te(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 gc={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const Rb=S.createContext(null),m6=Rb.Provider;function p6(){return{withinGroup:!!S.useContext(Rb)}}const h6=(t,{spacing:o})=>({group:{"--ag-spacing":Gr(o)}}),Cm=He((t,o)=>{const a=fe("AvatarGroup",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,spacing:h,attributes:v,...y}=a,x=Ae({name:"AvatarGroup",classes:gc,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:p,varsResolver:h6,rootSelector:"group"});return g.jsx(m6,{value:!0,children:g.jsx(xe,{ref:o,...x("group"),...y})})});Cm.classes=gc;Cm.displayName="@mantine/core/AvatarGroup";function g6(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 v6(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 y6=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function b6(t,o=y6){const a=v6(t),r=Math.abs(a)%o.length;return o[r]}function x6(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 S6=(t,{size:o,radius:a,variant:r,gradient:s,color:c,autoContrast:f,name:d,allowedInitialsColors:p})=>{const h=c==="initials"&&typeof d=="string"?b6(d,p):c,v=t.variantColorResolver({color:h||"gray",theme:t,gradient:s,variant:r||"light",autoContrast:f});return{root:{"--avatar-size":Qe(o,"avatar-size"),"--avatar-radius":a===void 0?void 0:Rt(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}}},vc=_t((t,o)=>{const a=fe("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:E,children:w,autoContrast:M,mod:R,name:O,allowedInitialsColors:A,attributes:H,...z}=a,k=p6(),[V,J]=S.useState(!h),W=Ae({name:"Avatar",props:a,classes:gc,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:H,vars:p,varsResolver:S6});return S.useEffect(()=>J(!h),[h]),g.jsx(xe,{...W("root"),mod:[{"within-group":k.withinGroup},R],ref:o,...z,children:V||!h?g.jsx("span",{...W("placeholder"),title:v,children:w||typeof O=="string"&&x6(O)||g.jsx(g6,{})}):g.jsx("img",{...E,...W("image"),src:h,alt:v,onError:Q=>{J(!0),E?.onError?.(Q)}})})});vc.classes=gc;vc.displayName="@mantine/core/Avatar";vc.Group=Cm;var _b={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const C6=(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":Qe(c,"badge-height"),"--badge-padding-x":Qe(c,"badge-padding-x"),"--badge-fz":Qe(c,"badge-fz"),"--badge-radius":d||o===void 0?void 0:Rt(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"?xo(a,t):void 0}}},wm=_t((t,o)=>{const a=fe("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:E,variant:w,fullWidth:M,autoContrast:R,circle:O,mod:A,attributes:H,...z}=a,k=Ae({name:"Badge",props:a,classes:_b,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:H,vars:p,varsResolver:C6});return g.jsxs(xe,{variant:w,mod:[{block:M,circle:O,"with-right-section":!!C,"with-left-section":!!x},A],...k("root",{variant:w}),ref:o,...z,children:[x&&g.jsx("span",{...k("section"),"data-position":"left",children:x}),g.jsx("span",{...k("label"),children:E}),C&&g.jsx("span",{...k("section"),"data-position":"right",children:C})]})});wm.classes=_b;wm.displayName="@mantine/core/Badge";var _a={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const f0={orientation:"horizontal"},w6=(t,{borderWidth:o})=>({group:{"--button-border-width":te(o)}}),Em=He((t,o)=>{const a=fe("ButtonGroup",f0,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...E}=fe("ButtonGroup",f0,t),w=Ae({name:"ButtonGroup",props:a,classes:_a,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:w6,rootSelector:"group"});return g.jsx(xe,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...E})});Em.classes=_a;Em.displayName="@mantine/core/ButtonGroup";const E6=(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":Qe(f,"section-height"),"--section-padding-x":Qe(f,"section-padding-x"),"--section-fz":f?.includes("compact")?Gt(f.replace("compact-","")):Gt(f),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},Tm=He((t,o)=>{const a=fe("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,...E}=a,w=Ae({name:"ButtonGroupSection",props:a,classes:_a,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:E6,rootSelector:"groupSection"});return g.jsx(xe,{...w("groupSection"),ref:o,variant:h,...E})});Tm.classes=_a;Tm.displayName="@mantine/core/ButtonGroupSection";const T6={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${te(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},M6=(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":Qe(c,"button-height"),"--button-padding-x":Qe(c,"button-padding-x"),"--button-fz":c?.includes("compact")?Gt(c.replace("compact-","")):Gt(c),"--button-radius":o===void 0?void 0:Rt(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}}},On=_t((t,o)=>{const a=fe("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:E,loaderProps:w,gradient:M,classNames:R,styles:O,unstyled:A,"data-disabled":H,autoContrast:z,mod:k,attributes:V,...J}=a,W=Ae({name:"Button",props:a,classes:_a,className:c,style:r,classNames:R,styles:O,unstyled:A,attributes:V,vars:s,varsResolver:M6}),Q=!!h,oe=!!v;return g.jsxs(Jo,{ref:o,...W("root",{active:!d&&!E&&!H}),unstyled:A,variant:x,disabled:d||E,mod:[{disabled:d||H,loading:E,block:y,"with-left-section":Q,"with-right-section":oe},k],...J,children:[typeof E=="boolean"&&g.jsx(Io,{mounted:E,transition:T6,duration:150,children:ie=>g.jsx(xe,{component:"span",...W("loader",{style:ie}),"aria-hidden":!0,children:g.jsx(Wo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),g.jsxs("span",{...W("inner"),children:[h&&g.jsx(xe,{component:"span",...W("section"),mod:{position:"left"},children:h}),g.jsx(xe,{component:"span",mod:{loading:E},...W("label"),children:p}),v&&g.jsx(xe,{component:"span",...W("section"),mod:{position:"right"},children:v})]})]})});On.classes=_a;On.displayName="@mantine/core/Button";On.Group=Em;On.GroupSection=Tm;const[R6,_6]=oc("Card component was not found in tree");var Mm={root:"m_e615b15f",section:"m_599a2148"};const yc=_t((t,o)=>{const a=fe("CardSection",null,t),{classNames:r,className:s,style:c,styles:f,vars:d,withBorder:p,inheritPadding:h,mod:v,...y}=a,x=_6();return g.jsx(xe,{ref:o,mod:[{"with-border":p,"inherit-padding":h},v],...x.getStyles("section",{className:s,style:c,styles:f,classNames:r}),...y})});yc.classes=Mm;yc.displayName="@mantine/core/CardSection";const j6=(t,{padding:o})=>({root:{"--card-padding":Gr(o)}}),Yr=_t((t,o)=>{const a=fe("Card",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,children:h,padding:v,attributes:y,...x}=a,C=Ae({name:"Card",props:a,classes:Mm,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:y,vars:p,varsResolver:j6}),E=S.Children.toArray(h),w=E.map((M,R)=>typeof M=="object"&&M&&"type"in M&&M.type===yc?S.cloneElement(M,{"data-first-section":R===0||void 0,"data-last-section":R===E.length-1||void 0}):M);return g.jsx(R6,{value:{getStyles:C},children:g.jsx(pm,{ref:o,unstyled:d,...C("root"),...x,children:w})})});Yr.classes=Mm;Yr.displayName="@mantine/core/Card";Yr.Section=yc;var jb={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[O6,N6]=lc();function Ob(t){const{value:o,defaultValue:a,onChange:r,multiple:s,children:c}=fe("ChipGroup",null,t),[f,d]=Ea({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(O6,{value:{isChipSelected:p,onChange:h,multiple:s},children:c})}Ob.displayName="@mantine/core/ChipGroup";const A6={type:"checkbox"},H6=(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":Gt(o),"--chip-size":Qe(o,"chip-size"),"--chip-radius":a===void 0?void 0:Rt(a),"--chip-checked-padding":Qe(o,"chip-checked-padding"),"--chip-padding":Qe(o,"chip-padding"),"--chip-icon-size":Qe(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":Qe(o,"chip-spacing")}}},bc=He((t,o)=>{const a=fe("Chip",A6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,id:h,checked:v,defaultChecked:y,onChange:x,value:C,wrapperProps:E,type:w,disabled:M,children:R,size:O,variant:A,icon:H,rootRef:z,autoContrast:k,mod:V,attributes:J,...W}=a,Q=Ae({name:"Chip",classes:jb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:J,vars:p,varsResolver:H6}),oe=N6(),ie=wa(h),{styleProps:le,rest:G}=cc(W),[re,D]=Ea({value:v,defaultValue:y,finalValue:!1,onChange:x}),B=oe?{checked:oe.isChipSelected(C),onChange:ee=>{oe.onChange(ee),x?.(ee.currentTarget.checked)},type:oe.multiple?"checkbox":"radio"}:{},U=B.checked||re;return g.jsxs(xe,{size:O,variant:A,ref:z,mod:V,...Q("root"),...le,...E,children:[g.jsx("input",{type:w,...Q("input"),checked:U,onChange:ee=>D(ee.currentTarget.checked),id:ie,disabled:M,ref:o,value:C,...B,...G}),g.jsxs("label",{htmlFor:ie,"data-checked":U||void 0,"data-disabled":M||void 0,...Q("label",{variant:A||"filled"}),children:[U&&H!==null&&H!==!1&&g.jsx("span",{...Q("iconWrapper"),children:H===void 0?g.jsx(Gs,{...Q("checkIcon")}):H}),g.jsx("span",{children:R})]})]})});bc.classes=jb;bc.displayName="@mantine/core/Chip";bc.Group=Ob;var Nb={root:"m_3eebeb36",label:"m_9e365f20"};const D6={orientation:"horizontal"},z6=(t,{color:o,variant:a,size:r})=>({root:{"--divider-color":o?xo(o,t):void 0,"--divider-border-style":a,"--divider-size":Qe(r,"divider-size")}}),Rm=He((t,o)=>{const a=fe("Divider",D6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,color:h,orientation:v,label:y,labelPosition:x,mod:C,attributes:E,...w}=a,M=Ae({name:"Divider",classes:Nb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:p,varsResolver:z6});return g.jsx(xe,{ref:o,mod:[{orientation:v,"with-label":!!y},C],...M("root"),...w,role:"separator",children:y&&g.jsx(xe,{component:"span",mod:{position:x},...M("label"),children:y})})});Rm.classes=Nb;Rm.displayName="@mantine/core/Divider";const L6={multiple:!1},Ab=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}=fe("FileButton",L6,t),C=S.useRef(null),E=()=>{!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 Bs(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:_n(o,C),name:f,form:d,capture:v,...y}),r({onClick:E,...x})]})});Ab.displayName="@mantine/core/FileButton";const V6=({value:t})=>g.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(t)?t.map(o=>o.name).join(", "):t?.name}),k6={valueComponent:V6,size:"sm"},_m=He((t,o)=>{const a=fe("FileInput",k6,t),{unstyled:r,vars:s,onChange:c,value:f,defaultValue:d,multiple:p,accept:h,name:v,form:y,valueComponent:x,clearable:C,clearButtonProps:E,readOnly:w,capture:M,fileInputProps:R,rightSection:O,size:A,placeholder:H,component:z,resetRef:k,classNames:V,styles:J,attributes:W,...Q}=a,oe=S.useRef(null),{resolvedClassNames:ie,resolvedStyles:le}=sc({classNames:V,styles:J,props:a}),[G,re]=Ea({value:f,defaultValue:d,onChange:c,finalValue:p?[]:null}),D=Array.isArray(G)?G.length!==0:G!==null,B=O||(C&&D&&!w?g.jsx(fc,{...E,variant:"subtle",onClick:()=>re(p?[]:null),size:A,unstyled:r}):null);return S.useEffect(()=>{(Array.isArray(G)&&G.length===0||G===null)&&oe.current?.()},[G]),g.jsx(Ab,{onChange:re,multiple:p,accept:h,name:v,form:y,resetRef:_n(oe,k),disabled:w,capture:M,inputProps:R,children:U=>g.jsx(Ra,{component:z||"button",ref:o,rightSection:B,...U,...Q,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:a,unstyled:r,size:A,classNames:V,styles:J,attributes:W,children:D?g.jsx(x,{value:G}):g.jsx(tn.Placeholder,{__staticSelector:"FileInput",classNames:ie,styles:le,attributes:W,children:H})})})});_m.classes=Ra.classes;_m.displayName="@mantine/core/FileInput";const B6=_m;var Hb={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const d0={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:$r("overlay")},U6=(t,{zIndex:o})=>({root:{"--lo-z-index":o?.toString()}}),jm=He((t,o)=>{const a=fe("LoadingOverlay",d0,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,transitionProps:h,loaderProps:v,overlayProps:y,visible:x,zIndex:C,attributes:E,...w}=a,M=Zt(),R=Ae({name:"LoadingOverlay",classes:Hb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:p,varsResolver:U6}),O={...d0.overlayProps,...y};return g.jsx(Io,{transition:"fade",...h,mounted:!!x,children:A=>g.jsxs(xe,{...R("root",{style:A}),ref:o,...w,children:[g.jsx(Wo,{...R("loader"),unstyled:d,...v}),g.jsx(kr,{...O,...R("overlay"),darkHidden:!0,unstyled:d,color:y?.color||M.white}),g.jsx(kr,{...O,...R("overlay"),lightHidden:!0,unstyled:d,color:y?.color||M.colors.dark[5]})]})})});jm.classes=Hb;jm.displayName="@mantine/core/LoadingOverlay";const[$6,el]=oc("Menu component was not found in the tree");var tl={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const Om=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=fe("MenuDivider",null,t),p=el();return g.jsx(xe,{ref:o,...p.getStyles("divider",{className:r,style:s,styles:c,classNames:a}),...d})});Om.classes=tl;Om.displayName="@mantine/core/MenuDivider";const Nm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=fe("MenuDropdown",null,t),x=S.useRef(null),C=el(),E=Ut(h,R=>{(R.key==="ArrowUp"||R.key==="ArrowDown")&&(R.preventDefault(),x.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),w=Ut(d,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.openDropdown()),M=Ut(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:_n(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:E,children:[C.withInitialFocusPlaceholder&&g.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),v]})});Nm.classes=tl;Nm.displayName="@mantine/core/MenuDropdown";const[G6,xc]=lc(),Am=_t((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,...E}=fe("MenuItem",null,t),w=el(),M=xc(),R=Zt(),{dir:O}=Ta(),A=S.useRef(null),H=E,z=Ut(H.onClick,()=>{C||(typeof p=="boolean"?p&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),k=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,V=d?wl({color:d,theme:R}):null,J=Ut(H.onKeyDown,W=>{W.key==="ArrowLeft"&&M&&(M.close(),M.focusParentItem())});return g.jsxs(Jo,{onMouseDown:W=>W.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:_n(A,o),role:"menuitem",disabled:x,"data-menu-item":!0,"data-disabled":x||C||void 0,"data-mantine-stop-propagation":!0,onClick:z,onKeyDown:am({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:J}),__vars:{"--menu-item-color":V?.isThemeColor&&V?.shade===void 0?`var(--mantine-color-${V.color}-6)`:k?.color,"--menu-item-hover":k?.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})]})});Am.classes=tl;Am.displayName="@mantine/core/MenuItem";const Hm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=fe("MenuLabel",null,t),p=el();return g.jsx(xe,{ref:o,...p.getStyles("label",{className:r,style:s,styles:c,classNames:a}),...d})});Hm.classes=tl;Hm.displayName="@mantine/core/MenuLabel";const Dm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=fe("MenuSubDropdown",null,t),x=S.useRef(null),C=el(),E=xc(),w=Ut(d,E?.open),M=Ut(p,E?.close);return g.jsx(jn.Dropdown,{...y,onMouseEnter:w,onMouseLeave:M,role:"menu","aria-orientation":"vertical",ref:_n(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:v})});Dm.classes=tl;Dm.displayName="@mantine/core/MenuSubDropdown";const zm=_t((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,...E}=fe("MenuSubItem",null,t),w=el(),M=xc(),R=Zt(),{dir:O}=Ta(),A=S.useRef(null),H=E,z=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,k=d?wl({color:d,theme:R}):null,V=Ut(H.onKeyDown,oe=>{oe.key==="ArrowRight"&&(M?.open(),M?.focusFirstItem()),oe.key==="ArrowLeft"&&M?.parentContext&&(M.parentContext.close(),M.parentContext.focusParentItem())}),J=Ut(H.onClick,()=>{!x&&C&&w.closeDropdownImmediately()}),W=Ut(H.onMouseEnter,M?.open),Q=Ut(H.onMouseLeave,M?.close);return g.jsxs(Jo,{onMouseDown:oe=>oe.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:_n(A,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:W,onMouseLeave:Q,onClick:J,onKeyDown:am({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:V}),__vars:{"--menu-item-color":k?.isThemeColor&&k?.shade===void 0?`var(--mantine-color-${k.color}-6)`:z?.color,"--menu-item-hover":z?.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(Tb,{...w.getStyles("chevron"),size:14})})]})});zm.classes=tl;zm.displayName="@mantine/core/MenuSubItem";function Db({children:t,refProp:o}){if(!Uy(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 el(),g.jsx(jn.Target,{refProp:o,popupType:"menu",children:t})}Db.displayName="@mantine/core/MenuSubTarget";const Z6={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}=fe("MenuSub",Z6,t),c=wa(),[f,{open:d,close:p}]=s9(!1),h=xc(),{openDropdown:v,closeDropdown:y}=Eb({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(G6,{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=Db;ja.Dropdown=Dm;ja.Item=zm;const q6={refProp:"ref"},zb=S.forwardRef((t,o)=>{const{children:a,refProp:r,...s}=fe("MenuTarget",q6,t),c=qr(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=el(),d=c.props,p=Ut(d.onClick,()=>{f.trigger==="click"?f.toggleDropdown():f.trigger==="click-hover"&&(f.setOpenedViaClick(!0),f.opened||f.openDropdown())}),h=Ut(d.onMouseEnter,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=Ut(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})})});zb.displayName="@mantine/core/MenuTarget";const Y6={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Fe(t){const o=fe("Menu",Y6,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:E,classNames:w,styles:M,unstyled:R,variant:O,vars:A,menuItemTabIndex:H,keepMounted:z,withInitialFocusPlaceholder:k,attributes:V,...J}=o,W=Ae({name:"Menu",classes:tl,props:o,classNames:w,styles:M,unstyled:R,attributes:V}),[Q,oe]=Ea({value:c,defaultValue:f,finalValue:!1,onChange:p}),[ie,le]=S.useState(!1),G=()=>{oe(!1),le(!1),Q&&s?.()},re=()=>{oe(!0),!Q&&r?.()},D=()=>{Q?G():re()},{openDropdown:B,closeDropdown:U}=Eb({open:re,close:G,closeDelay:E,openDelay:C}),ee=$=>Y7("[data-menu-item]","[data-menu-dropdown]",$),{resolvedClassNames:ne,resolvedStyles:_}=sc({classNames:w,styles:M,props:o});return g.jsx($6,{value:{getStyles:W,opened:Q,toggleDropdown:D,getItemIndex:ee,openedViaClick:ie,setOpenedViaClick:le,closeOnItemClick:h,closeDropdown:x==="click"?G:U,openDropdown:x==="click"?re:B,closeDropdownImmediately:G,loop:v,trigger:x,unstyled:R,menuItemTabIndex:H,withInitialFocusPlaceholder:k},children:g.jsx(jn,{returnFocus:!0,...J,opened:Q,onChange:D,defaultOpened:f,trapFocus:z?!1:d,closeOnEscape:y,__staticSelector:"Menu",classNames:ne,styles:_,unstyled:R,variant:O,keepMounted:z,children:a})})}Fe.extend=t=>t;Fe.withProps=bw(Fe);Fe.classes=tl;Fe.displayName="@mantine/core/Menu";Fe.Item=Am;Fe.Label=Hm;Fe.Dropdown=Nm;Fe.Target=zb;Fe.Divider=Om;Fe.Sub=ja;const P6={duration:100,transition:"fade"};function m0(t,o){return{...P6,...o,...t}}var Sc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function X6({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}=ec({placement:o,middleware:[Ko({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,E=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",E);const M=vo(h.floating.current);return M.forEach(R=>{R.addEventListener("scroll",v)}),()=>{w.removeEventListener("mousemove",E),M.forEach(R=>{R.removeEventListener("scroll",v)})}}},[p.reference,h.floating.current,v,E,r]),{handleMouseMove:E,x:f,y:d,opened:r,setOpened:s,boundaryRef:c,floating:h.setFloating}}const Q6={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:$r("popover")},I6=(t,{radius:o,color:a})=>({tooltip:{"--tooltip-radius":o===void 0?void 0:Rt(o),"--tooltip-bg":a?xo(a,t):void 0,"--tooltip-color":a?"var(--mantine-color-white)":void 0}}),Lm=He((t,o)=>{const a=fe("TooltipFloating",Q6,t),{children:r,refProp:s,withinPortal:c,style:f,className:d,classNames:p,styles:h,unstyled:v,radius:y,color:x,label:C,offset:E,position:w,multiline:M,zIndex:R,disabled:O,defaultOpened:A,variant:H,vars:z,portalProps:k,attributes:V,...J}=a,W=Zt(),Q=Ae({name:"TooltipFloating",props:a,classes:Sc,className:d,style:f,classNames:p,styles:h,unstyled:v,attributes:V,rootSelector:"tooltip",vars:z,varsResolver:I6}),{handleMouseMove:oe,x:ie,y:le,opened:G,boundaryRef:re,floating:D,setOpened:B}=X6({offset:E,position:w,defaultOpened:A}),U=qr(r);if(!U)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 ee=_n(re,rm(U),o),ne=U.props,_=F=>{ne.onMouseEnter?.(F),oe(F),B(!0)},$=F=>{ne.onMouseLeave?.(F),B(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(Sa,{...k,withinPortal:c,children:g.jsx(xe,{...J,...Q("tooltip",{style:{...tb(f,W),zIndex:R,display:!O&&G?"block":"none",top:(le&&Math.round(le))??"",left:(ie&&Math.round(ie))??""}}),variant:H,ref:D,mod:{multiline:M},children:C})}),S.cloneElement(U,{...ne,[s]:ee,onMouseEnter:_,onMouseLeave:$})]})});Lm.classes=Sc;Lm.displayName="@mantine/core/TooltipFloating";const Lb=S.createContext(!1),K6=Lb.Provider,F6=()=>S.useContext(Lb),J6={openDelay:0,closeDelay:0};function Vm(t){const{openDelay:o,closeDelay:a,children:r}=fe("TooltipGroup",J6,t);return g.jsx(K6,{value:!0,children:g.jsx(y5,{delay:{open:o,close:a},children:r})})}Vm.displayName="@mantine/core/TooltipGroup";Vm.extend=t=>t;function W6(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 eE(t){const o=W6(t.middlewares),a=[pn(t.offset)];return o.shift&&a.push(Ko(typeof o.shift=="boolean"?{padding:8}:{padding:8,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?bo():bo(o.flip)),a.push(I0({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 tE(t){const[o,a]=S.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:o,c=F6(),f=wa(),d=S.useCallback(z=>{a(z),z&&R(f)},[f]),{x:p,y:h,context:v,refs:y,placement:x,middlewareData:{arrow:{x:C,y:E}={}}}=ec({strategy:t.strategy,placement:t.position,open:s,onOpenChange:d,middleware:eE(t),whileElementsMounted:Os}),{delay:w,currentId:M,setCurrentId:R}=b5(v,{id:f}),{getReferenceProps:O,getFloatingProps:A}=ey([F0(v,{enabled:t.events?.hover,delay:c?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),E5(v,{enabled:t.events?.focus,visibleOnly:!0}),M5(v,{role:"tooltip"}),W0(v,{enabled:typeof t.opened>"u"})]);Lr(()=>{t.onPositionChange?.(x)},[x]);const H=s&&M&&M!==f;return{x:p,y:h,arrowX:C,arrowY:E,reference:y.setReference,floating:y.setFloating,getFloatingProps:A,getReferenceProps:O,isGroupPhase:H,opened:s,placement:x}}const p0={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:$r("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},nE=(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:Rt(o),"--tooltip-bg":a?c.background:void 0,"--tooltip-color":a?c.color:void 0}}},Oa=He((t,o)=>{const a=fe("Tooltip",p0,t),{children:r,position:s,refProp:c,label:f,openDelay:d,closeDelay:p,onPositionChange:h,opened:v,defaultOpened:y,withinPortal:x,radius:C,color:E,classNames:w,styles:M,unstyled:R,style:O,className:A,withArrow:H,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,offset:W,transitionProps:Q,multiline:oe,events:ie,zIndex:le,disabled:G,positionDependencies:re,onClick:D,onMouseEnter:B,onMouseLeave:U,inline:ee,variant:ne,keepMounted:_,vars:$,portalProps:F,mod:ae,floatingStrategy:se,middlewares:ue,autoContrast:ve,attributes:Se,target:me,...We}=fe("Tooltip",p0,a),{dir:it}=Ta(),tt=S.useRef(null),Ve=tE({position:cb(it,s),closeDelay:p,openDelay:d,onPositionChange:h,opened:v,defaultOpened:y,events:ie,arrowRef:tt,arrowOffset:k,offset:typeof W=="number"?W+(H?z/2:0):W,positionDependencies:[...re,me??r],inline:ee,strategy:se,middlewares:ue});S.useEffect(()=>{const Et=me instanceof HTMLElement?me:typeof me=="string"?document.querySelector(me):me?.current||null;Et&&Ve.reference(Et)},[me,Ve]);const lt=Ae({name:"Tooltip",props:a,classes:Sc,className:A,style:O,classNames:w,styles:M,unstyled:R,attributes:Se,rootSelector:"tooltip",vars:$,varsResolver:nE}),nn=qr(r);if(!me&&!nn)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(me){const Et=m0(Q,{duration:100,transition:"fade"});return g.jsx(g.Fragment,{children:g.jsx(Sa,{...F,withinPortal:x,children:g.jsx(Io,{...Et,keepMounted:_,mounted:!G&&!!Ve.opened,duration:Ve.isGroupPhase?10:Et.duration,children:Xn=>g.jsxs(xe,{...We,"data-fixed":se==="fixed"||void 0,variant:ne,mod:[{multiline:oe},ae],...Ve.getFloatingProps({ref:Ve.floating,className:lt("tooltip").className,style:{...lt("tooltip").style,...Xn,zIndex:le,top:Ve.y??0,left:Ve.x??0}}),children:[f,g.jsx($s,{ref:tt,arrowX:Ve.arrowX,arrowY:Ve.arrowY,visible:H,position:Ve.placement,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,...lt("arrow")})]})})})})}const Nn=nn.props,Co=_n(Ve.reference,rm(nn),o),An=m0(Q,{duration:100,transition:"fade"});return g.jsxs(g.Fragment,{children:[g.jsx(Sa,{...F,withinPortal:x,children:g.jsx(Io,{...An,keepMounted:_,mounted:!G&&!!Ve.opened,duration:Ve.isGroupPhase?10:An.duration,children:Et=>g.jsxs(xe,{...We,"data-fixed":se==="fixed"||void 0,variant:ne,mod:[{multiline:oe},ae],...Ve.getFloatingProps({ref:Ve.floating,className:lt("tooltip").className,style:{...lt("tooltip").style,...Et,zIndex:le,top:Ve.y??0,left:Ve.x??0}}),children:[f,g.jsx($s,{ref:tt,arrowX:Ve.arrowX,arrowY:Ve.arrowY,visible:H,position:Ve.placement,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,...lt("arrow")})]})})}),S.cloneElement(nn,Ve.getReferenceProps({onClick:D,onMouseEnter:B,onMouseLeave:U,onMouseMove:a.onMouseMove,onPointerDown:a.onPointerDown,onPointerEnter:a.onPointerEnter,...Nn,className:So(A,Nn.className),[c]:Co}))]})});Oa.classes=Sc;Oa.displayName="@mantine/core/Tooltip";Oa.Floating=Lm;Oa.Group=Vm;var Vb={root:"m_18320242","skeleton-fade":"m_299c329c"};const oE={visible:!0,animate:!0},lE=(t,{width:o,height:a,radius:r,circle:s})=>({root:{"--skeleton-height":te(a),"--skeleton-width":te(s?a:o),"--skeleton-radius":s?"1000px":r===void 0?void 0:Rt(r)}}),Zs=He((t,o)=>{const a=fe("Skeleton",oE,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,width:h,height:v,circle:y,visible:x,radius:C,animate:E,mod:w,attributes:M,...R}=a,O=Ae({name:"Skeleton",classes:Vb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p,varsResolver:lE});return g.jsx(xe,{ref:o,...O("root"),mod:[{visible:x,animate:E},w],...R})});Zs.classes=Vb;Zs.displayName="@mantine/core/Skeleton";var kb={root:"m_6d731127"};const aE={gap:"md",align:"stretch",justify:"flex-start"},rE=(t,{gap:o,align:a,justify:r})=>({root:{"--stack-gap":Gr(o),"--stack-align":a,"--stack-justify":r}}),Pr=He((t,o)=>{const a=fe("Stack",aE,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,align:h,justify:v,gap:y,variant:x,attributes:C,...E}=a,w=Ae({name:"Stack",props:a,classes:kb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:rE});return g.jsx(xe,{ref:o,...w("root"),variant:x,...E})});Pr.classes=kb;Pr.displayName="@mantine/core/Stack";const[iE,km]=oc("Tabs component was not found in the tree");var Xr={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 Bm=He((t,o)=>{const a=fe("TabsList",null,t),{children:r,className:s,grow:c,justify:f,classNames:d,styles:p,style:h,mod:v,...y}=a,x=km();return g.jsx(xe,{...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})});Bm.classes=Xr;Bm.displayName="@mantine/core/TabsList";const Um=He((t,o)=>{const a=fe("TabsPanel",null,t),{children:r,className:s,value:c,classNames:f,styles:d,style:p,mod:h,keepMounted:v,...y}=a,x=km(),C=x.value===c,E=x.keepMounted||v||C?r:null;return g.jsx(xe,{...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:E})});Um.classes=Xr;Um.displayName="@mantine/core/TabsPanel";const $m=He((t,o)=>{const a=fe("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:E,vars:w,mod:M,tabIndex:R,...O}=a,A=Zt(),{dir:H}=Ta(),z=km(),k=d===z.value,V=W=>{z.onChange(z.allowTabDeactivation&&d===z.value?null:d),p?.(W)},J={classNames:C,styles:E,props:a};return g.jsxs(Jo,{...z.getStyles("tab",{className:r,style:x,variant:z.variant,...J}),disabled:v,unstyled:z.unstyled,variant:z.variant,mod:[{active:k,disabled:v,orientation:z.orientation,inverted:z.inverted,placement:z.orientation==="vertical"&&z.placement},M],ref:o,role:"tab",id:z.getTabId(d),"aria-selected":k,tabIndex:R!==void 0?R:k||z.value===null?0:-1,"aria-controls":z.getPanelId(d),onClick:V,__vars:{"--tabs-color":y?xo(y,A):void 0},onKeyDown:am({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:z.activateTabWithKeyboard,loop:z.loop,orientation:z.orientation||"horizontal",dir:H,onKeyDown:h}),...O,children:[f&&g.jsx("span",{...z.getStyles("tabSection",J),"data-position":"left",children:f}),s&&g.jsx("span",{...z.getStyles("tabLabel",J),children:s}),c&&g.jsx("span",{...z.getStyles("tabSection",J),"data-position":"right",children:c})]})});$m.classes=Xr;$m.displayName="@mantine/core/TabsTab";const h0="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",sE={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},cE=(t,{radius:o,color:a,autoContrast:r})=>({root:{"--tabs-radius":Rt(o),"--tabs-color":xo(a,t),"--tabs-text-color":J9(r,t)?Qy({color:a,theme:t,autoContrast:r}):void 0}}),po=He((t,o)=>{const a=fe("Tabs",sE,t),{defaultValue:r,value:s,onChange:c,orientation:f,children:d,loop:p,id:h,activateTabWithKeyboard:v,allowTabDeactivation:y,variant:x,color:C,radius:E,inverted:w,placement:M,keepMounted:R,classNames:O,styles:A,unstyled:H,className:z,style:k,vars:V,autoContrast:J,mod:W,attributes:Q,...oe}=a,ie=wa(h),[le,G]=Ea({value:s,defaultValue:r,finalValue:null,onChange:c}),re=Ae({name:"Tabs",props:a,classes:Xr,className:z,style:k,classNames:O,styles:A,unstyled:H,attributes:Q,vars:V,varsResolver:cE});return g.jsx(iE,{value:{placement:M,value:le,orientation:f,id:ie,loop:p,activateTabWithKeyboard:v,getTabId:Kv(`${ie}-tab`,h0),getPanelId:Kv(`${ie}-panel`,h0),onChange:G,allowTabDeactivation:y,variant:x,color:C,radius:E,inverted:w,keepMounted:R,unstyled:H,getStyles:re},children:g.jsx(xe,{ref:o,id:ie,variant:x,mod:[{orientation:f,inverted:f==="horizontal"&&w,placement:f==="vertical"&&M},W],...re("root"),...oe,children:d})})});po.classes=Xr;po.displayName="@mantine/core/Tabs";po.Tab=$m;po.Panel=Um;po.List=Bm;const Cc=He((t,o)=>{const a=fe("TextInput",null,t);return g.jsx(Ra,{component:"input",ref:o,...a,__staticSelector:"TextInput"})});Cc.classes=Ra.classes;Cc.displayName="@mantine/core/TextInput";const Bb=(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},g0=(t,o)=>Bb(t,o),uE={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},fE=t=>Bb(uE,t,!0),Ub=t=>g.jsxs(Pr,{gap:0,className:"bn-tooltip",children:[g.jsx(Yn,{size:"sm",lineClamp:5,children:t.mainTooltip}),t.secondaryTooltip&&g.jsx(Yn,{size:"xs",lineClamp:5,children:t.secondaryTooltip})]}),wd=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;Me(x,!1);const[C,E]=S.useState(!1),w=r?g.jsx(On,{"aria-label":v,className:a,onMouseDown:M=>{_d()&&M.currentTarget.focus()},onClick:M=>{E(!0),h?.(M)},onPointerLeave:()=>E(!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(El,{className:a,"aria-label":v,onMouseDown:M=>{_d()&&M.currentTarget.focus()},onClick:M=>{E(!0),h?.(M)},onPointerLeave:()=>E(!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(Oa,{disabled:C,withinPortal:!1,label:g.jsx(Ub,{mainTooltip:s,secondaryTooltip:c}),children:w}):w}),dE=S.forwardRef((t,o)=>{const{className:a,text:r,icon:s,isSelected:c,mainTooltip:f,secondaryTooltip:d,onClick:p,onMouseEnter:h,...v}=t;Me(v,!1);const[y,x]=S.useState(!1),C=g.jsxs(bc,{className:a,checked:c===!0,wrapperProps:{onMouseEnter:h,onMouseLeave:()=>x(!1),onClick:E=>{x(!0),p?.(E)}},variant:"light",icon:null,ref:o,children:[g.jsx("span",{children:s}),g.jsx("span",{children:r})]});return!f||y?C:g.jsx(Oa,{refProp:"rootRef",withinPortal:!1,label:g.jsx(Ub,{mainTooltip:f,secondaryTooltip:d}),children:C})}),mE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:r})}),pE=S.forwardRef((t,o)=>{const{className:a,children:r,headerText:s,selected:c,onFocus:f,onBlur:d,tabIndex:p,...h}=t;return Me(h,!1),g.jsxs(Yr,{className:gt(a,c?"selected":""),onFocus:f,onBlur:d,tabIndex:p,ref:o,children:[s&&g.jsx(Yn,{className:"bn-header-text",children:s}),r]})}),hE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(Yr.Section,{className:a,ref:o,children:r})}),gE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(Rm,{className:a,label:g.jsx(Yn,{children:r}),ref:o})}),vE=S.forwardRef((t,o)=>{const{authorInfo:a,timeString:r,edited:s,...c}=t,f=Te();return Me(c,!1),a==="loading"?g.jsxs(wt,{children:[g.jsx(Zs,{height:24,width:24}),g.jsx("div",{children:g.jsx(Zs,{height:12,width:100})})]}):g.jsxs(wt,{children:[g.jsx(vc,{src:a.avatarUrl,alt:a.username,radius:"xl",size:"sm",color:"initials"}),g.jsxs(Yn,{fz:"sm",fw:"bold",children:[a.username,g.jsxs(Yn,{fz:"xs",c:"dimmed",span:!0,ml:"xs",children:[r," ",s&&`(${f.comments.edited})`]})]})]})}),yE=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}=i9(),C=D7([o,x]);return Me(v,!1),g.jsxs(wt,{pos:"relative",ref:C,className:a,children:[d&&(r===!0||r===void 0||r==="hover"&&y||p)?g.jsx(wt,{style:{position:"absolute",right:0,top:0,zIndex:10},children:d}):null,g.jsx(vE,{...t}),h]})}),bE=S.forwardRef((t,o)=>{const{className:a,autoFocus:r,onFocus:s,onBlur:c,editor:f,editable:d,...p}=t;Me(p,!1);const h=Rn();return g.jsx(iT,{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(Oy,{formattingToolbar:xE})})}),xE=()=>{const t=_y([]).filter(o=>o.key!=="nestBlockButton"&&o.key!=="unnestBlockButton");return g.jsx(jy,{blockTypeSelectItems:[],children:t})},SE=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:E,rightSection:w,...M}=t;return Me(M),g.jsx(Cc,{size:"xs",className:gt(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:E})}),CE=S.createContext(void 0),wE=t=>{const{children:o,onOpenChange:a,position:r,sub:s,...c}=t;return Me(c),s?g.jsx(Fe.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(Fe,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:a,position:r,returnFocus:!1,children:o})},EE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,checked:c,subTrigger:f,onClick:d,...p}=t;return Me(p,!1),f?g.jsx(Fe.Sub.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Gs,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r}):g.jsx(Fe.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Gs,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r})}),TE=t=>{const{children:o,sub:a,...r}=t;return Me(r),a?g.jsx(Fe.Sub.Target,{children:o}):g.jsx(Fe.Target,{children:o})},ME=S.forwardRef((t,o)=>{const{className:a,children:r,sub:s,...c}=t;Me(c);const f=S.useContext(CE);return s?g.jsx(Fe.Sub.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r}):g.jsx(Fe.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r})}),RE=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Me(r),g.jsx(Fe.Divider,{className:a,ref:o})}),_E=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(Fe.Label,{className:a,ref:o,children:r})}),jE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Me(v,!1),s?g.jsx(El,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(On,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),OE=S.forwardRef((t,o)=>{const{className:a,tabs:r,defaultOpenTab:s,openTab:c,setOpenTab:f,loading:d,...p}=t;return Me(p),g.jsx(wt,{className:a,ref:o,children:g.jsxs(po,{value:c,defaultValue:s,onChange:f,children:[d&&g.jsx(jm,{visible:d}),g.jsx(po.List,{children:r.map(h=>g.jsx(po.Tab,{"data-test":`${h.name.toLowerCase()}-tab`,value:h.name,children:h.name},h.name))}),r.map(h=>g.jsx(po.Panel,{value:h.name,children:h.tabPanel},h.name))]})})}),NE=S.forwardRef((t,o)=>{const{className:a,children:r,onClick:s,label:c,...f}=t;return Me(f),g.jsx(On,{size:"xs","aria-label":c,className:a,ref:o,onClick:s,...f,children:r})}),AE=S.forwardRef((t,o)=>{const{className:a,accept:r,value:s,placeholder:c,onChange:f,...d}=t;return Me(d),g.jsx(B6,{size:"xs",className:a,ref:o,accept:r,value:s,placeholder:c,onChange:f,...d})}),HE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx("div",{className:a,ref:o,children:r})}),DE=S.forwardRef((t,o)=>{const{className:a,value:r,placeholder:s,onKeyDown:c,onChange:f,...d}=t;return Me(d),g.jsx(Cc,{size:"xs","data-test":"embed-input",className:a,ref:o,value:r,placeholder:s,onKeyDown:c,onChange:f})}),zE=t=>{const{open:o,onOpenChange:a,position:r,children:s,...c}=t;return Me(c),g.jsx(jn,{middlewares:{size:{padding:20}},withinPortal:!1,opened:o,onChange:a,position:r,zIndex:1e4,children:s})},LE=t=>{const{children:o,...a}=t;return Me(a),g.jsx(gm,{children:o})},VE=S.forwardRef((t,o)=>{const{className:a,children:r,variant:s,...c}=t;return Me(c),g.jsx(uc,{className:a,ref:o,children:r})}),kE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(wt,{align:"center",gap:0,className:a,ref:o,...s,children:r})}),BE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Me(v,!1),s?g.jsx(El,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(On,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),UE=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,...c}=t;return Me(c),g.jsx(Pr,{gap:0,className:a,ref:o,id:s,role:"listbox",children:r})}),$E=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:g.jsx(wt,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),GE=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Me(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Vy(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(wt,{gap:0,className:a,ref:ac(o,p),id:f,role:"option",onMouseDown:h=>h.preventDefault(),onClick:s,"aria-selected":r||void 0,children:[c.icon&&g.jsx(wt,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),g.jsxs(Pr,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[g.jsx(Yn,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),g.jsx(Yn,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&g.jsx(wt,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:g.jsx(wm,{size:"xs",children:c.badge})})]})}),ZE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:r})}),qE=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Me(r),g.jsx(Wo,{className:a,type:"dots",size:16,ref:o})}),YE=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,columns:c,...f}=t;return Me(f),g.jsx("div",{className:a,style:{gridTemplateColumns:`repeat(${c}, 1fr)`},ref:o,id:s,role:"grid",children:r})}),PE=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Me(c),g.jsx(wt,{className:a,style:{gridColumn:`1 / ${s+1}`},ref:o,children:g.jsx(wt,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),XE=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Me(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Vy(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:ac(o,p),id:f,role:"option",onClick:s,"aria-selected":r||void 0,children:c.icon})}),QE=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Me(c),g.jsx(Wo,{className:a,style:{gridColumn:`1 / ${s+1}`},type:"dots",ref:o})}),IE=S.forwardRef((t,o)=>{const{children:a,className:r,onMouseDown:s,onClick:c,...f}=t;return Me(f,!1),g.jsx(On,{className:r,ref:o,onMouseDown:s,onClick:c,...f,children:a})}),KE=S.forwardRef((t,o)=>{const{className:a,children:r,draggable:s,onDragStart:c,onDragEnd:f,style:d,label:p,...h}=t;return Me(h,!1),g.jsx(On,{className:a,ref:o,"aria-label":p,draggable:s,onDragStart:c,onDragEnd:f,style:d,...h,children:r})}),Ed=S.forwardRef((t,o)=>{const{className:a,children:r,onMouseEnter:s,onMouseLeave:c,variant:f,...d}=t;Me(d);const{ref:p,focused:h}=u9(),v=Yy(h),y=ac(o,p,v);return g.jsx(Sm,{className:a,ref:y,role:"toolbar",onMouseEnter:s,onMouseLeave:c,gap:f==="action-toolbar"?2:void 0,children:r})});var $b={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},v0=Be.createContext&&Be.createContext($b),FE=["attr","size","title"];function JE(t,o){if(t==null)return{};var a=WE(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 WE(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 qs(){return qs=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},qs.apply(this,arguments)}function y0(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 Ys(t){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?y0(Object(a),!0).forEach(function(r){eT(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):y0(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function eT(t,o,a){return o=tT(o),o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function tT(t){var o=nT(t,"string");return typeof o=="symbol"?o:o+""}function nT(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 Gb(t){return t&&t.map((o,a)=>Be.createElement(o.tag,Ys({key:a},o.attr),Gb(o.child)))}function oT(t){return o=>Be.createElement(lT,qs({attr:Ys({},t.attr)},o),Gb(t.child))}function lT(t){var o=a=>{var{attr:r,size:s,title:c}=t,f=JE(t,FE),d=s||a.size||"1em",p;return a.className&&(p=a.className),t.className&&(p=(p?p+" ":"")+t.className),Be.createElement("svg",qs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:Ys(Ys({color:t.color||a.color},a.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&Be.createElement("title",null,c),t.children)};return v0!==void 0?Be.createElement(v0.Consumer,null,a=>o(a)):o($b)}function aT(t){return oT({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 Td=S.forwardRef((t,o)=>{const{className:a,items:r,isDisabled:s,...c}=t;Me(c);const f=r.filter(d=>d.isSelected)[0];return f?g.jsxs(Fe,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:s,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[g.jsx(Fe.Target,{children:g.jsx(On,{onMouseDown:d=>{_d()&&d.currentTarget.focus()},leftSection:f.icon,rightSection:g.jsx(aT,{}),size:"xs",variant:"subtle",disabled:s,children:f.text})}),g.jsx(Fe.Dropdown,{className:a,ref:o,children:r.map(d=>g.jsx(Fe.Item,{onClick:d.onClick,leftSection:d.icon,rightSection:d.isSelected?g.jsx(Gs,{size:10,className:"bn-tick-icon"}):g.jsx("div",{className:"bn-tick-space"}),disabled:d.isDisabled,children:d.text},d.text))})]}):null}),rT={FormattingToolbar:{Root:Ed,Button:wd,Select:Td},FilePanel:{Root:OE,Button:NE,FileInput:AE,TabPanel:HE,TextInput:DE},GridSuggestionMenu:{Root:YE,Item:XE,EmptyItem:PE,Loader:QE},LinkToolbar:{Root:Ed,Button:wd,Select:Td},SideMenu:{Root:kE,Button:BE},SuggestionMenu:{Root:UE,Item:GE,EmptyItem:$E,Label:ZE,Loader:qE},TableHandle:{Root:KE,ExtendButton:IE},Generic:{Badge:{Root:dE,Group:mE},Form:{Root:t=>g.jsx("div",{children:t.children}),TextInput:SE},Menu:{Root:wE,Trigger:TE,Dropdown:ME,Divider:RE,Label:_E,Item:EE,Button:jE},Popover:{Root:zE,Trigger:LE,Content:VE},Toolbar:{Root:Ed,Button:wd,Select:Td}},Comments:{Comment:yE,Editor:bE,Card:pE,CardSection:hE,ExpandSectionsPrompt:gE}},iT=t=>{const{className:o,theme:a,...r}=t,s=Rn(),c=Dy(),f=s?.colorSchemePreference||c,d=S.useCallback(y=>{if(y&&(fE(y),typeof a=="object")){if("light"in a&&"dark"in a){g0(a[f==="dark"?"dark":"light"],y);return}g0(a,y);return}},[f,a]),p=S.useContext(im),h=typeof a=="string"?a:f!=="no-preference"?f:"light",v=g.jsx(fy.Provider,{value:rT,children:g.jsx(y7,{"data-mantine-color-scheme":h,className:gt("bn-mantine",o||""),theme:typeof a=="object"?void 0:a,...r,ref:d})});return p?v:g.jsx(Fy,{withCssVariables:!1,getRootElement:()=>{},children:v})};export{iT as F,w0 as R,pT as U,em as X,qn as a,M0 as b,So as c,jC as d,Be as e,bo as f,Dr as g,I0 as h,V4 as i,g as j,Os as k,mv as l,Br as m,X8 as n,pn as o,P8 as p,cT as q,S as r,Ko as s,z4 as u,be as v,fT as y};
|