auto-tts 0.4.0 → 0.5.1

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.
@@ -0,0 +1,76 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DgSTrTj2.js","assets/react-vendor-C6kboJog.js","assets/SoundSculpture-CRv0x1Wa.js"])))=>i.map(i=>d[i]);
2
+ import{r as Xf,g as nS,a as Ng}from"./react-vendor-C6kboJog.js";function lS(u,a){for(var o=0;o<a.length;o++){const c=a[o];if(typeof c!="string"&&!Array.isArray(c)){for(const r in c)if(r!=="default"&&!(r in u)){const d=Object.getOwnPropertyDescriptor(c,r);d&&Object.defineProperty(u,r,d.get?d:{enumerable:!0,get:()=>c[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const d of r)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function o(r){const d={};return r.integrity&&(d.integrity=r.integrity),r.referrerPolicy&&(d.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?d.credentials="include":r.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(r){if(r.ep)return;r.ep=!0;const d=o(r);fetch(r.href,d)}})();var uf={exports:{}},_u={};var Mv;function aS(){if(Mv)return _u;Mv=1;var u=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function o(c,r,d){var h=null;if(d!==void 0&&(h=""+d),r.key!==void 0&&(h=""+r.key),"key"in r){d={};for(var m in r)m!=="key"&&(d[m]=r[m])}else d=r;return r=d.ref,{$$typeof:u,type:c,key:h,ref:r!==void 0?r:null,props:d}}return _u.Fragment=a,_u.jsx=o,_u.jsxs=o,_u}var Av;function iS(){return Av||(Av=1,uf.exports=aS()),uf.exports}var p=iS(),S=Xf();const uS=nS(S),Oi=lS({__proto__:null,default:uS},[S]);var sf={exports:{}},Eu={},cf={exports:{}},of={};var wv;function sS(){return wv||(wv=1,(function(u){function a(Z,P){var J=Z.length;Z.push(P);e:for(;0<J;){var W=J-1>>>1,K=Z[W];if(0<r(K,P))Z[W]=P,Z[J]=K,J=W;else break e}}function o(Z){return Z.length===0?null:Z[0]}function c(Z){if(Z.length===0)return null;var P=Z[0],J=Z.pop();if(J!==P){Z[0]=J;e:for(var W=0,K=Z.length,ve=K>>>1;W<ve;){var He=2*(W+1)-1,we=Z[He],Me=He+1,Be=Z[Me];if(0>r(we,J))Me<K&&0>r(Be,we)?(Z[W]=Be,Z[Me]=J,W=Me):(Z[W]=we,Z[He]=J,W=He);else if(Me<K&&0>r(Be,J))Z[W]=Be,Z[Me]=J,W=Me;else break e}}return P}function r(Z,P){var J=Z.sortIndex-P.sortIndex;return J!==0?J:Z.id-P.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;u.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();u.unstable_now=function(){return h.now()-m}}var y=[],b=[],x=1,g=null,_=3,O=!1,T=!1,C=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(Z){for(var P=o(b);P!==null;){if(P.callback===null)c(b);else if(P.startTime<=Z)c(b),P.sortIndex=P.expirationTime,a(y,P);else break;P=o(b)}}function Q(Z){if(C=!1,G(Z),!T)if(o(y)!==null)T=!0,k||(k=!0,F());else{var P=o(b);P!==null&&he(Q,P.startTime-Z)}}var k=!1,V=-1,te=5,se=-1;function ue(){return M?!0:!(u.unstable_now()-se<te)}function re(){if(M=!1,k){var Z=u.unstable_now();se=Z;var P=!0;try{e:{T=!1,C&&(C=!1,R(V),V=-1),O=!0;var J=_;try{t:{for(G(Z),g=o(y);g!==null&&!(g.expirationTime>Z&&ue());){var W=g.callback;if(typeof W=="function"){g.callback=null,_=g.priorityLevel;var K=W(g.expirationTime<=Z);if(Z=u.unstable_now(),typeof K=="function"){g.callback=K,G(Z),P=!0;break t}g===o(y)&&c(y),G(Z)}else c(y);g=o(y)}if(g!==null)P=!0;else{var ve=o(b);ve!==null&&he(Q,ve.startTime-Z),P=!1}}break e}finally{g=null,_=J,O=!1}P=void 0}}finally{P?F():k=!1}}}var F;if(typeof U=="function")F=function(){U(re)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,fe=oe.port2;oe.port1.onmessage=re,F=function(){fe.postMessage(null)}}else F=function(){D(re,0)};function he(Z,P){V=D(function(){Z(u.unstable_now())},P)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(Z){Z.callback=null},u.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<Z?Math.floor(1e3/Z):5},u.unstable_getCurrentPriorityLevel=function(){return _},u.unstable_next=function(Z){switch(_){case 1:case 2:case 3:var P=3;break;default:P=_}var J=_;_=P;try{return Z()}finally{_=J}},u.unstable_requestPaint=function(){M=!0},u.unstable_runWithPriority=function(Z,P){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var J=_;_=Z;try{return P()}finally{_=J}},u.unstable_scheduleCallback=function(Z,P,J){var W=u.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?W+J:W):J=W,Z){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=J+K,Z={id:x++,callback:P,priorityLevel:Z,startTime:J,expirationTime:K,sortIndex:-1},J>W?(Z.sortIndex=J,a(b,Z),o(y)===null&&Z===o(b)&&(C?(R(V),V=-1):C=!0,he(Q,J-W))):(Z.sortIndex=K,a(y,Z),T||O||(T=!0,k||(k=!0,F()))),Z},u.unstable_shouldYield=ue,u.unstable_wrapCallback=function(Z){var P=_;return function(){var J=_;_=P;try{return Z.apply(this,arguments)}finally{_=J}}}})(of)),of}var zv;function cS(){return zv||(zv=1,cf.exports=sS()),cf.exports}var jv;function oS(){if(jv)return Eu;jv=1;var u=cS(),a=Xf(),o=Ng();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(c(188))}function b(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return y(i),e;if(s===l)return y(i),t;s=s.sibling}throw Error(c(188))}if(n.return!==l.return)n=i,l=s;else{for(var f=!1,v=i.child;v;){if(v===n){f=!0,n=i,l=s;break}if(v===l){f=!0,l=i,n=s;break}v=v.sibling}if(!f){for(v=s.child;v;){if(v===n){f=!0,n=s,l=i;break}if(v===l){f=!0,l=s,n=i;break}v=v.sibling}if(!f)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}function g(e,t,n,l,i,s){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,l,i,s)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,n,l,i,s))return!0;e=e.sibling}return!1}function _(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function O(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function T(e){var t=[null,null],n=_(e);return n===null||C(t,e,n.child,{foundSelf:!1}),t}function C(e,t,n,l){for(;n!==null;){if(n===t)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&C(e,t,n.child,l))return!0;n=n.sibling}return!1}function M(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(c(559))}}var D=null,R=null;function U(e,t,n){return e===n?!0:e===t?(D=e,!0):!1}function G(e,t,n){return e===n?(R=e,!1):e===t?(R!==null&&(D=e),!0):!1}function Q(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function k(e,t,n){for(var l=0,i=e;i;i=n(i))l++;i=0;for(var s=t;s;s=n(s))i++;for(;0<l-i;)e=n(e),l--;for(;0<i-l;)t=n(t),i--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var V=Object.assign,te=Symbol.for("react.element"),se=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),he=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),He=Symbol.for("react.legacy_hidden"),we=Symbol.for("react.memo_cache_sentinel"),Me=Symbol.for("react.view_transition"),Be=Symbol.for("react.recoverable"),$e=Symbol.iterator;function Qe(e){return e===null||typeof e!="object"?null:(e=$e&&e[$e]||e["@@iterator"],typeof e=="function"?e:null)}var st=Symbol.for("react.client.reference");function Te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===st?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case re:return"Fragment";case oe:return"Profiler";case F:return"StrictMode";case P:return"Suspense";case J:return"SuspenseList";case ve:return"Activity";case Me:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ue:return"Portal";case he:return e.displayName||"Context";case fe:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:Te(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Te(e(t))}catch{}}return null}var Ze=Array.isArray,ne=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},Re=[],Ke=-1;function Je(e){return{current:e}}function ze(e){0>Ke||(e.current=Re[Ke],Re[Ke]=null,Ke--)}function q(e,t){Ke++,Re[Ke]=e.current,e.current=t}var H=Je(null),I=Je(null),ae=Je(null),pe=Je(null);function Ie(e,t){switch(q(ae,t),q(I,e),q(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hp(t),e=Bp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ze(H),q(H,e)}function Ht(){ze(H),ze(I),ze(ae)}function Ft(e){var t=e.memoizedState;t!==null&&(ri._currentValue=t.memoizedState,q(pe,e)),t=H.current;var n=Bp(t,e.type);t!==n&&(q(I,e),q(H,n))}function mt(e){I.current===e&&(ze(H),ze(I)),pe.current===e&&(ze(pe),ri._currentValue=$)}var Mt,Rn;function _t(e){if(Mt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mt=t&&t[1]||"",Rn=-1<n.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Mt+e+Rn}var pn=!1;function ul(e,t){if(!e||pn)return"";pn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(ee){var A=ee}Reflect.construct(e,[],X)}else{try{X.call()}catch(ee){A=ee}X=!1;try{var L=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),X=!0,new e}finally{X&&(L!==void 0?Object.defineProperty(e.prototype,"props",L):delete e.prototype.props)}}}else{try{throw Error()}catch(ee){A=ee}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(ee){if(ee&&A&&typeof ee.stack=="string")return[ee.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),f=s[0],v=s[1];if(f&&v){var E=f.split(`
5
+ `),z=v.split(`
6
+ `);for(i=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(l===E.length||i===z.length)for(l=E.length-1,i=z.length-1;1<=l&&0<=i&&E[l]!==z[i];)i--;for(;1<=l&&0<=i;l--,i--)if(E[l]!==z[i]){if(l!==1||i!==1)do if(l--,i--,0>i||E[l]!==z[i]){var B=`
7
+ `+E[l].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=l&&0<=i);break}}}finally{pn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?_t(n):""}function sl(e,t){switch(e.tag){case 26:case 27:case 5:return _t(e.type);case 16:return _t("Lazy");case 13:return e.child!==t&&t!==null?_t("Suspense Fallback"):_t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return ul(e.type,!1);case 11:return ul(e.type.render,!1);case 1:return ul(e.type,!0);case 31:return _t("Activity");case 30:return _t("ViewTransition");default:return""}}function wu(e){try{var t="",n=null;do t+=sl(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
8
+ Error generating stack: `+l.message+`
9
+ `+l.stack}}var Ql=Object.prototype.hasOwnProperty,vn=u.unstable_scheduleCallback,gn=u.unstable_cancelCallback,xa=u.unstable_shouldYield,_a=u.unstable_requestPaint,tt=u.unstable_now,cl=u.unstable_getCurrentPriorityLevel,Dn=u.unstable_ImmediatePriority,Un=u.unstable_UserBlockingPriority,Ln=u.unstable_NormalPriority,_e=u.unstable_LowPriority,qe=u.unstable_IdlePriority,At=u.log,Ea=u.unstable_setDisableYieldValue,Zl=null,Bt=null;function ol(e){if(typeof At=="function"&&Ea(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Zl,e)}catch{}}var qt=Math.clz32?Math.clz32:py,hy=Math.log,my=Math.LN2;function py(e){return e>>>=0,e===0?32:31-(hy(e)/my|0)|0}var zu=256,ju=262144,Ru=4194304;function Kl(e){var t=e&42;if(t!==0)return t;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&-e;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 Du(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~s,l!==0?i=Kl(l):(f&=v,f!==0?i=Kl(f):n||(n=v&~e,n!==0&&(i=Kl(n))))):(v=l&~s,v!==0?i=Kl(v):f!==0?i=Kl(f):n||(n=l&~e,n!==0&&(i=Kl(n)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:i}function wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function od(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-qt(n),i=1<<l;t|=e[l],n&=~i}return t}function vy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 rd(){var e=Ru;return Ru<<=1,(Ru&62914560)===0&&(Ru=4194304),e}function zc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gy(e,t,n,l,i,s){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,E=e.expirationTimes,z=e.hiddenUpdates;for(n=f&~n;0<n;){var B=31-qt(n),X=1<<B;v[B]=0,E[B]=-1;var A=z[B];if(A!==null)for(z[B]=null,B=0;B<A.length;B++){var L=A[B];L!==null&&(L.lane&=-536870913)}n&=~X}l!==0&&fd(e,l,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function fd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-qt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function dd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-qt(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function hd(e,t){var n=t&-t;return n=(n&42)!==0?1:jc(n),(n&(e.suspendedLanes|t))!==0?0:n}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 Rc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function md(){var e=de.p;return e!==0?e:(e=window.event,e===void 0?32:xv(e.type))}function pd(e,t){var n=de.p;try{return de.p=e,t()}finally{de.p=n}}var Hn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Hn,wt="__reactProps$"+Hn,Oa="__reactContainer$"+Hn,vd="__reactEvents$"+Hn,yy="__reactListeners$"+Hn,by="__reactHandles$"+Hn,gd="__reactResources$"+Hn,ji="__reactMarker$"+Hn,Uu="__reactLoad$"+Hn;function Lu(e){delete e[pt],delete e[wt],delete e[yy],delete e[by]}function kl(e){var t;if(t=e[pt])return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tv(e);e!==null;){if(n=e[pt])return n;e=tv(e)}return t}e=n,n=e.parentNode}return null}function Ta(e){if(e=e[pt]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ri(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Ca(e){var t=e[gd];return t||(t=e[gd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[ji]=!0}function yd(e){e[Uu]=void 0}var bd=new Set,Sd={};function Jl(e,t){Na(e,t),Na(e+"Capture",t)}function Na(e,t){for(Sd[e]=t,e=0;e<t.length;e++)bd.add(t[e])}var Sy=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]*$"),xd={},_d={};function xy(e){return Ql.call(_d,e)?!0:Ql.call(xd,e)?!1:Sy.test(e)?_d[e]=!0:(xd[e]=!0,!1)}var Ne=!1;function Ed(){var e=Ne;return Ne=!1,e}function Hu(e,t,n){if(xy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Bu(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function Bn(e,t,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.setAttributeNS(t,n,l)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Od(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _y(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){n=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dc(e){if(!e._valueTracker){var t=Od(e)?"checked":"value";e._valueTracker=_y(e,t,""+e[t])}}function Td(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Od(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}var Ey=/[\n"\\]/g;function $t(e){return e.replace(Ey,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uc(e,t,n,l,i,s,f,v){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?f==="number"&&e.value==t?Lc(e,Vt(e.value)):Lc(e,Vt(t)):n!=null?Lc(e,Vt(n)):l!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Vt(v):e.removeAttribute("name")}function Cd(e,t,n,l,i,s,f,v){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Dc(e);return}n=n!=null?""+Vt(n):"",t=t!=null?""+Vt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Dc(e)}function Lc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Ma(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Vt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Nd(e,t,n){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Vt(n):""}function Md(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(c(92));if(Ze(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Vt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Dc(e)}function Aa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oy=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 Ad(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Oy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function wd(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",Ne=!0);for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&(Ad(e,i,l),Ne=!0)}else for(var s in t)t.hasOwnProperty(s)&&Ad(e,s,t[s])}function Hc(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 Ty=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"],["maskType","mask-type"],["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"]]),Cy=/^[\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 qu(e){return Cy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var Bc=null;function qc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wa=null,za=null;function zd(e){var t=Ta(e);if(t&&(e=t.stateNode)){var n=e[wt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+$t(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[wt]||null;if(!i)throw Error(c(90));Uc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Td(l)}break e;case"textarea":Nd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ma(e,!!n.multiple,t,!1)}}}var Vc=!1;function jd(e,t,n){if(Vc)return e(t,n);Vc=!0;try{var l=e(t);return l}finally{if(Vc=!1,(wa!==null||za!==null)&&(qs(),wa&&(t=wa,e=za,za=wa=null,zd(t),e)))for(t=0;t<e.length;t++)zd(e[t])}}function Di(e,t){var n=e.stateNode;if(n===null)return null;var l=n[wt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gc=!1;if(qn)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){Gc=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{Gc=!1}var rl=null,Yc=null,Vu=null;function Rd(){if(Vu)return Vu;var e,t=Yc,n=t.length,l,i="value"in rl?rl.value:rl.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var f=n-e;for(l=1;l<=f&&t[n-l]===i[s-l];l++);return Vu=i.slice(e,1<l?1-l:void 0)}function Gu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Yu(){return!0}function Dd(){return!1}function Et(e){function t(n,l,i,s,f){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(s):s[v]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Yu:Dd,this.isPropagationStopped=Dd,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yu)},persist:function(){},isPersistent:Yu}),t}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xu=Et(fl),Li=V({},fl,{view:0,detail:0}),Ny=Et(Li),Xc,Qc,Hi,Qu=V({},Li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kc,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!==Hi&&(Hi&&e.type==="mousemove"?(Xc=e.screenX-Hi.screenX,Qc=e.screenY-Hi.screenY):Qc=Xc=0,Hi=e),Xc)},movementY:function(e){return"movementY"in e?e.movementY:Qc}}),Ud=Et(Qu),My=V({},Qu,{dataTransfer:0}),Ay=Et(My),wy=V({},Li,{relatedTarget:0}),Zc=Et(wy),zy=V({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),jy=Et(zy),Ry=V({},fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dy=Et(Ry),Uy=V({},fl,{data:0}),Ld=Et(Uy),Ly={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=By[e])?!!t[e]:!1}function Kc(){return qy}var Vy=V({},Li,{key:function(e){if(e.key){var t=Ly[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kc,charCode:function(e){return e.type==="keypress"?Gu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gy=Et(Vy),Yy=V({},Qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hd=Et(Yy),Xy=V({},fl,{submitter:0}),Qy=Et(Xy),Zy=V({},Li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kc}),Ky=Et(Zy),ky=V({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jy=Et(ky),Fy=V({},Qu,{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}),$y=Et(Fy),Wy=V({},fl,{newState:0,oldState:0,source:0}),Py=Et(Wy),Iy=[9,13,27,32],kc=qn&&"CompositionEvent"in window,Bi=null;qn&&"documentMode"in document&&(Bi=document.documentMode);var eb=qn&&"TextEvent"in window&&!Bi,Bd=qn&&(!kc||Bi&&8<Bi&&11>=Bi),qd=" ",Vd=!1;function Gd(e,t){switch(e){case"keyup":return Iy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ja=!1;function tb(e,t){switch(e){case"compositionend":return Yd(t);case"keypress":return t.which!==32?null:(Vd=!0,qd);case"textInput":return e=t.data,e===qd&&Vd?null:e;default:return null}}function nb(e,t){if(ja)return e==="compositionend"||!kc&&Gd(e,t)?(e=Rd(),Vu=Yc=rl=null,ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bd&&t.locale!=="ko"?null:t.data;default:return null}}var lb={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 Xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lb[e.type]:t==="textarea"}function Qd(e,t,n,l){wa?za?za.push(l):za=[l]:wa=l,t=Zs(t,"onChange"),0<t.length&&(n=new Xu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var qi=null,Vi=null;function ab(e){zp(e,0)}function Zu(e){var t=Ri(e);if(Td(t))return e}function Zd(e,t){if(e==="change")return t}var Kd=!1;if(qn){var Jc;if(qn){var Fc="oninput"in document;if(!Fc){var kd=document.createElement("div");kd.setAttribute("oninput","return;"),Fc=typeof kd.oninput=="function"}Jc=Fc}else Jc=!1;Kd=Jc&&(!document.documentMode||9<document.documentMode)}function Jd(){qi&&(qi.detachEvent("onpropertychange",Fd),Vi=qi=null)}function Fd(e){if(e.propertyName==="value"&&Zu(Vi)){var t=[];Qd(t,Vi,e,qc(e)),jd(ab,t)}}function ib(e,t,n){e==="focusin"?(Jd(),qi=t,Vi=n,qi.attachEvent("onpropertychange",Fd)):e==="focusout"&&Jd()}function ub(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zu(Vi)}function sb(e,t){if(e==="click")return Zu(t)}function cb(e,t){if(e==="input"||e==="change")return Zu(t)}function ob(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:ob;function Gi(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!Ql.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function $c(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}}function $d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wd(e,t){var n=$d(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$d(n)}}function Pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$c(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$c(e.document)}return t}function Wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var rb=qn&&"documentMode"in document&&11>=document.documentMode,Ra=null,Pc=null,Yi=null,Ic=!1;function eh(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ic||Ra==null||Ra!==$c(l)||(l=Ra,"selectionStart"in l&&Wc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Yi&&Gi(Yi,l)||(Yi=l,l=Zs(Pc,"onSelect"),0<l.length&&(t=new Xu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ra)))}function Fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Da={animationend:Fl("Animation","AnimationEnd"),animationiteration:Fl("Animation","AnimationIteration"),animationstart:Fl("Animation","AnimationStart"),transitionrun:Fl("Transition","TransitionRun"),transitionstart:Fl("Transition","TransitionStart"),transitioncancel:Fl("Transition","TransitionCancel"),transitionend:Fl("Transition","TransitionEnd")},eo={},th={};qn&&(th=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function $l(e){if(eo[e])return eo[e];if(!Da[e])return e;var t=Da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in th)return eo[e]=t[n];return e}var nh=$l("animationend"),lh=$l("animationiteration"),ah=$l("animationstart"),fb=$l("transitionrun"),db=$l("transitionstart"),hb=$l("transitioncancel"),ih=$l("transitionend"),uh=new Map,to="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");to.push("scrollEnd");function cn(e,t){uh.set(e,t),Jl(t,[e])}var mb=0;function Vn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=dn.identifierPrefix;var n=mb++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function sh(e){if(e==null||typeof e=="string")return e;var t=null,n=ei;if(n!==null)for(var l=0;l<n.length;l++){var i=e[n[l]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function Gn(e,t){return e=sh(e),t=sh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Ku=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=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(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Wt=[],Ua=0,no=0;function ku(){for(var e=Ua,t=no=Ua=0;t<e;){var n=Wt[t];Wt[t++]=null;var l=Wt[t];Wt[t++]=null;var i=Wt[t];Wt[t++]=null;var s=Wt[t];if(Wt[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}s!==0&&ch(n,i,s)}}function Ju(e,t,n,l){Wt[Ua++]=e,Wt[Ua++]=t,Wt[Ua++]=n,Wt[Ua++]=l,no|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function lo(e,t,n,l){return Ju(e,t,n,l),Fu(e)}function Wl(e,t){return Ju(e,null,null,t),Fu(e)}function ch(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-qt(n),e=s.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),s):null}function Fu(e){if(50<ru)throw ru=0,Bs=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var La={};function pb(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,l){return new pb(e,t,n,l)}function ao(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yn(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function oh(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $u(e,t,n,l,i,s){var f=0;if(l=e,typeof l=="function")ao(l)&&(f=1);else if(typeof l=="string")f=X1(e,n,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case ve:return e=zt(31,n,t,i),e.elementType=ve,e.lanes=s,e;case re:return Pl(n.children,i,s,t);case F:f=8,i|=24;break;case oe:return e=zt(12,n,t,i|2),e.elementType=oe,e.lanes=s,e;case P:return e=zt(13,n,t,i),e.elementType=P,e.lanes=s,e;case J:return e=zt(19,n,t,i),e.elementType=J,e.lanes=s,e;case He:case Me:return e=i|32,e=zt(30,n,t,e),e.elementType=Me,e.lanes=s,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case he:f=10;break e;case fe:f=9;break e;case Z:f=11;break e;case W:f=14;break e;case K:f=16,l=null;break e}f=29,n=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=zt(f,n,t,i),t.elementType=e,t.type=l,t.lanes=s,t}function Pl(e,t,n,l){return e=zt(7,e,l,t),e.lanes=n,e}function io(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function rh(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function uo(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var fh=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var n=fh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:wu(t)},fh.set(e,t),t)}return{value:e,source:t,stack:wu(t)}}var Ha=[],Ba=0,Wu=null,Xi=0,It=[],en=0,dl=null,bn=1,Sn="";function Xn(e,t){Ha[Ba++]=Xi,Ha[Ba++]=Wu,Wu=e,Xi=t}function dh(e,t,n){It[en++]=bn,It[en++]=Sn,It[en++]=dl,dl=e;var l=bn;e=Sn;var i=32-qt(l)-1;l&=~(1<<i),n+=1;var s=32-qt(t)+i;if(30<s){var f=i-i%5;s=(l&(1<<f)-1).toString(32),l>>=f,i-=f,bn=1<<32-qt(t)+i|n<<i|l,Sn=s+e}else bn=1<<s|n<<i|l,Sn=e}function Pu(e){e.return!==null&&(Xn(e,1),dh(e,1,0))}function so(e){for(;e===Wu;)Wu=Ha[--Ba],Ha[Ba]=null,Xi=Ha[--Ba],Ha[Ba]=null;for(;e===dl;)dl=It[--en],It[en]=null,Sn=It[--en],It[en]=null,bn=It[--en],It[en]=null}function hh(e,t){It[en++]=bn,It[en++]=Sn,It[en++]=dl,bn=t.id,Sn=t.overflow,dl=e}var rt=null,Ye=null,be=!1,hl=null,tn=!1,co=Error(c(519));function ml(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(Pt(t,e)),co}function mh(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[pt]=e,t[wt]=l,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<du.length;n++)xe(du[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Cd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Md(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Up(t.textContent,n)?(l.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),l.onScroll!=null&&xe("scroll",t),l.onScrollEnd!=null&&xe("scrollend",t),l.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||ml(e,!0)}function Iu(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:rt=rt.return}}function qa(e){if(e!==rt)return!1;if(!be)return Iu(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||qr(e.type,e.memoizedProps)),n=!n),n&&Ye&&ml(e),Iu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ye=ev(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ye=ev(e)}else t===27?(t=Ye,wl(e.type)?(e=Jr,Jr=null,Ye=e):Ye=t):Ye=rt?ln(e.stateNode.nextSibling):null;return!0}function Il(){Ye=rt=null,be=!1}function oo(){var e=hl;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),hl=null),e}function Qi(e){hl===null?hl=[e]:hl.push(e)}var ro=Je(null),ea=null,Qn=null;function pl(e,t,n){q(ro,t._currentValue),t._currentValue=n}function Zn(e){e._currentValue=ro.current,ze(ro)}function es(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function fo(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var f=i.child;s=s.firstContext;e:for(;s!==null;){var v=s;s=i;for(var E=0;E<t.length;E++)if(v.context===t[E]){s.lanes|=n,v=s.alternate,v!==null&&(v.lanes|=n),es(s.return,n,e),l||(f=null);break e}s=v.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(c(341));f.lanes|=n,s=f.alternate,s!==null&&(s.lanes|=n),es(f,n,e),f=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),es(i.return,n,e),f=i.child,f=f!==null?f.sibling:null):f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function ta(e,t,n,l){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var v=i.type;Gt(i.pendingProps.value,f.value)||(e!==null?e.push(v):e=[v])}}else if(i===pe.current){if(f=i.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ri):e=[ri])}i=i.return}return e!==null&&fo(t,e,n,l),t.flags|=262144,e!==null}function ts(e){for(e=e.firstContext;e!==null;){if(!Gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){ea=e,Qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return ph(ea,e)}function ns(e,t){return ea===null&&na(e),ph(e,t)}function ph(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qn===null){if(e===null)throw Error(c(308));Qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qn=Qn.next=t;return n}var vb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},gb=u.unstable_scheduleCallback,yb=u.unstable_NormalPriority,nt={$$typeof:he,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ho(){return{controller:new vb,data:new Map,refCount:0}}function Zi(e){e.refCount--,e.refCount===0&&gb(yb,function(){e.controller.abort()})}function vh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];n.indexOf(l)===-1&&n.push(l)}}}var Ki=null;function bb(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var ki=null,mo=0,la=0,Va=null;function Sb(e,t){if(ki===null){var n=ki=[];mo=0,la=wr(),Va={status:"pending",value:void 0,then:function(l){n.push(l)}}}return mo++,t.then(gh,gh),t}function gh(){if(--mo===0&&(Ki=null,ki!==null)){Va!==null&&(Va.status="fulfilled");var e=ki;ki=null,la=0,Va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function xb(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var yh=ne.S;ne.S=function(e,t){if(rp=tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Sb(e,t),Ki!==null)for(var n=ai;n!==null;)vh(n,Ki),n=n.next;if(n=e.types,n!==null){for(var l=ai;l!==null;)vh(l,n),l=l.next;if(la!==0){l=Ki,l===null&&(l=Ki=[]);for(var i=0;i<n.length;i++){var s=n[i];l.indexOf(s)===-1&&l.push(s)}}}yh!==null&&yh(e,t)};var aa=Je(null);function po(){var e=aa.current;return e!==null?e:Ge.pooledCache}function ls(e,t){t===null?q(aa,aa.current):q(aa,t.pool)}function bh(){var e=po();return e===null?null:{parent:nt._currentValue,pool:e}}var Ga=Error(c(460)),vo=Error(c(474)),as=Error(c(542)),is={then:function(){}};function Sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Eh(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Eh(e),e}throw ua=t,Ga}}function ia(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ua=n,Ga):n}}var ua=null;function _h(){if(ua===null)throw Error(c(459));var e=ua;return ua=null,e}function Eh(e){if(e===Ga||e===as)throw Error(c(483))}var Ya=null,Ji=0;function us(e){var t=Ji;return Ji+=1,Ya===null&&(Ya=[]),xh(Ya,e,t)}function vl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ss(e,t){throw t.$$typeof===te?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Oh(e){function t(w,N){if(e){var j=w.deletions;j===null?(w.deletions=[N],w.flags|=16):j.push(N)}}function n(w,N){if(!e)return null;for(;N!==null;)t(w,N),N=N.sibling;return null}function l(w){for(var N=new Map;w!==null;)w.key===null?N.set(w.index,w):N.set(w.key,w),w=w.sibling;return N}function i(w,N){return w=Yn(w,N),w.index=0,w.sibling=null,w}function s(w,N,j){return w.index=j,e?(j=w.alternate,j!==null?(j=j.index,j<N?(w.flags|=2,N):j):(w.flags|=134217730,N)):(w.flags|=1048576,N)}function f(w){return e&&w.alternate===null&&(w.flags|=134217730),w}function v(w,N,j,Y){return N===null||N.tag!==6?(N=io(j,w.mode,Y),N.return=w,N):(N=i(N,j),N.return=w,N)}function E(w,N,j,Y){var le=j.type;return le===re?(w=B(w,N,j.props.children,Y,j.key),vl(w,j),w):N!==null&&(N.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===K&&ia(le)===N.type)?(N=i(N,j.props),vl(N,j),N.return=w,N):(N=$u(j.type,j.key,j.props,null,w.mode,Y),vl(N,j),N.return=w,N)}function z(w,N,j,Y){return N===null||N.tag!==4||N.stateNode.containerInfo!==j.containerInfo||N.stateNode.implementation!==j.implementation?(N=uo(j,w.mode,Y),N.return=w,N):(N=i(N,j.children||[]),N.return=w,N)}function B(w,N,j,Y,le){return N===null||N.tag!==7?(N=Pl(j,w.mode,Y,le),N.return=w,N):(N=i(N,j),N.return=w,N)}function X(w,N,j){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=io(""+N,w.mode,j),N.return=w,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case se:return j=$u(N.type,N.key,N.props,null,w.mode,j),vl(j,N),j.return=w,j;case ue:return N=uo(N,w.mode,j),N.return=w,N;case K:return N=ia(N),X(w,N,j)}if(Ze(N)||Qe(N))return N=Pl(N,w.mode,j,null),N.return=w,N;if(typeof N.then=="function")return X(w,us(N),j);if(N.$$typeof===he)return X(w,ns(w,N),j);ss(w,N)}return null}function A(w,N,j,Y){var le=N!==null?N.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return le!==null?null:v(w,N,""+j,Y);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case se:return j.key===le?E(w,N,j,Y):null;case ue:return j.key===le?z(w,N,j,Y):null;case K:return j=ia(j),A(w,N,j,Y)}if(Ze(j)||Qe(j))return le!==null?null:B(w,N,j,Y,null);if(typeof j.then=="function")return A(w,N,us(j),Y);if(j.$$typeof===he)return A(w,N,ns(w,j),Y);ss(w,j)}return null}function L(w,N,j,Y,le){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return w=w.get(j)||null,v(N,w,""+Y,le);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case se:return w=w.get(Y.key===null?j:Y.key)||null,E(N,w,Y,le);case ue:return w=w.get(Y.key===null?j:Y.key)||null,z(N,w,Y,le);case K:return Y=ia(Y),L(w,N,j,Y,le)}if(Ze(Y)||Qe(Y))return w=w.get(j)||null,B(N,w,Y,le,null);if(typeof Y.then=="function")return L(w,N,j,us(Y),le);if(Y.$$typeof===he)return L(w,N,j,ns(N,Y),le);ss(N,Y)}return null}function ee(w,N,j,Y){for(var le=null,Oe=null,ce=N,me=N=0,it=null;ce!==null&&me<j.length;me++){ce.index>me?(it=ce,ce=null):it=ce.sibling;var Ce=A(w,ce,j[me],Y);if(Ce===null){ce===null&&(ce=it);break}e&&ce&&Ce.alternate===null&&t(w,ce),N=s(Ce,N,me),Oe===null?le=Ce:Oe.sibling=Ce,Oe=Ce,ce=it}if(me===j.length)return n(w,ce),be&&Xn(w,me),le;if(ce===null){for(;me<j.length;me++)ce=X(w,j[me],Y),ce!==null&&(N=s(ce,N,me),Oe===null?le=ce:Oe.sibling=ce,Oe=ce);return be&&Xn(w,me),le}for(ce=l(ce);me<j.length;me++)it=L(ce,w,me,j[me],Y),it!==null&&(e&&(Ce=it.alternate,Ce!==null&&ce.delete(Ce.key===null?me:Ce.key)),N=s(it,N,me),Oe===null?le=it:Oe.sibling=it,Oe=it);return e&&ce.forEach(function(Ul){return t(w,Ul)}),be&&Xn(w,me),le}function ie(w,N,j,Y){if(j==null)throw Error(c(151));for(var le=null,Oe=null,ce=N,me=N=0,it=null,Ce=j.next();ce!==null&&!Ce.done;me++,Ce=j.next()){ce.index>me?(it=ce,ce=null):it=ce.sibling;var Ul=A(w,ce,Ce.value,Y);if(Ul===null){ce===null&&(ce=it);break}e&&ce&&Ul.alternate===null&&t(w,ce),N=s(Ul,N,me),Oe===null?le=Ul:Oe.sibling=Ul,Oe=Ul,ce=it}if(Ce.done)return n(w,ce),be&&Xn(w,me),le;if(ce===null){for(;!Ce.done;me++,Ce=j.next())Ce=X(w,Ce.value,Y),Ce!==null&&(N=s(Ce,N,me),Oe===null?le=Ce:Oe.sibling=Ce,Oe=Ce);return be&&Xn(w,me),le}for(ce=l(ce);!Ce.done;me++,Ce=j.next())Ce=L(ce,w,me,Ce.value,Y),Ce!==null&&(e&&(it=Ce.alternate,it!==null&&ce.delete(it.key===null?me:it.key)),N=s(Ce,N,me),Oe===null?le=Ce:Oe.sibling=Ce,Oe=Ce);return e&&ce.forEach(function(tS){return t(w,tS)}),be&&Xn(w,me),le}function ye(w,N,j,Y){if(typeof j=="object"&&j!==null&&j.type===re&&j.key===null&&j.props.ref===void 0&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case se:e:{for(var le=j.key;N!==null;){if(N.key===le){if(le=j.type,le===re){if(N.tag===7){n(w,N.sibling),Y=i(N,j.props.children),vl(Y,j),Y.return=w,w=Y;break e}}else if(N.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===K&&ia(le)===N.type){n(w,N.sibling),Y=i(N,j.props),vl(Y,j),Y.return=w,w=Y;break e}n(w,N);break}else t(w,N);N=N.sibling}j.type===re?(Y=Pl(j.props.children,w.mode,Y,j.key),vl(Y,j),Y.return=w,w=Y):(Y=$u(j.type,j.key,j.props,null,w.mode,Y),vl(Y,j),Y.return=w,w=Y)}return f(w);case ue:e:{for(le=j.key;N!==null;){if(N.key===le)if(N.tag===4&&N.stateNode.containerInfo===j.containerInfo&&N.stateNode.implementation===j.implementation){n(w,N.sibling),Y=i(N,j.children||[]),Y.return=w,w=Y;break e}else{n(w,N);break}else t(w,N);N=N.sibling}Y=uo(j,w.mode,Y),Y.return=w,w=Y}return f(w);case K:return j=ia(j),ye(w,N,j,Y)}if(Ze(j))return ee(w,N,j,Y);if(Qe(j)){if(le=Qe(j),typeof le!="function")throw Error(c(150));return j=le.call(j),ie(w,N,j,Y)}if(typeof j.then=="function")return ye(w,N,us(j),Y);if(j.$$typeof===he)return ye(w,N,ns(w,j),Y);ss(w,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,N!==null&&N.tag===6?(n(w,N.sibling),Y=i(N,j),Y.return=w,w=Y):(n(w,N),Y=io(j,w.mode,Y),Y.return=w,w=Y),f(w)):n(w,N)}return function(w,N,j,Y){try{Ji=0;var le=ye(w,N,j,Y);return Ya=null,le}catch(ce){if(ce===Ga||ce===as)throw ce;var Oe=zt(29,ce,null,w.mode);return Oe.lanes=Y,Oe.return=w,Oe}}}var sa=Oh(!0),Th=Oh(!1),gl=!1;function go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ae&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=Fu(e),ch(e,null,n),t}return Ju(e,l,t,n),Fu(e)}function Fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,dd(e,n)}}function bo(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?i=s=f:s=s.next=f,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var So=!1;function $i(){if(So){var e=Va;if(e!==null)throw e}}function Wi(e,t,n,l){So=!1;var i=e.updateQueue;gl=!1;var s=i.firstBaseUpdate,f=i.lastBaseUpdate,v=i.shared.pending;if(v!==null){i.shared.pending=null;var E=v,z=E.next;E.next=null,f===null?s=z:f.next=z,f=E;var B=e.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==f&&(v===null?B.firstBaseUpdate=z:v.next=z,B.lastBaseUpdate=E))}if(s!==null){var X=i.baseState;f=0,B=z=E=null,v=s;do{var A=v.lane&-536870913,L=A!==v.lane;if(L?(Ee&A)===A:(l&A)===A){A!==0&&A===la&&(So=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ee=e,ie=v;A=t;var ye=n;switch(ie.tag){case 1:if(ee=ie.payload,typeof ee=="function"){X=ee.call(ye,X,A);break e}X=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ie.payload,A=typeof ee=="function"?ee.call(ye,X,A):ee,A==null)break e;X=V({},X,A);break e;case 2:gl=!0}}A=v.callback,A!==null&&(e.flags|=64,L&&(e.flags|=8192),L=i.callbacks,L===null?i.callbacks=[A]:L.push(A))}else L={lane:A,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(z=B=L,E=X):B=B.next=L,f|=A;if(v=v.next,v===null){if(v=i.shared.pending,v===null)break;L=v,v=L.next,L.next=null,i.lastBaseUpdate=L,i.shared.pending=null}}while(!0);B===null&&(E=X),i.baseState=E,i.firstBaseUpdate=z,i.lastBaseUpdate=B,s===null&&(i.shared.lanes=0),Cl|=f,e.lanes=f,e.memoizedState=X}}function Ch(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Nh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ch(n[e],t)}var Sl=Je(null),cs=Je(0);function Mh(e,t){e=$n,q(cs,e),q(Sl,t),$n=e|t.baseLanes}function xo(){q(cs,$n),q(Sl,Sl.current)}function _o(){$n=cs.current,ze(Sl),ze(cs)}var gt=Je(null),xt=null;function xl(e){var t=e.alternate;q(yt,yt.current&1),q(gt,e),xt===null&&(t===null||Sl.current!==null||t.memoizedState!==null)&&(xt=e)}function Eo(e){q(yt,yt.current),q(gt,e),xt===null&&(xt=e)}function Ah(e){e.tag===22?(q(yt,yt.current),q(gt,e),xt===null&&(xt=e)):_l()}function _l(){q(yt,yt.current),q(gt,gt.current)}function Yt(e){ze(gt),xt===e&&(xt=null),ze(yt)}var yt=Je(0);function Pi(e,t){q(gt,gt.current),q(yt,t)}function Oo(e){ze(yt),ze(gt),xt===e&&(xt=null)}function os(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Kr(n)||kr(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kn=0,ge=null,Ve=null,lt=null,rs=!1,Xa=!1,ca=!1,fs=0,Ii=0,Qa=null,_b=0;function We(){throw Error(c(321))}function To(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function Co(e,t,n,l,i,s){return Kn=s,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ne.H=e===null||e.memoizedState===null?dm:hm,ca=!1,s=n(l,i),ca=!1,Xa&&(s=zh(t,n,l,i)),wh(e),s}function wh(e){ne.H=ys;var t=Ve!==null&&Ve.next!==null;if(Kn=0,lt=Ve=ge=null,rs=!1,Ii=0,Qa=null,t)throw Error(c(300));e===null||at||(e=e.dependencies,e!==null&&ts(e)&&(at=!0))}function zh(e,t,n,l){ge=e;var i=0;do{if(Xa&&(Qa=null),Ii=0,Xa=!1,25<=i)throw Error(c(301));if(i+=1,lt=Ve=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}ne.H=wb,s=t(n,l)}while(Xa);return s}function Eb(){var e=ne.H,t=e.useState()[0];return t=typeof t.then=="function"?eu(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(ge.flags|=1024),t}function No(){var e=fs!==0;return fs=0,e}function Mo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(rs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rs=!1}Kn=0,lt=Ve=ge=null,Xa=!1,Ii=fs=0,Qa=null}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ge.memoizedState=lt=e:lt=lt.next=e,lt}function et(){if(Ve===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=lt===null?ge.memoizedState:lt.next;if(t!==null)lt=t,Ve=e;else{if(e===null)throw ge.alternate===null?Error(c(467)):Error(c(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},lt===null?ge.memoizedState=lt=e:lt=lt.next=e}return lt}function ds(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eu(e){var t=Ii;return Ii+=1,Qa===null&&(Qa=[]),e=xh(Qa,e,t),t=ge,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,ne.H=t===null||t.memoizedState===null?dm:hm),e}function hs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return eu(e);if(e.$$typeof===Be)return;if(e.$$typeof===he)return vt(e)}throw Error(c(438,String(e)))}function wo(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ds(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=we;return t.index++,n}function kn(e,t){return typeof t=="function"?t(e):t}function ms(e){var t=et();return zo(t,Ve,e)}function zo(e,t,n){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var i=e.baseQueue,s=l.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}t.baseQueue=i=s,l.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var v=f=null,E=null,z=t,B=!1;do{var X=z.lane&-536870913;if(X!==z.lane?(Ee&X)===X:(Kn&X)===X){var A=z.revertLane;if(A===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),X===la&&(B=!0);else if((Kn&A)===A){z=z.next,A===la&&(B=!0);continue}else X={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},E===null?(v=E=X,f=s):E=E.next=X,ge.lanes|=A,Cl|=A;X=z.action,ca&&n(s,X),s=z.hasEagerState?z.eagerState:n(s,X)}else A={lane:X,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},E===null?(v=E=A,f=s):E=E.next=A,ge.lanes|=X,Cl|=X;z=z.next}while(z!==null&&z!==t);if(E===null?f=s:E.next=v,!Gt(s,e.memoizedState)&&(at=!0,B&&(n=Va,n!==null)))throw n;e.memoizedState=s,e.baseState=f,e.baseQueue=E,l.lastRenderedState=s}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function jo(e){var t=et(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do s=e(s,f.action),f=f.next;while(f!==i);Gt(s,t.memoizedState)||(at=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function jh(e,t,n){var l=ge,i=et(),s=be;if(s){if(n===void 0)throw Error(c(407));n=n()}else n=t();var f=!Gt((Ve||i).memoizedState,n);if(f&&(i.memoizedState=n,at=!0),i=i.queue,Uo(Uh.bind(null,l,i,e),[e]),e=i.getSnapshot!==t||f||lt!==null&&(lt.memoizedState.tag&1)!==0,Za(e?9:8,{destroy:void 0},Dh.bind(null,l,i,n,t),null),e){if(l.flags|=2048,Ge===null)throw Error(c(349));s||(Kn&127)!==0||Rh(l,t,n)}return n}function Rh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=ds(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dh(e,t,n,l){t.value=n,t.getSnapshot=l,Lh(t)&&Hh(e)}function Uh(e,t,n){return n(function(){Lh(t)&&Hh(e)})}function Lh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function Hh(e){var t=Wl(e,2);t!==null&&Ut(t,e,2)}function Ro(e){var t=Ot();if(typeof e=="function"){var n=e;if(e=n(),ca){ol(!0);try{n()}finally{ol(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:e},t}function Bh(e,t,n,l){return e.baseState=n,zo(e,Ve,typeof l=="function"?l:kn)}function Ob(e,t,n,l,i){if(gs(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};ne.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,qh(t,s)):(s.next=n.next,t.pending=n.next=s)}}function qh(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var s=ne.T,f={};f.types=s!==null?s.types:null,ne.T=f;try{var v=n(i,l),E=ne.S;E!==null&&E(f,v),Vh(e,t,v)}catch(z){Do(e,t,z)}finally{s!==null&&f.types!==null&&(s.types=f.types),ne.T=s}}else try{s=n(i,l),Vh(e,t,s)}catch(z){Do(e,t,z)}}function Vh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Gh(e,t,l)},function(l){return Do(e,t,l)}):Gh(e,t,n)}function Gh(e,t,n){t.status="fulfilled",t.value=n,Yh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qh(e,n)))}function Do(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Yh(t),t=t.next;while(t!==l)}e.action=null}function Yh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xh(e,t){return t}function Qh(e,t){if(be){var n=Ge.formState;if(n!==null){e:{var l=ge;if(be){if(Ye){t:{for(var i=Ye,s=tn;i.nodeType!==8;){if(!s){i=null;break t}if(i=ln(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Ye=ln(i.nextSibling),l=i.data==="F!";break e}}ml(l)}l=!1}l&&(t=n[0])}}return n=Ot(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xh,lastRenderedState:t},n.queue=l,n=om.bind(null,ge,l),l.dispatch=n,l=Ro(!1),s=Vo.bind(null,ge,!1,l.queue),l=Ot(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=Ob.bind(null,ge,i,s,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function Zh(e){var t=et();return Kh(t,Ve,e)}function Kh(e,t,n){if(t=zo(e,t,Xh)[0],e=ms(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=eu(t)}catch(f){throw f===Ga?as:f}else l=t;t=et();var i=t.queue,s=i.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,Za(9,{destroy:void 0},Tb.bind(null,i,n),null)),[l,s,e]}function Tb(e,t){e.action=t}function kh(e){var t=et(),n=Ve;if(n!==null)return Kh(t,n,e);et(),t=t.memoizedState,n=et();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Za(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=ds(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Jh(){return et().memoizedState}function ps(e,t,n,l){var i=Ot();ge.flags|=e,i.memoizedState=Za(1|t,{destroy:void 0},n,l===void 0?null:l)}function vs(e,t,n,l){var i=et();l=l===void 0?null:l;var s=i.memoizedState.inst;Ve!==null&&l!==null&&To(l,Ve.memoizedState.deps)?i.memoizedState=Za(t,s,n,l):(ge.flags|=e,i.memoizedState=Za(1|t,s,n,l))}function Fh(e,t){ps(8390656,8,e,t)}function Uo(e,t){vs(2048,8,e,t)}function Cb(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=ds(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function $h(e){var t=et().memoizedState;return Cb({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Wh(e,t){return vs(4,2,e,t)}function Ph(e,t){return vs(4,4,e,t)}function Ih(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function em(e,t,n){n=n!=null?n.concat([e]):null,vs(4,4,Ih.bind(null,t,e),n)}function Lo(){}function tm(e,t){var n=et();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&To(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function nm(e,t){var n=et();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&To(t,l[1]))return l[0];if(l=e(),ca){ol(!0);try{e()}finally{ol(!1)}}return n.memoizedState=[l,t],l}function Ho(e,t,n){return n===void 0||(Kn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=dp(),ge.lanes|=e,Cl|=e,n)}function lm(e,t,n,l){return Gt(n,t)?n:Sl.current!==null?(e=Ho(e,n,l),Gt(e,t)||(at=!0),e):(Kn&106)===0||(Kn&1073741824)!==0&&(Ee&261930)===0?(at=!0,e.memoizedState=n):(e=dp(),ge.lanes|=e,Cl|=e,t)}function am(e,t,n,l,i){var s=de.p;de.p=s!==0&&8>s?s:8;var f=ne.T,v={};v.types=f!==null?f.types:null,ne.T=v,Vo(e,!1,t,n);try{var E=i(),z=ne.S;if(z!==null&&z(v,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var B=xb(E,l);tu(e,t,B,Kt(e))}else tu(e,t,l,Kt(e))}catch(X){tu(e,t,{then:function(){},status:"rejected",reason:X},Kt())}finally{de.p=s,f!==null&&v.types!==null&&(f.types=v.types),ne.T=f}}function Nb(){}function Bo(e,t,n,l){if(e.tag!==5)throw Error(c(476));var i=im(e).queue;am(e,i,t,$,n===null?Nb:function(){return um(e),n(l)})}function im(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:$},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function um(e){var t=im(e);t.next===null&&(t=e.alternate.memoizedState),tu(e,t.next.queue,{},Kt())}function qo(){return vt(ri)}function sm(){return et().memoizedState}function cm(){return et().memoizedState}function Mb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=yl(n);var l=bl(t,e,n);l!==null&&(Ut(l,t,n),Fi(l,t,n)),t={cache:ho()},e.payload=t;return}t=t.return}}function Ab(e,t,n){var l=Kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gs(e)?rm(t,n):(n=lo(e,t,n,l),n!==null&&(Ut(n,e,l),fm(n,t,l)))}function om(e,t,n){var l=Kt();tu(e,t,n,l)}function tu(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gs(e))rm(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,v=s(f,n);if(i.hasEagerState=!0,i.eagerState=v,Gt(v,f))return Ju(e,t,i,0),Ge===null&&ku(),!1}catch{}if(n=lo(e,t,i,l),n!==null)return Ut(n,e,l),fm(n,t,l),!0}return!1}function Vo(e,t,n,l){if(l={lane:2,revertLane:wr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gs(e)){if(t)throw Error(c(479))}else t=lo(e,n,l,2),t!==null&&Ut(t,e,2)}function gs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function rm(e,t){Xa=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fm(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,dd(e,n)}}var ys={readContext:vt,use:hs,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We,useEffectEvent:We},dm={readContext:vt,use:hs,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Fh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ps(4194308,4,Ih.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){ps(4,2,e,t)},useMemo:function(e,t){var n=Ot();t=t===void 0?null:t;var l=e();if(ca){ol(!0);try{e()}finally{ol(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Ot();if(n!==void 0){var i=n(t);if(ca){ol(!0);try{n(t)}finally{ol(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=Ab.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Ro(e);var t=e.queue,n=om.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Lo,useDeferredValue:function(e,t){var n=Ot();return Ho(n,e,t)},useTransition:function(){var e=Ro(!1);return e=am.bind(null,ge,e.queue,!0,!1),Ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ge,i=Ot();if(be){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Ge===null)throw Error(c(349));(Ee&127)!==0||Rh(l,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Fh(Uh.bind(null,l,s,e),[e]),l.flags|=2048,Za(9,{destroy:void 0},Dh.bind(null,l,s,n,t),null),n},useId:function(){var e=Ot(),t=Ge.identifierPrefix;if(be){var n=Sn,l=bn;n=(l&~(1<<32-qt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=_b++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qo,useFormState:Qh,useActionState:Qh,useOptimistic:function(e){var t=Ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vo.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:wo,useCacheRefresh:function(){return Ot().memoizedState=Mb.bind(null,ge)},useEffectEvent:function(e){var t=Ot(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},hm={readContext:vt,use:hs,useCallback:tm,useContext:vt,useEffect:Uo,useImperativeHandle:em,useInsertionEffect:Wh,useLayoutEffect:Ph,useMemo:nm,useReducer:ms,useRef:Jh,useState:function(){return ms(kn)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=et();return lm(n,Ve.memoizedState,e,t)},useTransition:function(){var e=ms(kn)[0],t=et().memoizedState;return[typeof e=="boolean"?e:eu(e),t]},useSyncExternalStore:jh,useId:sm,useHostTransitionStatus:qo,useFormState:Zh,useActionState:Zh,useOptimistic:function(e,t){var n=et();return Bh(n,Ve,e,t)},useMemoCache:wo,useCacheRefresh:cm,useEffectEvent:$h},wb={readContext:vt,use:hs,useCallback:tm,useContext:vt,useEffect:Uo,useImperativeHandle:em,useInsertionEffect:Wh,useLayoutEffect:Ph,useMemo:nm,useReducer:jo,useRef:Jh,useState:function(){return jo(kn)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=et();return Ve===null?Ho(n,e,t):lm(n,Ve.memoizedState,e,t)},useTransition:function(){var e=jo(kn)[0],t=et().memoizedState;return[typeof e=="boolean"?e:eu(e),t]},useSyncExternalStore:jh,useId:sm,useHostTransitionStatus:qo,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=et();return Ve!==null?Bh(n,Ve,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:wo,useCacheRefresh:cm,useEffectEvent:$h};function Go(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yo={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Kt(),i=yl(l);i.payload=t,n!=null&&(i.callback=n),t=bl(e,i,l),t!==null&&(Ut(t,e,l),Fi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Kt(),i=yl(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=bl(e,i,l),t!==null&&(Ut(t,e,l),Fi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),l=yl(n);l.tag=2,t!=null&&(l.callback=t),t=bl(e,l,n),t!==null&&(Ut(t,e,n),Fi(t,e,n))}};function mm(e,t,n,l,i,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,f):t.prototype&&t.prototype.isPureReactComponent?!Gi(n,l)||!Gi(i,s):!0}function pm(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Yo.enqueueReplaceState(t,t.state,null)}function oa(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=V({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function vm(e){Ku(e)}function gm(e){console.error(e)}function ym(e){Ku(e)}function bs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function bm(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Xo(e,t,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){bs(e,t)},n}function Sm(e){return e=yl(e),e.tag=3,e}function xm(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var s=l.value;e.payload=function(){return i(s)},e.callback=function(){bm(t,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){bm(t,n,l),typeof i!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function zb(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ta(t,n,i,!0),n=gt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return xt===null?Vs():n.alternate===null&&Pe===0&&(Pe=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===is?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Nr(e,l,i)),!1;case 22:return n.flags|=65536,l===is?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Nr(e,l,i)),!1}throw Error(c(435,n.tag))}return Nr(e,l,i),Vs(),!1}if(be)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==co&&(e=Error(c(422),{cause:l}),Qi(Pt(e,n)))):(l!==co&&(t=Error(c(423),{cause:l}),Qi(Pt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Pt(l,n),i=Xo(e.stateNode,l,i),bo(e,i),Pe!==4&&(Pe=2)),!1;var s=Error(c(520),{cause:l});if(s=Pt(s,n),ou===null?ou=[s]:ou.push(s),Pe!==4&&(Pe=2),t===null)return!0;l=Pt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Xo(n.stateNode,l,e),bo(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Nl===null||!Nl.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Sm(i),xm(i,e,n,l),bo(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Qo=Error(c(461)),at=!1;function ct(e,t,n,l){t.child=e===null?Th(t,null,n,l):sa(t,e.child,n,l)}function _m(e,t,n,l,i){n=n.render;var s=t.ref;if("ref"in l){var f={};for(var v in l)v!=="ref"&&(f[v]=l[v])}else f=l;return na(t),l=Co(e,t,n,f,s,i),v=No(),e!==null&&!at?(Mo(e,t,i),Jn(e,t,i)):(be&&v&&Pu(t),t.flags|=1,ct(e,t,l,i),t.child)}function Em(e,t,n,l,i){if(e===null){var s=n.type;return typeof s=="function"&&!ao(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Om(e,t,s,l,i)):(e=$u(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Po(e,i)){var f=s.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(f,l)&&e.ref===t.ref)return Jn(e,t,i)}return t.flags|=1,e=Yn(s,l),e.ref=t.ref,e.return=t,t.child=e}function Om(e,t,n,l,i){if(e!==null){var s=e.memoizedProps;if(Gi(s,l)&&e.ref===t.ref)if(at=!1,t.pendingProps=l=s,Po(e,i))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Jn(e,t,i)}return Zo(e,t,n,l,i)}function Tm(e,t,n,l){var i=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~s}else l=0,t.child=null;return Cm(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ls(t,s!==null?s.cachePool:null),s!==null?Mh(t,s):xo(),Ah(t);else return l=t.lanes=536870912,Cm(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(ls(t,s.cachePool),Mh(t,s),_l(),t.memoizedState=null):(e!==null&&ls(t,null),xo(),_l());return ct(e,t,i,n),t.child}function nu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Cm(e,t,n,l,i){var s=po();return s=s===null?null:{parent:nt._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&ls(t,null),xo(),Ah(t),e!==null&&ta(e,t,l,!0),t.childLanes=i,null}function Ss(e,t){return t=xs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Nm(e,t,n){return sa(t,e.child,null,n),e=Ss(t,t.pendingProps),e.flags|=2,Yt(t),t.memoizedState=null,e}function jb(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(l.mode==="hidden")return e=Ss(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},nu(null,e);if(Eo(t),(e=Ye)?(e=Ip(e,tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:dl!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=rh(e),n.return=t,t.child=n,rt=t,Ye=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return Ss(t,l)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(Eo(t),i)if(t.flags&256)t.flags&=-257,t=Nm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(at||ta(e,t,n,!1),i=(n&e.childLanes)!==0,at||i){if(Sl.current===null){if(l=Ge,l!==null&&(f=hd(l,n),f!==0&&f!==s.retryLane))throw s.retryLane=f,Wl(e,f),Ut(l,e,f),Qo;Vs()}t=Nm(e,t,n)}else e=s.treeContext,Ye=ln(f.nextSibling),rt=t,be=!0,hl=null,tn=!1,e!==null&&hh(t,e),t=Ss(t,l),t.flags|=134221824;return t}return e=Yn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ka(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zo(e,t,n,l,i){return na(t),n=Co(e,t,n,l,void 0,i),l=No(),e!==null&&!at?(Mo(e,t,i),Jn(e,t,i)):(be&&l&&Pu(t),t.flags|=1,ct(e,t,n,i),t.child)}function Mm(e,t,n,l,i,s){return na(t),t.updateQueue=null,n=zh(t,l,n,i),wh(e),l=No(),e!==null&&!at?(Mo(e,t,s),Jn(e,t,s)):(be&&l&&Pu(t),t.flags|=1,ct(e,t,n,s),t.child)}function Am(e,t,n,l,i){if(na(t),t.stateNode===null){var s=La,f=n.contextType;typeof f=="object"&&f!==null&&(s=vt(f)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Yo,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},go(t),f=n.contextType,s.context=typeof f=="object"&&f!==null?vt(f):La,s.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Go(t,n,f,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&Yo.enqueueReplaceState(s,s.state,null),Wi(t,l,s,i),$i(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var v=t.memoizedProps,E=oa(n,v);s.props=E;var z=s.context,B=n.contextType;f=La,typeof B=="object"&&B!==null&&(f=vt(B));var X=n.getDerivedStateFromProps;B=typeof X=="function"||typeof s.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,B||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(v||z!==f)&&pm(t,s,l,f),gl=!1;var A=t.memoizedState;s.state=A,Wi(t,l,s,i),$i(),z=t.memoizedState,v||A!==z||gl?(typeof X=="function"&&(Go(t,n,X,l),z=t.memoizedState),(E=gl||mm(t,n,E,l,A,z,f))?(B||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),s.props=l,s.state=z,s.context=f,l=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,yo(e,t),f=t.memoizedProps,B=oa(n,f),s.props=B,X=t.pendingProps,A=s.context,z=n.contextType,E=La,typeof z=="object"&&z!==null&&(E=vt(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==X||A!==E)&&pm(t,s,l,E),gl=!1,A=t.memoizedState,s.state=A,Wi(t,l,s,i),$i();var L=t.memoizedState;f!==X||A!==L||gl||e!==null&&e.dependencies!==null&&ts(e.dependencies)?(typeof v=="function"&&(Go(t,n,v,l),L=t.memoizedState),(B=gl||mm(t,n,B,l,A,L,E)||e!==null&&e.dependencies!==null&&ts(e.dependencies))?(z||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,L,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,L,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),s.props=l,s.state=L,s.context=E,l=B):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Ka(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=sa(t,e.child,null,i),t.child=sa(t,null,n,i)):ct(e,t,n,i),t.memoizedState=s.state,e=t.child):e=Jn(e,t,i),e}function wm(e,t,n,l){return Il(),t.flags|=256,ct(e,t,n,l),t.child}var Ko={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ko(e){return{baseLanes:e,cachePool:bh()}}function Jo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function zm(e,t,n){var l=t.pendingProps,i=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(i?xl(t):_l(),(e=Ye)?(e=Ip(e,tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:dl!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=rh(e),n.return=t,t.child=n,rt=t,Ye=null)):e=null,e===null)throw ml(t);return kr(e)?t.lanes=32:t.lanes=536870912,null}return s=l.children,l=l.fallback,i?(_l(),i=t.mode,s=xs({mode:"hidden",children:s},i),l=Pl(l,i,n,null),s.return=t,l.return=t,s.sibling=l,t.child=s,l=t.child,l.memoizedState=ko(n),l.childLanes=Jo(e,f,n),t.memoizedState=Ko,nu(null,l)):(xl(t),Fo(t,s))}var v=e.memoizedState;if(v!==null){var E=v.dehydrated;if(E!==null)return Rb(e,t,s,f,l,E,v,n)}return i?(_l(),i=l.fallback,s=t.mode,v=e.child,E=v.sibling,l=Yn(v,{mode:"hidden",children:l.children}),l.subtreeFlags=v.subtreeFlags&1206910976,E!==null?i=Yn(E,i):(i=Pl(i,s,n,null),i.flags|=2),i.return=t,l.return=t,l.sibling=i,t.child=l,nu(null,l),l=t.child,i=e.child.memoizedState,i===null?i=ko(n):(s=i.cachePool,s!==null?(v=nt._currentValue,s=s.parent!==v?{parent:v,pool:v}:s):s=bh(),i={baseLanes:i.baseLanes|n,cachePool:s}),l.memoizedState=i,l.childLanes=Jo(e,f,n),t.memoizedState=Ko,nu(e.child,l)):(xl(t),n=e.child,e=n.sibling,n=Yn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function Fo(e,t){return t=xs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xs(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function _s(e,t,n){return sa(t,e.child,null,n),e=Fo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rb(e,t,n,l,i,s,f,v){if(n)return t.flags&256?(xl(t),t.flags&=-257,_s(e,t,v)):t.memoizedState!==null?(_l(),t.child=e.child,t.flags|=128,null):(_l(),s=i.fallback,f=t.mode,i=xs({mode:"visible",children:i.children},f),s=Pl(s,f,v,null),s.flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,sa(t,e.child,null,v),i=t.child,i.memoizedState=ko(v),i.childLanes=Jo(e,l,v),t.memoizedState=Ko,nu(null,i));if(xl(t),kr(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var E=l.dgst;return l=E,l!==""&&(i=Error(c(419)),i.stack="",i.digest=l,Qi({value:i,source:null,stack:null})),_s(e,t,v)}if(at||ta(e,t,v,!1),l=(v&e.childLanes)!==0,at||l){if(Sl.current!==null)return _s(e,t,v);if(l=Ge,l!==null&&(i=hd(l,v),i!==0&&i!==f.retryLane))throw f.retryLane=i,Wl(e,i),Ut(l,e,i),Qo;return Kr(s)||Vs(),_s(e,t,v)}return Kr(s)?(t.flags|=192,t.child=e.child,null):(e=f.treeContext,Ye=ln(s.nextSibling),rt=t,be=!0,hl=null,tn=!1,e!==null&&hh(t,e),t=Fo(t,i.children),t.flags|=134221824,t)}function jm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),es(e.return,t,n)}function Rm(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&os(n)===null&&(t=e),e=e.sibling}return t}function Es(e,t,n,l,i,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=i,f.treeForkCount=s)}function $o(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Wo(e,t,n){var l=t.pendingProps,i=l.revealOrder,s=l.tail;l=l.children;var f=yt.current;if(t.flags&128)return Pi(t,f),null;var v=(f&2)!==0;if(v?(f=f&1|2,t.flags|=128):f&=1,Pi(t,f),i==="backwards"&&e!==null?($o(e),ct(e,t,l,n),$o(e)):ct(e,t,l,n),l=be?Xi:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jm(e,n,t);else if(e.tag===19)jm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":n=Rm(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,$o(t)),Es(t,!0,i,null,s,l);break;case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&os(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Es(t,!0,n,null,s,l);break;case"together":Es(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:n=Rm(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Es(t,!1,i,n,s,l)}return t.child}function Dm(e,t,n){var l=t.pendingProps;return pl(t,t.type,l.value),ct(e,t,l.children,n),t.child}function Jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=Yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Po(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ts(e)))}function Db(e,t,n){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),pl(t,nt,e.memoizedState.cache),Il();break;case 27:case 5:Ft(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Eo(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return xl(t),t.flags|=128,null;l=ta(e,t,n,!1);var i=t.child.childLanes;return l||(n&i)!==0?zm(e,t,n):(xl(t),e=Jn(e,t,n),e!==null?e.sibling:null)}xl(t);break;case 19:if(t.flags&128)return Wo(e,t,n);if(i=(e.flags&128)!==0,l=(n&t.childLanes)!==0,l||(ta(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return Wo(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pi(t,yt.current),l)break;return null;case 22:return t.lanes=0,Tm(e,t,n,t.pendingProps);case 24:pl(t,nt,e.memoizedState.cache)}return Jn(e,t,n)}function Um(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Po(e,n)&&(t.flags&128)===0)return at=!1,Db(e,t,n);at=(e.flags&131072)!==0}else at=!1,be&&(t.flags&1048576)!==0&&dh(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ia(t.elementType),t.type=e,typeof e=="function")ao(e)?(l=oa(e,l),t.tag=1,t=Am(null,t,e,l,n)):(t.tag=0,t=Zo(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===Z){t.tag=11,t=_m(null,t,e,l,n);break e}else if(i===W){t.tag=14,t=Em(null,t,e,l,n);break e}else if(i===he){t.tag=10,t.type=e,t=Dm(null,t,n);break e}}throw t=Te(e)||e,Error(c(306,t,""))}}return t;case 0:return Zo(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=oa(l,t.pendingProps),Am(e,t,l,i,n);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var s=t.memoizedState;i=s.element,yo(e,t),Wi(t,l,null,n);var f=t.memoizedState;if(l=f.cache,pl(t,nt,l),l!==s.cache&&fo(t,[nt],n,!0),$i(),l=f.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=wm(e,t,l,n);break e}else if(l!==i){i=Pt(Error(c(424)),t),Qi(i),t=wm(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ye=ln(e.firstChild),rt=t,be=!0,hl=null,tn=!0,n=Th(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Il(),l===i){t=Jn(e,t,n);break e}ct(e,t,l,n)}t=t.child}return t;case 26:return Ka(e,t),e===null?(n=uv(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(t.stateNode=qp(t.type,t.pendingProps,ae.current,t)):t.memoizedState=uv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ft(t),e===null&&be&&(l=t.stateNode=nv(t.type,t.pendingProps,ae.current),rt=t,tn=!0,i=Ye,wl(t.type)?(Jr=i,Ye=ln(l.firstChild)):Ye=i),ct(e,t,t.pendingProps.children,n),Ka(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((i=l=Ye)&&(l=M1(l,t.type,t.pendingProps,tn),l!==null?(t.stateNode=l,rt=t,Ye=ln(l.firstChild),tn=!1,i=!0):i=!1),i||ml(t)),Ft(t),i=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,l=s.children,qr(i,s)?l=null:f!==null&&qr(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=Co(e,t,Eb,null,null,n),ri._currentValue=i),Ka(e,t),ct(e,t,l,n),t.child;case 6:return e===null&&be&&((e=n=Ye)&&(n=A1(n,t.pendingProps,tn),n!==null?(t.stateNode=n,rt=t,Ye=null,e=!0):e=!1),e||ml(t)),null;case 13:return zm(e,t,n);case 4:return Ie(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=sa(t,null,l,n):ct(e,t,l,n),t.child;case 11:return _m(e,t,t.type,t.pendingProps,n);case 7:return l=t.pendingProps,Ka(e,t),ct(e,t,l,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return Dm(e,t,n);case 9:return i=t.type._context,l=t.pendingProps.children,na(t),i=vt(i),l=l(i),t.flags|=1,ct(e,t,l,n),t.child;case 14:return Em(e,t,t.type,t.pendingProps,n);case 15:return Om(e,t,t.type,t.pendingProps,n);case 19:return Wo(e,t,n);case 31:return jb(e,t,n);case 22:return Tm(e,t,n,t.pendingProps);case 24:return na(t),l=vt(nt),e===null?(i=po(),i===null&&(i=Ge,s=ho(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:l,cache:i},go(t),pl(t,nt,i)):((e.lanes&n)!==0&&(yo(e,t),Wi(t,null,null,n),$i()),i=e.memoizedState,s=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),pl(t,nt,l)):(l=s.cache,pl(t,nt,l),l!==i.cache&&fo(t,[nt],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:be&&Pu(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:Ka(e,t),ct(e,t,l.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Fn(e){e.flags|=4}function Io(e,t,n,l,i){var s;if((s=(e.mode&32)!==0)&&(s=n===null?rv(t,l):rv(t,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),s){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(vp())e.flags|=8192;else throw ua=is,vo}else e.flags&=-16777217}function Lm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fv(t))if(vp())e.flags|=8192;else throw ua=is,vo}function Os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rd():536870912,e.lanes|=t,Wa|=t)}function lu(e,t){if(!be)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&1206910976,l|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Ub(e,t,n){var l=t.pendingProps;switch(so(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Zn(nt),Ht(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(qa(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,oo())),Xe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(Fn(t),s!==null?(Xe(t),Lm(t,s)):(Xe(t),Io(t,i,null,l,n))):s?s!==e.memoizedState?(Fn(t),Xe(t),Lm(t,s)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Fn(t),Xe(t),Io(t,i,e,l,n)),null;case 27:if(mt(t),n=ae.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Xe(t),t.subtreeFlags&=-33554433,null}e=H.current,qa(t)?mh(t):(e=nv(i,l,n),t.stateNode=e,Fn(t))}return Xe(t),t.subtreeFlags&=-33554433,null;case 5:if(mt(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Xe(t),t.subtreeFlags&=-33554433,null}if(s=H.current,qa(t))mh(t);else{var f=mu(ae.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}s[pt]=t,s[wt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(St(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Fn(t)}}return Xe(t),t.subtreeFlags&=-33554433,Io(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=ae.current,qa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=rt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[pt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Up(e.nodeValue,n)),e||ml(t,!0)}else e=mu(e).createTextNode(l),e[pt]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=qa(t),n!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[pt]=t}else Il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=oo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Yt(t),t):(Yt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Xe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=qa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[pt]=t}else Il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),i=!1}else i=oo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Yt(t),t):(Yt(t),null)}return Yt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Os(t,t.updateQueue),Xe(t),null);case 4:return Ht(),e===null&&Dr(t.stateNode.containerInfo),t.flags|=67108864,Xe(t),null;case 10:return Zn(t.type),Xe(t),null;case 19:if(Oo(t),l=t.memoizedState,l===null)return Xe(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)lu(l,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=os(e),s!==null){for(t.flags|=128,lu(l,!1),e=s.updateQueue,t.updateQueue=e,Os(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oh(n,e),n=n.sibling;return Pi(t,yt.current&1|2),be&&Xn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&tt()>Ls&&(t.flags|=128,i=!0,lu(l,!1),t.lanes=4194304)}else{if(!i)if(e=os(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Os(t,e),lu(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!s.alternate&&!be)return Xe(t),null}else 2*tt()-l.renderingStartTime>Ls&&n!==536870912&&(t.flags|=128,i=!0,lu(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}if(l.tail!==null){e=l.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=tt(),e.sibling=null,s=yt.current,s=i?s&1|2:s&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||be?Pi(t,s):(n=s,q(gt,t),q(yt,n),xt===null&&(xt=t)),be&&Xn(t,l.treeForkCount),e}return Xe(t),null;case 22:case 23:return Yt(t),_o(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&Os(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&ze(aa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zn(nt),Xe(t),null;case 25:return null;case 30:return t.flags|=33554432,Xe(t),null}throw Error(c(156,t.tag))}function Lb(e,t){switch(so(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(nt),Ht(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mt(t),null;case 31:if(t.memoizedState!==null){if(Yt(t),t.alternate===null)throw Error(c(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ht(),null;case 10:return Zn(t.type),null;case 22:case 23:return Yt(t),_o(),e!==null&&ze(aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zn(nt),null;case 25:return null;default:return null}}function Hm(e,t){switch(so(t),t.tag){case 3:Zn(nt),Ht();break;case 26:case 27:case 5:mt(t);break;case 4:Ht();break;case 31:t.memoizedState!==null&&Yt(t);break;case 13:Yt(t);break;case 19:Oo(t);break;case 10:Zn(t.type);break;case 22:case 23:Yt(t),_o(),e!==null&&ze(aa);break;case 24:Zn(nt)}}function au(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var s=n.create,f=n.inst;l=s(),f.destroy=l}n=n.next}while(n!==i)}}catch(v){Ue(t,t.return,v)}}function El(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){var f=l.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,i=t;var E=n,z=v;try{z()}catch(B){Ue(i,E,B)}}}l=l.next}while(l!==s)}}catch(B){Ue(t,t.return,B)}}function Bm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Nh(t,n)}catch(l){Ue(e,e.return,l)}}}function qm(e,t,n){n.props=oa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ue(e,t,l)}}function xn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var i=e.stateNode,s=Vn(e.memoizedProps,i);(i.ref===null||i.ref.name!==s)&&(i.ref=Kp(s)),l=i.ref;break;case 7:if(e.stateNode===null){var f=new kt(e);g(e.child,!1,C1,f,void 0,void 0),e.stateNode=f}l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(v){Ue(e,t,v)}}function bt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Ue(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ue(e,t,i)}else n.current=null}function Ts(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Pp(e.stateNode,t[n])}function Vm(e){for(var t=e.return;t!==null&&(tr(t)&&Pp(e.stateNode,t.stateNode),!er(t));)t=t.return}function iu(e){for(var t=e.return;t!==null&&(tr(t)&&N1(e.stateNode,t.stateNode),!er(t));)t=t.return}function er(e){return e.tag===5||e.tag===3||e.tag===27}function tr(e){return e&&e.tag===7&&e.stateNode!==null}function nr(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Ue(e,e.return,i)}}function lr(e,t,n){try{var l=e.stateNode;c1(l,e.type,n,t),l[wt]=t}catch(i){Ue(e,e.return,i)}}function Gm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wl(e.type)||e.tag===4}function ar(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gm(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&&wl(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 ir(e,t,n,l){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yn)),Ts(e,l),Ne=!0;else if(i!==4&&(i===27&&(Ts(e,l),l=null,wl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(ir(e,t,n,l),e=e.sibling;e!==null;)ir(e,t,n,l),e=e.sibling}function Cs(e,t,n,l){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ts(e,l),Ne=!0;else if(i!==4&&(i===27&&(Ts(e,l),l=null,wl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Cs(e,t,n,l),e=e.sibling;e!==null;)Cs(e,t,n,l),e=e.sibling}function Ym(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);St(t,l,n),t[pt]=e,t[wt]=n}catch(s){Ue(e,e.return,s)}}var Ns=!1,Xt=null;function Xm(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Ns=!0)}var _n=null;function Qm(){var e=_n;return _n=null,e}var jt=0;function ka(e,t,n,l,i){return jt=0,Zm(e.child,t,n,l,i)}function Zm(e,t,n,l,i){for(var s=!1;e!==null;){if(e.tag===5){var f=e.stateNode;if(l!==null){var v=Yr(f);l.push(v),v.view&&(s=!0)}else s||Yr(f).view&&(s=!0);Ns=!0,Qp(f,jt===0?t:t+"_"+jt,n),jt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Zm(e.child,t,n,l,i)&&(s=!0));e=e.sibling}return s}function En(e,t){for(;e!==null;)e.tag===5?Zp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||En(e.child,t)),e=e.sibling}function Ms(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ms(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(c(544));var n=t.name;t=Gn(t.default,t.share),t!=="none"&&(ka(e,n,t,null,!1)||En(e.child,!1))}e=e.sibling}}function ur(e,t){if(e.tag===30){var n=e.stateNode,l=e.memoizedProps,i=Vn(l,n),s=Gn(l.default,n.paired?l.share:l.enter);s!=="none"?ka(e,i,s,null,!1)?(Ms(e),n.paired||t||ti(e,l.onEnter)):En(e.child,!1):Ms(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ur(e,t),e=e.sibling;else Ms(e)}function sr(e){if(Xt!==null&&Xt.size!==0){var t=Xt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var i=t.get(l);if(i!==void 0){var s=Gn(n.default,n.share);if(s!=="none"&&(ka(e,l,s,null,!1)?(s=e.stateNode,i.paired=s,s.paired=i,ti(e,n.onShare)):En(e.child,!1)),t.delete(l),t.size===0)break}}}sr(e)}e=e.sibling}}}function cr(e){if(e.tag===30){var t=e.memoizedProps,n=Vn(t,e.stateNode),l=Xt!==null?Xt.get(n):void 0,i=Gn(t.default,l!==void 0?t.share:t.exit);i!=="none"&&(ka(e,n,i,null,!1)?l!==void 0?(i=e.stateNode,l.paired=i,i.paired=l,Xt.delete(n),ti(e,t.onShare)):ti(e,t.onExit):En(e.child,!1)),Xt!==null&&sr(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)cr(e),e=e.sibling;else Xt!==null&&sr(e)}function Km(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Vn(t,e.stateNode);t=Gn(t.default,t.update),e.flags&=-5,t!=="none"&&ka(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Km(e);e=e.sibling}}function or(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,En(e.child,!1))}or(e)}e=e.sibling}}function As(e){if(e.tag===30)e.stateNode.paired=null,En(e.child,!1),or(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)As(e),e=e.sibling;else or(e)}function km(e){for(e=e.child;e!==null;)e.tag===30?En(e.child,!1):(e.subtreeFlags&33554432)!==0&&km(e),e=e.sibling}function rr(e,t,n,l,i,s,f){for(var v=!1;t!==null;){if(t.tag===5){var E=t.stateNode;if(s!==null&&jt<s.length){var z=s[jt],B=Yr(E);(z.view||B.view)&&(v=!0);var X;if(X=(e.flags&4)===0)if(B.clip)X=!0;else{X=z.rect;var A=B.rect;X=X.y!==A.y||X.x!==A.x||X.height!==A.height||X.width!==A.width}X&&(e.flags|=4),B.abs?B=!z.abs:(z=z.rect,B=B.rect,B=z.height!==B.height||z.width!==B.width),B&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Qp(E,jt===0?n:n+"_"+jt,i),v&&(e.flags&4)!==0||(_n===null&&(_n=[]),_n.push(E,jt===0?l:l+"_"+jt,t.memoizedProps)),jt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&f?e.flags|=t.flags&32:rr(e,t.child,n,l,i,s,f)&&(v=!0));t=t.sibling}return v}function Jm(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=e.stateNode,i=Vn(n,l),s=Gn(n.default,n.update),f;f=e.memoizedState,e.memoizedState=null,l=e;var v=e.child;jt=0,i=rr(l,v,i,i,s,f,!1),(e.flags&4)!==0&&i&&ti(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Jm(e);e=e.sibling}}var ft=!1,je=!1,On=!1,fr=!1,Fm=typeof WeakSet=="function"?WeakSet:Set,dt=null,Tn=!1,uu=!1,ws=!1,dr=!1;function Hb(e,t,n){if(e=e.containerInfo,Hr=fi,e=Id(e),Wc(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 s=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var v=0,E=-1,z=-1,B=0,X=0,A=e,L=null;t:for(;;){for(var ee;A!==l||s!==0&&A.nodeType!==3||(E=v+s),A!==f||i!==0&&A.nodeType!==3||(z=v+i),A.nodeType===3&&(v+=A.nodeValue.length),(ee=A.firstChild)!==null;)L=A,A=ee;for(;;){if(A===e)break t;if(L===l&&++B===s&&(E=v),L===f&&++X===i&&(z=v),(ee=A.nextSibling)!==null)break;A=L,L=A.parentNode}A=ee}l=E===-1||z===-1?null:{start:E,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(Br={focusedElem:e,selectionRange:l},fi=!1,n=(n&335544064)===n,dt=t,t=n?9270:1024;dt!==null;){if(e=dt,n&&(l=e.deletions,l!==null))for(s=0;s<l.length;s++)n&&cr(l[s]);if(e.alternate===null&&(e.flags&2)!==0)n&&Xm(e),zs(n);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&cr(l),zs(n);continue}else if(l!==null&&l.memoizedState!==null){n&&Xm(e),zs(n);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,dt=l):(n&&Km(e),zs(n))}}Xt=null}function zs(e){for(;dt!==null;){var t=dt,n=e,l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&l!==null){n=void 0,i=l.memoizedProps,l=l.memoizedState;var s=t.stateNode;try{var f=oa(t.type,i);n=s.getSnapshotBeforeUpdate(f,l),s.__reactInternalSnapshotBeforeUpdate=n}catch(v){Ue(t,t.return,v)}}break;case 3:if((i&1024)!==0){if(l=t.stateNode.containerInfo,n=l.nodeType,n===9)Zr(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Zr(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=Vn(l.memoizedProps,l.stateNode),i=t.memoizedProps,i=Gn(i.default,i.update),i!=="none"&&ka(l,n,i,l.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(c(163))}if(l=t.sibling,l!==null){l.return=t.return,dt=l;break}dt=t.return}}function $m(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(e,n),l&4&&au(5,n);break;case 1:if(Cn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Ue(n,n.return,f)}else{var i=oa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ue(n,n.return,f)}}l&64&&Bm(n),l&512&&xn(n,n.return);break;case 3:if(Cn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Nh(e,t)}catch(f){Ue(n,n.return,f)}}break;case 27:t===null&&l&4&&Ym(n);case 26:case 5:Cn(e,n),t===null&&l&4&&nr(n),l&512&&xn(n,n.return);break;case 12:Cn(e,n);break;case 31:Cn(e,n),l&4&&ep(e,n);break;case 13:Cn(e,n),l&4&&tp(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Fb.bind(null,n),w1(e,n))));break;case 22:if(l=n.memoizedState!==null||ft,!l){var s=t!==null&&t.memoizedState!==null||je;t=ft,i=je,ft=l,(je=s)&&!i?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),fn(e,n,l)):Cn(e,n),ft=t,je=i}break;case 30:Cn(e,n),l&512&&xn(n,n.return);break;case 7:l&512&&xn(n,n.return);default:Cn(e,n)}}function hr(e,t){for(e=e.child;e!==null;)Wm(e,t),e=e.sibling}function Wm(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var i=e.stateNode,s=e.memoizedProps.style,f=s!=null&&s.hasOwnProperty("display")?s.display:null;i.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(E){Ue(e,e.return,E)}mr(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Ne=!0}catch(E){Ue(e,e.return,E)}break;case 18:try{var v=e.stateNode;t?Xp(v,!0):Xp(e.stateNode,!1)}catch(E){Ue(e,e.return,E)}break;case 22:case 23:e.memoizedState===null&&hr(e,t);break;default:hr(e,t)}}function mr(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,l=t;switch(n.tag){case 4:Wm(n,l);break e;case 22:n.memoizedState===null&&mr(n,l);break e;default:mr(n,l)}}e=e.sibling}}function Pm(e){var t=e.alternate;t!==null&&(e.alternate=null,Pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lu(t)),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 ke=null,Rt=!1;function on(e,t,n){for(n=n.child;n!==null;)Im(e,t,n),n=n.sibling}function Im(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 26:je||bt(n,t),on(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!je&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:je||bt(n,t),iu(n);var l=ke,i=Rt;wl(n.type)&&(ke=n.stateNode,Rt=!1),on(e,t,n),lv(n.stateNode,n.type,n.memoizedProps),ke=l,Rt=i;break;case 5:je||bt(n,t),iu(n);case 6:if(n.tag===6&&iu(n),l=ke,i=Rt,ke=null,on(e,t,n),ke=l,Rt=i,ke!==null)if(Rt)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(n.stateNode),Ne=!0}catch(s){Ue(n,t,s)}else try{ke.removeChild(n.stateNode),Ne=!0}catch(s){Ue(n,t,s)}break;case 18:ke!==null&&(Rt?(e=ke,Yp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),di(e)):Yp(ke,n.stateNode));break;case 4:l=ke,i=Rt,ke=n.stateNode.containerInfo,Rt=!0,on(e,t,n),ke=l,Rt=i;break;case 0:case 11:case 14:case 15:El(2,n,t),je||El(4,n,t),on(e,t,n);break;case 1:je||(bt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&qm(n,t,l)),on(e,t,n);break;case 21:on(e,t,n);break;case 22:je=(l=je)||n.memoizedState!==null,on(e,t,n),je=l;break;case 30:bt(n,t),on(e,t,n);break;case 7:je||bt(n,t),on(e,t,n);break;default:on(e,t,n)}}function ep(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{di(e)}catch(n){Ue(t,t.return,n)}}}function tp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{di(e)}catch(n){Ue(t,t.return,n)}}function Bb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fm),t;default:throw Error(c(435,e.tag))}}function js(e,t){var n=Bb(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=$b.bind(null,e,l);l.then(i,i)}})}function Tt(e,t,n){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i],f=e,v=t,E=v;e:for(;E!==null;){switch(E.tag){case 27:if(wl(E.type)){ke=E.stateNode,Rt=!1;break e}break;case 5:ke=E.stateNode,Rt=!1;break e;case 3:case 4:ke=E.stateNode.containerInfo,Rt=!0;break e}E=E.return}if(ke===null)throw Error(c(160));Im(f,v,s),ke=null,Rt=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)np(t,e,n),t=t.sibling}var rn=null;function np(e,t,n){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var s=0;s<l.length;s++){var f=l[s];f.ref.impl=f.nextImpl}Tt(t,e,n),Ct(e),i&4&&(El(3,e,e.return),au(3,e),El(5,e,e.return));break;case 1:Tt(t,e,n),Ct(e),i&512&&(je||l===null||bt(l,l.return)),i&64&&ft&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(s=rn,Tt(t,e,n),Ct(e),i&512&&(je||l===null||bt(l,l.return)),i&4)if(i=l!==null?l.memoizedState:null,n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null)if(ft)e.stateNode=qp(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,i=s.ownerDocument||s;t:switch(t){case"title":l=i.getElementsByTagName("title")[0],(!l||l[ji]||l[pt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=i.createElement(t),i.head.insertBefore(l,i.querySelector("head > title"))),St(l,t,n),l[pt]=e,ot(l),t=l;break e;case"link":if(s=ov("link","href",i).get(t+(n.href||""))){for(f=0;f<s.length;f++)if(l=s[f],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(f,1);break t}}l=i.createElement(t),St(l,t,n),i.head.appendChild(l);break;case"meta":if(s=ov("meta","content",i).get(t+(n.content||""))){for(f=0;f<s.length;f++)if(l=s[f],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(f,1);break t}}l=i.createElement(t),St(l,t,n),i.head.appendChild(l);break;default:throw Error(c(468,t))}l[pt]=e,ot(l),t=l}e.stateNode=t}else ft||Pr(s,e.type,e.stateNode);else e.stateNode=cv(s,n,e.memoizedProps);else i!==n?(i===null?(t=l.stateNode,t===null||je||t.parentNode.removeChild(t)):i.count--,n===null?ft||Pr(s,e.type,e.stateNode):cv(s,n,e.memoizedProps)):n===null&&e.stateNode!==null&&lr(e,e.memoizedProps,l.memoizedProps);break;case 27:Tt(t,e,n),Ct(e),i&512&&(je||l===null||bt(l,l.return)),l!==null&&i&4&&lr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(s=On,On=!1,Tt(t,e,n),On=s,Ct(e),i&512&&(je||l===null||bt(l,l.return)),e.flags&32){t=e.stateNode;try{Aa(t,""),Ne=!0}catch(B){Ue(e,e.return,B)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,lr(e,t,l!==null?l.memoizedProps:t)),i&1024&&(fr=!0);break;case 6:if(Tt(t,e,n),Ct(e),i&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ne=!0}catch(B){Ue(e,e.return,B)}}break;case 3:if(Ne=!1,ks=null,s=rn,rn=pu(t.containerInfo),Tt(t,e,n),rn=s,Ct(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{di(t.containerInfo)}catch(B){Ue(e,e.return,B)}fr&&(fr=!1,lp(e)),Ne=!1;break;case 4:i=On,On=ft,l=Ed(),s=rn,rn=pu(e.stateNode.containerInfo),Tt(t,e,n),Ct(e),rn=s,Ne&&uu&&(ws=!0),Ne=l,On=i;break;case 12:Tt(t,e,n),Ct(e);break;case 31:Tt(t,e,n),Ct(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,js(e,t)));break;case 13:Tt(t,e,n),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Us=tt()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,js(e,t)));break;case 22:s=e.memoizedState!==null,f=l!==null&&l.memoizedState!==null;var v=ft,E=je,z=On;ft=v||s,On=z||s,je=E||f,Tt(t,e,n),je=E,On=z,ft=v,Ct(e),i&8192&&(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,!s||l===null||f||ft||je||(t=f||je,n=ft,l=je,ft=s||ft,je=t,Ol(e,2),ft=n,je=l),!s&&On||hr(e,s)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,js(e,n))));break;case 19:Tt(t,e,n),Ct(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,js(e,t)));break;case 30:i&512&&(je||l===null||bt(l,l.return)),i=Ed(),s=uu,f=(n&335544064)===n,v=e.memoizedProps,uu=f&&Gn(v.default,v.update)!=="none",Tt(t,e,n),Ct(e),f&&l!==null&&Ne&&(e.flags|=4),uu=s,Ne=i;break;case 21:break;case 7:i&512&&(je||l===null||bt(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:Tt(t,e,n),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Gm(l)){n=l;break}l=l.return}l=null;for(var i=e.return;i!==null;){if(tr(i)){var s=i.stateNode;l===null?l=[s]:l.push(s)}if(er(i))break;i=i.return}var f=l;if(n==null)throw Error(c(160));switch(n.tag){case 27:var v=n.stateNode,E=ar(e);Cs(e,E,v,f);break;case 5:var z=n.stateNode;n.flags&32&&(Aa(z,""),n.flags&=-33);var B=ar(e);Cs(e,B,z,f);break;case 3:case 4:var X=n.stateNode.containerInfo,A=ar(e);ir(e,A,X,f);break;default:throw Error(c(161))}}catch(L){Ue(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lp(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,fi=!0,t.reset(),fi=!1),e=e.sibling}}function Ja(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ap(t,e),t=t.sibling;else Jm(t)}function ap(e,t){var n=e.alternate;if(n===null)ur(e,!1);else switch(e.tag){case 3:if(dr=Tn=!1,Qm(),Ja(t,e),!Tn&&!ws){if(e=_n,e!==null)for(var l=0;l<e.length;l+=3){n=e[l];var i=e[l+1];Zp(n,e[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),dr=!0}_n=null;break;case 5:Ja(t,e);break;case 4:l=Tn,Tn=!1,Ja(t,e),Tn&&(ws=!0),Tn=l;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?ur(e,!1):Ja(t,e));break;case 30:l=Tn,i=Qm(),Tn=!1,Ja(t,e),Tn&&(e.flags|=4);var s=e.memoizedProps,f=e.stateNode;t=Vn(s,f),f=Vn(n.memoizedProps,f);var v=Gn(s.default,s.update);v==="none"?t=!1:(s=n.memoizedState,n.memoizedState=null,n=e.child,jt=0,t=rr(e,n,t,f,v,s,!0),jt!==(s===null?0:s.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(ti(e,e.memoizedProps.onUpdate),_n=i):i!==null&&(i.push.apply(i,_n),_n=i),Tn=(e.flags&32)!==0?!0:l;break;default:Ja(t,e)}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$m(e,t.alternate,t),t=t.sibling}function Ol(e,t){for(e=e.child;e!==null;){var n=e,l=t;switch(n.tag){case 0:case 11:case 14:case 15:El(4,n,n.return),Ol(n,l);break;case 1:bt(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&qm(n,n.return,i),Ol(n,l);break;case 27:(l&2)!==0&&lv(n.stateNode,n.type,n.memoizedProps);case 5:bt(n,n.return),n.tag!==5&&n.tag!==27||iu(n),Ol(n,l);break;case 6:iu(n);break;case 26:bt(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||je||i.parentNode.removeChild(i),Ol(n,l);break;case 22:n.memoizedState===null&&Ol(n,l);break;case 30:bt(n,n.return),Ol(n,l);break;case 7:bt(n,n.return);default:Ol(n,l)}e=e.sibling}}function fn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var l=t.alternate,i=e,s=t,f=s.flags,v=(n&1)!==0;switch(s.tag){case 0:case 11:case 15:fn(i,s,n),au(4,s);break;case 1:if(fn(i,s,n),l=s,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(B){Ue(l,l.return,B)}if(l=s,i=l.updateQueue,i!==null){var E=l.stateNode;try{var z=i.shared.hiddenCallbacks;if(z!==null)for(i.shared.hiddenCallbacks=null,i=0;i<z.length;i++)Ch(z[i],E)}catch(B){Ue(l,l.return,B)}}v&&f&64&&Bm(s),xn(s,s.return);break;case 27:(n&2)!==0&&Ym(s);case 5:s.tag!==5&&s.tag!==27||Vm(s),fn(i,s,n),v&&l===null&&f&4&&nr(s),xn(s,s.return);break;case 6:Vm(s);break;case 26:E=s.stateNode,s.memoizedState!==null||E===null||ft||Pr(pu(E.ownerDocument),s.type,E),fn(i,s,n),v&&l===null&&f&4&&nr(s),xn(s,s.return);break;case 12:fn(i,s,n);break;case 31:fn(i,s,n),v&&f&4&&ep(i,s);break;case 13:fn(i,s,n),v&&f&4&&tp(i,s);break;case 22:s.memoizedState===null&&fn(i,s,n),xn(s,s.return);break;case 30:fn(i,s,n),xn(s,s.return);break;case 7:xn(s,s.return);default:fn(i,s,n)}t=t.sibling}}function pr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Zi(n))}function vr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e))}function nn(e,t,n,l){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)ip(e,t,n,l),t=t.sibling;else i&&km(t)}function ip(e,t,n,l){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&As(t);var s=t.flags;switch(t.tag){case 0:case 11:case 15:nn(e,t,n,l),s&2048&&au(9,t);break;case 1:nn(e,t,n,l);break;case 3:nn(e,t,n,l),i&&dr&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),s&2048&&(s=null,t.alternate!==null&&(s=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==s&&(t.refCount++,s!=null&&Zi(s)));break;case 12:if(s&2048){nn(e,t,n,l),s=t.stateNode;try{var f=t.memoizedProps,v=f.id,E=f.onPostCommit;typeof E=="function"&&E(v,t.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(z){Ue(t,t.return,z)}}else nn(e,t,n,l);break;case 31:nn(e,t,n,l);break;case 13:nn(e,t,n,l);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?(i&&v!==null&&v.memoizedState===null&&As(v),f._visibility&2?nn(e,t,n,l):su(e,t)):(i&&v!==null&&v.memoizedState!==null&&As(t),f._visibility&2?nn(e,t,n,l):(f._visibility|=2,Fa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1))),s&2048&&pr(v,t);break;case 24:nn(e,t,n,l),s&2048&&vr(t.alternate,t);break;case 30:i&&(s=t.alternate,s!==null&&(En(s.child,!0),En(t.child,!0))),nn(e,t,n,l);break;default:nn(e,t,n,l)}}function Fa(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,v=n,E=l,z=f.flags;switch(f.tag){case 0:case 11:case 15:Fa(s,f,v,E,i),au(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?Fa(s,f,v,E,i):su(s,f):(B._visibility|=2,Fa(s,f,v,E,i)),i&&z&2048&&pr(f.alternate,f);break;case 24:Fa(s,f,v,E,i),i&&z&2048&&vr(f.alternate,f);break;default:Fa(s,f,v,E,i)}t=t.sibling}}function su(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:su(n,l),i&2048&&pr(l.alternate,l);break;case 24:su(n,l),i&2048&&vr(l.alternate,l);break;default:su(n,l)}t=t.sibling}}var ra=8192;function fa(e,t,n){if(e.subtreeFlags&ra)for(e=e.child;e!==null;)up(e,t,n),e=e.sibling}function up(e,t,n){switch(e.tag){case 26:fa(e,t,n),e.flags&ra&&(e.memoizedState!==null?Q1(n,rn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&hv(n,e)));break;case 5:fa(e,t,n),e.flags&ra&&(e=e.stateNode,(t&335544128)===t&&hv(n,e));break;case 3:case 4:var l=rn;rn=pu(e.stateNode.containerInfo),fa(e,t,n),rn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ra,ra=16777216,fa(e,t,n),ra=l):fa(e,t,n));break;case 30:if((e.flags&ra)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var i=e.stateNode;i.paired=null,Xt===null&&(Xt=new Map),Xt.set(l,i)}fa(e,t,n);break;default:fa(e,t,n)}}function sp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function cu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];dt=l,op(l,e)}sp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cp(e),e=e.sibling}function cp(e){switch(e.tag){case 0:case 11:case 15:cu(e),e.flags&2048&&El(9,e,e.return);break;case 3:cu(e);break;case 12:cu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rs(e)):cu(e);break;default:cu(e)}}function Rs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];dt=l,op(l,e)}sp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),Rs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rs(t));break;default:Rs(t)}e=e.sibling}}function op(e,t){for(;dt!==null;){var n=dt;switch(n.tag){case 0:case 11:case 15:El(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Zi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,dt=l;else e:for(n=e;dt!==null;){l=dt;var i=l.sibling,s=l.return;if(Pm(l),l===n){dt=null;break e}if(i!==null){i.return=s,dt=i;break e}dt=s}}}var qb={getCacheForType:function(e){var t=vt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(nt).controller.signal}},Vb=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Ge=null,Se=null,Ee=0,De=0,Qt=null,Tl=!1,$a=!1,gr=!1,$n=0,Pe=0,Cl=0,da=0,Ds=0,Zt=0,Wa=0,ou=null,Dt=null,yr=!1,Us=0,rp=0,Ls=1/0,Hs=null,Nl=null,Fe=0,dn=null,ha=null,Nn=0,br=0,Sr=null,fp=null,Pa=null,Ia=null,ei=null,ru=0,Bs=null;function Kt(){return(Ae&2)!==0&&Ee!==0?Ee&-Ee:ne.T!==null?wr():md()}function dp(){if(Zt===0)if((Ee&536870912)===0||be){var e=ju;ju<<=1,(ju&3932160)===0&&(ju=262144),Zt=e}else Zt=536870912;return e=gt.current,e!==null&&(e.flags|=32),Zt}function ti(e,t){if(t!=null){var n=e.stateNode,l=n.ref;l===null&&(l=n.ref=Kp(Vn(e.memoizedProps,n))),Ia===null&&(Ia=[]),Ia.push(t.bind(null,l))}}function Ut(e,t,n){(e===Ge&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(ni(e,0),Ml(e,Ee,Zt,!1)),zi(e,n),((Ae&2)===0||e!==Ge)&&(e===Ge&&((Ae&2)===0&&(da|=n),Pe===4&&Ml(e,Ee,Zt,!1)),Mn(e))}function hp(e,t,n){if((Ae&6)!==0)throw Error(c(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||wi(e,t),i=l?Xb(e,t):_r(e,t,!0),s=l;do{if(i===0){$a&&!l&&Ml(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Gb(n)){i=_r(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var v=e;i=ou;var E=v.current.memoizedState.isDehydrated;if(E&&(ni(v,f).flags|=256),f=_r(v,f,!1),f!==2&&f!==6){if(gr&&!E){v.errorRecoveryDisabledLanes|=s,da|=s,i=4;break e}s=Dt,Dt=i,s!==null&&(Dt===null?Dt=s:Dt.push.apply(Dt,s))}i=f}if(s=!1,i!==2)continue}}if(i===1){ni(e,0),Ml(e,t,0,!0);break}e:{switch(l=e,s=i,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ml(l,t,Zt,!Tl);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Us+300-tt(),10<i)){if(Ml(l,t,Zt,!Tl),Du(l,0,!0)!==0)break e;Nn=t,l.timeoutHandle=Gr(mp.bind(null,l,n,Dt,Hs,yr,t,Zt,da,Wa,Tl,s,"Throttled",-0,0),i);break e}mp(l,n,Dt,Hs,yr,t,Zt,da,Wa,Tl,s,null,-0,0)}}break}while(!0);Mn(e)}function mp(e,t,n,l,i,s,f,v,E,z,B,X,A,L){e.timeoutHandle=-1;var ee=t.subtreeFlags,ie=(s&335544064)===s;if(X=null,(ie||ee&8192||(ee&16785408)===16785408)&&(X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Xt=null,up(t,s,X),ie&&(ee=X,ie=e.containerInfo,ie=(ie.nodeType===9?ie:ie.ownerDocument).__reactViewTransition,ie!=null&&(ee.count++,ee.waitingForViewTransition=!0,ee=yu.bind(ee),ie.finished.then(ee,ee))),ee=(s&62914560)===s?Us-tt():(s&4194048)===s?rp-tt():0,ee=Z1(X,ee),ee!==null)){Nn=s,e.cancelPendingCommit=ee(_p.bind(null,e,t,s,n,l,i,f,v,E,z,B,X,null,A,L)),Ml(e,s,f,!z);return}_p(e,t,s,n,l,i,f,v,E,z,B,X)}function Gb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],s=i.getSnapshot;i=i.value;try{if(!Gt(s(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ml(e,t,n,l){t=od(e,t),t&=~Ds,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var s=31-qt(i),f=1<<s;l[s]=-1,i&=~f}n!==0&&fd(e,n,t)}function qs(){return(Ae&6)===0?(fu(0),!1):!0}function xr(){if(Se!==null){if(De===0)var e=Se.return;else e=Se,Qn=ea=null,Ao(e),Ya=null,Ji=0,e=Se;for(;e!==null;)Hm(e.alternate,e),e=e.return;Se=null}}function ni(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,f1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Nn=0,xr(),Ge=e,Se=n=Yn(e.current,null),Ee=t,De=0,Qt=null,Tl=!1,$a=wi(e,t),gr=!1,Wa=Zt=Ds=da=Cl=Pe=0,Dt=ou=null,yr=!1,$n=od(e,t),ku(),n}function pp(e,t){ge=null,ne.H=ys,t===Ga||t===as?(t=_h(),De=3):t===vo?(t=_h(),De=4):De=t===Qo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Se===null&&(Pe=1,bs(e,Pt(t,e.current)))}function vp(){var e=gt.current;return e===null?!0:(Ee&4194048)===Ee?xt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===xt:!1}function gp(){var e=ne.H;return ne.H=ys,e===null?ys:e}function yp(){var e=ne.A;return ne.A=qb,e}function Vs(){Pe=4,Tl||(Ee&4194048)!==Ee&&gt.current!==null||($a=!0),(Cl&134217727)===0&&(da&134217727)===0||Ge===null||Ml(Ge,Ee,Zt,!1)}function _r(e,t,n){var l=Ae;Ae|=2;var i=gp(),s=yp();(Ge!==e||Ee!==t)&&(Hs=null,ni(e,t)),t=!1;var f=Pe;e:do try{if(De!==0&&Se!==null){var v=Se,E=Qt;switch(De){case 8:xr(),f=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var z=De;if(De=0,Qt=null,li(e,v,E,z),n&&$a){f=0;break e}break;default:z=De,De=0,Qt=null,li(e,v,E,z)}}Yb(),f=Pe;break}catch(B){pp(e,B)}while(!0);return t&&e.shellSuspendCounter++,Qn=ea=null,Ae=l,ne.H=i,ne.A=s,Se===null&&(Ge=null,Ee=0,ku()),f}function Yb(){for(;Se!==null;)bp(Se)}function Xb(e,t){var n=Ae;Ae|=2;var l=gp(),i=yp();Ge!==e||Ee!==t?(Hs=null,Ls=tt()+500,ni(e,t)):$a=wi(e,t);e:do try{if(De!==0&&Se!==null){t=Se;var s=Qt;t:switch(De){case 1:De=0,Qt=null,li(e,t,s,1);break;case 2:case 9:if(Sh(s)){De=0,Qt=null,Sp(t);break}t=function(){De!==2&&De!==9||Ge!==e||(De=7),Mn(e)},s.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Sh(s)?(De=0,Qt=null,Sp(t)):(De=0,Qt=null,li(e,t,s,7));break;case 5:var f=null;switch(Se.tag){case 26:f=Se.memoizedState;case 5:case 27:var v=Se;if(f?fv(f):v.stateNode.complete){De=0,Qt=null;var E=v.sibling;if(E!==null)Se=E;else{var z=v.return;z!==null?(Se=z,Gs(z)):Se=null}break t}}De=0,Qt=null,li(e,t,s,5);break;case 6:De=0,Qt=null,li(e,t,s,6);break;case 8:xr(),Pe=6;break e;default:throw Error(c(462))}}Qb();break}catch(B){pp(e,B)}while(!0);return Qn=ea=null,ne.H=l,ne.A=i,Ae=n,Se!==null?0:(Ge=null,Ee=0,ku(),Pe)}function Qb(){for(;Se!==null&&!xa();)bp(Se)}function bp(e){var t=Um(e.alternate,e,$n);e.memoizedProps=e.pendingProps,t===null?Gs(e):Se=t}function Sp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Mm(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Mm(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Ao(t);var l=t;l===rt&&(be?(Iu(l),l.tag===5&&l.stateNode!=null&&(Ye=l.stateNode)):(Iu(l),be=!0));default:Hm(n,t),t=Se=oh(t,$n),t=Um(n,t,$n)}e.memoizedProps=e.pendingProps,t===null?Gs(e):Se=t}function li(e,t,n,l){Qn=ea=null,Ao(t),Ya=null,Ji=0;var i=t.return;try{if(zb(e,i,t,n,Ee)){Pe=1,bs(e,Pt(n,e.current)),Se=null;return}}catch(s){if(i!==null)throw Se=i,s;Pe=1,bs(e,Pt(n,e.current)),Se=null;return}t.flags&32768?(be||l===1?e=!0:$a||(Ee&536870912)!==0?e=!1:(Tl=e=!0,(l===2||l===9||l===3||l===6)&&(l=gt.current,l!==null&&l.tag===13&&(l.flags|=16384))),xp(t,e)):Gs(t)}function Gs(e){var t=e;do{if((t.flags&32768)!==0){xp(t,Tl);return}e=t.return;var n=Ub(t.alternate,t,$n);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Pe===0&&(Pe=5)}function xp(e,t){do{var n=Lb(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Pe=6,Se=null}function _p(e,t,n,l,i,s,f,v,E,z,B,X){e.cancelPendingCommit=null;do Ys();while(Fe!==0);if((Ae&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===Ge&&(Se=Ge=null,Ee=0),ha=t,dn=e,Nn=n,Sr=i,fp=l,Zb(e,t,n,f,v,E,X)}}function Zb(e,t,n,l,i,s,f){var v=t.lanes|t.childLanes;if(br=v,v|=no,gy(e,n,v,l,i,s),Ia=null,(n&335544064)===n?(ei=bb(e),l=10262):(ei=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,Wb(Ln,function(){return Cr(),null})):(e.callbackNode=null,e.callbackPriority=0),Ns=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=ne.T,ne.T=null,i=de.p,de.p=2,s=Ae,Ae|=4;try{Hb(e,t,n)}finally{Ae=s,de.p=i,ne.T=l}}Fe=1,Ns?Pa=g1(f,e.containerInfo,ei,Er,Or,kb,Tr,Cr,Kb):(Er(),Or(),Tr())}function Kb(e){if(Fe!==0){var t=dn.onRecoverableError;t(e,{componentStack:null})}}function kb(){Fe===3&&(Fe=0,ap(ha,dn),Fe=4)}function Er(){if(Fe===1){Fe=0;var e=dn,t=ha,n=Nn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=ne.T,ne.T=null;var i=de.p;de.p=2;var s=Ae;Ae|=4;try{uu=ws=!1,np(t,e,n),n=Br;var f=Id(e.containerInfo),v=n.focusedElem,E=n.selectionRange;if(f!==v&&v&&v.ownerDocument&&Pd(v.ownerDocument.documentElement,v)){if(E!==null&&Wc(v)){var z=E.start,B=E.end;if(B===void 0&&(B=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(B,v.value.length);else{var X=v.ownerDocument||document,A=X&&X.defaultView||window;if(A.getSelection){var L=A.getSelection(),ee=v.textContent.length,ie=Math.min(E.start,ee),ye=E.end===void 0?ie:Math.min(E.end,ee);!L.extend&&ie>ye&&(f=ye,ye=ie,ie=f);var w=Wd(v,ie),N=Wd(v,ye);if(w&&N&&(L.rangeCount!==1||L.anchorNode!==w.node||L.anchorOffset!==w.offset||L.focusNode!==N.node||L.focusOffset!==N.offset)){var j=X.createRange();j.setStart(w.node,w.offset),L.removeAllRanges(),ie>ye?(L.addRange(j),L.extend(N.node,N.offset)):(j.setEnd(N.node,N.offset),L.addRange(j))}}}}for(X=[],L=v;L=L.parentNode;)L.nodeType===1&&X.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<X.length;v++){var Y=X[v];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}fi=!!Hr,Br=Hr=null}finally{Ae=s,de.p=i,ne.T=l}}e.current=t,Fe=2}}function Or(){if(Fe===2){Fe=0;var e=dn,t=ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ne.T,ne.T=null;var l=de.p;de.p=2;var i=Ae;Ae|=4;try{$m(e,t.alternate,t)}finally{Ae=i,de.p=l,ne.T=n}}Fe=3}}function Tr(){if(Fe===4||Fe===3){Fe=0;var e=Pa;Pa=null,_a();var t=dn,n=ha,l=Nn,i=fp,s=(l&335544064)===l?10262:10256;if((n.subtreeFlags&s)!==0||(n.flags&s)!==0?Fe=5:(Fe=0,ha=dn=null,Ep(t,t.pendingLanes)),s=t.pendingLanes,s===0&&(Nl=null),Rc(l),n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Zl,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=ne.T,s=de.p,de.p=2,ne.T=null;try{for(var f=t.onRecoverableError,v=0;v<i.length;v++){var E=i[v];f(E.value,{componentStack:E.stack})}}finally{ne.T=n,de.p=s}}if(i=Ia,f=ei,ei=null,i!==null&&(Ia=null,f===null&&(f=[]),e!==null))for(E=0;E<i.length;E++)n=(0,i[E])(f),n!==void 0&&e.finished.finally(n);(Nn&3)!==0&&Ys(),Mn(t),s=t.pendingLanes,(l&261930)!==0&&(s&42)!==0?t===Bs?ru++:(ru=0,Bs=t):(ru=0,Bs=null),fu(0)}}function Ep(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zi(t)))}function Ys(){return Pa!==null&&(Pa.skipTransition(),Pa=null),Er(),Or(),Tr(),Cr()}function Cr(){if(Fe!==5)return!1;var e=dn,t=br;br=0;var n=Rc(Nn),l=ne.T,i=de.p;try{de.p=32>n?32:n,ne.T=null,n=Sr,Sr=null;var s=dn,f=Nn;if(Fe=0,ha=dn=null,Nn=0,(Ae&6)!==0)throw Error(c(331));var v=Ae;if(Ae|=4,cp(s.current),ip(s,s.current,f,n),Ae=v,fu(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Zl,s)}catch{}return!0}finally{de.p=i,ne.T=l,Ep(e,t)}}function Op(e,t,n){t=Pt(n,t),t=Xo(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(zi(e,2),Mn(e))}function Ue(e,t,n){if(e.tag===3)Op(e,e,n);else for(;t!==null;){if(t.tag===3){Op(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Nl===null||!Nl.has(l))){e=Pt(n,e),n=Sm(2),l=bl(t,n,2),l!==null&&(xm(n,l,t,e),zi(l,2),Mn(l));break}}t=t.return}}function Nr(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Vb;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(gr=!0,i.add(n),e=Jb.bind(null,e,t,n),t.then(e,e))}function Jb(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&(Ee&n)===n&&((Pe===4||Pe===3&&(Ee&62914560)===Ee&&300>tt()-Us)&&(Ae&2)===0?ni(e,0):Ds|=n,Wa===Ee&&(Wa=0)),Mn(e)}function Tp(e,t){t===0&&(t=rd()),e=Wl(e,t),e!==null&&(zi(e,t),Mn(e))}function Fb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tp(e,n)}function $b(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),Tp(e,n)}function Wb(e,t){return vn(e,t)}var ai=null,ii=null,Mr=!1,Xs=!1,Ar=!1,Al=0;function Mn(e){e!==ii&&e.next===null&&(ii===null?ai=ii=e:ii=ii.next=e),Xs=!0,Mr||(Mr=!0,Ib())}function fu(e,t){if(!Ar&&Xs){Ar=!0;do for(var n=!1,l=ai;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var f=l.suspendedLanes,v=l.pingedLanes;s=(1<<31-qt(42|e)+1)-1,s&=i&~(f&~v),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Ap(l,s))}else s=Ee,s=Du(l,l===Ge?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||wi(l,s)||(n=!0,Ap(l,s));l=l.next}while(n);Ar=!1}}function Pb(){Cp()}function Cp(){Xs=Mr=!1;var e=0;Al!==0&&r1()&&(e=Al);for(var t=tt(),n=null,l=ai;l!==null;){var i=l.next,s=Np(l,t);s===0?(l.next=null,n===null?ai=i:n.next=i,i===null&&(ii=n)):(n=l,(e!==0||(s&3)!==0)&&(Xs=!0)),l=i}Fe!==0&&Fe!==5||fu(e),Al!==0&&(Al=0)}function Np(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-qt(s),v=1<<f,E=i[f];E===-1?((v&n)===0||(v&l)!==0)&&(i[f]=vy(v,t)):E<=t&&(e.expiredLanes|=v),s&=~v}if(t=Ge,n=Ee,n=Du(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&gn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||wi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&gn(l),Rc(n)){case 2:case 8:n=Un;break;case 32:n=Ln;break;case 268435456:n=qe;break;default:n=Ln}return l=Mp.bind(null,e),n=vn(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&gn(l),e.callbackPriority=2,e.callbackNode=null,2}function Mp(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ys()&&e.callbackNode!==n)return null;var l=Ee;return l=Du(e,e===Ge?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(hp(e,l,t),Np(e,tt()),e.callbackNode!=null&&e.callbackNode===n?Mp.bind(null,e):null)}function Ap(e,t){if(Ys())return null;hp(e,t,!0)}function Ib(){d1(function(){(Ae&6)!==0?vn(Dn,Pb):Cp()})}function wr(){if(Al===0){var e=la;e===0&&(e=zu,zu<<=1,(zu&261888)===0&&(zu=256)),Al=e}return Al}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qu(e)}function e1(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var s=wp((i[wt]||null).action),f=l.submitter;f&&(t=(t=f[wt]||null)?wp(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var v=new Xu("action","action",null,l,i);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Al!==0){var E=new FormData(i,f);Bo(n,{pending:!0,data:E,method:i.method,action:s},null,E)}}else typeof s=="function"&&(v.preventDefault(),E=new FormData(i,f),Bo(n,{pending:!0,data:E,method:i.method,action:s},s,E))},currentTarget:i}]})}}for(var zr=0;zr<to.length;zr++){var jr=to[zr],t1=jr.toLowerCase(),n1=jr[0].toUpperCase()+jr.slice(1);cn(t1,"on"+n1)}cn(nh,"onAnimationEnd"),cn(lh,"onAnimationIteration"),cn(ah,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(fb,"onTransitionRun"),cn(db,"onTransitionStart"),cn(hb,"onTransitionCancel"),cn(ih,"onTransitionEnd"),Na("onMouseEnter",["mouseout","mouseover"]),Na("onMouseLeave",["mouseout","mouseover"]),Na("onPointerEnter",["pointerout","pointerover"]),Na("onPointerLeave",["pointerout","pointerover"]),Jl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var du="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(" "),l1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(du));function zp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var f=l.length-1;0<=f;f--){var v=l[f],E=v.instance,z=v.currentTarget;if(v=v.listener,E!==s&&i.isPropagationStopped())break e;s=v,i.currentTarget=z;try{s(i)}catch(B){Ku(B)}i.currentTarget=null,s=E}else for(f=0;f<l.length;f++){if(v=l[f],E=v.instance,z=v.currentTarget,v=v.listener,E!==s&&i.isPropagationStopped())break e;s=v,i.currentTarget=z;try{s(i)}catch(B){Ku(B)}i.currentTarget=null,s=E}}}}function xe(e,t){var n=t[vd];n===void 0&&(n=t[vd]=new Set);var l=e+"__bubble";n.has(l)||(jp(t,e,2,!1),n.add(l))}function Rr(e,t,n){var l=0;t&&(l|=4),jp(n,e,l,t)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Dr(e){if(!e[Qs]){e[Qs]=!0,bd.forEach(function(n){n!=="selectionchange"&&(l1.has(n)||Rr(n,!1,e),Rr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qs]||(t[Qs]=!0,Rr("selectionchange",!1,t))}}function jp(e,t,n,l){switch(xv(t)){case 2:var i=F1;break;case 8:i=$1;break;default:i=ef}n=i.bind(null,t,n,e),i=void 0,!Gc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,l,i){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var v=l.stateNode.containerInfo;if(v===i)break;if(f===4)for(f=l.return;f!==null;){var E=f.tag;if((E===3||E===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;v!==null;){if(f=kl(v),f===null)return;if(E=f.tag,E===5||E===6||E===26||E===27){l=s=f;continue e}v=v.parentNode}}l=l.return}jd(function(){var z=s,B=qc(n),X=[];e:{var A=uh.get(e);if(A!==void 0){var L=Xu,ee=e;switch(e){case"keypress":if(Gu(n)===0)break e;case"keydown":case"keyup":L=Gy;break;case"focusin":ee="focus",L=Zc;break;case"focusout":ee="blur",L=Zc;break;case"beforeblur":case"afterblur":L=Zc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Ay;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Ky;break;case nh:case lh:case ah:L=jy;break;case ih:L=Jy;break;case"scroll":case"scrollend":L=Ny;break;case"wheel":L=$y;break;case"copy":case"cut":case"paste":L=Dy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Hd;break;case"submit":L=Qy;break;case"toggle":case"beforetoggle":L=Py}var ie=(t&4)!==0,ye=!ie&&(e==="scroll"||e==="scrollend"),w=ie?A!==null?A+"Capture":null:A;ie=[];for(var N=z,j;N!==null;){var Y=N;if(j=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||j===null||w===null||(Y=Di(N,w),Y!=null&&ie.push(hu(N,Y,j))),ye)break;N=N.return}0<ie.length&&(A=new L(A,ee,null,n,B),X.push({event:A,listeners:ie}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",L&&n!==Bc&&(ee=n.relatedTarget||n.fromElement)&&(kl(ee)||ee[Oa]))break e;(A||L)&&(ee=B.window===B?B:(L=B.ownerDocument)?L.defaultView||L.parentWindow:window,A?(L=n.relatedTarget||n.toElement,A=z,L=L?kl(L):null,L!==null&&(ye=d(L),ie=L.tag,L!==ye||ie!==5&&ie!==27&&ie!==6)&&(L=null)):(A=null,L=z),A!==L&&(ie=Ud,Y="onMouseLeave",w="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Hd,Y="onPointerLeave",w="onPointerEnter",N="pointer"),ye=A==null?ee:Ri(A),j=L==null?ee:Ri(L),ee=new ie(Y,N+"leave",A,n,B),ee.target=ye,ee.relatedTarget=j,Y=null,kl(B)===z&&(ie=new ie(w,N+"enter",L,n,B),ie.target=j,ie.relatedTarget=ye,Y=ie),ye=Y,ie=A&&L?k(A,L,a1):null,A!==null&&Rp(X,ee,A,ie,!1),L!==null&&ye!==null&&Rp(X,ye,L,ie,!0)))}e:{if(A=z?Ri(z):window,L=A.nodeName&&A.nodeName.toLowerCase(),L==="select"||L==="input"&&A.type==="file")var le=Zd;else if(Xd(A))if(Kd)le=cb;else{le=ub;var Oe=ib}else L=A.nodeName,!L||L.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?z&&Hc(z.elementType)&&(le=Zd):le=sb;if(le&&(le=le(e,z))){Qd(X,le,n,B);break e}Oe&&Oe(e,A,z)}switch(Oe=z?Ri(z):window,e){case"focusin":(Xd(Oe)||Oe.contentEditable==="true")&&(Ra=Oe,Pc=z,Yi=null);break;case"focusout":Yi=Pc=Ra=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,eh(X,n,B);break;case"selectionchange":if(rb)break;case"keydown":case"keyup":eh(X,n,B)}var ce;if(kc)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else ja?Gd(e,n)&&(me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(me="onCompositionStart");me&&(Bd&&n.locale!=="ko"&&(ja||me!=="onCompositionStart"?me==="onCompositionEnd"&&ja&&(ce=Rd()):(rl=B,Yc="value"in rl?rl.value:rl.textContent,ja=!0)),Oe=Zs(z,me),0<Oe.length&&(me=new Ld(me,e,null,n,B),X.push({event:me,listeners:Oe}),ce?me.data=ce:(ce=Yd(n),ce!==null&&(me.data=ce)))),(ce=eb?tb(e,n):nb(e,n))&&(me=Zs(z,"onBeforeInput"),0<me.length&&(Oe=new Ld("onBeforeInput","beforeinput",null,n,B),X.push({event:Oe,listeners:me}),Oe.data=ce)),e1(X,e,z,n,B)}zp(X,t)})}function hu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zs(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=Di(e,n),i!=null&&l.unshift(hu(e,i,s)),i=Di(e,t),i!=null&&l.push(hu(e,i,s))),e.tag===3)return l;e=e.return}return[]}function a1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rp(e,t,n,l,i){for(var s=t._reactName,f=[];n!==null&&n!==l;){var v=n,E=v.alternate,z=v.stateNode;if(v=v.tag,E!==null&&E===l)break;v!==5&&v!==26&&v!==27||z===null||(E=z,i?(z=Di(n,s),z!=null&&f.unshift(hu(n,z,E))):i||(z=Di(n,s),z!=null&&f.push(hu(n,z,E)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var i1=/\r\n?/g,u1=/\u0000|\uFFFD/g;function Dp(e){return(typeof e=="string"?e:""+e).replace(i1,`
10
+ `).replace(u1,"")}function Up(e,t){return t=Dp(t),Dp(e)===t}function Le(e,t,n,l,i,s){switch(n){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||Aa(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&Aa(e,""+l);else return;break;case"className":Bu(e,"class",l);break;case"tabIndex":Bu(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bu(e,n,l);break;case"style":wd(e,l,s);return;case"data":if(t!=="object"){Bu(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=qu(l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 s=="function"&&(n==="formAction"?(t!=="input"&&Le(e,t,"name",i.name,i,null),Le(e,t,"formEncType",i.formEncType,i,null),Le(e,t,"formMethod",i.formMethod,i,null),Le(e,t,"formTarget",i.formTarget,i,null)):(Le(e,t,"encType",i.encType,i,null),Le(e,t,"method",i.method,i,null),Le(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=qu(l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=yn);return;case"onScroll":l!=null&&xe("scroll",e);return;case"onScrollEnd":l!=null&&xe("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(c(60));s?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=qu(l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Hu(e,"popover",l);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Hu(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=Ty.get(n)||n,Hu(e,n,l);else return}Ne=!0}function Lr(e,t,n,l,i,s){switch(n){case"style":wd(e,l,s);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(c(60));s?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof l=="string")Aa(e,l);else if(typeof l=="number"||typeof l=="bigint")Aa(e,""+l);else return;break;case"onScroll":l!=null&&xe("scroll",e);return;case"onScrollEnd":l!=null&&xe("scrollend",e);return;case"onClick":l!=null&&(e.onclick=yn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Sd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),s=n.slice(2,i?n.length-7:void 0),t=e[wt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(s,t,i),typeof l=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(s,l,i);break e}Ne=!0,n in e?e[n]=l:l===!0?e.setAttribute(n,""):Hu(e,n,l)}return}Ne=!0}function St(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var l=!1,i=!1,s;for(s in n)if(n.hasOwnProperty(s)){var f=n[s];if(f!=null)switch(s){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Le(e,t,s,f,n,null)}}i&&Le(e,t,"srcSet",n.srcSet,n,null),l&&Le(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var v=s=f=i=null,E=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var B=n[l];if(B!=null)switch(l){case"name":i=B;break;case"type":f=B;break;case"checked":E=B;break;case"defaultChecked":z=B;break;case"value":s=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:Le(e,t,l,B,n,null)}}Cd(e,s,v,E,z,f,i,!1);return;case"select":xe("invalid",e),l=f=s=null;for(i in n)if(n.hasOwnProperty(i)&&(v=n[i],v!=null))switch(i){case"value":s=v;break;case"defaultValue":f=v;break;case"multiple":l=v;default:Le(e,t,i,v,n,null)}t=s,n=f,e.multiple=!!l,t!=null?Ma(e,!!l,t,!1):n!=null&&Ma(e,!!l,n,!0);return;case"textarea":xe("invalid",e),s=i=l=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":l=v;break;case"defaultValue":i=v;break;case"children":s=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(c(91));break;default:Le(e,t,f,v,n,null)}Md(e,l,i,s);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Le(e,t,E,l,n,null));return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(l=0;l<du.length;l++)xe(du[l],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Le(e,t,z,l,n,null)}return;default:if(Hc(t)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&Lr(e,t,B,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&Le(e,t,v,l,n,null))}var s1={};function c1(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,f=null,v=null,E=null,z=null,B=null;for(L in n){var X=n[L];if(n.hasOwnProperty(L)&&X!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":E=X;default:l.hasOwnProperty(L)||Le(e,t,L,null,l,X)}}for(var A in l){var L=l[A];if(X=n[A],l.hasOwnProperty(A)&&(L!=null||X!=null))switch(A){case"type":L!==X&&(Ne=!0),s=L;break;case"name":L!==X&&(Ne=!0),i=L;break;case"checked":L!==X&&(Ne=!0),z=L;break;case"defaultChecked":L!==X&&(Ne=!0),B=L;break;case"value":L!==X&&(Ne=!0),f=L;break;case"defaultValue":L!==X&&(Ne=!0),v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(c(137,t));break;default:L!==X&&Le(e,t,A,L,l,X)}}Uc(e,f,v,E,z,B,s,i);return;case"select":L=f=v=A=null;for(s in n)if(E=n[s],n.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":L=E;default:l.hasOwnProperty(s)||Le(e,t,s,null,l,E)}for(i in l)if(s=l[i],E=n[i],l.hasOwnProperty(i)&&(s!=null||E!=null))switch(i){case"value":s!==E&&(Ne=!0),A=s;break;case"defaultValue":s!==E&&(Ne=!0),v=s;break;case"multiple":s!==E&&(Ne=!0),f=s;default:s!==E&&Le(e,t,i,s,l,E)}t=v,n=f,l=L,A!=null?Ma(e,!!n,A,!1):!!l!=!!n&&(t!=null?Ma(e,!!n,t,!0):Ma(e,!!n,n?[]:"",!1));return;case"textarea":L=A=null;for(v in n)if(i=n[v],n.hasOwnProperty(v)&&i!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Le(e,t,v,null,l,i)}for(f in l)if(i=l[f],s=n[f],l.hasOwnProperty(f)&&(i!=null||s!=null))switch(f){case"value":i!==s&&(Ne=!0),A=i;break;case"defaultValue":i!==s&&(Ne=!0),L=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==s&&Le(e,t,f,i,l,s)}Nd(e,A,L);return;case"option":for(var ee in n)A=n[ee],n.hasOwnProperty(ee)&&A!=null&&!l.hasOwnProperty(ee)&&(ee==="selected"?e.selected=!1:Le(e,t,ee,null,l,A));for(E in l)A=l[E],L=n[E],l.hasOwnProperty(E)&&A!==L&&(A!=null||L!=null)&&(E==="selected"?(A!==L&&(Ne=!0),e.selected=A&&typeof A!="function"&&typeof A!="symbol"):Le(e,t,E,A,l,L));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 ie in n)A=n[ie],n.hasOwnProperty(ie)&&A!=null&&!l.hasOwnProperty(ie)&&Le(e,t,ie,null,l,A);for(z in l)if(A=l[z],L=n[z],l.hasOwnProperty(z)&&A!==L&&(A!=null||L!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:Le(e,t,z,A,l,L)}return;default:if(Hc(t)){for(var ye in n)A=n[ye],n.hasOwnProperty(ye)&&A!==void 0&&!l.hasOwnProperty(ye)&&Lr(e,t,ye,void 0,l,A);for(B in l)A=l[B],L=n[B],!l.hasOwnProperty(B)||A===L||A===void 0&&L===void 0||Lr(e,t,B,A,l,L);return}}for(var w in n)A=n[w],n.hasOwnProperty(w)&&A!=null&&!l.hasOwnProperty(w)&&Le(e,t,w,null,l,A);for(X in l)A=l[X],L=n[X],!l.hasOwnProperty(X)||A===L||A==null&&L==null||Le(e,t,X,A,l,L)}function Lp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function o1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],s=i.transferSize,f=i.initiatorType,v=i.duration;if(s&&v&&Lp(f)){for(f=0,v=i.responseEnd,l+=1;l<n.length;l++){var E=n[l],z=E.startTime;if(z>v)break;var B=E.transferSize,X=E.initiatorType;B&&Lp(X)&&(E=E.responseEnd,f+=B*(E<v?1:(v-z)/(E-z)))}if(--l,t+=8*(s+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hr=null,Br=null;function mu(e){return e.nodeType===9?e:e.ownerDocument}function Hp(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 Bp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function qp(e,t,n,l){return n=mu(n).createElement(e),n[pt]=l,n[wt]=t,St(n,e,t),ot(n),n}function qr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vr=null;function r1(){var e=window.event;return e&&e.type==="popstate"?e===Vr?!1:(Vr=e,!0):(Vr=null,!1)}var Gr=typeof setTimeout=="function"?setTimeout:void 0,f1=typeof clearTimeout=="function"?clearTimeout:void 0,Vp=typeof Promise=="function"?Promise:void 0,Gp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Gr,d1=typeof queueMicrotask=="function"?queueMicrotask:typeof Vp<"u"?function(e){return Vp.resolve(null).then(e).catch(h1)}:Gr;function h1(e){setTimeout(function(){throw e})}function wl(e){return e==="head"}function Yp(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),di(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Fr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Fr(n);for(var s=n.firstChild;s;){var f=s.nextSibling,v=s.nodeName;s[ji]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=f}}else n==="body"&&Fr(e.ownerDocument.body);n=i}while(n);di(t)}function Xp(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Qp(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var i=l=0;i<t.length;i++){var s=t[i];0<s.width&&0<s.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Zp(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function m1(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Yr(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return m1(t,n,e)}function p1(e){return e.documentElement.clientHeight}function v1(e){this.addEventListener("load",e),this.addEventListener("error",e)}function g1(e,t,n,l,i,s,f,v,E){var z=t.nodeType===9?t:t.ownerDocument;try{var B=z.startViewTransition({update:function(){var A=z.defaultView,L=A.navigation&&A.navigation.transition,ee=z.fonts.status;l();var ie=[];if(ee==="loaded"&&(p1(z),z.fonts.status==="loading"&&ie.push(z.fonts.ready)),ee=ie.length,e!==null)for(var ye=e.suspenseyImages,w=0,N=0;N<ye.length;N++){var j=ye[N];if(!j.complete){var Y=j.getBoundingClientRect();if(0<Y.bottom&&0<Y.right&&Y.top<A.innerHeight&&Y.left<A.innerWidth){if(w+=dv(j),w>Js){ie.length=ee;break}j=new Promise(v1.bind(j)),ie.push(j)}}}if(0<ie.length)return A=Promise.race([Promise.all(ie),new Promise(function(le){return setTimeout(le,500)})]).then(i,i),(L?Promise.allSettled([L.finished,A]):A).then(s,s);if(i(),L)return L.finished.then(s,s);s()},types:n});z.__reactViewTransition=B;var X=[];return B.ready.then(function(){for(var A=z.documentElement.getAnimations({subtree:!0}),L=0;L<A.length;L++){var ee=A[L],ie=ee.effect,ye=ie.pseudoElement;if(ye!=null&&ye.startsWith("::view-transition")){X.push(ee),ee=ie.getKeyframes();for(var w=ye=void 0,N=!0,j=0;j<ee.length;j++){var Y=ee[j],le=Y.width;if(ye===void 0)ye=le;else if(ye!==le){N=!1;break}if(le=Y.height,w===void 0)w=le;else if(w!==le){N=!1;break}delete Y.width,delete Y.height,Y.transform==="none"&&delete Y.transform}N&&ye!==void 0&&w!==void 0&&(ie.setKeyframes(ee),N=getComputedStyle(ie.target,ie.pseudoElement),N.width!==ye||N.height!==w)&&(N=ee[0],N.width=ye,N.height=w,N=ee[ee.length-1],N.width=ye,N.height=w,ie.setKeyframes(ee))}}f()},function(A){z.__reactViewTransition===B&&(z.__reactViewTransition=null);try{typeof A=="object"&&A!==null&&A.name==="InvalidStateError"&&(A.message==="View transition was skipped because document visibility state is hidden."||A.message==="Skipping view transition because document visibility state has become hidden."||A.message==="Skipping view transition because viewport size changed."||A.message==="Transition was aborted because of invalid state")&&(A=null),A!==null&&E(A)}finally{l(),i(),f()}}),B.finished.finally(function(){for(var A=0;A<X.length;A++)X[A].cancel();z.__reactViewTransition===B&&(z.__reactViewTransition=null),v()}),B}catch{return l(),i(),f(),null}}function ma(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ma.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:V({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},ma.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),l=[],i=0;i<n.length;i++){var s=n[i].effect;s!==null&&s.target===e&&s.pseudoElement===t&&l.push(n[i])}return l},ma.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Kp(e){return{name:e,group:new ma("group",e),imagePair:new ma("image-pair",e),old:new ma("old",e),new:new ma("new",e)}}function kt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}kt.prototype.addEventListener=function(e,t,n){var l=null,i=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var s=this._eventListeners;if(Jp(s,e,t,n)===-1){var f=this,v=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(v=function(E){f.removeEventListener(e,t,n),typeof t=="function"?t.call(this,E):t.handleEvent(E)}),l!==null&&(i=f.removeEventListener.bind(f,e,t,n),l.addEventListener("abort",i,{once:!0}),i=l.removeEventListener.bind(l,"abort",i)),l=ui(n),s.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:v,cleanup:i}),g(this._fragmentFiber.child,!1,y1,e,v,l)}this._eventListeners=s}};function y1(e,t,n,l){return M(e).addEventListener(t,n,l),!1}kt.prototype.removeEventListener=function(e,t,n){var l=this._eventListeners;if(l!==null&&(t=Jp(l,e,t,n),t!==-1)){var i=l[t];n=i.attachedListener;var s=i.cleanup;i=ui(i.optionsOrUseCapture),g(this._fragmentFiber.child,!1,b1,e,n,i),l.splice(t,1),s!==null&&s()}};function b1(e,t,n,l){return M(e).removeEventListener(t,n,l),!1}function ui(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function kp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Jp(e,t,n,l){if(e.length===0)return-1;l=kp(l);for(var i=0;i<e.length;i++){var s=e[i];if(s.type===t&&s.listener===n&&kp(s.optionsOrUseCapture)===l)return i}return-1}kt.prototype.dispatchEvent=function(e){var t=_(this._fragmentFiber);if(t===null)return!0;t=M(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var i=0;i<n.length;i++){var s=n[i];l.addEventListener(s.type,s.attachedListener,ui(s.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),n)for(i=0;i<n.length;i++)s=n[i],l.removeEventListener(s.type,s.attachedListener,ui(s.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)},kt.prototype.focus=function(e){g(this._fragmentFiber.child,!0,Fp,e,void 0,void 0)};function Fp(e,t){return e.tag===6?!1:(e=M(e),z1(e,t))}kt.prototype.focusLast=function(e){var t=[];g(this._fragmentFiber.child,!0,Xr,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Fp(t[n],e);n--);};function Xr(e,t){return t.push(e),!1}kt.prototype.blur=function(){var e=_(this._fragmentFiber);e!==null&&(e=M(e),e=mu(e).activeElement,e!==null&&g(this._fragmentFiber.child,!1,S1,e,void 0,void 0))};function S1(e,t){return e.tag===6?!1:(e=M(e),e===t||e.contains(t)?(t.blur(),!0):!1)}kt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),g(this._fragmentFiber.child,!1,x1,e,void 0,void 0)};function x1(e,t){return e.tag===6||(e=M(e),t.observe(e)),!1}kt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),g(this._fragmentFiber.child,!1,_1,e,void 0,void 0);for(var n=t=0;n<hn.length;n++){var l=hn[n];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):hn[t++]=l}hn.length=t}};function _1(e,t){return e.tag===6||(e=M(e),t.unobserve(e)),!1}var hn=[],Qr=!1;function E1(e,t,n){hn.push({fragmentInstance:e,observer:t,instance:n}),Qr||(Qr=!0,j1(function(){Qr=!1;var l=hn;hn=[];for(var i=0;i<l.length;i++){var s=l[i];s.observer.unobserve(s.instance)}}))}kt.prototype.getClientRects=function(){var e=[];return g(this._fragmentFiber.child,!1,O1,e,void 0,void 0),e};function O1(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=M(e),t.push.apply(t,e.getClientRects());return!1}kt.prototype.getRootNode=function(e){var t=_(this._fragmentFiber);return t===null?this:M(t).getRootNode(e)},kt.prototype.compareDocumentPosition=function(e){var t=_(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];g(this._fragmentFiber.child,!1,Xr,n,void 0,void 0);var l=M(t);if(n.length===0){if(n=l,O(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=l=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=T(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=M(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=M(n[0]),i=M(n[n.length-1]);var s=O(this._fragmentFiber)?t.parentElement:l;if(s==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=s.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,s=s.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var f=t.compareDocumentPosition(e),v=i.compareDocumentPosition(e),E=f&Node.DOCUMENT_POSITION_CONTAINED_BY||v&Node.DOCUMENT_POSITION_CONTAINED_BY;return v=l&&s&&f&Node.DOCUMENT_POSITION_FOLLOWING&&v&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||s&&i===e||E||v?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!s&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:f,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||T1(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function T1(e,t,n,l,i){var s=kl(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!s)e:{for(;s!==null;){if(s.tag===7&&(s===t||s.alternate===t)){n=!0;break e}s=s.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(s===null)return s=i.ownerDocument,i===s||i===s.documentElement||i===s.body;e:{for(s=t,t=_(t);s!==null;){if(!(s.tag!==5&&s.tag!==3&&s.tag!==27||s!==t&&s.alternate!==t)){s=!0;break e}s=s.return}s=!1}return s}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!s)&&!(t=s===n)&&(t=k(n,s,Q),t===null?t=!1:(g(t,!0,U,s,n),s=D,D=null,t=s!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!s)&&!(t=s===l)&&(t=k(l,s,Q),t===null?t=!1:(g(t,!0,G,s,l),s=D,R=D=null,t=s!==null)),t):!1}function $p(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}kt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];g(this._fragmentFiber.child,!1,Xr,t,void 0,void 0);var n=e!==!1;if(t.length===0){var l=T(this._fragmentFiber);if(l=n?l[1]||l[0]||_(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=M(l),$p(e,n);return}if(l=M(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=n?t.length-1:0;l!==(n?-1:t.length);){var i=t[l];i.tag===6?(i=M(i),$p(i,n)):M(i).scrollIntoView(e),l+=n?-1:1}};function C1(e,t){return e=M(e),Wp(e,t),!1}function Wp(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Pp(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];e.addEventListener(i.type,i.attachedListener,ui(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(s){for(var f=0,v=0;v<hn.length;v++){var E=hn[v];(E.fragmentInstance!==t||E.observer!==s||E.instance!==e)&&(hn[f++]=E)}hn.length=f,s.observe(e)}),Wp(e,t))}function N1(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];e.removeEventListener(i.type,i.attachedListener,ui(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(s){typeof s.rootMargin=="string"?E1(t,s,e):s.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Zr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Zr(n),Lu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function M1(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ji])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=ln(e.nextSibling),e===null)break}return null}function A1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ln(e.nextSibling),e===null))return null;return e}function Ip(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ln(e.nextSibling),e===null))return null;return e}function Kr(e){return e.data==="$?"||e.data==="$~"}function kr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function w1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jr=null;function ev(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ln(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function tv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function z1(e,t){function n(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return l}function j1(e){Gp(function(){Gp(function(t){return e(t)})})}function nv(e,t,n){switch(t=mu(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function lv(e,t,n){for(var l in n){var i=n[l];n.hasOwnProperty(l)&&i!=null&&Le(e,t,l,null,s1,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===yn&&(e.onclick=null),Lu(e)}function Fr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lu(e)}var an=new Map,av=new Set;function pu(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Wn=de.d;de.d={f:R1,r:D1,D:U1,C:L1,L:H1,m:B1,X:V1,S:q1,M:G1};function R1(){var e=Wn.f(),t=qs();return e||t}function D1(e){var t=Ta(e);t!==null&&t.tag===5&&t.type==="form"?um(t):Wn.r(e)}var si=typeof document>"u"?null:document;function iv(e,t,n){var l=si;if(l&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),av.has(i)||(av.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),St(t,"link",e),ot(t),l.head.appendChild(t)))}}function U1(e){Wn.D(e),iv("dns-prefetch",e,null)}function L1(e,t){Wn.C(e,t),iv("preconnect",e,t)}function H1(e,t,n){Wn.L(e,t,n);var l=si;if(l&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+$t(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+$t(n.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var s=i;switch(t){case"style":s=ci(e);break;case"script":s=oi(e)}if(!(an.has(s)||(e=V({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),an.set(s,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(vu(s))||t==="script"&&l.querySelector(gu(s))))){var f=l.createElement("link");St(f,"link",e),t==="style"&&(f[Uu]=!0,f.onload=f.onerror=function(){yd(f)}),ot(f),l.head.appendChild(f)}}}function B1(e,t){Wn.m(e,t);var n=si;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(l)+'"][href="'+$t(e)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=oi(e)}if(!an.has(s)&&(e=V({rel:"modulepreload",href:e},t),an.set(s,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gu(s)))return}l=n.createElement("link"),St(l,"link",e),ot(l),n.head.appendChild(l)}}}function q1(e,t,n){Wn.S(e,t,n);var l=si;if(l&&e){var i=Ca(l).hoistableStyles,s=ci(e);t=t||"default";var f=i.get(s);if(!f){var v={loading:0,preload:null};if(f=l.querySelector(vu(s)))v.loading=5;else{e=V({rel:"stylesheet",href:e,"data-precedence":t},n),(n=an.get(s))&&$r(e,n);var E=f=l.createElement("link");ot(E),St(E,"link",e),E._p=new Promise(function(z,B){E.onload=z,E.onerror=B}),E.addEventListener("load",function(){v.loading|=1}),E.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ks(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:v},i.set(s,f)}}}function V1(e,t){Wn.X(e,t);var n=si;if(n&&e){var l=Ca(n).hoistableScripts,i=oi(e),s=l.get(i);s||(s=n.querySelector(gu(i)),s||(e=V({src:e,async:!0},t),(t=an.get(i))&&Wr(e,t),s=n.createElement("script"),ot(s),St(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function G1(e,t){Wn.M(e,t);var n=si;if(n&&e){var l=Ca(n).hoistableScripts,i=oi(e),s=l.get(i);s||(s=n.querySelector(gu(i)),s||(e=V({src:e,async:!0,type:"module"},t),(t=an.get(i))&&Wr(e,t),s=n.createElement("script"),ot(s),St(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function uv(e,t,n,l){var i=(i=ae.current)?pu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ci(n.href),t=Ca(i).hoistableStyles,l=t.get(n),l||(l={type:"style",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ci(n.href);var s=Ca(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(vu(e)))?s._p||(f.instance=s,f.state.loading=5):(s=an.get(e),s||(s={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},an.set(e,s)),Y1(i,e,s,f.state))),t&&l===null)throw Error(c(528,""));return f}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=oi(n),t=Ca(i).hoistableScripts,l=t.get(n),l||(l={type:"script",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function ci(e){return'href="'+$t(e)+'"'}function vu(e){return'link[rel="stylesheet"]['+e+"]"}function sv(e){return V({},e,{"data-precedence":e.precedence,precedence:null})}function Y1(e,t,n,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Uu]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[Uu]=!0,t.onload=t.onerror=yd.bind(null,t),St(t,"link",n),ot(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function oi(e){return'[src="'+$t(e)+'"]'}function gu(e){return"script[async]"+e}function cv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+$t(n.href)+'"]');if(l)return t.instance=l,ot(l),l;var i=V({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ot(l),St(l,"style",i),Ks(l,n.precedence,e),t.instance=l;case"stylesheet":i=ci(n.href);var s=e.querySelector(vu(i));if(s)return t.state.loading|=4,t.instance=s,ot(s),s;l=sv(n),(i=an.get(i))&&$r(l,i),s=(e.ownerDocument||e).createElement("link"),ot(s);var f=s;return f._p=new Promise(function(v,E){f.onload=v,f.onerror=E}),St(s,"link",l),t.state.loading|=4,Ks(s,n.precedence,e),t.instance=s;case"script":return s=oi(n.src),(i=e.querySelector(gu(s)))?(t.instance=i,ot(i),i):(l=n,(i=an.get(s))&&(l=V({},n),Wr(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),ot(i),St(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ks(l,n.precedence,e));return t.instance}function Ks(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,f=0;f<l.length;f++){var v=l[f];if(v.dataset.precedence===t)s=v;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function $r(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ks=null;function ov(e,t,n){if(ks===null){var l=new Map,i=ks=new Map;i.set(n,l)}else i=ks,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var s=n[i];if(!(s[ji]||s[pt]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var v=l.get(f);v?v.push(s):l.set(f,[s])}}return l}function Pr(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function X1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rv(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function fv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function dv(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function hv(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=dv(t),e.suspenseyImages.push(t)),e=K1.bind(e),t.decode().then(e,e))}function Q1(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=ci(l.href),s=t.querySelector(vu(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,ot(s);return}s=t.ownerDocument||t,l=sv(l),(i=an.get(i))&&$r(l,i),s=s.createElement("link"),ot(s);var f=s;f._p=new Promise(function(v,E){f.onload=v,f.onerror=E}),St(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=yu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Js=0;function Z1(e,t){return e.stylesheets&&e.count===0&&$s(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&$s(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Js===0&&(Js=62500*o1());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$s(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Js?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function mv(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)$s(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function yu(){this.count--,mv(this)}function K1(){this.imgCount--,mv(this)}var Fs=null;function $s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fs=new Map,t.forEach(k1,e),Fs=null,yu.call(e))}function k1(e,t){if(!(t.state.loading&4)){var n=Fs.get(e);if(n)var l=n.get(null);else{n=new Map,Fs.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var f=i[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),s=n.get(f)||l,s===l&&n.set(null,i),n.set(f,i),this.count++,l=yu.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ri={$$typeof:he,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function J1(e,t,n,l,i,s,f,v,E){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=zc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.hiddenUpdates=zc(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.transitionTypes=null,this.incompleteTransitions=new Map}function pv(e,t,n,l,i,s,f,v,E,z,B,X){return e=new J1(e,t,n,f,E,z,B,X,v),t=1,s===!0&&(t|=24),s=zt(3,null,null,t),e.current=s,s.stateNode=e,t=ho(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},go(s),e}function vv(e){return e?(e=La,e):La}function gv(e,t,n,l,i,s){i=vv(i),l.context===null?l.context=i:l.pendingContext=i,l=yl(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=bl(e,l,t),n!==null&&(Ut(n,e,t),Fi(n,e,t))}function yv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ir(e,t){yv(e,t),(e=e.alternate)&&yv(e,t)}function bv(e){if(e.tag===13||e.tag===31){var t=Wl(e,67108864);t!==null&&Ut(t,e,67108864),Ir(e,67108864)}}function Sv(e){if(e.tag===13||e.tag===31){var t=Kt();t=jc(t);var n=Wl(e,t);n!==null&&Ut(n,e,t),Ir(e,t)}}var fi=!0;function F1(e,t,n,l){var i=ne.T;ne.T=null;var s=de.p;try{de.p=2,ef(e,t,n,l)}finally{de.p=s,ne.T=i}}function $1(e,t,n,l){var i=ne.T;ne.T=null;var s=de.p;try{de.p=8,ef(e,t,n,l)}finally{de.p=s,ne.T=i}}function ef(e,t,n,l){if(fi){var i=tf(l);if(i===null)Ur(e,t,l,Ws,n),_v(e,l);else if(P1(i,e,t,n,l))l.stopPropagation();else if(_v(e,l),t&4&&-1<W1.indexOf(e)){for(;i!==null;){var s=Ta(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=Kl(s.pendingLanes);if(f!==0){var v=s;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var E=1<<31-qt(f);v.entanglements[1]|=E,f&=~E}Mn(s),(Ae&6)===0&&(Ls=tt()+500,fu(0))}}break;case 31:case 13:v=Wl(s,2),v!==null&&Ut(v,s,2),qs(),Ir(s,2)}if(s=tf(l),s===null&&Ur(e,t,l,Ws,n),s===i)break;i=s}i!==null&&l.stopPropagation()}else Ur(e,t,l,null,n)}}function tf(e){return e=qc(e),nf(e)}var Ws=null;function nf(e){if(Ws=null,e=kl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ws=e,null}function xv(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cl()){case Dn:return 2;case Un:return 8;case Ln:case _e:return 32;case qe:return 268435456;default:return 32}default:return 32}}var lf=!1,zl=null,jl=null,Rl=null,bu=new Map,Su=new Map,Dl=[],W1="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 _v(e,t){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Su.delete(t.pointerId)}}function xu(e,t,n,l,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Ta(t),t!==null&&bv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function P1(e,t,n,l,i){switch(t){case"focusin":return zl=xu(zl,e,t,n,l,i),!0;case"dragenter":return jl=xu(jl,e,t,n,l,i),!0;case"mouseover":return Rl=xu(Rl,e,t,n,l,i),!0;case"pointerover":var s=i.pointerId;return bu.set(s,xu(bu.get(s)||null,e,t,n,l,i)),!0;case"gotpointercapture":return s=i.pointerId,Su.set(s,xu(Su.get(s)||null,e,t,n,l,i)),!0}return!1}function Ev(e){var t=kl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,pd(e.priority,function(){Sv(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,pd(e.priority,function(){Sv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ps(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tf(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Bc=l,n.target.dispatchEvent(l),Bc=null}else return t=Ta(n),t!==null&&bv(t),e.blockedOn=n,!1;t.shift()}return!0}function Ov(e,t,n){Ps(e)&&n.delete(t)}function I1(){lf=!1,zl!==null&&Ps(zl)&&(zl=null),jl!==null&&Ps(jl)&&(jl=null),Rl!==null&&Ps(Rl)&&(Rl=null),bu.forEach(Ov),Su.forEach(Ov)}function Is(e,t){e.blockedOn===t&&(e.blockedOn=null,lf||(lf=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,I1)))}var ec=null;function Tv(e){ec!==e&&(ec=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){ec===e&&(ec=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(nf(l||n)===null)continue;break}var s=Ta(n);s!==null&&(e.splice(t,3),t-=3,Bo(s,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function di(e){function t(E){return Is(E,e)}zl!==null&&Is(zl,e),jl!==null&&Is(jl,e),Rl!==null&&Is(Rl,e),bu.forEach(t),Su.forEach(t);for(var n=0;n<Dl.length;n++){var l=Dl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Dl.length&&(n=Dl[0],n.blockedOn===null);)Ev(n),n.blockedOn===null&&Dl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],s=n[l+1],f=i[wt]||null;if(typeof s=="function")f||Tv(n);else if(f){var v=null;if(s&&s.hasAttribute("formAction")){if(i=s,f=s[wt]||null)v=f.formAction;else if(nf(i)!==null)continue}else v=f.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),Tv(n)}}}function Cv(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function af(e){this._internalRoot=e}tc.prototype.render=af.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,l=Kt();gv(n,l,e,t,null,null)},tc.prototype.unmount=af.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gv(e.current,2,null,e,null,null),qs(),t[Oa]=null}};function tc(e){this._internalRoot=e}tc.prototype.unstable_scheduleHydration=function(e){if(e){var t=md();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dl.length&&t!==0&&t<Dl[n].priority;n++);Dl.splice(n,0,e),n===0&&Ev(e)}};var Nv=a.version;if(Nv!=="19.3.1")throw Error(c(527,Nv,"19.3.1"));de.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=b(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var eS={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:ne,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{Zl=nc.inject(eS),Bt=nc}catch{}}return Eu.createRoot=function(e,t){if(!r(e))throw Error(c(299));var n=!1,l="",i=vm,s=gm,f=ym;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=pv(e,1,!1,null,null,n,l,null,i,s,f,Cv),e[Oa]=t.current,Dr(e),new af(t)},Eu.hydrateRoot=function(e,t,n){if(!r(e))throw Error(c(299));var l=!1,i="",s=vm,f=gm,v=ym,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=pv(e,1,!0,t,n??null,l,i,E,s,f,v,Cv),t.context=vv(null),n=t.current,l=Kt(),l=jc(l),i=yl(l),i.callback=null,bl(n,i,l),n=l,t.current.lanes=n,zi(t,n),Mn(t),e[Oa]=t.current,Dr(e),new tc(t)},Eu.version="19.3.1",Eu}var Rv;function rS(){if(Rv)return sf.exports;Rv=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(a){console.error(a)}}return u(),sf.exports=oS(),sf.exports}var fS=rS();const dS="modulepreload",hS=function(u){return"/"+u},Dv={},Mg=function(a,o,c){let r=Promise.resolve();if(o&&o.length>0){let y=function(b){return Promise.all(b.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");r=y(o.map(b=>{if(b=hS(b),b in Dv)return;Dv[b]=!0;const x=b.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${b}"]${g}`))return;const _=document.createElement("link");if(_.rel=x?"stylesheet":dS,x||(_.as="script"),_.crossOrigin="",_.href=b,m&&_.setAttribute("nonce",m),document.head.appendChild(_),x)return new Promise((O,T)=>{_.addEventListener("load",O),_.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${b}`)))})}))}function d(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return r.then(h=>{for(const m of h||[])m.status==="rejected"&&d(m.reason);return a().catch(d)})};const mS=u=>u?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function pS(u,a,o=[]){if(a==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:mS(u),size:24,node:a,...o.length>0?{aliases:o}:{}}}const vS=u=>{let a="",o=!1;for(const c of u){if(c==="-"||c==="_"||c<=" "){o=a.length>0;continue}a.length===0?a+=c.toLowerCase():a+=o?c.toUpperCase():c,o=!1}return a};const gS=u=>{const a=vS(u);return a.charAt(0).toUpperCase()+a.slice(1)};const Nf=(...u)=>u.filter((a,o,c)=>!!a&&a.trim()!==""&&c.indexOf(a)===o).join(" ").trim();const pa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function rf(u){return u!=null}function yS(u,a={}){const o=a.attributeNames??{},c=_=>o[_]??_,r=u.size??u.width??pa.width,d=u.size??u.height??pa.height,h=u.aliases?.filter(_=>typeof _=="string"&&_.trim()!=="").map(_=>`lucide-${_}`)??[],m=[...u.name?[`lucide-${u.name}`]:[],...h],y=a.className?.split(" ").filter(Boolean)??[],b=a.includeDefaultClasses===!1?Nf(...y):Nf("lucide",...m,...y),x=a.absoluteStrokeWidth?Number(a.strokeWidth??pa["stroke-width"])*Number(u.size??u.width??pa.width)/Number(a.size??a.width??pa.width):a.strokeWidth??pa["stroke-width"];return["svg",{...Object.entries(pa).reduce((_,[O,T])=>(_[c(O)]=T,_),{}),..."color"in a&&a.color&&{[c("stroke")]:a.color},..."size"in a&&rf(a.size)&&{[c("width")]:a.size,[c("height")]:a.size},..."width"in a&&rf(a.width)&&{[c("width")]:a.width},..."height"in a&&rf(a.height)&&{[c("height")]:a.height},[c("stroke-width")]:x,...b&&{[c("class")]:b},[c("viewBox")]:`0 0 ${r} ${d}`,...a.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in a&&a.attributes},u.node.map(_=>{const[O,T,C]=_,M=a.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...T}:T;return C?[O,M,C]:[O,M]})]}function bS(u,a={}){return yS(u,{...a,attributeNames:{...a.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}const SS=u=>{for(const a in u)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1},xS=S.createContext({}),_S=()=>S.useContext(xS),ES=S.forwardRef(({color:u,size:a,width:o,height:c,strokeWidth:r,absoluteStrokeWidth:d,nonScalingStroke:h,className:m="",children:y,iconNode:b=[],icon:x={node:b,aliases:[],size:24},...g},_)=>{const{size:O=24,strokeWidth:T=2,absoluteStrokeWidth:C=!1,nonScalingStroke:M=!1,color:D="currentColor",className:R=""}=_S()??{},U=!!y||SS(g),[G,Q,k=[]]=bS(x,{color:u??D,width:o??a??O,height:c??a??O,strokeWidth:r??T,absoluteStrokeWidth:d??C,nonScalingStroke:h??M,className:Nf(R,m),hasA11yProp:U,attributes:g});return S.createElement(G,{ref:_,...Q},[...k.map(([V,te])=>S.createElement(V,te)),...Array.isArray(y)?y:[y]])});function Nt(u,a=[],o=[]){const c=typeof u=="string"?pS(u,a,o):u,r=S.forwardRef(({className:d,...h},m)=>S.createElement(ES,{ref:m,icon:c,className:d,...h}));return c.name&&(r.displayName=gS(c.name)),r}const Ag={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Ag.node;const Mf=Nt(Ag);const wg={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};wg.node;const zg=Nt(wg);const jg={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};jg.node;const Qf=Nt(jg);const Rg={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Rg.node;const OS=Nt(Rg);const Dg={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};Dg.node;const Ei=Nt(Dg);const Ug={name:"file-up",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]};Ug.node;const TS=Nt(Ug);const Lg={name:"film",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]};Lg.node;const Zf=Nt(Lg);const Hg={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};Hg.node;const CS=Nt(Hg);const Bg={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};Bg.node;const NS=Nt(Bg);const qg={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};qg.node;const MS=Nt(qg);const Vg={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};Vg.node;const AS=Nt(Vg);const Gg={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Gg.node;const wS=Nt(Gg);const Yg={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};Yg.node;const oc=Nt(Yg);const Xg={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};Xg.node;const Qg=Nt(Xg);const Zg={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Zg.node;const Af=Nt(Zg);async function Vl(u,a){const o=await fetch(u,a);if(!o.ok){let c=o.statusText;try{const r=await o.json();c=typeof r.detail=="string"?r.detail:c}catch{}throw new Error(c)}return await o.json()}const zS=()=>Vl("/api/voices"),jS=()=>Vl("/api/tones"),RS=()=>Vl("/api/jobs"),DS=u=>Vl("/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}),Uv=u=>Vl(`/api/jobs/${u}`,{method:"DELETE"}),US=()=>Vl("/api/jobs",{method:"DELETE"}),LS=u=>Vl("/api/jobs/merge",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:u})}),HS=u=>Vl("/api/timeline/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clips:u})});var ff={exports:{}},df={};var Lv;function BS(){if(Lv)return df;Lv=1;var u=Xf().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return df.c=function(a){return u.H.useMemoCache(a)},df}var Hv;function qS(){return Hv||(Hv=1,ff.exports=BS()),ff.exports}var Gl=qS();const Kg=S.createContext(null);function _c(){const u=S.useContext(Kg);if(u===null)throw new Error("useLocale must be used within a LocaleProvider");return u}function Yl(){return _c().t}function Bv(u){if(!Number.isFinite(u)||u<=0)return"0:00";const a=Math.floor(u/60),o=Math.floor(u%60);return`${a}:${String(o).padStart(2,"0")}`}function VS(u){const a=Gl.c(50),{src:o,variant:c,preload:r}=u,d=c===void 0?"dark":c,h=r===void 0?"metadata":r,m=Yl(),y=S.useRef(null),[b,x]=S.useState(!1),[g,_]=S.useState(0),[O,T]=S.useState(0);let C;a[0]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{x(!1),_(0),T(0)},a[0]=C):C=a[0];let M;a[1]!==o?(M=[o],a[1]=o,a[2]=M):M=a[2],S.useEffect(C,M);const D=O>0?Math.min(1,g/O):0;let R;a[3]===Symbol.for("react.memo_cache_sentinel")?(R=function(){const de=y.current;de&&(de.paused?de.play().catch(()=>x(!1)):de.pause())},a[3]=R):R=a[3];const U=R;let G;a[4]===Symbol.for("react.memo_cache_sentinel")?(G=function(de){const $=y.current;$&&($.currentTime=de,_(de))},a[4]=G):G=a[4];const Q=G,k=`audio-player audio-player--${d}`;let V;a[5]!==b||a[6]!==m?(V=m(b?"player.pause":"player.play"),a[5]=b,a[6]=m,a[7]=V):V=a[7];let te;a[8]!==b?(te=b?p.jsx(NS,{size:11,fill:"currentColor"}):p.jsx(MS,{size:11,fill:"currentColor"}),a[8]=b,a[9]=te):te=a[9];let se;a[10]!==V||a[11]!==te?(se=p.jsx("button",{type:"button",className:"audio-player__button","aria-label":V,onClick:U,children:te}),a[10]=V,a[11]=te,a[12]=se):se=a[12];const ue=O||0,re=Math.min(g,O||0);let F;a[13]!==m?(F=m("player.seek"),a[13]=m,a[14]=F):F=a[14];const oe=`${D*100}%`;let fe;a[15]!==oe?(fe={"--fill":oe},a[15]=oe,a[16]=fe):fe=a[16];const he=fe;let Z;a[17]===Symbol.for("react.memo_cache_sentinel")?(Z=ne=>Q(Number(ne.target.value)),a[17]=Z):Z=a[17];let P;a[18]!==ue||a[19]!==re||a[20]!==F||a[21]!==he?(P=p.jsx("input",{className:"audio-player__range",type:"range",min:0,max:ue,step:.01,value:re,"aria-label":F,style:he,onChange:Z}),a[18]=ue,a[19]=re,a[20]=F,a[21]=he,a[22]=P):P=a[22];let J;a[23]!==g?(J=Bv(g),a[23]=g,a[24]=J):J=a[24];let W;a[25]!==J?(W=p.jsx("span",{children:J}),a[25]=J,a[26]=W):W=a[26];let K;a[27]!==O?(K=Bv(O),a[27]=O,a[28]=K):K=a[28];let ve;a[29]!==K?(ve=p.jsx("span",{children:K}),a[29]=K,a[30]=ve):ve=a[30];let He;a[31]!==W||a[32]!==ve?(He=p.jsxs("div",{className:"audio-player__time","aria-hidden":"true",children:[W,ve]}),a[31]=W,a[32]=ve,a[33]=He):He=a[33];let we;a[34]!==P||a[35]!==He?(we=p.jsxs("div",{className:"audio-player__timeline",children:[P,He]}),a[34]=P,a[35]=He,a[36]=we):we=a[36];let Me,Be,$e,Qe,st;a[37]===Symbol.for("react.memo_cache_sentinel")?(Me=()=>x(!0),Be=()=>x(!1),$e=()=>{x(!1),_(0)},Qe=ne=>_(ne.currentTarget.currentTime),st=ne=>{const de=ne.currentTarget.duration;Number.isFinite(de)&&T(de)},a[37]=Me,a[38]=Be,a[39]=$e,a[40]=Qe,a[41]=st):(Me=a[37],Be=a[38],$e=a[39],Qe=a[40],st=a[41]);let Te;a[42]!==h||a[43]!==o?(Te=p.jsx("audio",{ref:y,src:o,preload:h,onPlay:Me,onPause:Be,onEnded:$e,onTimeUpdate:Qe,onLoadedMetadata:st}),a[42]=h,a[43]=o,a[44]=Te):Te=a[44];let Ze;return a[45]!==se||a[46]!==we||a[47]!==Te||a[48]!==k?(Ze=p.jsxs("div",{className:k,children:[se,we,Te]}),a[45]=se,a[46]=we,a[47]=Te,a[48]=k,a[49]=Ze):Ze=a[49],Ze}const pc=S.memo(VS);var Ec=Ng();function GS(u){return typeof u=="object"?u.key:u}function YS(u,a){const o=u.length;return new Proxy(u,{get(c,r,d){if(typeof r=="string"){const h=r.charCodeAt(0);if(h>=48&&h<=57){const m=+r;if(Number.isInteger(m)&&m>=0&&m<o){let y=c[m];if(typeof y!="object"){const b=a[m*2];y=c[m]={index:m,key:y,start:b,size:a[m*2+1],end:b+a[m*2+1],lane:0}}return y}}if(r==="length")return o}return Reflect.get(c,r,d)}})}function hi(u,a,o){let c=o.initialDeps??[],r,d=!0;function h(){const m=u();return(m.length!==c.length||m.some((b,x)=>c[x]!==b))&&(c=m,r=a(...m),o?.onChange&&!(d&&o.skipInitialOnChange)&&o.onChange(r),d=!1),r}return h.updateDeps=m=>{c=m},h}function qv(u,a){if(u===void 0)throw new Error("Unexpected undefined");return u}const ga=(u,a)=>Math.abs(u-a)<1.01,XS=(u,a,o)=>{let c;return Object.assign(function(...r){u.clearTimeout(c),c=u.setTimeout(()=>a.apply(this,r),o)},{cancel:()=>{u.clearTimeout(c)}})};function QS({offset:u,isScrolling:a,elementMax:o,holdOffset:c,scrollOffset:r,pendingWrite:d,clampedMaxAtWrite:h}){var m;return a&&d===null&&u===r?"spurious":d!==null&&Math.abs(u-d.target)<1.5?"readBack":d!==null&&!d.smooth&&o!==null&&d.target>o+c+.5&&Math.abs(u-(o+c))<1.5||d!==null&&!d.smooth&&((m=d.lowMaxes)!=null&&m.some(y=>Math.abs(u-y)<1.5))?"clampedReadBack":h!==null&&Math.abs(u-h)<1.5?"clampedEcho":"external"}const ZS=u=>u==="smooth"||u==="smoothFinishing";function KS({kind:u,offset:a,command:o,target:c}){return u!=="spurious"&&u!=="readBack"&&u!=="clampedReadBack"&&o?.index!=null&&o.phase!=="queued"&&!ZS(o.phase)&&!ga(a,o.lastTargetOffset)&&!ga(a,c())&&u!=="clampedEcho"}const wf=40;function kS(u){const a=u[u.length-1];if(a===void 0)return!1;let o=u.length-2;for(;o>=0&&a.t-u[o].t<wf;)o--;if(o<0)return!1;const c=u[o];let r=o-1;for(;r>=0&&c.t-u[r].t<wf;)r--;if(r<0)return!1;const d=u[r],h=(a.offset-c.offset)/(a.t-c.t),m=(c.offset-d.offset)/(c.t-d.t);return h*m>=0&&Math.abs(h)>=2*Math.abs(m)&&Math.abs(h)-Math.abs(m)>=.8}function JS(u){const a=u[u.length-1];if(a===void 0)return!1;let o=u.length-2;for(;o>=0&&a.t-u[o].t<wf;)o--;if(o<0)return!1;const c=u[o];return Math.abs(a.offset-c.offset)/(a.t-c.t)>=.05}let Ou;const vc=()=>{if(Ou!==void 0)return Ou;if(typeof navigator>"u")return Ou=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Ou=!0;const u=navigator.maxTouchPoints;return Ou=navigator.platform==="MacIntel"&&u!==void 0&&u>0};let hf;const FS=()=>hf!==void 0?hf:hf=vc()&&typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("overflow-anchor: auto"),mi={capture:!0,passive:!0};class $S{constructor(a){this.host=a,this._touch=null,this.inMotion=()=>this._touch!==null&&this._touch.phase!=="lateFling",this.dragging=()=>{var o;return((o=this._touch)==null?void 0:o.phase)==="down"&&this._touch.moved},this.tail=()=>{var o;return((o=this._touch)==null?void 0:o.phase)==="tail"?this._touch.moved?"fling":"tap":null},this.onScroll=({isScrolling:o,ownReadBack:c,moved:r,external:d})=>{var h,m,y;return o&&((h=this._touch)==null?void 0:h.phase)==="tail"?this._openTail(this._touch.moved||!c,!1):((m=this._touch)==null?void 0:m.phase)==="lateFling"&&(this.host.now()>this._touch.until?this._touch=null:d&&o&&r&&this._openTail(!0,!1)),!c&&o&&r&&((y=this._touch)==null?void 0:y.phase)==="down"?(this._touch.moved=!0,!0):!1},this.touchStart=()=>{this.end(),this._touch={phase:"down",moved:!1}},this.touchEnd=()=>{var o;const c=((o=this._touch)==null?void 0:o.phase)==="down"&&this._touch.moved;this.end(),this._openTail(c,c)},this.end=()=>{var o;const c=this.host.getWindow();((o=this._touch)==null?void 0:o.phase)==="tail"&&c!=null&&c.clearTimeout(this._touch.timerId),this._touch=null},this.listen=o=>{const c=()=>this.touchStart(),r=()=>this.touchEnd();return o.addEventListener("touchstart",c,mi),o.addEventListener("touchend",r,mi),o.addEventListener("touchcancel",r,mi),()=>{o.removeEventListener("touchstart",c,mi),o.removeEventListener("touchend",r,mi),o.removeEventListener("touchcancel",r,mi),this.end()}},this._openTail=(o,c)=>{const r=this.host.getWindow();if(!vc()||r==null)return;this.end();const d={phase:"tail",moved:o,awaitingFling:c,timerId:r.setTimeout(()=>{if(this.host.tailStillMoving()){this._openTail(d.moved,d.awaitingFling);return}this._touch=d.awaitingFling?{phase:"lateFling",until:this.host.now()+1e3}:null,this.host.onTailClosed()},150)};this._touch=d}}get touch(){return this._touch}}const Vv=u=>{const{clientWidth:a,clientHeight:o}=u;return{width:a,height:o}},kg=u=>{const a=new Set;return{schedule:o=>{const c=u.requestAnimationFrame(()=>{a.delete(c),o()});a.add(c)},cancel:()=>{a.forEach(o=>u.cancelAnimationFrame(o)),a.clear()}}},WS=u=>u,PS=u=>{const a=u.overscan*Math.max(u.lanes??1,1),o=Math.max(u.startIndex-a,0),r=Math.min(u.endIndex+a,u.count-1)-o+1,d=new Array(r);for(let h=0;h<r;h++)d[h]=o+h;return d},IS=(u,a)=>{const o=u.scrollElement;if(!o)return;const c=u.targetWindow;if(!c)return;const r=m=>{const{width:y,height:b}=m;a({width:Math.round(y),height:Math.round(b)})};if(r(Vv(o)),!c.ResizeObserver)return()=>{};const d=kg(c),h=new c.ResizeObserver(()=>{const m=()=>{r(Vv(o))};u.options.useAnimationFrameWithResizeObserver?d.schedule(m):m()});return h.observe(o,{box:"content-box"}),()=>{h.unobserve(o),d.cancel()}},Gv={passive:!0},ex=typeof window>"u"?!0:"onscrollend"in window,tx=(u,a,o)=>{const c=u.scrollElement;if(!c)return;const r=u.targetWindow;if(!r)return;const d=u.options.useScrollendEvent&&ex;let h=0;const m=d?null:XS(r,()=>a(o(c),!1),u.options.isScrollingResetDelay),y=g=>()=>{h=o(c),m?.(),a(h,g)},b=y(!0),x=y(!1);return c.addEventListener("scroll",b,Gv),d&&c.addEventListener("scrollend",x,Gv),()=>{c.removeEventListener("scroll",b),d&&c.removeEventListener("scrollend",x),m?.cancel()}},nx=(u,a)=>tx(u,a,o=>{const{horizontal:c,isRtl:r}=u.options;return c?o.scrollLeft*(r&&-1||1):o.scrollTop}),lx=(u,a,o)=>{if(o.options.useCachedMeasurements){const c=o.indexFromElement(u),r=o.options.getItemKey(c);return o.itemSizeCache.get(r)??o.options.estimateSize(c)}if(a?.borderBoxSize){const c=a.borderBoxSize[0];if(c)return Math.round(c[o.options.horizontal?"inlineSize":"blockSize"])}if(!a){const c=o.indexFromElement(u),r=o.options.getItemKey(c),d=o.itemSizeCache.get(r);if(d!==void 0)return d}return u[o.options.horizontal?"offsetWidth":"offsetHeight"]},ax=(u,{adjustments:a=0,behavior:o},c)=>{var r,d;(d=(r=c.scrollElement)==null?void 0:r.scrollTo)==null||d.call(r,{[c.options.horizontal?"left":"top"]:u+a,behavior:o})},ix=ax,Yv=(u,a)=>u==="smooth"?a?"smoothLanded":"smooth":"instant",Tu=u=>u?.phase==="smooth"||u?.phase==="smoothLanded";function ux(u,a,o,c){if(a===0)return!1;const r=c(0),d=new Set;let h=0;for(;h<u;){const y=o(h);if(y===r)break;d.add(y),h++}const m=u-h;if(m===0||m>=a)return!1;for(let y=0;y<m;y++)if(c(y)!==o(h+y))return!1;for(let y=m;y<a;y++)if(d.has(c(y)))return!1;return!0}class sx{constructor(a){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._iosGesture=new $S({getWindow:()=>this.targetWindow,now:()=>this.now(),tailStillMoving:()=>{const o=this.scrollState;if(o?.phase!=="queued"||this.pendingWrite!==null)return!1;const c=this._readElementOffset();return c===null||this._lastElementOffset===null||Math.abs(c-this._lastElementOffset)<1?!1:(this._lastElementOffset=c,o.samples=[...o.samples??[],{t:this.now(),offset:c}],!0)},onTailClosed:()=>{const o=this.scrollState;o?.phase==="queued"&&JS(o.samples??[])&&(this.scrollState=null),this._flushHoldIfReady(!0),this._writeAwaitingCommand(),this._retryClampedAdjustment()}}),this._lastElementOffset=null,this.pendingWrite=null,this._clampedAdjustment=null,this.elementsCache=new Map,this._resizeBatch=null,this.now=()=>{var o,c,r;return((r=(c=(o=this.targetWindow)==null?void 0:o.performance)==null?void 0:c.now)==null?void 0:r.call(c))??Date.now()},this.observer=(()=>{let o=null,c=null;const r=()=>{if(o)return o;const h=this.targetWindow;if(!h||!h.ResizeObserver)return null;const m=c=kg(h);return o=new h.ResizeObserver(y=>{const b=()=>{const x={sync:!1};this._resizeBatch=x;try{y.forEach(d)}finally{this._resizeBatch=null,x.notify&&(this.notify(x.sync),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment())}};this.options.useAnimationFrameWithResizeObserver?m.schedule(b):b()})},d=h=>{const m=h.target,y=this.indexFromElement(m);if(!m.isConnected){this.observer.unobserve(m);for(const[b,x]of this.elementsCache)if(x===m){this.elementsCache.delete(b);break}return}this.isIndexInRange(y)&&this.shouldMeasureDuringScroll(y)&&this.resizeItem(y,this.options.measureElement(m,h,this))};return{disconnect:()=>{var h;(h=r())==null||h.disconnect(),c?.cancel(),o=null,c=null},observe:h=>{var m;return(m=r())==null?void 0:m.observe(h,{box:"border-box"})},unobserve:h=>{var m;return(m=r())==null?void 0:m.unobserve(h)}}})(),this.range=null,this.setOptions=o=>{var c;const r={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:WS,rangeExtractor:PS,onChange:()=>{},measureElement:lx,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const x in o){const g=o[x];g!==void 0&&(r[x]=g)}const d=this.options;let h=null,m=null,y=!1;if(d!==void 0&&d.enabled&&r.enabled&&r.anchorTo==="end"&&this.scrollElement!==null){const x=d.count,g=r.count,_=this.getMeasurements(),O=((c=this._singleLaneMeasurements)==null?void 0:c.items)??_,T=U=>GS(O[U]),C=x>0?T(0):null,M=x>0?T(x-1):null;if(g!==x||x>0&&g>0&&(r.getItemKey(0)!==C||r.getItemKey(g-1)!==M)){y=!0;const U=x>0?this.getVirtualItemForOffset(this.getScrollOffset())??_[0]:null;U&&(h=[U.key,this.getScrollOffset()-U.start]);const G=r.followOnAppend===!0?"auto":r.followOnAppend||null;G&&g>0&&this.isAtEnd(d.scrollEndThreshold)&&(x===0||r.getItemKey(g-1)!==M)&&(g>x||ux(x,g,T,r.getItemKey))&&(m=G)}}this.options=r,y&&(this.pendingMin=0,this.itemSizeCacheVersion++);let b=null;if(h&&this.scrollOffset!==null&&!this._awaitingCommandReadBack()){const[x,g]=h,_=this.getMeasurements(),{count:O,getItemKey:T}=this.options;let C=0;for(;C<O&&T(C)!==x;)C++;if(C<O){const M=_[C];if(M){const D=Math.max(0,M.start+g);!m&&D!==this.scrollOffset&&(b=D-this.scrollOffset,this.scrollOffset=D)}}}m?this.pendingScrollAnchor={kind:"follow",behavior:m}:b!==null&&(this._canWriteScroll()?this.pendingScrollAnchor={kind:"anchor",delta:b}:(this._holdOffset+=b,this._followOffsetTarget(b)))},this.notify=o=>{var c,r;(r=(c=this.options).onChange)==null||r.call(c,this,o)},this.maybeNotify=hi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),o=>{this.notify(o)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{var o;this.unsubs.filter(Boolean).forEach(c=>c()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,(o=this._momentumStop)==null||o.restore(),this._momentumStop=null,this.isScrolling=!1,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._clampedAdjustment=null,this.pendingWrite=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;const c=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==c){if(this.cleanup(),!c){this.maybeNotify();return}this.scrollElement=c,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((o=this.scrollElement)==null?void 0:o.window)??null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,h)=>{var m,y,b,x;const g=h?this._elementMaxScrollOffset():null,_=this._reportedOverscroll;this._reportedOverscroll=d<0||g!==null&&d>g+1;const O=d;this._lastElementOffset=O,d=this._toLayoutOffset(d);const T=this._classifyScrollEvent(d,h,g);if(T==="spurious")return;T==="readBack"?d=this.pendingWrite.target:T==="clampedReadBack"&&((m=this.scrollState)==null?void 0:m.index)!=null&&d<this.getMaxScrollOffset()-1.5?this.scrollState.lastTargetOffset=d:KS({kind:T,offset:d,command:this.scrollState,target:()=>this.getScrollStateTarget(this.scrollState)})&&(this.scrollState=null),this.pendingWrite=null,this._clampedAdjustment!==null&&Math.abs(d-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null);const C=this.getScrollOffset(),M=this.scrollDirection;this.scrollDirection=h?C===d?this.scrollDirection:C<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=h;const D=this.scrollState;if(D?.phase==="queued"&&T==="external"&&h)if(_||this._reportedOverscroll)D.samples=[];else{const R=this.now();D.samples=[...(D.samples??[]).filter(U=>R-U.t<=200),{t:R,offset:O}],(M!==null&&this.scrollDirection!==M||kS(D.samples))&&(this.scrollState=null)}this._iosGesture.onScroll({isScrolling:h,ownReadBack:T==="readBack",moved:d!==C,external:T==="external"&&((y=this.scrollState)==null?void 0:y.phase)!=="smooth"&&((b=this.scrollState)==null?void 0:b.phase)!=="smoothFinishing"})&&((x=this.scrollState)==null?void 0:x.phase)==="queued"&&(this.scrollState=null),this._flushHoldIfReady(!0),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement&&this.unsubs.push(this._iosGesture.listen(this.scrollElement)),this._scrollToOffset(this.getScrollOffset())}this._noteClampMax();const r=this.pendingScrollAnchor;this.pendingScrollAnchor=null,r&&this.scrollElement&&this.options.enabled&&(r.kind==="anchor"?this._canWriteScroll()?Tu(this.scrollState)&&!ga(this.getScrollOffset()-r.delta,this.scrollState.lastTargetOffset)||(this._followOffsetTarget(r.delta),this._scrollToOffset(this.getScrollOffset())):(this._holdOffset+=r.delta,this._followOffsetTarget(r.delta),this.notify(!1)):this.scrollToEnd({behavior:r.behavior})),this._flushHoldIfReady(!1),this._retryClampedAdjustment()},this._classifyScrollEvent=(o,c,r)=>{var d;return QS({offset:o,isScrolling:c,elementMax:r,holdOffset:this._holdOffset,scrollOffset:this.scrollOffset,pendingWrite:this.pendingWrite,clampedMaxAtWrite:((d=this._clampedAdjustment)==null?void 0:d.maxAtWrite)??null})},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled||!this._canWriteScroll())return;const{target:o,maxAtWrite:c}=this._clampedAdjustment,r=this.getMaxScrollOffset();r>c+.5&&(this._clampedAdjustment=o>r+.5?{target:o,maxAtWrite:r}:null,this._scrollToOffset(o))},this._writeAwaitingCommand=()=>{const o=this.scrollState;if(o===null||o.phase!=="queued")return;const{behavior:c}=o;this.getMeasurements();const r=this.getScrollStateTarget(o);o.lastTargetOffset=r,this._clampedAdjustment=null,o.phase=Yv(c,o.index!=null&&ga(r,this.getScrollOffset())),this._scrollToOffset(r,{behavior:c}),this.scheduleScrollReconcile()},this._readElementOffset=()=>{const o=this.scrollElement;if(o==null)return null;const{horizontal:c,isRtl:r}=this.options;return typeof o.scrollTop=="number"?c?o.scrollLeft*(r&&-1||1):o.scrollTop:typeof o.scrollY=="number"?c?o.scrollX:o.scrollY:null},this._canWriteScroll=()=>!(vc()&&this._iosGesture.inMotion())&&!this._reportedOverscroll,this._flushHoldIfReady=o=>{var c;if(this._holdOffset===0||!this.scrollElement||!this.options.enabled||!this._canWriteScroll()||((c=this.scrollState)==null?void 0:c.phase)==="smooth")return;this._holdOffset=0,this.scrollOffset!==null&&this.scrollOffset<0&&(this.scrollOffset=0),this.notify(o);const r=this.getCommandWrittenOffset()??this.getScrollOffset();this._clampedAdjustment=this._clampedBy(r),this._scrollToOffset(r)},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=hi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(o,c,r,d,h,m,y,b)=>(this.prevLanes!==void 0&&this.prevLanes!==m&&(this.lanesChangedFlag=!0),this.prevLanes=m,this.pendingMin=null,{count:o,paddingStart:c,scrollMargin:r,getItemKey:d,enabled:h,lanes:m,laneAssignmentMode:y,gap:b}),{key:!1}),this.isIndexInRange=o=>o>=0&&o<this.options.count,this.getMeasurements=hi(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:o,paddingStart:c,scrollMargin:r,getItemKey:d,enabled:h,lanes:m,laneAssignmentMode:y,gap:b},x)=>{var g;const _=this.itemSizeCache;if(!h)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>o)for(const R of this.laneAssignments.keys())R>=o&&this.laneAssignments.delete(R);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(R=>{this.itemSizeCache.set(R.key,R.size)}));const O=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===o&&(this.lanesSettling=!1),m===1){const R=o*2;let U=(g=this._singleLaneMeasurements)==null?void 0:g.flat;if(!U||U.length<R){const V=new Float64Array(R);U&&O>0&&V.set(U.subarray(0,O*2)),U=V}const G=O===0?new Array(o):this._singleLaneMeasurements.items.slice();let Q;if(O===0)Q=c+r;else{const V=O-1;Q=U[V*2]+U[V*2+1]+b}for(let V=O;V<o;V++){const te=d(V);G[V]=te;const se=_.get(te),ue=typeof se=="number"?se:this.options.estimateSize(V);U[V*2]=Q,U[V*2+1]=ue,Q+=ue+b}this._singleLaneMeasurements={flat:U,items:G};const k=YS(G,U);return this.measurementsCache=k,k}const T=this.measurementsCache.slice(0,O),C=new Array(m).fill(void 0),M=new Float64Array(m);let D=0;for(let R=0;R<O;R++){const U=T[R];U&&(C[U.lane]===void 0&&D++,C[U.lane]=R,M[U.lane]=U.end)}for(let R=O;R<o;R++){const U=d(R),G=this.laneAssignments.get(R);let Q,k;const V=y==="estimate"||_.has(U);if(G!==void 0&&this.options.lanes>1){Q=G;const re=C[Q],F=re!==void 0?T[re]:void 0;k=F?F.end+b:c+r}else if(D===m){let re=0,F=M[0],oe=C[0];for(let fe=1;fe<m;fe++){const he=M[fe];(he<F||he===F&&C[fe]<oe)&&(re=fe,F=he,oe=C[fe])}Q=re,k=F+b,V&&this.laneAssignments.set(R,Q)}else Q=R%this.options.lanes,k=c+r,V&&this.laneAssignments.set(R,Q);const te=_.get(U),se=typeof te=="number"?te:this.options.estimateSize(R),ue=k+se;T[R]={index:R,start:k,size:se,end:ue,key:U,lane:Q},C[Q]===void 0&&D++,C[Q]=R,M[Q]=ue}return this.measurementsCache=T,T},{key:!1,debug:()=>this.options.debug}),this.calculateRange=hi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(o,c,r,d)=>o.length===0||c===0?(this.range=null,null):(this.range=ox(o,c,r,d,d===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=hi(()=>{let o=null,c=null;const r=this.calculateRange();return r&&(o=r.startIndex,c=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,o,c]),[this.options.rangeExtractor,this.options.overscan,this.options.count,o,c,this.options.lanes]},(o,c,r,d,h,m)=>d===null||h===null?[]:o({startIndex:d,endIndex:h,overscan:c,count:r,lanes:m}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=o=>{const c=this.options.indexAttribute,r=o.getAttribute(c);return r?parseInt(r,10):(console.warn(`Missing attribute name '${c}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=o=>{var c;if(!Tu(this.scrollState))return!0;const r=this.scrollState.index??((c=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:c.index);if(r!==void 0&&this.range){const d=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),h=Math.max(0,r-d),m=Math.min(this.options.count-1,r+d);return o>=h&&o<=m}return!0},this.measureElement=o=>{if(!o){this.elementsCache.forEach((h,m)=>{h.isConnected||(this.observer.unobserve(h),this.elementsCache.delete(m))});return}const c=this.indexFromElement(o);if(!this.isIndexInRange(c))return;const r=this.options.getItemKey(c),d=this.elementsCache.get(r);d!==o&&(d&&this.observer.unobserve(d),this.observer.observe(o),this.elementsCache.set(r,o)),o.isConnected&&(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(c)&&this.resizeItem(c,this.options.measureElement(o,void 0,this))},this.resizeItem=(o,c)=>{var r,d,h;if(!this.isIndexInRange(o))return;(r=this._resizeBatch)!=null&&r.sync&&this.getMeasurements();let m,y,b;const x=(d=this._singleLaneMeasurements)==null?void 0:d.flat;if(this.options.lanes===1&&x!=null)b=this.options.getItemKey(o),y=x[o*2],m=x[o*2+1];else{const O=this.measurementsCache[o];if(!O)return;b=O.key,y=O.start,m=O.size}const g=this.itemSizeCache.get(b)??m,_=c-g;if(_!==0){const O=this.options.anchorTo==="end"&&!Tu(this.scrollState)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,T=O?this._getLayoutTotalSize():0,C=this.getScrollOffset(),D=!this.itemSizeCache.has(b)?y<C:y+g<=C&&this.scrollDirection!=="backward",R=!Tu(this.scrollState)&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[o]??{index:o,key:b,start:y,size:m,end:y+m,lane:0},_,this):D);(this.pendingMin===null||o<this.pendingMin)&&(this.pendingMin=o),this.itemSizeCache.set(b,c),this.itemSizeCacheVersion++;let U=!1;if(this._awaitingCommandReadBack()||(O?U=this.applyScrollAdjustment(this._getLayoutTotalSize()-T):R&&(U=this.applyScrollAdjustment(_))),this._resizeBatch){this._resizeBatch.notify=!0,(h=this._resizeBatch).sync||(h.sync=U);return}this.notify(U),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment()}},this.getVirtualItems=hi(()=>[this.getVirtualIndexes(),this.getMeasurements(),this._holdOffset],(o,c,r)=>{const d=[];for(let h=0,m=o.length;h<m;h++){const y=o[h],b=c[y];d.push(r===0?b:{...b,start:b.start-r,end:b.end-r})}return d},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=o=>{var c;const r=this.getMeasurements();if(r.length===0)return;const d=(c=this._singleLaneMeasurements)==null?void 0:c.flat,h=this.options.lanes===1&&d!=null,m=Jg(0,r.length-1,h?y=>d[y*2]:y=>qv(r[y]).start,o);return qv(r[m])},this._noteClampMax=()=>{if(!this._awaitingCommandReadBack())return;const o=this._elementMaxScrollOffset();if(o===null)return;const c=this.pendingWrite,r=Math.max(o,0)+this._holdOffset;if(r>=c.target)return;const d=c.lowMaxes??(c.lowMaxes=[]);d[d.length-1]!==r&&d.push(r)},this.getMaxScrollOffset=()=>(this._elementMaxScrollOffset()??0)+this._holdOffset,this._toLayoutOffset=o=>{var c;let r=o+this._holdOffset;return((c=this.pendingScrollAnchor)==null?void 0:c.kind)==="anchor"&&(r+=this.pendingScrollAnchor.delta),r},this._elementMaxScrollOffset=()=>{const o=this.scrollElement;if(o===null)return null;if("scrollHeight"in o)return this.options.horizontal?o.scrollWidth-o.clientWidth:o.scrollHeight-o.clientHeight;if("document"in o){const c=o.document.documentElement;return this.options.horizontal?c.scrollWidth-o.innerWidth:c.scrollHeight-o.innerHeight}return null},this._momentumStop=null,this._stopMomentum=o=>{const c=this.scrollElement,r=this.targetWindow;if(c===null||r===null)return;const d="document"in c?c.document.scrollingElement:c;if(!d?.style)return;if(this._momentumStop){this._momentumStop.done=o;return}const{style:h}=d,m=this.options.horizontal?"overflow-x":"overflow-y",y=h.getPropertyValue(m),b=h.getPropertyPriority(m);h.setProperty(m,"hidden","important");const x={restore:()=>h.getPropertyValue(m)!=="hidden"||h.getPropertyPriority(m)!=="important"?!1:(h.setProperty(m,y,b),!0),done:o};this._momentumStop=x,r.requestAnimationFrame(()=>r.requestAnimationFrame(()=>{this._momentumStop===x&&(this._momentumStop=null,x.restore()&&x.done())}))},this._clampedBy=o=>{const c=this._elementMaxScrollOffset();if(c===null)return null;const r=c+this._holdOffset;return o>r+.5?{target:o,maxAtWrite:r}:null},this.getVirtualDistanceFromEnd=()=>Math.max(this._getLayoutTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(o=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=o,this.getOffsetForAlignment=(o,c,r=0)=>{if(!this.scrollElement)return 0;const d=this.getSize(),h=this.getScrollOffset();c==="auto"&&(c=o>=h+d?"end":"start"),c==="center"?o+=(r-d)/2:c==="end"&&(o-=d);const m=this.getMaxScrollOffset();return Math.max(Math.min(m,o),0)},this.getOffsetForIndex=(o,c="auto")=>{o=Math.max(0,Math.min(o,this.options.count-1));const r=this.getSize(),d=this.getScrollOffset(),h=this.measurementsCache[o];if(!h)return;if(c==="auto")if(h.end>=d+r-this.options.scrollPaddingEnd)c="end";else if(h.start<=d+this.options.scrollPaddingStart)c="start";else return[d,c];if(c==="end"&&o===this.options.count-1){const y=this.getMaxScrollOffset(),b=y-this.options.paddingEnd+this.options.scrollPaddingEnd;return[Math.max(Math.min(b,y),0),c]}const m=c==="end"?h.end+this.options.scrollPaddingEnd:h.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(m,c,h.size),c]},this.scrollToOffset=(o,{align:c="start",behavior:r="auto"}={})=>{this._startScroll({index:null,align:c},this.getOffsetForAlignment(o,c),r,"absolute")},this.scrollToIndex=(o,{align:c="auto",behavior:r="auto"}={})=>{o=Math.max(0,Math.min(o,this.options.count-1));const d=this.getOffsetForIndex(o,c);if(!d)return;const[h,m]=d;this._startScroll({index:o,align:m},h,r,"absolute")},this.scrollBy=(o,{behavior:c="auto"}={})=>{const r=this.getOffsetForAlignment((this.getCommandWrittenOffset()??this.getScrollOffset())+o,"start");this._startScroll({index:null,align:"start"},r,c,"relative")},this.scrollToEnd=({behavior:o="auto"}={})=>{if(this.options.count>0){this._startScroll({index:this.options.count-1,align:"end",toEnd:!0},Math.max(this.getMaxScrollOffset(),0),o,"absolute");return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:o})},this.cancelScroll=()=>{this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null},this.getTotalSize=()=>Math.max(this._getLayoutTotalSize()-this._holdOffset,0),this._getLayoutTotalSize=()=>{var o,c;const r=this.getMeasurements();let d;if(r.length===0)d=this.options.paddingStart;else if(this.options.lanes===1){const h=r.length-1,m=(o=this._singleLaneMeasurements)==null?void 0:o.flat;m!=null?d=m[h*2]+m[h*2+1]:d=((c=r[h])==null?void 0:c.end)??0}else{const h=Array(this.options.lanes).fill(null);let m=r.length-1;for(;m>=0&&h.some(y=>y===null);){const y=r[m];h[y.lane]===null&&(h[y.lane]=y.end),m--}d=Math.max(...h.filter(y=>y!==null))}return Math.max(d-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const o=[];if(this.itemSizeCache.size===0)return o;const c=this.getMeasurements();for(const r of c)r&&this.itemSizeCache.has(r.key)&&o.push({index:r.index,key:r.key,start:r.start,size:r.size,end:r.end,lane:r.lane});return o},this._scrollToOffset=(o,{adjustments:c,behavior:r}={})=>{const d={target:o+(c??0),smooth:r==="smooth"};return this.pendingWrite=d,this.options.scrollToFn(o-this._holdOffset,{behavior:r,adjustments:c},this),d},this.getCommandWrittenOffset=()=>this.scrollState!==null&&this.pendingWrite!==null&&!this.pendingWrite.smooth?this.pendingWrite.target:null,this._awaitingCommandReadBack=()=>{const o=this.getCommandWrittenOffset();return!(vc()&&this._iosGesture.dragging())&&o!==null&&!ga(o,this.getScrollOffset())},this._followOffsetTarget=o=>{this.scrollState!==null&&this.scrollState.index==null&&(this.scrollState.lastTargetOffset+=o)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(a)}get scrollAdjustments(){return 0}applyScrollAdjustment(a,o){if(a===0)return!1;if(this._followOffsetTarget(a),this._canWriteScroll()){const c=this.getScrollOffset();this._clampedAdjustment=this._clampedBy(c+a);const r=this._scrollToOffset(c,{adjustments:a,behavior:o});return this.scrollOffset!==null&&(this.pendingWrite===r&&(this.scrollOffset+=a),this.scrollOffset<0&&(this.scrollOffset=0)),!0}else return this._holdOffset+=a,this.scrollOffset!==null&&(this.scrollOffset+=a),!0}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}getScrollStateTarget(a){const o=a.toEnd?[Math.max(this.getMaxScrollOffset(),0)]:a.index!=null?this.getOffsetForIndex(a.index,a.align):void 0;return o?o[0]:a.lastTargetOffset}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}if(this.scrollState.phase==="queued"){this.scheduleScrollReconcile();return}this.getMeasurements();const c=this.getScrollStateTarget(this.scrollState),r=this.scrollState.index==null?1:this.options.useAnimationFrameWithResizeObserver?3:2,d=c!==this.scrollState.lastTargetOffset;if(!d&&ga(c,this.getScrollOffset())){if(this.scrollState.phase==="smooth"?this.scrollState.phase="smoothLanded":this.scrollState.phase==="smoothFinishing"&&(this.scrollState.phase="instant"),this.scrollState.stableFrames++,this.scrollState.stableFrames>=r){this.getScrollOffset()!==c&&this._scrollToOffset(c,{behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,d){const h=this.getSize()||600,m=Math.abs(c-this.getScrollOffset()),y=Tu(this.scrollState)&&m>h;this.scrollState.lastTargetOffset=c,y?this.scrollState.phase="smooth":this.scrollState.phase==="smooth"?this.scrollState.phase="smoothFinishing":this.scrollState.phase==="smoothLanded"&&(this.scrollState.phase="instant"),this._scrollToOffset(c,{behavior:y?"smooth":"auto"})}this.scheduleScrollReconcile()}_startScroll(a,o,c,r){this.pendingScrollAnchor=null,this._clampedAdjustment=null;const d=this._iosGesture.tail();if(r==="absolute"&&d!==null){if(d==="fling"&&FS()){this._stopMomentum(()=>{const h=this.scrollState;h?.phase!=="queued"||this._iosGesture.tail()!=="fling"||this._reportedOverscroll||(this._iosGesture.end(),this._flushHoldIfReady(!0),this._writeAwaitingCommand())}),this.scrollState={...a,startedAt:this.now(),lastTargetOffset:o,stableFrames:0,phase:"queued",behavior:c,samples:[]},this.scheduleScrollReconcile();return}this._iosGesture.end()}this.scrollState={...a,startedAt:this.now(),lastTargetOffset:o,stableFrames:0,behavior:c,phase:Yv(c,a.index!=null&&ga(o,this.getScrollOffset()))},this._scrollToOffset(o,{behavior:c}),this.scheduleScrollReconcile()}}const Jg=(u,a,o,c)=>{for(;u<=a;){const r=(u+a)/2|0,d=o(r);if(d<c)u=r+1;else if(d>c)a=r-1;else return r}return u>0?u-1:0};function cx(u,a,o){let c=0;for(;c<=a;){const r=(c+a)/2|0,d=u[r*2];if(d<o)c=r+1;else if(d>o)a=r-1;else return r}return c>0?c-1:0}function ox(u,a,o,c,r){const d=u.length-1;if(u.length<=c)return{startIndex:0,endIndex:d};if(c===1&&r!==null){const b=cx(r,d,o);let x=b;const g=o+a;for(;x<d&&r[x*2]+r[x*2+1]<g;)x++;return{startIndex:b,endIndex:x}}let m=Jg(0,d,b=>u[b].start,o),y=m;if(c===1)for(;y<d&&u[y].end<o+a;)y++;else if(c>1){const b=Array(c).fill(0);for(;y<d&&b.some(g=>g<o+a);){const g=u[y];b[g.lane]=g.end,y++}const x=Array(c).fill(o+a);for(;m>=0&&x.some(g=>g>=o);){const g=u[m];x[g.lane]=g.start,m--}m=Math.max(0,m-m%c),y=Math.min(d,y+(c-1-y%c))}return{startIndex:m,endIndex:y}}const mf=typeof document<"u"?S.useLayoutEffect:S.useEffect;function rx({useFlushSync:u=!0,directDomUpdates:a=!1,directDomUpdatesMode:o="transform",...c}){const r=S.useReducer(_=>_+1,0)[1],d=S.useRef({enabled:a,mode:o,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});d.current.enabled=a,d.current.mode=o;const h=S.useRef(!1),m=_=>{const O=d.current;if(!O.enabled||!O.container)return;const T=_.getTotalSize();if(T!==O.lastSize){O.lastSize=T;const C=_.options.horizontal?"width":"height";O.container.style[C]=`${T}px`}},y=(_,O,T)=>{const C=d.current,M=!!_.options.horizontal,D=O.start-_.options.scrollMargin;C.lastPositions.get(T)!==D&&(C.lastPositions.set(T,D),C.mode==="transform"?T.style.transform=M?`translate3d(${D}px, 0, 0)`:`translate3d(0, ${D}px, 0)`:T.style[M?"left":"top"]=`${D}px`)},b=_=>{const O=d.current;if(!(!O.enabled||!O.container)){m(_);for(const T of _.getVirtualItems()){const C=_.elementsCache.get(T.key);C&&y(_,T,C)}}},x={...c,onChange:(_,O)=>{var T;const C=d.current;let M=!0;if(C.enabled){b(_);const D=_.range,R=C.prevRange;M=!R||R.isScrolling!==_.isScrolling||R.startIndex!==D?.startIndex||R.endIndex!==D?.endIndex,M&&(C.prevRange=D?{startIndex:D.startIndex,endIndex:D.endIndex,isScrolling:_.isScrolling}:null)}M&&(u&&O&&!h.current?Ec.flushSync(r):r()),(T=c.onChange)==null||T.call(c,_,O)}},[g]=S.useState(()=>{const _=new sx(x),O=_.measureElement;return _.measureElement=T=>{h.current=!0;try{O(T)}finally{h.current=!1}const C=d.current;if(T!==null&&C.enabled&&C.container){const M=_.measurementsCache[_.indexFromElement(T)];M&&y(_,M,T)}},Object.assign(_,{containerRef:T=>{const C=d.current;C.container=T,C.lastSize=null,T!==null&&b(_)}})});return g.setOptions(x),mf(()=>g._didMount(),[]),mf(()=>(m(g),g._willUpdate())),mf(()=>{b(g)}),g}function fx(u){return rx({observeElementRect:IS,observeElementOffset:nx,scrollToFn:ix,...u})}const Fg={"app.title":"auto-tts · 无限量文本转语音","app.tonesAvailable":"可用音色","app.live":"进行中","app.done":"已完成","app.failed":"失败","app.lede":"输入文本,挑一个音色和语气,队列会把它们合成成音频。","app.engine":"本地引擎","app.effects.on":"特效 · 开","app.effects.off":"特效 · 关","app.effects.enable":"开启 3D 特效","app.effects.disable":"关闭 3D 特效,降低 GPU 与 CPU 占用","app.kicker":"EDGE-TTS · UNLIMITED SPEECH","app.hero.line1":"让每个字","app.hero.line2":"都有回声。","app.hero.note":"无限量 · 无需 API Key","app.dismiss":"知道了","app.queue":"任务队列","app.queue.subtitle":"每一次生成,都汇入这里。","app.queue.takesUnit":"条","app.queue.countUnit":"{count} 条","app.selected":"已选 {count} 条","app.selectAll":"全选","app.deleteSelected":"删除所选","app.deleteSelectedConfirm":"确定要删除所选 {count} 条任务及其音频吗?","app.mergeButton":"合并音频与字幕","app.mergeBusy":"合并中…","app.clearAll":"清空队列","app.clearConfirm":"确定要删除全部任务及其音频吗?此操作不可恢复。","app.license":"AGPL-3.0 许可","app.source":"获取源代码","job.status.pending":"排队中","job.status.processing":"合成中","job.status.completed":"已完成","job.status.failed":"失败","job.empty.title":"队列还是空的","job.empty.hint":"在左边粘贴文本,选好音色和语气,点「生成语音」后音频会出现在这里。","job.remove":"删除","job.select":"选择该任务","job.spec.tone":"语气","job.spec.rate":"语速","job.spec.pitch":"音调","job.spec.chars":"字数","job.spec.size":"大小","job.spec.submitted":"提交","job.spec.duration":"耗时","job.size.dash":"—","job.size.mb":"{value} MB","job.size.kb":"{value} KB","job.duration":"{value} 秒","job.download":"下载 MP3","job.downloadSrt":"下载 SRT","merge.title":"合并结果","merge.count":"{count} 条已合并","merge.duration":"时长 {value} 秒","merge.downloadAudio":"下载合并 MP3","merge.downloadSrt":"下载合并 SRT","merge.dismiss":"关闭","panel.settings":"合成设置","panel.subtitle":"设定声音,然后交给队列。","panel.mode":"合成模式","panel.mode.single":"单条","panel.mode.batch":"批量","panel.text.label.single":"文本 — 长文本会自动分块","panel.text.label.batch":"文本 — 空行分隔每一段","panel.text.placeholder.single":"粘贴或输入要朗读的文本,也可以把 .docx 文件拖到这里。","panel.text.placeholder.batch":`第一段……
11
+
12
+ 第二段……
13
+
14
+ 第三段……
15
+
16
+ 也可以直接拖入 .docx 文件`,"panel.readout.chars":"{count} 字","panel.readout.segments":"{count} 段","panel.tone.legend":"语气","panel.tone.hintFallback":"选择一个语气,下面的参数会跟着调整。","panel.voice.label":"音色 — 共 {count} 个","panel.voice.filter":"筛选:zh-CN / Xiaoxiao / en-US","panel.voice.searchPlaceholder":"搜索语言、音色或名称…","panel.voice.empty":"没有匹配的音色","panel.prosody.rate":"语速","panel.prosody.volume":"音量","panel.prosody.pitch":"音调","panel.prosody.heading":"细调","panel.submit.busy":"提交中…","panel.submit.batch":"加入队列({count} 段)","panel.submit.single":"生成语音","panel.submit.short":"生成","panel.output":"输出 / MP3","panel.shortcut":"⌘ / Ctrl + Enter","panel.import.busy":"解析中…","panel.import.invalid":"只支持 .docx 文件","panel.import.empty":"文档没有可读文本","panel.import.failed":"DOCX 解析失败","panel.import.drop":"松开以导入 DOCX","panel.note":"本地运行 · 文本长度不限","voice.female":"女","voice.male":"男","locale.switchLabel":"语言","player.play":"播放","player.pause":"暂停","player.seek":"跳转播放进度","tone.natural":"自然","tone.natural.hint":"默认语速与音高","tone.gentle":"温柔","tone.gentle.hint":"放慢、压低,像在耳边说话","tone.cheerful":"愉悦","tone.cheerful.hint":"略快、上扬,带一点笑意","tone.excited":"兴奋","tone.excited.hint":"更快、更亮,情绪外放","tone.serious":"严肃","tone.serious.hint":"沉稳、低音,适合声明","tone.sad":"悲伤","tone.sad.hint":"缓慢、低沉,语气下沉","tone.newscast":"新闻播报","tone.newscast.hint":"清晰、稳定,字正腔圆","tone.whisper":"低语","tone.whisper.hint":"轻声细语,音量很轻","tone.custom":"自定义","tone.custom.hint":"自己微调语速、音调与音量","app.timelineButton":"时间线","app.timelineButtonHint":"将所选已完成任务放进时间线编排","panel.mode.subtitle":"字幕","panel.text.label.subtitle":"文本 — 自动按语义拆成字幕段","panel.text.placeholder.subtitle":"粘贴整篇文章,或把 .docx 文件拖到这里,系统会自动切分字幕。","panel.subtitle.length":"每段长度","panel.subtitle.lengthOption":"{count} 字","panel.subtitle.detected":"已切出 {count} 段","panel.subtitle.estimated":"预计 {duration}","panel.subtitle.preview":"字幕分段预览","panel.readout.timelineHint":"生成后进入时间线","panel.submit.shortSubtitle":"编排","panel.submit.subtitle":"生成 {count} 段并编排","panel.note.subtitle":"自动断句 · 生成后可精细调整时间","timeline.kicker":"SUBTITLE / TIMELINE","timeline.title":"字幕时间线","timeline.clipCount":"{count} 个片段","timeline.close":"关闭时间线","timeline.zoom":"缩放","timeline.zoomIn":"放大时间线","timeline.zoomOut":"缩小时间线","timeline.defaultGap":"默认间隔","timeline.repack":"重新排列","timeline.dragHint":"拖动片段移动开始时间,后续片段会同步跟随","timeline.clip":"片段 {index} / {count}","timeline.ready":"已就绪","timeline.rendering":"合成中","timeline.failed":"失败","timeline.start":"开始时间","timeline.end":"结束时间","timeline.duration":"片段时长","timeline.estimated":"估算","timeline.gapBefore":"段前间隔","timeline.preview":"试听片段","timeline.empty":"没有可编辑的片段","timeline.select":"选择片段","timeline.pendingText":"等待合成…","timeline.frameHint":"时间轴吸附 10ms · 导出按 24ms MP3 帧对齐","timeline.readyCount":"{ready} / {count} 已就绪","timeline.waitHint":"完成合成后即可导出","timeline.footerHint":"输入精确时间,或拖动片段调整间隔;所有片段完成后导出。","timeline.exported":"已导出 · 总时长 {duration}","timeline.exporting":"正在合成时间线…","timeline.export":"导出时间线 MP3 + SRT","timeline.waiting":"等待 {count} 个片段合成…"};function $g(u){return u in Fg?u:null}function rc(u,a){const o=$g(`tone.${a}`);return o?u(o):a}function dx(u,a){const o=$g(`tone.${a}.hint`);return o?u(o):null}const Xv={pending:"job.status.pending",processing:"job.status.processing",completed:"job.status.completed",failed:"job.status.failed"};function Qv(u,a){return`${u>0?"+":""}${u}${a}`}function hx({jobs:u,selected:a,scrollRef:o,onToggle:c,onDelete:r}){const d=Yl(),{locale:h}=_c(),m=S.useMemo(()=>new Intl.DateTimeFormat(h,{hour:"numeric",minute:"2-digit"}),[h]),y=fx({count:u.length,getScrollElement:()=>o.current,getItemKey:x=>u[x].id,estimateSize:x=>u[x].status==="completed"?238:178,overscan:5});if(u.length===0)return p.jsxs("div",{className:"queue-empty",children:[p.jsxs("div",{className:"queue-empty__disc","aria-hidden":"true",children:[p.jsx(zg,{size:24}),p.jsx("span",{})]}),p.jsxs("p",{className:"queue-empty__overline",children:["00 / ",d("app.queue.takesUnit")]}),p.jsx("h3",{children:d("job.empty.title")}),p.jsx("p",{children:d("job.empty.hint")})]});function b(x){return x?x>1024*1024?d("job.size.mb",{value:(x/1024/1024).toFixed(2)}):d("job.size.kb",{value:(x/1024).toFixed(1)}):d("job.size.dash")}return p.jsx("div",{className:"take-list take-list--virtual",role:"list",style:{height:`${y.getTotalSize()}px`},children:y.getVirtualItems().map(x=>{const g=u[x.index],_=x.index,O=g.finished_at?(g.finished_at-g.created_at).toFixed(1):null,T=g.status==="pending"||g.status==="processing",C=Math.round(Math.max(0,Math.min(1,g.progress))*100);return p.jsx("div",{className:"take-row",role:"listitem","aria-posinset":_+1,"aria-setsize":u.length,"data-index":x.index,ref:y.measureElement,style:{transform:`translateY(${x.start}px)`},children:p.jsxs("article",{className:`take take--${g.status}`,children:[p.jsxs("div",{className:"take__top",children:[g.status==="completed"?p.jsxs("label",{className:"take__check",children:[p.jsx("input",{type:"checkbox",checked:a.has(g.id),"aria-label":d("job.select"),onChange:()=>c(g.id)}),p.jsx("span",{className:"take__check-mark","aria-hidden":"true",children:p.jsx(Qf,{size:9,strokeWidth:3})})]}):p.jsx("span",{className:"take__check take__check--empty","aria-hidden":"true"}),p.jsx("span",{className:"take__number",children:String(_+1).padStart(2,"0")}),p.jsxs("span",{className:`take__status take__status--${g.status}`,children:[p.jsx("i",{"aria-hidden":"true"}),d(Xv[g.status])]}),T&&p.jsxs("span",{className:"take__percent",children:[C,"%"]}),p.jsx("span",{className:"take__voice",title:g.voice,children:g.voice}),p.jsx("button",{className:"take__delete",title:d("job.remove"),"aria-label":d("job.remove"),onClick:()=>r(g.id),children:p.jsx(Qg,{size:13})})]}),p.jsx("p",{className:"take__text",children:g.text}),p.jsxs("div",{className:"take__meta",children:[p.jsxs("span",{children:[p.jsx("i",{children:d("job.spec.tone")}),rc(d,g.tone)]}),p.jsxs("span",{children:[p.jsx("i",{children:d("job.spec.rate")}),Qv(g.rate,"%")]}),p.jsxs("span",{children:[p.jsx("i",{children:d("job.spec.pitch")}),Qv(g.pitch,"Hz")]}),p.jsxs("span",{children:[p.jsx("i",{children:d("job.spec.chars")}),g.chars]}),p.jsxs("span",{children:[p.jsx("i",{children:d("job.spec.size")}),b(g.size_bytes)]}),p.jsxs("span",{children:[p.jsx("i",{children:d("job.spec.submitted")}),m.format(new Date(g.created_at*1e3))]}),O&&p.jsxs("span",{children:[p.jsx("i",{children:d("job.spec.duration")}),d("job.duration",{value:O})]})]}),T&&p.jsxs("div",{className:"take__progress",children:[p.jsxs("div",{className:"take__progress-head",children:[p.jsx("span",{children:d(Xv[g.status])}),p.jsxs("strong",{children:[C,"%"]})]}),p.jsx("div",{className:"take__progress-track",children:p.jsx("span",{style:{width:`${C}%`}})})]}),g.status==="failed"&&g.error&&p.jsx("p",{className:"take__error",children:g.error}),g.status==="completed"&&g.audio_url&&p.jsxs("div",{className:"take__listen",children:[p.jsx(pc,{src:g.audio_url,variant:"dark",preload:"none"}),p.jsxs("div",{className:"file-actions",children:[p.jsxs("a",{className:"file-link",href:g.audio_url,download:`${g.id}.mp3`,children:[p.jsx(Ei,{size:10}),d("job.download")]}),g.srt_url&&p.jsxs("a",{className:"file-link",href:g.srt_url,download:`${g.id}.srt`,children:[p.jsx(Ei,{size:10}),d("job.downloadSrt")]})]})]})]})},x.key)})})}const mx=S.memo(hx),Wg=["zh-CN","en-US","zh-TW"],Zv="zh-CN",Pg="auto-tts.locale";function px(u){if(!u)return Zv;const a=u.replace("_","-").toLowerCase();return a.startsWith("zh")?a.includes("hant")||a.includes("tw")||a.includes("hk")||a.includes("mo")?"zh-TW":"zh-CN":a.startsWith("en")?"en-US":Zv}function vx(u){return Wg.includes(u)}function gx(){const u=window.localStorage.getItem(Pg);return u&&vx(u)?u:px(window.navigator.language)}function yx(u){window.localStorage.setItem(Pg,u)}const bx={"zh-CN":"简","en-US":"EN","zh-TW":"繁"};function Sx(){const u=Gl.c(8),{locale:a,setLocale:o}=_c(),c=Yl();let r;u[0]!==c?(r=c("locale.switchLabel"),u[0]=c,u[1]=r):r=u[1];let d;u[2]!==a||u[3]!==o?(d=Wg.map(m=>p.jsx("button",{type:"button",className:m===a?"locale-switch__btn is-on":"locale-switch__btn","aria-pressed":m===a,onClick:()=>o(m),children:bx[m]},m)),u[2]=a,u[3]=o,u[4]=d):d=u[4];let h;return u[5]!==r||u[6]!==d?(h=p.jsx("div",{className:"locale-switch",role:"group","aria-label":r,children:d}),u[5]=r,u[6]=d,u[7]=h):h=u[7],h}const xx=new Set(["”","’","」","』","》","】",")",")","]",'"',"'"]),_x=new Set([",",",","、",":",":",";",";"," "]);function Ex(u,a){const o=u[a];return"。!?!?;;…".includes(o)||o===`
17
+ `?!0:o==="."&&(a+1===u.length||/\s/.test(u[a+1]))}function Ox(u){const a=[];let o=0;for(let c=0;c<u.length;c+=1){if(!Ex(u,c))continue;let r=c+1;if(u[c]!==`
18
+ `)for(;r<u.length&&xx.has(u[r]);)r+=1;const d=u.slice(o,r).trim();for(d&&a.push(d),o=r;o<u.length&&/[\s\u3000]/.test(u[o]);)o+=1;c=o-1}if(o<u.length){const c=u.slice(o).trim();c&&a.push(c)}return a}function Tx(u,a){const o=[];let c=u.trim();for(;c.length>a;){const r=c.slice(0,a);let d=-1;for(let h=r.length-1;h>=Math.max(1,Math.floor(a*.45));h-=1)if(_x.has(r[h])){d=h+1;break}if(d<=0){const h=r.lastIndexOf(" ");d=h>a*.45?h+1:a}o.push(c.slice(0,d).trim()),c=c.slice(d).trim()}return c&&o.push(c),o.filter(Boolean)}function Kv(u,a){const{targetLength:o,maxLength:c,minLength:r}=a,d=[];let h="";for(const m of u){if(!h){h=m;continue}const y=/[A-Za-z0-9.!?,;:'")\]]$/.test(h)&&/^[A-Za-z0-9"'([\]]/.test(m)?" ":"",b=h.length+y.length+m.length;b<=o||h.length<r&&b<=c?h+=y+m:(d.push(h),h=m)}return h&&d.push(h),d}function Ig(u,a){const o=u.replace(/\r\n?/g,`
19
+ `).trim();if(!o)return[];const c=Math.max(4,Math.round(a.targetLength)),r=Math.max(c,Math.round(a.maxLength)),d=Math.max(2,Math.min(c,Math.round(a.minLength))),h={targetLength:c,maxLength:r,minLength:d},m=[],y=o.split(/\n\s*\n/);for(const g of y)if(g.trim()){for(const _ of Ox(g)){const O=_.replace(/\s+/g," ").trim();O&&(O.length<=r?m.push(O):m.push(...Tx(O,r)))}m.push("")}const b=[];let x=[];for(const g of m){if(g===""){x.length>0&&(b.push(...Kv(x,h)),x=[]);continue}x.push(g)}return x.length>0&&b.push(...Kv(x,h)),b.map(g=>g.trim()).filter(Boolean)}function Cx(u,a=0){const o=(u.match(/[\u3400-\u9fff\uf900-\ufaff]/g)??[]).length,c=(u.match(/[A-Za-z0-9]+(?:['’-][A-Za-z0-9]+)*/g)??[]).length,d=(u.match(/[,。!?、;:,.!?;:…]/g)??[]).length*.07,h=.32+o/4.6+c/2.7+d,m=Math.max(.5,1+a/100);return Math.max(240,Math.round(h/m*1e3))}function un(u){const a=Math.max(0,Math.round(u)),o=a%1e3,c=Math.floor(a/1e3),r=c%60,d=Math.floor(c/60)%60,h=Math.floor(c/3600);return`${h>0?`${h}:${String(d).padStart(2,"0")}`:`${d}`}:${String(r).padStart(2,"0")}.${String(o).padStart(3,"0")}`}const kv={segments:[],totalEstimatedMs:0};function Nx(u,a,o,c){const r=Gl.c(12);let d;r[0]!==c||r[1]!==a||r[2]!==u?(d=()=>c?{segments:Ig(u,a),totalEstimatedMs:0}:kv,r[0]=c,r[1]=a,r[2]=u,r[3]=d):d=r[3];const[h,m]=S.useState(d),y=S.useRef(null),b=S.useRef(0);let x,g;r[4]!==c||r[5]!==a||r[6]!==o||r[7]!==u?(x=()=>{if(!c)return;if(!u.trim()){m(kv);return}y.current||(y.current=new Worker(new URL("/assets/subtitle.worker-Do3AtmDO.js",import.meta.url),{type:"module"}));const T=y.current,C=b.current=b.current+1,M=R=>{R.data.id===b.current&&S.startTransition(()=>{m({segments:R.data.segments,totalEstimatedMs:R.data.totalEstimatedMs})})};T.addEventListener("message",M);const D=window.setTimeout(()=>{T.postMessage({id:C,text:u,options:a,rate:o})},80);return()=>{window.clearTimeout(D),T.removeEventListener("message",M)}},g=[c,a,o,u],r[4]=c,r[5]=a,r[6]=o,r[7]=u,r[8]=x,r[9]=g):(x=r[8],g=r[9]),S.useEffect(x,g);let _,O;return r[10]===Symbol.for("react.memo_cache_sentinel")?(_=()=>()=>{y.current?.terminate(),y.current=null},O=[],r[10]=_,r[11]=O):(_=r[10],O=r[11]),S.useEffect(_,O),h}function Mx(u){return`${u>0?"+":""}${u}`}function pf(u){const a=Gl.c(26),{id:o,label:c,value:r,unit:d,min:h,max:m,onChange:y}=u,b=`prosody-${o}`,x=(r-h)/(m-h)*100;let g;a[0]!==b||a[1]!==c?(g=p.jsx("label",{className:"prosody__label",htmlFor:b,children:c}),a[0]=b,a[1]=c,a[2]=g):g=a[2];const _=`${x}%`;let O;a[3]!==_?(O={"--fill":_},a[3]=_,a[4]=O):O=a[4];const T=O;let C;a[5]!==y?(C=Q=>y(Number(Q.target.value)),a[5]=y,a[6]=C):C=a[6];let M;a[7]!==b||a[8]!==m||a[9]!==h||a[10]!==T||a[11]!==C||a[12]!==r?(M=p.jsx("input",{id:b,className:"prosody__range",type:"range",min:h,max:m,value:r,style:T,onChange:C}),a[7]=b,a[8]=m,a[9]=h,a[10]=T,a[11]=C,a[12]=r,a[13]=M):M=a[13];let D;a[14]!==r?(D=Mx(r),a[14]=r,a[15]=D):D=a[15];let R;a[16]!==d?(R=p.jsx("em",{children:d}),a[16]=d,a[17]=R):R=a[17];let U;a[18]!==b||a[19]!==D||a[20]!==R?(U=p.jsxs("output",{className:"prosody__value",htmlFor:b,children:[D,R]}),a[18]=b,a[19]=D,a[20]=R,a[21]=U):U=a[21];let G;return a[22]!==g||a[23]!==M||a[24]!==U?(G=p.jsxs("div",{className:"prosody__row",children:[g,M,U]}),a[22]=g,a[23]=M,a[24]=U,a[25]=G):G=a[25],G}var mn=globalThis?.document?S.useLayoutEffect:()=>{},Ax=Object.defineProperty,Ti=(u,a)=>Ax(u,"name",{value:a,configurable:!0}),e0=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ll(u,a,{checkForDefaultPrevented:o=!0}={}){return Ti(function(r){if(u?.(r),o===!1||!r||!r.defaultPrevented)return a?.(r)},"handleEvent")}Ti(Ll,"composeEventHandlers");function wx(u){if(!e0)throw new Error("Cannot access window outside of the DOM");return u?.ownerDocument?.defaultView??window}Ti(wx,"getOwnerWindow");function zf(u){if(!e0)throw new Error("Cannot access document outside of the DOM");return u?.ownerDocument??document}Ti(zf,"getOwnerDocument");function t0(u,a=!1){const{activeElement:o}=zf(u);if(!o?.nodeName)return null;if(n0(o)&&o.contentDocument)return t0(o.contentDocument.body,a);if(a){const c=o.getAttribute("aria-activedescendant");if(c){const r=zf(o).getElementById(c);if(r)return r}}return o}Ti(t0,"getActiveElement");function n0(u){return u.tagName==="IFRAME"}Ti(n0,"isFrame");var zx=Object.defineProperty,Kf=(u,a)=>zx(u,"name",{value:a,configurable:!0});function jf(u,a){if(typeof u=="function")return u(a);u!=null&&(u.current=a)}Kf(jf,"setRef");function l0(...u){return a=>{let o=!1;const c=u.map(r=>{const d=jf(r,a);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let r=0;r<c.length;r++){const d=c[r];typeof d=="function"?d():jf(u[r],null)}}}}Kf(l0,"composeRefs");function ll(...u){return S.useCallback(l0(...u),u)}Kf(ll,"useComposedRefs");var jx=Object.defineProperty,sn=(u,a)=>jx(u,"name",{value:a,configurable:!0});function Rx(u,a){const o=S.createContext(a);o.displayName=u+"Context";const c=sn(d=>{const{children:h,...m}=d,y=S.useMemo(()=>m,Object.values(m));return p.jsx(o.Provider,{value:y,children:h})},"Provider");c.displayName=u+"Provider";function r(d,h={}){const{optional:m=!1}=h,y=S.useContext(o);if(y)return y;if(a!==void 0)return a;if(!m)throw new Error(`\`${d}\` must be used within \`${u}\``)}return sn(r,"useContext"),[c,r]}sn(Rx,"createContext");function kf(u,a=[]){let o=[];function c(d,h){const m=S.createContext(h);m.displayName=d+"Context";const y=o.length;o=[...o,h];const b=sn(g=>{const{scope:_,children:O,...T}=g,C=_?.[u]?.[y]||m,M=S.useMemo(()=>T,Object.values(T));return p.jsx(C.Provider,{value:M,children:O})},"Provider");b.displayName=d+"Provider";function x(g,_,O={}){const{optional:T=!1}=O,C=_?.[u]?.[y]||m,M=S.useContext(C);if(M)return M;if(h!==void 0)return h;if(!T)throw new Error(`\`${g}\` must be used within \`${d}\``)}return sn(x,"useContext"),[b,x]}sn(c,"createContext");const r=sn(()=>{const d=o.map(h=>S.createContext(h));return sn(function(m){const y=m?.[u]||d;return S.useMemo(()=>({[`__scope${u}`]:{...m,[u]:y}}),[m,y])},"useScope")},"createScope");return r.scopeName=u,[c,a0(r,...a)]}sn(kf,"createContextScope");function a0(...u){const a=u[0];if(u.length===1)return a;const o=sn(()=>{const c=u.map(r=>({useScope:r(),scopeName:r.scopeName}));return sn(function(d){const h=c.reduce((m,{useScope:y,scopeName:b})=>{const g=y(d)[`__scope${b}`];return{...m,...g}},{});return S.useMemo(()=>({[`__scope${a.scopeName}`]:h}),[h])},"useComposedScopes")},"createScope");return o.scopeName=a.scopeName,o}sn(a0,"composeContextScopes");var Dx=Object.defineProperty,Jt=(u,a)=>Dx(u,"name",{value:a,configurable:!0});function Jf(u){const a=S.forwardRef((o,c)=>{let{children:r,...d}=o,h=null,m=!1;const y=[];r=r0(r),S.Children.forEach(r,_=>{if(c0(_)){m=!0;const O=_;let T="child"in O.props?O.props.child:O.props.children;for(;Ff(T)&&typeof gc=="function";)T=gc(T._payload);h=Lx(O,T),y.push(h?.props?.children)}else y.push(_)}),h?h=S.cloneElement(h,void 0,y):!m&&S.Children.count(r)===1&&S.isValidElement(r)&&(h=r);const b=h?s0(h):void 0,x=ll(c,b);if(!h){if(r||r===0)throw new Error(m?qx(u):Bx(u));return r}const g=u0(d,h.props??{});return h.type!==S.Fragment&&(g.ref=c?x:b),S.cloneElement(h,g)});return a.displayName=`${u}.Slot`,a}Jt(Jf,"createSlot");var i0=Symbol.for("radix.slottable");function Ux(u){const a=Jt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return a.displayName=`${u}.Slottable`,a.__radixId=i0,a}Jt(Ux,"createSlottable");var Lx=Jt((u,a)=>"child"in u.props?S.isValidElement(a)?S.cloneElement(a,void 0,u.props.children(a.props.children)):null:S.isValidElement(a)?a:null,"getSlottableElementFromSlottable");function u0(u,a){const o={...a};for(const c in a){const r=u[c],d=a[c];/^on[A-Z]/.test(c)?r&&d?o[c]=(...m)=>{const y=d(...m);return r(...m),y}:r&&(o[c]=r):c==="style"?o[c]={...r,...d}:c==="className"?o[c]=[r,d].filter(Boolean).join(" "):c==="aria-describedby"&&(o[c]=f0(d,r))}return{...u,...o}}Jt(u0,"mergeProps");function s0(u){let a=Object.getOwnPropertyDescriptor(u.props,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?u.ref:(a=Object.getOwnPropertyDescriptor(u,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?u.props.ref:u.props.ref||u.ref)}Jt(s0,"getElementRef");function c0(u){return S.isValidElement(u)&&typeof u.type=="function"&&"__radixId"in u.type&&u.type.__radixId===i0}Jt(c0,"isSlottable");var Hx=Symbol.for("react.lazy");function Ff(u){return u!=null&&typeof u=="object"&&"$$typeof"in u&&u.$$typeof===Hx&&"_payload"in u&&o0(u._payload)}Jt(Ff,"isLazyComponent");function o0(u){return typeof u=="object"&&u!==null&&"then"in u}Jt(o0,"isPromiseLike");function r0(u){let a=u;for(;Ff(a)&&typeof gc=="function";)a=gc(a._payload);return a}Jt(r0,"useUnwrappedLazy");function f0(...u){const a=new Set;for(const o of u)if(typeof o=="string")for(const c of String(o).trim().split(/\s+/))c&&a.add(c);return a.size>0?Array.from(a).join(" "):void 0}Jt(f0,"concatAriaDescribedby");var Bx=Jt(u=>`${u} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),qx=Jt(u=>`${u} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),gc=Oi[" use ".trim().toString()],Vx=Object.defineProperty,Gx=(u,a)=>Vx(u,"name",{value:a,configurable:!0}),Yx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ci=Yx.reduce((u,a)=>{const o=Jf(`Primitive.${a}`),c=S.forwardRef((r,d)=>{const{asChild:h,...m}=r,y=h?o:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(y,{...m,ref:d})});return c.displayName=`Primitive.${a}`,{...u,[a]:c}},{});function d0(u,a){u&&Ec.flushSync(()=>u.dispatchEvent(a))}Gx(d0,"dispatchDiscreteCustomEvent");var Xx=Object.defineProperty,Qx=(u,a)=>Xx(u,"name",{value:a,configurable:!0}),Jv=Oi[" useInsertionEffect ".trim().toString()];function ya(u){const a=S.useRef(u);return typeof Jv=="function"?Jv(()=>{a.current=u}):mn(()=>{a.current=u}),S.useMemo(()=>((...o)=>a.current?.(...o)),[])}Qx(ya,"useCallbackRef");var Zx=Object.defineProperty,ht=(u,a)=>Zx(u,"name",{value:a,configurable:!0}),Rf="dismissableLayer.update",Kx="dismissableLayer.pointerDownOutside",kx="dismissableLayer.focusOutside",Fv,h0=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Jx=S.forwardRef(ht(function(a,o){const{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:y,onDismiss:b,...x}=a,g=S.useContext(h0),[_,O]=S.useState(null),T=_?.ownerDocument??globalThis?.document,[,C]=S.useState({}),M=ll(o,O),D=Array.from(g.layers),[R]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),U=R?D.indexOf(R):-1,G=_?D.indexOf(_):-1,Q=g.layersWithOutsidePointerEventsDisabled.size>0,k=G>=U,V=S.useRef(!1),te=m0(F=>{h?.(F),y?.(F),F.defaultPrevented||b?.()},{ownerDocument:T,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:V,dismissableSurfaces:g.dismissableSurfaces,shouldHandlePointerDownOutside:S.useCallback(F=>{if(!(F instanceof Node))return!1;const oe=[...g.branches].some(fe=>fe.contains(F));return k&&!oe},[g.branches,k])}),se=p0(F=>{if(r&&V.current)return;const oe=F.target;[...g.branches].some(he=>he.contains(oe))||(m?.(F),y?.(F),F.defaultPrevented||b?.())},T),ue=_?G===D.length-1:!1,re=ya(F=>{F.key==="Escape"&&(d?.(F),!F.defaultPrevented&&b&&(F.preventDefault(),b()))});return S.useEffect(()=>{if(ue)return T.addEventListener("keydown",re,{capture:!0}),()=>T.removeEventListener("keydown",re,{capture:!0})},[T,ue,re]),S.useEffect(()=>{if(_)return c&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Fv=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(_)),g.layers.add(_),Df(),()=>{c&&(g.layersWithOutsidePointerEventsDisabled.delete(_),g.layersWithOutsidePointerEventsDisabled.size===0&&(T.body.style.pointerEvents=Fv))}},[_,T,c,g]),S.useEffect(()=>()=>{_&&(g.layers.delete(_),g.layersWithOutsidePointerEventsDisabled.delete(_),Df())},[_,g]),S.useEffect(()=>{const F=ht(()=>C({}),"handleUpdate");return document.addEventListener(Rf,F),()=>document.removeEventListener(Rf,F)},[]),p.jsx(Ci.div,{...x,ref:M,style:{pointerEvents:Q?k?"auto":"none":void 0,...a.style},onFocusCapture:Ll(a.onFocusCapture,se.onFocusCapture),onBlurCapture:Ll(a.onBlurCapture,se.onBlurCapture),onPointerDownCapture:Ll(a.onPointerDownCapture,te.onPointerDownCapture)})},"DismissableLayer"));function Fx(){const u=S.useContext(h0),[a,o]=S.useState(null);return S.useEffect(()=>{if(a)return u.dismissableSurfaces.add(a),()=>{u.dismissableSurfaces.delete(a)}},[a,u.dismissableSurfaces]),o}ht(Fx,"useDismissableLayerSurface");var $x=ht(()=>!0,"IS_TRUE");function m0(u,a){const{ownerDocument:o=globalThis?.document,deferPointerDownOutside:c=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:d,shouldHandlePointerDownOutside:h=$x}=a,m=ya(u),y=S.useRef(!1),b=S.useRef(!1),x=S.useRef(new Map),g=S.useRef(()=>{});return S.useEffect(()=>{function _(){b.current=!1,r.current=!1,x.current.clear()}ht(_,"resetOutsideInteraction");function O(){return Array.from(x.current.values()).some(Boolean)}ht(O,"isOutsideInteractionIntercepted");function T(U){if(!b.current)return;const G=U.target;G instanceof Node&&[...d].some(k=>k.contains(G))||x.current.set(U.type,!0),U.type==="click"&&window.setTimeout(()=>{b.current&&g.current()},0)}ht(T,"handleInteractionCapture");function C(U){b.current&&x.current.set(U.type,!1)}ht(C,"handleInteractionBubble");const M=ht(U=>{if(U.target&&!y.current){let G=function(){o.removeEventListener("click",g.current);const k=O();_(),k||$f(Kx,m,Q,{discrete:!0})};if(ht(G,"handleAndDispatchPointerDownOutsideEvent"),!h(U.target)){o.removeEventListener("click",g.current),_(),y.current=!1;return}const Q={originalEvent:U};b.current=!0,r.current=c&&U.button===0,x.current.clear(),!c||U.button!==0?G():(o.removeEventListener("click",g.current),g.current=G,o.addEventListener("click",g.current,{once:!0}))}else o.removeEventListener("click",g.current),_();y.current=!1},"handlePointerDown"),D=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const U of D)o.addEventListener(U,T,!0),o.addEventListener(U,C);const R=window.setTimeout(()=>{o.addEventListener("pointerdown",M)},0);return()=>{window.clearTimeout(R),o.removeEventListener("pointerdown",M),o.removeEventListener("click",g.current);for(const U of D)o.removeEventListener(U,T,!0),o.removeEventListener(U,C)}},[o,m,c,r,d,h]),{onPointerDownCapture:ht(()=>y.current=!0,"onPointerDownCapture")}}ht(m0,"usePointerDownOutside");function p0(u,a=globalThis?.document){const o=ya(u),c=S.useRef(!1);return S.useEffect(()=>{const r=ht(d=>{d.target&&!c.current&&$f(kx,o,{originalEvent:d},{discrete:!1})},"handleFocus");return a.addEventListener("focusin",r),()=>a.removeEventListener("focusin",r)},[a,o]),{onFocusCapture:ht(()=>c.current=!0,"onFocusCapture"),onBlurCapture:ht(()=>c.current=!1,"onBlurCapture")}}ht(p0,"useFocusOutside");function Df(){const u=new CustomEvent(Rf);document.dispatchEvent(u)}ht(Df,"dispatchUpdate");function $f(u,a,o,{discrete:c}){const r=o.originalEvent.target,d=new CustomEvent(u,{bubbles:!1,cancelable:!0,detail:o});a&&r.addEventListener(u,a,{once:!0}),c?d0(r,d):r.dispatchEvent(d)}ht($f,"handleAndDispatchCustomEvent");var Wx=Object.defineProperty,Wf=(u,a)=>Wx(u,"name",{value:a,configurable:!0}),lc=0,pi=null;function Px(u){return Pf(),u.children}Wf(Px,"FocusGuards");function Pf(){S.useEffect(()=>{pi||(pi={start:Uf(),end:Uf()});const{start:u,end:a}=pi;return document.body.firstElementChild!==u&&document.body.insertAdjacentElement("afterbegin",u),document.body.lastElementChild!==a&&document.body.insertAdjacentElement("beforeend",a),lc++,()=>{lc===1&&(pi?.start.remove(),pi?.end.remove(),pi=null),lc=Math.max(0,lc-1)}},[])}Wf(Pf,"useFocusGuards");function Uf(){const u=document.createElement("span");return u.setAttribute("data-radix-focus-guard",""),u.tabIndex=0,u.style.outline="none",u.style.opacity="0",u.style.position="fixed",u.style.pointerEvents="none",u}Wf(Uf,"createFocusGuard");var Ix=Object.defineProperty,ut=(u,a)=>Ix(u,"name",{value:a,configurable:!0}),vf="focusScope.autoFocusOnMount",gf="focusScope.autoFocusOnUnmount",$v={bubbles:!1,cancelable:!0},e_=S.forwardRef(ut(function(a,o){const{loop:c=!1,trapped:r=!1,branches:d,onMountAutoFocus:h,onUnmountAutoFocus:m,...y}=a,[b,x]=S.useState(null),g=ya(h),_=ya(m),O=S.useRef(null),T=ll(o,x),C=S.useRef(d);S.useEffect(()=>{C.current=d});const M=S.useCallback(U=>U?b?.contains(U)?!0:!!C.current?.some(G=>G.contains(U)):!1,[b]),D=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let U=function(V){if(D.paused||!b)return;const te=V.target;M(te)?O.current=te:Pn(O.current,{select:!0})},G=function(V){if(D.paused||!b)return;const te=V.relatedTarget;te!==null&&(M(te)||Pn(O.current,{select:!0}))},Q=function(V){if(document.activeElement===document.body)for(const se of V)se.removedNodes.length>0&&Pn(b)};ut(U,"handleFocusIn"),ut(G,"handleFocusOut"),ut(Q,"handleMutations"),document.addEventListener("focusin",U),document.addEventListener("focusout",G);const k=new MutationObserver(Q);return b&&k.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",U),document.removeEventListener("focusout",G),k.disconnect()}}},[r,b,D.paused,M]),S.useEffect(()=>{if(b){Wv.add(D);const U=document.activeElement;if(!b.contains(U)){const Q=new CustomEvent(vf,$v);b.addEventListener(vf,g),b.dispatchEvent(Q),Q.defaultPrevented||(S0(T0(If(b)),{select:!0}),document.activeElement===U&&Pn(b))}return()=>{b.removeEventListener(vf,g);const Q=b.ownerDocument,k=CustomEvent;setTimeout(()=>{const V=new k(gf,$v);b.addEventListener(gf,_),b.dispatchEvent(V),V.defaultPrevented||Pn(U??Q.body,{select:!0}),b.removeEventListener(gf,_),Wv.remove(D)},0)}}},[b,g,_,D]);const R=S.useCallback(U=>{if(!c&&!r||D.paused)return;const G=U.key==="Tab"&&!U.altKey&&!U.ctrlKey&&!U.metaKey,Q=document.activeElement;if(G&&Q){const k=U.currentTarget,[V,te]=x0(k);V&&te?!U.shiftKey&&Q===te?(U.preventDefault(),c&&Pn(V,{select:!0})):U.shiftKey&&Q===V&&(U.preventDefault(),c&&Pn(te,{select:!0})):Q===k&&U.preventDefault()}},[c,r,D.paused]);return p.jsx(Ci.div,{tabIndex:-1,...y,ref:T,onKeyDown:R})},"FocusScope")),v0=S.createContext(null);function g0({registry:u,children:a}){return u?p.jsx(v0.Provider,{value:u,children:a}):a}ut(g0,"FocusScopeBranchProvider");function y0(){const[u,a]=S.useState([]),o=S.useMemo(()=>({add:ut(c=>a(r=>r.includes(c)?r:[...r,c]),"add"),remove:ut(c=>a(r=>r.filter(d=>d!==c)),"remove")}),[]);return{nodes:u,registry:o}}ut(y0,"useFocusScopeBranchRegistry");function b0(u){const a=S.useContext(v0);S.useEffect(()=>{if(!(!u||!a))return a.add(u),()=>a.remove(u)},[u,a])}ut(b0,"useFocusScopeBranch");function S0(u,{select:a=!1}={}){const o=document.activeElement;for(const c of u)if(Pn(c,{select:a}),document.activeElement!==o)return}ut(S0,"focusFirst");function x0(u){const a=If(u),o=Lf(a,u),c=Lf(a.reverse(),u);return[o,c]}ut(x0,"getTabbableEdges");function If(u){const a=[],c=u.ownerDocument.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:ut(r=>{const d=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||d?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;c.nextNode();)a.push(c.currentNode);return a}ut(If,"getTabbableCandidates");function Lf(u,a){const o=typeof a.checkVisibility=="function"&&a.checkVisibility({checkVisibilityCSS:!0});for(const c of u)if(!(o?!c.checkVisibility({checkVisibilityCSS:!0}):_0(c,{upTo:a})))return c}ut(Lf,"findVisible");function _0(u,{upTo:a}){if(getComputedStyle(u).visibility==="hidden")return!0;for(;u;){if(a!==void 0&&u===a)return!1;if(getComputedStyle(u).display==="none")return!0;u=u.parentElement}return!1}ut(_0,"isHidden");function E0(u){return u.tagName==="INPUT"&&typeof u.select=="function"}ut(E0,"isSelectableInput");function Pn(u,{select:a=!1}={}){if(u&&u.focus){const c=(u.ownerDocument??document).activeElement;u.focus({preventScroll:!0}),u!==c&&E0(u)&&a&&u.select()}}ut(Pn,"focus");var Wv=O0();function O0(){let u=[];return{add(a){const o=u[0];a!==o&&o?.pause(),u=Hf(u,a),u.unshift(a)},remove(a){u=Hf(u,a),u[0]?.resume()}}}ut(O0,"createFocusScopesStack");function Hf(u,a){const o=[...u],c=o.indexOf(a);return c!==-1&&o.splice(c,1),o}ut(Hf,"arrayRemove");function T0(u){return u.filter(a=>a.tagName!=="A")}ut(T0,"removeLinks");var t_=Object.defineProperty,n_=(u,a)=>t_(u,"name",{value:a,configurable:!0}),l_=Oi[" useId ".trim().toString()]||(()=>{}),a_=0;function fc(u){const[a,o]=S.useState(l_());return mn(()=>{u||o(c=>c??String(a_++))},[u]),u||(a?`radix-${a}`:"")}n_(fc,"useId");const i_=["top","right","bottom","left"],Bl=Math.min,In=Math.max,yc=Math.round,ac=Math.floor,el=u=>({x:u,y:u}),u_={left:"right",right:"left",bottom:"top",top:"bottom"};function C0(u,a,o){return In(u,Bl(a,o))}function tl(u,a){return typeof u=="function"?u(a):u}function ql(u){return u.split("-")[0]}function Ni(u){return u.split("-")[1]}function ed(u){return u==="x"?"y":"x"}function td(u){return u==="y"?"height":"width"}function wn(u){const a=u[0];return a==="t"||a==="b"?"y":"x"}function nd(u){return ed(wn(u))}function s_(u,a,o){o===void 0&&(o=!1);const c=Ni(u),r=nd(u),d=td(r);let h=r==="x"?c===(o?"end":"start")?"right":"left":c==="start"?"bottom":"top";return a.reference[d]>a.floating[d]&&(h=bc(h)),[h,bc(h)]}function c_(u){const a=bc(u);return[Bf(u),a,Bf(a)]}function Bf(u){return u.includes("start")?u.replace("start","end"):u.replace("end","start")}const Pv=["left","right"],Iv=["right","left"],o_=["top","bottom"],r_=["bottom","top"];function f_(u,a,o){switch(u){case"top":case"bottom":return o?a?Iv:Pv:a?Pv:Iv;case"left":case"right":return a?o_:r_;default:return[]}}function d_(u,a,o,c){const r=Ni(u);let d=f_(ql(u),o==="start",c);return r&&(d=d.map(h=>h+"-"+r),a&&(d=d.concat(d.map(Bf)))),d}function bc(u){const a=ql(u);return u_[a]+u.slice(a.length)}function h_(u){var a,o,c,r;return{top:(a=u.top)!=null?a:0,right:(o=u.right)!=null?o:0,bottom:(c=u.bottom)!=null?c:0,left:(r=u.left)!=null?r:0}}function N0(u){return typeof u!="number"?h_(u):{top:u,right:u,bottom:u,left:u}}function Sc(u){const{x:a,y:o,width:c,height:r}=u;return{width:c,height:r,top:o,left:a,right:a+c,bottom:o+r,x:a,y:o}}function eg(u,a,o){let{reference:c,floating:r}=u;const d=wn(a),h=nd(a),m=td(h),y=ql(a),b=d==="y",x=c.x+c.width/2-r.width/2,g=c.y+c.height/2-r.height/2,_=c[m]/2-r[m]/2;let O;switch(y){case"top":O={x,y:c.y-r.height};break;case"bottom":O={x,y:c.y+c.height};break;case"right":O={x:c.x+c.width,y:g};break;case"left":O={x:c.x-r.width,y:g};break;default:O={x:c.x,y:c.y}}const T=Ni(a);return T&&(O[h]+=_*(T==="end"?1:-1)*(o&&b?-1:1)),O}async function m_(u,a){var o;a===void 0&&(a={});const{x:c,y:r,platform:d,rects:h,elements:m,strategy:y}=u,{boundary:b="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:_=!1,padding:O=0}=tl(a,u),T=N0(O),M=m[_?g==="floating"?"reference":"floating":g],D=Sc(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(M)))==null||o?M:M.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(m.floating)),boundary:b,rootBoundary:x,strategy:y})),R=g==="floating"?{x:c,y:r,width:h.floating.width,height:h.floating.height}:h.reference,U=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m.floating)),G=await(d.isElement==null?void 0:d.isElement(U))&&await(d.getScale==null?void 0:d.getScale(U))||{x:1,y:1},Q=Sc(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:R,offsetParent:U,strategy:y}):R);return{top:(D.top-Q.top+T.top)/G.y,bottom:(Q.bottom-D.bottom+T.bottom)/G.y,left:(D.left-Q.left+T.left)/G.x,right:(Q.right-D.right+T.right)/G.x}}const p_=50,v_=async(u,a,o)=>{const{placement:c="bottom",strategy:r="absolute",middleware:d=[],platform:h}=o,m=h.detectOverflow?h:{...h,detectOverflow:m_},y=await(h.isRTL==null?void 0:h.isRTL(a));let b=await h.getElementRects({reference:u,floating:a,strategy:r}),{x,y:g}=eg(b,c,y),_=c,O=0;const T={};for(let C=0;C<d.length;C++){const M=d[C];if(!M)continue;const{name:D,fn:R}=M,{x:U,y:G,data:Q,reset:k}=await R({x,y:g,initialPlacement:c,placement:_,strategy:r,middlewareData:T,rects:b,platform:m,elements:{reference:u,floating:a}});x=U??x,g=G??g,T[D]={...T[D],...Q},k&&O<p_&&(O++,typeof k=="object"&&(k.placement&&(_=k.placement),k.rects&&(b=k.rects===!0?await h.getElementRects({reference:u,floating:a,strategy:r}):k.rects),{x,y:g}=eg(b,_,y)),C=-1)}return{x,y:g,placement:_,strategy:r,middlewareData:T}},g_=u=>({name:"arrow",options:u,async fn(a){const{x:o,y:c,placement:r,rects:d,platform:h,elements:m,middlewareData:y}=a,{element:b,padding:x=0}=tl(u,a)||{};if(b==null)return{};const g=N0(x),_={x:o,y:c},O=nd(r),T=td(O),C=await h.getDimensions(b),M=O==="y",D=M?"top":"left",R=M?"bottom":"right",U=M?"clientHeight":"clientWidth",G=d.reference[T]+d.reference[O]-_[O]-d.floating[T],Q=_[O]-d.reference[O],k=await(h.getOffsetParent==null?void 0:h.getOffsetParent(b));let V=k?k[U]:0;(!V||!await(h.isElement==null?void 0:h.isElement(k)))&&(V=m.floating[U]||d.floating[T]);const te=G/2-Q/2,se=V/2-C[T]/2-1,ue=Bl(g[D],se),re=Bl(g[R],se),F=V-C[T]-re,oe=V/2-C[T]/2+te,fe=C0(ue,oe,F),he=!y.arrow&&Ni(r)!=null&&oe!==fe&&d.reference[T]/2-(oe<ue?ue:re)-C[T]/2<0,Z=he?oe<ue?oe-ue:oe-F:0;return{[O]:_[O]+Z,data:{[O]:fe,centerOffset:oe-fe-Z,...he&&{alignmentOffset:Z}},reset:he}}}),y_=function(u){return u===void 0&&(u={}),{name:"flip",options:u,async fn(a){var o,c;const{placement:r,middlewareData:d,rects:h,initialPlacement:m,platform:y,elements:b}=a,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:_,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:C=!0,...M}=tl(u,a);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const D=ql(r),R=wn(m),U=ql(m)===m,G=await(y.isRTL==null?void 0:y.isRTL(b.floating)),Q=_||(U||!C?[bc(m)]:c_(m)),k=T!=="none";!_&&k&&Q.push(...d_(m,C,T,G));const V=[m,...Q],te=await y.detectOverflow(a,M),se=[];let ue=((c=d.flip)==null?void 0:c.overflows)||[];if(x&&se.push(te[D]),g){const fe=s_(r,h,G);se.push(te[fe[0]],te[fe[1]])}if(ue=[...ue,{placement:r,overflows:se}],!se.every(fe=>fe<=0)){var re,F;const fe=(((re=d.flip)==null?void 0:re.index)||0)+1,he=V[fe];if(he&&(!(g==="alignment"?R!==wn(he):!1)||ue.every(J=>wn(J.placement)===R?J.overflows[0]>0:!0)))return{data:{index:fe,overflows:ue},reset:{placement:he}};let Z=(F=ue.filter(P=>P.overflows[0]<=0).sort((P,J)=>P.overflows[1]-J.overflows[1])[0])==null?void 0:F.placement;if(!Z)switch(O){case"bestFit":{var oe;const P=(oe=ue.filter(J=>{if(k){const W=wn(J.placement);return W===R||W==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(W=>W>0).reduce((W,K)=>W+K,0)]).sort((J,W)=>J[1]-W[1])[0])==null?void 0:oe[0];P&&(Z=P);break}case"initialPlacement":Z=m;break}if(r!==Z)return{reset:{placement:Z}}}return{}}}};function tg(u,a){return{top:u.top-a.height,right:u.right-a.width,bottom:u.bottom-a.height,left:u.left-a.width}}function ng(u){return i_.some(a=>u[a]>=0)}const b_=function(u){return u===void 0&&(u={}),{name:"hide",options:u,async fn(a){const{rects:o,platform:c}=a,{strategy:r="referenceHidden",...d}=tl(u,a);switch(r){case"referenceHidden":{const h=await c.detectOverflow(a,{...d,elementContext:"reference"}),m=tg(h,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:ng(m)}}}case"escaped":{const h=await c.detectOverflow(a,{...d,altBoundary:!0}),m=tg(h,o.floating);return{data:{escapedOffsets:m,escaped:ng(m)}}}default:return{}}}}},M0=new Set(["left","top"]);async function S_(u,a){const{placement:o,platform:c,elements:r}=u,d=await(c.isRTL==null?void 0:c.isRTL(r.floating)),h=ql(o),m=Ni(o),y=wn(o)==="y",b=M0.has(h)?-1:1,x=d&&y?-1:1,g=tl(a,u);let{mainAxis:_,crossAxis:O,alignmentAxis:T}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof T=="number"&&(O=m==="end"?T*-1:T),y?{x:O*x,y:_*b}:{x:_*b,y:O*x}}const x_=function(u){return u===void 0&&(u=0),{name:"offset",options:u,async fn(a){var o,c;const{x:r,y:d,placement:h,middlewareData:m}=a,y=await S_(a,u);return h===((o=m.offset)==null?void 0:o.placement)&&(c=m.arrow)!=null&&c.alignmentOffset?{}:{x:r+y.x,y:d+y.y,data:{...y,placement:h}}}}},__=function(u){return u===void 0&&(u={}),{name:"shift",options:u,async fn(a){const{x:o,y:c,placement:r,platform:d}=a,{mainAxis:h=!0,crossAxis:m=!1,limiter:y={fn:R=>{let{x:U,y:G}=R;return{x:U,y:G}}},...b}=tl(u,a),x={x:o,y:c},g=await d.detectOverflow(a,b),_=wn(r),O=ed(_);let T=x[O],C=x[_];const M=(R,U)=>C0(U+g[R==="y"?"top":"left"],U,U-g[R==="y"?"bottom":"right"]);h&&(T=M(O,T)),m&&(C=M(_,C));const D=y.fn({...a,[O]:T,[_]:C});return{...D,data:{x:D.x-o,y:D.y-c,enabled:{[O]:h,[_]:m}}}}}},E_=function(u){return u===void 0&&(u={}),{options:u,fn(a){var o,c;const{x:r,y:d,placement:h,rects:m,middlewareData:y}=a,{offset:b=0,mainAxis:x=!0,crossAxis:g=!0}=tl(u,a),_={x:r,y:d},O=wn(h),T=ed(O);let C=_[T],M=_[O];const D=tl(b,a),R=typeof D=="number"?{mainAxis:D,crossAxis:0}:{mainAxis:(o=D.mainAxis)!=null?o:0,crossAxis:(c=D.crossAxis)!=null?c:0};if(x){const Q=T==="y"?"height":"width",k=m.reference[T]-m.floating[Q]+R.mainAxis,V=m.reference[T]+m.reference[Q]-R.mainAxis;C<k?C=k:C>V&&(C=V)}if(g){var U,G;const Q=T==="y"?"width":"height",k=M0.has(ql(h)),V=m.reference[O]-m.floating[Q]+(k&&((U=y.offset)==null?void 0:U[O])||0)+(k?0:R.crossAxis),te=m.reference[O]+m.reference[Q]+(k?0:((G=y.offset)==null?void 0:G[O])||0)-(k?R.crossAxis:0);M<V?M=V:M>te&&(M=te)}return{[T]:C,[O]:M}}}},O_=function(u){return u===void 0&&(u={}),{name:"size",options:u,async fn(a){const{placement:o,rects:c,platform:r,elements:d}=a,{apply:h=()=>{},...m}=tl(u,a),y=await r.detectOverflow(a,m),b=ql(o),x=Ni(o),g=wn(o)==="y",{width:_,height:O}=c.floating;let T,C;b==="top"||b==="bottom"?(T=b,C=x===(await(r.isRTL==null?void 0:r.isRTL(d.floating))?"start":"end")?"left":"right"):(C=b,T=x==="end"?"top":"bottom");const M=O-y.top-y.bottom,D=_-y.left-y.right,R=Bl(O-y[T],M),U=Bl(_-y[C],D),G=a.middlewareData.shift,Q=!G;let k=R,V=U;G!=null&&G.enabled.x&&(V=D),G!=null&&G.enabled.y&&(k=M),Q&&!x&&(g?V=_-2*In(y.left,y.right):k=O-2*In(y.top,y.bottom)),await h({...a,availableWidth:V,availableHeight:k});const te=await r.getDimensions(d.floating);return _!==te.width||O!==te.height?{reset:{rects:!0}}:{}}}};function Oc(){return typeof window<"u"}function Mi(u){return A0(u)?(u.nodeName||"").toLowerCase():"#document"}function Lt(u){var a;return(u==null||(a=u.ownerDocument)==null?void 0:a.defaultView)||window}function al(u){var a;return(a=(A0(u)?u.ownerDocument:u.document)||window.document)==null?void 0:a.documentElement}function A0(u){return Oc()?u instanceof Node||u instanceof Lt(u).Node:!1}function zn(u){return Oc()?u instanceof Element||u instanceof Lt(u).Element:!1}function Xl(u){return Oc()?u instanceof HTMLElement||u instanceof Lt(u).HTMLElement:!1}function lg(u){return!Oc()||typeof ShadowRoot>"u"?!1:u instanceof ShadowRoot||u instanceof Lt(u).ShadowRoot}function Tc(u){const{overflow:a,overflowX:o,overflowY:c,display:r}=jn(u);return/auto|scroll|overlay|hidden|clip/.test(a+c+o)&&r!=="inline"&&r!=="contents"}function T_(u){return/^(table|td|th)$/.test(Mi(u))}function Cc(u){try{if(u.matches(":popover-open"))return!0}catch{}try{return u.matches(":modal")}catch{return!1}}const C_=/transform|translate|scale|rotate|perspective|filter/,N_=/paint|layout|strict|content/,va=u=>!!u&&u!=="none";let yf;function ld(u){const a=zn(u)?jn(u):u;return va(a.transform)||va(a.translate)||va(a.scale)||va(a.rotate)||va(a.perspective)||!ad()&&(va(a.backdropFilter)||va(a.filter))||C_.test(a.willChange||"")||N_.test(a.contain||"")}function M_(u){let a=ba(u);for(;Xl(a)&&!Cu(a);){if(ld(a))return a;if(Cc(a))return null;a=ba(a)}return null}function ad(){return yf==null&&(yf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yf}function Cu(u){return/^(html|body|#document)$/.test(Mi(u))}function jn(u){return Lt(u).getComputedStyle(u)}function Nc(u){return zn(u)?{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}:{scrollLeft:u.scrollX,scrollTop:u.scrollY}}function ba(u){if(Mi(u)==="html")return u;const a=u.assignedSlot||u.parentNode||lg(u)&&u.host||al(u);return lg(a)?a.host:a}function w0(u){const a=ba(u);return Cu(a)?(u.ownerDocument||u).body:Xl(a)&&Tc(a)?a:w0(a)}function Nu(u,a,o){var c;a===void 0&&(a=[]),o===void 0&&(o=!0);const r=w0(u),d=r===((c=u.ownerDocument)==null?void 0:c.body),h=Lt(r);if(d){const m=qf(h);return a.concat(h,h.visualViewport||[],Tc(r)?r:[],m&&o?Nu(m):[])}else return a.concat(r,Nu(r,[],o))}function qf(u){return u.parent&&Object.getPrototypeOf(u.parent)?u.frameElement:null}function z0(u){const a=jn(u);let o=parseFloat(a.width)||0,c=parseFloat(a.height)||0;const r=Xl(u),d=r?u.offsetWidth:o,h=r?u.offsetHeight:c,m=yc(o)!==d||yc(c)!==h;return m&&(o=d,c=h),{width:o,height:c,$:m}}function id(u){return zn(u)?u:u.contextElement}function xi(u){const a=id(u);if(!Xl(a))return el(1);const o=a.getBoundingClientRect(),{width:c,height:r,$:d}=z0(a);let h=(d?yc(o.width):o.width)/c,m=(d?yc(o.height):o.height)/r;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const A_=el(0);function j0(u){const a=Lt(u);return!ad()||!a.visualViewport?A_:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function w_(u,a,o){return a===void 0&&(a=!1),!!o&&a&&o===Lt(u)}function Sa(u,a,o,c){a===void 0&&(a=!1),o===void 0&&(o=!1);const r=u.getBoundingClientRect(),d=id(u);let h=el(1);a&&(c?zn(c)&&(h=xi(c)):h=xi(u));const m=w_(d,o,c)?j0(d):el(0);let y=(r.left+m.x)/h.x,b=(r.top+m.y)/h.y,x=r.width/h.x,g=r.height/h.y;if(d&&c){const _=Lt(d),O=zn(c)?Lt(c):c;let T=_,C=qf(T);for(;C&&O!==T;){const M=xi(C),D=C.getBoundingClientRect(),R=jn(C),U=D.left+(C.clientLeft+parseFloat(R.paddingLeft))*M.x,G=D.top+(C.clientTop+parseFloat(R.paddingTop))*M.y;y*=M.x,b*=M.y,x*=M.x,g*=M.y,y+=U,b+=G,T=Lt(C),C=qf(T)}}return Sc({width:x,height:g,x:y,y:b})}function Mc(u,a){const o=Nc(u).scrollLeft;return a?a.left+o:Sa(al(u)).left+o}function R0(u,a){const o=u.getBoundingClientRect(),c=o.left+a.scrollLeft-Mc(u,o),r=o.top+a.scrollTop;return{x:c,y:r}}function z_(u){let{elements:a,rect:o,offsetParent:c,strategy:r}=u;const d=r==="fixed",h=al(c),m=a?Cc(a.floating):!1;if(c===h||m&&d)return o;let y={scrollLeft:0,scrollTop:0},b=el(1);const x=el(0),g=Xl(c);if((g||!d)&&((Mi(c)!=="body"||Tc(h))&&(y=Nc(c)),g)){const O=Sa(c);b=xi(c),x.x=O.x+c.clientLeft,x.y=O.y+c.clientTop}const _=h&&!g&&!d?R0(h,y):el(0);return{width:o.width*b.x,height:o.height*b.y,x:o.x*b.x-y.scrollLeft*b.x+x.x+_.x,y:o.y*b.y-y.scrollTop*b.y+x.y+_.y}}function j_(u){return u.getClientRects?Array.from(u.getClientRects()):[]}function R_(u){const a=Nc(u),o=u.ownerDocument.body,c=In(u.scrollWidth,u.clientWidth,o.scrollWidth,o.clientWidth),r=In(u.scrollHeight,u.clientHeight,o.scrollHeight,o.clientHeight);let d=-a.scrollLeft+Mc(u);const h=-a.scrollTop;return jn(o).direction==="rtl"&&(d+=In(u.clientWidth,o.clientWidth)-c),{width:c,height:r,x:d,y:h}}const D_=25;function U_(u,a,o){o===void 0&&(o="viewport");const c=o==="layoutViewport",r=Lt(u),d=al(u),h=r.visualViewport;let m=d.clientWidth,y=d.clientHeight,b=0,x=0;if(h){const _=!ad()||a==="fixed";c?_||(b=-h.offsetLeft,x=-h.offsetTop):(m=h.width,y=h.height,_&&(b=h.offsetLeft,x=h.offsetTop))}if(Mc(d)<=0){const _=d.ownerDocument,O=_.body,T=getComputedStyle(O),C=_.compatMode==="CSS1Compat"&&parseFloat(T.marginLeft)+parseFloat(T.marginRight)||0,M=Math.abs(d.clientWidth-O.clientWidth-C),D=getComputedStyle(d).scrollbarGutter==="stable both-edges"?M/2:M;D<=D_&&(m-=D)}return{width:m,height:y,x:b,y:x}}function L_(u,a){const o=Sa(u,!0,a==="fixed"),c=o.top+u.clientTop,r=o.left+u.clientLeft,d=xi(u),h=u.clientWidth*d.x,m=u.clientHeight*d.y,y=r*d.x,b=c*d.y;return{width:h,height:m,x:y,y:b}}function ag(u,a,o){let c;if(a==="viewport"||a==="layoutViewport")c=U_(u,o,a);else if(a==="document")c=R_(al(u));else if(zn(a))c=L_(a,o);else{const r=j0(u);c={x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}return Sc(c)}function H_(u,a){const o=a.get(u);if(o)return o;let c=Nu(u,[],!1).filter(m=>zn(m)&&Mi(m)!=="body"),r=null;const d=jn(u).position==="fixed";let h=d?ba(u):u;for(;zn(h)&&!Cu(h);){const m=jn(h),y=ld(h),b=r?r.position:d?"fixed":"";!y&&(b==="fixed"||b==="absolute"&&m.position==="static")?c=c.filter(g=>g!==h):r=m,h=ba(h)}return a.set(u,c),c}function B_(u){let{element:a,boundary:o,rootBoundary:c,strategy:r}=u;const h=[...o==="clippingAncestors"?Cc(a)?[]:H_(a,this._c):[].concat(o),c],m=ag(a,h[0],r);let y=m.top,b=m.right,x=m.bottom,g=m.left;for(let _=1;_<h.length;_++){const O=ag(a,h[_],r);y=In(O.top,y),b=Bl(O.right,b),x=Bl(O.bottom,x),g=In(O.left,g)}return{width:b-g,height:x-y,x:g,y}}function q_(u){const{width:a,height:o}=z0(u);return{width:a,height:o}}function V_(u,a,o){const c=Xl(a),r=al(a),d=o==="fixed",h=Sa(u,!0,d,a);let m={scrollLeft:0,scrollTop:0};const y=el(0);if((c||!d)&&((Mi(a)!=="body"||Tc(r))&&(m=Nc(a)),c)){const _=Sa(a,!0,d,a);y.x=_.x+a.clientLeft,y.y=_.y+a.clientTop}!c&&r&&(y.x=Mc(r));const b=r&&!c&&!d?R0(r,m):el(0),x=h.left+m.scrollLeft-y.x-b.x,g=h.top+m.scrollTop-y.y-b.y;return{x,y:g,width:h.width,height:h.height}}function bf(u){return jn(u).position==="static"}function ig(u,a){if(!Xl(u)||jn(u).position==="fixed")return null;if(a)return a(u);let o=u.offsetParent;return al(u)===o&&(o=o.ownerDocument.body),o}function D0(u,a){const o=Lt(u);if(Cc(u))return o;if(!Xl(u)){let r=ba(u);for(;r&&!Cu(r);){if(zn(r)&&!bf(r))return r;r=ba(r)}return o}let c=ig(u,a);for(;c&&T_(c)&&bf(c);)c=ig(c,a);return c&&Cu(c)&&bf(c)&&!ld(c)?o:c||M_(u)||o}const G_=async function(u){const a=this.getOffsetParent||D0,o=this.getDimensions,c=await o(u.floating);return{reference:V_(u.reference,await a(u.floating),u.strategy),floating:{x:0,y:0,width:c.width,height:c.height}}};function Y_(u){return jn(u).direction==="rtl"}const X_={convertOffsetParentRelativeRectToViewportRelativeRect:z_,getDocumentElement:al,getClippingRect:B_,getOffsetParent:D0,getElementRects:G_,getClientRects:j_,getDimensions:q_,getScale:xi,isElement:zn,isRTL:Y_};function U0(u,a){return u.x===a.x&&u.y===a.y&&u.width===a.width&&u.height===a.height}function Q_(u,a,o){let c=null,r;const d=al(u);function h(){var x;clearTimeout(r),(x=c)==null||x.disconnect(),c=null}function m(x,g){x===void 0&&(x=!1),g===void 0&&(g=1),h();const _=u.getBoundingClientRect(),{left:O,top:T,width:C,height:M}=_;if(x||a(),!C||!M)return;const D=ac(T),R=ac(d.clientWidth-(O+C)),U=ac(d.clientHeight-(T+M)),G=ac(O),k={rootMargin:-D+"px "+-R+"px "+-U+"px "+-G+"px",threshold:In(0,Bl(1,g))||1};let V=!0;function te(se){const ue=se[0].intersectionRatio;if(!U0(_,u.getBoundingClientRect()))return m();if(ue!==g){if(!V)return m();ue?m(!1,ue):r=setTimeout(()=>{m(!1,1e-7)},1e3)}V=!1}try{c=new IntersectionObserver(te,{...k,root:d.ownerDocument})}catch{c=new IntersectionObserver(te,k)}c.observe(u)}const y=Lt(u),b=()=>m(o);return y.addEventListener("resize",b),m(!0),()=>{y.removeEventListener("resize",b),h()}}function Z_(u,a,o,c){c===void 0&&(c={});const{ancestorScroll:r=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:y=!1}=c,b=id(u),x=r||d?[...b?Nu(b):[],...a?Nu(a):[]]:[];x.forEach(D=>{r&&D.addEventListener("scroll",o),d&&D.addEventListener("resize",o)});const g=b&&m?Q_(b,o,d):null;let _=-1,O=null;h&&(O=new ResizeObserver(D=>{let[R]=D;R&&R.target===b&&O&&a&&(O.unobserve(a),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var U;(U=O)==null||U.observe(a)})),o()}),b&&!y&&O.observe(b),a&&O.observe(a));let T,C=y?Sa(u):null;y&&M();function M(){const D=Sa(u);C&&!U0(C,D)&&o(),C=D,T=requestAnimationFrame(M)}return o(),()=>{var D;x.forEach(R=>{r&&R.removeEventListener("scroll",o),d&&R.removeEventListener("resize",o)}),g?.(),(D=O)==null||D.disconnect(),O=null,y&&cancelAnimationFrame(T)}}const K_=x_,k_=__,J_=y_,F_=O_,$_=b_,ug=g_,W_=E_,P_=(u,a,o)=>{const c=new Map,r=o??{},d={...X_,...r.platform,_c:c};return v_(u,a,{...r,platform:d})};var I_=typeof document<"u",e2=function(){},dc=I_?S.useLayoutEffect:e2;function xc(u,a){if(u===a)return!0;if(typeof u!=typeof a)return!1;if(typeof u=="function"&&u.toString()===a.toString())return!0;let o,c,r;if(u&&a&&typeof u=="object"){if(Array.isArray(u)){if(o=u.length,o!==a.length)return!1;for(c=o;c--!==0;)if(!xc(u[c],a[c]))return!1;return!0}if(r=Object.keys(u),o=r.length,o!==Object.keys(a).length)return!1;for(c=o;c--!==0;)if(!{}.hasOwnProperty.call(a,r[c]))return!1;for(c=o;c--!==0;){const d=r[c];if(!(d==="_owner"&&u.$$typeof)&&!xc(u[d],a[d]))return!1}return!0}return u!==u&&a!==a}function L0(u){return typeof window>"u"?1:(u.ownerDocument.defaultView||window).devicePixelRatio||1}function sg(u,a){const o=L0(u);return Math.round(a*o)/o}function Sf(u){const a=S.useRef(u);return dc(()=>{a.current=u}),a}function t2(u){u===void 0&&(u={});const{placement:a="bottom",strategy:o="absolute",middleware:c=[],platform:r,elements:{reference:d,floating:h}={},transform:m=!0,whileElementsMounted:y,open:b}=u,[x,g]=S.useState({x:0,y:0,strategy:o,placement:a,middlewareData:{},isPositioned:!1}),[_,O]=S.useState(c);xc(_,c)||O(c);const[T,C]=S.useState(null),[M,D]=S.useState(null),R=S.useCallback(J=>{J!==k.current&&(k.current=J,C(J))},[]),U=S.useCallback(J=>{J!==V.current&&(V.current=J,D(J))},[]),G=d||T,Q=h||M,k=S.useRef(null),V=S.useRef(null),te=S.useRef(x),se=y!=null,ue=Sf(y),re=Sf(r),F=Sf(b),oe=S.useCallback(()=>{if(!k.current||!V.current)return;const J={placement:a,strategy:o,middleware:_};re.current&&(J.platform=re.current),P_(k.current,V.current,J).then(W=>{const K={...W,isPositioned:F.current!==!1};fe.current&&!xc(te.current,K)&&(te.current=K,Ec.flushSync(()=>{g(K)}))})},[_,a,o,re,F]);dc(()=>{b===!1&&te.current.isPositioned&&(te.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[b]);const fe=S.useRef(!1);dc(()=>(fe.current=!0,()=>{fe.current=!1}),[]),dc(()=>{if(G&&(k.current=G),Q&&(V.current=Q),G&&Q){if(ue.current)return ue.current(G,Q,oe);oe()}},[G,Q,oe,ue,se]);const he=S.useMemo(()=>({reference:k,floating:V,setReference:R,setFloating:U}),[R,U]),Z=S.useMemo(()=>({reference:G,floating:Q}),[G,Q]),P=S.useMemo(()=>{const J={position:o,left:0,top:0};if(!Z.floating)return J;const W=sg(Z.floating,x.x),K=sg(Z.floating,x.y);return m?{...J,transform:"translate("+W+"px, "+K+"px)",...L0(Z.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:W,top:K}},[o,m,Z.floating,x.x,x.y]);return S.useMemo(()=>({...x,update:oe,refs:he,elements:Z,floatingStyles:P}),[x,oe,he,Z,P])}const n2=u=>{function a(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:u,fn(o){const{element:c,padding:r}=typeof u=="function"?u(o):u;return c&&a(c)?c.current!=null?ug({element:c.current,padding:r}).fn(o):{}:c?ug({element:c,padding:r}).fn(o):{}}}},l2=(u,a)=>{const o=K_(u);return{name:o.name,fn:o.fn,options:[u,a]}},a2=(u,a)=>{const o=k_(u);return{name:o.name,fn:o.fn,options:[u,a]}},i2=(u,a)=>({fn:W_(u).fn,options:[u,a]}),u2=(u,a)=>{const o=J_(u);return{name:o.name,fn:o.fn,options:[u,a]}},s2=(u,a)=>{const o=F_(u);return{name:o.name,fn:o.fn,options:[u,a]}},c2=(u,a)=>{const o=$_(u);return{name:o.name,fn:o.fn,options:[u,a]}},o2=(u,a)=>{const o=n2(u);return{name:o.name,fn:o.fn,options:[u,a]}};var r2=Object.defineProperty,f2=(u,a)=>r2(u,"name",{value:a,configurable:!0});function H0(u){const[a,o]=S.useState(void 0);return mn(()=>{if(u){o({width:u.offsetWidth,height:u.offsetHeight});let c=0;const r=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const h=d[0];window.cancelAnimationFrame(c),c=window.requestAnimationFrame(()=>{let m,y;if("borderBoxSize"in h){const b=h.borderBoxSize,x=Array.isArray(b)?b[0]:b;m=x.inlineSize,y=x.blockSize}else m=u.offsetWidth,y=u.offsetHeight;o({width:m,height:y})})});return r.observe(u,{box:"border-box"}),()=>{window.cancelAnimationFrame(c),r.unobserve(u)}}else o(void 0)},[u]),a}f2(H0,"useSize");var d2=Object.defineProperty,Hl=(u,a)=>d2(u,"name",{value:a,configurable:!0}),cg={Partial:"partial"},og={Optimized:"optimized",Always:"always"},B0="Popper",[q0,V0]=kf(B0),[h2,G0]=q0(B0),m2=Hl(u=>{const{__scopePopper:a,children:o}=u,[c,r]=S.useState(null),[d,h]=S.useState(void 0);return p.jsx(h2,{scope:a,anchor:c,onAnchorChange:r,placementState:d,setPlacementState:h,children:o})},"Popper"),p2="PopperAnchor",v2=S.forwardRef(Hl(function(a,o){const{__scopePopper:c,virtualRef:r,...d}=a,h=G0(p2,c),m=S.useRef(null),y=h.onAnchorChange,b=S.useCallback(C=>{m.current=C,C&&y(C)},[y]),x=ll(o,b),g=S.useRef(null);S.useEffect(()=>{if(!r)return;const C=g.current;g.current=r.current,C!==g.current&&y(g.current)});const _=h.placementState&&Ac(h.placementState),O=_?.[0],T=_?.[1];return r?null:p.jsx(Ci.div,{"data-radix-popper-side":O,"data-radix-popper-align":T,...d,ref:x})},"PopperAnchor")),Y0="PopperContent",[g2,JE]=q0(Y0),y2=S.forwardRef(Hl(function(a,o){const{__scopePopper:c,side:r="bottom",sideOffset:d=0,align:h="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:g=0,sticky:_=cg.Partial,hideWhenDetached:O=!1,updatePositionStrategy:T=og.Optimized,onPlaced:C,...M}=a,D=G0(Y0,c),[R,U]=S.useState(null),G=ll(o,U),[Q,k]=S.useState(null),V=H0(Q),te=V?.width??0,se=V?.height??0,ue=r+(h!=="center"?"-"+h:""),re=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},F=Array.isArray(x)?x:[x],oe=F.length>0,fe={padding:re,boundary:F.filter(X0),altBoundary:oe},{refs:he,floatingStyles:Z,placement:P,isPositioned:J,middlewareData:W}=t2({strategy:"fixed",placement:ue,whileElementsMounted:Hl((...Te)=>Z_(...Te,{animationFrame:T===og.Always}),"whileElementsMounted"),elements:{reference:D.anchor},middleware:[l2({mainAxis:d+se,alignmentAxis:m}),b&&a2({mainAxis:!0,crossAxis:!1,..._===cg.Partial?{limiter:i2()}:{},...fe}),b&&u2({...fe}),s2({...fe,apply:Hl(({elements:Te,rects:Ze,availableWidth:ne,availableHeight:de})=>{const{width:$,height:Re}=Ze.reference,Ke=Te.floating.style;Ke.setProperty("--radix-popper-available-width",`${ne}px`),Ke.setProperty("--radix-popper-available-height",`${de}px`),Ke.setProperty("--radix-popper-anchor-width",`${$}px`),Ke.setProperty("--radix-popper-anchor-height",`${Re}px`)},"apply")}),Q&&o2({element:Q,padding:y}),b2({arrowWidth:te,arrowHeight:se}),O&&c2(oe?{strategy:"referenceHidden",...fe}:{strategy:"referenceHidden",padding:fe.padding,altBoundary:fe.altBoundary})]}),K=D.setPlacementState;mn(()=>(K(P),()=>{K(void 0)}),[P,K]);const[ve,He]=Ac(P),we=ya(C);mn(()=>{J&&we?.()},[J,we]);const Me=W.arrow?.x,Be=W.arrow?.y,$e=W.arrow?.centerOffset!==0,[Qe,st]=S.useState();return mn(()=>{R&&st(window.getComputedStyle(R).zIndex)},[R]),p.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:J?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Qe,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:p.jsx(g2,{scope:c,placedSide:ve,placedAlign:He,onArrowChange:k,arrowX:Me,arrowY:Be,shouldHideArrow:$e,children:p.jsx(Ci.div,{"data-side":ve,"data-align":He,...M,ref:G,style:{...M.style,animation:J?M.style?.animation:"none"}})})})},"PopperContent"));function X0(u){return u!==null}Hl(X0,"isNotNull");var b2=Hl(u=>({name:"transformOrigin",options:u,fn(a){const{placement:o,rects:c,middlewareData:r}=a,h=r.arrow?.centerOffset!==0,m=h?0:u.arrowWidth,y=h?0:u.arrowHeight,[b,x]=Ac(o),g={start:"0%",center:"50%",end:"100%"}[x],_=(r.arrow?.x??0)+m/2,O=(r.arrow?.y??0)+y/2;let T="",C="";return b==="bottom"?(T=h?g:`${_}px`,C=`${-y}px`):b==="top"?(T=h?g:`${_}px`,C=`${c.floating.height+y}px`):b==="right"?(T=`${-y}px`,C=h?g:`${O}px`):b==="left"&&(T=`${c.floating.width+y}px`,C=h?g:`${O}px`),{data:{x:T,y:C}}}}),"transformOrigin");function Ac(u){const[a,o="center"]=u.split("-");return[a,o]}Hl(Ac,"getSideAndAlignFromPlacement");var S2=Object.defineProperty,x2=(u,a)=>S2(u,"name",{value:a,configurable:!0}),_2=S.forwardRef(x2(function(a,o){const{container:c,...r}=a,[d,h]=S.useState(!1);mn(()=>h(!0),[]);const m=c||d&&globalThis?.document?.body;return m?Ec.createPortal(p.jsx(Ci.div,{...r,ref:o}),m):null},"Portal")),E2=Object.defineProperty,nl=(u,a)=>E2(u,"name",{value:a,configurable:!0});function Q0(u,a){return S.useReducer((o,c)=>a[o][c]??o,u)}nl(Q0,"useStateMachine");var Z0=nl(u=>{const{present:a,children:o}=u,c=K0(a),r=typeof o=="function"?o({present:c.isPresent}):S.Children.only(o),d=k0(c.ref,J0(r));return typeof o=="function"||c.isPresent?S.cloneElement(r,{ref:d}):null},"Presence");function K0(u){const[a,o]=S.useState(),c=S.useRef(null),r=S.useRef(u),d=S.useRef("none"),h=S.useRef(void 0),m=u?"mounted":"unmounted",[y,b]=Q0(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{y==="mounted"?(d.current=h.current??Si(c.current),h.current=void 0):d.current="none"},[y]),mn(()=>{const x=c.current,g=r.current;if(g!==u){const O=d.current,T=Si(x);u?(h.current=T,b("MOUNT")):T==="none"||x?.display==="none"?b("UNMOUNT"):b(g&&O!==T?"ANIMATION_OUT":"UNMOUNT"),r.current=u}},[u,b]),mn(()=>{if(a){let x;const g=a.ownerDocument.defaultView??window,_=nl(T=>{const M=Si(c.current).includes(CSS.escape(T.animationName));if(T.target===a&&M&&(b("ANIMATION_END"),!r.current)){const D=a.style.animationFillMode;a.style.animationFillMode="forwards",x=g.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=D)})}},"handleAnimationEnd"),O=nl(T=>{T.target===a&&(d.current=Si(c.current))},"handleAnimationStart");return a.addEventListener("animationstart",O),a.addEventListener("animationcancel",_),a.addEventListener("animationend",_),()=>{g.clearTimeout(x),a.removeEventListener("animationstart",O),a.removeEventListener("animationcancel",_),a.removeEventListener("animationend",_)}}else b("ANIMATION_END")},[a,b]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:S.useCallback(x=>{if(x){const g=getComputedStyle(x);c.current=g,h.current=Si(g)}else c.current=null;o(x)},[])}}nl(K0,"usePresence");function Vf(u,a){if(typeof u=="function")return u(a);u!=null&&(u.current=a)}nl(Vf,"setRef");function k0(...u){const a=S.useRef(u);return a.current=u,S.useCallback(o=>{const c=a.current;let r=!1;const d=c.map(h=>{const m=Vf(h,o);return!r&&typeof m=="function"&&(r=!0),m});if(r)return()=>{for(let h=0;h<d.length;h++){const m=d[h];typeof m=="function"?m():Vf(c[h],null)}}},[])}nl(k0,"useStableComposedRefs");function Si(u){return u?.animationName||"none"}nl(Si,"getAnimationName");function J0(u){let a=Object.getOwnPropertyDescriptor(u.props,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?u.ref:(a=Object.getOwnPropertyDescriptor(u,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?u.props.ref:u.props.ref||u.ref)}nl(J0,"getElementRef");var O2=Object.defineProperty,T2=(u,a)=>O2(u,"name",{value:a,configurable:!0}),rg=Oi[" useEffectEvent ".trim().toString()],fg=Oi[" useInsertionEffect ".trim().toString()];function F0(u){if(typeof rg=="function")return rg(u);const a=S.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof fg=="function"?fg(()=>{a.current=u}):mn(()=>{a.current=u}),S.useMemo(()=>((...o)=>a.current?.(...o)),[])}T2(F0,"useEffectEvent");var C2=Object.defineProperty,Au=(u,a)=>C2(u,"name",{value:a,configurable:!0}),N2=Oi[" useInsertionEffect ".trim().toString()]||mn;function $0({prop:u,defaultProp:a,onChange:o=Au(()=>{},"onChange"),caller:c}){const[r,d,h]=W0({defaultProp:a,onChange:o}),m=u!==void 0,y=m?u:r,b=S.useCallback(x=>{if(m){const g=P0(x)?x(u):x;g!==u&&h.current?.(g)}else d(x)},[m,u,d,h]);return[y,b]}Au($0,"useControllableState");function W0({defaultProp:u,onChange:a}){const[o,c]=S.useState(u),r=S.useRef(o),d=S.useRef(a);return N2(()=>{d.current=a},[a]),S.useEffect(()=>{r.current!==o&&(d.current?.(o),r.current=o)},[o,r]),[o,c,d]}Au(W0,"useUncontrolledState");function P0(u){return typeof u=="function"}Au(P0,"isFunction");var dg=Symbol("RADIX:SYNC_STATE");function M2(u,a,o,c){const{prop:r,defaultProp:d,onChange:h,caller:m}=a,y=r!==void 0,b=F0(h),x=[{...o,state:d}];c&&x.push(c);const[g,_]=S.useReducer((M,D)=>{if(D.type===dg)return{...M,state:D.state};const R=u(M,D);return y&&!Object.is(R.state,M.state)&&b(R.state),R},...x),O=g.state,T=S.useRef(O);S.useEffect(()=>{T.current!==O&&(T.current=O,y||b(O))},[O,T,y]);const C=S.useMemo(()=>r!==void 0?{...g,state:r}:g,[g,r]);return S.useEffect(()=>{y&&!Object.is(r,g.state)&&_({type:dg,state:r})},[r,g.state,y]),[C,_]}Au(M2,"useControllableStateReducer");var A2=function(u){if(typeof document>"u")return null;var a=Array.isArray(u)?u[0]:u;return a.ownerDocument.body},vi=new WeakMap,ic=new WeakMap,uc={},xf=0,I0=function(u){return u&&(u.host||I0(u.parentNode))},w2=function(u,a){return a.map(function(o){if(u.contains(o))return o;var c=I0(o);return c&&u.contains(c)?c:(console.error("aria-hidden",o,"in not contained inside",u,". Doing nothing"),null)}).filter(function(o){return!!o})},z2=function(u,a,o,c){var r=w2(a,Array.isArray(u)?u:[u]);uc[o]||(uc[o]=new WeakMap);var d=uc[o],h=[],m=new Set,y=new Set(r),b=function(g){!g||m.has(g)||(m.add(g),b(g.parentNode))};r.forEach(b);var x=function(g){!g||y.has(g)||Array.prototype.forEach.call(g.children,function(_){if(m.has(_))x(_);else try{var O=_.getAttribute(c),T=O!==null&&O!=="false",C=(vi.get(_)||0)+1,M=(d.get(_)||0)+1;vi.set(_,C),d.set(_,M),h.push(_),C===1&&T&&ic.set(_,!0),M===1&&_.setAttribute(o,"true"),T||_.setAttribute(c,"true")}catch(D){console.error("aria-hidden: cannot operate on ",_,D)}})};return x(a),m.clear(),xf++,function(){h.forEach(function(g){var _=vi.get(g)-1,O=d.get(g)-1;vi.set(g,_),d.set(g,O),_||(ic.has(g)||g.removeAttribute(c),ic.delete(g)),O||g.removeAttribute(o)}),xf--,xf||(vi=new WeakMap,vi=new WeakMap,ic=new WeakMap,uc={})}},j2=function(u,a,o){o===void 0&&(o="data-aria-hidden");var c=Array.from(Array.isArray(u)?u:[u]),r=A2(u);return r?(c.push.apply(c,Array.from(r.querySelectorAll("[aria-live], script"))),z2(c,r,o,"aria-hidden")):function(){return null}},An=function(){return An=Object.assign||function(a){for(var o,c=1,r=arguments.length;c<r;c++){o=arguments[c];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(a[d]=o[d])}return a},An.apply(this,arguments)};function ey(u,a){var o={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&a.indexOf(c)<0&&(o[c]=u[c]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,c=Object.getOwnPropertySymbols(u);r<c.length;r++)a.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(u,c[r])&&(o[c[r]]=u[c[r]]);return o}function R2(u,a,o){if(o||arguments.length===2)for(var c=0,r=a.length,d;c<r;c++)(d||!(c in a))&&(d||(d=Array.prototype.slice.call(a,0,c)),d[c]=a[c]);return u.concat(d||Array.prototype.slice.call(a))}var hc="right-scroll-bar-position",mc="width-before-scroll-bar",D2="with-scroll-bars-hidden",U2="--removed-body-scroll-bar-size";function _f(u,a){return typeof u=="function"?u(a):u&&(u.current=a),u}function L2(u,a){var o=S.useState(function(){return{value:u,callback:a,facade:{get current(){return o.value},set current(c){var r=o.value;r!==c&&(o.value=c,o.callback(c,r))}}}})[0];return o.callback=a,o.facade}var H2=typeof window<"u"?S.useLayoutEffect:S.useEffect,hg=new WeakMap;function B2(u,a){var o=L2(null,function(c){return u.forEach(function(r){return _f(r,c)})});return H2(function(){var c=hg.get(o);if(c){var r=new Set(c),d=new Set(u),h=o.current;r.forEach(function(m){d.has(m)||_f(m,null)}),d.forEach(function(m){r.has(m)||_f(m,h)})}hg.set(o,u)},[u]),o}function q2(u){return u}function V2(u,a){a===void 0&&(a=q2);var o=[],c=!1,r={read:function(){if(c)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:u},useMedium:function(d){var h=a(d,c);return o.push(h),function(){o=o.filter(function(m){return m!==h})}},assignSyncMedium:function(d){for(c=!0;o.length;){var h=o;o=[],h.forEach(d)}o={push:function(m){return d(m)},filter:function(){return o}}},assignMedium:function(d){c=!0;var h=[];if(o.length){var m=o;o=[],m.forEach(d),h=o}var y=function(){var x=h;h=[],x.forEach(d)},b=function(){return Promise.resolve().then(y)};b(),o={push:function(x){h.push(x),b()},filter:function(x){return h=h.filter(x),o}}}};return r}function G2(u){u===void 0&&(u={});var a=V2(null);return a.options=An({async:!0,ssr:!1},u),a}var ty=function(u){var a=u.sideCar,o=ey(u,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var c=a.read();if(!c)throw new Error("Sidecar medium not found");return S.createElement(c,An({},o))};ty.isSideCarExport=!0;function Y2(u,a){return u.useMedium(a),ty}var ny=G2(),Ef=function(){},wc=S.forwardRef(function(u,a){var o=S.useRef(null),c=S.useState({onScrollCapture:Ef,onWheelCapture:Ef,onTouchMoveCapture:Ef}),r=c[0],d=c[1],h=u.forwardProps,m=u.children,y=u.className,b=u.removeScrollBar,x=u.enabled,g=u.shards,_=u.sideCar,O=u.noRelative,T=u.noIsolation,C=u.inert,M=u.allowPinchZoom,D=u.as,R=D===void 0?"div":D,U=u.gapMode,G=ey(u,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=_,k=B2([o,a]),V=An(An({},G),r);return S.createElement(S.Fragment,null,x&&S.createElement(Q,{sideCar:ny,removeScrollBar:b,shards:g,noRelative:O,noIsolation:T,inert:C,setCallbacks:d,allowPinchZoom:!!M,lockRef:o,gapMode:U}),h?S.cloneElement(S.Children.only(m),An(An({},V),{ref:k})):S.createElement(R,An({},V,{className:y,ref:k}),m))});wc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wc.classNames={fullWidth:mc,zeroRight:hc};var X2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Q2(){if(!document)return null;var u=document.createElement("style");u.type="text/css";var a=X2();return a&&u.setAttribute("nonce",a),u}function Z2(u,a){u.styleSheet?u.styleSheet.cssText=a:u.appendChild(document.createTextNode(a))}function K2(u){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(u)}var k2=function(){var u=0,a=null;return{add:function(o){u==0&&(a=Q2())&&(Z2(a,o),K2(a)),u++},remove:function(){u--,!u&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},J2=function(){var u=k2();return function(a,o){S.useEffect(function(){return u.add(a),function(){u.remove()}},[a&&o])}},ly=function(){var u=J2(),a=function(o){var c=o.styles,r=o.dynamic;return u(c,r),null};return a},F2={left:0,top:0,right:0,gap:0},Of=function(u){return parseInt(u||"",10)||0},$2=function(u){var a=window.getComputedStyle(document.body),o=a[u==="padding"?"paddingLeft":"marginLeft"],c=a[u==="padding"?"paddingTop":"marginTop"],r=a[u==="padding"?"paddingRight":"marginRight"];return[Of(o),Of(c),Of(r)]},W2=function(u){if(u===void 0&&(u="margin"),typeof window>"u")return F2;var a=$2(u),o=document.documentElement.clientWidth,c=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,c-o+a[2]-a[0])}},P2=ly(),_i="data-scroll-locked",I2=function(u,a,o,c){var r=u.left,d=u.top,h=u.right,m=u.gap;return o===void 0&&(o="margin"),`
20
+ .`.concat(D2,` {
21
+ overflow: hidden `).concat(c,`;
22
+ padding-right: `).concat(m,"px ").concat(c,`;
23
+ }
24
+ body[`).concat(_i,`] {
25
+ overflow: hidden `).concat(c,`;
26
+ overscroll-behavior: contain;
27
+ `).concat([a&&"position: relative ".concat(c,";"),o==="margin"&&`
28
+ padding-left: `.concat(r,`px;
29
+ padding-top: `).concat(d,`px;
30
+ padding-right: `).concat(h,`px;
31
+ margin-left:0;
32
+ margin-top:0;
33
+ margin-right: `).concat(m,"px ").concat(c,`;
34
+ `),o==="padding"&&"padding-right: ".concat(m,"px ").concat(c,";")].filter(Boolean).join(""),`
35
+ }
36
+
37
+ .`).concat(hc,` {
38
+ right: `).concat(m,"px ").concat(c,`;
39
+ }
40
+
41
+ .`).concat(mc,` {
42
+ margin-right: `).concat(m,"px ").concat(c,`;
43
+ }
44
+
45
+ .`).concat(hc," .").concat(hc,` {
46
+ right: 0 `).concat(c,`;
47
+ }
48
+
49
+ .`).concat(mc," .").concat(mc,` {
50
+ margin-right: 0 `).concat(c,`;
51
+ }
52
+
53
+ body[`).concat(_i,`] {
54
+ `).concat(U2,": ").concat(m,`px;
55
+ }
56
+ `)},mg=function(){var u=parseInt(document.body.getAttribute(_i)||"0",10);return isFinite(u)?u:0},eE=function(){S.useEffect(function(){return document.body.setAttribute(_i,(mg()+1).toString()),function(){var u=mg()-1;u<=0?document.body.removeAttribute(_i):document.body.setAttribute(_i,u.toString())}},[])},tE=function(u){var a=u.noRelative,o=u.noImportant,c=u.gapMode,r=c===void 0?"margin":c;eE();var d=S.useMemo(function(){return W2(r)},[r]);return S.createElement(P2,{styles:I2(d,!a,r,o?"":"!important")})},Gf=!1;if(typeof window<"u")try{var sc=Object.defineProperty({},"passive",{get:function(){return Gf=!0,!0}});window.addEventListener("test",sc,sc),window.removeEventListener("test",sc,sc)}catch{Gf=!1}var gi=Gf?{passive:!1}:!1,nE=function(u){return u.tagName==="TEXTAREA"},ay=function(u,a){if(!(u instanceof Element))return!1;var o=window.getComputedStyle(u);return o[a]!=="hidden"&&!(o.overflowY===o.overflowX&&!nE(u)&&o[a]==="visible")},lE=function(u){return ay(u,"overflowY")},aE=function(u){return ay(u,"overflowX")},pg=function(u,a){var o=a.ownerDocument,c=a;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var r=iy(u,c);if(r){var d=uy(u,c),h=d[1],m=d[2];if(h>m)return!0}c=c.parentNode}while(c&&c!==o.body);return!1},iE=function(u){var a=u.scrollTop,o=u.scrollHeight,c=u.clientHeight;return[a,o,c]},uE=function(u){var a=u.scrollLeft,o=u.scrollWidth,c=u.clientWidth;return[a,o,c]},iy=function(u,a){return u==="v"?lE(a):aE(a)},uy=function(u,a){return u==="v"?iE(a):uE(a)},sE=function(u,a){return u==="h"&&a==="rtl"?-1:1},cE=function(u,a,o,c,r){var d=sE(u,window.getComputedStyle(a).direction),h=d*c,m=o.target,y=a.contains(m),b=!1,x=h>0,g=0,_=0;do{if(!m)break;var O=uy(u,m),T=O[0],C=O[1],M=O[2],D=C-M-d*T;(T||D)&&iy(u,m)&&(g+=D,_+=T);var R=m.parentNode;m=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!y&&m!==document.body||y&&(a.contains(m)||a===m));return(x&&Math.abs(g)<1||!x&&Math.abs(_)<1)&&(b=!0),b},cc=function(u){return"changedTouches"in u?[u.changedTouches[0].clientX,u.changedTouches[0].clientY]:[0,0]},vg=function(u){return[u.deltaX,u.deltaY]},gg=function(u){return u&&"current"in u?u.current:u},oE=function(u,a){return u[0]===a[0]&&u[1]===a[1]},rE=function(u){return`
57
+ .block-interactivity-`.concat(u,` {pointer-events: none;}
58
+ .allow-interactivity-`).concat(u,` {pointer-events: all;}
59
+ `)},fE=0,yi=[];function dE(u){var a=S.useRef([]),o=S.useRef([0,0]),c=S.useRef(),r=S.useState(fE++)[0],d=S.useState(ly)[0],h=S.useRef(u);S.useEffect(function(){h.current=u},[u]),S.useEffect(function(){if(u.inert){document.body.classList.add("block-interactivity-".concat(r));var C=R2([u.lockRef.current],(u.shards||[]).map(gg),!0).filter(Boolean);return C.forEach(function(M){return M.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),C.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(r))})}}},[u.inert,u.lockRef.current,u.shards]);var m=S.useCallback(function(C,M){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!h.current.allowPinchZoom;var D=cc(C),R=o.current,U="deltaX"in C?C.deltaX:R[0]-D[0],G="deltaY"in C?C.deltaY:R[1]-D[1],Q,k=C.target,V=Math.abs(U)>Math.abs(G)?"h":"v";if("touches"in C&&V==="h"&&k.type==="range")return!1;var te=window.getSelection(),se=te&&te.anchorNode,ue=se?se===k||se.contains(k):!1;if(ue)return!1;var re=pg(V,k);if(!re)return!0;if(re?Q=V:(Q=V==="v"?"h":"v",re=pg(V,k)),!re)return!1;if(!c.current&&"changedTouches"in C&&(U||G)&&(c.current=Q),!Q)return!0;var F=c.current||Q;return cE(F,M,C,F==="h"?U:G)},[]),y=S.useCallback(function(C){var M=C;if(!(!yi.length||yi[yi.length-1]!==d)){var D="deltaY"in M?vg(M):cc(M),R=a.current.filter(function(Q){return Q.name===M.type&&(Q.target===M.target||M.target===Q.shadowParent)&&oE(Q.delta,D)})[0];if(R&&R.should){M.cancelable&&M.preventDefault();return}if(!R){var U=(h.current.shards||[]).map(gg).filter(Boolean).filter(function(Q){return Q.contains(M.target)}),G=U.length>0?m(M,U[0]):!h.current.noIsolation;G&&M.cancelable&&M.preventDefault()}}},[]),b=S.useCallback(function(C,M,D,R){var U={name:C,delta:M,target:D,should:R,shadowParent:hE(D)};a.current.push(U),setTimeout(function(){a.current=a.current.filter(function(G){return G!==U})},1)},[]),x=S.useCallback(function(C){o.current=cc(C),c.current=void 0},[]),g=S.useCallback(function(C){b(C.type,vg(C),C.target,m(C,u.lockRef.current))},[]),_=S.useCallback(function(C){b(C.type,cc(C),C.target,m(C,u.lockRef.current))},[]);S.useEffect(function(){return yi.push(d),u.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:_}),document.addEventListener("wheel",y,gi),document.addEventListener("touchmove",y,gi),document.addEventListener("touchstart",x,gi),function(){yi=yi.filter(function(C){return C!==d}),document.removeEventListener("wheel",y,gi),document.removeEventListener("touchmove",y,gi),document.removeEventListener("touchstart",x,gi)}},[]);var O=u.removeScrollBar,T=u.inert;return S.createElement(S.Fragment,null,T?S.createElement(d,{styles:rE(r)}):null,O?S.createElement(tE,{noRelative:u.noRelative,gapMode:u.gapMode}):null)}function hE(u){for(var a=null;u!==null;)u instanceof ShadowRoot&&(a=u.host,u=u.host),u=u.parentNode;return a}const mE=Y2(ny,dE);var sy=S.forwardRef(function(u,a){return S.createElement(wc,An({},u,{ref:a,sideCar:mE}))});sy.classNames=wc.classNames;var pE=Object.defineProperty,il=(u,a)=>pE(u,"name",{value:a,configurable:!0}),ud="Popover",[cy,vE]=kf(ud,[V0]),sd=V0(),[gE,Ai]=cy(ud),yg=il(u=>{const{__scopePopover:a,children:o,open:c,defaultOpen:r,onOpenChange:d,modal:h=!1}=u,m=sd(a),y=S.useRef(null),[b,x]=S.useState(!1),[g,_]=S.useState(0),[O,T]=S.useState(0),[C,M]=$0({prop:c,defaultProp:r??!1,onChange:d,caller:ud});return p.jsx(m2,{...m,children:p.jsx(gE,{scope:a,contentId:fc(),titleId:fc(),descriptionId:fc(),titlePresent:g>0,descriptionPresent:O>0,setTitleCount:_,setDescriptionCount:T,triggerRef:y,open:C,onOpenChange:M,onOpenToggle:S.useCallback(()=>M(D=>!D),[M]),hasCustomAnchor:b,onCustomAnchorAdd:S.useCallback(()=>x(!0),[]),onCustomAnchorRemove:S.useCallback(()=>x(!1),[]),modal:h,children:o})})},"Popover"),yE="PopoverTrigger",Yf=S.forwardRef(il(function(a,o){const{__scopePopover:c,...r}=a,d=Ai(yE,c),h=sd(c),m=ll(o,d.triggerRef),y=p.jsx(Ci.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":cd(d.open),...r,ref:m,onClick:Ll(a.onClick,d.onOpenToggle)});return d.hasCustomAnchor?y:p.jsx(v2,{asChild:!0,...h,children:y})},"PopoverTrigger")),oy="PopoverPortal",[bE,SE]=cy(oy,{forceMount:void 0}),bg=il(u=>{const{__scopePopover:a,forceMount:o,children:c,container:r}=u,d=Ai(oy,a);return p.jsx(bE,{scope:a,forceMount:o,children:p.jsx(Z0,{present:o||d.open,children:p.jsx(_2,{asChild:!0,container:r,children:c})})})},"PopoverPortal"),Mu="PopoverContent",Sg=S.forwardRef(il(function(a,o){const c=SE(Mu,a.__scopePopover),{forceMount:r=c.forceMount,...d}=a,h=Ai(Mu,a.__scopePopover);return p.jsx(Z0,{present:r||h.open,children:h.modal?p.jsx(_E,{...d,ref:o}):p.jsx(EE,{...d,ref:o})})},"PopoverContent")),xE=Jf("PopoverContent.RemoveScroll"),_E=S.forwardRef(il(function(a,o){const c=Ai(Mu,a.__scopePopover),r=S.useRef(null),d=ll(o,r),h=S.useRef(!1),{nodes:m,registry:y}=y0();return S.useEffect(()=>{const b=r.current;if(b)return j2(b)},[]),p.jsx(sy,{as:xE,allowPinchZoom:!0,shards:S.useMemo(()=>[r,...m.map(b=>({current:b}))],[r,m]),children:p.jsx(ry,{...a,ref:d,branchNodes:m,branchRegistry:y,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ll(a.onCloseAutoFocus,b=>{b.preventDefault(),h.current||c.triggerRef.current?.focus()}),onPointerDownOutside:Ll(a.onPointerDownOutside,b=>{const x=b.detail.originalEvent,g=x.button===0&&x.ctrlKey===!0,_=x.button===2||g;h.current=_},{checkForDefaultPrevented:!1}),onFocusOutside:Ll(a.onFocusOutside,b=>b.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),EE=S.forwardRef(il(function(a,o){const c=Ai(Mu,a.__scopePopover),r=S.useRef(!1),d=S.useRef(!1);return p.jsx(ry,{...a,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:h=>{a.onCloseAutoFocus?.(h),h.defaultPrevented||(r.current||c.triggerRef.current?.focus(),h.preventDefault()),r.current=!1,d.current=!1},onInteractOutside:h=>{a.onInteractOutside?.(h),h.defaultPrevented||(r.current=!0,h.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const m=h.target;c.triggerRef.current?.contains(m)&&h.preventDefault(),h.detail.originalEvent.type==="focusin"&&d.current&&h.preventDefault()}})},"PopoverContentNonModal")),ry=S.forwardRef(il(function(a,o){const{__scopePopover:c,trapFocus:r,onOpenAutoFocus:d,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:g,"aria-describedby":_,branchNodes:O,branchRegistry:T,...C}=a,M=Ai(Mu,c),D=sd(c),[R,U]=S.useState(null),G=ll(o,U);return b0(R),Pf(),p.jsx(g0,{registry:T,children:p.jsx(e_,{asChild:!0,loop:!0,trapped:r,branches:O,onMountAutoFocus:d,onUnmountAutoFocus:h,children:p.jsx(Jx,{asChild:!0,disableOutsidePointerEvents:m,onInteractOutside:g,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:x,onDismiss:()=>M.onOpenChange(!1),deferPointerDownOutside:!0,children:p.jsx(y2,{"data-state":cd(M.open),role:"dialog",id:M.contentId,"aria-labelledby":M.titlePresent?M.titleId:void 0,"aria-describedby":M.descriptionPresent?fy(_,M.descriptionId):_,...D,...C,ref:G,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})},"PopoverContentImpl"));function cd(u){return u?"open":"closed"}il(cd,"getState");function fy(...u){const a=new Set;for(const o of u)if(typeof o=="string")for(const c of String(o).trim().split(/\s+/))c&&a.add(c);return a.size>0?Array.from(a).join(" "):void 0}il(fy,"concatAriaDescribedby");const Tf=Object.freeze(Object.defineProperty({__proto__:null,Content:Sg,Popover:yg,PopoverContent:Sg,PopoverPortal:bg,PopoverTrigger:Yf,Portal:bg,Root:yg,Trigger:Yf,createPopoverScope:vE},Symbol.toStringTag,{value:"Module"})),bi=46,xg=6;function _g(u){return(u.name.split("-").pop()?.replace(/Neural$/i,"")||u.name).slice(0,2).toUpperCase()}function Eg(u,a){const o=a.trim().toLowerCase();return o?u.filter(c=>`${c.friendly_name} ${c.name} ${c.locale} ${c.gender}`.toLowerCase().includes(o)):u}function OE(u){const a=Gl.c(86),{voices:o,value:c,label:r,onChange:d}=u,h=Yl(),[m,y]=S.useState(!1),[b,x]=S.useState(""),[g,_]=S.useState(0),[O,T]=S.useState(0),[C,M]=S.useState(360),D=S.useRef(null),R=S.useRef(null);let U;a[0]!==b||a[1]!==o?(U=Eg(o,b),a[0]=b,a[1]=o,a[2]=U):U=a[2];const G=U;let Q;a[3]!==c?(Q=_e=>_e.name===c,a[3]=c,a[4]=Q):Q=a[4];const k=o.findIndex(Q);let V;a[5]!==c?(V=_e=>_e.name===c,a[5]=c,a[6]=V):V=a[6];const te=o.find(V),se=te?.gender==="Female"?h("voice.female"):h("voice.male"),ue=Math.max(0,Math.floor(O/bi)-xg),re=Math.min(G.length,Math.ceil((O+C)/bi)+xg),F=G.slice(ue,re);let oe,fe;a[7]!==m?(oe=()=>{if(!m)return;const _e=D.current;if(!_e)return;M(_e.clientHeight);const qe=new ResizeObserver(()=>M(_e.clientHeight));return qe.observe(_e),()=>qe.disconnect()},fe=[m],a[7]=m,a[8]=oe,a[9]=fe):(oe=a[8],fe=a[9]),S.useEffect(oe,fe);let he;a[10]!==g||a[11]!==m?(he=()=>{if(!m)return;const _e=window.requestAnimationFrame(()=>{const qe=D.current;if(!qe)return;const At=g*bi,Ea=At+bi;At<qe.scrollTop?qe.scrollTop=At:Ea>qe.scrollTop+qe.clientHeight&&(qe.scrollTop=Ea-qe.clientHeight),T(qe.scrollTop)});return()=>window.cancelAnimationFrame(_e)},a[10]=g,a[11]=m,a[12]=he):he=a[12];let Z;a[13]!==g||a[14]!==G.length||a[15]!==m||a[16]!==C?(Z=[g,G.length,m,C],a[13]=g,a[14]=G.length,a[15]=m,a[16]=C,a[17]=Z):Z=a[17],S.useEffect(he,Z);let P,J;a[18]===Symbol.for("react.memo_cache_sentinel")?(P=()=>()=>{R.current!==null&&window.cancelAnimationFrame(R.current)},J=[],a[18]=P,a[19]=J):(P=a[18],J=a[19]),S.useEffect(P,J);let W;a[20]!==k?(W=function(qe){y(qe),qe&&(x(""),_(k>=0?k:0))},a[20]=k,a[21]=W):W=a[21];const K=W;let ve;a[22]===Symbol.for("react.memo_cache_sentinel")?(ve=function(qe){const At=qe.currentTarget;R.current===null&&(R.current=window.requestAnimationFrame(()=>{R.current=null,T(At.scrollTop)}))},a[22]=ve):ve=a[22];const He=ve;let we;a[23]!==d?(we=function(qe){d(qe.name),y(!1)},a[23]=d,a[24]=we):we=a[24];const Me=we,Be=Tf,$e=m?"voice-trigger is-open":"voice-trigger",Qe=`voice-avatar voice-avatar--${te?.gender.toLowerCase()??"neutral"}`,st=te?_g(te):"A";let Te;a[25]!==Qe||a[26]!==st?(Te=p.jsx("span",{className:Qe,"aria-hidden":"true",children:st}),a[25]=Qe,a[26]=st,a[27]=Te):Te=a[27];const Ze=te?.friendly_name??te?.name??c;let ne;a[28]!==Ze?(ne=p.jsx("span",{className:"voice-trigger__name",children:Ze}),a[28]=Ze,a[29]=ne):ne=a[29];const de=te?`${te.locale} · ${se}`:r;let $;a[30]!==de?($=p.jsx("span",{className:"voice-trigger__meta",children:de}),a[30]=de,a[31]=$):$=a[31];let Re;a[32]!==ne||a[33]!==$?(Re=p.jsxs("span",{className:"voice-trigger__body",children:[ne,$]}),a[32]=ne,a[33]=$,a[34]=Re):Re=a[34];let Ke;a[35]===Symbol.for("react.memo_cache_sentinel")?(Ke=p.jsx(OS,{className:"voice-trigger__chevron",size:16,"aria-hidden":"true"}),a[35]=Ke):Ke=a[35];let Je;a[36]!==r||a[37]!==$e||a[38]!==Te||a[39]!==Re?(Je=p.jsx(Yf,{asChild:!0,children:p.jsxs("button",{type:"button",className:$e,"aria-label":r,children:[Te,Re,Ke]})}),a[36]=r,a[37]=$e,a[38]=Te,a[39]=Re,a[40]=Je):Je=a[40];const ze=Tf,q=Tf,H="voice-popover",I="top",ae="start",pe=8,Ie=14,Ht="voice-command";let Ft;a[41]===Symbol.for("react.memo_cache_sentinel")?(Ft=p.jsx(wS,{size:15,"aria-hidden":"true"}),a[41]=Ft):Ft=a[41];let mt;a[42]!==h?(mt=h("panel.voice.searchPlaceholder"),a[42]=h,a[43]=mt):mt=a[43];let Mt;a[44]!==h?(Mt=h("panel.voice.filter"),a[44]=h,a[45]=Mt):Mt=a[45];let Rn;a[46]===Symbol.for("react.memo_cache_sentinel")?(Rn=_e=>{x(_e.target.value),_(0),T(0),D.current&&(D.current.scrollTop=0)},a[46]=Rn):Rn=a[46];let _t;a[47]!==g||a[48]!==G.length||a[49]!==b||a[50]!==Me||a[51]!==o?(_t=_e=>{if(_e.key==="Escape")y(!1);else if(_e.key==="ArrowDown")_e.preventDefault(),_(qe=>Math.min(G.length-1,qe+1));else if(_e.key==="ArrowUp")_e.preventDefault(),_(TE);else if(_e.key==="Enter"){const qe=Eg(o,b),At=qe[g]??qe[0];At&&(_e.preventDefault(),Me(At))}},a[47]=g,a[48]=G.length,a[49]=b,a[50]=Me,a[51]=o,a[52]=_t):_t=a[52];let pn;a[53]!==b||a[54]!==mt||a[55]!==Mt||a[56]!==_t?(pn=p.jsx("input",{className:"voice-command__input",value:b,placeholder:mt,"aria-label":Mt,autoFocus:!0,onChange:Rn,onKeyDown:_t}),a[53]=b,a[54]=mt,a[55]=Mt,a[56]=_t,a[57]=pn):pn=a[57];let ul;a[58]===Symbol.for("react.memo_cache_sentinel")?(ul=p.jsx("span",{className:"voice-command__esc",children:"ESC"}),a[58]=ul):ul=a[58];let sl;a[59]!==pn?(sl=p.jsxs("div",{className:"voice-command__searchbar",children:[Ft,pn,ul]}),a[59]=pn,a[60]=sl):sl=a[60];const wu="voice-command__list voice-command__list--virtual",Ql=G.length===0?p.jsx("div",{className:"voice-command__empty",children:h("panel.voice.empty")}):p.jsx("div",{style:{height:`${G.length*bi}px`,position:"relative"},children:F.map((_e,qe)=>{const At=ue+qe,Ea=_e.friendly_name||_e.name,Zl=_e.gender==="Female"?h("voice.female"):h("voice.male");return p.jsxs("button",{type:"button",className:"voice-option voice-option--virtual","data-active":At===g?"true":void 0,"data-current":_e.name===c?"true":void 0,style:{transform:`translateY(${At*bi}px)`},onMouseEnter:()=>_(At),onClick:()=>Me(_e),children:[p.jsx("span",{className:`voice-avatar voice-avatar--${_e.gender.toLowerCase()}`,"aria-hidden":"true",children:_g(_e)}),p.jsxs("span",{className:"voice-option__body",children:[p.jsx("span",{className:"voice-option__name",children:Ea}),p.jsxs("span",{className:"voice-option__meta",children:[_e.name," · ",Zl]})]}),_e.name===c&&p.jsx(Qf,{className:"voice-option__check",size:15,"aria-hidden":"true"})]},_e.name)})});let vn;a[61]!==He||a[62]!==Ql?(vn=p.jsx("div",{className:wu,ref:D,onScroll:He,children:Ql}),a[61]=He,a[62]=Ql,a[63]=vn):vn=a[63];let gn;a[64]!==r?(gn=p.jsx("span",{children:r}),a[64]=r,a[65]=gn):gn=a[65];let xa,_a;a[66]===Symbol.for("react.memo_cache_sentinel")?(xa=p.jsx("kbd",{children:"↑↓"}),_a=p.jsx("kbd",{children:"↵"}),a[66]=xa,a[67]=_a):(xa=a[66],_a=a[67]);let tt;a[68]!==gn?(tt=p.jsxs("div",{className:"voice-command__foot",children:[gn,xa,_a]}),a[68]=gn,a[69]=tt):tt=a[69];let cl;a[70]!==sl||a[71]!==vn||a[72]!==tt?(cl=p.jsxs("div",{className:Ht,children:[sl,vn,tt]}),a[70]=sl,a[71]=vn,a[72]=tt,a[73]=cl):cl=a[73];let Dn;a[74]!==q.Content||a[75]!==cl?(Dn=p.jsx(q.Content,{className:H,side:I,align:ae,sideOffset:pe,collisionPadding:Ie,children:cl}),a[74]=q.Content,a[75]=cl,a[76]=Dn):Dn=a[76];let Un;a[77]!==ze.Portal||a[78]!==Dn?(Un=p.jsx(ze.Portal,{children:Dn}),a[77]=ze.Portal,a[78]=Dn,a[79]=Un):Un=a[79];let Ln;return a[80]!==K||a[81]!==m||a[82]!==Be.Root||a[83]!==Je||a[84]!==Un?(Ln=p.jsxs(Be.Root,{open:m,onOpenChange:K,children:[Je,Un]}),a[80]=K,a[81]=m,a[82]=Be.Root,a[83]=Je,a[84]=Un,a[85]=Ln):Ln=a[85],Ln}function TE(u){return Math.max(0,u-1)}const CE=S.memo(OE),NE="zh-CN-XiaoxiaoNeural",ME="natural",Og="custom";function AE({voices:u,tones:a,submitting:o,onSubmit:c,onOpenTimeline:r,onDraftChange:d}){const h=Yl(),[m,y]=S.useState("single"),[b,x]=S.useState(""),[g,_]=S.useState(NE),[O,T]=S.useState(ME),[C,M]=S.useState(0),[D,R]=S.useState(0),[U,G]=S.useState(0),[Q,k]=S.useState(22),[V,te]=S.useState(!1),[se,ue]=S.useState(null),[re,F]=S.useState(!1),oe=S.useRef(0),fe=S.useMemo(()=>b.split(/\n\s*\n/).map($=>$.trim()).filter(Boolean),[b]),he=S.useDeferredValue(b),Z=S.useMemo(()=>({targetLength:Q,maxLength:Math.round(Q*1.7),minLength:Math.round(Q*.5)}),[Q]),{segments:P,totalEstimatedMs:J}=Nx(he,Z,C,m==="subtitle"),W=m==="batch"?fe:m==="subtitle"?P:[],K=b.trim(),ve=a.find($=>$.key===O),He=!o&&(m==="subtitle"||m==="single"?K.length>0:W.length>0);S.useEffect(()=>{if(!d)return;const $=window.setTimeout(()=>{d(Math.min(1,K.length/640))},140);return()=>window.clearTimeout($)},[d,K.length]);function we($){T($.key),$.key!==Og&&(M($.rate),R($.volume),G($.pitch))}function Me($){return Re=>{$(Re),T(Og)}}async function Be($){if(!$.name.toLowerCase().endsWith(".docx")){ue(h("panel.import.invalid"));return}te(!0),ue(null);try{const Re=await $.arrayBuffer(),Ke=await Mg(()=>import("./index-DgSTrTj2.js").then(H=>H.i),__vite__mapDeps([0,1])),q=(await("default"in Ke?Ke.default:Ke).extractRawText({arrayBuffer:Re})).value.replace(/\r\n?/g,`
60
+ `).replace(/\n{3,}/g,`
61
+
62
+ `).trim();if(!q){ue(h("panel.import.empty"));return}x(H=>H.trim()?`${H.trim()}
63
+
64
+ ${q}`:q),y("subtitle")}catch{ue(h("panel.import.failed"))}finally{te(!1)}}function $e($){return Array.from($.dataTransfer.types).includes("Files")}function Qe($){$e($)&&($.preventDefault(),oe.current+=1,F(!0))}function st($){$e($)&&($.preventDefault(),$.dataTransfer.dropEffect="copy")}function Te($){$e($)&&(oe.current=Math.max(0,oe.current-1),oe.current===0&&F(!1))}function Ze($){if(!$e($))return;$.preventDefault(),oe.current=0,F(!1);const Re=$.dataTransfer.files[0];Re&&Be(Re)}async function ne(){if(!He)return;const $={voice:g,tone:O,rate:C,volume:D,pitch:U};m==="single"?$.text=K:$.texts=W,m==="subtitle"&&($.texts=he===b&&P.length>0?P:Ig(b,Z));const Re=await c($);m==="subtitle"&&Re.length>0&&r(Re)}function de($){($.metaKey||$.ctrlKey)&&$.key==="Enter"&&($.preventDefault(),ne())}return p.jsxs("section",{className:"console","aria-label":h("panel.settings"),children:[p.jsxs("div",{className:"console__input",children:[p.jsxs("div",{className:"console__topline",children:[p.jsxs("div",{className:"console__identity",children:[p.jsx("span",{className:"console__index",children:"01"}),p.jsx("span",{className:"console__label",children:h("panel.settings")})]}),p.jsx("div",{className:"mode-switch",role:"group","aria-label":h("panel.mode"),children:["single","batch","subtitle"].map($=>p.jsxs("button",{type:"button",className:m===$?"mode-switch__btn is-on":"mode-switch__btn","aria-pressed":m===$,onClick:()=>y($),children:[m===$&&p.jsx("span",{className:"mode-switch__indicator"}),p.jsx("span",{className:"mode-switch__label",children:h($==="single"?"panel.mode.single":$==="batch"?"panel.mode.batch":"panel.mode.subtitle")})]},$))})]}),p.jsxs("label",{className:`console__editor${re?" is-dragging":""}${V?" is-importing":""}`,onDragEnter:Qe,onDragOver:st,onDragLeave:Te,onDrop:Ze,children:[p.jsx("span",{className:"sr-only",children:h(m==="single"?"panel.text.label.single":m==="batch"?"panel.text.label.batch":"panel.text.label.subtitle")}),p.jsx("textarea",{value:b,rows:4,placeholder:h(m==="single"?"panel.text.placeholder.single":m==="batch"?"panel.text.placeholder.batch":"panel.text.placeholder.subtitle"),onChange:$=>x($.target.value),onKeyDown:de}),(re||V)&&p.jsxs("span",{className:"console__drop-overlay","aria-live":"polite",children:[V?p.jsx("span",{className:"console__drop-spinner","aria-hidden":"true"}):p.jsx(TS,{size:17,"aria-hidden":"true"}),h(V?"panel.import.busy":"panel.import.drop")]})]}),se&&p.jsx("p",{className:"console__import-error",children:se}),m==="subtitle"&&p.jsxs("div",{className:"console__subtitle",children:[p.jsxs("div",{className:"subtitle-toolbar",children:[p.jsxs("label",{className:"subtitle-length",children:[p.jsx("span",{children:h("panel.subtitle.length")}),p.jsx("select",{value:Q,onChange:$=>k(Number($.target.value)),children:[14,22,32,42].map($=>p.jsx("option",{value:$,children:h("panel.subtitle.lengthOption",{count:$})},$))})]}),p.jsx("span",{className:"subtitle-stat",children:h("panel.subtitle.detected",{count:P.length})}),p.jsx("span",{className:"subtitle-stat subtitle-stat--dim",children:h("panel.subtitle.estimated",{duration:un(J)})})]}),P.length>0&&p.jsxs("div",{className:"subtitle-preview","aria-label":h("panel.subtitle.preview"),children:[P.slice(0,7).map(($,Re)=>p.jsxs("span",{className:"subtitle-preview__item",children:[p.jsx("i",{children:String(Re+1).padStart(2,"0")}),p.jsx("b",{children:$})]},`${Re}-${$.slice(0,8)}`)),P.length>7&&p.jsxs("span",{className:"subtitle-preview__more",children:["+",P.length-7]})]})]}),p.jsxs("div",{className:"console__readout",children:[p.jsx("span",{className:"console__label",children:h(m==="single"?"panel.mode.single":m==="batch"?"panel.mode.batch":"panel.mode.subtitle")}),p.jsxs("div",{className:"console__readout-values",children:[p.jsx("span",{children:h("panel.readout.chars",{count:K.length})}),m!=="single"&&p.jsx("span",{children:h("panel.readout.segments",{count:W.length})}),m==="subtitle"&&p.jsx("span",{children:h("panel.readout.timelineHint",{count:W.length})}),p.jsx("span",{className:"console__shortcut",children:h("panel.shortcut")})]})]})]}),p.jsxs("div",{className:"console__settings",children:[p.jsxs("div",{className:"console__voice",children:[p.jsx("span",{className:"console__label",children:h("panel.voice.label",{count:u.length})}),p.jsx(CE,{voices:u,value:g,label:h("panel.voice.label",{count:u.length}),onChange:_})]}),p.jsxs("fieldset",{className:"console__tones",children:[p.jsx("legend",{className:"console__label",children:h("panel.tone.legend")}),p.jsx("div",{className:"chips",children:a.map($=>p.jsx("button",{type:"button",className:$.key===O?"chip is-on":"chip","aria-pressed":$.key===O,onClick:()=>we($),children:rc(h,$.key)},$.key))}),p.jsx("p",{className:"tone__hint",children:ve?dx(h,ve.key):h("panel.tone.hintFallback")})]}),p.jsxs("div",{className:"console__prosody",children:[p.jsxs("div",{className:"console__label-row",children:[p.jsx("span",{className:"console__label",children:h("panel.prosody.heading")}),p.jsxs("span",{className:"console__preset",children:[p.jsx("i",{"aria-hidden":"true"}),rc(h,O)]})]}),p.jsxs("div",{className:"prosody",children:[p.jsx(pf,{id:"rate",label:h("panel.prosody.rate"),value:C,unit:"%",min:-50,max:100,onChange:Me(M)}),p.jsx(pf,{id:"volume",label:h("panel.prosody.volume"),value:D,unit:"%",min:-100,max:100,onChange:Me(R)}),p.jsx(pf,{id:"pitch",label:h("panel.prosody.pitch"),value:U,unit:"Hz",min:-50,max:50,onChange:Me(G)})]})]})]}),p.jsxs("div",{className:"console__action",children:[p.jsxs("div",{className:"console__action-top",children:[p.jsx("span",{className:"console__label",children:h("panel.output")}),p.jsxs("span",{className:"console__preset",children:[p.jsx("i",{"aria-hidden":"true"}),rc(h,O)]})]}),p.jsxs("button",{type:"button",className:o?"create is-busy":"create",disabled:!He,onClick:ne,children:[p.jsx("span",{className:"create__ring","aria-hidden":"true"}),p.jsxs("span",{className:"create__core",children:[p.jsx("span",{className:"create__eyebrow",children:h(o?"panel.submit.busy":m==="subtitle"?"panel.submit.shortSubtitle":"panel.submit.short")}),p.jsx("span",{className:"create__meta",children:m==="single"?h("panel.submit.single"):m==="batch"?h("panel.submit.batch",{count:W.length}):h("panel.submit.subtitle",{count:W.length})}),!o&&(m==="subtitle"?p.jsx(Zf,{className:"create__arrow",size:16,"aria-hidden":"true"}):p.jsx(Mf,{className:"create__arrow",size:17,"aria-hidden":"true"})),o&&p.jsx("span",{className:"spinner","aria-hidden":"true"})]})]}),p.jsx("p",{className:"console__note",children:h(m==="subtitle"?"panel.note.subtitle":"panel.note")})]})]})}const wE=S.memo(AE),Tg=180,zE=72,Cf=10,jE=[0,120,180,300,500,1e3];function dy(u){return u?.status==="completed"&&u.duration_ms>0?{durationMs:u.duration_ms,estimated:!1}:{durationMs:Cx(u?.text??"",u?.rate??0),estimated:!0}}function RE(u,a,o){const c=dy(u);return{id:a,text:u?.text??"",status:u?.status??"pending",durationMs:c.durationMs,startMs:o,progress:u?.progress??0,estimated:c.estimated,audioUrl:u?.audio_url??null,srtUrl:u?.srt_url??null}}function Cg(u,a){let o=0;return u.map((c,r)=>{const d=r===0?0:o+a;return o=d+c.durationMs,{...c,startMs:d}})}function DE(u){const a=Gl.c(23),{label:o,valueMs:c,onCommit:r}=u;let d;a[0]!==c?(d=()=>un(c),a[0]=c,a[1]=d):d=a[1];const[h,m]=S.useState(d),[y,b]=S.useState(!1);let x,g;a[2]!==y||a[3]!==c?(x=()=>{y||m(un(c))},g=[y,c],a[2]=y,a[3]=c,a[4]=x,a[5]=g):(x=a[4],g=a[5]),S.useEffect(x,g);let _;a[6]!==h||a[7]!==r||a[8]!==c?(_=function(){b(!1);const Q=h.trim(),k=/^(?:(\d+):)?(\d{1,2}):(\d{1,2})(?:\.(\d{1,3}))?$/.exec(Q);if(k){const[,te,se,ue,re]=k,F=(Number(te??0)*3600+Number(se)*60+Number(ue))*1e3+Number((re??"").padEnd(3,"0"));r(F);return}const V=Number(Q);Number.isFinite(V)?r(Math.round(V)):m(un(c))},a[6]=h,a[7]=r,a[8]=c,a[9]=_):_=a[9];const O=_;let T;a[10]!==o?(T=p.jsx("span",{children:o}),a[10]=o,a[11]=T):T=a[11];let C,M;a[12]===Symbol.for("react.memo_cache_sentinel")?(C=()=>b(!0),M=G=>m(G.target.value),a[12]=C,a[13]=M):(C=a[12],M=a[13]);let D;a[14]!==c?(D=G=>{G.key==="Enter"&&(G.preventDefault(),G.currentTarget.blur()),G.key==="Escape"&&(G.preventDefault(),m(un(c)),G.currentTarget.blur())},a[14]=c,a[15]=D):D=a[15];let R;a[16]!==O||a[17]!==h||a[18]!==D?(R=p.jsx("input",{value:h,inputMode:"decimal",onFocus:C,onChange:M,onBlur:O,onKeyDown:D}),a[16]=O,a[17]=h,a[18]=D,a[19]=R):R=a[19];let U;return a[20]!==T||a[21]!==R?(U=p.jsxs("label",{className:"tl-time-field",children:[T,R]}),a[20]=T,a[21]=R,a[22]=U):U=a[22],U}function UE({open:u,jobIds:a,initialJobs:o,jobs:c,onClose:r}){const d=Yl(),[h,m]=S.useState([]),[y,b]=S.useState(0),[x,g]=S.useState(zE),[_,O]=S.useState(Tg),[T,C]=S.useState(!1),[M,D]=S.useState(!1),[R,U]=S.useState(null),[G,Q]=S.useState(null),[k,V]=S.useState({startMs:0,endMs:12e3}),te=S.useRef(null),se=S.useRef(null),ue=S.useRef(!1),re=S.useRef(null),F=S.useRef(null),oe=S.useRef(null),fe=S.useMemo(()=>{const q=new Map;for(const H of o)q.set(H.id,H);for(const H of c)q.set(H.id,H);return q},[o,c]),he=a.join("|");S.useEffect(()=>{if(!u)return;if(ue.current=!1,U(null),Q(null),b(0),a.length===0){m([]);return}let q=0;const H=a.map((I,ae)=>{const pe=RE(fe.get(I),I,0),Ie=ae===0?0:q+Tg;return q=Ie+pe.durationMs,{...pe,startMs:Ie}});m(H)},[he,u]),S.useEffect(()=>{u&&m(q=>{if(q.length===0)return q;let H=!1;const I=q.map(ae=>{const pe=fe.get(ae.id);if(!pe)return ae;const Ie=dy(pe),Ht=pe.status,Ft=pe.progress,mt=pe.text||ae.text;return ae.status===Ht&&ae.durationMs===Ie.durationMs&&ae.estimated===Ie.estimated&&ae.progress===Ft&&ae.text===mt&&ae.audioUrl===(pe.audio_url??null)&&ae.srtUrl===(pe.srt_url??null)?ae:(H=!0,{...ae,text:mt,status:Ht,progress:Ft,durationMs:Ie.durationMs,estimated:Ie.estimated,audioUrl:pe.audio_url,srtUrl:pe.srt_url})});return H?ue.current?I:Cg(I,_):q})},[_,fe,u]),S.useEffect(()=>{if(!u)return;function q(H){H.key==="Escape"&&r()}return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[r,u]),S.useEffect(()=>()=>{F.current!==null&&window.cancelAnimationFrame(F.current)},[]);const Z=S.useMemo(()=>h.reduce((q,H)=>Math.max(q,H.startMs+H.durationMs),0),[h]),P=h.filter(q=>q.status==="completed"&&q.audioUrl).length,J=h.length>0&&P===h.length,W=h[y]??null,K=y>0&&h[y-1]?h[y-1].startMs+h[y-1].durationMs:0,ve=W?Math.max(0,W.startMs-K):0,He=Math.max(760,Z/1e3*x+120),we=S.useMemo(()=>{const q=[500,1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5];let H=q.find(I=>I/1e3*x>=68)??q[q.length-1];for(;Z/H>260;)H*=2;return H},[Z,x]),Me=S.useMemo(()=>{const q=[],H=Math.max(we,Math.ceil(Z/we)*we);for(let I=0;I<=H;I+=we)q.push(I);return q},[we,Z]),Be=S.useCallback(()=>{const q=te.current;if(!q)return;const H=1800,I=Math.max(0,(q.scrollLeft-24)/x*1e3-H),ae=Math.max(I+4e3,(q.scrollLeft+q.clientWidth-24)/x*1e3+H);V(pe=>Math.abs(pe.startMs-I)<4&&Math.abs(pe.endMs-ae)<4?pe:{startMs:I,endMs:ae})},[x]);S.useLayoutEffect(()=>{if(!u)return;Be();const q=te.current;if(!q)return;const H=new ResizeObserver(Be);return H.observe(q),()=>{H.disconnect(),se.current!==null&&window.cancelAnimationFrame(se.current)}},[u,Be]);const $e=S.useMemo(()=>{const q=[];for(let H=0;H<h.length;H+=1){const I=h[H];if(!(I.startMs+I.durationMs<k.startMs)){if(I.startMs>k.endMs)break;q.push(H)}}return q},[h,k.endMs,k.startMs]);S.useEffect(()=>{D(!1)},[y]);const Qe=S.useCallback(()=>{U(null),Q(null)},[]),st=S.useCallback(()=>{ue.current=!0,Qe()},[Qe]),Te=S.useCallback((q,H,I=!0)=>{m(ae=>{const pe=ae[q];if(!pe)return ae;const Ie=q>0?ae[q-1].startMs+ae[q-1].durationMs:0,Ht=I?Math.round(H/Cf)*Cf:Math.round(H),mt=Math.max(Ie,Ht)-pe.startMs;return mt===0?ae:ae.map((Mt,Rn)=>Rn>=q?{...Mt,startMs:Math.max(0,Mt.startMs+mt)}:Mt)}),st()},[st]);function Ze(q){y<h.length&&Te(y,q)}function ne(q){y<h.length&&Te(y,K+Math.max(0,q),!1)}function de(){ue.current=!0,m(q=>Cg(q,_)),Qe()}function $(){se.current===null&&(se.current=window.requestAnimationFrame(()=>{se.current=null,Be()}))}function Re(q,H){if(q.button===0){q.preventDefault(),q.stopPropagation(),b(H),re.current={index:H,clientX:q.clientX,startMs:h[H].startMs};try{q.currentTarget.setPointerCapture(q.pointerId)}catch{}}}function Ke(q){const H=re.current;if(!H)return;const I=(q.clientX-H.clientX)/x*1e3;oe.current={index:H.index,targetStartMs:H.startMs+I},F.current===null&&(F.current=window.requestAnimationFrame(()=>{F.current=null;const ae=oe.current;oe.current=null,ae&&Te(ae.index,ae.targetStartMs)}))}function Je(q){if(!re.current)return;re.current=null,F.current!==null&&(window.cancelAnimationFrame(F.current),F.current=null);const H=oe.current;oe.current=null,H&&Te(H.index,H.targetStartMs),q.currentTarget.hasPointerCapture(q.pointerId)&&q.currentTarget.releasePointerCapture(q.pointerId)}async function ze(){if(!(!J||h.length===0)){C(!0),Q(null);try{const q=await HS(h.map(H=>({id:H.id,start_ms:Math.round(H.startMs)})));U(q)}catch(q){Q(q.message)}finally{C(!1)}}}return u?p.jsx("div",{className:"timeline-overlay",role:"presentation",onMouseDown:q=>q.target===q.currentTarget&&r(),children:p.jsxs("section",{className:"timeline-modal",role:"dialog","aria-modal":"true","aria-label":d("timeline.title"),children:[p.jsxs("header",{className:"timeline-head",children:[p.jsxs("div",{className:"timeline-head__title",children:[p.jsx("span",{className:"timeline-head__mark","aria-hidden":"true",children:p.jsx(Zf,{size:16})}),p.jsxs("div",{children:[p.jsx("p",{className:"micro-label",children:d("timeline.kicker")}),p.jsx("h2",{children:d("timeline.title")})]})]}),p.jsxs("div",{className:"timeline-head__stats",children:[p.jsx("span",{children:d("timeline.clipCount",{count:h.length})}),p.jsx("strong",{children:un(Z)}),p.jsx("button",{className:"timeline-close","aria-label":d("timeline.close"),title:d("timeline.close"),onClick:r,children:p.jsx(Af,{size:16})})]})]}),p.jsxs("div",{className:"timeline-toolbar",children:[p.jsxs("div",{className:"timeline-toolbar__group",children:[p.jsx("span",{className:"timeline-tool__label",children:d("timeline.zoom")}),p.jsx("button",{className:"timeline-icon-btn","aria-label":d("timeline.zoomOut"),onClick:()=>g(q=>Math.max(24,Math.round(q/1.25))),children:p.jsx(CS,{size:12})}),p.jsx("input",{className:"timeline-zoom",type:"range",min:24,max:220,step:4,value:x,"aria-label":d("timeline.zoom"),onChange:q=>g(Number(q.target.value))}),p.jsx("button",{className:"timeline-icon-btn","aria-label":d("timeline.zoomIn"),onClick:()=>g(q=>Math.min(220,Math.round(q*1.25))),children:p.jsx(AS,{size:12})})]}),p.jsxs("div",{className:"timeline-toolbar__group",children:[p.jsxs("label",{className:"timeline-gap-select",children:[p.jsx("span",{className:"timeline-tool__label",children:d("timeline.defaultGap")}),p.jsx("select",{value:_,onChange:q=>O(Number(q.target.value)),children:jE.map(q=>p.jsxs("option",{value:q,children:[q," ms"]},q))})]}),p.jsxs("button",{className:"timeline-tool-btn",onClick:de,children:[p.jsx(oc,{size:12}),d("timeline.repack")]})]}),p.jsx("span",{className:"timeline-toolbar__hint",children:d("timeline.dragHint")})]}),p.jsxs("div",{className:"timeline-workspace",children:[p.jsx("aside",{className:"timeline-inspector",children:W?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"timeline-inspector__head",children:[p.jsx("span",{className:"micro-label",children:d("timeline.clip",{index:y+1,count:h.length})}),p.jsxs("span",{className:`timeline-ready timeline-ready--${W.status}`,children:[p.jsx("i",{"aria-hidden":"true"}),d(W.status==="completed"?"timeline.ready":W.status==="failed"?"timeline.failed":"timeline.rendering")]})]}),p.jsx("p",{className:"timeline-inspector__text",children:W.text}),p.jsxs("div",{className:"timeline-times",children:[p.jsx(DE,{label:d("timeline.start"),valueMs:W.startMs,onCommit:Ze}),p.jsxs("div",{className:"timeline-time-readout",children:[p.jsx("span",{children:d("timeline.end")}),p.jsx("strong",{children:un(W.startMs+W.durationMs)})]}),p.jsxs("div",{className:"timeline-time-readout",children:[p.jsx("span",{children:d("timeline.duration")}),p.jsxs("strong",{children:[un(W.durationMs),W.estimated&&p.jsx("em",{children:d("timeline.estimated")})]})]})]}),p.jsxs("label",{className:"timeline-gap-field",children:[p.jsx("span",{children:d("timeline.gapBefore")}),p.jsxs("span",{className:"timeline-gap-field__input",children:[p.jsx("input",{type:"number",min:0,step:Cf,value:y===0?W.startMs:ve,onChange:q=>{const H=Number(q.target.value);Number.isFinite(H)&&(y===0?Ze(H):ne(H))}}),p.jsx("em",{children:"ms"})]})]}),p.jsxs("div",{className:"timeline-quick",children:[p.jsx("button",{onClick:()=>ne(ve+100),children:"+100 ms"}),p.jsx("button",{onClick:()=>ne(Math.max(0,ve-100)),children:"−100 ms"})]}),W.audioUrl&&p.jsxs("div",{className:"timeline-preview",children:[p.jsx("button",{className:"timeline-preview__toggle",type:"button",onClick:()=>D(q=>!q),children:d("timeline.preview")}),M&&p.jsx(pc,{src:W.audioUrl,variant:"light"})]}),W.status==="processing"&&p.jsx("div",{className:"timeline-item-progress",children:p.jsx("span",{style:{width:`${Math.round(W.progress*100)}%`}})})]}):p.jsx("p",{className:"timeline-empty",children:d("timeline.empty")})}),p.jsxs("div",{className:"timeline-stage",children:[p.jsx("div",{className:"timeline-stage__scroll",ref:te,onScroll:$,children:p.jsxs("div",{className:"timeline-canvas",style:{width:`${He}px`},children:[p.jsx("div",{className:"timeline-ruler","aria-hidden":"true",children:Me.map(q=>p.jsxs("span",{className:"timeline-tick",style:{left:`${q/1e3*x}px`},children:[p.jsx("i",{}),p.jsx("em",{children:un(q)})]},q))}),p.jsxs("div",{className:"timeline-track",children:[$e.map(q=>{const H=h[q],I=Math.max(8,H.durationMs/1e3*x),ae=h[q-1],pe=ae?H.startMs-(ae.startMs+ae.durationMs):H.startMs;return p.jsxs("div",{className:"timeline-clip-wrap",children:[pe>0&&p.jsx("span",{className:"timeline-gap-mark",style:{left:`${(H.startMs-pe)/1e3*x}px`,width:`${Math.max(2,pe/1e3*x)}px`},children:pe>=120&&p.jsxs("em",{children:[pe,"ms"]})}),p.jsxs("div",{className:q===y?`timeline-clip timeline-clip--${H.status} is-selected`:`timeline-clip timeline-clip--${H.status}`,style:{left:`${H.startMs/1e3*x}px`,width:`${I}px`},role:"button",tabIndex:0,"aria-label":`${d("timeline.select")} ${q+1}`,onPointerDown:Ie=>Re(Ie,q),onPointerMove:Ke,onPointerUp:Je,onPointerCancel:Je,onKeyDown:Ie=>{(Ie.key==="Enter"||Ie.key===" ")&&b(q)},children:[p.jsx("span",{className:"timeline-clip__number",children:String(q+1).padStart(2,"0")}),p.jsx("span",{className:"timeline-clip__text",children:H.text||d("timeline.pendingText")}),p.jsxs("span",{className:"timeline-clip__meta",children:[un(H.startMs)," — ",un(H.startMs+H.durationMs)]}),!H.estimated&&p.jsx("span",{className:"timeline-clip__wave","aria-hidden":"true"})]})]},H.id)}),W&&p.jsx("span",{className:"timeline-playhead",style:{left:`${W.startMs/1e3*x}px`},"aria-hidden":"true"})]})]})}),p.jsxs("footer",{className:"timeline-stage__foot",children:[p.jsx("span",{children:d("timeline.frameHint")}),p.jsxs("span",{children:[d("timeline.readyCount",{ready:P,count:h.length}),!J&&` · ${d("timeline.waitHint")}`]})]})]})]}),p.jsxs("footer",{className:"timeline-footer",children:[p.jsx("div",{className:"timeline-footer__message",children:G?p.jsx("span",{className:"timeline-error",children:G}):R?p.jsx("span",{className:"timeline-success",children:d("timeline.exported",{duration:un(R.duration*1e3)})}):p.jsx("span",{children:d("timeline.footerHint")})}),R&&p.jsxs("div",{className:"timeline-output",children:[p.jsx(pc,{src:R.audio_url,variant:"light"}),p.jsxs("div",{className:"timeline-output__links",children:[p.jsxs("a",{href:R.audio_url,download:`${R.id}.mp3`,children:[p.jsx(Ei,{size:11}),"MP3"]}),R.srt_url&&p.jsxs("a",{href:R.srt_url,download:`${R.id}.srt`,children:[p.jsx(Ei,{size:11}),"SRT"]})]})]}),p.jsx("button",{className:"timeline-export",disabled:!J||T,onClick:ze,children:T?d("timeline.exporting"):J?d("timeline.export"):d("timeline.waiting",{count:h.length-P})})]})]})}):null}const LE=S.memo(UE),HE=2e3,BE=S.lazy(()=>Mg(()=>import("./SoundSculpture-CRv0x1Wa.js"),__vite__mapDeps([2,1])));function qE(){const[u,a]=S.useState([]),[o,c]=S.useState([]),[r,d]=S.useState([]),[h,m]=S.useState(null),[y,b]=S.useState(!1),[x,g]=S.useState(new Set),[_,O]=S.useState(!1),[T,C]=S.useState(!1),[M,D]=S.useState(!1),[R,U]=S.useState(null),[G,Q]=S.useState(.12),[k,V]=S.useState(!1),[te,se]=S.useState([]),[ue,re]=S.useState([]),[F,oe]=S.useState(()=>{const H=window.localStorage.getItem("auto-tts:effects");return H==="off"?!1:H==="on"?!0:!window.matchMedia("(prefers-reduced-motion: reduce)").matches}),[fe,he]=S.useState(!1),Z=S.useRef(!1),P=S.useRef(""),J=S.useRef(null),W=S.useRef(null),K=Yl(),ve=S.useCallback(async()=>{try{const H=await RS(),I=JSON.stringify(H);I!==P.current&&(P.current=I,S.startTransition(()=>d(H)))}catch(H){m(H.message)}},[]);S.useEffect(()=>{Z.current||(Z.current=!0,ve(),zS().then(a).catch(H=>m(H.message)),jS().then(c).catch(H=>m(H.message)))},[ve]),S.useEffect(()=>{window.localStorage.setItem("auto-tts:effects",F?"on":"off")},[F]),S.useEffect(()=>{if(!F){he(!1);return}const H=window;let I=null;if(H.requestIdleCallback){const ae=H.requestIdleCallback(()=>he(!0),{timeout:2600});return()=>H.cancelIdleCallback?.(ae)}return I=window.setTimeout(()=>he(!0),1200),()=>{I!==null&&window.clearTimeout(I)}},[F]);const He=S.useMemo(()=>r.some(H=>H.status==="pending"||H.status==="processing"),[r]);S.useEffect(()=>{if(!He)return;let H=null,I=!1;const ae=()=>{I||(H=window.setTimeout(async()=>{H=null,document.visibilityState==="visible"&&(await ve(),ae())},HE))},pe=()=>{document.visibilityState==="visible"?H===null&&(ve(),ae()):H!==null&&(window.clearTimeout(H),H=null)};return document.visibilityState==="visible"&&ae(),document.addEventListener("visibilitychange",pe),()=>{I=!0,H!==null&&window.clearTimeout(H),document.removeEventListener("visibilitychange",pe)}},[He,ve]),S.useEffect(()=>{g(H=>{const I=new Set(r.filter(pe=>pe.status==="completed").map(pe=>pe.id)),ae=new Set([...H].filter(pe=>I.has(pe)));return ae.size===H.size?H:ae})},[r]);const we=S.useCallback(H=>{if(!F)return;const I=Math.max(0,Math.min(1,H));Q(ae=>Math.abs(ae-I)<.008?ae:I)},[F]),Me=S.useCallback(async H=>{b(!0);try{const I=await DS(H);return m(null),await ve(),I}catch(I){return m(I.message),[]}finally{b(!1)}},[ve]),Be=S.useCallback(H=>{H.length!==0&&(re(H),se(H.map(I=>I.id)),V(!0))},[]),$e=S.useCallback(()=>{const H=r.filter(I=>I.status==="completed"&&x.has(I.id)).sort((I,ae)=>I.created_at-ae.created_at);Be(H)},[Be,r,x]),Qe=S.useCallback(async H=>{try{await Uv(H),await ve()}catch(I){m(I.message)}},[ve]),st=S.useCallback(H=>{g(I=>{const ae=new Set(I);return ae.has(H)?ae.delete(H):ae.add(H),ae})},[]),Te=S.useMemo(()=>r.filter(H=>H.status==="completed").map(H=>H.id),[r]),Ze=S.useMemo(()=>r.filter(H=>H.status==="completed"&&x.has(H.id)).length,[r,x]),ne=Te.length>0&&Te.every(H=>x.has(H)),de=!ne&&Te.some(H=>x.has(H));S.useEffect(()=>{J.current&&(J.current.indeterminate=de)},[de]);const $=S.useCallback(()=>{g(ne?new Set:new Set(Te))},[ne,Te]),Re=S.useCallback(async()=>{const H=r.filter(I=>x.has(I.id)).map(I=>I.id);if(H.length!==0&&window.confirm(K("app.deleteSelectedConfirm",{count:H.length}))){D(!0);try{await Promise.all(H.map(I=>Uv(I))),g(new Set),m(null),await ve()}catch(I){m(I.message)}finally{D(!1)}}},[r,x,ve,K]),Ke=S.useCallback(async()=>{const H=r.filter(I=>x.has(I.id)).sort((I,ae)=>I.created_at-ae.created_at).map(I=>I.id);if(H.length!==0){O(!0);try{U(await LS(H)),m(null)}catch(I){m(I.message)}finally{O(!1)}}},[r,x]),Je=S.useCallback(async()=>{if(window.confirm(K("app.clearConfirm"))){C(!0);try{await US(),g(new Set),U(null),m(null),await ve()}catch(H){m(H.message)}finally{C(!1)}}},[ve,K]),ze=S.useMemo(()=>{let H=0,I=0,ae=0;for(const pe of r)pe.status==="pending"||pe.status==="processing"?H+=1:pe.status==="completed"?I+=1:pe.status==="failed"&&(ae+=1);return{live:H,done:I,failed:ae}},[r]),q=Math.min(1,G+(y?.5:0)+Math.min(.16,ze.live*.035));return p.jsxs("div",{className:"studio-shell",children:[p.jsxs("header",{className:"topbar",children:[p.jsxs("a",{className:"brand",href:"/","aria-label":"auto-tts",children:[p.jsx("span",{className:"brand__mark",children:p.jsx(zg,{size:16})}),p.jsx("span",{className:"brand__word",children:"auto—tts"}),p.jsx("span",{className:"brand__edition",children:"SOUND ATELIER / 01"})]}),p.jsxs("div",{className:"topbar__right",children:[p.jsxs("span",{className:"engine-status",children:[p.jsx("i",{"aria-hidden":"true"}),K("app.engine")]}),p.jsxs("button",{type:"button",className:F?"effects-toggle is-on":"effects-toggle","aria-pressed":F,title:K(F?"app.effects.disable":"app.effects.enable"),onClick:()=>oe(H=>!H),children:[p.jsx(oc,{size:12}),p.jsx("span",{children:K(F?"app.effects.on":"app.effects.off")})]}),p.jsx(Sx,{}),p.jsx("a",{className:"topbar__source",href:"https://github.com/kms413/auto-tts",target:"_blank",rel:"noreferrer noopener","aria-label":K("app.source"),title:K("app.source"),children:p.jsx(Mf,{size:15})})]})]}),p.jsxs("main",{className:F?"studio-main":"studio-main is-effects-off",children:[p.jsxs("section",{className:`stage${y?" is-charged":""}${F?"":" is-lite"}`,children:[F&&p.jsxs(p.Fragment,{children:[p.jsx(S.Suspense,{fallback:p.jsx("div",{className:"sculpture-fallback","aria-hidden":"true"}),children:fe?p.jsx(BE,{energy:q}):p.jsx("div",{className:"sculpture-fallback","aria-hidden":"true"})}),p.jsx("div",{className:"stage__wash","aria-hidden":"true"}),p.jsx("div",{className:"stage__grid","aria-hidden":"true"})]}),p.jsxs("div",{className:"hero",children:[p.jsxs("div",{className:"hero__overline hero-enter hero-enter--1",children:[p.jsx("span",{children:K("app.kicker")}),p.jsx("i",{"aria-hidden":"true"}),p.jsx("span",{children:K("app.hero.note")})]}),p.jsxs("h1",{className:"hero__title",children:[p.jsx("span",{className:"hero-title-line hero-title-line--1",children:K("app.hero.line1")}),p.jsx("em",{className:"hero-title-line hero-title-line--2",children:K("app.hero.line2")})]}),p.jsx("p",{className:"hero__lede hero-enter hero-enter--4",children:K("app.lede")})]}),F&&p.jsx("div",{className:"orbit-caption","aria-hidden":"true",children:p.jsxs("svg",{viewBox:"0 0 420 420",children:[p.jsx("defs",{children:p.jsx("path",{id:"orbit-path",d:"M 210,210 m -174,0 a 174,174 0 1,1 348,0 a 174,174 0 1,1 -348,0"})}),p.jsx("text",{children:p.jsx("textPath",{href:"#orbit-path",children:`${K("app.hero.note")} / ${K("app.hero.note")} / `})})]})}),p.jsxs("dl",{className:"stage__metrics",children:[p.jsxs("div",{children:[p.jsx("dt",{children:K("app.tonesAvailable")}),p.jsx("dd",{children:String(u.length).padStart(3,"0")})]}),p.jsxs("div",{children:[p.jsx("dt",{children:K("app.live")}),p.jsx("dd",{children:String(ze.live).padStart(2,"0")})]}),p.jsxs("div",{children:[p.jsx("dt",{children:K("app.done")}),p.jsx("dd",{children:String(ze.done).padStart(2,"0")})]}),ze.failed>0&&p.jsxs("div",{className:"is-alert",children:[p.jsx("dt",{children:K("app.failed")}),p.jsx("dd",{children:String(ze.failed).padStart(2,"0")})]})]}),p.jsx("span",{className:"stage__stamp","aria-hidden":"true",children:"EDGE / NEURAL / ∞"})]}),p.jsxs("aside",{className:"queue-rail","aria-label":K("app.queue"),children:[p.jsxs("header",{className:"queue-head",children:[p.jsxs("div",{children:[p.jsxs("p",{className:"micro-label",children:["02 / ",K("app.queue")]}),p.jsx("p",{className:"queue-head__subtitle",children:K("app.queue.subtitle")})]}),p.jsxs("div",{className:"queue-total",children:[p.jsx("strong",{children:String(r.length).padStart(2,"0")}),p.jsx("span",{children:K("app.queue.takesUnit")})]})]}),r.length>0&&p.jsxs("div",{className:"queue-tools",children:[p.jsxs("div",{className:"queue-tools__selection",children:[p.jsxs("label",{className:"select-all",children:[p.jsxs("span",{className:"take__check",children:[p.jsx("input",{ref:J,type:"checkbox",checked:ne,disabled:Te.length===0,onChange:$}),p.jsx("span",{className:"take__check-mark","aria-hidden":"true",children:p.jsx(Qf,{size:9,strokeWidth:3})})]}),K("app.selectAll")]}),p.jsx("span",{className:"queue-tools__count",children:K("app.selected",{count:x.size})})]}),p.jsxs("div",{className:"queue-tools__actions",children:[p.jsxs("button",{className:"queue-action queue-action--primary",title:K(_?"app.mergeBusy":"app.mergeButton"),disabled:_||x.size===0,onClick:Ke,children:[p.jsx(oc,{size:12}),K(_?"app.mergeBusy":"app.mergeButton")]}),p.jsxs("button",{className:"queue-action queue-action--timeline",title:K("app.timelineButtonHint"),disabled:Ze===0,onClick:$e,children:[p.jsx(Zf,{size:12}),K("app.timelineButton")]}),p.jsxs("button",{className:"queue-action",title:K("app.deleteSelected"),disabled:M||x.size===0,onClick:Re,children:[p.jsx(Qg,{size:12}),K("app.deleteSelected")]}),p.jsxs("button",{className:"queue-action queue-action--quiet",title:K("app.clearAll"),disabled:T||M,onClick:Je,children:[p.jsx(Af,{size:12}),K("app.clearAll")]})]})]}),R&&p.jsxs("section",{className:"master-take master-take--enter",children:[p.jsxs("div",{className:"master-take__head",children:[p.jsxs("span",{className:"master-take__title",children:[p.jsx(oc,{size:13}),K("merge.title")]}),p.jsx("button",{className:"master-take__close","aria-label":K("merge.dismiss"),title:K("merge.dismiss"),onClick:()=>U(null),children:p.jsx(Af,{size:13})})]}),p.jsxs("p",{className:"master-take__meta",children:[K("merge.count",{count:R.count})," · ",K("merge.duration",{value:R.duration})]}),p.jsx(pc,{src:R.audio_url,variant:"light"}),p.jsxs("div",{className:"file-actions master-take__links",children:[p.jsxs("a",{className:"file-link file-link--on-accent",href:R.audio_url,download:`${R.id}.mp3`,children:[p.jsx(Ei,{size:10}),K("merge.downloadAudio")]}),R.srt_url&&p.jsxs("a",{className:"file-link file-link--on-accent",href:R.srt_url,download:`${R.id}.srt`,children:[p.jsx(Ei,{size:10}),K("merge.downloadSrt")]})]})]}),p.jsx("div",{className:"queue-scroll",ref:W,children:p.jsx(mx,{jobs:r,selected:x,scrollRef:W,onToggle:st,onDelete:Qe})}),p.jsxs("footer",{className:"queue-foot",children:[p.jsx("span",{children:K("app.license")}),p.jsxs("a",{href:"https://github.com/kms413/auto-tts",target:"_blank",rel:"noreferrer noopener",children:[K("app.source"),p.jsx(Mf,{size:10})]})]})]}),p.jsx(wE,{voices:u,tones:o,submitting:y,onSubmit:Me,onOpenTimeline:Be,onDraftChange:we})]}),k&&p.jsx(LE,{open:!0,jobIds:te,initialJobs:ue,jobs:r,onClose:()=>V(!1)}),h&&p.jsxs("div",{className:"alert alert--enter",role:"alert",children:[p.jsx("span",{className:"alert__mark","aria-hidden":"true",children:"!"}),p.jsx("span",{className:"alert__text",children:h}),p.jsx("button",{className:"alert__dismiss",onClick:()=>m(null),children:K("app.dismiss")})]})]})}const VE={"app.title":"auto-tts · Unlimited text-to-speech","app.tonesAvailable":"Voices","app.live":"In progress","app.done":"Completed","app.failed":"Failed","app.lede":"Paste text, pick a voice and a tone — the queue turns them into audio.","app.engine":"LOCAL ENGINE","app.effects.on":"Effects · On","app.effects.off":"Effects · Off","app.effects.enable":"Enable the 3D effect","app.effects.disable":"Disable the 3D effect to reduce GPU and CPU load","app.kicker":"EDGE-TTS · UNLIMITED SPEECH","app.hero.line1":"Let every word","app.hero.line2":"be heard.","app.hero.note":"UNLIMITED · NO API KEY","app.dismiss":"Got it","app.queue":"Job queue","app.queue.subtitle":"Every generation, in one place.","app.queue.takesUnit":"TAKES","app.queue.countUnit":"{count} jobs","app.selected":"{count} selected","app.selectAll":"Select all","app.deleteSelected":"Delete selected","app.deleteSelectedConfirm":"Delete the {count} selected jobs and their audio?","app.mergeButton":"Merge audio + subtitles","app.mergeBusy":"Merging…","app.clearAll":"Clear queue","app.clearConfirm":"Delete every job and its audio? This cannot be undone.","app.license":"AGPL-3.0 licensed","app.source":"Get the source","job.status.pending":"Queued","job.status.processing":"Synthesising","job.status.completed":"Completed","job.status.failed":"Failed","job.empty.title":"The queue is empty","job.empty.hint":"Paste text on the left, choose a voice and a tone, then press Generate — the audio shows up here.","job.remove":"Remove","job.select":"Select this job","job.spec.tone":"Tone","job.spec.rate":"Rate","job.spec.pitch":"Pitch","job.spec.chars":"Characters","job.spec.size":"Size","job.spec.submitted":"Submitted","job.spec.duration":"Took","job.size.dash":"—","job.size.mb":"{value} MB","job.size.kb":"{value} KB","job.duration":"{value}s","job.download":"Download MP3","job.downloadSrt":"Download SRT","merge.title":"Merged result","merge.count":"{count} jobs merged","merge.duration":"{value}s long","merge.downloadAudio":"Download merged MP3","merge.downloadSrt":"Download merged SRT","merge.dismiss":"Close","panel.settings":"Synthesis settings","panel.subtitle":"Shape the sound, then send it to the queue.","panel.mode":"Synthesis mode","panel.mode.single":"Single","panel.mode.batch":"Batch","panel.text.label.single":"Text — long text is split automatically","panel.text.label.batch":"Text — one paragraph per blank-line block","panel.text.placeholder.single":"Paste or type text to read, or drop a .docx file here.","panel.text.placeholder.batch":`First paragraph…
65
+
66
+ Second paragraph…
67
+
68
+ Third paragraph…
69
+
70
+ You can also drop a .docx file here.`,"panel.readout.chars":"{count} chars","panel.readout.segments":"{count} segments","panel.tone.legend":"Tone","panel.tone.hintFallback":"Choose a tone and the settings below follow it.","panel.voice.label":"Voice — {count} available","panel.voice.filter":"Filter: zh-CN / Xiaoxiao / en-US","panel.voice.searchPlaceholder":"Search locale, voice or name…","panel.voice.empty":"No matching voices","panel.prosody.rate":"Rate","panel.prosody.volume":"Volume","panel.prosody.pitch":"Pitch","panel.prosody.heading":"Fine tune","panel.submit.busy":"Submitting…","panel.submit.batch":"Queue {count} segments","panel.submit.single":"Generate speech","panel.submit.short":"Generate","panel.output":"OUTPUT / MP3","panel.shortcut":"⌘ / Ctrl + Enter","panel.import.busy":"Parsing…","panel.import.invalid":"Only .docx files are supported","panel.import.empty":"The document has no readable text","panel.import.failed":"Could not parse this DOCX file","panel.import.drop":"Drop to import DOCX","panel.note":"Runs locally · no length limit","voice.female":"Female","voice.male":"Male","locale.switchLabel":"Language","player.play":"Play","player.pause":"Pause","player.seek":"Seek audio","tone.natural":"Natural","tone.natural.hint":"Default pace and pitch","tone.gentle":"Gentle","tone.gentle.hint":"Slower and lower, as if speaking close by","tone.cheerful":"Cheerful","tone.cheerful.hint":"A little faster and brighter, with a smile","tone.excited":"Excited","tone.excited.hint":"Faster and brighter, with big energy","tone.serious":"Serious","tone.serious.hint":"Steady and low, good for statements","tone.sad":"Sad","tone.sad.hint":"Slow and low, with a sinking tone","tone.newscast":"Newscast","tone.newscast.hint":"Clear and steady, like a news anchor","tone.whisper":"Whisper","tone.whisper.hint":"Soft and quiet, at a low volume","tone.custom":"Custom","tone.custom.hint":"Fine-tune the rate, pitch and volume yourself","app.timelineButton":"Timeline","app.timelineButtonHint":"Arrange the selected completed jobs on a timeline","panel.mode.subtitle":"Subtitles","panel.text.label.subtitle":"Text — split into subtitle lines automatically","panel.text.placeholder.subtitle":"Paste a full article, or drop a .docx file here to split it into subtitles.","panel.subtitle.length":"Line length","panel.subtitle.lengthOption":"{count} chars","panel.subtitle.detected":"{count} lines detected","panel.subtitle.estimated":"~{duration}","panel.subtitle.preview":"Subtitle line preview","panel.readout.timelineHint":"opens in the timeline after generating","panel.submit.shortSubtitle":"Arrange","panel.submit.subtitle":"Generate {count} lines","panel.note.subtitle":"Smart splitting · timing is editable after generating","timeline.kicker":"SUBTITLE / TIMELINE","timeline.title":"Subtitle timeline","timeline.clipCount":"{count} clips","timeline.close":"Close timeline","timeline.zoom":"Zoom","timeline.zoomIn":"Zoom in","timeline.zoomOut":"Zoom out","timeline.defaultGap":"Default gap","timeline.repack":"Re-layout","timeline.dragHint":"Drag a clip to move it; later clips ripple with it","timeline.clip":"Clip {index} / {count}","timeline.ready":"Ready","timeline.rendering":"Rendering","timeline.failed":"Failed","timeline.start":"Start time","timeline.end":"End time","timeline.duration":"Clip duration","timeline.estimated":"est.","timeline.gapBefore":"Gap before","timeline.preview":"Preview clip","timeline.empty":"No clips to edit","timeline.select":"Select clip","timeline.pendingText":"Waiting to render…","timeline.frameHint":"10 ms editing snap · 24 ms MP3 frame alignment on export","timeline.readyCount":"{ready} / {count} ready","timeline.waitHint":"Export unlocks when rendering finishes","timeline.footerHint":"Type exact times or drag clips to set gaps. Export when every clip is ready.","timeline.exported":"Exported · {duration} total","timeline.exporting":"Rendering timeline…","timeline.export":"Export timeline MP3 + SRT","timeline.waiting":"Waiting for {count} clips…"},GE={"app.title":"auto-tts · 無限文字轉語音","app.tonesAvailable":"可用音色","app.live":"進行中","app.done":"已完成","app.failed":"失敗","app.lede":"輸入文字,挑一個音色與語氣,佇列會把它們合成成音訊。","app.engine":"本機引擎","app.effects.on":"特效 · 開","app.effects.off":"特效 · 關","app.effects.enable":"開啟 3D 特效","app.effects.disable":"關閉 3D 特效,降低 GPU 與 CPU 佔用","app.kicker":"EDGE-TTS · UNLIMITED SPEECH","app.hero.line1":"讓每個字","app.hero.line2":"都有回聲。","app.hero.note":"無限額 · 無需 API Key","app.dismiss":"知道了","app.queue":"任務佇列","app.queue.subtitle":"每一次生成,都匯入這裡。","app.queue.takesUnit":"則","app.queue.countUnit":"{count} 則","app.selected":"已選 {count} 則","app.selectAll":"全選","app.deleteSelected":"刪除所選","app.deleteSelectedConfirm":"確定要刪除所選 {count} 則任務與其音訊嗎?","app.mergeButton":"合併音訊與字幕","app.mergeBusy":"合併中…","app.clearAll":"清空佇列","app.clearConfirm":"確定要刪除全部任務與其音訊嗎?此操作無法復原。","app.license":"AGPL-3.0 授權","app.source":"取得原始碼","job.status.pending":"排隊中","job.status.processing":"合成中","job.status.completed":"已完成","job.status.failed":"失敗","job.empty.title":"佇列還是空的","job.empty.hint":"在左邊貼上文字,選好音色與語氣,點「生成語音」後音訊會出現在這裡。","job.remove":"刪除","job.select":"選擇此任務","job.spec.tone":"語氣","job.spec.rate":"語速","job.spec.pitch":"音調","job.spec.chars":"字數","job.spec.size":"大小","job.spec.submitted":"提交","job.spec.duration":"耗時","job.size.dash":"—","job.size.mb":"{value} MB","job.size.kb":"{value} KB","job.duration":"{value} 秒","job.download":"下載 MP3","job.downloadSrt":"下載 SRT","merge.title":"合併結果","merge.count":"{count} 則已合併","merge.duration":"長度 {value} 秒","merge.downloadAudio":"下載合併 MP3","merge.downloadSrt":"下載合併 SRT","merge.dismiss":"關閉","panel.settings":"合成設定","panel.subtitle":"設定聲音,然後交給佇列。","panel.mode":"合成模式","panel.mode.single":"單筆","panel.mode.batch":"批次","panel.text.label.single":"文字 — 長文字會自動分塊","panel.text.label.batch":"文字 — 以空行分隔每一段","panel.text.placeholder.single":"貼上或輸入要朗讀的文字,也可以把 .docx 檔案拖到這裡。","panel.text.placeholder.batch":`第一段……
71
+
72
+ 第二段……
73
+
74
+ 第三段……
75
+
76
+ 也可以直接拖入 .docx 檔案`,"panel.readout.chars":"{count} 字","panel.readout.segments":"{count} 段","panel.tone.legend":"語氣","panel.tone.hintFallback":"選擇一個語氣,下面的參數會跟著調整。","panel.voice.label":"音色 — 共 {count} 個","panel.voice.filter":"篩選:zh-CN / Xiaoxiao / en-US","panel.voice.searchPlaceholder":"搜尋語言、音色或名稱…","panel.voice.empty":"沒有符合的音色","panel.prosody.rate":"語速","panel.prosody.volume":"音量","panel.prosody.pitch":"音調","panel.prosody.heading":"微調","panel.submit.busy":"提交中…","panel.submit.batch":"加入佇列({count} 段)","panel.submit.single":"生成語音","panel.submit.short":"生成","panel.output":"輸出 / MP3","panel.shortcut":"⌘ / Ctrl + Enter","panel.import.busy":"解析中…","panel.import.invalid":"只支援 .docx 檔案","panel.import.empty":"文件沒有可讀文字","panel.import.failed":"DOCX 解析失敗","panel.import.drop":"放開以匯入 DOCX","panel.note":"本機執行 · 文字長度不限","voice.female":"女","voice.male":"男","locale.switchLabel":"語言","player.play":"播放","player.pause":"暫停","player.seek":"跳轉播放進度","tone.natural":"自然","tone.natural.hint":"預設語速與音高","tone.gentle":"溫柔","tone.gentle.hint":"放慢、壓低,像在耳邊說話","tone.cheerful":"愉悅","tone.cheerful.hint":"略快、上揚,帶一點笑意","tone.excited":"興奮","tone.excited.hint":"更快、更亮,情緒外放","tone.serious":"嚴肅","tone.serious.hint":"沉穩、低音,適合聲明","tone.sad":"悲傷","tone.sad.hint":"緩慢、低沉,語氣下沉","tone.newscast":"新聞播報","tone.newscast.hint":"清晰、穩定,字正腔圓","tone.whisper":"低語","tone.whisper.hint":"輕聲細語,音量很輕","tone.custom":"自訂","tone.custom.hint":"自己微調語速、音調與音量","app.timelineButton":"時間軸","app.timelineButtonHint":"將所選已完成任務放進時間軸編排","panel.mode.subtitle":"字幕","panel.text.label.subtitle":"文字 — 自動依語意拆成字幕段","panel.text.placeholder.subtitle":"貼上整篇文章,或把 .docx 檔案拖到這裡,系統會自動切分字幕。","panel.subtitle.length":"每段長度","panel.subtitle.lengthOption":"{count} 字","panel.subtitle.detected":"已切出 {count} 段","panel.subtitle.estimated":"預計 {duration}","panel.subtitle.preview":"字幕分段預覽","panel.readout.timelineHint":"生成後進入時間軸","panel.submit.shortSubtitle":"編排","panel.submit.subtitle":"生成 {count} 段並編排","panel.note.subtitle":"自動斷句 · 生成後可精細調整時間","timeline.kicker":"SUBTITLE / TIMELINE","timeline.title":"字幕時間軸","timeline.clipCount":"{count} 個片段","timeline.close":"關閉時間軸","timeline.zoom":"縮放","timeline.zoomIn":"放大時間軸","timeline.zoomOut":"縮小時間軸","timeline.defaultGap":"預設間隔","timeline.repack":"重新排列","timeline.dragHint":"拖動片段移動開始時間,後續片段會同步跟隨","timeline.clip":"片段 {index} / {count}","timeline.ready":"已就緒","timeline.rendering":"合成中","timeline.failed":"失敗","timeline.start":"開始時間","timeline.end":"結束時間","timeline.duration":"片段長度","timeline.estimated":"估算","timeline.gapBefore":"段前間隔","timeline.preview":"試聽片段","timeline.empty":"沒有可編輯的片段","timeline.select":"選擇片段","timeline.pendingText":"等待合成…","timeline.frameHint":"時間軸吸附 10ms · 匯出依 24ms MP3 幀對齊","timeline.readyCount":"{ready} / {count} 已就緒","timeline.waitHint":"完成合成後即可匯出","timeline.footerHint":"輸入精確時間,或拖動片段調整間隔;所有片段完成後匯出。","timeline.exported":"已匯出 · 總長度 {duration}","timeline.exporting":"正在合成時間軸…","timeline.export":"匯出時間軸 MP3 + SRT","timeline.waiting":"等待 {count} 個片段合成…"},YE={"zh-CN":Fg,"en-US":VE,"zh-TW":GE},XE=/\{(\w+)\}/g;function QE(u,a){return a?u.replace(XE,(o,c)=>{const r=a[c];return r===void 0?o:String(r)}):u}function ZE(){const u=Gl.c(4),{locale:a}=_c(),o=Yl();let c,r;return u[0]!==a||u[1]!==o?(c=()=>{document.documentElement.lang=a,document.title=o("app.title")},r=[a,o],u[0]=a,u[1]=o,u[2]=c,u[3]=r):(c=u[2],r=u[3]),S.useEffect(c,r),null}function KE(u){const a=Gl.c(10),{children:o}=u,[c,r]=S.useState(gx);let d;a[0]===Symbol.for("react.memo_cache_sentinel")?(d=O=>{r(O),yx(O)},a[0]=d):d=a[0];const h=d;let m;a[1]!==c?(m=(O,T)=>QE(YE[c][O]??O,T),a[1]=c,a[2]=m):m=a[2];const y=m;let b;a[3]!==c||a[4]!==y?(b={locale:c,setLocale:h,t:y},a[3]=c,a[4]=y,a[5]=b):b=a[5];const x=b;let g;a[6]===Symbol.for("react.memo_cache_sentinel")?(g=p.jsx(ZE,{}),a[6]=g):g=a[6];let _;return a[7]!==o||a[8]!==x?(_=p.jsxs(Kg.Provider,{value:x,children:[g,o]}),a[7]=o,a[8]=x,a[9]=_):_=a[9],_}fS.createRoot(document.getElementById("root")).render(p.jsx(S.StrictMode,{children:p.jsx(KE,{children:p.jsx(qE,{})})}));export{uS as R,S as a,Gl as c,p as j,cS as r};