@volter/world-console 3.0.5 → 3.0.6

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.
@@ -1,76 +1,76 @@
1
- var eP=Object.create;var{getPrototypeOf:_N,defineProperty:jA,getOwnPropertyNames:JN}=Object;var $N=Object.prototype.hasOwnProperty;function QN(Q){return this[Q]}var qN,UN,E0=(Q,U,Z)=>{var X=Q!=null&&typeof Q==="object";if(X){var H=U?qN??=new WeakMap:UN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?eP(_N(Q)):{};let W=U||!Q||!Q.__esModule?jA(Z,"default",{value:Q,enumerable:!0}):Z;for(let B of JN(Q))if(!$N.call(W,B))jA(W,B,{get:QN.bind(Q,B),enumerable:!0});if(X)H.set(Q,W);return W};var D4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var vA=D4((GN)=>{(function(){function Q(){if(v=!1,b){var g=GN.unstable_now();e=g;var c=!0;try{_:{D=!1,N&&(N=!1,h(E),E=-1),C=!0;var a=S;try{J:{Y(g);for(V=Z(O);V!==null&&!(V.expirationTime>g&&B());){var d=V.callback;if(typeof d==="function"){V.callback=null,S=V.priorityLevel;var t=d(V.expirationTime<=g);if(g=GN.unstable_now(),typeof t==="function"){V.callback=t,Y(g),c=!0;break J}V===Z(O)&&X(O),Y(g)}else X(O);V=Z(O)}if(V!==null)c=!0;else{var y=Z(w);y!==null&&T(W,y.startTime-g),c=!1}}break _}finally{V=null,S=a,C=!1}c=void 0}}finally{c?Q1():b=!1}}}function U(g,c){var a=g.length;g.push(c);_:for(;0<a;){var d=a-1>>>1,t=g[d];if(0<H(t,c))g[d]=c,g[a]=t,a=d;else break _}}function Z(g){return g.length===0?null:g[0]}function X(g){if(g.length===0)return null;var c=g[0],a=g.pop();if(a!==c){g[0]=a;_:for(var d=0,t=g.length,y=t>>>1;d<y;){var p=2*(d+1)-1,q1=g[p],s=p+1,W1=g[s];if(0>H(q1,a))s<t&&0>H(W1,q1)?(g[d]=W1,g[s]=a,d=s):(g[d]=q1,g[p]=a,d=p);else if(s<t&&0>H(W1,a))g[d]=W1,g[s]=a,d=s;else break _}}return c}function H(g,c){var a=g.sortIndex-c.sortIndex;return a!==0?a:g.id-c.id}function Y(g){for(var c=Z(w);c!==null;){if(c.callback===null)X(w);else if(c.startTime<=g)X(w),c.sortIndex=c.expirationTime,U(O,c);else break;c=Z(w)}}function W(g){if(N=!1,Y(g),!D)if(Z(O)!==null)D=!0,b||(b=!0,Q1());else{var c=Z(w);c!==null&&T(W,c.startTime-g)}}function B(){return v?!0:GN.unstable_now()-e<m?!1:!0}function T(g,c){E=u(function(){g(GN.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),GN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;GN.unstable_now=function(){return R.now()}}else{var M=Date,A=M.now();GN.unstable_now=function(){return M.now()-A}}var O=[],w=[],P=1,V=null,S=3,C=!1,D=!1,N=!1,v=!1,u=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null,b=!1,E=-1,m=5,e=-1;if(typeof k==="function")var Q1=function(){k(Q)};else if(typeof MessageChannel<"u"){var J1=new MessageChannel,x=J1.port2;J1.port1.onmessage=Q,Q1=function(){x.postMessage(null)}}else Q1=function(){u(Q,0)};GN.unstable_IdlePriority=5,GN.unstable_ImmediatePriority=1,GN.unstable_LowPriority=4,GN.unstable_NormalPriority=3,GN.unstable_Profiling=null,GN.unstable_UserBlockingPriority=2,GN.unstable_cancelCallback=function(g){g.callback=null},GN.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<g?Math.floor(1000/g):5},GN.unstable_getCurrentPriorityLevel=function(){return S},GN.unstable_next=function(g){switch(S){case 1:case 2:case 3:var c=3;break;default:c=S}var a=S;S=c;try{return g()}finally{S=a}},GN.unstable_requestPaint=function(){v=!0},GN.unstable_runWithPriority=function(g,c){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var a=S;S=g;try{return c()}finally{S=a}},GN.unstable_scheduleCallback=function(g,c,a){var d=GN.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?d+a:d):a=d,g){case 1:var t=-1;break;case 2:t=250;break;case 5:t=1073741823;break;case 4:t=1e4;break;default:t=5000}return t=a+t,g={id:P++,callback:c,priorityLevel:g,startTime:a,expirationTime:t,sortIndex:-1},a>d?(g.sortIndex=a,U(w,g),Z(O)===null&&g===Z(w)&&(N?(h(E),E=-1):N=!0,T(W,a-d))):(g.sortIndex=t,U(O,g),D||C||(D=!0,b||(b=!0,Q1()))),g},GN.unstable_shouldYield=B,GN.unstable_wrapCallback=function(g){var c=S;return function(){var a=S;S=c;try{return g.apply(this,arguments)}finally{S=a}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var n5=D4((ZN,zq)=>{(function(){function Q(j,$1){Object.defineProperty(X.prototype,j,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",$1[0],$1[1])}})}function U(j){if(j===null||typeof j!=="object")return null;return j=v1&&j[v1]||j["@@iterator"],typeof j==="function"?j:null}function Z(j,$1){j=(j=j.constructor)&&(j.displayName||j.name)||"ReactClass";var P1=j+"."+$1;M1[P1]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",$1,j),M1[P1]=!0)}function X(j,$1,P1){this.props=j,this.context=$1,this.refs=I1,this.updater=P1||G1}function H(){}function Y(j,$1,P1){this.props=j,this.context=$1,this.refs=I1,this.updater=P1||G1}function W(){}function B(j){return""+j}function T(j){try{B(j);var $1=!1}catch(y1){$1=!0}if($1){$1=console;var P1=$1.error,S1=typeof Symbol==="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return P1.call($1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S1),B(j)}}function R(j){if(j==null)return null;if(typeof j==="function")return j.$$typeof===u1?null:j.displayName||j.name||null;if(typeof j==="string")return j;switch(j){case t:return"Fragment";case p:return"Profiler";case y:return"StrictMode";case R1:return"Suspense";case T1:return"SuspenseList";case w1:return"Activity"}if(typeof j==="object")switch(typeof j.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case d:return"Portal";case s:return j.displayName||"Context";case q1:return(j._context.displayName||"Context")+".Consumer";case W1:var $1=j.render;return j=j.displayName,j||(j=$1.displayName||$1.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case A1:return $1=j.displayName||null,$1!==null?$1:R(j.type)||"Memo";case U1:$1=j._payload,j=j._init;try{return R(j($1))}catch(P1){}}return null}function M(j){if(j===t)return"<>";if(typeof j==="object"&&j!==null&&j.$$typeof===U1)return"<...>";try{var $1=R(j);return $1?"<"+$1+">":"<...>"}catch(P1){return"<...>"}}function A(){var j=N1.A;return j===null?null:j.getOwner()}function O(){return Error("react-stack-top-frame")}function w(j){if(Q0.call(j,"key")){var $1=Object.getOwnPropertyDescriptor(j,"key").get;if($1&&$1.isReactWarning)return!1}return j.key!==void 0}function P(j,$1){function P1(){a0||(a0=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",$1))}P1.isReactWarning=!0,Object.defineProperty(j,"key",{get:P1,configurable:!0})}function V(){var j=R(this.type);return O0[j]||(O0[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function S(j,$1,P1,S1,y1,l1){var d1=P1.ref;return j={$$typeof:a,type:j,key:$1,props:P1,_owner:S1},(d1!==void 0?d1:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:V}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y1}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l1}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function C(j,$1){return $1=S(j.type,$1,j.props,j._owner,j._debugStack,j._debugTask),j._store&&($1._store.validated=j._store.validated),$1}function D(j){N(j)?j._store&&(j._store.validated=1):typeof j==="object"&&j!==null&&j.$$typeof===U1&&(j._payload.status==="fulfilled"?N(j._payload.value)&&j._payload.value._store&&(j._payload.value._store.validated=1):j._store&&(j._store.validated=1))}function N(j){return typeof j==="object"&&j!==null&&j.$$typeof===a}function v(j){var $1={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(P1){return $1[P1]})}function u(j,$1){return typeof j==="object"&&j!==null&&j.key!=null?(T(j.key),v(""+j.key)):$1.toString(36)}function h(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status==="string"?j.then(W,W):(j.status="pending",j.then(function($1){j.status==="pending"&&(j.status="fulfilled",j.value=$1)},function($1){j.status==="pending"&&(j.status="rejected",j.reason=$1)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function k(j,$1,P1,S1,y1){var l1=typeof j;if(l1==="undefined"||l1==="boolean")j=null;var d1=!1;if(j===null)d1=!0;else switch(l1){case"bigint":case"string":case"number":d1=!0;break;case"object":switch(j.$$typeof){case a:case d:d1=!0;break;case U1:return d1=j._init,k(d1(j._payload),$1,P1,S1,y1)}}if(d1){d1=j,y1=y1(d1);var K0=S1===""?"."+u(d1,0):S1;return K1(y1)?(P1="",K0!=null&&(P1=K0.replace(N2,"$&/")+"/"),k(y1,$1,P1,"",function(H2){return H2})):y1!=null&&(N(y1)&&(y1.key!=null&&(d1&&d1.key===y1.key||T(y1.key)),P1=C(y1,P1+(y1.key==null||d1&&d1.key===y1.key?"":(""+y1.key).replace(N2,"$&/")+"/")+K0),S1!==""&&d1!=null&&N(d1)&&d1.key==null&&d1._store&&!d1._store.validated&&(P1._store.validated=2),y1=P1),$1.push(y1)),1}if(d1=0,K0=S1===""?".":S1+":",K1(j))for(var E1=0;E1<j.length;E1++)S1=j[E1],l1=K0+u(S1,E1),d1+=k(S1,$1,P1,l1,y1);else if(E1=U(j),typeof E1==="function")for(E1===j.entries&&(P2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),P2=!0),j=E1.call(j),E1=0;!(S1=j.next()).done;)S1=S1.value,l1=K0+u(S1,E1++),d1+=k(S1,$1,P1,l1,y1);else if(l1==="object"){if(typeof j.then==="function")return k(h(j),$1,P1,S1,y1);throw $1=String(j),Error("Objects are not valid as a React child (found: "+($1==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":$1)+"). If you meant to render a collection of children, use an array instead.")}return d1}function b(j,$1,P1){if(j==null)return j;var S1=[],y1=0;return k(j,S1,"","",function(l1){return $1.call(P1,l1,y1++)}),S1}function E(j){if(j._status===-1){var $1=j._ioInfo;$1!=null&&($1.start=$1.end=performance.now()),$1=j._result;var P1=$1();if(P1.then(function(y1){if(j._status===0||j._status===-1){j._status=1,j._result=y1;var l1=j._ioInfo;l1!=null&&(l1.end=performance.now()),P1.status===void 0&&(P1.status="fulfilled",P1.value=y1)}},function(y1){if(j._status===0||j._status===-1){j._status=2,j._result=y1;var l1=j._ioInfo;l1!=null&&(l1.end=performance.now()),P1.status===void 0&&(P1.status="rejected",P1.reason=y1)}}),$1=j._ioInfo,$1!=null){$1.value=P1;var S1=P1.displayName;typeof S1==="string"&&($1.name=S1)}j._status===-1&&(j._status=0,j._result=P1)}if(j._status===1)return $1=j._result,$1===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var qN=Object.create;var{getPrototypeOf:UN,defineProperty:vA,getOwnPropertyNames:GN}=Object;var ZN=Object.prototype.hasOwnProperty;function FN(Q){return this[Q]}var XN,KN,p0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?XN??=new WeakMap:KN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?qN(UN(Q)):{};let W=U||!Q||!Q.__esModule?vA(Z,"default",{value:Q,enumerable:!0}):Z;for(let B of GN(Q))if(!ZN.call(W,B))vA(W,B,{get:FN.bind(Q,B),enumerable:!0});if(K)H.set(Q,W);return W};var p4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var VA=p4((HN)=>{(function(){function Q(){if(v=!1,b){var p=HN.unstable_now();$1=p;var c=!0;try{_:{u=!1,C&&(C=!1,h(k),k=-1),f=!0;var a=j;try{J:{Y(p);for(V=Z(O);V!==null&&!(V.expirationTime>p&&B());){var i=V.callback;if(typeof i==="function"){V.callback=null,j=V.priorityLevel;var o=i(V.expirationTime<=p);if(p=HN.unstable_now(),typeof o==="function"){V.callback=o,Y(p),c=!0;break J}V===Z(O)&&K(O),Y(p)}else K(O);V=Z(O)}if(V!==null)c=!0;else{var y=Z(P);y!==null&&T(W,y.startTime-p),c=!1}}break _}finally{V=null,j=a,f=!1}c=void 0}}finally{c?Q1():b=!1}}}function U(p,c){var a=p.length;p.push(c);_:for(;0<a;){var i=a-1>>>1,o=p[i];if(0<H(o,c))p[i]=c,p[a]=o,a=i;else break _}}function Z(p){return p.length===0?null:p[0]}function K(p){if(p.length===0)return null;var c=p[0],a=p.pop();if(a!==c){p[0]=a;_:for(var i=0,o=p.length,y=o>>>1;i<y;){var g=2*(i+1)-1,q1=p[g],t=g+1,W1=p[t];if(0>H(q1,a))t<o&&0>H(W1,q1)?(p[i]=W1,p[t]=a,i=t):(p[i]=q1,p[g]=a,i=g);else if(t<o&&0>H(W1,a))p[i]=W1,p[t]=a,i=t;else break _}}return c}function H(p,c){var a=p.sortIndex-c.sortIndex;return a!==0?a:p.id-c.id}function Y(p){for(var c=Z(P);c!==null;){if(c.callback===null)K(P);else if(c.startTime<=p)K(P),c.sortIndex=c.expirationTime,U(O,c);else break;c=Z(P)}}function W(p){if(C=!1,Y(p),!u)if(Z(O)!==null)u=!0,b||(b=!0,Q1());else{var c=Z(P);c!==null&&T(W,c.startTime-p)}}function B(){return v?!0:HN.unstable_now()-$1<x?!1:!0}function T(p,c){k=D(function(){p(HN.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),HN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;HN.unstable_now=function(){return R.now()}}else{var M=Date,A=M.now();HN.unstable_now=function(){return M.now()-A}}var O=[],P=[],N=1,V=null,j=3,f=!1,u=!1,C=!1,v=!1,D=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,b=!1,k=-1,x=5,$1=-1;if(typeof E==="function")var Q1=function(){E(Q)};else if(typeof MessageChannel<"u"){var J1=new MessageChannel,m=J1.port2;J1.port1.onmessage=Q,Q1=function(){m.postMessage(null)}}else Q1=function(){D(Q,0)};HN.unstable_IdlePriority=5,HN.unstable_ImmediatePriority=1,HN.unstable_LowPriority=4,HN.unstable_NormalPriority=3,HN.unstable_Profiling=null,HN.unstable_UserBlockingPriority=2,HN.unstable_cancelCallback=function(p){p.callback=null},HN.unstable_forceFrameRate=function(p){0>p||125<p?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<p?Math.floor(1000/p):5},HN.unstable_getCurrentPriorityLevel=function(){return j},HN.unstable_next=function(p){switch(j){case 1:case 2:case 3:var c=3;break;default:c=j}var a=j;j=c;try{return p()}finally{j=a}},HN.unstable_requestPaint=function(){v=!0},HN.unstable_runWithPriority=function(p,c){switch(p){case 1:case 2:case 3:case 4:case 5:break;default:p=3}var a=j;j=p;try{return c()}finally{j=a}},HN.unstable_scheduleCallback=function(p,c,a){var i=HN.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?i+a:i):a=i,p){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=a+o,p={id:N++,callback:c,priorityLevel:p,startTime:a,expirationTime:o,sortIndex:-1},a>i?(p.sortIndex=a,U(P,p),Z(O)===null&&p===Z(P)&&(C?(h(k),k=-1):C=!0,T(W,a-i))):(p.sortIndex=o,U(O,p),u||f||(u=!0,b||(b=!0,Q1()))),p},HN.unstable_shouldYield=B,HN.unstable_wrapCallback=function(p){var c=j;return function(){var a=j;j=c;try{return p.apply(this,arguments)}finally{j=a}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var G4=p4((YN,Bq)=>{(function(){function Q(I,l){Object.defineProperty(K.prototype,I,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})}function U(I){if(I===null||typeof I!=="object")return null;return I=j1&&I[j1]||I["@@iterator"],typeof I==="function"?I:null}function Z(I,l){I=(I=I.constructor)&&(I.displayName||I.name)||"ReactClass";var F1=I+"."+l;A1[F1]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",l,I),A1[F1]=!0)}function K(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function H(){}function Y(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function W(){}function B(I){return""+I}function T(I){try{B(I);var l=!1}catch(R1){l=!0}if(l){l=console;var F1=l.error,I1=typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return F1.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I1),B(I)}}function R(I){if(I==null)return null;if(typeof I==="function")return I.$$typeof===r1?null:I.displayName||I.name||null;if(typeof I==="string")return I;switch(I){case o:return"Fragment";case g:return"Profiler";case y:return"StrictMode";case T1:return"Suspense";case O1:return"SuspenseList";case P1:return"Activity"}if(typeof I==="object")switch(typeof I.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case i:return"Portal";case t:return I.displayName||"Context";case q1:return(I._context.displayName||"Context")+".Consumer";case W1:var l=I.render;return I=I.displayName,I||(I=l.displayName||l.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case B1:return l=I.displayName||null,l!==null?l:R(I.type)||"Memo";case U1:l=I._payload,I=I._init;try{return R(I(l))}catch(F1){}}return null}function M(I){if(I===o)return"<>";if(typeof I==="object"&&I!==null&&I.$$typeof===U1)return"<...>";try{var l=R(I);return l?"<"+l+">":"<...>"}catch(F1){return"<...>"}}function A(){var I=u1.A;return I===null?null:I.getOwner()}function O(){return Error("react-stack-top-frame")}function P(I){if(D0.call(I,"key")){var l=Object.getOwnPropertyDescriptor(I,"key").get;if(l&&l.isReactWarning)return!1}return I.key!==void 0}function N(I,l){function F1(){X2||(X2=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",l))}F1.isReactWarning=!0,Object.defineProperty(I,"key",{get:F1,configurable:!0})}function V(){var I=R(this.type);return N2[I]||(N2[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function j(I,l,F1,I1,R1,N1){var C1=F1.ref;return I={$$typeof:a,type:I,key:l,props:F1,_owner:I1},(C1!==void 0?C1:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:V}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N1}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function f(I,l){return l=j(I.type,l,I.props,I._owner,I._debugStack,I._debugTask),I._store&&(l._store.validated=I._store.validated),l}function u(I){C(I)?I._store&&(I._store.validated=1):typeof I==="object"&&I!==null&&I.$$typeof===U1&&(I._payload.status==="fulfilled"?C(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function C(I){return typeof I==="object"&&I!==null&&I.$$typeof===a}function v(I){var l={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(F1){return l[F1]})}function D(I,l){return typeof I==="object"&&I!==null&&I.key!=null?(T(I.key),v(""+I.key)):l.toString(36)}function h(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status==="string"?I.then(W,W):(I.status="pending",I.then(function(l){I.status==="pending"&&(I.status="fulfilled",I.value=l)},function(l){I.status==="pending"&&(I.status="rejected",I.reason=l)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function E(I,l,F1,I1,R1){var N1=typeof I;if(N1==="undefined"||N1==="boolean")I=null;var C1=!1;if(I===null)C1=!0;else switch(N1){case"bigint":case"string":case"number":C1=!0;break;case"object":switch(I.$$typeof){case a:case i:C1=!0;break;case U1:return C1=I._init,E(C1(I._payload),l,F1,I1,R1)}}if(C1){C1=I,R1=R1(C1);var y1=I1===""?"."+D(C1,0):I1;return M1(R1)?(F1="",y1!=null&&(F1=y1.replace(H2,"$&/")+"/"),E(R1,l,F1,"",function(p1){return p1})):R1!=null&&(C(R1)&&(R1.key!=null&&(C1&&C1.key===R1.key||T(R1.key)),F1=f(R1,F1+(R1.key==null||C1&&C1.key===R1.key?"":(""+R1.key).replace(H2,"$&/")+"/")+y1),I1!==""&&C1!=null&&C(C1)&&C1.key==null&&C1._store&&!C1._store.validated&&(F1._store.validated=2),R1=F1),l.push(R1)),1}if(C1=0,y1=I1===""?".":I1+":",M1(I))for(var v1=0;v1<I.length;v1++)I1=I[v1],N1=y1+D(I1,v1),C1+=E(I1,l,F1,N1,R1);else if(v1=U(I),typeof v1==="function")for(v1===I.entries&&(M2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),M2=!0),I=v1.call(I),v1=0;!(I1=I.next()).done;)I1=I1.value,N1=y1+D(I1,v1++),C1+=E(I1,l,F1,N1,R1);else if(N1==="object"){if(typeof I.then==="function")return E(h(I),l,F1,I1,R1);throw l=String(I),Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}return C1}function b(I,l,F1){if(I==null)return I;var I1=[],R1=0;return E(I,I1,"","",function(N1){return l.call(F1,N1,R1++)}),I1}function k(I){if(I._status===-1){var l=I._ioInfo;l!=null&&(l.start=l.end=performance.now()),l=I._result;var F1=l();if(F1.then(function(R1){if(I._status===0||I._status===-1){I._status=1,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="fulfilled",F1.value=R1)}},function(R1){if(I._status===0||I._status===-1){I._status=2,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="rejected",F1.reason=R1)}}),l=I._ioInfo,l!=null){l.value=F1;var I1=F1.displayName;typeof I1==="string"&&(l.name=I1)}I._status===-1&&(I._status=0,I._result=F1)}if(I._status===1)return l=I._result,l===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,$1),"default"in $1||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,l),"default"in l||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,$1),$1.default;throw j._result}function m(){var j=N1.H;return j===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,l),l.default;throw I._result}function x(){var I=u1.H;return I===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),j}function e(){N1.asyncTransitions--}function Q1(j){if(x5===null)try{var $1=("require"+Math.random()).slice(0,7);x5=(zq&&zq[$1]).call(zq,"timers").setImmediate}catch(P1){x5=function(S1){C3===!1&&(C3=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y1=new MessageChannel;y1.port1.onmessage=S1,y1.port2.postMessage(void 0)}}return x5(j)}function J1(j){return 1<j.length&&typeof AggregateError==="function"?AggregateError(j):j[0]}function x(j,$1){$1!==g4-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),g4=$1}function g(j,$1,P1){var S1=N1.actQueue;if(S1!==null)if(S1.length!==0)try{c(S1),Q1(function(){return g(j,$1,P1)});return}catch(y1){N1.thrownErrors.push(y1)}else N1.actQueue=null;0<N1.thrownErrors.length?(S1=J1(N1.thrownErrors),N1.thrownErrors.length=0,P1(S1)):$1(j)}function c(j){if(!c4){c4=!0;var $1=0;try{for(;$1<j.length;$1++){var P1=j[$1];do{N1.didUsePromise=!1;var S1=P1(!1);if(S1!==null){if(N1.didUsePromise){j[$1]=P1,j.splice(0,$1);return}P1=S1}else break}while(1)}j.length=0}catch(y1){j.splice(0,$1+1),N1.thrownErrors.push(y1)}finally{c4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),s=Symbol.for("react.context"),W1=Symbol.for("react.forward_ref"),R1=Symbol.for("react.suspense"),T1=Symbol.for("react.suspense_list"),A1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),w1=Symbol.for("react.activity"),v1=Symbol.iterator,M1={},G1={isMounted:function(){return!1},enqueueForceUpdate:function(j){Z(j,"forceUpdate")},enqueueReplaceState:function(j){Z(j,"replaceState")},enqueueSetState:function(j){Z(j,"setState")}},B1=Object.assign,I1={};Object.freeze(I1),X.prototype.isReactComponent={},X.prototype.setState=function(j,$1){if(typeof j!=="object"&&typeof j!=="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,$1,"setState")},X.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};var C1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(q4 in C1)C1.hasOwnProperty(q4)&&Q(q4,C1[q4]);H.prototype=X.prototype,C1=Y.prototype=new H,C1.constructor=Y,B1(C1,X.prototype),C1.isPureReactComponent=!0;var K1=Array.isArray,u1=Symbol.for("react.client.reference"),N1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Q0=Object.prototype.hasOwnProperty,b1=console.createTask?console.createTask:function(){return null};C1={react_stack_bottom_frame:function(j){return j()}};var a0,q2,O0={},D2=C1.react_stack_bottom_frame.bind(C1,O)(),u2=b1(M(O)),P2=!1,N2=/\/+/g,C2=typeof reportError==="function"?reportError:function(j){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var $1=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j==="object"&&j!==null&&typeof j.message==="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent($1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",j);return}console.error(j)},C3=!1,x5=null,g4=0,p4=!1,c4=!1,y6=typeof queueMicrotask==="function"?function(j){queueMicrotask(function(){return queueMicrotask(j)})}:Q1;C1=Object.freeze({__proto__:null,c:function(j){return m().useMemoCache(j)}});var q4={map:b,forEach:function(j,$1,P1){b(j,function(){$1.apply(this,arguments)},P1)},count:function(j){var $1=0;return b(j,function(){$1++}),$1},toArray:function(j){return b(j,function($1){return $1})||[]},only:function(j){if(!N(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};ZN.Activity=w1,ZN.Children=q4,ZN.Component=X,ZN.Fragment=t,ZN.Profiler=p,ZN.PureComponent=Y,ZN.StrictMode=y,ZN.Suspense=R1,ZN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N1,ZN.__COMPILER_RUNTIME=C1,ZN.act=function(j){var $1=N1.actQueue,P1=g4;g4++;var S1=N1.actQueue=$1!==null?$1:[],y1=!1;try{var l1=j()}catch(E1){N1.thrownErrors.push(E1)}if(0<N1.thrownErrors.length)throw x($1,P1),j=J1(N1.thrownErrors),N1.thrownErrors.length=0,j;if(l1!==null&&typeof l1==="object"&&typeof l1.then==="function"){var d1=l1;return y6(function(){y1||p4||(p4=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(E1,H2){y1=!0,d1.then(function(b2){if(x($1,P1),P1===0){try{c(S1),Q1(function(){return g(b2,E1,H2)})}catch(k6){N1.thrownErrors.push(k6)}if(0<N1.thrownErrors.length){var U4=J1(N1.thrownErrors);N1.thrownErrors.length=0,H2(U4)}}else E1(b2)},function(b2){x($1,P1),0<N1.thrownErrors.length?(b2=J1(N1.thrownErrors),N1.thrownErrors.length=0,H2(b2)):H2(b2)})}}}var K0=l1;if(x($1,P1),P1===0&&(c(S1),S1.length!==0&&y6(function(){y1||p4||(p4=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),N1.actQueue=null),0<N1.thrownErrors.length)throw j=J1(N1.thrownErrors),N1.thrownErrors.length=0,j;return{then:function(E1,H2){y1=!0,P1===0?(N1.actQueue=S1,Q1(function(){return g(K0,E1,H2)})):E1(K0)}}},ZN.cache=function(j){return function(){return j.apply(null,arguments)}},ZN.cacheSignal=function(){return null},ZN.captureOwnerStack=function(){var j=N1.getCurrentStack;return j===null?null:j()},ZN.cloneElement=function(j,$1,P1){if(j===null||j===void 0)throw Error("The argument must be a React element, but you passed "+j+".");var S1=B1({},j.props),y1=j.key,l1=j._owner;if($1!=null){var d1;_:{if(Q0.call($1,"ref")&&(d1=Object.getOwnPropertyDescriptor($1,"ref").get)&&d1.isReactWarning){d1=!1;break _}d1=$1.ref!==void 0}d1&&(l1=A()),w($1)&&(T($1.key),y1=""+$1.key);for(K0 in $1)!Q0.call($1,K0)||K0==="key"||K0==="__self"||K0==="__source"||K0==="ref"&&$1.ref===void 0||(S1[K0]=$1[K0])}var K0=arguments.length-2;if(K0===1)S1.children=P1;else if(1<K0){d1=Array(K0);for(var E1=0;E1<K0;E1++)d1[E1]=arguments[E1+2];S1.children=d1}S1=S(j.type,y1,S1,l1,j._debugStack,j._debugTask);for(y1=2;y1<arguments.length;y1++)D(arguments[y1]);return S1},ZN.createContext=function(j){return j={$$typeof:s,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:q1,_context:j},j._currentRenderer=null,j._currentRenderer2=null,j},ZN.createElement=function(j,$1,P1){for(var S1=2;S1<arguments.length;S1++)D(arguments[S1]);S1={};var y1=null;if($1!=null)for(E1 in q2||!("__self"in $1)||"key"in $1||(q2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),w($1)&&(T($1.key),y1=""+$1.key),$1)Q0.call($1,E1)&&E1!=="key"&&E1!=="__self"&&E1!=="__source"&&(S1[E1]=$1[E1]);var l1=arguments.length-2;if(l1===1)S1.children=P1;else if(1<l1){for(var d1=Array(l1),K0=0;K0<l1;K0++)d1[K0]=arguments[K0+2];Object.freeze&&Object.freeze(d1),S1.children=d1}if(j&&j.defaultProps)for(E1 in l1=j.defaultProps,l1)S1[E1]===void 0&&(S1[E1]=l1[E1]);y1&&P(S1,typeof j==="function"?j.displayName||j.name||"Unknown":j);var E1=1e4>N1.recentlyCreatedOwnerStacks++;return S(j,y1,S1,A(),E1?Error("react-stack-top-frame"):D2,E1?b1(M(j)):u2)},ZN.createRef=function(){var j={current:null};return Object.seal(j),j},ZN.forwardRef=function(j){j!=null&&j.$$typeof===A1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof j!=="function"?console.error("forwardRef requires a render function but was given %s.",j===null?"null":typeof j):j.length!==0&&j.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",j.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),j!=null&&j.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var $1={$$typeof:W1,render:j},P1;return Object.defineProperty($1,"displayName",{enumerable:!1,configurable:!0,get:function(){return P1},set:function(S1){P1=S1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:S1}),j.displayName=S1)}}),$1},ZN.isValidElement=N,ZN.lazy=function(j){j={_status:-1,_result:j};var $1={$$typeof:U1,_payload:j,_init:E},P1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return j._ioInfo=P1,$1._debugInfo=[{awaited:P1}],$1},ZN.memo=function(j,$1){j==null&&console.error("memo: The first argument must be a component. Instead received: %s",j===null?"null":typeof j),$1={$$typeof:A1,type:j,compare:$1===void 0?null:$1};var P1;return Object.defineProperty($1,"displayName",{enumerable:!1,configurable:!0,get:function(){return P1},set:function(S1){P1=S1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:S1}),j.displayName=S1)}}),$1},ZN.startTransition=function(j){var $1=N1.T,P1={};P1._updatedFibers=new Set,N1.T=P1;try{var S1=j(),y1=N1.S;y1!==null&&y1(P1,S1),typeof S1==="object"&&S1!==null&&typeof S1.then==="function"&&(N1.asyncTransitions++,S1.then(e,e),S1.then(W,C2))}catch(l1){C2(l1)}finally{$1===null&&P1._updatedFibers&&(j=P1._updatedFibers.size,P1._updatedFibers.clear(),10<j&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),$1!==null&&P1.types!==null&&($1.types!==null&&$1.types!==P1.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),$1.types=P1.types),N1.T=$1}},ZN.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},ZN.use=function(j){return m().use(j)},ZN.useActionState=function(j,$1,P1){return m().useActionState(j,$1,P1)},ZN.useCallback=function(j,$1){return m().useCallback(j,$1)},ZN.useContext=function(j){var $1=m();return j.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),$1.useContext(j)},ZN.useDebugValue=function(j,$1){return m().useDebugValue(j,$1)},ZN.useDeferredValue=function(j,$1){return m().useDeferredValue(j,$1)},ZN.useEffect=function(j,$1){return j==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(j,$1)},ZN.useEffectEvent=function(j){return m().useEffectEvent(j)},ZN.useId=function(){return m().useId()},ZN.useImperativeHandle=function(j,$1,P1){return m().useImperativeHandle(j,$1,P1)},ZN.useInsertionEffect=function(j,$1){return j==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(j,$1)},ZN.useLayoutEffect=function(j,$1){return j==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(j,$1)},ZN.useMemo=function(j,$1){return m().useMemo(j,$1)},ZN.useOptimistic=function(j,$1){return m().useOptimistic(j,$1)},ZN.useReducer=function(j,$1,P1){return m().useReducer(j,$1,P1)},ZN.useRef=function(j){return m().useRef(j)},ZN.useState=function(j){return m().useState(j)},ZN.useSyncExternalStore=function(j,$1,P1){return m().useSyncExternalStore(j,$1,P1)},ZN.useTransition=function(){return m().useTransition()},ZN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var VA=D4((FN)=>{var pF=E0(n5());(function(){function Q(){}function U(M){return""+M}function Z(M,A,O){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(w);var P=!1}catch(V){P=!0}return P&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),U(w)),{$$typeof:T,key:w==null?null:""+w,children:M,containerInfo:A,implementation:O}}function X(M,A){if(M==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":'something with type "'+typeof M+'"'}function Y(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":typeof M==="string"?JSON.stringify(M):typeof M==="number"?"`"+M+"`":'something with type "'+typeof M+'"'}function W(){var M=R.H;return M===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),I}function $1(){u1.asyncTransitions--}function Q1(I){if(m2===null)try{var l=("require"+Math.random()).slice(0,7);m2=(Bq&&Bq[l]).call(Bq,"timers").setImmediate}catch(F1){m2=function(I1){z4===!1&&(z4=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R1=new MessageChannel;R1.port1.onmessage=I1,R1.port2.postMessage(void 0)}}return m2(I)}function J1(I){return 1<I.length&&typeof AggregateError==="function"?AggregateError(I):I[0]}function m(I,l){l!==f5-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),f5=l}function p(I,l,F1){var I1=u1.actQueue;if(I1!==null)if(I1.length!==0)try{c(I1),Q1(function(){return p(I,l,F1)});return}catch(R1){u1.thrownErrors.push(R1)}else u1.actQueue=null;0<u1.thrownErrors.length?(I1=J1(u1.thrownErrors),u1.thrownErrors.length=0,F1(I1)):l(I)}function c(I){if(!r5){r5=!0;var l=0;try{for(;l<I.length;l++){var F1=I[l];do{u1.didUsePromise=!1;var I1=F1(!1);if(I1!==null){if(u1.didUsePromise){I[l]=F1,I.splice(0,l);return}F1=I1}else break}while(1)}I.length=0}catch(R1){I.splice(0,l+1),u1.thrownErrors.push(R1)}finally{r5=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),t=Symbol.for("react.context"),W1=Symbol.for("react.forward_ref"),T1=Symbol.for("react.suspense"),O1=Symbol.for("react.suspense_list"),B1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),P1=Symbol.for("react.activity"),j1=Symbol.iterator,A1={},k1={isMounted:function(){return!1},enqueueForceUpdate:function(I){Z(I,"forceUpdate")},enqueueReplaceState:function(I){Z(I,"replaceState")},enqueueSetState:function(I){Z(I,"setState")}},D1=Object.assign,g1={};Object.freeze(g1),K.prototype.isReactComponent={},K.prototype.setState=function(I,l){if(typeof I!=="object"&&typeof I!=="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,l,"setState")},K.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};var h1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(G1 in h1)h1.hasOwnProperty(G1)&&Q(G1,h1[G1]);H.prototype=K.prototype,h1=Y.prototype=new H,h1.constructor=Y,D1(h1,K.prototype),h1.isPureReactComponent=!0;var M1=Array.isArray,r1=Symbol.for("react.client.reference"),u1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D0=Object.prototype.hasOwnProperty,o1=console.createTask?console.createTask:function(){return null};h1={react_stack_bottom_frame:function(I){return I()}};var X2,K2,N2={},A2=h1.react_stack_bottom_frame.bind(h1,O)(),C2=o1(M(O)),M2=!1,H2=/\/+/g,_2=typeof reportError==="function"?reportError:function(I){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(l))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",I);return}console.error(I)},z4=!1,m2=null,f5=0,S5=!1,r5=!1,o4=typeof queueMicrotask==="function"?function(I){queueMicrotask(function(){return queueMicrotask(I)})}:Q1;h1=Object.freeze({__proto__:null,c:function(I){return x().useMemoCache(I)}});var G1={map:b,forEach:function(I,l,F1){b(I,function(){l.apply(this,arguments)},F1)},count:function(I){var l=0;return b(I,function(){l++}),l},toArray:function(I){return b(I,function(l){return l})||[]},only:function(I){if(!C(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};YN.Activity=P1,YN.Children=G1,YN.Component=K,YN.Fragment=o,YN.Profiler=g,YN.PureComponent=Y,YN.StrictMode=y,YN.Suspense=T1,YN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u1,YN.__COMPILER_RUNTIME=h1,YN.act=function(I){var l=u1.actQueue,F1=f5;f5++;var I1=u1.actQueue=l!==null?l:[],R1=!1;try{var N1=I()}catch(v1){u1.thrownErrors.push(v1)}if(0<u1.thrownErrors.length)throw m(l,F1),I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;if(N1!==null&&typeof N1==="object"&&typeof N1.then==="function"){var C1=N1;return o4(function(){R1||S5||(S5=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(v1,p1){R1=!0,C1.then(function(S0){if(m(l,F1),F1===0){try{c(I1),Q1(function(){return p(S0,v1,p1)})}catch(n4){u1.thrownErrors.push(n4)}if(0<u1.thrownErrors.length){var w0=J1(u1.thrownErrors);u1.thrownErrors.length=0,p1(w0)}}else v1(S0)},function(S0){m(l,F1),0<u1.thrownErrors.length?(S0=J1(u1.thrownErrors),u1.thrownErrors.length=0,p1(S0)):p1(S0)})}}}var y1=N1;if(m(l,F1),F1===0&&(c(I1),I1.length!==0&&o4(function(){R1||S5||(S5=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),u1.actQueue=null),0<u1.thrownErrors.length)throw I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;return{then:function(v1,p1){R1=!0,F1===0?(u1.actQueue=I1,Q1(function(){return p(y1,v1,p1)})):v1(y1)}}},YN.cache=function(I){return function(){return I.apply(null,arguments)}},YN.cacheSignal=function(){return null},YN.captureOwnerStack=function(){var I=u1.getCurrentStack;return I===null?null:I()},YN.cloneElement=function(I,l,F1){if(I===null||I===void 0)throw Error("The argument must be a React element, but you passed "+I+".");var I1=D1({},I.props),R1=I.key,N1=I._owner;if(l!=null){var C1;_:{if(D0.call(l,"ref")&&(C1=Object.getOwnPropertyDescriptor(l,"ref").get)&&C1.isReactWarning){C1=!1;break _}C1=l.ref!==void 0}C1&&(N1=A()),P(l)&&(T(l.key),R1=""+l.key);for(y1 in l)!D0.call(l,y1)||y1==="key"||y1==="__self"||y1==="__source"||y1==="ref"&&l.ref===void 0||(I1[y1]=l[y1])}var y1=arguments.length-2;if(y1===1)I1.children=F1;else if(1<y1){C1=Array(y1);for(var v1=0;v1<y1;v1++)C1[v1]=arguments[v1+2];I1.children=C1}I1=j(I.type,R1,I1,N1,I._debugStack,I._debugTask);for(R1=2;R1<arguments.length;R1++)u(arguments[R1]);return I1},YN.createContext=function(I){return I={$$typeof:t,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:q1,_context:I},I._currentRenderer=null,I._currentRenderer2=null,I},YN.createElement=function(I,l,F1){for(var I1=2;I1<arguments.length;I1++)u(arguments[I1]);I1={};var R1=null;if(l!=null)for(v1 in K2||!("__self"in l)||"key"in l||(K2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(l)&&(T(l.key),R1=""+l.key),l)D0.call(l,v1)&&v1!=="key"&&v1!=="__self"&&v1!=="__source"&&(I1[v1]=l[v1]);var N1=arguments.length-2;if(N1===1)I1.children=F1;else if(1<N1){for(var C1=Array(N1),y1=0;y1<N1;y1++)C1[y1]=arguments[y1+2];Object.freeze&&Object.freeze(C1),I1.children=C1}if(I&&I.defaultProps)for(v1 in N1=I.defaultProps,N1)I1[v1]===void 0&&(I1[v1]=N1[v1]);R1&&N(I1,typeof I==="function"?I.displayName||I.name||"Unknown":I);var v1=1e4>u1.recentlyCreatedOwnerStacks++;return j(I,R1,I1,A(),v1?Error("react-stack-top-frame"):A2,v1?o1(M(I)):C2)},YN.createRef=function(){var I={current:null};return Object.seal(I),I},YN.forwardRef=function(I){I!=null&&I.$$typeof===B1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!=="function"?console.error("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&I.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var l={$$typeof:W1,render:I},F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.isValidElement=C,YN.lazy=function(I){I={_status:-1,_result:I};var l={$$typeof:U1,_payload:I,_init:k},F1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return I._ioInfo=F1,l._debugInfo=[{awaited:F1}],l},YN.memo=function(I,l){I==null&&console.error("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),l={$$typeof:B1,type:I,compare:l===void 0?null:l};var F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.startTransition=function(I){var l=u1.T,F1={};F1._updatedFibers=new Set,u1.T=F1;try{var I1=I(),R1=u1.S;R1!==null&&R1(F1,I1),typeof I1==="object"&&I1!==null&&typeof I1.then==="function"&&(u1.asyncTransitions++,I1.then($1,$1),I1.then(W,_2))}catch(N1){_2(N1)}finally{l===null&&F1._updatedFibers&&(I=F1._updatedFibers.size,F1._updatedFibers.clear(),10<I&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),l!==null&&F1.types!==null&&(l.types!==null&&l.types!==F1.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),l.types=F1.types),u1.T=l}},YN.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},YN.use=function(I){return x().use(I)},YN.useActionState=function(I,l,F1){return x().useActionState(I,l,F1)},YN.useCallback=function(I,l){return x().useCallback(I,l)},YN.useContext=function(I){var l=x();return I.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),l.useContext(I)},YN.useDebugValue=function(I,l){return x().useDebugValue(I,l)},YN.useDeferredValue=function(I,l){return x().useDeferredValue(I,l)},YN.useEffect=function(I,l){return I==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useEffect(I,l)},YN.useEffectEvent=function(I){return x().useEffectEvent(I)},YN.useId=function(){return x().useId()},YN.useImperativeHandle=function(I,l,F1){return x().useImperativeHandle(I,l,F1)},YN.useInsertionEffect=function(I,l){return I==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useInsertionEffect(I,l)},YN.useLayoutEffect=function(I,l){return I==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useLayoutEffect(I,l)},YN.useMemo=function(I,l){return x().useMemo(I,l)},YN.useOptimistic=function(I,l){return x().useOptimistic(I,l)},YN.useReducer=function(I,l,F1){return x().useReducer(I,l,F1)},YN.useRef=function(I){return x().useRef(I)},YN.useState=function(I){return x().useState(I)},YN.useSyncExternalStore=function(I,l,F1){return x().useSyncExternalStore(I,l,F1)},YN.useTransition=function(){return x().useTransition()},YN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yA=p4((zN)=>{var lF=p0(G4());(function(){function Q(){}function U(M){return""+M}function Z(M,A,O){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(P);var N=!1}catch(V){N=!0}return N&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object"),U(P)),{$$typeof:T,key:P==null?null:""+P,children:M,containerInfo:A,implementation:O}}function K(M,A){if(M==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":'something with type "'+typeof M+'"'}function Y(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":typeof M==="string"?JSON.stringify(M):typeof M==="number"?"`"+M+"`":'something with type "'+typeof M+'"'}function W(){var M=R.H;return M===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),M}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},T=Symbol.for("react.portal"),R=pF.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),FN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,FN.createPortal=function(M,A){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(M,A,null,O)},FN.flushSync=function(M){var A=R.T,O=B.p;try{if(R.T=null,B.p=2,M)return M()}finally{R.T=A,B.p=O,B.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},FN.preconnect=function(M,A){typeof M==="string"&&M?A!=null&&typeof A!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",Y(A)):A!=null&&typeof A.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",H(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M)),typeof M==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,B.d.C(M,A))},FN.prefetchDNS=function(M){if(typeof M!=="string"||!M)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M));else if(1<arguments.length){var A=arguments[1];typeof A==="object"&&A.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A))}typeof M==="string"&&B.d.D(M)},FN.preinit=function(M,A){if(typeof M==="string"&&M?A==null||typeof A!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",Y(A)):A.as!=="style"&&A.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',Y(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M)),typeof M==="string"&&A&&typeof A.as==="string"){var O=A.as,w=X(O,A.crossOrigin),P=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;O==="style"?B.d.S(M,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:w,integrity:P,fetchPriority:V}):O==="script"&&B.d.X(M,{crossOrigin:w,integrity:P,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},FN.preinitModule=function(M,A){var O="";if(typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(O+=" The `as` option encountered was "+Y(A.as)+"."),O)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",O);else switch(O=A&&typeof A.as==="string"?A.as:"script",O){case"script":break;default:O=Y(O),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',O,M)}if(typeof M==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")O=X(A.as,A.crossOrigin),B.d.M(M,{crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&B.d.M(M)},FN.preload=function(M,A){var O="";if(typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A==null||typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',O),typeof M==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){O=A.as;var w=X(O,A.crossOrigin);B.d.L(M,O,{crossOrigin:w,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},FN.preloadModule=function(M,A){var O="";typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',O),typeof M==="string"&&(A?(O=X(A.as,A.crossOrigin),B.d.m(M,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0})):B.d.m(M))},FN.requestFormReset=function(M){B.d.r(M)},FN.unstable_batchedUpdates=function(M,A){return M(A)},FN.useFormState=function(M,A,O){return W().useFormState(M,A,O)},FN.useFormStatus=function(){return W().useHostTransitionStatus()},FN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var cF=D4((Jk,yA)=>{var KN=E0(VA());yA.exports=KN});var kA=D4((XN)=>{var Y0=E0(vA()),t7=E0(n5()),lF=E0(cF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],K=U2(_)?_.slice():J0({},_);return K[G]=U(_[G],J,$+1,q),K}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X(_,J,$,0)}}function X(_,J,$,q){var G=J[q],K=U2(_)?_.slice():J0({},_);return q+1===J.length?(K[$[q]]=K[G],U2(K)?K.splice(G,1):delete K[G]):K[G]=X(_[G],J,$,q+1),K}function H(_,J,$){var q=J[$],G=U2(_)?_.slice():J0({},_);if($+1===J.length)return U2(G)?G.splice(q,1):delete G[q],G;return G[q]=H(_[q],J,$+1),G}function Y(){return!1}function W(){return null}function B(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function T(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function R(){}function M(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function O(_,J,$,q){return new pO(_,J,$,q)}function w(_,J){_.context===o3&&(FZ(_.current,2,J,_,null,null),Z7())}function P(_,J){if(N5!==null){var $=J.staleFamilies;J=J.updatedFamilies,n9(),uH(_.current,J,$),Z7()}}function V(_){N5=_}function S(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function C(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function D(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function N(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function v(_){if(C(_)!==_)throw Error("Unable to find node on an unmounted component.")}function u(_){var J=_.alternate;if(!J){if(J=C(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var G=$.return;if(G===null)break;var K=G.alternate;if(K===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===K.child){for(K=G.child;K;){if(K===$)return v(G),_;if(K===q)return v(G),J;K=K.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=K;else{for(var z=!1,L=G.child;L;){if(L===$){z=!0,$=G,q=K;break}if(L===q){z=!0,q=G,$=K;break}L=L.sibling}if(!z){for(L=K.child;L;){if(L===$){z=!0,$=K,q=G;break}if(L===q){z=!0,q=K,$=G;break}L=L.sibling}if(!z)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if($.alternate!==q)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function k(_){if(_===null||typeof _!=="object")return null;return _=pW&&_[pW]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Kw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case W7:return"Fragment";case WZ:return"Profiler";case ZQ:return"StrictMode";case LZ:return"Suspense";case AZ:return"SuspenseList";case MZ:return"Activity"}if(typeof _==="object")switch(typeof _.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case z7:return"Portal";case w4:return _.displayName||"Context";case BZ:return(_._context.displayName||"Context")+".Consumer";case F_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case FQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case Y5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function E(_){return typeof _.tag==="number"?m(_):typeof _.name==="string"?_.name:null}function m(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return b(J);case 8:return J===ZQ?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;break;case 29:if(J=_._debugInfo,J!=null){for(var $=J.length-1;0<=$;$--)if(typeof J[$].name==="string")return J[$].name}if(_.return!==null)return m(_.return)}return null}function e(_){return{current:_}}function Q1(_,J){0>e4?console.error("Unexpected pop."):(J!==RZ[e4]&&console.error("Unexpected Fiber popped."),_.current=TZ[e4],TZ[e4]=null,RZ[e4]=null,e4--)}function J1(_,J,$){e4++,TZ[e4]=_.current,RZ[e4]=$,_.current=J}function x(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function g(_,J){J1(d3,J,_),J1(K_,_,_),J1(l3,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?YW(J):z3:z3;break;default:if($=J.tagName,J=J.namespaceURI)J=YW(J),J=zW(J,$);else switch($){case"svg":J=a7;break;case"math":J=Gq;break;default:J=z3}}$=$.toLowerCase(),$=f9(null,$),$={context:J,ancestorInfo:$},Q1(l3,_),J1(l3,$,_)}function c(_){Q1(l3,_),Q1(K_,_),Q1(d3,_)}function a(){return x(l3.current)}function d(_){_.memoizedState!==null&&J1(KQ,_,_);var J=x(l3.current),$=_.type,q=zW(J.context,$);$=f9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(J1(K_,_,_),J1(l3,q,_))}function t(_){K_.current===_&&(Q1(l3,_),Q1(K_,_)),KQ.current===_&&(Q1(KQ,_),_J._currentValue=M8)}function y(){}function p(){if(X_===0){cW=console.log,lW=console.info,dW=console.warn,iW=console.error,rW=console.group,aW=console.groupCollapsed,sW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:y,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}X_++}function q1(){if(X_--,X_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J0({},_,{value:cW}),info:J0({},_,{value:lW}),warn:J0({},_,{value:dW}),error:J0({},_,{value:iW}),group:J0({},_,{value:rW}),groupCollapsed:J0({},_,{value:aW}),groupEnd:J0({},_,{value:sW})})}0>X_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function s(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),M}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},T=Symbol.for("react.portal"),R=lF.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),zN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,zN.createPortal=function(M,A){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(M,A,null,O)},zN.flushSync=function(M){var A=R.T,O=B.p;try{if(R.T=null,B.p=2,M)return M()}finally{R.T=A,B.p=O,B.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},zN.preconnect=function(M,A){typeof M==="string"&&M?A!=null&&typeof A!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",Y(A)):A!=null&&typeof A.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",H(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M)),typeof M==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,B.d.C(M,A))},zN.prefetchDNS=function(M){if(typeof M!=="string"||!M)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M));else if(1<arguments.length){var A=arguments[1];typeof A==="object"&&A.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A))}typeof M==="string"&&B.d.D(M)},zN.preinit=function(M,A){if(typeof M==="string"&&M?A==null||typeof A!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",Y(A)):A.as!=="style"&&A.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',Y(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M)),typeof M==="string"&&A&&typeof A.as==="string"){var O=A.as,P=K(O,A.crossOrigin),N=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;O==="style"?B.d.S(M,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:P,integrity:N,fetchPriority:V}):O==="script"&&B.d.X(M,{crossOrigin:P,integrity:N,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},zN.preinitModule=function(M,A){var O="";if(typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(O+=" The `as` option encountered was "+Y(A.as)+"."),O)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",O);else switch(O=A&&typeof A.as==="string"?A.as:"script",O){case"script":break;default:O=Y(O),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',O,M)}if(typeof M==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")O=K(A.as,A.crossOrigin),B.d.M(M,{crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&B.d.M(M)},zN.preload=function(M,A){var O="";if(typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A==null||typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',O),typeof M==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){O=A.as;var P=K(O,A.crossOrigin);B.d.L(M,O,{crossOrigin:P,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},zN.preloadModule=function(M,A){var O="";typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',O),typeof M==="string"&&(A?(O=K(A.as,A.crossOrigin),B.d.m(M,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0})):B.d.m(M))},zN.requestFormReset=function(M){B.d.r(M)},zN.unstable_batchedUpdates=function(M,A){return M(A)},zN.useFormState=function(M,A,O){return W().useFormState(M,A,O)},zN.useFormStatus=function(){return W().useHostTransitionStatus()},zN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var iF=p4((Zk,kA)=>{var WN=p0(yA());kA.exports=WN});var DA=p4((BN)=>{var W0=p0(VA()),J9=p0(G4()),dF=p0(iF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],X=Y2(_)?_.slice():U0({},_);return X[G]=U(_[G],J,$+1,q),X}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return K(_,J,$,0)}}function K(_,J,$,q){var G=J[q],X=Y2(_)?_.slice():U0({},_);return q+1===J.length?(X[$[q]]=X[G],Y2(X)?X.splice(G,1):delete X[G]):X[G]=K(_[G],J,$,q+1),X}function H(_,J,$){var q=J[$],G=Y2(_)?_.slice():U0({},_);if($+1===J.length)return Y2(G)?G.splice(q,1):delete G[q],G;return G[q]=H(_[q],J,$+1),G}function Y(){return!1}function W(){return null}function B(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function T(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function R(){}function M(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function O(_,J,$,q){return new rO(_,J,$,q)}function P(_,J){_.context===Z6&&(KZ(_.current,2,J,_,null,null),Y7())}function N(_,J){if(k5!==null){var $=J.staleFamilies;J=J.updatedFamilies,Q_(),bH(_.current,J,$),Y7()}}function V(_){k5=_}function j(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function f(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function u(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function C(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function v(_){if(f(_)!==_)throw Error("Unable to find node on an unmounted component.")}function D(_){var J=_.alternate;if(!J){if(J=f(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var G=$.return;if(G===null)break;var X=G.alternate;if(X===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===X.child){for(X=G.child;X;){if(X===$)return v(G),_;if(X===q)return v(G),J;X=X.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=X;else{for(var z=!1,L=G.child;L;){if(L===$){z=!0,$=G,q=X;break}if(L===q){z=!0,q=G,$=X;break}L=L.sibling}if(!z){for(L=X.child;L;){if(L===$){z=!0,$=X,q=G;break}if(L===q){z=!0,q=X,$=G;break}L=L.sibling}if(!z)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if($.alternate!==q)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function E(_){if(_===null||typeof _!=="object")return null;return _=cW&&_[cW]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Ww?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case T7:return"Fragment";case LZ:return"Profiler";case XQ:return"StrictMode";case MZ:return"Suspense";case TZ:return"SuspenseList";case RZ:return"Activity"}if(typeof _==="object")switch(typeof _.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case M7:return"Portal";case V4:return _.displayName||"Context";case AZ:return(_._context.displayName||"Context")+".Consumer";case z_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case KQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case L5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function k(_){return typeof _.tag==="number"?x(_):typeof _.name==="string"?_.name:null}function x(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return b(J);case 8:return J===XQ?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;break;case 29:if(J=_._debugInfo,J!=null){for(var $=J.length-1;0<=$;$--)if(typeof J[$].name==="string")return J[$].name}if(_.return!==null)return x(_.return)}return null}function $1(_){return{current:_}}function Q1(_,J){0>F3?console.error("Unexpected pop."):(J!==IZ[F3]&&console.error("Unexpected Fiber popped."),_.current=OZ[F3],OZ[F3]=null,IZ[F3]=null,F3--)}function J1(_,J,$){F3++,OZ[F3]=_.current,IZ[F3]=$,_.current=J}function m(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function p(_,J){J1(J6,J,_),J1(W_,_,_),J1(_6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?zW(J):I3:I3;break;default:if($=J.tagName,J=J.namespaceURI)J=zW(J),J=WW(J,$);else switch($){case"svg":J=e7;break;case"math":J=Fq;break;default:J=I3}}$=$.toLowerCase(),$=y9(null,$),$={context:J,ancestorInfo:$},Q1(_6,_),J1(_6,$,_)}function c(_){Q1(_6,_),Q1(W_,_),Q1(J6,_)}function a(){return m(_6.current)}function i(_){_.memoizedState!==null&&J1(HQ,_,_);var J=m(_6.current),$=_.type,q=WW(J.context,$);$=y9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(J1(W_,_,_),J1(_6,q,_))}function o(_){W_.current===_&&(Q1(_6,_),Q1(W_,_)),HQ.current===_&&(Q1(HQ,_),UJ._currentValue=P8)}function y(){}function g(){if(B_===0){lW=console.log,iW=console.info,dW=console.warn,rW=console.error,aW=console.group,sW=console.groupCollapsed,tW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:y,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}B_++}function q1(){if(B_--,B_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U0({},_,{value:lW}),info:U0({},_,{value:iW}),warn:U0({},_,{value:dW}),error:U0({},_,{value:rW}),group:U0({},_,{value:aW}),groupCollapsed:U0({},_,{value:sW}),groupEnd:U0({},_,{value:tW})})}0>B_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function t(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(_=_.slice(29)),J=_.indexOf(`
19
19
  `),J!==-1&&(_=_.slice(J+1)),J=_.indexOf("react_stack_bottom_frame"),J!==-1&&(J=_.lastIndexOf(`
20
- `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function W1(_){if(OZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);OZ=J&&J[1]||"",tW=-1<$.stack.indexOf(`
20
+ `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function W1(_){if(wZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);wZ=J&&J[1]||"",oW=-1<$.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+OZ+_+tW}function R1(_,J){if(!_||IZ)return"";var $=wZ.get(_);if($!==void 0)return $;IZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=H1.H,H1.H=null,p();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(f1){var Z1=f1}Reflect.construct(_,[],i)}else{try{i.call()}catch(f1){Z1=f1}_.call(i.prototype)}}else{try{throw Error()}catch(f1){Z1=f1}(i=_())&&typeof i.catch==="function"&&i.catch(function(){})}}catch(f1){if(f1&&Z1&&typeof f1.stack==="string")return[f1.stack,Z1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var K=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");K&&K.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),L=z[0],I=z[1];if(L&&I){var f=L.split(`
23
- `),n=I.split(`
24
- `);for(z=K=0;K<f.length&&!f[K].includes("DetermineComponentFrameRoot");)K++;for(;z<n.length&&!n[z].includes("DetermineComponentFrameRoot");)z++;if(K===f.length||z===n.length)for(K=f.length-1,z=n.length-1;1<=K&&0<=z&&f[K]!==n[z];)z--;for(;1<=K&&0<=z;K--,z--)if(f[K]!==n[z]){if(K!==1||z!==1)do if(K--,z--,0>z||f[K]!==n[z]){var _1=`
25
- `+f[K].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&wZ.set(_,_1),_1}while(1<=K&&0<=z);break}}}finally{IZ=!1,H1.H=q,q1(),Error.prepareStackTrace=$}return f=(f=_?_.displayName||_.name:"")?W1(f):"",typeof _==="function"&&wZ.set(_,f),f}function T1(_,J){switch(_.tag){case 26:case 27:case 5:return W1(_.type);case 16:return W1("Lazy");case 13:return _.child!==J&&J!==null?W1("Suspense Fallback"):W1("Suspense");case 19:return W1("SuspenseList");case 0:case 15:return R1(_.type,!1);case 11:return R1(_.type.render,!1);case 1:return R1(_.type,!0);case 31:return W1("Activity");default:return""}}function A1(_){try{var J="",$=null;do{J+=T1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var K=q[G];if(typeof K.name==="string"){var z=J;_:{var{name:L,env:I,debugLocation:f}=K;if(f!=null){var n=s(f),_1=n.lastIndexOf(`
26
- `),i=_1===-1?n:n.slice(_1+1);if(i.indexOf(L)!==-1){var Z1=`
27
- `+i;break _}}Z1=W1(L+(I?" ["+I+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(f1){return`
22
+ `+wZ+_+oW}function T1(_,J){if(!_||PZ)return"";var $=NZ.get(_);if($!==void 0)return $;PZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=Y1.H,Y1.H=null,g();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(f1){var Z1=f1}Reflect.construct(_,[],r)}else{try{r.call()}catch(f1){Z1=f1}_.call(r.prototype)}}else{try{throw Error()}catch(f1){Z1=f1}(r=_())&&typeof r.catch==="function"&&r.catch(function(){})}}catch(f1){if(f1&&Z1&&typeof f1.stack==="string")return[f1.stack,Z1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),L=z[0],w=z[1];if(L&&w){var S=L.split(`
23
+ `),e=w.split(`
24
+ `);for(z=X=0;X<S.length&&!S[X].includes("DetermineComponentFrameRoot");)X++;for(;z<e.length&&!e[z].includes("DetermineComponentFrameRoot");)z++;if(X===S.length||z===e.length)for(X=S.length-1,z=e.length-1;1<=X&&0<=z&&S[X]!==e[z];)z--;for(;1<=X&&0<=z;X--,z--)if(S[X]!==e[z]){if(X!==1||z!==1)do if(X--,z--,0>z||S[X]!==e[z]){var _1=`
25
+ `+S[X].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&NZ.set(_,_1),_1}while(1<=X&&0<=z);break}}}finally{PZ=!1,Y1.H=q,q1(),Error.prepareStackTrace=$}return S=(S=_?_.displayName||_.name:"")?W1(S):"",typeof _==="function"&&NZ.set(_,S),S}function O1(_,J){switch(_.tag){case 26:case 27:case 5:return W1(_.type);case 16:return W1("Lazy");case 13:return _.child!==J&&J!==null?W1("Suspense Fallback"):W1("Suspense");case 19:return W1("SuspenseList");case 0:case 15:return T1(_.type,!1);case 11:return T1(_.type.render,!1);case 1:return T1(_.type,!0);case 31:return W1("Activity");default:return""}}function B1(_){try{var J="",$=null;do{J+=O1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var X=q[G];if(typeof X.name==="string"){var z=J;_:{var{name:L,env:w,debugLocation:S}=X;if(S!=null){var e=t(S),_1=e.lastIndexOf(`
26
+ `),r=_1===-1?e:e.slice(_1+1);if(r.indexOf(L)!==-1){var Z1=`
27
+ `+r;break _}}Z1=W1(L+(w?" ["+w+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(f1){return`
28
28
  Error generating stack: `+f1.message+`
29
- `+f1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?W1(_):""}function w1(){if(z5===null)return null;var _=z5._debugOwner;return _!=null?E(_):null}function v1(){if(z5===null)return"";var _=z5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=W1(_.type);break;case 13:J+=W1("Suspense");break;case 19:J+=W1("SuspenseList");break;case 31:J+=W1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=U1(_.type));break;case 11:_._debugOwner||J!==""||(J+=U1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=s(q);G!==""&&(J+=`
30
- `+G)}}else if(_.debugStack!=null){var K=_.debugStack;(_=_.owner)&&K&&(J+=`
31
- `+s(K))}else break;var z=J}catch(L){z=`
29
+ `+f1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?W1(_):""}function P1(){if(A5===null)return null;var _=A5._debugOwner;return _!=null?k(_):null}function j1(){if(A5===null)return"";var _=A5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=W1(_.type);break;case 13:J+=W1("Suspense");break;case 19:J+=W1("SuspenseList");break;case 31:J+=W1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=U1(_.type));break;case 11:_._debugOwner||J!==""||(J+=U1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=t(q);G!==""&&(J+=`
30
+ `+G)}}else if(_.debugStack!=null){var X=_.debugStack;(_=_.owner)&&X&&(J+=`
31
+ `+t(X))}else break;var z=J}catch(L){z=`
32
32
  Error generating stack: `+L.message+`
33
- `+L.stack}return z}function M1(_,J,$,q,G,K,z){var L=z5;G1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,K,z)):J($,q,G,K,z)}finally{G1(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function G1(_){H1.getCurrentStack=_===null?null:v1,P4=!1,z5=_}function B1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function I1(_){try{return C1(_),!1}catch(J){return!0}}function C1(_){return""+_}function K1(_,J){if(I1(_))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",J,B1(_)),C1(_)}function u1(_,J){if(I1(_))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",J,B1(_)),C1(_)}function N1(_){if(I1(_))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",B1(_)),C1(_)}function Q0(_){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(J.isDisabled)return!0;if(!J.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{L7=J.inject(_),S2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function b1(_){if(typeof Lw==="function"&&Aw(_),S2&&typeof S2.setStrictMode==="function")try{S2.setStrictMode(L7,_)}catch(J){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",J))}}function a0(_){return _>>>=0,_===0?32:31-(Mw(_)/Tw|0)|0}function q2(_){var J=_&42;if(J!==0)return J;switch(_&-_){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 _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),_}}function O0(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,K=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var L=q&134217727;return L!==0?(q=L&~K,q!==0?G=q2(q):(z&=L,z!==0?G=q2(z):$||($=L&~_,$!==0&&(G=q2($))))):(L=q&~K,L!==0?G=q2(L):z!==0?G=q2(z):$||($=q&~_,$!==0&&(G=q2($)))),G===0?0:J!==0&&J!==G&&(J&K)===0&&(K=G&-G,$=J&-J,K>=$||K===32&&($&4194048)!==0)?J:G}function D2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function u2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+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 J+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function P2(){var _=YQ;return YQ<<=1,(YQ&62914560)===0&&(YQ=4194304),_}function N2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function C2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function C3(_,J,$,q,G,K){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:L,expirationTimes:I,hiddenUpdates:f}=_;for($=z&~$;0<$;){var n=31-x2($),_1=1<<n;L[n]=0,I[n]=-1;var i=f[n];if(i!==null)for(f[n]=null,n=0;n<i.length;n++){var Z1=i[n];Z1!==null&&(Z1.lane&=-536870913)}$&=~_1}q!==0&&x5(_,q,0),K!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=K&~(z&~J))}function x5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-x2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function g4(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-x2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function p4(_,J){var $=J&-J;return $=($&42)!==0?1:c4($),($&(_.suspendedLanes|J))!==0?0:$}function c4(_){switch(_){case 2:_=1;break;case 8:_=4;break;case 32:_=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:_=128;break;case 268435456:_=134217728;break;default:_=0}return _}function y6(_,J,$){if(C4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-x2($),G=1<<q;_[q].add(J),$&=~G}}function q4(_,J){if(C4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-x2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(K){var z=K.alternate;z!==null&&q.has(z)||q.add(K)}),G.clear()),J&=~_}}function j(_){return _&=-_,W5!==0&&W5<_?d5!==0&&d5<_?(_&134217727)!==0?f4:zQ:d5:W5}function $1(){var _=L0.p;if(_!==0)return _;return _=window.event,_===void 0?f4:uW(_.type)}function P1(_,J){var $=L0.p;try{return L0.p=_,J()}finally{L0.p=$}}function S1(_){delete _[O2],delete _[m2],delete _[SZ],delete _[Rw],delete _[Ow]}function y1(_){var J=_[O2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[r3]||$[O2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=OW(_);_!==null;){if($=_[O2])return $;_=OW(_)}return J}_=$,$=_.parentNode}return null}function l1(_){if(_=_[O2]||_[r3]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function d1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function K0(_){var J=_[oW];return J||(J=_[oW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function E1(_){_[H_]=!0}function H2(_,J){b2(_,J),b2(_+"Capture",J)}function b2(_,J){t6[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),t6[_]=J;var $=_.toLowerCase();jZ[$]=_,_==="onDoubleClick"&&(jZ.ondblclick=_);for(_=0;_<J.length;_++)nW.add(J[_])}function U4(_,J){Iw[J.type]||J.onChange||J.onInput||J.readOnly||J.disabled||J.value==null||(_==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),J.onChange||J.readOnly||J.disabled||J.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function k6(_){if(l5.call(_B,_))return!0;if(l5.call(eW,_))return!1;if(ww.test(_))return _B[_]=!0;return eW[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function pJ(_,J,$){if(k6(J)){if(!_.hasAttribute(J)){switch(typeof $){case"symbol":case"object":return $;case"function":return $;case"boolean":if($===!1)return $}return $===void 0?void 0:null}if(_=_.getAttribute(J),_===""&&$===!0)return!0;return K1($,J),_===""+$?$:_}}function i8(_,J,$){if(k6(J))if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":_.removeAttribute(J);return;case"boolean":var q=J.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){_.removeAttribute(J);return}}K1($,J),_.setAttribute(J,""+$)}}function r8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}K1($,J),_.setAttribute(J,""+$)}}function m5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}K1(q,$),_.setAttributeNS(J,$,""+q)}}function s2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return N1(_),_;default:return""}}function cJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function zU(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:G,set:K}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){N1(z),$=""+z,K.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){N1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function R9(_){if(!_._valueTracker){var J=cJ(_)?"checked":"value";_._valueTracker=zU(_,J,""+_[J])}}function lJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=cJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function a8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function t2(_){return _.replace(Pw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function dJ(_,J){J.checked===void 0||J.defaultChecked===void 0||$B||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",w1()||"A component",J.type),$B=!0),J.value===void 0||J.defaultValue===void 0||JB||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",w1()||"A component",J.type),JB=!0)}function s8(_,J,$,q,G,K,z,L){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(K1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+s2(J)}else _.value!==""+s2(J)&&(_.value=""+s2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?t8(_,z,s2(J)):$!=null?t8(_,z,s2($)):q!=null&&_.removeAttribute("value"),G==null&&K!=null&&(_.defaultChecked=!!K),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),L!=null&&typeof L!=="function"&&typeof L!=="symbol"&&typeof L!=="boolean"?(K1(L,"name"),_.name=""+s2(L)):_.removeAttribute("name")}function O9(_,J,$,q,G,K,z,L){if(K!=null&&typeof K!=="function"&&typeof K!=="symbol"&&typeof K!=="boolean"&&(K1(K,"type"),_.type=K),J!=null||$!=null){if(!(K!=="submit"&&K!=="reset"||J!==void 0&&J!==null)){R9(_);return}$=$!=null?""+s2($):"",J=J!=null?""+s2(J):$,L||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=L?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(K1(z,"name"),_.name=z),R9(_)}function t8(_,J,$){J==="number"&&a8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function iJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?t7.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||qB||(qB=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):J.dangerouslySetInnerHTML==null||UB||(UB=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||QB||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),QB=!0)}function rJ(){var _=w1();return _?`
33
+ `+L.stack}return z}function A1(_,J,$,q,G,X,z){var L=A5;k1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,X,z)):J($,q,G,X,z)}finally{k1(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function k1(_){Y1.getCurrentStack=_===null?null:j1,y4=!1,A5=_}function D1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function g1(_){try{return h1(_),!1}catch(J){return!0}}function h1(_){return""+_}function M1(_,J){if(g1(_))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",J,D1(_)),h1(_)}function r1(_,J){if(g1(_))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",J,D1(_)),h1(_)}function u1(_){if(g1(_))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",D1(_)),h1(_)}function D0(_){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(J.isDisabled)return!0;if(!J.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{O7=J.inject(_),D2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function o1(_){if(typeof Ow==="function"&&Iw(_),D2&&typeof D2.setStrictMode==="function")try{D2.setStrictMode(O7,_)}catch(J){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",J))}}function X2(_){return _>>>=0,_===0?32:31-(ww(_)/Pw|0)|0}function K2(_){var J=_&42;if(J!==0)return J;switch(_&-_){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 _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),_}}function N2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,X=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var L=q&134217727;return L!==0?(q=L&~X,q!==0?G=K2(q):(z&=L,z!==0?G=K2(z):$||($=L&~_,$!==0&&(G=K2($))))):(L=q&~X,L!==0?G=K2(L):z!==0?G=K2(z):$||($=q&~_,$!==0&&(G=K2($)))),G===0?0:J!==0&&J!==G&&(J&X)===0&&(X=G&-G,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:G}function A2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function C2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+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 J+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function M2(){var _=WQ;return WQ<<=1,(WQ&62914560)===0&&(WQ=4194304),_}function H2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function _2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function z4(_,J,$,q,G,X){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:L,expirationTimes:w,hiddenUpdates:S}=_;for($=z&~$;0<$;){var e=31-c2($),_1=1<<e;L[e]=0,w[e]=-1;var r=S[e];if(r!==null)for(S[e]=null,e=0;e<r.length;e++){var Z1=r[e];Z1!==null&&(Z1.lane&=-536870913)}$&=~_1}q!==0&&m2(_,q,0),X!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=X&~(z&~J))}function m2(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-c2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function f5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-c2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function S5(_,J){var $=J&-J;return $=($&42)!==0?1:r5($),($&(_.suspendedLanes|J))!==0?0:$}function r5(_){switch(_){case 2:_=1;break;case 8:_=4;break;case 32:_=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:_=128;break;case 268435456:_=134217728;break;default:_=0}return _}function o4(_,J,$){if(D4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-c2($),G=1<<q;_[q].add(J),$&=~G}}function G1(_,J){if(D4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-c2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(X){var z=X.alternate;z!==null&&q.has(z)||q.add(X)}),G.clear()),J&=~_}}function I(_){return _&=-_,M5!==0&&M5<_?e5!==0&&e5<_?(_&134217727)!==0?u4:BQ:e5:M5}function l(){var _=A0.p;if(_!==0)return _;return _=window.event,_===void 0?u4:bW(_.type)}function F1(_,J){var $=A0.p;try{return A0.p=_,J()}finally{A0.p=$}}function I1(_){delete _[v2],delete _[l2],delete _[vZ],delete _[Nw],delete _[Cw]}function R1(_){var J=_[v2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[Q6]||$[v2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=IW(_);_!==null;){if($=_[v2])return $;_=IW(_)}return J}_=$,$=_.parentNode}return null}function N1(_){if(_=_[v2]||_[Q6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function C1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function y1(_){var J=_[nW];return J||(J=_[nW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function v1(_){_[L_]=!0}function p1(_,J){S0(_,J),S0(_+"Capture",J)}function S0(_,J){$8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),$8[_]=J;var $=_.toLowerCase();VZ[$]=_,_==="onDoubleClick"&&(VZ.ondblclick=_);for(_=0;_<J.length;_++)eW.add(J[_])}function w0(_,J){fw[J.type]||J.onChange||J.onInput||J.readOnly||J.disabled||J.value==null||(_==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),J.onChange||J.readOnly||J.disabled||J.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function n4(_){if(n5.call(JB,_))return!0;if(n5.call(_B,_))return!1;if(Sw.test(_))return JB[_]=!0;return _B[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function j5(_,J,$){if(n4(J)){if(!_.hasAttribute(J)){switch(typeof $){case"symbol":case"object":return $;case"function":return $;case"boolean":if($===!1)return $}return $===void 0?void 0:null}if(_=_.getAttribute(J),_===""&&$===!0)return!0;return M1($,J),_===""+$?$:_}}function T0(_,J,$){if(n4(J))if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":_.removeAttribute(J);return;case"boolean":var q=J.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){_.removeAttribute(J);return}}M1($,J),_.setAttribute(J,""+$)}}function n8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}M1($,J),_.setAttribute(J,""+$)}}function a5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}M1(q,$),_.setAttributeNS(J,$,""+q)}}function e2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return u1(_),_;default:return""}}function iJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function BU(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:G,set:X}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){u1(z),$=""+z,X.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){u1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function N9(_){if(!_._valueTracker){var J=iJ(_)?"checked":"value";_._valueTracker=BU(_,J,""+_[J])}}function dJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=iJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function e8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function _5(_){return _.replace(jw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function rJ(_,J){J.checked===void 0||J.defaultChecked===void 0||QB||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",P1()||"A component",J.type),QB=!0),J.value===void 0||J.defaultValue===void 0||$B||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",P1()||"A component",J.type),$B=!0)}function _7(_,J,$,q,G,X,z,L){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(M1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+e2(J)}else _.value!==""+e2(J)&&(_.value=""+e2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?J7(_,z,e2(J)):$!=null?J7(_,z,e2($)):q!=null&&_.removeAttribute("value"),G==null&&X!=null&&(_.defaultChecked=!!X),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),L!=null&&typeof L!=="function"&&typeof L!=="symbol"&&typeof L!=="boolean"?(M1(L,"name"),_.name=""+e2(L)):_.removeAttribute("name")}function C9(_,J,$,q,G,X,z,L){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(M1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){N9(_);return}$=$!=null?""+e2($):"",J=J!=null?""+e2(J):$,L||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=L?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(M1(z,"name"),_.name=z),N9(_)}function J7(_,J,$){J==="number"&&e8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function aJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?J9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||UB||(UB=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):J.dangerouslySetInnerHTML==null||GB||(GB=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||qB||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),qB=!0)}function sJ(){var _=P1();return _?`
34
34
 
35
- Check the render method of \``+_+"`.":""}function f3(_,J,$,q){if(_=_.options,J){J={};for(var G=0;G<$.length;G++)J["$"+$[G]]=!0;for($=0;$<_.length;$++)G=J.hasOwnProperty("$"+_[$].value),_[$].selected!==G&&(_[$].selected=G),G&&q&&(_[$].defaultSelected=!0)}else{$=""+s2($),J=null;for(G=0;G<_.length;G++){if(_[G].value===$){_[G].selected=!0,q&&(_[G].defaultSelected=!0);return}J!==null||_[G].disabled||(J=_[G])}J!==null&&(J.selected=!0)}}function aJ(_,J){for(_=0;_<ZB.length;_++){var $=ZB[_];if(J[$]!=null){var q=U2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,rJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,rJ())}}J.value===void 0||J.defaultValue===void 0||GB||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),GB=!0)}function sJ(_,J){J.value===void 0||J.defaultValue===void 0||FB||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",w1()||"A component"),FB=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function tJ(_,J,$){if(J!=null&&(J=""+s2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+s2($):""}function I9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(U2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=s2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),R9(_)}function oJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?oJ(_.children[0],J):_}function E2(_){return" "+" ".repeat(_)}function S3(_){return"+ "+" ".repeat(_)}function l4(_){return"- "+" ".repeat(_)}function nJ(_){switch(_.tag){case 26:case 27:case 5:return _.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return _=_.type,_.displayName||_.name||null;case 11:return _=_.type.render,_.displayName||_.name||null;case 1:return _=_.type,_.displayName||_.name||null;default:return null}}function D6(_,J){return KB.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function o8(_,J,$){var q=120-2*$;if(J===null)return S3($)+D6(_,q)+`
36
- `;if(typeof J==="string"){for(var G=0;G<J.length&&G<_.length&&J.charCodeAt(G)===_.charCodeAt(G);G++);return G>q-8&&10<G&&(_="..."+_.slice(G-8),J="..."+J.slice(G-8)),S3($)+D6(_,q)+`
37
- `+l4($)+D6(J,q)+`
38
- `}return E2($)+D6(_,q)+`
39
- `}function w9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function j3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(U2(_))return"[...]";if(_.$$typeof===I4)return(J=b(_.type))?"<"+J+">":"<...>";var $=w9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var G=JSON.stringify(q);if(G!=='"'+q+'"'&&(q=G),J-=q.length-2,G=j3(_[q],15>J?J:15),J-=G.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+G}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function v3(_,J){return typeof _!=="string"||KB.test(_)?"{"+j3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function P9(_,J,$){var q=120-$.length-_.length,G=[],K;for(K in J)if(J.hasOwnProperty(K)&&K!=="children"){var z=v3(J[K],120-$.length-K.length-1);q-=K.length+z.length+2,G.push(K+"="+z)}return G.length===0?$+"<"+_+`>
35
+ Check the render method of \``+_+"`.":""}function E3(_,J,$,q){if(_=_.options,J){J={};for(var G=0;G<$.length;G++)J["$"+$[G]]=!0;for($=0;$<_.length;$++)G=J.hasOwnProperty("$"+_[$].value),_[$].selected!==G&&(_[$].selected=G),G&&q&&(_[$].defaultSelected=!0)}else{$=""+e2($),J=null;for(G=0;G<_.length;G++){if(_[G].value===$){_[G].selected=!0,q&&(_[G].defaultSelected=!0);return}J!==null||_[G].disabled||(J=_[G])}J!==null&&(J.selected=!0)}}function tJ(_,J){for(_=0;_<FB.length;_++){var $=FB[_];if(J[$]!=null){var q=Y2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,sJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,sJ())}}J.value===void 0||J.defaultValue===void 0||ZB||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ZB=!0)}function oJ(_,J){J.value===void 0||J.defaultValue===void 0||XB||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",P1()||"A component"),XB=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function nJ(_,J,$){if(J!=null&&(J=""+e2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+e2($):""}function f9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Y2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=e2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),N9(_)}function eJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?eJ(_.children[0],J):_}function g2(_){return" "+" ".repeat(_)}function h3(_){return"+ "+" ".repeat(_)}function e4(_){return"- "+" ".repeat(_)}function _$(_){switch(_.tag){case 26:case 27:case 5:return _.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return _=_.type,_.displayName||_.name||null;case 11:return _=_.type.render,_.displayName||_.name||null;case 1:return _=_.type,_.displayName||_.name||null;default:return null}}function m6(_,J){return KB.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function $7(_,J,$){var q=120-2*$;if(J===null)return h3($)+m6(_,q)+`
36
+ `;if(typeof J==="string"){for(var G=0;G<J.length&&G<_.length&&J.charCodeAt(G)===_.charCodeAt(G);G++);return G>q-8&&10<G&&(_="..."+_.slice(G-8),J="..."+J.slice(G-8)),h3($)+m6(_,q)+`
37
+ `+e4($)+m6(J,q)+`
38
+ `}return g2($)+m6(_,q)+`
39
+ `}function S9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function x3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(Y2(_))return"[...]";if(_.$$typeof===v4)return(J=b(_.type))?"<"+J+">":"<...>";var $=S9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var G=JSON.stringify(q);if(G!=='"'+q+'"'&&(q=G),J-=q.length-2,G=x3(_[q],15>J?J:15),J-=G.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+G}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function m3(_,J){return typeof _!=="string"||KB.test(_)?"{"+x3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function j9(_,J,$){var q=120-$.length-_.length,G=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var z=m3(J[X],120-$.length-X.length-1);q-=X.length+z.length+2,G.push(X+"="+z)}return G.length===0?$+"<"+_+`>
40
40
  `:0<q?$+"<"+_+" "+G.join(" ")+`>
41
41
  `:$+"<"+_+`
42
42
  `+$+" "+G.join(`
43
43
  `+$+" ")+`
44
44
  `+$+`>
45
- `}function WU(_,J,$){var q="",G=J0({},J),K;for(K in _)if(_.hasOwnProperty(K)){delete G[K];var z=120-2*$-K.length-2,L=j3(_[K],z);J.hasOwnProperty(K)?(z=j3(J[K],z),q+=S3($)+K+": "+L+`
46
- `,q+=l4($)+K+": "+z+`
47
- `):q+=S3($)+K+": "+L+`
48
- `}for(var I in G)G.hasOwnProperty(I)&&(_=j3(G[I],120-2*$-I.length-2),q+=l4($)+I+": "+_+`
49
- `);return q}function BU(_,J,$,q){var G="",K=new Map;for(f in $)$.hasOwnProperty(f)&&K.set(f.toLowerCase(),f);if(K.size===1&&K.has("children"))G+=P9(_,J,E2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var L=120-2*(q+1)-z.length-1,I=K.get(z.toLowerCase());if(I!==void 0){K.delete(z.toLowerCase());var f=J[z];I=$[I];var n=v3(f,L);L=v3(I,L),typeof f==="object"&&f!==null&&typeof I==="object"&&I!==null&&w9(f)==="Object"&&w9(I)==="Object"&&(2<Object.keys(f).length||2<Object.keys(I).length||-1<n.indexOf("...")||-1<L.indexOf("..."))?G+=E2(q+1)+z+`={{
50
- `+WU(f,I,q+2)+E2(q+1)+`}}
51
- `:(G+=S3(q+1)+z+"="+n+`
52
- `,G+=l4(q+1)+z+"="+L+`
53
- `)}else G+=E2(q+1)+z+"="+v3(J[z],L)+`
54
- `}K.forEach(function(_1){if(_1!=="children"){var i=120-2*(q+1)-_1.length-1;G+=l4(q+1)+_1+"="+v3($[_1],i)+`
55
- `}}),G=G===""?E2(q)+"<"+_+`>
56
- `:E2(q)+"<"+_+`
57
- `+G+E2(q)+`>
58
- `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(K="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")K=""+J;G+=o8(K,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+o8(""+J,null,q+1):G+o8(""+J,void 0,q+1);return G}function eJ(_,J){var $=nJ(_);if($===null){$="";for(_=_.child;_;)$+=eJ(_,J),_=_.sibling;return $}return E2(J)+"<"+$+`>
59
- `}function N9(_,J){var $=oJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return E2(J)+`...
60
- `+N9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var K=q[G].name;typeof K==="string"&&($+=E2(J)+"<"+K+`>
61
- `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=o8(G,_.serverProps,J),J++;else if(K=nJ(_.fiber),K!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-K.length-2,L="";for(f in G)if(G.hasOwnProperty(f)&&f!=="children"){var I=v3(G[f],15);if(z-=f.length+I.length+2,0>z){L+=" ...";break}L+=" "+f+"="+I}q=E2(q)+"<"+K+L+`>
62
- `,J++}else _.serverProps===null?(q=P9(K,G,S3(J)),J++):typeof _.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(q=BU(K,G,_.serverProps,J),J++);var f="";G=_.fiber.child;for(K=0;G&&K<_.children.length;)z=_.children[K],z.fiber===G?(f+=N9(z,J),K++):f+=eJ(G,J),G=G.sibling;G&&0<_.children.length&&(f+=E2(J)+`...
63
- `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)K=G[_],f=typeof K==="string"?f+(l4(J)+D6(K,120-2*J)+`
64
- `):f+P9(K.type,K.props,l4(J));return $+q+f}function C9(_){try{return`
65
-
66
- `+N9(_,0)}catch(J){return""}}function _$(_,J,$){for(var q=J,G=null,K=0;q;)q===_&&(K=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:K},K++,q=q.return;return G!==null?C9(G).replaceAll(/^[+-]/gm,">"):""}function f9(_,J){var $=J0({},_||HB),q={tag:J};if(XB.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Cw.indexOf(J)!==-1&&($.pTagInButtonScope=null),Nw.indexOf(J)!==-1&&J!=="address"&&J!=="div"&&J!=="p"&&($.listItemTagAutoclosing=null,$.dlItemTagAutoclosing=null),$.current=q,J==="form"&&($.formTag=q),J==="a"&&($.aTagInScope=q),J==="button"&&($.buttonTagInScope=q),J==="nobr"&&($.nobrTagInScope=q),J==="p"&&($.pTagInButtonScope=q),J==="li"&&($.listItemTagAutoclosing=q),J==="dd"||J==="dt")$.dlItemTagAutoclosing=q;return J==="#document"||J==="html"?$.containerTagInScope=null:$.containerTagInScope||($.containerTagInScope=q),_!==null||J!=="#document"&&J!=="html"&&J!=="body"?$.implicitRootScope===!0&&($.implicitRootScope=!1):$.implicitRootScope=!0,$}function J$(_,J,$){switch(J){case"select":return _==="hr"||_==="option"||_==="optgroup"||_==="script"||_==="template"||_==="#text";case"optgroup":return _==="option"||_==="#text";case"option":return _==="#text";case"tr":return _==="th"||_==="td"||_==="style"||_==="script"||_==="template";case"tbody":case"thead":case"tfoot":return _==="tr"||_==="style"||_==="script"||_==="template";case"colgroup":return _==="col"||_==="template";case"table":return _==="caption"||_==="colgroup"||_==="tbody"||_==="tfoot"||_==="thead"||_==="style"||_==="script"||_==="template";case"head":return _==="base"||_==="basefont"||_==="bgsound"||_==="link"||_==="meta"||_==="title"||_==="noscript"||_==="noframes"||_==="style"||_==="script"||_==="template";case"html":if($)break;return _==="head"||_==="body"||_==="frameset";case"frameset":return _==="frame";case"#document":if(!$)return _==="html"}switch(_){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J!=="h1"&&J!=="h2"&&J!=="h3"&&J!=="h4"&&J!=="h5"&&J!=="h6";case"rp":case"rt":return fw.indexOf(J)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return J==null;case"head":return $||J===null;case"html":return $&&J==="#document"||J===null;case"body":return $&&(J==="#document"||J==="html")||J===null}return!0}function $$(_,J){switch(_){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J.pTagInButtonScope;case"form":return J.formTag||J.pTagInButtonScope;case"li":return J.listItemTagAutoclosing;case"dd":case"dt":return J.dlItemTagAutoclosing;case"button":return J.buttonTagInScope;case"a":return J.aTagInScope;case"nobr":return J.nobrTagInScope}return null}function Q$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function S9(_,J){J=J||HB;var $=J.current;if(J=($=J$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:$$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,WQ[J])return!1;WQ[J]=!0;var G=(J=z5)?Q$(J.return,q):null,K=J!==null&&G!==null?_$(G,J,null):"",z="<"+_+">";return $?($="",q==="table"&&_==="tr"&&($+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
- This will cause a hydration error.%s`,z,q,$,K)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,z,q,K),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||M1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,q,z)})),!1}function V3(_,J,$){if($||J$("#text",J,!1))return!0;if($="#text|"+J,WQ[$])return!1;WQ[$]=!0;var q=($=z5)?Q$($,J):null;return $=$!==null&&q!==null?_$(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
45
+ `}function LU(_,J,$){var q="",G=U0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete G[X];var z=120-2*$-X.length-2,L=x3(_[X],z);J.hasOwnProperty(X)?(z=x3(J[X],z),q+=h3($)+X+": "+L+`
46
+ `,q+=e4($)+X+": "+z+`
47
+ `):q+=h3($)+X+": "+L+`
48
+ `}for(var w in G)G.hasOwnProperty(w)&&(_=x3(G[w],120-2*$-w.length-2),q+=e4($)+w+": "+_+`
49
+ `);return q}function AU(_,J,$,q){var G="",X=new Map;for(S in $)$.hasOwnProperty(S)&&X.set(S.toLowerCase(),S);if(X.size===1&&X.has("children"))G+=j9(_,J,g2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var L=120-2*(q+1)-z.length-1,w=X.get(z.toLowerCase());if(w!==void 0){X.delete(z.toLowerCase());var S=J[z];w=$[w];var e=m3(S,L);L=m3(w,L),typeof S==="object"&&S!==null&&typeof w==="object"&&w!==null&&S9(S)==="Object"&&S9(w)==="Object"&&(2<Object.keys(S).length||2<Object.keys(w).length||-1<e.indexOf("...")||-1<L.indexOf("..."))?G+=g2(q+1)+z+`={{
50
+ `+LU(S,w,q+2)+g2(q+1)+`}}
51
+ `:(G+=h3(q+1)+z+"="+e+`
52
+ `,G+=e4(q+1)+z+"="+L+`
53
+ `)}else G+=g2(q+1)+z+"="+m3(J[z],L)+`
54
+ `}X.forEach(function(_1){if(_1!=="children"){var r=120-2*(q+1)-_1.length-1;G+=e4(q+1)+_1+"="+m3($[_1],r)+`
55
+ `}}),G=G===""?g2(q)+"<"+_+`>
56
+ `:g2(q)+"<"+_+`
57
+ `+G+g2(q)+`>
58
+ `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(X="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")X=""+J;G+=$7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+$7(""+J,null,q+1):G+$7(""+J,void 0,q+1);return G}function J$(_,J){var $=_$(_);if($===null){$="";for(_=_.child;_;)$+=J$(_,J),_=_.sibling;return $}return g2(J)+"<"+$+`>
59
+ `}function v9(_,J){var $=eJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return g2(J)+`...
60
+ `+v9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var X=q[G].name;typeof X==="string"&&($+=g2(J)+"<"+X+`>
61
+ `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=$7(G,_.serverProps,J),J++;else if(X=_$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-X.length-2,L="";for(S in G)if(G.hasOwnProperty(S)&&S!=="children"){var w=m3(G[S],15);if(z-=S.length+w.length+2,0>z){L+=" ...";break}L+=" "+S+"="+w}q=g2(q)+"<"+X+L+`>
62
+ `,J++}else _.serverProps===null?(q=j9(X,G,h3(J)),J++):typeof _.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(q=AU(X,G,_.serverProps,J),J++);var S="";G=_.fiber.child;for(X=0;G&&X<_.children.length;)z=_.children[X],z.fiber===G?(S+=v9(z,J),X++):S+=J$(G,J),G=G.sibling;G&&0<_.children.length&&(S+=g2(J)+`...
63
+ `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)X=G[_],S=typeof X==="string"?S+(e4(J)+m6(X,120-2*J)+`
64
+ `):S+j9(X.type,X.props,e4(J));return $+q+S}function V9(_){try{return`
65
+
66
+ `+v9(_,0)}catch(J){return""}}function $$(_,J,$){for(var q=J,G=null,X=0;q;)q===_&&(X=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:X},X++,q=q.return;return G!==null?V9(G).replaceAll(/^[+-]/gm,">"):""}function y9(_,J){var $=U0({},_||YB),q={tag:J};if(HB.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Vw.indexOf(J)!==-1&&($.pTagInButtonScope=null),vw.indexOf(J)!==-1&&J!=="address"&&J!=="div"&&J!=="p"&&($.listItemTagAutoclosing=null,$.dlItemTagAutoclosing=null),$.current=q,J==="form"&&($.formTag=q),J==="a"&&($.aTagInScope=q),J==="button"&&($.buttonTagInScope=q),J==="nobr"&&($.nobrTagInScope=q),J==="p"&&($.pTagInButtonScope=q),J==="li"&&($.listItemTagAutoclosing=q),J==="dd"||J==="dt")$.dlItemTagAutoclosing=q;return J==="#document"||J==="html"?$.containerTagInScope=null:$.containerTagInScope||($.containerTagInScope=q),_!==null||J!=="#document"&&J!=="html"&&J!=="body"?$.implicitRootScope===!0&&($.implicitRootScope=!1):$.implicitRootScope=!0,$}function Q$(_,J,$){switch(J){case"select":return _==="hr"||_==="option"||_==="optgroup"||_==="script"||_==="template"||_==="#text";case"optgroup":return _==="option"||_==="#text";case"option":return _==="#text";case"tr":return _==="th"||_==="td"||_==="style"||_==="script"||_==="template";case"tbody":case"thead":case"tfoot":return _==="tr"||_==="style"||_==="script"||_==="template";case"colgroup":return _==="col"||_==="template";case"table":return _==="caption"||_==="colgroup"||_==="tbody"||_==="tfoot"||_==="thead"||_==="style"||_==="script"||_==="template";case"head":return _==="base"||_==="basefont"||_==="bgsound"||_==="link"||_==="meta"||_==="title"||_==="noscript"||_==="noframes"||_==="style"||_==="script"||_==="template";case"html":if($)break;return _==="head"||_==="body"||_==="frameset";case"frameset":return _==="frame";case"#document":if(!$)return _==="html"}switch(_){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J!=="h1"&&J!=="h2"&&J!=="h3"&&J!=="h4"&&J!=="h5"&&J!=="h6";case"rp":case"rt":return yw.indexOf(J)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return J==null;case"head":return $||J===null;case"html":return $&&J==="#document"||J===null;case"body":return $&&(J==="#document"||J==="html")||J===null}return!0}function q$(_,J){switch(_){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J.pTagInButtonScope;case"form":return J.formTag||J.pTagInButtonScope;case"li":return J.listItemTagAutoclosing;case"dd":case"dt":return J.dlItemTagAutoclosing;case"button":return J.buttonTagInScope;case"a":return J.aTagInScope;case"nobr":return J.nobrTagInScope}return null}function U$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function k9(_,J){J=J||YB;var $=J.current;if(J=($=Q$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:q$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,LQ[J])return!1;LQ[J]=!0;var G=(J=A5)?U$(J.return,q):null,X=J!==null&&G!==null?$$(G,J,null):"",z="<"+_+">";return $?($="",q==="table"&&_==="tr"&&($+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
+ This will cause a hydration error.%s`,z,q,$,X)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,z,q,X),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||A1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,q,z)})),!1}function g3(_,J,$){if($||Q$("#text",J,!1))return!0;if($="#text|"+J,LQ[$])return!1;LQ[$]=!0;var q=($=A5)?U$($,J):null;return $=$!==null&&q!==null?$$(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
70
  This will cause a hydration error.%s`,J,$):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,J,$),!1}function u6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function LU(_){return _.replace(vw,function(J,$){return $.toUpperCase()})}function j9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?A7.hasOwnProperty(J)&&A7[J]||(A7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,LU(J.replace(jw,"ms-")))):Sw.test(J)?A7.hasOwnProperty(J)&&A7[J]||(A7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!WB.test($)||VZ.hasOwnProperty($)&&VZ[$]||(VZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(WB,""))),typeof $==="number"&&(isNaN($)?BB||(BB=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||LB||(LB=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",J)))),$==null||typeof $==="boolean"||$===""?q?_.setProperty(J,""):J==="float"?_.cssFloat="":_[J]="":q?_.setProperty(J,$):typeof $!=="number"||$===0||AB.has(J)?J==="float"?_.cssFloat=$:(u1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function XH(_,J,$){if(J!=null&&typeof J!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(J&&Object.freeze(J),_=_.style,$!=null){if(J){var q={};if($){for(var G in $)if($.hasOwnProperty(G)&&!J.hasOwnProperty(G))for(var K=vZ[G]||[G],z=0;z<K.length;z++)q[K[z]]=G}for(var L in J)if(J.hasOwnProperty(L)&&(!$||$[L]!==J[L]))for(G=vZ[L]||[L],K=0;K<G.length;K++)q[G[K]]=L;L={};for(var I in J)for(G=vZ[I]||[I],K=0;K<G.length;K++)L[G[K]]=I;I={};for(var f in q)if(G=q[f],(K=L[f])&&G!==K&&(z=G+","+K,!I[z])){I[z]=!0,z=console;var n=J[G];z.error.call(z,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",n==null||typeof n==="boolean"||n===""?"Removing":"Updating",G,K)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var i in J)f=J[i],J.hasOwnProperty(i)&&$[i]!==f&&j9(_,i,f)}else for(q in J)J.hasOwnProperty(q)&&j9(_,q,J[q])}function v9(_){if(_.indexOf("-")===-1)return!1;switch(_){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}}function HH(_){return Vw.get(_)||_}function PO(_,J){if(l5.call(T7,J)&&T7[J])return!0;if(kw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=MB.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),T7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),T7[J]=!0}if(yw.test(J)){if(_=J.toLowerCase(),_=MB.hasOwnProperty(_)?_:null,_==null)return T7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),T7[J]=!0)}return!0}function NO(_,J){var $=[],q;for(q in J)PO(_,q)||$.push(q);J=$.map(function(G){return"`"+G+"`"}).join(", "),$.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_):1<$.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_)}function CO(_,J,$,q){if(l5.call(g2,J)&&g2[J])return!0;var G=J.toLowerCase();if(G==="onfocusin"||G==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),g2[J]=!0;if(typeof $==="function"&&(_==="form"&&J==="action"||_==="input"&&J==="formAction"||_==="button"&&J==="formAction"))return!0;if(q!=null){if(_=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(J))return!0;if(q=_.hasOwnProperty(G)?_[G]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),g2[J]=!0;if(RB.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),g2[J]=!0}else if(RB.test(J))return Dw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),g2[J]=!0;if(uw.test(J)||bw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),g2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),g2[J]=!0;if(G==="is"&&$!==null&&$!==void 0&&typeof $!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof $),g2[J]=!0;if(typeof $==="number"&&isNaN($))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",J),g2[J]=!0;if(LQ.hasOwnProperty(G)){if(G=LQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),g2[J]=!0}else if(J!==G)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",J,G),g2[J]=!0;switch(J){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof $){case"boolean":switch(J){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(G=J.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return $?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',$,J,J,$,J):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',$,J,J,$,J,J,J),g2[J]=!0}case"function":case"symbol":return g2[J]=!0,!1;case"string":if($==="false"||$==="true"){switch(J){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",$,J,$==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',J,$),g2[J]=!0}}return!0}function fO(_,J,$){var q=[],G;for(G in J)CO(_,G,J[G],$)||q.push(G);J=q.map(function(K){return"`"+K+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_)}function V9(_){return Ew.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function d4(){}function AU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function YH(_){var J=l1(_);if(J&&(_=J.stateNode)){var $=_[m2]||null;_:switch(_=J.stateNode,J.type){case"input":if(s8(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;K1(J,"name"),$=$.querySelectorAll('input[name="'+t2(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[m2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");s8(q,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&lJ(q)}break _;case"textarea":tJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&f3(_,!!$.multiple,J,!1)}}}function zH(_,J,$){if(yZ)return _(J,$);yZ=!0;try{var q=_(J);return q}finally{if(yZ=!1,R7!==null||O7!==null){if(Z7(),R7&&(J=R7,_=O7,O7=R7=null,YH(J),_))for(J=0;J<_.length;J++)YH(_[J])}}}function y9(_,J){var $=_.stateNode;if($===null)return null;var q=$[m2]||null;if(q===null)return null;$=q[J];_:switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(_=_.type,q=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!q;break _;default:_=!1}if(_)return null;if($&&typeof $!=="function")throw Error("Expected `"+J+"` listener to be a function, instead got a value of `"+typeof $+"` type.");return $}function WH(){if(AQ)return AQ;var _,J=DZ,$=J.length,q,G="value"in a3?a3.value:a3.textContent,K=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[K-q];q++);return AQ=G.slice(_,1<q?1-q:void 0)}function q$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function U$(){return!0}function BH(){return!1}function o2(_){function J($,q,G,K,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=K,this.target=z,this.currentTarget=null;for(var L in _)_.hasOwnProperty(L)&&($=_[L],this[L]=$?$(K):K[L]);return this.isDefaultPrevented=(K.defaultPrevented!=null?K.defaultPrevented:K.returnValue===!1)?U$:BH,this.isPropagationStopped=BH,this}return J0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=U$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=U$)},persist:function(){},isPersistent:U$}),J}function SO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=tw[_])?!!J[_]:!1}function MU(){return SO}function LH(_,J){switch(_){case"keyup":return FP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==PB;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function jO(_,J){switch(_){case"compositionend":return AH(J);case"keypress":if(J.which!==CB)return null;return SB=!0,fB;case"textInput":return _=J.data,_===fB&&SB?null:_;default:return null}}function vO(_,J){if(I7)return _==="compositionend"||!hZ&&LH(_,J)?(_=WH(),AQ=DZ=a3=null,I7=!1,_):null;switch(_){case"paste":return null;case"keypress":if(!(J.ctrlKey||J.altKey||J.metaKey)||J.ctrlKey&&J.altKey){if(J.char&&1<J.char.length)return J.char;if(J.which)return String.fromCharCode(J.which)}return null;case"compositionend":return NB&&J.locale!=="ko"?null:J.data;default:return null}}function MH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!XP[_.type]:J==="textarea"?!0:!1}function VO(_){if(!S4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function TH(_,J,$,q){R7?O7?O7.push(q):O7=[q]:R7=q,J=o$(J,"onChange"),0<J.length&&($=new MQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function yO(_){JW(_,0)}function G$(_){var J=d1(_);if(lJ(J))return _}function RH(_,J){if(_==="change")return J}function OH(){A_&&(A_.detachEvent("onpropertychange",IH),M_=A_=null)}function IH(_){if(_.propertyName==="value"&&G$(M_)){var J=[];TH(J,M_,_,AU(_)),zH(yO,J)}}function kO(_,J,$){_==="focusin"?(OH(),A_=J,M_=$,A_.attachEvent("onpropertychange",IH)):_==="focusout"&&OH()}function DO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return G$(M_)}function uO(_,J){if(_==="click")return G$(J)}function bO(_,J){if(_==="input"||_==="change")return G$(J)}function EO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function k9(_,J){if(p2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!l5.call(J,G)||!p2(_[G],J[G]))return!1}return!0}function wH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function PH(_,J){var $=wH(_);_=0;for(var q;$;){if($.nodeType===3){if(q=_+$.textContent.length,_<=J&&q>=J)return{node:$,offset:J-_};_=q}_:{for(;$;){if($.nextSibling){$=$.nextSibling;break _}$=$.parentNode}$=void 0}$=wH($)}}function NH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?NH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function CH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=a8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=a8(_.document)}return J}function TU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function fH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;mZ||w7==null||w7!==a8(q)||(q=w7,("selectionStart"in q)&&TU(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),T_&&k9(T_,q)||(T_=q,q=o$(xZ,"onSelect"),0<q.length&&(J=new MQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=w7)))}function b6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function E6(_){if(gZ[_])return gZ[_];if(!P7[_])return _;var J=P7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in vB)return gZ[_]=J[$];return _}function g5(_,J){uB.set(_,J),H2(J,[_])}function hO(_){for(var J=RQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(U2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==RQ&&J!==iZ)return lZ;J=iZ}else return lZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==RQ&&J!==dZ)return lZ;J=dZ}}return J}function RU(_,J,$,q){for(var G in _)l5.call(_,G)&&G[0]!=="_"&&G4(G,_[G],J,$,q)}function G4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===I4){var K=b(J.type)||"…",z=J.key;J=J.props;var L=Object.keys(J),I=L.length;if(z==null&&I===0){J="<"+K+" />";break}if(3>q||I===1&&L[0]==="children"&&z==null){J="<"+K+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+K]),z!==null&&G4("key",z,$,q+1,G),_=!1;for(var f in J)f==="children"?J.children!=null&&(!U2(J.children)||0<J.children.length)&&(_=!0):l5.call(J,f)&&f[0]!=="_"&&G4(f,J[f],$,q+1,G);$.push(["",_?">…</"+K+">":"/>"]);return}if(K=Object.prototype.toString.call(J),K=K.slice(8,K.length-1),K==="Array"){if(f=hO(J),f===dZ||f===RQ){J=JSON.stringify(J);break}else if(f===iZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)K=J[_],G4(K[0],K[1],$,q+1,G);return}}if(K==="Promise"){if(J.status==="fulfilled"){if(K=$.length,G4(_,J.value,$,q,G),$.length>K){$=$[K],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(K=$.length,G4(_,J.reason,$,q,G),$.length>K)){$=$[K],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}K==="Object"&&(f=Object.getPrototypeOf(J))&&typeof f.constructor==="function"&&(K=f.constructor.name),$.push([G+"  ".repeat(q)+_,K==="Object"?3>q?"":"…":K]),3>q&&RU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===AP?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([G+"  ".repeat(q)+_,J])}function SH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([OQ+"  ".repeat(q)+z,"…"]),G=!1);for(var K in J)if(K in _){var z=_[K],L=J[K];if(z!==L){if(q===0&&K==="children")G="  ".repeat(q)+K,$.push([OQ+G,"…"],[IQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof L==="object"&&z!==null&&L!==null&&z.$$typeof===L.$$typeof)if(L.$$typeof===I4){if(z.type===L.type&&z.key===L.key){z=b(L.type)||"…",G="  ".repeat(q)+K,z="<"+z+" … />",$.push([OQ+G,z],[IQ+G,z]),G=!1;continue}}else{var I=Object.prototype.toString.call(z),f=Object.prototype.toString.call(L);if(I===f&&(f==="[object Object]"||f==="[object Array]")){I=[hB+"  ".repeat(q)+K,f==="[object Array]"?"Array":""],$.push(I),f=$.length,SH(z,L,$,q+1)?f===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof L==="function"&&z.name===L.name&&z.length===L.length&&(I=Function.prototype.toString.call(z),f=Function.prototype.toString.call(L),I===f)){z=L.name===""?"() => {}":L.name+"() {}",$.push([hB+"  ".repeat(q)+K,z+" Referentially unequal function closure. Consider memoization."]);continue}}G4(K,z,$,q,OQ),G4(K,L,$,q,IQ)}G=!1}}else $.push([IQ+"  ".repeat(q)+K,"…"]),G=!1;return G}function U5(_){q0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function Z4(_,J,$,q){S0&&(t3.start=J,t3.end=$,_3.color="warning",_3.tooltipText=q,_3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,t3)):performance.measure(q,t3))}function Z$(_,J,$){Z4(_,J,$,"Reconnect")}function F$(_,J,$,q,G){var K=m(_);if(K!==null&&S0){var{alternate:z,actualDuration:L}=_;if(z===null||z.child!==_.child)for(var I=_.child;I!==null;I=I.sibling)L-=I.actualDuration;q=0.5>L?q?"tertiary-light":"primary-light":10>L?q?"tertiary":"primary":100>L?q?"tertiary-dark":"primary-dark":"error";var f=_.memoizedProps;L=_._debugTask,f!==null&&z!==null&&z.memoizedProps!==f?(I=[MP],f=SH(z.memoizedProps,f,I,0),1<I.length&&(f&&!s3&&(z.lanes&G)===0&&100<_.actualDuration?(s3=!0,I[0]=TP,_3.color="warning",_3.tooltipText=xB):(_3.color=q,_3.tooltipText=K),_3.properties=I,t3.start=J,t3.end=$,L!=null?L.run(performance.measure.bind(performance,"​"+K,t3)):performance.measure("​"+K,t3))):L!=null?L.run(console.timeStamp.bind(console,K,J,$,w5,void 0,q)):console.timeStamp(K,J,$,w5,void 0,q)}}function OU(_,J,$,q){if(S0){var G=m(_);if(G!==null){for(var K=null,z=[],L=0;L<q.length;L++){var I=q[L];K==null&&I.source!==null&&(K=I.source._debugTask),I=I.value,z.push(["Error",typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I)])}_.key!==null&&G4("key",_.key,z,0,""),_.memoizedProps!==null&&RU(_.memoizedProps,z,0,""),K==null&&(K=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:w5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},K?K.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function F4(_,J,$,q,G){if(G!==null){if(S0){var K=m(_);if(K!==null){q=[];for(var z=0;z<G.length;z++){var L=G[z].value;q.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_.key!==null&&G4("key",_.key,q,0,""),_.memoizedProps!==null&&RU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:w5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+K,J)):performance.measure("​"+K,J)}}}else K=m(_),K!==null&&S0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,K,J,$,w5,void 0,G)):console.timeStamp(K,J,$,w5,void 0,G))}function xO(_,J,$,q){if(S0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,q0,$0,G)):console.timeStamp($,_,J,q0,$0,G)}}function jH(_,J,$,q){!S0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,q0,$0,$)):console.timeStamp("Prewarm",_,J,q0,$0,$))}function vH(_,J,$,q){!S0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,q0,$0,$)):console.timeStamp("Suspended",_,J,q0,$0,$))}function mO(_,J,$,q,G,K){if(S0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var L=q[z].value;$.push(["Recoverable Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:q0,trackGroup:$0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},K?K.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function IU(_,J,$,q){!S0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,q0,$0,"error")):console.timeStamp("Errored",_,J,q0,$0,"error"))}function gO(_,J,$,q){!S0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,q0,$0,"secondary-light")):console.timeStamp($,_,J,q0,$0,"secondary-light"))}function VH(_,J,$,q,G){if(S0&&!(J<=_)){for(var K=[],z=0;z<$.length;z++){var L=$[z].value;K.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"error",track:q0,trackGroup:$0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:K}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function D9(_,J,$){!S0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,q0,$0,"secondary-dark")):console.timeStamp("Animating",_,J,q0,$0,"secondary-dark"))}function K$(){for(var _=N7,J=rZ=N7=0;J<_;){var $=P5[J];P5[J++]=null;var q=P5[J];P5[J++]=null;var G=P5[J];P5[J++]=null;var K=P5[J];if(P5[J++]=null,q!==null&&G!==null){var z=q.pending;z===null?G.next=G:(G.next=z.next,z.next=G),q.pending=G}K!==0&&yH($,G,K)}}function X$(_,J,$,q){P5[N7++]=_,P5[N7++]=J,P5[N7++]=$,P5[N7++]=q,rZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function wU(_,J,$,q){return X$(_,J,$,q),H$(_)}function f2(_,J){return X$(_,null,null,J),H$(_)}function yH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,K=_.return;K!==null;)K.childLanes|=$,q=K.alternate,q!==null&&(q.childLanes|=$),K.tag===22&&(_=K.stateNode,_===null||_._visibility&R_||(G=!0)),_=K,K=K.return;return _.tag===3?(K=_.stateNode,G&&J!==null&&(G=31-x2($),_=K.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),K):null}function H$(_){if(r_>DP)throw Y8=r_=0,a_=CF=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Y8>uP&&(Y8=0,a_=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),_.alternate===null&&(_.flags&4098)!==0&&az(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&az(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function h6(_){if(N5===null)return _;var J=N5(_);return J===void 0?_:J.current}function PU(_){if(N5===null)return _;var J=N5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=h6(_.render),_.render!==J)?(J={$$typeof:F_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function kH(_,J){if(N5===null)return!1;var $=_.elementType;J=J.type;var q=!1,G=typeof J==="object"&&J!==null?J.$$typeof:null;switch(_.tag){case 1:typeof J==="function"&&(q=!0);break;case 0:typeof J==="function"?q=!0:G===Y5&&(q=!0);break;case 11:G===F_?q=!0:G===Y5&&(q=!0);break;case 14:case 15:G===FQ?q=!0:G===Y5&&(q=!0);break;default:return!1}return q&&(_=N5($),_!==void 0&&_===N5(J))?!0:!1}function DH(_){N5!==null&&typeof WeakSet==="function"&&(C7===null&&(C7=new WeakSet),C7.add(_))}function uH(_,J,$){do{var q=_,G=q.alternate,K=q.child,z=q.sibling,L=q.tag;q=q.type;var I=null;switch(L){case 0:case 15:case 1:I=q;break;case 11:I=q.render}if(N5===null)throw Error("Expected resolveFamily to be set during hot reload.");var f=!1;if(q=!1,I!==null&&(I=N5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(L===1?q=!0:f=!0))),C7!==null&&(C7.has(_)||G!==null&&C7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||f)G=f2(_,2),G!==null&&h0(G,_,2);if(K===null||q||uH(K,J,$),z===null)break;_=z}while(1)}function pO(_,J,$,q){this.tag=_,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=J,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,mB||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function NU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function i4(_,J){var $=_.alternate;switch($===null?($=O(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=h6(_.type);break;case 1:$.type=h6(_.type);break;case 11:$.type=PU(_.type)}return $}function bH(_,J){_.flags&=65011714;var $=_.alternate;return $===null?(_.childLanes=0,_.lanes=J,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null,_.selfBaseDuration=0,_.treeBaseDuration=0):(_.childLanes=$.childLanes,_.lanes=$.lanes,_.child=$.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=$.memoizedProps,_.memoizedState=$.memoizedState,_.updateQueue=$.updateQueue,_.type=$.type,J=$.dependencies,_.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},_.selfBaseDuration=$.selfBaseDuration,_.treeBaseDuration=$.treeBaseDuration),_}function CU(_,J,$,q,G,K){var z=0,L=_;if(typeof _==="function")NU(_)&&(z=1),L=h6(L);else if(typeof _==="string")z=a(),z=oI(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case MZ:return J=O(31,$,J,G),J.elementType=MZ,J.lanes=K,J;case W7:return x6($.children,G,K,J);case ZQ:z=8,G|=j2,G|=i5;break;case WZ:return _=$,q=G,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=O(12,_,J,q|t1),J.elementType=WZ,J.lanes=K,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case LZ:return J=O(13,$,J,G),J.elementType=LZ,J.lanes=K,J;case AZ:return J=O(19,$,J,G),J.elementType=AZ,J.lanes=K,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case w4:z=10;break _;case BZ:z=9;break _;case F_:z=11,L=PU(L);break _;case FQ:z=14;break _;case Y5:z=16,L=null;break _}if(L="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";_===null?$="null":U2(_)?$="array":_!==void 0&&_.$$typeof===I4?($="<"+(b(_.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?E(q):null)&&(L+=`
71
+ This will cause a hydration error.%s`,J,$),!1}function g6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function MU(_){return _.replace(uw,function(J,$){return $.toUpperCase()})}function D9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?I7.hasOwnProperty(J)&&I7[J]||(I7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,MU(J.replace(Dw,"ms-")))):kw.test(J)?I7.hasOwnProperty(J)&&I7[J]||(I7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!BB.test($)||kZ.hasOwnProperty($)&&kZ[$]||(kZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(BB,""))),typeof $==="number"&&(isNaN($)?LB||(LB=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||AB||(AB=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",J)))),$==null||typeof $==="boolean"||$===""?q?_.setProperty(J,""):J==="float"?_.cssFloat="":_[J]="":q?_.setProperty(J,$):typeof $!=="number"||$===0||MB.has(J)?J==="float"?_.cssFloat=$:(r1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function HH(_,J,$){if(J!=null&&typeof J!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(J&&Object.freeze(J),_=_.style,$!=null){if(J){var q={};if($){for(var G in $)if($.hasOwnProperty(G)&&!J.hasOwnProperty(G))for(var X=yZ[G]||[G],z=0;z<X.length;z++)q[X[z]]=G}for(var L in J)if(J.hasOwnProperty(L)&&(!$||$[L]!==J[L]))for(G=yZ[L]||[L],X=0;X<G.length;X++)q[G[X]]=L;L={};for(var w in J)for(G=yZ[w]||[w],X=0;X<G.length;X++)L[G[X]]=w;w={};for(var S in q)if(G=q[S],(X=L[S])&&G!==X&&(z=G+","+X,!w[z])){w[z]=!0,z=console;var e=J[G];z.error.call(z,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",e==null||typeof e==="boolean"||e===""?"Removing":"Updating",G,X)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var r in J)S=J[r],J.hasOwnProperty(r)&&$[r]!==S&&D9(_,r,S)}else for(q in J)J.hasOwnProperty(q)&&D9(_,q,J[q])}function u9(_){if(_.indexOf("-")===-1)return!1;switch(_){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}}function YH(_){return bw.get(_)||_}function jO(_,J){if(n5.call(P7,J)&&P7[J])return!0;if(hw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=TB.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),P7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),P7[J]=!0}if(Ew.test(J)){if(_=J.toLowerCase(),_=TB.hasOwnProperty(_)?_:null,_==null)return P7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),P7[J]=!0)}return!0}function vO(_,J){var $=[],q;for(q in J)jO(_,q)||$.push(q);J=$.map(function(G){return"`"+G+"`"}).join(", "),$.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_):1<$.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_)}function VO(_,J,$,q){if(n5.call(i2,J)&&i2[J])return!0;var G=J.toLowerCase();if(G==="onfocusin"||G==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),i2[J]=!0;if(typeof $==="function"&&(_==="form"&&J==="action"||_==="input"&&J==="formAction"||_==="button"&&J==="formAction"))return!0;if(q!=null){if(_=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(J))return!0;if(q=_.hasOwnProperty(G)?_[G]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),i2[J]=!0;if(OB.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),i2[J]=!0}else if(OB.test(J))return xw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),i2[J]=!0;if(mw.test(J)||gw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),i2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),i2[J]=!0;if(G==="is"&&$!==null&&$!==void 0&&typeof $!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof $),i2[J]=!0;if(typeof $==="number"&&isNaN($))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",J),i2[J]=!0;if(MQ.hasOwnProperty(G)){if(G=MQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),i2[J]=!0}else if(J!==G)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",J,G),i2[J]=!0;switch(J){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof $){case"boolean":switch(J){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(G=J.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return $?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',$,J,J,$,J):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',$,J,J,$,J,J,J),i2[J]=!0}case"function":case"symbol":return i2[J]=!0,!1;case"string":if($==="false"||$==="true"){switch(J){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",$,J,$==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',J,$),i2[J]=!0}}return!0}function yO(_,J,$){var q=[],G;for(G in J)VO(_,G,J[G],$)||q.push(G);J=q.map(function(X){return"`"+X+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_)}function b9(_){return pw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function _3(){}function TU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function zH(_){var J=N1(_);if(J&&(_=J.stateNode)){var $=_[l2]||null;_:switch(_=J.stateNode,J.type){case"input":if(_7(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;M1(J,"name"),$=$.querySelectorAll('input[name="'+_5(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[l2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_7(q,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&dJ(q)}break _;case"textarea":nJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&E3(_,!!$.multiple,J,!1)}}}function WH(_,J,$){if(DZ)return _(J,$);DZ=!0;try{var q=_(J);return q}finally{if(DZ=!1,N7!==null||C7!==null){if(Y7(),N7&&(J=N7,_=C7,C7=N7=null,zH(J),_))for(J=0;J<_.length;J++)zH(_[J])}}}function E9(_,J){var $=_.stateNode;if($===null)return null;var q=$[l2]||null;if(q===null)return null;$=q[J];_:switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(_=_.type,q=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!q;break _;default:_=!1}if(_)return null;if($&&typeof $!=="function")throw Error("Expected `"+J+"` listener to be a function, instead got a value of `"+typeof $+"` type.");return $}function BH(){if(TQ)return TQ;var _,J=bZ,$=J.length,q,G="value"in q6?q6.value:q6.textContent,X=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[X-q];q++);return TQ=G.slice(_,1<q?1-q:void 0)}function G$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function Z$(){return!0}function LH(){return!1}function J5(_){function J($,q,G,X,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=X,this.target=z,this.currentTarget=null;for(var L in _)_.hasOwnProperty(L)&&($=_[L],this[L]=$?$(X):X[L]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?Z$:LH,this.isPropagationStopped=LH,this}return U0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=Z$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=Z$)},persist:function(){},isPersistent:Z$}),J}function kO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=JP[_])?!!J[_]:!1}function RU(){return kO}function AH(_,J){switch(_){case"keyup":return zP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==NB;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function DO(_,J){switch(_){case"compositionend":return MH(J);case"keypress":if(J.which!==fB)return null;return jB=!0,SB;case"textInput":return _=J.data,_===SB&&jB?null:_;default:return null}}function uO(_,J){if(f7)return _==="compositionend"||!mZ&&AH(_,J)?(_=BH(),TQ=bZ=q6=null,f7=!1,_):null;switch(_){case"paste":return null;case"keypress":if(!(J.ctrlKey||J.altKey||J.metaKey)||J.ctrlKey&&J.altKey){if(J.char&&1<J.char.length)return J.char;if(J.which)return String.fromCharCode(J.which)}return null;case"compositionend":return CB&&J.locale!=="ko"?null:J.data;default:return null}}function TH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!BP[_.type]:J==="textarea"?!0:!1}function bO(_){if(!b4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function RH(_,J,$,q){N7?C7?C7.push(q):C7=[q]:N7=q,J=e$(J,"onChange"),0<J.length&&($=new RQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function EO(_){$W(_,0)}function F$(_){var J=C1(_);if(dJ(J))return _}function OH(_,J){if(_==="change")return J}function IH(){I_&&(I_.detachEvent("onpropertychange",wH),w_=I_=null)}function wH(_){if(_.propertyName==="value"&&F$(w_)){var J=[];RH(J,w_,_,TU(_)),WH(EO,J)}}function hO(_,J,$){_==="focusin"?(IH(),I_=J,w_=$,I_.attachEvent("onpropertychange",wH)):_==="focusout"&&IH()}function xO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return F$(w_)}function mO(_,J){if(_==="click")return F$(J)}function gO(_,J){if(_==="input"||_==="change")return F$(J)}function pO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function h9(_,J){if(d2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!n5.call(J,G)||!d2(_[G],J[G]))return!1}return!0}function PH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function NH(_,J){var $=PH(_);_=0;for(var q;$;){if($.nodeType===3){if(q=_+$.textContent.length,_<=J&&q>=J)return{node:$,offset:J-_};_=q}_:{for(;$;){if($.nextSibling){$=$.nextSibling;break _}$=$.parentNode}$=void 0}$=PH($)}}function CH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?CH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function fH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=e8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=e8(_.document)}return J}function OU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function SH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;pZ||S7==null||S7!==e8(q)||(q=S7,("selectionStart"in q)&&OU(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),P_&&h9(P_,q)||(P_=q,q=e$(gZ,"onSelect"),0<q.length&&(J=new RQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=S7)))}function p6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function c6(_){if(cZ[_])return cZ[_];if(!j7[_])return _;var J=j7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in VB)return cZ[_]=J[$];return _}function s5(_,J){bB.set(_,J),p1(J,[_])}function cO(_){for(var J=IQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(Y2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==IQ&&J!==aZ)return dZ;J=aZ}else return dZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==IQ&&J!==rZ)return dZ;J=rZ}}return J}function IU(_,J,$,q){for(var G in _)n5.call(_,G)&&G[0]!=="_"&&W4(G,_[G],J,$,q)}function W4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===v4){var X=b(J.type)||"…",z=J.key;J=J.props;var L=Object.keys(J),w=L.length;if(z==null&&w===0){J="<"+X+" />";break}if(3>q||w===1&&L[0]==="children"&&z==null){J="<"+X+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+X]),z!==null&&W4("key",z,$,q+1,G),_=!1;for(var S in J)S==="children"?J.children!=null&&(!Y2(J.children)||0<J.children.length)&&(_=!0):n5.call(J,S)&&S[0]!=="_"&&W4(S,J[S],$,q+1,G);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(S=cO(J),S===rZ||S===IQ){J=JSON.stringify(J);break}else if(S===aZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],W4(X[0],X[1],$,q+1,G);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,W4(_,J.value,$,q,G),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,W4(_,J.reason,$,q,G),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}X==="Object"&&(S=Object.getPrototypeOf(J))&&typeof S.constructor==="function"&&(X=S.constructor.name),$.push([G+"  ".repeat(q)+_,X==="Object"?3>q?"":"…":X]),3>q&&IU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===IP?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([G+"  ".repeat(q)+_,J])}function jH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([wQ+"  ".repeat(q)+z,"…"]),G=!1);for(var X in J)if(X in _){var z=_[X],L=J[X];if(z!==L){if(q===0&&X==="children")G="  ".repeat(q)+X,$.push([wQ+G,"…"],[PQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof L==="object"&&z!==null&&L!==null&&z.$$typeof===L.$$typeof)if(L.$$typeof===v4){if(z.type===L.type&&z.key===L.key){z=b(L.type)||"…",G="  ".repeat(q)+X,z="<"+z+" … />",$.push([wQ+G,z],[PQ+G,z]),G=!1;continue}}else{var w=Object.prototype.toString.call(z),S=Object.prototype.toString.call(L);if(w===S&&(S==="[object Object]"||S==="[object Array]")){w=[xB+"  ".repeat(q)+X,S==="[object Array]"?"Array":""],$.push(w),S=$.length,jH(z,L,$,q+1)?S===$.length&&(w[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof L==="function"&&z.name===L.name&&z.length===L.length&&(w=Function.prototype.toString.call(z),S=Function.prototype.toString.call(L),w===S)){z=L.name===""?"() => {}":L.name+"() {}",$.push([xB+"  ".repeat(q)+X,z+" Referentially unequal function closure. Consider memoization."]);continue}}W4(X,z,$,q,wQ),W4(X,L,$,q,PQ)}G=!1}}else $.push([PQ+"  ".repeat(q)+X,"…"]),G=!1;return G}function X5(_){Z0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function B4(_,J,$,q){V0&&(G6.start=J,G6.end=$,X3.color="warning",X3.tooltipText=q,X3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,G6)):performance.measure(q,G6))}function X$(_,J,$){B4(_,J,$,"Reconnect")}function K$(_,J,$,q,G){var X=x(_);if(X!==null&&V0){var{alternate:z,actualDuration:L}=_;if(z===null||z.child!==_.child)for(var w=_.child;w!==null;w=w.sibling)L-=w.actualDuration;q=0.5>L?q?"tertiary-light":"primary-light":10>L?q?"tertiary":"primary":100>L?q?"tertiary-dark":"primary-dark":"error";var S=_.memoizedProps;L=_._debugTask,S!==null&&z!==null&&z.memoizedProps!==S?(w=[wP],S=jH(z.memoizedProps,S,w,0),1<w.length&&(S&&!U6&&(z.lanes&G)===0&&100<_.actualDuration?(U6=!0,w[0]=PP,X3.color="warning",X3.tooltipText=mB):(X3.color=q,X3.tooltipText=X),X3.properties=w,G6.start=J,G6.end=$,L!=null?L.run(performance.measure.bind(performance,"​"+X,G6)):performance.measure("​"+X,G6))):L!=null?L.run(console.timeStamp.bind(console,X,J,$,V5,void 0,q)):console.timeStamp(X,J,$,V5,void 0,q)}}function wU(_,J,$,q){if(V0){var G=x(_);if(G!==null){for(var X=null,z=[],L=0;L<q.length;L++){var w=q[L];X==null&&w.source!==null&&(X=w.source._debugTask),w=w.value,z.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}_.key!==null&&W4("key",_.key,z,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,z,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:V5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},X?X.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function L4(_,J,$,q,G){if(G!==null){if(V0){var X=x(_);if(X!==null){q=[];for(var z=0;z<G.length;z++){var L=G[z].value;q.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_.key!==null&&W4("key",_.key,q,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:V5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+X,J)):performance.measure("​"+X,J)}}}else X=x(_),X!==null&&V0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,V5,void 0,G)):console.timeStamp(X,J,$,V5,void 0,G))}function lO(_,J,$,q){if(V0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,G)):console.timeStamp($,_,J,Z0,G0,G)}}function vH(_,J,$,q){!V0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,Z0,G0,$)):console.timeStamp("Prewarm",_,J,Z0,G0,$))}function VH(_,J,$,q){!V0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,Z0,G0,$)):console.timeStamp("Suspended",_,J,Z0,G0,$))}function iO(_,J,$,q,G,X){if(V0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var L=q[z].value;$.push(["Recoverable Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:Z0,trackGroup:G0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function PU(_,J,$,q){!V0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,Z0,G0,"error")):console.timeStamp("Errored",_,J,Z0,G0,"error"))}function dO(_,J,$,q){!V0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,"secondary-light")):console.timeStamp($,_,J,Z0,G0,"secondary-light"))}function yH(_,J,$,q,G){if(V0&&!(J<=_)){for(var X=[],z=0;z<$.length;z++){var L=$[z].value;X.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"error",track:Z0,trackGroup:G0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:X}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function x9(_,J,$){!V0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,Z0,G0,"secondary-dark")):console.timeStamp("Animating",_,J,Z0,G0,"secondary-dark"))}function H$(){for(var _=v7,J=sZ=v7=0;J<_;){var $=y5[J];y5[J++]=null;var q=y5[J];y5[J++]=null;var G=y5[J];y5[J++]=null;var X=y5[J];if(y5[J++]=null,q!==null&&G!==null){var z=q.pending;z===null?G.next=G:(G.next=z.next,z.next=G),q.pending=G}X!==0&&kH($,G,X)}}function Y$(_,J,$,q){y5[v7++]=_,y5[v7++]=J,y5[v7++]=$,y5[v7++]=q,sZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function NU(_,J,$,q){return Y$(_,J,$,q),z$(_)}function k2(_,J){return Y$(_,null,null,J),z$(_)}function kH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,X=_.return;X!==null;)X.childLanes|=$,q=X.alternate,q!==null&&(q.childLanes|=$),X.tag===22&&(_=X.stateNode,_===null||_._visibility&N_||(G=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,G&&J!==null&&(G=31-c2($),_=X.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),X):null}function z$(_){if(n_>xP)throw M8=n_=0,e_=SF=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");M8>mP&&(M8=0,e_=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),_.alternate===null&&(_.flags&4098)!==0&&sz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&sz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function l6(_){if(k5===null)return _;var J=k5(_);return J===void 0?_:J.current}function CU(_){if(k5===null)return _;var J=k5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=l6(_.render),_.render!==J)?(J={$$typeof:z_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function DH(_,J){if(k5===null)return!1;var $=_.elementType;J=J.type;var q=!1,G=typeof J==="object"&&J!==null?J.$$typeof:null;switch(_.tag){case 1:typeof J==="function"&&(q=!0);break;case 0:typeof J==="function"?q=!0:G===L5&&(q=!0);break;case 11:G===z_?q=!0:G===L5&&(q=!0);break;case 14:case 15:G===KQ?q=!0:G===L5&&(q=!0);break;default:return!1}return q&&(_=k5($),_!==void 0&&_===k5(J))?!0:!1}function uH(_){k5!==null&&typeof WeakSet==="function"&&(V7===null&&(V7=new WeakSet),V7.add(_))}function bH(_,J,$){do{var q=_,G=q.alternate,X=q.child,z=q.sibling,L=q.tag;q=q.type;var w=null;switch(L){case 0:case 15:case 1:w=q;break;case 11:w=q.render}if(k5===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(q=!1,w!==null&&(w=k5(w),w!==void 0&&($.has(w)?q=!0:J.has(w)&&(L===1?q=!0:S=!0))),V7!==null&&(V7.has(_)||G!==null&&V7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||S)G=k2(_,2),G!==null&&c0(G,_,2);if(X===null||q||bH(X,J,$),z===null)break;_=z}while(1)}function rO(_,J,$,q){this.tag=_,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=J,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,gB||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function J3(_,J){var $=_.alternate;switch($===null?($=O(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=l6(_.type);break;case 1:$.type=l6(_.type);break;case 11:$.type=CU(_.type)}return $}function EH(_,J){_.flags&=65011714;var $=_.alternate;return $===null?(_.childLanes=0,_.lanes=J,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null,_.selfBaseDuration=0,_.treeBaseDuration=0):(_.childLanes=$.childLanes,_.lanes=$.lanes,_.child=$.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=$.memoizedProps,_.memoizedState=$.memoizedState,_.updateQueue=$.updateQueue,_.type=$.type,J=$.dependencies,_.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},_.selfBaseDuration=$.selfBaseDuration,_.treeBaseDuration=$.treeBaseDuration),_}function SU(_,J,$,q,G,X){var z=0,L=_;if(typeof _==="function")fU(_)&&(z=1),L=l6(L);else if(typeof _==="string")z=a(),z=$w(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case RZ:return J=O(31,$,J,G),J.elementType=RZ,J.lanes=X,J;case T7:return i6($.children,G,X,J);case XQ:z=8,G|=u2,G|=_4;break;case LZ:return _=$,q=G,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=O(12,_,J,q|e1),J.elementType=LZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case MZ:return J=O(13,$,J,G),J.elementType=MZ,J.lanes=X,J;case TZ:return J=O(19,$,J,G),J.elementType=TZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case V4:z=10;break _;case AZ:z=9;break _;case z_:z=11,L=CU(L);break _;case KQ:z=14;break _;case L5:z=16,L=null;break _}if(L="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";_===null?$="null":Y2(_)?$="array":_!==void 0&&_.$$typeof===v4?($="<"+(b(_.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?k(q):null)&&(L+=`
72
72
 
73
- Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+L)),L=null}return J=O(z,$,J,G),J.elementType=_,J.type=L,J.lanes=K,J._debugOwner=q,J}function Y$(_,J,$){return J=CU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function x6(_,J,$,q){return _=O(7,_,q,J),_.lanes=$,_}function fU(_,J,$){return _=O(6,_,null,J),_.lanes=$,_}function EH(_){var J=O(18,null,null,p1);return J.stateNode=_,J}function SU(_,J,$){return J=O(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function G5(_,J){if(typeof _==="object"&&_!==null){var $=aZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:A1(J)},aZ.set(_,J),J}return{value:_,source:J,stack:A1(J)}}function r4(_,J){y3(),f7[S7++]=O_,f7[S7++]=wQ,wQ=_,O_=J}function hH(_,J,$){y3(),C5[f5++]=$3,C5[f5++]=Q3,C5[f5++]=n6,n6=_;var q=$3;_=Q3;var G=32-x2(q)-1;q&=~(1<<G),$+=1;var K=32-x2(J)+G;if(30<K){var z=G-G%5;K=(q&(1<<z)-1).toString(32),q>>=z,G-=z,$3=1<<32-x2(J)+G|$<<G|q,Q3=K+_}else $3=1<<K|$<<G|q,Q3=_}function jU(_){y3(),_.return!==null&&(r4(_,1),hH(_,1,0))}function vU(_){for(;_===wQ;)wQ=f7[--S7],f7[S7]=null,O_=f7[--S7],f7[S7]=null;for(;_===n6;)n6=C5[--f5],C5[f5]=null,Q3=C5[--f5],C5[f5]=null,$3=C5[--f5],C5[f5]=null}function xH(){return y3(),n6!==null?{id:$3,overflow:Q3}:null}function mH(_,J){y3(),C5[f5++]=$3,C5[f5++]=Q3,C5[f5++]=n6,$3=J.id,Q3=J.overflow,n6=_}function y3(){G0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function m6(_,J){if(_.return===null){if(B5===null)B5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(B5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");B5.distanceFromLeaf>J&&(B5.distanceFromLeaf=J)}return B5}var $=m6(_.return,J+1).children;if(0<$.length&&$[$.length-1].fiber===_)return $=$[$.length-1],$.distanceFromLeaf>J&&($.distanceFromLeaf=J),$;return J={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J},$.push(J),J}function gH(){G0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function z$(_,J){j4||(_=m6(_,0),_.serverProps=null,J!==null&&(J=TW(J),_.serverTail.push(J)))}function k3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=B5;throw q!==null&&(B5=null,$=C9(q)),u9(G5(Error("Hydration failed because the server rendered "+(J?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
73
+ Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+L)),L=null}return J=O(z,$,J,G),J.elementType=_,J.type=L,J.lanes=X,J._debugOwner=q,J}function W$(_,J,$){return J=SU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function i6(_,J,$,q){return _=O(7,_,q,J),_.lanes=$,_}function jU(_,J,$){return _=O(6,_,null,J),_.lanes=$,_}function hH(_){var J=O(18,null,null,i1);return J.stateNode=_,J}function vU(_,J,$){return J=O(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function K5(_,J){if(typeof _==="object"&&_!==null){var $=tZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:B1(J)},tZ.set(_,J),J}return{value:_,source:J,stack:B1(J)}}function $3(_,J){p3(),y7[k7++]=C_,y7[k7++]=NQ,NQ=_,C_=J}function xH(_,J,$){p3(),D5[u5++]=H3,D5[u5++]=Y3,D5[u5++]=q8,q8=_;var q=H3;_=Y3;var G=32-c2(q)-1;q&=~(1<<G),$+=1;var X=32-c2(J)+G;if(30<X){var z=G-G%5;X=(q&(1<<z)-1).toString(32),q>>=z,G-=z,H3=1<<32-c2(J)+G|$<<G|q,Y3=X+_}else H3=1<<X|$<<G|q,Y3=_}function VU(_){p3(),_.return!==null&&($3(_,1),xH(_,1,0))}function yU(_){for(;_===NQ;)NQ=y7[--k7],y7[k7]=null,C_=y7[--k7],y7[k7]=null;for(;_===q8;)q8=D5[--u5],D5[u5]=null,Y3=D5[--u5],D5[u5]=null,H3=D5[--u5],D5[u5]=null}function mH(){return p3(),q8!==null?{id:H3,overflow:Y3}:null}function gH(_,J){p3(),D5[u5++]=H3,D5[u5++]=Y3,D5[u5++]=q8,H3=J.id,Y3=J.overflow,q8=_}function p3(){F0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function d6(_,J){if(_.return===null){if(T5===null)T5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(T5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");T5.distanceFromLeaf>J&&(T5.distanceFromLeaf=J)}return T5}var $=d6(_.return,J+1).children;if(0<$.length&&$[$.length-1].fiber===_)return $=$[$.length-1],$.distanceFromLeaf>J&&($.distanceFromLeaf=J),$;return J={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J},$.push(J),J}function pH(){F0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function B$(_,J){E4||(_=d6(_,0),_.serverProps=null,J!==null&&(J=RW(J),_.serverTail.push(J)))}function c3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=T5;throw q!==null&&(T5=null,$=V9(q)),m9(K5(Error("Hydration failed because the server rendered "+(J?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
74
 
75
75
  - A server/client branch \`if (typeof window !== 'undefined')\`.
76
76
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -80,7 +80,7 @@ Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: ex
80
80
 
81
81
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
82
 
83
- https://react.dev/link/hydration-mismatch`+$),_)),sZ}function pH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[O2]=_,J[m2]=q,tG($,q),$){case"dialog":Z0("cancel",J),Z0("close",J);break;case"iframe":case"object":case"embed":Z0("load",J);break;case"video":case"audio":for($=0;$<s_.length;$++)Z0(s_[$],J);break;case"source":Z0("error",J);break;case"img":case"image":case"link":Z0("error",J),Z0("load",J);break;case"details":Z0("toggle",J);break;case"input":U4("input",q),Z0("invalid",J),dJ(J,q),O9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":iJ(J,q);break;case"select":U4("select",q),Z0("invalid",J),aJ(J,q);break;case"textarea":U4("textarea",q),Z0("invalid",J),sJ(J,q),I9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||UW(J.textContent,$)?(q.popover!=null&&(Z0("beforetoggle",J),Z0("toggle",J)),q.onScroll!=null&&Z0("scroll",J),q.onScrollEnd!=null&&Z0("scrollend",J),q.onClick!=null&&(J.onclick=d4),J=!0):J=!1,J||k3(_,!0)}function cH(_){for(I2=_.return;I2;)switch(I2.tag){case 5:case 31:case 13:S5=!1;return;case 27:case 3:S5=!0;return;default:I2=I2.return}}function n8(_){if(_!==I2)return!1;if(!G0)return cH(_),G0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||JZ(_.type,_.memoizedProps);$=!$}if($&&j0){for($=j0;$;){var q=m6(_,0),G=TW($);q.serverTail.push(G),$=G.type==="Suspense"?UZ($):H5($.nextSibling)}k3(_)}if(cH(_),J===13){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");j0=UZ(_)}else if(J===31){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");j0=UZ(_)}else J===27?(J=j0,c3(_.type)?(_=hF,hF=null,j0=_):j0=J):j0=I2?H5(_.stateNode.nextSibling):null;return!0}function g6(){j0=I2=null,j4=G0=!1}function VU(){var _=n3;return _!==null&&(i2===null?i2=_:i2.push.apply(i2,_),n3=null),_}function u9(_){n3===null?n3=[_]:n3.push(_)}function yU(){var _=B5;if(_!==null){B5=null;for(var J=C9(_);0<_.children.length;)_=_.children[0];M1(_.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
83
+ https://react.dev/link/hydration-mismatch`+$),_)),oZ}function cH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[v2]=_,J[l2]=q,nG($,q),$){case"dialog":X0("cancel",J),X0("close",J);break;case"iframe":case"object":case"embed":X0("load",J);break;case"video":case"audio":for($=0;$<_J.length;$++)X0(_J[$],J);break;case"source":X0("error",J);break;case"img":case"image":case"link":X0("error",J),X0("load",J);break;case"details":X0("toggle",J);break;case"input":w0("input",q),X0("invalid",J),rJ(J,q),C9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":aJ(J,q);break;case"select":w0("select",q),X0("invalid",J),tJ(J,q);break;case"textarea":w0("textarea",q),X0("invalid",J),oJ(J,q),f9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||GW(J.textContent,$)?(q.popover!=null&&(X0("beforetoggle",J),X0("toggle",J)),q.onScroll!=null&&X0("scroll",J),q.onScrollEnd!=null&&X0("scrollend",J),q.onClick!=null&&(J.onclick=_3),J=!0):J=!1,J||c3(_,!0)}function lH(_){for(V2=_.return;V2;)switch(V2.tag){case 5:case 31:case 13:b5=!1;return;case 27:case 3:b5=!0;return;default:V2=V2.return}}function Q7(_){if(_!==V2)return!1;if(!F0)return lH(_),F0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||QZ(_.type,_.memoizedProps);$=!$}if($&&y0){for($=y0;$;){var q=d6(_,0),G=RW($);q.serverTail.push(G),$=G.type==="Suspense"?ZZ($):B5($.nextSibling)}c3(_)}if(lH(_),J===13){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");y0=ZZ(_)}else if(J===31){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");y0=ZZ(_)}else J===27?(J=y0,e3(_.type)?(_=mF,mF=null,y0=_):y0=J):y0=V2?B5(_.stateNode.nextSibling):null;return!0}function r6(){y0=V2=null,E4=F0=!1}function kU(){var _=F6;return _!==null&&(t2===null?t2=_:t2.push.apply(t2,_),F6=null),_}function m9(_){F6===null?F6=[_]:F6.push(_)}function DU(){var _=T5;if(_!==null){T5=null;for(var J=V9(_);0<_.children.length;)_=_.children[0];A1(_.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+$),_)),sZ}function pH(_){var{stateNod
90
90
 
91
91
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
92
 
93
- %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function W$(){j7=PQ=null,v7=!1}function D3(_,J,$){J1(tZ,J._currentValue,_),J._currentValue=$,J1(oZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==pB&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=pB}function a4(_,J){_._currentValue=tZ.current;var $=oZ.current;Q1(oZ,J),_._currentRenderer=$,Q1(tZ,J)}function kU(_,J,$){for(;_!==null;){var q=_.alternate;if((_.childLanes&J)!==J?(_.childLanes|=J,q!==null&&(q.childLanes|=J)):q!==null&&(q.childLanes&J)!==J&&(q.childLanes|=J),_===$)break;_=_.return}_!==$&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function DU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var K=G.dependencies;if(K!==null){var z=G.child;K=K.firstContext;_:for(;K!==null;){var L=K;K=G;for(var I=0;I<J.length;I++)if(L.context===J[I]){K.lanes|=$,L=K.alternate,L!==null&&(L.lanes|=$),kU(K.return,$,_),q||(z=null);break _}K=L.next}}else if(G.tag===18){if(z=G.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=$,K=z.alternate,K!==null&&(K.lanes|=$),kU(z,$,_),z=null}else z=G.child;if(z!==null)z.return=G;else for(z=G;z!==null;){if(z===_){z=null;break}if(G=z.sibling,G!==null){G.return=z.return,z=G;break}z=z.return}G=z}}function e8(_,J,$,q){_=null;for(var G=J,K=!1;G!==null;){if(!K){if((G.flags&524288)!==0)K=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var z=G.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var L=G.type;p2(G.pendingProps.value,z.value)||(_!==null?_.push(L):_=[L])}}else if(G===KQ.current){if(z=G.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(_J):_=[_J])}G=G.return}_!==null&&DU(J,_,$,q),J.flags|=262144}function B$(_){for(_=_.firstContext;_!==null;){if(!p2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function p6(_){PQ=_,j7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function V0(_){return v7&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),lH(PQ,_)}function L$(_,J){return PQ===null&&p6(_),lH(_,J)}function lH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},j7===null){if(_===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");j7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else j7=j7.next=J;return $}function uU(){return{controller:new IP,data:new Map,refCount:0}}function c6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function b9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&wP(PP,function(){_.controller.abort()})}function K4(_,J,$){if((_&127)!==0)0>v4&&(v4=t0(),w_=NQ(J),nZ=J,$!=null&&(eZ=m($)),(H0&(Z2|M5))!==L2&&(x0=!0,J6=I_),_=Q_(),J=$_(),_!==V7||J!==P_?V7=-1.1:J!==null&&(J6=I_),_8=_,P_=J);else if((_&4194048)!==0&&0>j5&&(j5=t0(),N_=NQ(J),cB=J,$!=null&&(lB=m($)),0>G3)){if(_=Q_(),J=$_(),_!==Q6||J!==J8)Q6=-1.1;$6=_,J8=J}}function cO(_){if(0>v4){v4=t0(),w_=_._debugTask!=null?_._debugTask:null,(H0&(Z2|M5))!==L2&&(J6=I_);var J=Q_(),$=$_();J!==V7||$!==P_?V7=-1.1:$!==null&&(J6=I_),_8=J,P_=$}if(0>j5&&(j5=t0(),N_=_._debugTask!=null?_._debugTask:null,0>G3)){if(_=Q_(),J=$_(),_!==Q6||J!==J8)Q6=-1.1;$6=_,J8=J}}function s4(){var _=e6;return e6=0,_}function A$(_){var J=e6;return e6=_,J}function E9(_){var J=e6;return e6+=_,J}function M$(){g1=x1=-1.1}function Z5(){var _=x1;return x1=-1.1,_}function F5(_){0<=_&&(x1=_)}function X4(){var _=u0;return u0=-0,_}function H4(_){0<=_&&(u0=_)}function Y4(){var _=y0;return y0=null,_}function z4(){var _=x0;return x0=!1,_}function bU(_){c2=t0(),0>_.actualStartTime&&(_.actualStartTime=c2)}function EU(_){if(0<=c2){var J=t0()-c2;_.actualDuration+=J,_.selfBaseDuration=J,c2=-1}}function dH(_){if(0<=c2){var J=t0()-c2;_.actualDuration+=J,c2=-1}}function W4(){if(0<=c2){var _=t0(),J=_-c2;c2=-1,e6+=J,u0+=J,g1=_}}function iH(_){y0===null&&(y0=[]),y0.push(_),U3===null&&(U3=[]),U3.push(_)}function B4(){c2=t0(),0>x1&&(x1=c2)}function h9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function lO(_,J){if(f_===null){var $=f_=[];JF=0,$8=iG(),y7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return JF++,J.then(rH,rH),J}function rH(){if(--JF===0&&(-1<j5||(G3=-1.1),f_!==null)){y7!==null&&(y7.status="fulfilled");var _=f_;f_=null,$8=0,y7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function dO(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(G){$.push(G)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var G=0;G<$.length;G++)(0,$[G])(J)},function(G){q.status="rejected",q.reason=G;for(G=0;G<$.length;G++)(0,$[G])(void 0)}),q}function hU(){var _=Q8.current;return _!==null?_:P0.pooledCache}function T$(_,J){J===null?J1(Q8,Q8.current,_):J1(Q8,J.pool,_)}function aH(){var _=hU();return _===null?null:{parent:s0._currentValue,pool:_}}function sH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function tH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function oH(_,J,$){H1.actQueue!==null&&(H1.didUsePromise=!0);var q=_.thenables;if($=q[$],$===void 0?q.push(J):$!==J&&(_.didWarnAboutUncachedPromise||(_.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),J.then(d4,d4),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var G={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:G}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){G.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,eH(_),_;default:if(typeof J.status==="string")J.then(d4,d4);else{if(_=P0,_!==null&&100<_.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");_=J,_.status="pending",_.then(function(K){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=K}},function(K){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=K}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,eH(_),_}throw U8=J,D_=!0,k7}}function u3(_){try{return SP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw U8=J,D_=!0,k7;throw J}}function nH(){if(U8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=U8;return U8=null,D_=!1,_}function eH(_){if(_===k7||_===kQ)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function M2(_){var J=o1;return _!=null&&(o1=J===null?_:J.concat(_)),J}function xU(){var _=o1;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function R$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var K=q[G];if(K!=="children"&&K!=="key"){J===null&&(J=Y$(_,$.mode,0),J._debugInfo=o1,J.return=$),M1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},K);break}}}function O$(_){var J=u_;return u_+=1,D7===null&&(D7=sH()),oH(D7,_,J)}function x9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function _Y(_,J){if(J.$$typeof===Zw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function L$(){D7=CQ=null,u7=!1}function l3(_,J,$){J1(nZ,J._currentValue,_),J._currentValue=$,J1(eZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==cB&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=cB}function Q3(_,J){_._currentValue=nZ.current;var $=eZ.current;Q1(eZ,J),_._currentRenderer=$,Q1(nZ,J)}function uU(_,J,$){for(;_!==null;){var q=_.alternate;if((_.childLanes&J)!==J?(_.childLanes|=J,q!==null&&(q.childLanes|=J)):q!==null&&(q.childLanes&J)!==J&&(q.childLanes|=J),_===$)break;_=_.return}_!==$&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function bU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var X=G.dependencies;if(X!==null){var z=G.child;X=X.firstContext;_:for(;X!==null;){var L=X;X=G;for(var w=0;w<J.length;w++)if(L.context===J[w]){X.lanes|=$,L=X.alternate,L!==null&&(L.lanes|=$),uU(X.return,$,_),q||(z=null);break _}X=L.next}}else if(G.tag===18){if(z=G.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=$,X=z.alternate,X!==null&&(X.lanes|=$),uU(z,$,_),z=null}else z=G.child;if(z!==null)z.return=G;else for(z=G;z!==null;){if(z===_){z=null;break}if(G=z.sibling,G!==null){G.return=z.return,z=G;break}z=z.return}G=z}}function q7(_,J,$,q){_=null;for(var G=J,X=!1;G!==null;){if(!X){if((G.flags&524288)!==0)X=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var z=G.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var L=G.type;d2(G.pendingProps.value,z.value)||(_!==null?_.push(L):_=[L])}}else if(G===HQ.current){if(z=G.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(UJ):_=[UJ])}G=G.return}_!==null&&bU(J,_,$,q),J.flags|=262144}function A$(_){for(_=_.firstContext;_!==null;){if(!d2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function a6(_){CQ=_,D7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function u0(_){return u7&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),iH(CQ,_)}function M$(_,J){return CQ===null&&a6(_),iH(_,J)}function iH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},D7===null){if(_===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");D7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else D7=D7.next=J;return $}function EU(){return{controller:new fP,data:new Map,refCount:0}}function s6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function g9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&SP(jP,function(){_.controller.abort()})}function A4(_,J,$){if((_&127)!==0)0>h4&&(h4=$2(),S_=fQ(J),_F=J,$!=null&&(JF=x($)),(Y0&(W2|I5))!==w2&&(l0=!0,H6=f_),_=F_(),J=Z_(),_!==b7||J!==j_?b7=-1.1:J!==null&&(H6=f_),G8=_,j_=J);else if((_&4194048)!==0&&0>E5&&(E5=$2(),v_=fQ(J),lB=J,$!=null&&(iB=x($)),0>B3)){if(_=F_(),J=Z_(),_!==z6||J!==Z8)z6=-1.1;Y6=_,Z8=J}}function aO(_){if(0>h4){h4=$2(),S_=_._debugTask!=null?_._debugTask:null,(Y0&(W2|I5))!==w2&&(H6=f_);var J=F_(),$=Z_();J!==b7||$!==j_?b7=-1.1:$!==null&&(H6=f_),G8=J,j_=$}if(0>E5&&(E5=$2(),v_=_._debugTask!=null?_._debugTask:null,0>B3)){if(_=F_(),J=Z_(),_!==z6||J!==Z8)z6=-1.1;Y6=_,Z8=J}}function q3(){var _=U8;return U8=0,_}function T$(_){var J=U8;return U8=_,J}function p9(_){var J=U8;return U8+=_,J}function R$(){l1=m1=-1.1}function H5(){var _=m1;return m1=-1.1,_}function Y5(_){0<=_&&(m1=_)}function M4(){var _=m0;return m0=-0,_}function T4(_){0<=_&&(m0=_)}function R4(){var _=b0;return b0=null,_}function O4(){var _=l0;return l0=!1,_}function hU(_){r2=$2(),0>_.actualStartTime&&(_.actualStartTime=r2)}function xU(_){if(0<=r2){var J=$2()-r2;_.actualDuration+=J,_.selfBaseDuration=J,r2=-1}}function dH(_){if(0<=r2){var J=$2()-r2;_.actualDuration+=J,r2=-1}}function I4(){if(0<=r2){var _=$2(),J=_-r2;r2=-1,U8+=J,m0+=J,l1=_}}function rH(_){b0===null&&(b0=[]),b0.push(_),W3===null&&(W3=[]),W3.push(_)}function w4(){r2=$2(),0>m1&&(m1=r2)}function c9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function sO(_,J){if(y_===null){var $=y_=[];QF=0,F8=aG(),E7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return QF++,J.then(aH,aH),J}function aH(){if(--QF===0&&(-1<E5||(B3=-1.1),y_!==null)){E7!==null&&(E7.status="fulfilled");var _=y_;y_=null,F8=0,E7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function tO(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(G){$.push(G)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var G=0;G<$.length;G++)(0,$[G])(J)},function(G){q.status="rejected",q.reason=G;for(G=0;G<$.length;G++)(0,$[G])(void 0)}),q}function mU(){var _=X8.current;return _!==null?_:C0.pooledCache}function O$(_,J){J===null?J1(X8,X8.current,_):J1(X8,J.pool,_)}function sH(){var _=mU();return _===null?null:{parent:J2._currentValue,pool:_}}function tH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function oH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function nH(_,J,$){Y1.actQueue!==null&&(Y1.didUsePromise=!0);var q=_.thenables;if($=q[$],$===void 0?q.push(J):$!==J&&(_.didWarnAboutUncachedPromise||(_.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),J.then(_3,_3),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var G={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:G}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){G.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,_Y(_),_;default:if(typeof J.status==="string")J.then(_3,_3);else{if(_=C0,_!==null&&100<_.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");_=J,_.status="pending",_.then(function(X){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=X}},function(X){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=X}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,_Y(_),_}throw H8=J,x_=!0,h7}}function i3(_){try{return kP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw H8=J,x_=!0,h7;throw J}}function eH(){if(H8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=H8;return H8=null,x_=!1,_}function _Y(_){if(_===h7||_===uQ)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function f2(_){var J=_0;return _!=null&&(_0=J===null?_:J.concat(_)),J}function gU(){var _=_0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function I$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var X=q[G];if(X!=="children"&&X!=="key"){J===null&&(J=W$(_,$.mode,0),J._debugInfo=_0,J.return=$),A1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},X);break}}}function w$(_){var J=m_;return m_+=1,x7===null&&(x7=tH()),nH(x7,_,J)}function l9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function JY(_,J){if(J.$$typeof===Yw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
95
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function I$(_,J){var $=xU();$!==null?$.run(_Y.bind(null,_,J)):_Y(_,J)}function JY(_,J){var $=m(_)||"Component";XL[$]||(XL[$]=!0,J=J.displayName||J.name||"Component",_.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function P$(_,J){var $=gU();$!==null?$.run(JY.bind(null,_,J)):JY(_,J)}function $Y(_,J){var $=x(_)||"Component";HL[$]||(HL[$]=!0,J=J.displayName||J.name||"Component",_.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
97
  root.render(%s)`,J,J,J):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
- <%s>{%s}</%s>`,J,J,$,J,$))}function w$(_,J){var $=xU();$!==null?$.run(JY.bind(null,_,J)):JY(_,J)}function $Y(_,J){var $=m(_)||"Component";HL[$]||(HL[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,J,J,$,J,$))}function N$(_,J){var $=gU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_,J){var $=x(_)||"Component";YL[$]||(YL[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
99
99
  root.render(%s)`,J):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,$,J,$))}function P$(_,J){var $=xU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_){function J(l,r){if(_){var o=l.deletions;o===null?(l.deletions=[r],l.flags|=16):o.push(r)}}function $(l,r){if(!_)return null;for(;r!==null;)J(l,r),r=r.sibling;return null}function q(l){for(var r=new Map;l!==null;)l.key!==null?r.set(l.key,l):r.set(l.index,l),l=l.sibling;return r}function G(l,r){return l=i4(l,r),l.index=0,l.sibling=null,l}function K(l,r,o){if(l.index=o,!_)return l.flags|=1048576,r;if(o=l.alternate,o!==null)return o=o.index,o<r?(l.flags|=67108866,r):o;return l.flags|=67108866,r}function z(l){return _&&l.alternate===null&&(l.flags|=67108866),l}function L(l,r,o,L1){if(r===null||r.tag!==6)return r=fU(o,l.mode,L1),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=o1,r;return r=G(r,o),r.return=l,r._debugInfo=o1,r}function I(l,r,o,L1){var j1=o.type;if(j1===W7)return r=n(l,r,o.props.children,L1,o.key),R$(o,r,l),r;if(r!==null&&(r.elementType===j1||kH(r,o)||typeof j1==="object"&&j1!==null&&j1.$$typeof===Y5&&u3(j1)===r.type))return r=G(r,o.props),x9(r,o),r.return=l,r._debugOwner=o._owner,r._debugInfo=o1,r;return r=Y$(o,l.mode,L1),x9(r,o),r.return=l,r._debugInfo=o1,r}function f(l,r,o,L1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==o.containerInfo||r.stateNode.implementation!==o.implementation)return r=SU(o,l.mode,L1),r.return=l,r._debugInfo=o1,r;return r=G(r,o.children||[]),r.return=l,r._debugInfo=o1,r}function n(l,r,o,L1,j1){if(r===null||r.tag!==7)return r=x6(o,l.mode,L1,j1),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=o1,r;return r=G(r,o),r.return=l,r._debugInfo=o1,r}function _1(l,r,o){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=fU(""+r,l.mode,o),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=o1,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case I4:return o=Y$(r,l.mode,o),x9(o,r),o.return=l,l=M2(r._debugInfo),o._debugInfo=o1,o1=l,o;case z7:return r=SU(r,l.mode,o),r.return=l,r._debugInfo=o1,r;case Y5:var L1=M2(r._debugInfo);return r=u3(r),l=_1(l,r,o),o1=L1,l}if(U2(r)||k(r))return o=x6(r,l.mode,o,null),o.return=l,o._debugOwner=l,o._debugTask=l._debugTask,l=M2(r._debugInfo),o._debugInfo=o1,o1=l,o;if(typeof r.then==="function")return L1=M2(r._debugInfo),l=_1(l,O$(r),o),o1=L1,l;if(r.$$typeof===w4)return _1(l,L$(l,r),o);I$(l,r)}return typeof r==="function"&&w$(l,r),typeof r==="symbol"&&P$(l,r),null}function i(l,r,o,L1){var j1=r!==null?r.key:null;if(typeof o==="string"&&o!==""||typeof o==="number"||typeof o==="bigint")return j1!==null?null:L(l,r,""+o,L1);if(typeof o==="object"&&o!==null){switch(o.$$typeof){case I4:return o.key===j1?(j1=M2(o._debugInfo),l=I(l,r,o,L1),o1=j1,l):null;case z7:return o.key===j1?f(l,r,o,L1):null;case Y5:return j1=M2(o._debugInfo),o=u3(o),l=i(l,r,o,L1),o1=j1,l}if(U2(o)||k(o)){if(j1!==null)return null;return j1=M2(o._debugInfo),l=n(l,r,o,L1,null),o1=j1,l}if(typeof o.then==="function")return j1=M2(o._debugInfo),l=i(l,r,O$(o),L1),o1=j1,l;if(o.$$typeof===w4)return i(l,r,L$(l,o),L1);I$(l,o)}return typeof o==="function"&&w$(l,o),typeof o==="symbol"&&P$(l,o),null}function Z1(l,r,o,L1,j1){if(typeof L1==="string"&&L1!==""||typeof L1==="number"||typeof L1==="bigint")return l=l.get(o)||null,L(r,l,""+L1,j1);if(typeof L1==="object"&&L1!==null){switch(L1.$$typeof){case I4:return o=l.get(L1.key===null?o:L1.key)||null,l=M2(L1._debugInfo),r=I(r,o,L1,j1),o1=l,r;case z7:return l=l.get(L1.key===null?o:L1.key)||null,f(r,l,L1,j1);case Y5:var r1=M2(L1._debugInfo);return L1=u3(L1),r=Z1(l,r,o,L1,j1),o1=r1,r}if(U2(L1)||k(L1))return o=l.get(o)||null,l=M2(L1._debugInfo),r=n(r,o,L1,j1,null),o1=l,r;if(typeof L1.then==="function")return r1=M2(L1._debugInfo),r=Z1(l,r,o,O$(L1),j1),o1=r1,r;if(L1.$$typeof===w4)return Z1(l,r,o,L$(r,L1),j1);I$(r,L1)}return typeof L1==="function"&&w$(r,L1),typeof L1==="symbol"&&P$(r,L1),null}function f1(l,r,o,L1){if(typeof o!=="object"||o===null)return L1;switch(o.$$typeof){case I4:case z7:M(l,r,o);var j1=o.key;if(typeof j1!=="string")break;if(L1===null){L1=new Set,L1.add(j1);break}if(!L1.has(j1)){L1.add(j1);break}M1(r,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",j1)});break;case Y5:o=u3(o),f1(l,r,o,L1)}return L1}function V1(l,r,o,L1){for(var j1=null,r1=null,h1=null,k1=r,s1=r=0,v0=null;k1!==null&&s1<o.length;s1++){k1.index>s1?(v0=k1,k1=null):v0=k1.sibling;var i0=i(l,k1,o[s1],L1);if(i0===null){k1===null&&(k1=v0);break}j1=f1(l,i0,o[s1],j1),_&&k1&&i0.alternate===null&&J(l,k1),r=K(i0,r,s1),h1===null?r1=i0:h1.sibling=i0,h1=i0,k1=v0}if(s1===o.length)return $(l,k1),G0&&r4(l,s1),r1;if(k1===null){for(;s1<o.length;s1++)k1=_1(l,o[s1],L1),k1!==null&&(j1=f1(l,k1,o[s1],j1),r=K(k1,r,s1),h1===null?r1=k1:h1.sibling=k1,h1=k1);return G0&&r4(l,s1),r1}for(k1=q(k1);s1<o.length;s1++)v0=Z1(k1,l,s1,o[s1],L1),v0!==null&&(j1=f1(l,v0,o[s1],j1),_&&v0.alternate!==null&&k1.delete(v0.key===null?s1:v0.key),r=K(v0,r,s1),h1===null?r1=v0:h1.sibling=v0,h1=v0);return _&&k1.forEach(function(B3){return J(l,B3)}),G0&&r4(l,s1),r1}function C0(l,r,o,L1){if(o==null)throw Error("An iterable object provided no iterator.");for(var j1=null,r1=null,h1=r,k1=r=0,s1=null,v0=null,i0=o.next();h1!==null&&!i0.done;k1++,i0=o.next()){h1.index>k1?(s1=h1,h1=null):s1=h1.sibling;var B3=i(l,h1,i0.value,L1);if(B3===null){h1===null&&(h1=s1);break}v0=f1(l,B3,i0.value,v0),_&&h1&&B3.alternate===null&&J(l,h1),r=K(B3,r,k1),r1===null?j1=B3:r1.sibling=B3,r1=B3,h1=s1}if(i0.done)return $(l,h1),G0&&r4(l,k1),j1;if(h1===null){for(;!i0.done;k1++,i0=o.next())h1=_1(l,i0.value,L1),h1!==null&&(v0=f1(l,h1,i0.value,v0),r=K(h1,r,k1),r1===null?j1=h1:r1.sibling=h1,r1=h1);return G0&&r4(l,k1),j1}for(h1=q(h1);!i0.done;k1++,i0=o.next())s1=Z1(h1,l,k1,i0.value,L1),s1!==null&&(v0=f1(l,s1,i0.value,v0),_&&s1.alternate!==null&&h1.delete(s1.key===null?k1:s1.key),r=K(s1,r,k1),r1===null?j1=s1:r1.sibling=s1,r1=s1);return _&&h1.forEach(function(nP){return J(l,nP)}),G0&&r4(l,k1),j1}function F0(l,r,o,L1){if(typeof o==="object"&&o!==null&&o.type===W7&&o.key===null&&(R$(o,null,l),o=o.props.children),typeof o==="object"&&o!==null){switch(o.$$typeof){case I4:var j1=M2(o._debugInfo);_:{for(var r1=o.key;r!==null;){if(r.key===r1){if(r1=o.type,r1===W7){if(r.tag===7){$(l,r.sibling),L1=G(r,o.props.children),L1.return=l,L1._debugOwner=o._owner,L1._debugInfo=o1,R$(o,L1,l),l=L1;break _}}else if(r.elementType===r1||kH(r,o)||typeof r1==="object"&&r1!==null&&r1.$$typeof===Y5&&u3(r1)===r.type){$(l,r.sibling),L1=G(r,o.props),x9(L1,o),L1.return=l,L1._debugOwner=o._owner,L1._debugInfo=o1,l=L1;break _}$(l,r);break}else J(l,r);r=r.sibling}o.type===W7?(L1=x6(o.props.children,l.mode,L1,o.key),L1.return=l,L1._debugOwner=l,L1._debugTask=l._debugTask,L1._debugInfo=o1,R$(o,L1,l),l=L1):(L1=Y$(o,l.mode,L1),x9(L1,o),L1.return=l,L1._debugInfo=o1,l=L1)}return l=z(l),o1=j1,l;case z7:_:{j1=o;for(o=j1.key;r!==null;){if(r.key===o)if(r.tag===4&&r.stateNode.containerInfo===j1.containerInfo&&r.stateNode.implementation===j1.implementation){$(l,r.sibling),L1=G(r,j1.children||[]),L1.return=l,l=L1;break _}else{$(l,r);break}else J(l,r);r=r.sibling}L1=SU(j1,l.mode,L1),L1.return=l,l=L1}return z(l);case Y5:return j1=M2(o._debugInfo),o=u3(o),l=F0(l,r,o,L1),o1=j1,l}if(U2(o))return j1=M2(o._debugInfo),l=V1(l,r,o,L1),o1=j1,l;if(k(o)){if(j1=M2(o._debugInfo),r1=k(o),typeof r1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var h1=r1.call(o);if(h1===o){if(l.tag!==0||Object.prototype.toString.call(l.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(h1)!=="[object Generator]")FL||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),FL=!0}else o.entries!==r1||UF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),UF=!0);return l=C0(l,r,h1,L1),o1=j1,l}if(typeof o.then==="function")return j1=M2(o._debugInfo),l=F0(l,r,O$(o),L1),o1=j1,l;if(o.$$typeof===w4)return F0(l,r,L$(l,o),L1);I$(l,o)}if(typeof o==="string"&&o!==""||typeof o==="number"||typeof o==="bigint")return j1=""+o,r!==null&&r.tag===6?($(l,r.sibling),L1=G(r,j1),L1.return=l,l=L1):($(l,r),L1=fU(j1,l.mode,L1),L1.return=l,L1._debugOwner=l,L1._debugTask=l._debugTask,L1._debugInfo=o1,l=L1),z(l);return typeof o==="function"&&w$(l,o),typeof o==="symbol"&&P$(l,o),$(l,r)}return function(l,r,o,L1){var j1=o1;o1=null;try{u_=0;var r1=F0(l,r,o,L1);return D7=null,r1}catch(v0){if(v0===k7||v0===kQ)throw v0;var h1=O(29,v0,null,l.mode);h1.lanes=L1,h1.return=l;var k1=h1._debugInfo=o1;if(h1._debugOwner=l._debugOwner,h1._debugTask=l._debugTask,k1!=null){for(var s1=k1.length-1;0<=s1;s1--)if(typeof k1[s1].stack==="string"){h1._debugOwner=k1[s1],h1._debugTask=k1[s1].debugTask;break}}return h1}finally{o1=j1}}}function qY(_,J){var $=U2(_);return _=!$&&typeof k(_)==="function",$||_?($=$?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",$,J,$),!1):!0}function mU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function b3(_){return{lane:_,tag:zL,payload:null,callback:null,next:null}}function E3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,ZF===q&&!LL){var G=m(_);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
100
+ <%s>%s</%s>`,$,J,$))}function C$(_,J){var $=gU();$!==null?$.run(QY.bind(null,_,J)):QY(_,J)}function qY(_){function J(d,s){if(_){var n=d.deletions;n===null?(d.deletions=[s],d.flags|=16):n.push(s)}}function $(d,s){if(!_)return null;for(;s!==null;)J(d,s),s=s.sibling;return null}function q(d){for(var s=new Map;d!==null;)d.key!==null?s.set(d.key,d):s.set(d.index,d),d=d.sibling;return s}function G(d,s){return d=J3(d,s),d.index=0,d.sibling=null,d}function X(d,s,n){if(d.index=n,!_)return d.flags|=1048576,s;if(n=d.alternate,n!==null)return n=n.index,n<s?(d.flags|=67108866,s):n;return d.flags|=67108866,s}function z(d){return _&&d.alternate===null&&(d.flags|=67108866),d}function L(d,s,n,L1){if(s===null||s.tag!==6)return s=jU(n,d.mode,L1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function w(d,s,n,L1){var S1=n.type;if(S1===T7)return s=e(d,s,n.props.children,L1,n.key),I$(n,s,d),s;if(s!==null&&(s.elementType===S1||DH(s,n)||typeof S1==="object"&&S1!==null&&S1.$$typeof===L5&&i3(S1)===s.type))return s=G(s,n.props),l9(s,n),s.return=d,s._debugOwner=n._owner,s._debugInfo=_0,s;return s=W$(n,d.mode,L1),l9(s,n),s.return=d,s._debugInfo=_0,s}function S(d,s,n,L1){if(s===null||s.tag!==4||s.stateNode.containerInfo!==n.containerInfo||s.stateNode.implementation!==n.implementation)return s=vU(n,d.mode,L1),s.return=d,s._debugInfo=_0,s;return s=G(s,n.children||[]),s.return=d,s._debugInfo=_0,s}function e(d,s,n,L1,S1){if(s===null||s.tag!==7)return s=i6(n,d.mode,L1,S1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function _1(d,s,n){if(typeof s==="string"&&s!==""||typeof s==="number"||typeof s==="bigint")return s=jU(""+s,d.mode,n),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;if(typeof s==="object"&&s!==null){switch(s.$$typeof){case v4:return n=W$(s,d.mode,n),l9(n,s),n.return=d,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;case M7:return s=vU(s,d.mode,n),s.return=d,s._debugInfo=_0,s;case L5:var L1=f2(s._debugInfo);return s=i3(s),d=_1(d,s,n),_0=L1,d}if(Y2(s)||E(s))return n=i6(s,d.mode,n,null),n.return=d,n._debugOwner=d,n._debugTask=d._debugTask,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;if(typeof s.then==="function")return L1=f2(s._debugInfo),d=_1(d,w$(s),n),_0=L1,d;if(s.$$typeof===V4)return _1(d,M$(d,s),n);P$(d,s)}return typeof s==="function"&&N$(d,s),typeof s==="symbol"&&C$(d,s),null}function r(d,s,n,L1){var S1=s!==null?s.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1!==null?null:L(d,s,""+n,L1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case v4:return n.key===S1?(S1=f2(n._debugInfo),d=w(d,s,n,L1),_0=S1,d):null;case M7:return n.key===S1?S(d,s,n,L1):null;case L5:return S1=f2(n._debugInfo),n=i3(n),d=r(d,s,n,L1),_0=S1,d}if(Y2(n)||E(n)){if(S1!==null)return null;return S1=f2(n._debugInfo),d=e(d,s,n,L1,null),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=r(d,s,w$(n),L1),_0=S1,d;if(n.$$typeof===V4)return r(d,s,M$(d,n),L1);P$(d,n)}return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),null}function Z1(d,s,n,L1,S1){if(typeof L1==="string"&&L1!==""||typeof L1==="number"||typeof L1==="bigint")return d=d.get(n)||null,L(s,d,""+L1,S1);if(typeof L1==="object"&&L1!==null){switch(L1.$$typeof){case v4:return n=d.get(L1.key===null?n:L1.key)||null,d=f2(L1._debugInfo),s=w(s,n,L1,S1),_0=d,s;case M7:return d=d.get(L1.key===null?n:L1.key)||null,S(s,d,L1,S1);case L5:var s1=f2(L1._debugInfo);return L1=i3(L1),s=Z1(d,s,n,L1,S1),_0=s1,s}if(Y2(L1)||E(L1))return n=d.get(n)||null,d=f2(L1._debugInfo),s=e(s,n,L1,S1,null),_0=d,s;if(typeof L1.then==="function")return s1=f2(L1._debugInfo),s=Z1(d,s,n,w$(L1),S1),_0=s1,s;if(L1.$$typeof===V4)return Z1(d,s,n,M$(s,L1),S1);P$(s,L1)}return typeof L1==="function"&&N$(s,L1),typeof L1==="symbol"&&C$(s,L1),null}function f1(d,s,n,L1){if(typeof n!=="object"||n===null)return L1;switch(n.$$typeof){case v4:case M7:M(d,s,n);var S1=n.key;if(typeof S1!=="string")break;if(L1===null){L1=new Set,L1.add(S1);break}if(!L1.has(S1)){L1.add(S1);break}A1(s,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",S1)});break;case L5:n=i3(n),f1(d,s,n,L1)}return L1}function V1(d,s,n,L1){for(var S1=null,s1=null,x1=null,E1=s,n1=s=0,k0=null;E1!==null&&n1<n.length;n1++){E1.index>n1?(k0=E1,E1=null):k0=E1.sibling;var n0=r(d,E1,n[n1],L1);if(n0===null){E1===null&&(E1=k0);break}S1=f1(d,n0,n[n1],S1),_&&E1&&n0.alternate===null&&J(d,E1),s=X(n0,s,n1),x1===null?s1=n0:x1.sibling=n0,x1=n0,E1=k0}if(n1===n.length)return $(d,E1),F0&&$3(d,n1),s1;if(E1===null){for(;n1<n.length;n1++)E1=_1(d,n[n1],L1),E1!==null&&(S1=f1(d,E1,n[n1],S1),s=X(E1,s,n1),x1===null?s1=E1:x1.sibling=E1,x1=E1);return F0&&$3(d,n1),s1}for(E1=q(E1);n1<n.length;n1++)k0=Z1(E1,d,n1,n[n1],L1),k0!==null&&(S1=f1(d,k0,n[n1],S1),_&&k0.alternate!==null&&E1.delete(k0.key===null?n1:k0.key),s=X(k0,s,n1),x1===null?s1=k0:x1.sibling=k0,x1=k0);return _&&E1.forEach(function(P3){return J(d,P3)}),F0&&$3(d,n1),s1}function v0(d,s,n,L1){if(n==null)throw Error("An iterable object provided no iterator.");for(var S1=null,s1=null,x1=s,E1=s=0,n1=null,k0=null,n0=n.next();x1!==null&&!n0.done;E1++,n0=n.next()){x1.index>E1?(n1=x1,x1=null):n1=x1.sibling;var P3=r(d,x1,n0.value,L1);if(P3===null){x1===null&&(x1=n1);break}k0=f1(d,P3,n0.value,k0),_&&x1&&P3.alternate===null&&J(d,x1),s=X(P3,s,E1),s1===null?S1=P3:s1.sibling=P3,s1=P3,x1=n1}if(n0.done)return $(d,x1),F0&&$3(d,E1),S1;if(x1===null){for(;!n0.done;E1++,n0=n.next())x1=_1(d,n0.value,L1),x1!==null&&(k0=f1(d,x1,n0.value,k0),s=X(x1,s,E1),s1===null?S1=x1:s1.sibling=x1,s1=x1);return F0&&$3(d,E1),S1}for(x1=q(x1);!n0.done;E1++,n0=n.next())n1=Z1(x1,d,E1,n0.value,L1),n1!==null&&(k0=f1(d,n1,n0.value,k0),_&&n1.alternate!==null&&x1.delete(n1.key===null?E1:n1.key),s=X(n1,s,E1),s1===null?S1=n1:s1.sibling=n1,s1=n1);return _&&x1.forEach(function(QN){return J(d,QN)}),F0&&$3(d,E1),S1}function K0(d,s,n,L1){if(typeof n==="object"&&n!==null&&n.type===T7&&n.key===null&&(I$(n,null,d),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case v4:var S1=f2(n._debugInfo);_:{for(var s1=n.key;s!==null;){if(s.key===s1){if(s1=n.type,s1===T7){if(s.tag===7){$(d,s.sibling),L1=G(s,n.props.children),L1.return=d,L1._debugOwner=n._owner,L1._debugInfo=_0,I$(n,L1,d),d=L1;break _}}else if(s.elementType===s1||DH(s,n)||typeof s1==="object"&&s1!==null&&s1.$$typeof===L5&&i3(s1)===s.type){$(d,s.sibling),L1=G(s,n.props),l9(L1,n),L1.return=d,L1._debugOwner=n._owner,L1._debugInfo=_0,d=L1;break _}$(d,s);break}else J(d,s);s=s.sibling}n.type===T7?(L1=i6(n.props.children,d.mode,L1,n.key),L1.return=d,L1._debugOwner=d,L1._debugTask=d._debugTask,L1._debugInfo=_0,I$(n,L1,d),d=L1):(L1=W$(n,d.mode,L1),l9(L1,n),L1.return=d,L1._debugInfo=_0,d=L1)}return d=z(d),_0=S1,d;case M7:_:{S1=n;for(n=S1.key;s!==null;){if(s.key===n)if(s.tag===4&&s.stateNode.containerInfo===S1.containerInfo&&s.stateNode.implementation===S1.implementation){$(d,s.sibling),L1=G(s,S1.children||[]),L1.return=d,d=L1;break _}else{$(d,s);break}else J(d,s);s=s.sibling}L1=vU(S1,d.mode,L1),L1.return=d,d=L1}return z(d);case L5:return S1=f2(n._debugInfo),n=i3(n),d=K0(d,s,n,L1),_0=S1,d}if(Y2(n))return S1=f2(n._debugInfo),d=V1(d,s,n,L1),_0=S1,d;if(E(n)){if(S1=f2(n._debugInfo),s1=E(n),typeof s1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var x1=s1.call(n);if(x1===n){if(d.tag!==0||Object.prototype.toString.call(d.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(x1)!=="[object Generator]")XL||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),XL=!0}else n.entries!==s1||ZF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZF=!0);return d=v0(d,s,x1,L1),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=K0(d,s,w$(n),L1),_0=S1,d;if(n.$$typeof===V4)return K0(d,s,M$(d,n),L1);P$(d,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1=""+n,s!==null&&s.tag===6?($(d,s.sibling),L1=G(s,S1),L1.return=d,d=L1):($(d,s),L1=jU(S1,d.mode,L1),L1.return=d,L1._debugOwner=d,L1._debugTask=d._debugTask,L1._debugInfo=_0,d=L1),z(d);return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),$(d,s)}return function(d,s,n,L1){var S1=_0;_0=null;try{m_=0;var s1=K0(d,s,n,L1);return x7=null,s1}catch(k0){if(k0===h7||k0===uQ)throw k0;var x1=O(29,k0,null,d.mode);x1.lanes=L1,x1.return=d;var E1=x1._debugInfo=_0;if(x1._debugOwner=d._debugOwner,x1._debugTask=d._debugTask,E1!=null){for(var n1=E1.length-1;0<=n1;n1--)if(typeof E1[n1].stack==="string"){x1._debugOwner=E1[n1],x1._debugTask=E1[n1].debugTask;break}}return x1}finally{_0=S1}}}function UY(_,J){var $=Y2(_);return _=!$&&typeof E(_)==="function",$||_?($=$?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",$,J,$),!1):!0}function pU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function d3(_){return{lane:_,tag:WL,payload:null,callback:null,next:null}}function r3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,XF===q&&!AL){var G=x(_);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
101
 
102
- Please update the following component: %s`,G),LL=!0}if((H0&Z2)!==L2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=H$(_),yH(_,null,$),J;return X$(_,q,J,$),H$(_)}function m9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,g4(_,$)}}function N$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,K=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};K===null?G=K=z:K=K.next=z,$=$.next}while($!==null);K===null?G=K=J:K=K.next=J}else G=K=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:K,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function g9(){if(FF){var _=y7;if(_!==null)throw _}}function p9(_,J,$,q){FF=!1;var G=_.updateQueue;q6=!1,ZF=G.shared;var{firstBaseUpdate:K,lastBaseUpdate:z}=G,L=G.shared.pending;if(L!==null){G.shared.pending=null;var I=L,f=I.next;I.next=null,z===null?K=f:z.next=f,z=I;var n=_.alternate;n!==null&&(n=n.updateQueue,L=n.lastBaseUpdate,L!==z&&(L===null?n.firstBaseUpdate=f:L.next=f,n.lastBaseUpdate=I))}if(K!==null){var _1=G.baseState;z=0,n=f=I=null,L=K;do{var i=L.lane&-536870913,Z1=i!==L.lane;if(Z1?(n1&i)===i:(q&i)===i){i!==0&&i===$8&&(FF=!0),n!==null&&(n=n.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});_:{i=_;var f1=L,V1=J,C0=$;switch(f1.tag){case WL:if(f1=f1.payload,typeof f1==="function"){v7=!0;var F0=f1.call(C0,_1,V1);if(i.mode&j2){b1(!0);try{f1.call(C0,_1,V1)}finally{b1(!1)}}v7=!1,_1=F0;break _}_1=f1;break _;case GF:i.flags=i.flags&-65537|128;case zL:if(F0=f1.payload,typeof F0==="function"){if(v7=!0,f1=F0.call(C0,_1,V1),i.mode&j2){b1(!0);try{F0.call(C0,_1,V1)}finally{b1(!1)}}v7=!1}else f1=F0;if(f1===null||f1===void 0)break _;_1=J0({},_1,f1);break _;case BL:q6=!0}}i=L.callback,i!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[i]:Z1.push(i))}else Z1={lane:i,tag:L.tag,payload:L.payload,callback:L.callback,next:null},n===null?(f=n=Z1,I=_1):n=n.next=Z1,z|=i;if(L=L.next,L===null)if(L=G.shared.pending,L===null)break;else Z1=L,L=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);n===null&&(I=_1),G.baseState=I,G.firstBaseUpdate=f,G.lastBaseUpdate=n,K===null&&(G.shared.lanes=0),Z6|=z,_.lanes=z,_.memoizedState=_1}ZF=null}function UY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function iO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)UY($[_],J)}function GY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)UY($[_],J)}function ZY(_,J){var $=k4;J1(uQ,$,_),J1(u7,J,_),k4=$|J.baseLanes}function pU(_){J1(uQ,k4,_),J1(u7,u7.current,_)}function cU(_){k4=uQ.current,Q1(u7,_),Q1(uQ,_)}function h3(_){var J=_.alternate;J1(d0,d0.current&b7,_),J1(L5,_,_),v5===null&&(J===null||u7.current!==null?v5=_:J.memoizedState!==null&&(v5=_))}function lU(_){J1(d0,d0.current,_),J1(L5,_,_),v5===null&&(v5=_)}function FY(_){_.tag===22?(J1(d0,d0.current,_),J1(L5,_,_),v5===null&&(v5=_)):x3(_)}function x3(_){J1(d0,d0.current,_),J1(L5,L5.current,_)}function K5(_){Q1(L5,_),v5===_&&(v5=null),Q1(d0,_)}function C$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||QZ($)||qZ($)))return J}else if(J.tag===19&&(J.memoizedProps.revealOrder==="forwards"||J.memoizedProps.revealOrder==="backwards"||J.memoizedProps.revealOrder==="unstable_legacy-backwards"||J.memoizedProps.revealOrder==="together")){if((J.flags&128)!==0)return J}else if(J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return null;J=J.return}J.sibling.return=J.return,J=J.sibling}return null}function _0(){var _=F1;y5===null?y5=[_]:y5.push(_)}function O1(){var _=F1;if(y5!==null&&(X3++,y5[X3]!==_)){var J=m(i1);if(!AL.has(J)&&(AL.add(J),y5!==null)){for(var $="",q=0;q<=X3;q++){var G=y5[q],K=q===X3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=K+`
102
+ Please update the following component: %s`,G),AL=!0}if((Y0&W2)!==w2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=z$(_),kH(_,null,$),J;return Y$(_,q,J,$),z$(_)}function i9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,f5(_,$)}}function f$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,X=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};X===null?G=X=z:X=X.next=z,$=$.next}while($!==null);X===null?G=X=J:X=X.next=J}else G=X=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:X,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function d9(){if(KF){var _=E7;if(_!==null)throw _}}function r9(_,J,$,q){KF=!1;var G=_.updateQueue;W6=!1,XF=G.shared;var{firstBaseUpdate:X,lastBaseUpdate:z}=G,L=G.shared.pending;if(L!==null){G.shared.pending=null;var w=L,S=w.next;w.next=null,z===null?X=S:z.next=S,z=w;var e=_.alternate;e!==null&&(e=e.updateQueue,L=e.lastBaseUpdate,L!==z&&(L===null?e.firstBaseUpdate=S:L.next=S,e.lastBaseUpdate=w))}if(X!==null){var _1=G.baseState;z=0,e=S=w=null,L=X;do{var r=L.lane&-536870913,Z1=r!==L.lane;if(Z1?(J0&r)===r:(q&r)===r){r!==0&&r===F8&&(KF=!0),e!==null&&(e=e.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});_:{r=_;var f1=L,V1=J,v0=$;switch(f1.tag){case BL:if(f1=f1.payload,typeof f1==="function"){u7=!0;var K0=f1.call(v0,_1,V1);if(r.mode&u2){o1(!0);try{f1.call(v0,_1,V1)}finally{o1(!1)}}u7=!1,_1=K0;break _}_1=f1;break _;case FF:r.flags=r.flags&-65537|128;case WL:if(K0=f1.payload,typeof K0==="function"){if(u7=!0,f1=K0.call(v0,_1,V1),r.mode&u2){o1(!0);try{K0.call(v0,_1,V1)}finally{o1(!1)}}u7=!1}else f1=K0;if(f1===null||f1===void 0)break _;_1=U0({},_1,f1);break _;case LL:W6=!0}}r=L.callback,r!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[r]:Z1.push(r))}else Z1={lane:r,tag:L.tag,payload:L.payload,callback:L.callback,next:null},e===null?(S=e=Z1,w=_1):e=e.next=Z1,z|=r;if(L=L.next,L===null)if(L=G.shared.pending,L===null)break;else Z1=L,L=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);e===null&&(w=_1),G.baseState=w,G.firstBaseUpdate=S,G.lastBaseUpdate=e,X===null&&(G.shared.lanes=0),A6|=z,_.lanes=z,_.memoizedState=_1}XF=null}function GY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function oO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)GY($[_],J)}function ZY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)GY($[_],J)}function FY(_,J){var $=g4;J1(EQ,$,_),J1(m7,J,_),g4=$|J.baseLanes}function lU(_){J1(EQ,g4,_),J1(m7,m7.current,_)}function iU(_){g4=EQ.current,Q1(m7,_),Q1(EQ,_)}function a3(_){var J=_.alternate;J1(o0,o0.current&g7,_),J1(R5,_,_),h5===null&&(J===null||m7.current!==null?h5=_:J.memoizedState!==null&&(h5=_))}function dU(_){J1(o0,o0.current,_),J1(R5,_,_),h5===null&&(h5=_)}function XY(_){_.tag===22?(J1(o0,o0.current,_),J1(R5,_,_),h5===null&&(h5=_)):s3(_)}function s3(_){J1(o0,o0.current,_),J1(R5,R5.current,_)}function z5(_){Q1(R5,_),h5===_&&(h5=null),Q1(o0,_)}function S$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||UZ($)||GZ($)))return J}else if(J.tag===19&&(J.memoizedProps.revealOrder==="forwards"||J.memoizedProps.revealOrder==="backwards"||J.memoizedProps.revealOrder==="unstable_legacy-backwards"||J.memoizedProps.revealOrder==="together")){if((J.flags&128)!==0)return J}else if(J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return null;J=J.return}J.sibling.return=J.return,J=J.sibling}return null}function q0(){var _=X1;m5===null?m5=[_]:m5.push(_)}function w1(){var _=X1;if(m5!==null&&(T3++,m5[T3]!==_)){var J=x(a1);if(!ML.has(J)&&(ML.add(J),m5!==null)){for(var $="",q=0;q<=T3;q++){var G=m5[q],X=q===T3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=X+`
103
103
  `,$+=G}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
104
 
105
105
  Previous render Next render
106
106
  ------------------------------------------------------
107
107
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
- `,J,$)}}}function _7(_){_===void 0||_===null||U2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",F1,typeof _)}function f$(){var _=m(i1);TL.has(_)||(TL.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function g0(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
108
+ `,J,$)}}}function U7(_){_===void 0||_===null||Y2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",X1,typeof _)}function j$(){var _=x(a1);RL.has(_)||(RL.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function r0(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
112
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function dU(_,J){if(h_)return!1;if(J===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",F1),!1;_.length!==J.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function rU(_,J){if(c_)return!1;if(J===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",X1),!1;_.length!==J.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,F1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!p2(_[$],J[$]))return!1;return!0}function iU(_,J,$,q,G,K){if(F3=K,i1=J,y5=_!==null?_._debugHookTypes:null,X3=-1,h_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")K=m(i1),KF.has(K)||(KF.add(K),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",K===null?"An unknown Component":"<"+K+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,H1.H=_!==null&&_.memoizedState!==null?HF:y5!==null?RL:XF,Z8=K=(J.mode&j2)!==p1;var z=$F($,q,G);if(Z8=!1,h7&&(z=rU(J,$,q,G)),K){b1(!0);try{z=rU(J,$,q,G)}finally{b1(!1)}}return KY(_,J),z}function KY(_,J){J._debugHookTypes=y5,J.dependencies===null?K3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:K3}):J.dependencies._debugThenableState=K3,H1.H=x_;var $=w0!==null&&w0.next!==null;if(F3=0,y5=F1=o0=w0=i1=null,X3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),EQ=!1,E_=0,K3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||n0||(_=_.dependencies,_!==null&&B$(_)&&(n0=!0)),D_?(D_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",ML.has(J)||KF.has(J)||(ML.add(J),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function rU(_,J,$,q){i1=_;var G=0;do{if(h7&&(K3=null),E_=0,h7=!1,G>=vP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,h_=!1,o0=w0=null,_.updateQueue!=null){var K=_.updateQueue;K.lastEffect=null,K.events=null,K.stores=null,K.memoCache!=null&&(K.memoCache.index=0)}X3=-1,H1.H=OL,K=$F(J,$,q)}while(h7);return K}function rO(){var _=H1.H,J=_.useState()[0];return J=typeof J.then==="function"?c9(J):J,_=_.useState()[0],(w0!==null?w0.memoizedState:null)!==_&&(i1.flags|=1024),J}function aU(){var _=hQ!==0;return hQ=0,_}function sU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&i5)!==p1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function tU(_){if(EQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}EQ=!1}F3=0,y5=o0=w0=i1=null,X3=-1,F1=null,h7=!1,E_=hQ=0,K3=null}function h2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return o0===null?i1.memoizedState=o0=_:o0=o0.next=_,o0}function M0(){if(w0===null){var _=i1.alternate;_=_!==null?_.memoizedState:null}else _=w0.next;var J=o0===null?i1.memoizedState:o0.next;if(J!==null)o0=J,w0=_;else{if(_===null){if(i1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}w0=_,_={memoizedState:w0.memoizedState,baseState:w0.baseState,baseQueue:w0.baseQueue,queue:w0.queue,next:null},o0===null?i1.memoizedState=o0=_:o0=o0.next=_}return o0}function S$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function c9(_){var J=E_;return E_+=1,K3===null&&(K3=sH()),_=oH(K3,_,J),J=i1,(o0===null?J.memoizedState:o0.next)===null&&(J=J.alternate,H1.H=J!==null&&J.memoizedState!==null?HF:XF),_}function m3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return c9(_);if(_.$$typeof===w4)return V0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function l6(_){var J=null,$=i1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=i1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(G){return G.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=S$(),i1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||h_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=Fw;else $.length!==_&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",$.length,_);return J.index++,$}function p5(_,J){return typeof J==="function"?J(_):J}function oU(_,J,$){var q=h2();if($!==void 0){var G=$(J);if(Z8){b1(!0);try{$(J)}finally{b1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=nO.bind(null,i1,_),[q.memoizedState,_]}function J7(_){var J=M0();return nU(J,w0,_)}function nU(_,J,$){var q=_.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=$;var G=_.baseQueue,K=q.pending;if(K!==null){if(G!==null){var z=G.next;G.next=K.next,K.next=z}J.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=G=K,q.pending=null}if(K=_.baseState,G===null)_.memoizedState=K;else{J=G.next;var L=z=null,I=null,f=J,n=!1;do{var _1=f.lane&-536870913;if(_1!==f.lane?(n1&_1)===_1:(F3&_1)===_1){var i=f.revertLane;if(i===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),_1===$8&&(n=!0);else if((F3&i)===i){f=f.next,i===$8&&(n=!0);continue}else _1={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(L=I=_1,z=K):I=I.next=_1,i1.lanes|=i,Z6|=i;_1=f.action,Z8&&$(K,_1),K=f.hasEagerState?f.eagerState:$(K,_1)}else i={lane:_1,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(L=I=i,z=K):I=I.next=i,i1.lanes|=_1,Z6|=_1;f=f.next}while(f!==null&&f!==J);if(I===null?z=K:I.next=L,!p2(K,_.memoizedState)&&(n0=!0,n&&($=y7,$!==null)))throw $;_.memoizedState=K,_.baseState=z,_.baseQueue=I,q.lastRenderedState=K}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function l9(_){var J=M0(),$=J.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=_;var{dispatch:q,pending:G}=$,K=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do K=_(K,z.action),z=z.next;while(z!==G);p2(K,J.memoizedState)||(n0=!0),J.memoizedState=K,J.baseQueue===null&&(J.baseState=K),$.lastRenderedState=K}return[K,q]}function eU(_,J,$){var q=i1,G=h2();if(G0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var K=$();E7||K===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),E7=!0)}else{if(K=J(),E7||($=J(),p2(K,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),E7=!0)),P0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(n1&127)!==0||XY(q,J,K)}return G.memoizedState=K,$={value:K,getSnapshot:J},G.queue=$,y$(YY.bind(null,q,$,_),[_]),q.flags|=2048,Q7(V5|d2,{destroy:void 0},HY.bind(null,q,$,K,J),null),K}function j$(_,J,$){var q=i1,G=M0(),K=G0;if(K){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!E7){var z=J();p2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),E7=!0)}if(z=!p2((w0||G).memoizedState,$))G.memoizedState=$,n0=!0;G=G.queue;var L=YY.bind(null,q,G,_);if(n2(2048,d2,L,[_]),G.getSnapshot!==J||z||o0!==null&&o0.memoizedState.tag&V5){if(q.flags|=2048,Q7(V5|d2,{destroy:void 0},HY.bind(null,q,G,$,J),null),P0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");K||(F3&127)!==0||XY(q,J,$)}return $}function XY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=i1.updateQueue,J===null?(J=S$(),i1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function HY(_,J,$,q){J.value=$,J.getSnapshot=q,zY(J)&&WY(_)}function YY(_,J,$){return $(function(){zY(J)&&(K4(2,"updateSyncExternalStore()",_),WY(_))})}function zY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!p2(_,$)}catch(q){return!0}}function WY(_){var J=f2(_,2);J!==null&&h0(J,_,2)}function _G(_){var J=h2();if(typeof _==="function"){var $=_;if(_=$(),Z8){b1(!0);try{$()}finally{b1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p5,lastRenderedState:_},J}function JG(_){_=_G(_);var J=_.queue,$=kY.bind(null,i1,J);return J.dispatch=$,[_.memoizedState,$]}function $G(_){var J=h2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=LG.bind(null,i1,!0,$),$.dispatch=J,[_,J]}function BY(_,J){var $=M0();return LY($,w0,_,J)}function LY(_,J,$,q){return _.baseState=$,nU(_,w0,typeof q==="function"?q:p5)}function AY(_,J){var $=M0();if(w0!==null)return LY($,w0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function aO(_,J,$,q,G){if(h$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var K={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){K.listeners.push(z)}};H1.T!==null?$(!0):K.isTransition=!1,q(K),$=J.pending,$===null?(K.next=J.pending=K,MY(J,K)):(K.next=$.next,J.pending=$.next=K)}}function MY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var K=H1.T,z={};z._updatedFibers=new Set,H1.T=z;try{var L=$(G,q),I=H1.S;I!==null&&I(z,L),TY(_,J,L)}catch(f){QG(_,J,f)}finally{K!==null&&z.types!==null&&(K.types!==null&&K.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),K.types=z.types),H1.T=K,K===null&&z._updatedFibers&&(_=z._updatedFibers.size,z._updatedFibers.clear(),10<_&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{z=$(G,q),TY(_,J,z)}catch(f){QG(_,J,f)}}function TY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(H1.asyncTransitions++,$.then(E$,E$),$.then(function(q){RY(_,J,q)},function(q){return QG(_,J,q)}),J.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):RY(_,J,$)}function RY(_,J,$){J.status="fulfilled",J.value=$,OY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,MY(_,$)))}function QG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,OY(J),J=J.next;while(J!==q)}_.action=null}function OY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function IY(_,J){return J}function $7(_,J){if(G0){var $=P0.formState;if($!==null){_:{var q=i1;if(G0){if(j0){J:{var G=j0;for(var K=S5;G.nodeType!==8;){if(!K){G=null;break J}if(G=H5(G.nextSibling),G===null){G=null;break J}}K=G.data,G=K===DF||K===GA?G:null}if(G){j0=H5(G.nextSibling),q=G.data===DF;break _}}k3(q)}q=!1}q&&(J=$[0])}}return $=h2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IY,lastRenderedState:J},$.queue=q,$=kY.bind(null,i1,q),q.dispatch=$,q=_G(!1),K=LG.bind(null,i1,!1,q.queue),q=h2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=aO.bind(null,i1,G,K,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function v$(_){var J=M0();return wY(J,w0,_)}function wY(_,J,$){if(J=nU(_,J,IY)[0],_=J7(p5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=c9(J)}catch(z){if(z===k7)throw kQ;throw z}else q=J;J=M0();var G=J.queue,K=G.dispatch;return $!==J.memoizedState&&(i1.flags|=2048,Q7(V5|d2,{destroy:void 0},sO.bind(null,G,$),null)),[q,K,_]}function sO(_,J){_.action=J}function V$(_){var J=M0(),$=w0;if($!==null)return wY(J,$,_);M0(),J=J.memoizedState,$=M0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function Q7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=i1.updateQueue,J===null&&(J=S$(),i1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function qG(_){var J=h2();return _={current:_},J.memoizedState=_}function d6(_,J,$,q){var G=h2();i1.flags|=_,G.memoizedState=Q7(V5|J,{destroy:void 0},$,q===void 0?null:q)}function n2(_,J,$,q){var G=M0();q=q===void 0?null:q;var K=G.memoizedState.inst;w0!==null&&q!==null&&dU(q,w0.memoizedState.deps)?G.memoizedState=Q7(J,K,$,q):(i1.flags|=_,G.memoizedState=Q7(V5|J,K,$,q))}function y$(_,J){(i1.mode&i5)!==p1?d6(276826112,d2,_,J):d6(8390656,d2,_,J)}function tO(_){i1.flags|=4;var J=i1.updateQueue;if(J===null)J=S$(),i1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function UG(_){var J=h2(),$={impl:_};return J.memoizedState=$,function(){if((H0&Z2)!==L2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function k$(_){var J=M0().memoizedState;return tO({ref:J,nextImpl:_}),function(){if((H0&Z2)!==L2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function GG(_,J){var $=4194308;return(i1.mode&i5)!==p1&&($|=134217728),d6($,A5,_,J)}function PY(_,J){if(typeof J==="function"){_=_();var $=J(_);return function(){typeof $==="function"?$():J(null)}}if(J!==null&&J!==void 0)return J.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(J).join(", ")+"}"),_=_(),J.current=_,function(){J.current=null}}function ZG(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null;var q=4194308;(i1.mode&i5)!==p1&&(q|=134217728),d6(q,A5,PY.bind(null,J,_),$)}function D$(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null,n2(4,A5,PY.bind(null,J,_),$)}function FG(_,J){return h2().memoizedState=[_,J===void 0?null:J],_}function u$(_,J){var $=M0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&dU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function KG(_,J){var $=h2();J=J===void 0?null:J;var q=_();if(Z8){b1(!0);try{_()}finally{b1(!1)}}return $.memoizedState=[q,J],q}function b$(_,J){var $=M0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&dU(J,q[1]))return q[0];if(q=_(),Z8){b1(!0);try{_()}finally{b1(!1)}}return $.memoizedState=[q,J],q}function XG(_,J){var $=h2();return HG($,_,J)}function NY(_,J){var $=M0();return fY($,w0.memoizedState,_,J)}function CY(_,J){var $=M0();return w0===null?HG($,_,J):fY($,w0.memoizedState,_,J)}function HG(_,J,$){if($===void 0||(F3&1073741824)!==0&&(n1&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=Sz(),i1.lanes|=_,Z6|=_,$}function fY(_,J,$,q){if(p2($,J))return $;if(u7.current!==null)return _=HG(_,$,q),p2(_,J)||(n0=!0),_;if((F3&42)===0||(F3&1073741824)!==0&&(n1&261930)===0)return n0=!0,_.memoizedState=$;return _=Sz(),i1.lanes|=_,Z6|=_,J}function E$(){H1.asyncTransitions--}function SY(_,J,$,q,G){var K=L0.p;L0.p=K!==0&&K<d5?K:d5;var z=H1.T,L={};L._updatedFibers=new Set,H1.T=L,LG(_,!1,J,$);try{var I=G(),f=H1.S;if(f!==null&&f(L,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){H1.asyncTransitions++,I.then(E$,E$);var n=dO(I,q);d9(_,J,n,X5(_))}else d9(_,J,q,X5(_))}catch(_1){d9(_,J,{then:function(){},status:"rejected",reason:_1},X5(_))}finally{L0.p=K,z!==null&&L.types!==null&&(z.types!==null&&z.types!==L.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=L.types),H1.T=z,z===null&&L._updatedFibers&&(_=L._updatedFibers.size,L._updatedFibers.clear(),10<_&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function YG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=jY(_).queue;cO(_),SY(_,G,J,M8,$===null?R:function(){return vY(_),$(q)})}function jY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:M8,baseState:M8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:p5,lastRenderedState:M8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:p5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function vY(_){H1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=jY(_);J.next===null&&(J=_.alternate.memoizedState),d9(_,J.next.queue,{},X5(_))}function zG(){var _=_G(!1);return _=SY.bind(null,i1,_.queue,!0,!1),h2().memoizedState=_,[!1,_]}function VY(){var _=J7(p5)[0],J=M0().memoizedState;return[typeof _==="boolean"?_:c9(_),J]}function yY(){var _=l9(p5)[0],J=M0().memoizedState;return[typeof _==="boolean"?_:c9(_),J]}function i6(){return V0(_J)}function WG(){var _=h2(),J=P0.identifierPrefix;if(G0){var $=Q3,q=$3;$=(q&~(1<<32-x2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=hQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=jP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function BG(){return h2().memoizedState=oO.bind(null,i1)}function oO(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=X5($),G=b3(q),K=E3($,G,q);K!==null&&(K4(q,"refresh()",_),h0(K,$,q),m9(K,$,q)),_=uU(),J!==null&&J!==void 0&&K!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function nO(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),q=X5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};h$(_)?DY(J,G):(G=wU(_,J,G,q),G!==null&&(K4(q,"dispatch()",_),h0(G,_,q),uY(G,J,q)))}function kY(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),q=X5(_),d9(_,J,$,q)&&K4(q,"setState()",_)}function d9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(h$(_))DY(J,G);else{var K=_.alternate;if(_.lanes===0&&(K===null||K.lanes===0)&&(K=J.lastRenderedReducer,K!==null)){var z=H1.H;H1.H=a5;try{var L=J.lastRenderedState,I=K(L,$);if(G.hasEagerState=!0,G.eagerState=I,p2(I,L))return X$(_,J,G,0),P0===null&&K$(),!1}catch(f){}finally{H1.H=z}}if($=wU(_,J,G,q),$!==null)return h0($,_,q),uY($,J,q),!0}return!1}function LG(_,J,$,q){if(H1.T===null&&$8===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),q={lane:2,revertLane:iG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},h$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=wU(_,$,q,2),J!==null&&(K4(2,"setOptimistic()",_),h0(J,_,2))}function h$(_){var J=_.alternate;return _===i1||J!==null&&J===i1}function DY(_,J){h7=EQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function uY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,g4(_,$)}}function AG(_){if(_!==null&&typeof _!=="function"){var J=String(_);yL.has(J)||(yL.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function MG(_,J,$,q){var G=_.memoizedState,K=$(q,G);if(_.mode&j2){b1(!0);try{K=$(q,G)}finally{b1(!1)}}K===void 0&&(J=b(J)||"Component",SL.has(J)||(SL.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=K===null||K===void 0?G:J0({},G,K),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function bY(_,J,$,q,G,K,z){var L=_.stateNode;if(typeof L.shouldComponentUpdate==="function"){if($=L.shouldComponentUpdate(q,K,z),_.mode&j2){b1(!0);try{$=L.shouldComponentUpdate(q,K,z)}finally{b1(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",b(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!k9($,q)||!k9(G,K):!0}function EY(_,J,$,q){var G=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==G&&(_=m(_)||"Component",wL.has(_)||(wL.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),YF.enqueueReplaceState(J,J.state,null))}function r6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=J0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function hY(_){cZ(_),console.warn(`%s
115
+ Incoming: %s`,X1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!d2(_[$],J[$]))return!1;return!0}function aU(_,J,$,q,G,X){if(A3=X,a1=J,m5=_!==null?_._debugHookTypes:null,T3=-1,c_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=x(a1),HF.has(X)||(HF.add(X),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",X===null?"An unknown Component":"<"+X+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,Y1.H=_!==null&&_.memoizedState!==null?zF:m5!==null?OL:YF,z8=X=(J.mode&u2)!==i1;var z=qF($,q,G);if(z8=!1,c7&&(z=sU(J,$,q,G)),X){o1(!0);try{z=sU(J,$,q,G)}finally{o1(!1)}}return KY(_,J),z}function KY(_,J){J._debugHookTypes=m5,J.dependencies===null?M3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:M3}):J.dependencies._debugThenableState=M3,Y1.H=l_;var $=N0!==null&&N0.next!==null;if(A3=0,m5=X1=Q2=N0=a1=null,T3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xQ=!1,p_=0,M3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||q2||(_=_.dependencies,_!==null&&A$(_)&&(q2=!0)),x_?(x_=!1,_=!0):_=!1,_&&(J=x(J)||"Unknown",TL.has(J)||HF.has(J)||(TL.add(J),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function sU(_,J,$,q){a1=_;var G=0;do{if(c7&&(M3=null),p_=0,c7=!1,G>=uP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,c_=!1,Q2=N0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}T3=-1,Y1.H=IL,X=qF(J,$,q)}while(c7);return X}function nO(){var _=Y1.H,J=_.useState()[0];return J=typeof J.then==="function"?a9(J):J,_=_.useState()[0],(N0!==null?N0.memoizedState:null)!==_&&(a1.flags|=1024),J}function tU(){var _=mQ!==0;return mQ=0,_}function oU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&_4)!==i1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function nU(_){if(xQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}xQ=!1}A3=0,m5=Q2=N0=a1=null,T3=-1,X1=null,c7=!1,p_=mQ=0,M3=null}function p2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_,Q2}function R0(){if(N0===null){var _=a1.alternate;_=_!==null?_.memoizedState:null}else _=N0.next;var J=Q2===null?a1.memoizedState:Q2.next;if(J!==null)Q2=J,N0=_;else{if(_===null){if(a1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}N0=_,_={memoizedState:N0.memoizedState,baseState:N0.baseState,baseQueue:N0.baseQueue,queue:N0.queue,next:null},Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_}return Q2}function v$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function a9(_){var J=p_;return p_+=1,M3===null&&(M3=tH()),_=nH(M3,_,J),J=a1,(Q2===null?J.memoizedState:Q2.next)===null&&(J=J.alternate,Y1.H=J!==null&&J.memoizedState!==null?zF:YF),_}function t3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return a9(_);if(_.$$typeof===V4)return u0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function t6(_){var J=null,$=a1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=a1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(G){return G.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=v$(),a1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||c_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=zw;else $.length!==_&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",$.length,_);return J.index++,$}function t5(_,J){return typeof J==="function"?J(_):J}function eU(_,J,$){var q=p2();if($!==void 0){var G=$(J);if(z8){o1(!0);try{$(J)}finally{o1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=QI.bind(null,a1,_),[q.memoizedState,_]}function G7(_){var J=R0();return _G(J,N0,_)}function _G(_,J,$){var q=_.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=$;var G=_.baseQueue,X=q.pending;if(X!==null){if(G!==null){var z=G.next;G.next=X.next,X.next=z}J.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=G=X,q.pending=null}if(X=_.baseState,G===null)_.memoizedState=X;else{J=G.next;var L=z=null,w=null,S=J,e=!1;do{var _1=S.lane&-536870913;if(_1!==S.lane?(J0&_1)===_1:(A3&_1)===_1){var r=S.revertLane;if(r===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),_1===F8&&(e=!0);else if((A3&r)===r){S=S.next,r===F8&&(e=!0);continue}else _1={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(L=w=_1,z=X):w=w.next=_1,a1.lanes|=r,A6|=r;_1=S.action,z8&&$(X,_1),X=S.hasEagerState?S.eagerState:$(X,_1)}else r={lane:_1,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(L=w=r,z=X):w=w.next=r,a1.lanes|=_1,A6|=_1;S=S.next}while(S!==null&&S!==J);if(w===null?z=X:w.next=L,!d2(X,_.memoizedState)&&(q2=!0,e&&($=E7,$!==null)))throw $;_.memoizedState=X,_.baseState=z,_.baseQueue=w,q.lastRenderedState=X}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function s9(_){var J=R0(),$=J.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=_;var{dispatch:q,pending:G}=$,X=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do X=_(X,z.action),z=z.next;while(z!==G);d2(X,J.memoizedState)||(q2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function JG(_,J,$){var q=a1,G=p2();if(F0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();p7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),p7=!0)}else{if(X=J(),p7||($=J(),d2(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)),C0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(J0&127)!==0||HY(q,J,X)}return G.memoizedState=X,$={value:X,getSnapshot:J},G.queue=$,D$(zY.bind(null,q,$,_),[_]),q.flags|=2048,F7(x5|s2,{destroy:void 0},YY.bind(null,q,$,X,J),null),X}function V$(_,J,$){var q=a1,G=R0(),X=F0;if(X){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!p7){var z=J();d2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)}if(z=!d2((N0||G).memoizedState,$))G.memoizedState=$,q2=!0;G=G.queue;var L=zY.bind(null,q,G,_);if($5(2048,s2,L,[_]),G.getSnapshot!==J||z||Q2!==null&&Q2.memoizedState.tag&x5){if(q.flags|=2048,F7(x5|s2,{destroy:void 0},YY.bind(null,q,G,$,J),null),C0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(A3&127)!==0||HY(q,J,$)}return $}function HY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=a1.updateQueue,J===null?(J=v$(),a1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function YY(_,J,$,q){J.value=$,J.getSnapshot=q,WY(J)&&BY(_)}function zY(_,J,$){return $(function(){WY(J)&&(A4(2,"updateSyncExternalStore()",_),BY(_))})}function WY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!d2(_,$)}catch(q){return!0}}function BY(_){var J=k2(_,2);J!==null&&c0(J,_,2)}function $G(_){var J=p2();if(typeof _==="function"){var $=_;if(_=$(),z8){o1(!0);try{$()}finally{o1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:_},J}function QG(_){_=$G(_);var J=_.queue,$=DY.bind(null,a1,J);return J.dispatch=$,[_.memoizedState,$]}function qG(_){var J=p2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=MG.bind(null,a1,!0,$),$.dispatch=J,[_,J]}function LY(_,J){var $=R0();return AY($,N0,_,J)}function AY(_,J,$,q){return _.baseState=$,_G(_,N0,typeof q==="function"?q:t5)}function MY(_,J){var $=R0();if(N0!==null)return AY($,N0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function eO(_,J,$,q,G){if(m$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var X={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){X.listeners.push(z)}};Y1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,TY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function TY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var X=Y1.T,z={};z._updatedFibers=new Set,Y1.T=z;try{var L=$(G,q),w=Y1.S;w!==null&&w(z,L),RY(_,J,L)}catch(S){UG(_,J,S)}finally{X!==null&&z.types!==null&&(X.types!==null&&X.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),X.types=z.types),Y1.T=X,X===null&&z._updatedFibers&&(_=z._updatedFibers.size,z._updatedFibers.clear(),10<_&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{z=$(G,q),RY(_,J,z)}catch(S){UG(_,J,S)}}function RY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(Y1.asyncTransitions++,$.then(x$,x$),$.then(function(q){OY(_,J,q)},function(q){return UG(_,J,q)}),J.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):OY(_,J,$)}function OY(_,J,$){J.status="fulfilled",J.value=$,IY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,TY(_,$)))}function UG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,IY(J),J=J.next;while(J!==q)}_.action=null}function IY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function wY(_,J){return J}function Z7(_,J){if(F0){var $=C0.formState;if($!==null){_:{var q=a1;if(F0){if(y0){J:{var G=y0;for(var X=b5;G.nodeType!==8;){if(!X){G=null;break J}if(G=B5(G.nextSibling),G===null){G=null;break J}}X=G.data,G=X===bF||X===ZA?G:null}if(G){y0=B5(G.nextSibling),q=G.data===bF;break _}}c3(q)}q=!1}q&&(J=$[0])}}return $=p2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wY,lastRenderedState:J},$.queue=q,$=DY.bind(null,a1,q),q.dispatch=$,q=$G(!1),X=MG.bind(null,a1,!1,q.queue),q=p2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=eO.bind(null,a1,G,X,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function y$(_){var J=R0();return PY(J,N0,_)}function PY(_,J,$){if(J=_G(_,J,wY)[0],_=G7(t5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=a9(J)}catch(z){if(z===h7)throw uQ;throw z}else q=J;J=R0();var G=J.queue,X=G.dispatch;return $!==J.memoizedState&&(a1.flags|=2048,F7(x5|s2,{destroy:void 0},_I.bind(null,G,$),null)),[q,X,_]}function _I(_,J){_.action=J}function k$(_){var J=R0(),$=N0;if($!==null)return PY(J,$,_);R0(),J=J.memoizedState,$=R0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function F7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=a1.updateQueue,J===null&&(J=v$(),a1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function GG(_){var J=p2();return _={current:_},J.memoizedState=_}function o6(_,J,$,q){var G=p2();a1.flags|=_,G.memoizedState=F7(x5|J,{destroy:void 0},$,q===void 0?null:q)}function $5(_,J,$,q){var G=R0();q=q===void 0?null:q;var X=G.memoizedState.inst;N0!==null&&q!==null&&rU(q,N0.memoizedState.deps)?G.memoizedState=F7(J,X,$,q):(a1.flags|=_,G.memoizedState=F7(x5|J,X,$,q))}function D$(_,J){(a1.mode&_4)!==i1?o6(276826112,s2,_,J):o6(8390656,s2,_,J)}function JI(_){a1.flags|=4;var J=a1.updateQueue;if(J===null)J=v$(),a1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function ZG(_){var J=p2(),$={impl:_};return J.memoizedState=$,function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function u$(_){var J=R0().memoizedState;return JI({ref:J,nextImpl:_}),function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function FG(_,J){var $=4194308;return(a1.mode&_4)!==i1&&($|=134217728),o6($,O5,_,J)}function NY(_,J){if(typeof J==="function"){_=_();var $=J(_);return function(){typeof $==="function"?$():J(null)}}if(J!==null&&J!==void 0)return J.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(J).join(", ")+"}"),_=_(),J.current=_,function(){J.current=null}}function XG(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null;var q=4194308;(a1.mode&_4)!==i1&&(q|=134217728),o6(q,O5,NY.bind(null,J,_),$)}function b$(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null,$5(4,O5,NY.bind(null,J,_),$)}function KG(_,J){return p2().memoizedState=[_,J===void 0?null:J],_}function E$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function HG(_,J){var $=p2();J=J===void 0?null:J;var q=_();if(z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function h$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];if(q=_(),z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function YG(_,J){var $=p2();return zG($,_,J)}function CY(_,J){var $=R0();return SY($,N0.memoizedState,_,J)}function fY(_,J){var $=R0();return N0===null?zG($,_,J):SY($,N0.memoizedState,_,J)}function zG(_,J,$){if($===void 0||(A3&1073741824)!==0&&(J0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=jz(),a1.lanes|=_,A6|=_,$}function SY(_,J,$,q){if(d2($,J))return $;if(m7.current!==null)return _=zG(_,$,q),d2(_,J)||(q2=!0),_;if((A3&42)===0||(A3&1073741824)!==0&&(J0&261930)===0)return q2=!0,_.memoizedState=$;return _=jz(),a1.lanes|=_,A6|=_,J}function x$(){Y1.asyncTransitions--}function jY(_,J,$,q,G){var X=A0.p;A0.p=X!==0&&X<e5?X:e5;var z=Y1.T,L={};L._updatedFibers=new Set,Y1.T=L,MG(_,!1,J,$);try{var w=G(),S=Y1.S;if(S!==null&&S(L,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){Y1.asyncTransitions++,w.then(x$,x$);var e=tO(w,q);t9(_,J,e,W5(_))}else t9(_,J,q,W5(_))}catch(_1){t9(_,J,{then:function(){},status:"rejected",reason:_1},W5(_))}finally{A0.p=X,z!==null&&L.types!==null&&(z.types!==null&&z.types!==L.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=L.types),Y1.T=z,z===null&&L._updatedFibers&&(_=L._updatedFibers.size,L._updatedFibers.clear(),10<_&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function WG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=vY(_).queue;aO(_),jY(_,G,J,P8,$===null?R:function(){return VY(_),$(q)})}function vY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:P8,baseState:P8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:P8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function VY(_){Y1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=vY(_);J.next===null&&(J=_.alternate.memoizedState),t9(_,J.next.queue,{},W5(_))}function BG(){var _=$G(!1);return _=jY.bind(null,a1,_.queue,!0,!1),p2().memoizedState=_,[!1,_]}function yY(){var _=G7(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:a9(_),J]}function kY(){var _=s9(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:a9(_),J]}function n6(){return u0(UJ)}function LG(){var _=p2(),J=C0.identifierPrefix;if(F0){var $=Y3,q=H3;$=(q&~(1<<32-c2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=mQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=DP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function AG(){return p2().memoizedState=$I.bind(null,a1)}function $I(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=W5($),G=d3(q),X=r3($,G,q);X!==null&&(A4(q,"refresh()",_),c0(X,$,q),i9(X,$,q)),_=EU(),J!==null&&J!==void 0&&X!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function QI(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),q=W5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};m$(_)?uY(J,G):(G=NU(_,J,G,q),G!==null&&(A4(q,"dispatch()",_),c0(G,_,q),bY(G,J,q)))}function DY(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),q=W5(_),t9(_,J,$,q)&&A4(q,"setState()",_)}function t9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(m$(_))uY(J,G);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var z=Y1.H;Y1.H=$4;try{var L=J.lastRenderedState,w=X(L,$);if(G.hasEagerState=!0,G.eagerState=w,d2(w,L))return Y$(_,J,G,0),C0===null&&H$(),!1}catch(S){}finally{Y1.H=z}}if($=NU(_,J,G,q),$!==null)return c0($,_,q),bY($,J,q),!0}return!1}function MG(_,J,$,q){if(Y1.T===null&&F8===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),q={lane:2,revertLane:aG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},m$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=NU(_,$,q,2),J!==null&&(A4(2,"setOptimistic()",_),c0(J,_,2))}function m$(_){var J=_.alternate;return _===a1||J!==null&&J===a1}function uY(_,J){c7=xQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function bY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,f5(_,$)}}function TG(_){if(_!==null&&typeof _!=="function"){var J=String(_);kL.has(J)||(kL.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function RG(_,J,$,q){var G=_.memoizedState,X=$(q,G);if(_.mode&u2){o1(!0);try{X=$(q,G)}finally{o1(!1)}}X===void 0&&(J=b(J)||"Component",jL.has(J)||(jL.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=X===null||X===void 0?G:U0({},G,X),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function EY(_,J,$,q,G,X,z){var L=_.stateNode;if(typeof L.shouldComponentUpdate==="function"){if($=L.shouldComponentUpdate(q,X,z),_.mode&u2){o1(!0);try{$=L.shouldComponentUpdate(q,X,z)}finally{o1(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",b(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!h9($,q)||!h9(G,X):!0}function hY(_,J,$,q){var G=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==G&&(_=x(_)||"Component",PL.has(_)||(PL.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),WF.enqueueReplaceState(J,J.state,null))}function e6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=U0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function xY(_){iZ(_),console.warn(`%s
116
116
 
117
117
  %s
118
- `,x7?"An error occurred in the <"+x7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function xY(_){var J=x7?"The above error occurred in the <"+x7+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((zF||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
118
+ `,l7?"An error occurred in the <"+l7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function mY(_){var J=l7?"The above error occurred in the <"+l7+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((BF||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,WA+" "+_[0],BA,Kq+q+Kq,LA):_.splice(0,0,WA,BA,Kq+q+Kq,LA),_.unshift(console),q=tP.apply(console.error,_),q()}else console.error(`%o
124
+ `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,BA+" "+_[0],LA,Hq+q+Hq,AA):_.splice(0,0,BA,LA,Hq+q+Hq,AA),_.unshift(console),q=JN.apply(console.error,_),q()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,_,J,$)}function mY(_){cZ(_)}function x$(_,J){try{x7=J.source?m(J.source):null,zF=null;var $=J.value;if(H1.actQueue!==null)H1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function gY(_,J,$){try{x7=$.source?m($.source):null,zF=m(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function TG(_,J,$){return $=b3($),$.tag=GF,$.payload={element:null},$.callback=function(){M1(J.source,x$,_,J)},$}function RG(_){return _=b3(_),_.tag=GF,_}function OG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var K=q.value;_.payload=function(){return G(K)},_.callback=function(){DH($),M1(q.source,gY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){DH($),M1(q.source,gY,J,$,q),typeof G!=="function"&&(K6===null?K6=new Set([this]):K6.add(this)),NP(this,q),typeof G==="function"||($.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",m($)||"Unknown")})}function eO(_,J,$,q,G){if($.flags|=32768,C4&&e9(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&e8(J,$,G,!0),G0&&(j4=!0),$=L5.current,$!==null){switch($.tag){case 31:case 13:return v5===null?a$():$.alternate===null&&b0===Y3&&(b0=gQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===DQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),pG(_,q,G)),!1;case 22:return $.flags|=65536,q===DQ?$.flags|=16384:(J=$.updateQueue,J===null?(J={transitions:null,markerInstances:null,retryQueue:new Set([q])},$.updateQueue=J):($=J.retryQueue,$===null?J.retryQueue=new Set([q]):$.add(q)),pG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return pG(_,q,G),a$(),!1}if(G0)return j4=!0,J=L5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==sZ&&u9(G5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:q}),$))):(q!==sZ&&u9(G5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),$)),_=_.current.alternate,_.flags|=65536,G&=-G,_.lanes|=G,q=G5(q,$),G=TG(_.stateNode,q,G),N$(_,G),b0!==U6&&(b0=F8)),!1;var K=G5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(d_===null?d_=[K]:d_.push(K),b0!==U6&&(b0=F8),J===null)return!0;q=G5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=TG($.stateNode,q,_),N$($,_),!1;case 1:if(J=$.type,K=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||K!==null&&typeof K.componentDidCatch==="function"&&(K6===null||!K6.has(K))))return $.flags|=65536,G&=-G,$.lanes|=G,G=RG(G),OG(G,_,$,q),N$($,G),!1}$=$.return}while($!==null);return!1}function T2(_,J,$,q){J.child=_===null?YL(J,null,$,q):G8(J,_.child,$,q)}function pY(_,J,$,q,G){$=$.render;var K=J.ref;if("ref"in q){var z={};for(var L in q)L!=="ref"&&(z[L]=q[L])}else z=q;if(p6(J),q=iU(_,J,$,z,K,G),L=aU(),_!==null&&!n0)return sU(_,J,G),t4(_,J,G);return G0&&L&&jU(J),J.flags|=1,T2(_,J,q,G),J.child}function cY(_,J,$,q,G){if(_===null){var K=$.type;if(typeof K==="function"&&!NU(K)&&K.defaultProps===void 0&&$.compare===null)return $=h6(K),J.tag=15,J.type=$,wG(J,K),lY(_,J,$,q,G);return _=CU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(K=_.child,!jG(_,G)){var z=K.memoizedProps;if($=$.compare,$=$!==null?$:k9,$(z,q)&&_.ref===J.ref)return t4(_,J,G)}return J.flags|=1,_=i4(K,q),_.ref=J.ref,_.return=J,J.child=_}function lY(_,J,$,q,G){if(_!==null){var K=_.memoizedProps;if(k9(K,q)&&_.ref===J.ref&&J.type===_.type)if(n0=!1,J.pendingProps=q=K,jG(_,G))(_.flags&131072)!==0&&(n0=!0);else return J.lanes=_.lanes,t4(_,J,G)}return IG(_,J,$,q,G)}function dY(_,J,$,q){var G=q.children,K=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:R_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(K=K!==null?K.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~K}else q=0,J.child=null;return iY(_,J,K,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&T$(J,K!==null?K.cachePool:null),K!==null?ZY(J,K):pU(J),FY(J);else return q=J.lanes=536870912,iY(_,J,K!==null?K.baseLanes|$:$,$,q)}else K!==null?(T$(J,K.cachePool),ZY(J,K),x3(J),J.memoizedState=null):(_!==null&&T$(J,null),pU(J),x3(J));return T2(_,J,G,$),J.child}function i9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:R_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function iY(_,J,$,q,G){var K=hU();return K=K===null?null:{parent:s0._currentValue,pool:K},J.memoizedState={baseLanes:$,cachePool:K},_!==null&&T$(J,null),pU(J),FY(J),_!==null&&e8(_,J,q,!0),J.childLanes=G,null}function m$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,_,J,$)}function gY(_){iZ(_)}function g$(_,J){try{l7=J.source?x(J.source):null,BF=null;var $=J.value;if(Y1.actQueue!==null)Y1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function pY(_,J,$){try{l7=$.source?x($.source):null,BF=x(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function OG(_,J,$){return $=d3($),$.tag=FF,$.payload={element:null},$.callback=function(){A1(J.source,g$,_,J)},$}function IG(_){return _=d3(_),_.tag=FF,_}function wG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var X=q.value;_.payload=function(){return G(X)},_.callback=function(){uH($),A1(q.source,pY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){uH($),A1(q.source,pY,J,$,q),typeof G!=="function"&&(T6===null?T6=new Set([this]):T6.add(this)),vP(this,q),typeof G==="function"||($.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",x($)||"Unknown")})}function qI(_,J,$,q,G){if($.flags|=32768,D4&&q_(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&q7(J,$,G,!0),F0&&(E4=!0),$=R5.current,$!==null){switch($.tag){case 31:case 13:return h5===null?t$():$.alternate===null&&g0===O3&&(g0=cQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===bQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),lG(_,q,G)),!1;case 22:return $.flags|=65536,q===bQ?$.flags|=16384:(J=$.updateQueue,J===null?(J={transitions:null,markerInstances:null,retryQueue:new Set([q])},$.updateQueue=J):($=J.retryQueue,$===null?J.retryQueue=new Set([q]):$.add(q)),lG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return lG(_,q,G),t$(),!1}if(F0)return E4=!0,J=R5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==oZ&&m9(K5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:q}),$))):(q!==oZ&&m9(K5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),$)),_=_.current.alternate,_.flags|=65536,G&=-G,_.lanes|=G,q=K5(q,$),G=OG(_.stateNode,q,G),f$(_,G),g0!==B6&&(g0=W8)),!1;var X=K5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(t_===null?t_=[X]:t_.push(X),g0!==B6&&(g0=W8),J===null)return!0;q=K5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=OG($.stateNode,q,_),f$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(T6===null||!T6.has(X))))return $.flags|=65536,G&=-G,$.lanes|=G,G=IG(G),wG(G,_,$,q),f$($,G),!1}$=$.return}while($!==null);return!1}function S2(_,J,$,q){J.child=_===null?zL(J,null,$,q):Y8(J,_.child,$,q)}function cY(_,J,$,q,G){$=$.render;var X=J.ref;if("ref"in q){var z={};for(var L in q)L!=="ref"&&(z[L]=q[L])}else z=q;if(a6(J),q=aU(_,J,$,z,X,G),L=tU(),_!==null&&!q2)return oU(_,J,G),U3(_,J,G);return F0&&L&&VU(J),J.flags|=1,S2(_,J,q,G),J.child}function lY(_,J,$,q,G){if(_===null){var X=$.type;if(typeof X==="function"&&!fU(X)&&X.defaultProps===void 0&&$.compare===null)return $=l6(X),J.tag=15,J.type=$,NG(J,X),iY(_,J,$,q,G);return _=SU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(X=_.child,!VG(_,G)){var z=X.memoizedProps;if($=$.compare,$=$!==null?$:h9,$(z,q)&&_.ref===J.ref)return U3(_,J,G)}return J.flags|=1,_=J3(X,q),_.ref=J.ref,_.return=J,J.child=_}function iY(_,J,$,q,G){if(_!==null){var X=_.memoizedProps;if(h9(X,q)&&_.ref===J.ref&&J.type===_.type)if(q2=!1,J.pendingProps=q=X,VG(_,G))(_.flags&131072)!==0&&(q2=!0);else return J.lanes=_.lanes,U3(_,J,G)}return PG(_,J,$,q,G)}function dY(_,J,$,q){var G=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:N_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(X=X!==null?X.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~X}else q=0,J.child=null;return rY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&O$(J,X!==null?X.cachePool:null),X!==null?FY(J,X):lU(J),XY(J);else return q=J.lanes=536870912,rY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(O$(J,X.cachePool),FY(J,X),s3(J),J.memoizedState=null):(_!==null&&O$(J,null),lU(J),s3(J));return S2(_,J,G,$),J.child}function o9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:N_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function rY(_,J,$,q,G){var X=mU();return X=X===null?null:{parent:J2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&O$(J,null),lU(J),XY(J),_!==null&&q7(_,J,q,!0),J.childLanes=G,null}function p$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=p$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function rY(_,J,$){return G8(J,_.child,null,$),_=m$(J,J.pendingProps),_.flags|=2,K5(J),J.memoizedState=null,_}function _I(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(G0){if(q.mode==="hidden")return _=m$(J,q),J.lanes=536870912,i9(null,_);if(lU(J),(_=j0)?($=MW(_,S5),$=$!==null&&$.data===W8?$:null,$!==null&&(q={dehydrated:$,treeContext:xH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=EH($),q.return=J,J.child=q,I2=J,j0=null)):$=null,$===null)throw z$(J,_),k3(J);return J.lanes=536870912,null}return m$(J,q)}var K=_.memoizedState;if(K!==null){var z=K.dehydrated;if(lU(J),G)if(J.flags&256)J.flags&=-257,J=rY(_,J,$);else if(J.memoizedState!==null)J.child=_.child,J.flags|=128,J=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(gH(),($&536870912)!==0&&r$(J),n0||e8(_,J,$,!1),G=($&_.childLanes)!==0,n0||G){if(q=P0,q!==null&&(z=p4(q,$),z!==0&&z!==K.retryLane))throw K.retryLane=z,f2(_,z),h0(q,_,z),WF;a$(),J=rY(_,J,$)}else _=K.treeContext,j0=H5(z.nextSibling),I2=J,G0=!0,n3=null,j4=!1,B5=null,S5=!1,_!==null&&mH(J,_),J=m$(J,q),J.flags|=4096;return J}return K=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&r$(J),_=i4(K,q),_.ref=J.ref,J.child=_,_.return=J,_}function g$(_,J){var $=J.ref;if($===null)_!==null&&_.ref!==null&&(J.flags|=4194816);else{if(typeof $!=="function"&&typeof $!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(_===null||_.ref!==$)J.flags|=4194816}}function IG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var K=b($)||"Unknown";kL[K]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",K,K),kL[K]=!0)}if(J.mode&j2&&r5.recordLegacyContextWarning(J,null),_===null&&(wG(J,J.type),$.contextTypes&&(K=b($)||"Unknown",uL[K]||(uL[K]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",K)))),p6(J),$=iU(_,J,$,q,void 0,G),q=aU(),_!==null&&!n0)return sU(_,J,G),t4(_,J,G);return G0&&q&&jU(J),J.flags|=1,T2(_,J,$,G),J.child}function aY(_,J,$,q,G,K){if(p6(J),X3=-1,h_=_!==null&&_.type!==J.type,J.updateQueue=null,$=rU(J,q,$,G),KY(_,J),q=aU(),_!==null&&!n0)return sU(_,J,K),t4(_,J,K);return G0&&q&&jU(J),J.flags|=1,T2(_,J,$,K),J.child}function sY(_,J,$,q,G){switch(W(J)){case!1:var K=J.stateNode,z=new J.type(J.memoizedProps,K.context).state;K.updater.enqueueSetState(K,z,null);break;case!0:J.flags|=128,J.flags|=65536,K=Error("Simulated error coming from DevTools");var L=G&-G;if(J.lanes|=L,z=P0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");L=RG(L),OG(L,z,J,G5(K,J)),N$(J,L)}if(p6(J),J.stateNode===null){if(z=o3,K=$.contextType,"contextType"in $&&K!==null&&(K===void 0||K.$$typeof!==w4)&&!VL.has($)&&(VL.add($),L=K===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof K!=="object"?" However, it is set to a "+typeof K+".":K.$$typeof===BZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",b($)||"Component",L)),typeof K==="object"&&K!==null&&(z=V0(K)),K=new $(q,z),J.mode&j2){b1(!0);try{K=new $(q,z)}finally{b1(!1)}}if(z=J.memoizedState=K.state!==null&&K.state!==void 0?K.state:null,K.updater=YF,J.stateNode=K,K._reactInternals=J,K._reactInternalInstance=IL,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=b($)||"Component",PL.has(z)||(PL.add(z),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",z,K.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"){var I=L=z=null;if(typeof K.componentWillMount==="function"&&K.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof K.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof K.componentWillReceiveProps==="function"&&K.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof K.UNSAFE_componentWillReceiveProps==="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof K.componentWillUpdate==="function"&&K.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof K.UNSAFE_componentWillUpdate==="function"&&(I="UNSAFE_componentWillUpdate"),z!==null||L!==null||I!==null){K=b($)||"Component";var f=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";CL.has(K)||(CL.add(K),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=l$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function aY(_,J,$){return Y8(J,_.child,null,$),_=p$(J,J.pendingProps),_.flags|=2,z5(J),J.memoizedState=null,_}function UI(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(F0){if(q.mode==="hidden")return _=p$(J,q),J.lanes=536870912,o9(null,_);if(dU(J),(_=y0)?($=TW(_,b5),$=$!==null&&$.data===R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,V2=J,y0=null)):$=null,$===null)throw B$(J,_),c3(J);return J.lanes=536870912,null}return p$(J,q)}var X=_.memoizedState;if(X!==null){var z=X.dehydrated;if(dU(J),G)if(J.flags&256)J.flags&=-257,J=aY(_,J,$);else if(J.memoizedState!==null)J.child=_.child,J.flags|=128,J=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(pH(),($&536870912)!==0&&s$(J),q2||q7(_,J,$,!1),G=($&_.childLanes)!==0,q2||G){if(q=C0,q!==null&&(z=S5(q,$),z!==0&&z!==X.retryLane))throw X.retryLane=z,k2(_,z),c0(q,_,z),LF;t$(),J=aY(_,J,$)}else _=X.treeContext,y0=B5(z.nextSibling),V2=J,F0=!0,F6=null,E4=!1,T5=null,b5=!1,_!==null&&gH(J,_),J=p$(J,q),J.flags|=4096;return J}return X=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&s$(J),_=J3(X,q),_.ref=J.ref,J.child=_,_.return=J,_}function c$(_,J){var $=J.ref;if($===null)_!==null&&_.ref!==null&&(J.flags|=4194816);else{if(typeof $!=="function"&&typeof $!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(_===null||_.ref!==$)J.flags|=4194816}}function PG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var X=b($)||"Unknown";DL[X]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",X,X),DL[X]=!0)}if(J.mode&u2&&J4.recordLegacyContextWarning(J,null),_===null&&(NG(J,J.type),$.contextTypes&&(X=b($)||"Unknown",bL[X]||(bL[X]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",X)))),a6(J),$=aU(_,J,$,q,void 0,G),q=tU(),_!==null&&!q2)return oU(_,J,G),U3(_,J,G);return F0&&q&&VU(J),J.flags|=1,S2(_,J,$,G),J.child}function sY(_,J,$,q,G,X){if(a6(J),T3=-1,c_=_!==null&&_.type!==J.type,J.updateQueue=null,$=sU(J,q,$,G),KY(_,J),q=tU(),_!==null&&!q2)return oU(_,J,X),U3(_,J,X);return F0&&q&&VU(J),J.flags|=1,S2(_,J,$,X),J.child}function tY(_,J,$,q,G){switch(W(J)){case!1:var X=J.stateNode,z=new J.type(J.memoizedProps,X.context).state;X.updater.enqueueSetState(X,z,null);break;case!0:J.flags|=128,J.flags|=65536,X=Error("Simulated error coming from DevTools");var L=G&-G;if(J.lanes|=L,z=C0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");L=IG(L),wG(L,z,J,K5(X,J)),f$(J,L)}if(a6(J),J.stateNode===null){if(z=Z6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==V4)&&!yL.has($)&&(yL.add($),L=X===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof X!=="object"?" However, it is set to a "+typeof X+".":X.$$typeof===AZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(X).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",b($)||"Component",L)),typeof X==="object"&&X!==null&&(z=u0(X)),X=new $(q,z),J.mode&u2){o1(!0);try{X=new $(q,z)}finally{o1(!1)}}if(z=J.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,X.updater=WF,J.stateNode=X,X._reactInternals=J,X._reactInternalInstance=wL,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=b($)||"Component",NL.has(z)||(NL.add(z),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",z,X.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"){var w=L=z=null;if(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof X.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps==="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0?w="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate==="function"&&(w="UNSAFE_componentWillUpdate"),z!==null||L!==null||w!==null){X=b($)||"Component";var S=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";fL.has(X)||(fL.add(X),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,K,f,z!==null?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,X,S,z!==null?`
137
137
  `+z:"",L!==null?`
138
- `+L:"",I!==null?`
139
- `+I:""))}}K=J.stateNode,z=b($)||"Component",K.render||($.prototype&&typeof $.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!K.getInitialState||K.getInitialState.isReactClassApproved||K.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",z),K.getDefaultProps&&!K.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",z),K.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!vL.has($)&&(vL.add($),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),$.contextTypes&&!jL.has($)&&(jL.add($),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",z)),typeof K.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",z),$.prototype&&$.prototype.isPureReactComponent&&typeof K.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",b($)||"A pure component"),typeof K.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof K.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",z),typeof K.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof K.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),L=K.props!==q,K.props!==void 0&&L&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),K.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",z,z),typeof K.getSnapshotBeforeUpdate!=="function"||typeof K.componentDidUpdate==="function"||NL.has($)||(NL.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",b($))),typeof K.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof K.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(L=K.state)&&(typeof L!=="object"||U2(L))&&console.error("%s.state: must be set to an object or null",z),typeof K.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),K=J.stateNode,K.props=q,K.state=J.memoizedState,K.refs={},mU(J),z=$.contextType,K.context=typeof z==="object"&&z!==null?V0(z):o3,K.state===q&&(z=b($)||"Component",fL.has(z)||(fL.add(z),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",z))),J.mode&j2&&r5.recordLegacyContextWarning(J,K),r5.recordUnsafeLifecycleWarnings(J,K),K.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(MG(J,$,z,q),K.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(z=K.state,typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount(),z!==K.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m(J)||"Component"),YF.enqueueReplaceState(K,K.state,null)),p9(J,q,K,G),g9(),K.state=J.memoizedState),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728),K=!0}else if(_===null){K=J.stateNode;var n=J.memoizedProps;L=r6($,n),K.props=L;var _1=K.context;I=$.contextType,z=o3,typeof I==="object"&&I!==null&&(z=V0(I)),f=$.getDerivedStateFromProps,I=typeof f==="function"||typeof K.getSnapshotBeforeUpdate==="function",n=J.pendingProps!==n,I||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(n||_1!==z)&&EY(J,K,q,z),q6=!1;var i=J.memoizedState;K.state=i,p9(J,q,K,G),g9(),_1=J.memoizedState,n||i!==_1||q6?(typeof f==="function"&&(MG(J,$,f,q),_1=J.memoizedState),(L=q6||bY(J,$,L,q,i,_1,z))?(I||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728)):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=_1),K.props=q,K.state=_1,K.context=z,K=L):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728),K=!1)}else{K=J.stateNode,gU(_,J),z=J.memoizedProps,I=r6($,z),K.props=I,f=J.pendingProps,i=K.context,_1=$.contextType,L=o3,typeof _1==="object"&&_1!==null&&(L=V0(_1)),n=$.getDerivedStateFromProps,(_1=typeof n==="function"||typeof K.getSnapshotBeforeUpdate==="function")||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(z!==f||i!==L)&&EY(J,K,q,L),q6=!1,i=J.memoizedState,K.state=i,p9(J,q,K,G),g9();var Z1=J.memoizedState;z!==f||i!==Z1||q6||_!==null&&_.dependencies!==null&&B$(_.dependencies)?(typeof n==="function"&&(MG(J,$,n,q),Z1=J.memoizedState),(I=q6||bY(J,$,I,q,i,Z1,L)||_!==null&&_.dependencies!==null&&B$(_.dependencies))?(_1||typeof K.UNSAFE_componentWillUpdate!=="function"&&typeof K.componentWillUpdate!=="function"||(typeof K.componentWillUpdate==="function"&&K.componentWillUpdate(q,Z1,L),typeof K.UNSAFE_componentWillUpdate==="function"&&K.UNSAFE_componentWillUpdate(q,Z1,L)),typeof K.componentDidUpdate==="function"&&(J.flags|=4),typeof K.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),K.props=q,K.state=Z1,K.context=L,K=I):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),K=!1)}if(L=K,g$(_,J),z=(J.flags&128)!==0,L||z){if(L=J.stateNode,G1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,c2=-1;else if($=nB(L),J.mode&j2){b1(!0);try{nB(L)}finally{b1(!1)}}J.flags|=1,_!==null&&z?(J.child=G8(J,_.child,null,G),J.child=G8(J,null,$,G)):T2(_,J,$,G),J.memoizedState=L.state,_=J.child}else _=t4(_,J,G);return G=J.stateNode,K&&G.props!==q&&(m7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",m(J)||"a component"),m7=!0),_}function tY(_,J,$,q){return g6(),J.flags|=256,T2(_,J,$,q),J.child}function wG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=b(J)||"Unknown",bL[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),bL[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",DL[J]||(console.error("%s: Function components do not support contextType.",J),DL[J]=!0))}function PG(_){return{baseLanes:_,cachePool:aH()}}function NG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=Q5),_}function oY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var K=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(d0.current&b_)!==0),q&&(K=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(G0){if(K?h3(J):x3(J),(_=j0)?($=MW(_,S5),$=$!==null&&$.data!==W8?$:null,$!==null&&(q={dehydrated:$,treeContext:xH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=EH($),q.return=J,J.child=q,I2=J,j0=null)):$=null,$===null)throw z$(J,_),k3(J);return qZ($)?J.lanes=32:J.lanes=536870912,null}var L=G.children;if(G=G.fallback,K){x3(J);var I=J.mode;return L=p$({mode:"hidden",children:L},I),G=x6(G,I,$,null),L.return=J,G.return=J,L.sibling=G,J.child=L,G=J.child,G.memoizedState=PG($),G.childLanes=NG(_,q,$),J.memoizedState=BF,i9(null,G)}return h3(J),CG(J,L)}var f=_.memoizedState;if(f!==null){var n=f.dehydrated;if(n!==null){if(z)J.flags&256?(h3(J),J.flags&=-257,J=fG(_,J,$)):J.memoizedState!==null?(x3(J),J.child=_.child,J.flags|=128,J=null):(x3(J),L=G.fallback,I=J.mode,G=p$({mode:"visible",children:G.children},I),L=x6(L,I,$,null),L.flags|=2,G.return=J,L.return=J,G.sibling=L,J.child=G,G8(J,_.child,null,$),G=J.child,G.memoizedState=PG($),G.childLanes=NG(_,q,$),J.memoizedState=BF,J=i9(null,G));else if(h3(J),gH(),($&536870912)!==0&&r$(J),qZ(n)){if(q=n.nextSibling&&n.nextSibling.dataset,q){L=q.dgst;var _1=q.msg;I=q.stck;var i=q.cstck}K=_1,q=L,G=I,n=i,L=K,I=n,L=L?Error(L):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),L.stack=G||"",L.digest=q,q=I===void 0?null:I,G={value:L,source:null,stack:q},typeof q==="string"&&aZ.set(L,G),u9(G),J=fG(_,J,$)}else if(n0||e8(_,J,$,!1),q=($&_.childLanes)!==0,n0||q){if(q=P0,q!==null&&(G=p4(q,$),G!==0&&G!==f.retryLane))throw f.retryLane=G,f2(_,G),h0(q,_,G),WF;QZ(n)||a$(),J=fG(_,J,$)}else QZ(n)?(J.flags|=192,J.child=_.child,J=null):(_=f.treeContext,j0=H5(n.nextSibling),I2=J,G0=!0,n3=null,j4=!1,B5=null,S5=!1,_!==null&&mH(J,_),J=CG(J,G.children),J.flags|=4096);return J}}if(K)return x3(J),L=G.fallback,I=J.mode,i=_.child,n=i.sibling,G=i4(i,{mode:"hidden",children:G.children}),G.subtreeFlags=i.subtreeFlags&65011712,n!==null?L=i4(n,L):(L=x6(L,I,$,null),L.flags|=2),L.return=J,G.return=J,G.sibling=L,J.child=G,i9(null,G),G=J.child,L=_.child.memoizedState,L===null?L=PG($):(I=L.cachePool,I!==null?(i=s0._currentValue,I=I.parent!==i?{parent:i,pool:i}:I):I=aH(),L={baseLanes:L.baseLanes|$,cachePool:I}),G.memoizedState=L,G.childLanes=NG(_,q,$),J.memoizedState=BF,i9(_.child,G);return f!==null&&($&62914560)===$&&($&_.lanes)!==0&&r$(J),h3(J),$=_.child,_=$.sibling,$=i4($,{mode:"visible",children:G.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function CG(_,J){return J=p$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function p$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function fG(_,J,$){return G8(J,_.child,null,$),_=CG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function nY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),kU(_.return,J,$)}function SG(_,J,$,q,G,K){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:K}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=K)}function eY(_,J,$){var q=J.pendingProps,G=q.revealOrder,K=q.tail,z=q.children,L=d0.current;if((q=(L&b_)!==0)?(L=L&b7|b_,J.flags|=128):L&=b7,J1(d0,L,J),L=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!EL[L])if(EL[L]=!0,G==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(G==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof G==="string")switch(G.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',G,G.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(L=K==null?"null":K,!mQ[L])if(K==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")mQ[L]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else K!=="visible"&&K!=="collapsed"&&K!=="hidden"?(mQ[L]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',K)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(mQ[L]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',K));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(U2(z)){for(L=0;L<z.length;L++)if(!qY(z[L],L))break _}else if(L=k(z),typeof L==="function"){if(L=L.call(z))for(var I=L.next(),f=0;!I.done;I=L.next()){if(!qY(I.value,f))break _;f++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',G);if(T2(_,J,z,$),G0?(y3(),z=O_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&nY(_,$,J);else if(_.tag===19)nY(_,$,J);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===J)break _;for(;_.sibling===null;){if(_.return===null||_.return===J)break _;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(G){case"forwards":$=J.child;for(G=null;$!==null;)_=$.alternate,_!==null&&C$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),SG(J,!1,G,$,K,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&C$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}SG(J,!0,$,null,K,z);break;case"together":SG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function t4(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),c2=-1,Z6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(e8(_,J,$,!1),($&J.childLanes)===0)return null}else return null;if(_!==null&&J.child!==_.child)throw Error("Resuming work not yet implemented.");if(J.child!==null){_=J.child,$=i4(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=i4(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function jG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&B$(_)?!0:!1}function JI(_,J,$){switch(J.tag){case 3:g(J,J.stateNode.containerInfo),D3(J,s0,_.memoizedState.cache),g6();break;case 27:case 5:d(J);break;case 4:g(J,J.stateNode.containerInfo);break;case 10:D3(J,J.type,J.memoizedProps.value);break;case 12:($&J.childLanes)!==0&&(J.flags|=4),J.flags|=2048;var q=J.stateNode;q.effectDuration=-0,q.passiveEffectDuration=-0;break;case 31:if(J.memoizedState!==null)return J.flags|=128,lU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return h3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return oY(_,J,$);return h3(J),_=t4(_,J,$),_!==null?_.sibling:null}h3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(e8(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return eY(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),J1(d0,d0.current,J),q)break;else return null;case 22:return J.lanes=0,dY(_,J,$,J.pendingProps);case 24:D3(J,s0,_.memoizedState.cache)}return t4(_,J,$)}function vG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=CU(J.type,J.key,J.pendingProps,J._debugOwner||null,J.mode,J.lanes),$._debugStack=J._debugStack,$._debugTask=J._debugTask;var q=J.return;if(q===null)throw Error("Cannot swap the root fiber.");if(_.alternate=null,J.alternate=null,$.index=J.index,$.sibling=J.sibling,$.return=J.return,$.ref=J.ref,$._debugInfo=J._debugInfo,J===q.child)q.child=$;else{var G=q.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==J;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=$}return J=q.deletions,J===null?(q.deletions=[_],q.flags|=16):J.push(_),$.flags|=2,$}if(_!==null)if(_.memoizedProps!==J.pendingProps||J.type!==_.type)n0=!0;else{if(!jG(_,$)&&(J.flags&128)===0)return n0=!1,JI(_,J,$);n0=(_.flags&131072)!==0?!0:!1}else{if(n0=!1,q=G0)y3(),q=(J.flags&1048576)!==0;q&&(q=J.index,y3(),hH(J,O_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=u3(J.elementType),J.type=_,typeof _==="function")NU(_)?(q=r6(_,q),J.tag=1,J.type=_=h6(_),J=sY(null,J,_,q,$)):(J.tag=0,wG(J,_),J.type=_=h6(_),J=IG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===F_){J.tag=11,J.type=_=PU(_),J=pY(null,J,_,q,$);break _}else if(G===FQ){J.tag=14,J=cY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===Y5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=b(_)||_,Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+J)}return J;case 0:return IG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=r6(q,J.pendingProps),sY(_,J,q,G,$);case 3:_:{if(g(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var K=J.memoizedState;G=K.element,gU(_,J),p9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,D3(J,s0,q),q!==K.cache&&DU(J,[s0],$,!0),g9(),q=z.element,K.isDehydrated)if(K={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=K,J.memoizedState=K,J.flags&256){J=tY(_,J,q,$);break _}else if(q!==G){G=G5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),u9(G),J=tY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}j0=H5(_.firstChild),I2=J,G0=!0,n3=null,j4=!1,B5=null,S5=!0,$=YL(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(g6(),q===G){J=t4(_,J,$);break _}T2(_,J,q,$)}J=J.child}return J;case 26:return g$(_,J),_===null?($=PW(J.type,null,J.pendingProps,null))?J.memoizedState=$:G0||($=J.type,_=J.pendingProps,q=x(d3.current),q=n$(q).createElement($),q[O2]=J,q[m2]=_,R2(q,$,_),E1(q),J.stateNode=q):J.memoizedState=PW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return d(J),_===null&&G0&&(q=x(d3.current),G=a(),q=J.stateNode=IW(J.type,J.pendingProps,q,G,!1),j4||(G=XW(q,J.type,J.pendingProps,G),G!==null&&(m6(J,0).serverProps=G)),I2=J,S5=!0,G=j0,c3(J.type)?(hF=G,j0=H5(q.firstChild)):j0=G),T2(_,J,J.pendingProps.children,$),g$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&G0&&(K=a(),q=S9(J.type,K.ancestorInfo),G=j0,(z=!G)||(z=cI(G,J.type,J.pendingProps,S5),z!==null?(J.stateNode=z,j4||(K=XW(z,J.type,J.pendingProps,K),K!==null&&(m6(J,0).serverProps=K)),I2=J,j0=H5(z.firstChild),S5=!1,K=!0):K=!1,z=!K),z&&(q&&z$(J,G),k3(J))),d(J),G=J.type,K=J.pendingProps,z=_!==null?_.memoizedProps:null,q=K.children,JZ(G,K)?q=null:z!==null&&JZ(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=iU(_,J,rO,null,null,$),_J._currentValue=G),g$(_,J),T2(_,J,q,$),J.child;case 6:return _===null&&G0&&($=J.pendingProps,_=a(),q=_.ancestorInfo.current,$=q!=null?V3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=j0,(q=!_)||(q=lI(_,J.pendingProps,S5),q!==null?(J.stateNode=q,I2=J,j0=null,q=!0):q=!1,q=!q),q&&($&&z$(J,_),k3(J))),null;case 13:return oY(_,J,$);case 4:return g(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=G8(J,null,q,$):T2(_,J,q,$),J.child;case 11:return pY(_,J,J.type,J.pendingProps,$);case 7:return T2(_,J,J.pendingProps,$),J.child;case 8:return T2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,T2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,K=G.value,"value"in G||hL||(hL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),D3(J,q,K),T2(_,J,G.children,$),J.child;case 9:return G=J.type._context,q=J.pendingProps.children,typeof q!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),p6(J),G=V0(G),q=$F(q,G,void 0),J.flags|=1,T2(_,J,q,$),J.child;case 14:return cY(_,J,J.type,J.pendingProps,$);case 15:return lY(_,J,J.type,J.pendingProps,$);case 19:return eY(_,J,$);case 31:return _I(_,J,$);case 22:return dY(_,J,$,J.pendingProps);case 24:return p6(J),q=V0(s0),_===null?(G=hU(),G===null&&(G=P0,K=uU(),G.pooledCache=K,c6(K),K!==null&&(G.pooledCacheLanes|=$),G=K),J.memoizedState={parent:q,cache:G},mU(J),D3(J,s0,G)):((_.lanes&$)!==0&&(gU(_,J),p9(J,null,null,$),g9()),G=_.memoizedState,K=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),D3(J,s0,q)):(q=K.cache,D3(J,s0,q),q!==G.cache&&DU(J,[s0],$,!0))),T2(_,J,J.pendingProps.children,$),J.child;case 29:throw J.pendingProps}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function o4(_){_.flags|=4}function VG(_,J,$,q,G){if(J=(_.mode&OP)!==p1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(yz())_.flags|=8192;else throw U8=DQ,qF}else _.flags&=-16777217}function _z(_,J){if(J.type!=="stylesheet"||(J.state.loading&k5)!==A8)_.flags&=-16777217;else if(_.flags|=16777216,!jW(J))if(yz())_.flags|=8192;else throw U8=DQ,qF}function c$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?P2():536870912,_.lanes|=J,H8|=J)}function r9(_,J){if(!G0)switch(_.tailMode){case"hidden":J=_.tail;for(var $=null;J!==null;)J.alternate!==null&&($=J),J=J.sibling;$===null?_.tail=null:$.sibling=null;break;case"collapsed":$=_.tail;for(var q=null;$!==null;)$.alternate!==null&&(q=$),$=$.sibling;q===null?J||_.tail===null?_.tail=null:_.tail.sibling=null:q.sibling=null}}function N0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&t1)!==p1){for(var{selfBaseDuration:G,child:K}=_;K!==null;)$|=K.lanes|K.childLanes,q|=K.subtreeFlags&65011712,q|=K.flags&65011712,G+=K.treeBaseDuration,K=K.sibling;_.treeBaseDuration=G}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags&65011712,q|=G.flags&65011712,G.return=_,G=G.sibling;else if((_.mode&t1)!==p1){G=_.actualDuration,K=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,K+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=K}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags,q|=G.flags,G.return=_,G=G.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function $I(_,J,$){var q=J.pendingProps;switch(vU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return N0(J),null;case 1:return N0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),a4(s0,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)n8(J)?(yU(),o4(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,VU());return N0(J),null;case 26:var{type:G,memoizedState:K}=J;return _===null?(o4(J),K!==null?(N0(J),_z(J,K)):(N0(J),VG(J,G,null,q,$))):K?K!==_.memoizedState?(o4(J),N0(J),_z(J,K)):(N0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&o4(J),N0(J),VG(J,G,_,q,$)),null;case 27:if(t(J),$=x(d3.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&o4(J);else{if(!q){if(J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return N0(J),null}_=a(),n8(J)?pH(J,_):(_=IW(G,q,$,_,!0),J.stateNode=_,o4(J))}return N0(J),null;case 5:if(t(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&o4(J);else{if(!q){if(J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return N0(J),null}var z=a();if(n8(J))pH(J,z);else{switch(K=x(d3.current),S9(G,z.ancestorInfo),z=z.context,K=n$(K),z){case a7:K=K.createElementNS(M7,G);break;case Gq:K=K.createElementNS(BQ,G);break;default:switch(G){case"svg":K=K.createElementNS(M7,G);break;case"math":K=K.createElementNS(BQ,G);break;case"script":K=K.createElement("div"),K.innerHTML="<script></script>",K=K.removeChild(K.firstChild);break;case"select":K=typeof q.is==="string"?K.createElement("select",{is:q.is}):K.createElement("select"),q.multiple?K.multiple=!0:q.size&&(K.size=q.size);break;default:K=typeof q.is==="string"?K.createElement(G,{is:q.is}):K.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(K)!=="[object HTMLUnknownElement]"||l5.call(FA,G)||(FA[G]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",G)))}}K[O2]=J,K[m2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)K.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===J)break _;for(;z.sibling===null;){if(z.return===null||z.return===J)break _;z=z.return}z.sibling.return=z.return,z=z.sibling}J.stateNode=K;_:switch(R2(K,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&o4(J)}}return N0(J),VG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&o4(J);else{if(typeof q!=="string"&&J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(_=x(d3.current),$=a(),n8(J)){if(_=J.stateNode,$=J.memoizedProps,G=!j4,q=null,K=I2,K!==null)switch(K.tag){case 3:G&&(G=RW(_,$,q),G!==null&&(m6(J,0).serverProps=G));break;case 27:case 5:q=K.memoizedProps,G&&(G=RW(_,$,q),G!==null&&(m6(J,0).serverProps=G))}_[O2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||UW(_.nodeValue,$)?!0:!1,_||k3(J,!0)}else G=$.ancestorInfo.current,G!=null&&V3(q,G.tag,$.ancestorInfo.implicitRootScope),_=n$(_).createTextNode(q),_[O2]=J,J.stateNode=_}return N0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=n8(J),$!==null){if(_===null){if(!q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(_=J.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");_[O2]=J,N0(J),(J.mode&t1)!==p1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else yU(),g6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,N0(J),(J.mode&t1)!==p1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=VU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return K5(J),J;return K5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return N0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,K=n8(J),G!==null&&G.dehydrated!==null){if(_===null){if(!K)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(K=J.memoizedState,K=K!==null?K.dehydrated:null,!K)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");K[O2]=J,N0(J),(J.mode&t1)!==p1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else yU(),g6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,N0(J),(J.mode&t1)!==p1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=VU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return K5(J),J;return K5(J),null}}if(K5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&t1)!==p1&&h9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,G=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(G=q.alternate.memoizedState.cachePool.pool),K=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(K=q.memoizedState.cachePool.pool),K!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),c$(J,J.updateQueue),N0(J),(J.mode&t1)!==p1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&aG(J.stateNode.containerInfo),N0(J),null;case 10:return a4(J.type,J),N0(J),null;case 19:if(Q1(d0,J),q=J.memoizedState,q===null)return N0(J),null;if(G=(J.flags&128)!==0,K=q.rendering,K===null)if(G)r9(q,!1);else{if(b0!==Y3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(K=C$(_),K!==null){J.flags|=128,r9(q,!1),_=K.updateQueue,J.updateQueue=_,c$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)bH($,_),$=$.sibling;return J1(d0,d0.current&b7|b_,J),G0&&r4(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&z2()>rQ&&(J.flags|=128,G=!0,r9(q,!1),J.lanes=4194304)}else{if(!G)if(_=C$(K),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,c$(J,_),r9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!K.alternate&&!G0)return N0(J),null}else 2*z2()-q.renderingStartTime>rQ&&$!==536870912&&(J.flags|=128,G=!0,r9(q,!1),J.lanes=4194304);q.isBackwards?(K.sibling=J.child,J.child=K):(_=q.last,_!==null?_.sibling=K:J.child=K,q.last=K)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=z2(),_.sibling=null,$=d0.current,$=G?$&b7|b_:$&b7,J1(d0,$,J),G0&&r4(J,q.treeForkCount),_;return N0(J),null;case 22:case 23:return K5(J),cU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(N0(J),J.subtreeFlags&6&&(J.flags|=8192)):N0(J),$=J.updateQueue,$!==null&&c$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&Q1(Q8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),a4(s0,J),N0(J),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function QI(_,J){switch(vU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 3:return a4(s0,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return t(J),null;case 31:if(J.memoizedState!==null){if(K5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");g6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 13:if(K5(J),_=J.memoizedState,_!==null&&_.dehydrated!==null){if(J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");g6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 19:return Q1(d0,J),null;case 4:return c(J),null;case 10:return a4(J.type,J),null;case 22:case 23:return K5(J),cU(J),_!==null&&Q1(Q8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 24:return a4(s0,J),null;case 25:return null;default:return null}}function Jz(_,J){switch(vU(J),J.tag){case 3:a4(s0,J),c(J);break;case 26:case 27:case 5:t(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&K5(J);break;case 13:K5(J);break;case 19:Q1(d0,J);break;case 10:a4(J.type,J);break;case 22:case 23:K5(J),cU(J),_!==null&&Q1(Q8,J);break;case 24:a4(s0,J)}}function L4(_){return(_.mode&t1)!==p1}function $z(_,J){L4(_)?(B4(),a9(J,_),W4()):a9(J,_)}function yG(_,J,$){L4(_)?(B4(),q7($,_,J),W4()):q7($,_,J)}function a9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&l2)!==bQ&&(d7=!0),q=M1(J,CP,$),(_&l2)!==bQ&&(d7=!1),q!==void 0&&typeof q!=="function")){var K=void 0;K=($.tag&A5)!==0?"useLayoutEffect":($.tag&l2)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
138
+ `+L:"",w!==null?`
139
+ `+w:""))}}X=J.stateNode,z=b($)||"Component",X.render||($.prototype&&typeof $.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!X.getInitialState||X.getInitialState.isReactClassApproved||X.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",z),X.getDefaultProps&&!X.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",z),X.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!VL.has($)&&(VL.add($),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),$.contextTypes&&!vL.has($)&&(vL.add($),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",z)),typeof X.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",z),$.prototype&&$.prototype.isPureReactComponent&&typeof X.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",b($)||"A pure component"),typeof X.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof X.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",z),typeof X.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof X.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),L=X.props!==q,X.props!==void 0&&L&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),X.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",z,z),typeof X.getSnapshotBeforeUpdate!=="function"||typeof X.componentDidUpdate==="function"||CL.has($)||(CL.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",b($))),typeof X.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof X.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(L=X.state)&&(typeof L!=="object"||Y2(L))&&console.error("%s.state: must be set to an object or null",z),typeof X.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),X=J.stateNode,X.props=q,X.state=J.memoizedState,X.refs={},pU(J),z=$.contextType,X.context=typeof z==="object"&&z!==null?u0(z):Z6,X.state===q&&(z=b($)||"Component",SL.has(z)||(SL.add(z),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",z))),J.mode&u2&&J4.recordLegacyContextWarning(J,X),J4.recordUnsafeLifecycleWarnings(J,X),X.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(RG(J,$,z,q),X.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(z=X.state,typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount(),z!==X.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x(J)||"Component"),WF.enqueueReplaceState(X,X.state,null)),r9(J,q,X,G),d9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var e=J.memoizedProps;L=e6($,e),X.props=L;var _1=X.context;w=$.contextType,z=Z6,typeof w==="object"&&w!==null&&(z=u0(w)),S=$.getDerivedStateFromProps,w=typeof S==="function"||typeof X.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,w||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(e||_1!==z)&&hY(J,X,q,z),W6=!1;var r=J.memoizedState;X.state=r,r9(J,q,X,G),d9(),_1=J.memoizedState,e||r!==_1||W6?(typeof S==="function"&&(RG(J,$,S,q),_1=J.memoizedState),(L=W6||EY(J,$,L,q,r,_1,z))?(w||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount()),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=_1),X.props=q,X.state=_1,X.context=z,X=L):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,cU(_,J),z=J.memoizedProps,w=e6($,z),X.props=w,S=J.pendingProps,r=X.context,_1=$.contextType,L=Z6,typeof _1==="object"&&_1!==null&&(L=u0(_1)),e=$.getDerivedStateFromProps,(_1=typeof e==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(z!==S||r!==L)&&hY(J,X,q,L),W6=!1,r=J.memoizedState,X.state=r,r9(J,q,X,G),d9();var Z1=J.memoizedState;z!==S||r!==Z1||W6||_!==null&&_.dependencies!==null&&A$(_.dependencies)?(typeof e==="function"&&(RG(J,$,e,q),Z1=J.memoizedState),(w=W6||EY(J,$,w,q,r,Z1,L)||_!==null&&_.dependencies!==null&&A$(_.dependencies))?(_1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,Z1,L),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,Z1,L)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),X.props=q,X.state=Z1,X.context=L,X=w):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=1024),X=!1)}if(L=X,c$(_,J),z=(J.flags&128)!==0,L||z){if(L=J.stateNode,k1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,r2=-1;else if($=eB(L),J.mode&u2){o1(!0);try{eB(L)}finally{o1(!1)}}J.flags|=1,_!==null&&z?(J.child=Y8(J,_.child,null,G),J.child=Y8(J,null,$,G)):S2(_,J,$,G),J.memoizedState=L.state,_=J.child}else _=U3(_,J,G);return G=J.stateNode,X&&G.props!==q&&(i7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",x(J)||"a component"),i7=!0),_}function oY(_,J,$,q){return r6(),J.flags|=256,S2(_,J,$,q),J.child}function NG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=b(J)||"Unknown",EL[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),EL[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",uL[J]||(console.error("%s: Function components do not support contextType.",J),uL[J]=!0))}function CG(_){return{baseLanes:_,cachePool:sH()}}function fG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=Z5),_}function nY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var X=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(o0.current&g_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(F0){if(X?a3(J):s3(J),(_=y0)?($=TW(_,b5),$=$!==null&&$.data!==R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,V2=J,y0=null)):$=null,$===null)throw B$(J,_),c3(J);return GZ($)?J.lanes=32:J.lanes=536870912,null}var L=G.children;if(G=G.fallback,X){s3(J);var w=J.mode;return L=l$({mode:"hidden",children:L},w),G=i6(G,w,$,null),L.return=J,G.return=J,L.sibling=G,J.child=L,G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,o9(null,G)}return a3(J),SG(J,L)}var S=_.memoizedState;if(S!==null){var e=S.dehydrated;if(e!==null){if(z)J.flags&256?(a3(J),J.flags&=-257,J=jG(_,J,$)):J.memoizedState!==null?(s3(J),J.child=_.child,J.flags|=128,J=null):(s3(J),L=G.fallback,w=J.mode,G=l$({mode:"visible",children:G.children},w),L=i6(L,w,$,null),L.flags|=2,G.return=J,L.return=J,G.sibling=L,J.child=G,Y8(J,_.child,null,$),G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,J=o9(null,G));else if(a3(J),pH(),($&536870912)!==0&&s$(J),GZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){L=q.dgst;var _1=q.msg;w=q.stck;var r=q.cstck}X=_1,q=L,G=w,e=r,L=X,w=e,L=L?Error(L):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),L.stack=G||"",L.digest=q,q=w===void 0?null:w,G={value:L,source:null,stack:q},typeof q==="string"&&tZ.set(L,G),m9(G),J=jG(_,J,$)}else if(q2||q7(_,J,$,!1),q=($&_.childLanes)!==0,q2||q){if(q=C0,q!==null&&(G=S5(q,$),G!==0&&G!==S.retryLane))throw S.retryLane=G,k2(_,G),c0(q,_,G),LF;UZ(e)||t$(),J=jG(_,J,$)}else UZ(e)?(J.flags|=192,J.child=_.child,J=null):(_=S.treeContext,y0=B5(e.nextSibling),V2=J,F0=!0,F6=null,E4=!1,T5=null,b5=!1,_!==null&&gH(J,_),J=SG(J,G.children),J.flags|=4096);return J}}if(X)return s3(J),L=G.fallback,w=J.mode,r=_.child,e=r.sibling,G=J3(r,{mode:"hidden",children:G.children}),G.subtreeFlags=r.subtreeFlags&65011712,e!==null?L=J3(e,L):(L=i6(L,w,$,null),L.flags|=2),L.return=J,G.return=J,G.sibling=L,J.child=G,o9(null,G),G=J.child,L=_.child.memoizedState,L===null?L=CG($):(w=L.cachePool,w!==null?(r=J2._currentValue,w=w.parent!==r?{parent:r,pool:r}:w):w=sH(),L={baseLanes:L.baseLanes|$,cachePool:w}),G.memoizedState=L,G.childLanes=fG(_,q,$),J.memoizedState=AF,o9(_.child,G);return S!==null&&($&62914560)===$&&($&_.lanes)!==0&&s$(J),a3(J),$=_.child,_=$.sibling,$=J3($,{mode:"visible",children:G.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function SG(_,J){return J=l$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function l$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function jG(_,J,$){return Y8(J,_.child,null,$),_=SG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function eY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),uU(_.return,J,$)}function vG(_,J,$,q,G,X){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:X}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=X)}function _z(_,J,$){var q=J.pendingProps,G=q.revealOrder,X=q.tail,z=q.children,L=o0.current;if((q=(L&g_)!==0)?(L=L&g7|g_,J.flags|=128):L&=g7,J1(o0,L,J),L=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!hL[L])if(hL[L]=!0,G==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(G==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof G==="string")switch(G.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',G,G.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(L=X==null?"null":X,!pQ[L])if(X==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")pQ[L]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else X!=="visible"&&X!=="collapsed"&&X!=="hidden"?(pQ[L]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',X)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(pQ[L]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',X));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(Y2(z)){for(L=0;L<z.length;L++)if(!UY(z[L],L))break _}else if(L=E(z),typeof L==="function"){if(L=L.call(z))for(var w=L.next(),S=0;!w.done;w=L.next()){if(!UY(w.value,S))break _;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',G);if(S2(_,J,z,$),F0?(p3(),z=C_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&eY(_,$,J);else if(_.tag===19)eY(_,$,J);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===J)break _;for(;_.sibling===null;){if(_.return===null||_.return===J)break _;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(G){case"forwards":$=J.child;for(G=null;$!==null;)_=$.alternate,_!==null&&S$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),vG(J,!1,G,$,X,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&S$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}vG(J,!0,$,null,X,z);break;case"together":vG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function U3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),r2=-1,A6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(q7(_,J,$,!1),($&J.childLanes)===0)return null}else return null;if(_!==null&&J.child!==_.child)throw Error("Resuming work not yet implemented.");if(J.child!==null){_=J.child,$=J3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=J3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function VG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&A$(_)?!0:!1}function GI(_,J,$){switch(J.tag){case 3:p(J,J.stateNode.containerInfo),l3(J,J2,_.memoizedState.cache),r6();break;case 27:case 5:i(J);break;case 4:p(J,J.stateNode.containerInfo);break;case 10:l3(J,J.type,J.memoizedProps.value);break;case 12:($&J.childLanes)!==0&&(J.flags|=4),J.flags|=2048;var q=J.stateNode;q.effectDuration=-0,q.passiveEffectDuration=-0;break;case 31:if(J.memoizedState!==null)return J.flags|=128,dU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return a3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return nY(_,J,$);return a3(J),_=U3(_,J,$),_!==null?_.sibling:null}a3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(q7(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return _z(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),J1(o0,o0.current,J),q)break;else return null;case 22:return J.lanes=0,dY(_,J,$,J.pendingProps);case 24:l3(J,J2,_.memoizedState.cache)}return U3(_,J,$)}function yG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=SU(J.type,J.key,J.pendingProps,J._debugOwner||null,J.mode,J.lanes),$._debugStack=J._debugStack,$._debugTask=J._debugTask;var q=J.return;if(q===null)throw Error("Cannot swap the root fiber.");if(_.alternate=null,J.alternate=null,$.index=J.index,$.sibling=J.sibling,$.return=J.return,$.ref=J.ref,$._debugInfo=J._debugInfo,J===q.child)q.child=$;else{var G=q.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==J;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=$}return J=q.deletions,J===null?(q.deletions=[_],q.flags|=16):J.push(_),$.flags|=2,$}if(_!==null)if(_.memoizedProps!==J.pendingProps||J.type!==_.type)q2=!0;else{if(!VG(_,$)&&(J.flags&128)===0)return q2=!1,GI(_,J,$);q2=(_.flags&131072)!==0?!0:!1}else{if(q2=!1,q=F0)p3(),q=(J.flags&1048576)!==0;q&&(q=J.index,p3(),xH(J,C_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=i3(J.elementType),J.type=_,typeof _==="function")fU(_)?(q=e6(_,q),J.tag=1,J.type=_=l6(_),J=tY(null,J,_,q,$)):(J.tag=0,NG(J,_),J.type=_=l6(_),J=PG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===z_){J.tag=11,J.type=_=CU(_),J=cY(null,J,_,q,$);break _}else if(G===KQ){J.tag=14,J=lY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===L5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=b(_)||_,Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+J)}return J;case 0:return PG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=e6(q,J.pendingProps),tY(_,J,q,G,$);case 3:_:{if(p(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var X=J.memoizedState;G=X.element,cU(_,J),r9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,l3(J,J2,q),q!==X.cache&&bU(J,[J2],$,!0),d9(),q=z.element,X.isDehydrated)if(X={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=X,J.memoizedState=X,J.flags&256){J=oY(_,J,q,$);break _}else if(q!==G){G=K5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),m9(G),J=oY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}y0=B5(_.firstChild),V2=J,F0=!0,F6=null,E4=!1,T5=null,b5=!0,$=zL(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(r6(),q===G){J=U3(_,J,$);break _}S2(_,J,q,$)}J=J.child}return J;case 26:return c$(_,J),_===null?($=NW(J.type,null,J.pendingProps,null))?J.memoizedState=$:F0||($=J.type,_=J.pendingProps,q=m(J6.current),q=_Q(q).createElement($),q[v2]=J,q[l2]=_,j2(q,$,_),v1(q),J.stateNode=q):J.memoizedState=NW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return i(J),_===null&&F0&&(q=m(J6.current),G=a(),q=J.stateNode=wW(J.type,J.pendingProps,q,G,!1),E4||(G=HW(q,J.type,J.pendingProps,G),G!==null&&(d6(J,0).serverProps=G)),V2=J,b5=!0,G=y0,e3(J.type)?(mF=G,y0=B5(q.firstChild)):y0=G),S2(_,J,J.pendingProps.children,$),c$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&F0&&(X=a(),q=k9(J.type,X.ancestorInfo),G=y0,(z=!G)||(z=aI(G,J.type,J.pendingProps,b5),z!==null?(J.stateNode=z,E4||(X=HW(z,J.type,J.pendingProps,X),X!==null&&(d6(J,0).serverProps=X)),V2=J,y0=B5(z.firstChild),b5=!1,X=!0):X=!1,z=!X),z&&(q&&B$(J,G),c3(J))),i(J),G=J.type,X=J.pendingProps,z=_!==null?_.memoizedProps:null,q=X.children,QZ(G,X)?q=null:z!==null&&QZ(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=aU(_,J,nO,null,null,$),UJ._currentValue=G),c$(_,J),S2(_,J,q,$),J.child;case 6:return _===null&&F0&&($=J.pendingProps,_=a(),q=_.ancestorInfo.current,$=q!=null?g3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=y0,(q=!_)||(q=sI(_,J.pendingProps,b5),q!==null?(J.stateNode=q,V2=J,y0=null,q=!0):q=!1,q=!q),q&&($&&B$(J,_),c3(J))),null;case 13:return nY(_,J,$);case 4:return p(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=Y8(J,null,q,$):S2(_,J,q,$),J.child;case 11:return cY(_,J,J.type,J.pendingProps,$);case 7:return S2(_,J,J.pendingProps,$),J.child;case 8:return S2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,S2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,X=G.value,"value"in G||xL||(xL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),l3(J,q,X),S2(_,J,G.children,$),J.child;case 9:return G=J.type._context,q=J.pendingProps.children,typeof q!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),a6(J),G=u0(G),q=qF(q,G,void 0),J.flags|=1,S2(_,J,q,$),J.child;case 14:return lY(_,J,J.type,J.pendingProps,$);case 15:return iY(_,J,J.type,J.pendingProps,$);case 19:return _z(_,J,$);case 31:return UI(_,J,$);case 22:return dY(_,J,$,J.pendingProps);case 24:return a6(J),q=u0(J2),_===null?(G=mU(),G===null&&(G=C0,X=EU(),G.pooledCache=X,s6(X),X!==null&&(G.pooledCacheLanes|=$),G=X),J.memoizedState={parent:q,cache:G},pU(J),l3(J,J2,G)):((_.lanes&$)!==0&&(cU(_,J),r9(J,null,null,$),d9()),G=_.memoizedState,X=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),l3(J,J2,q)):(q=X.cache,l3(J,J2,q),q!==G.cache&&bU(J,[J2],$,!0))),S2(_,J,J.pendingProps.children,$),J.child;case 29:throw J.pendingProps}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function G3(_){_.flags|=4}function kG(_,J,$,q,G){if(J=(_.mode&CP)!==i1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(kz())_.flags|=8192;else throw H8=bQ,GF}else _.flags&=-16777217}function Jz(_,J){if(J.type!=="stylesheet"||(J.state.loading&g5)!==w8)_.flags&=-16777217;else if(_.flags|=16777216,!vW(J))if(kz())_.flags|=8192;else throw H8=bQ,GF}function i$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?M2():536870912,_.lanes|=J,A8|=J)}function n9(_,J){if(!F0)switch(_.tailMode){case"hidden":J=_.tail;for(var $=null;J!==null;)J.alternate!==null&&($=J),J=J.sibling;$===null?_.tail=null:$.sibling=null;break;case"collapsed":$=_.tail;for(var q=null;$!==null;)$.alternate!==null&&(q=$),$=$.sibling;q===null?J||_.tail===null?_.tail=null:_.tail.sibling=null:q.sibling=null}}function j0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&e1)!==i1){for(var{selfBaseDuration:G,child:X}=_;X!==null;)$|=X.lanes|X.childLanes,q|=X.subtreeFlags&65011712,q|=X.flags&65011712,G+=X.treeBaseDuration,X=X.sibling;_.treeBaseDuration=G}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags&65011712,q|=G.flags&65011712,G.return=_,G=G.sibling;else if((_.mode&e1)!==i1){G=_.actualDuration,X=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,X+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=X}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags,q|=G.flags,G.return=_,G=G.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function ZI(_,J,$){var q=J.pendingProps;switch(yU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return j0(J),null;case 1:return j0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),Q3(J2,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)Q7(J)?(DU(),G3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,kU());return j0(J),null;case 26:var{type:G,memoizedState:X}=J;return _===null?(G3(J),X!==null?(j0(J),Jz(J,X)):(j0(J),kG(J,G,null,q,$))):X?X!==_.memoizedState?(G3(J),j0(J),Jz(J,X)):(j0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&G3(J),j0(J),kG(J,G,_,q,$)),null;case 27:if(o(J),$=m(J6.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(J);else{if(!q){if(J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return j0(J),null}_=a(),Q7(J)?cH(J,_):(_=wW(G,q,$,_,!0),J.stateNode=_,G3(J))}return j0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(J);else{if(!q){if(J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return j0(J),null}var z=a();if(Q7(J))cH(J,z);else{switch(X=m(J6.current),k9(G,z.ancestorInfo),z=z.context,X=_Q(X),z){case e7:X=X.createElementNS(w7,G);break;case Fq:X=X.createElementNS(AQ,G);break;default:switch(G){case"svg":X=X.createElementNS(w7,G);break;case"math":X=X.createElementNS(AQ,G);break;case"script":X=X.createElement("div"),X.innerHTML="<script></script>",X=X.removeChild(X.firstChild);break;case"select":X=typeof q.is==="string"?X.createElement("select",{is:q.is}):X.createElement("select"),q.multiple?X.multiple=!0:q.size&&(X.size=q.size);break;default:X=typeof q.is==="string"?X.createElement(G,{is:q.is}):X.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(X)!=="[object HTMLUnknownElement]"||n5.call(XA,G)||(XA[G]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",G)))}}X[v2]=J,X[l2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)X.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===J)break _;for(;z.sibling===null;){if(z.return===null||z.return===J)break _;z=z.return}z.sibling.return=z.return,z=z.sibling}J.stateNode=X;_:switch(j2(X,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&G3(J)}}return j0(J),kG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&G3(J);else{if(typeof q!=="string"&&J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(_=m(J6.current),$=a(),Q7(J)){if(_=J.stateNode,$=J.memoizedProps,G=!E4,q=null,X=V2,X!==null)switch(X.tag){case 3:G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G));break;case 27:case 5:q=X.memoizedProps,G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G))}_[v2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||GW(_.nodeValue,$)?!0:!1,_||c3(J,!0)}else G=$.ancestorInfo.current,G!=null&&g3(q,G.tag,$.ancestorInfo.implicitRootScope),_=_Q(_).createTextNode(q),_[v2]=J,J.stateNode=_}return j0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=Q7(J),$!==null){if(_===null){if(!q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(_=J.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");_[v2]=J,j0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,j0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return z5(J),J;return z5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return j0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,X=Q7(J),G!==null&&G.dehydrated!==null){if(_===null){if(!X)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(X=J.memoizedState,X=X!==null?X.dehydrated:null,!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");X[v2]=J,j0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,j0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return z5(J),J;return z5(J),null}}if(z5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&e1)!==i1&&c9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,G=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(G=q.alternate.memoizedState.cachePool.pool),X=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(X=q.memoizedState.cachePool.pool),X!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),i$(J,J.updateQueue),j0(J),(J.mode&e1)!==i1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&tG(J.stateNode.containerInfo),j0(J),null;case 10:return Q3(J.type,J),j0(J),null;case 19:if(Q1(o0,J),q=J.memoizedState,q===null)return j0(J),null;if(G=(J.flags&128)!==0,X=q.rendering,X===null)if(G)n9(q,!1);else{if(g0!==O3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=S$(_),X!==null){J.flags|=128,n9(q,!1),_=X.updateQueue,J.updateQueue=_,i$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)EH($,_),$=$.sibling;return J1(o0,o0.current&g7|g_,J),F0&&$3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&R2()>sQ&&(J.flags|=128,G=!0,n9(q,!1),J.lanes=4194304)}else{if(!G)if(_=S$(X),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,i$(J,_),n9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!F0)return j0(J),null}else 2*R2()-q.renderingStartTime>sQ&&$!==536870912&&(J.flags|=128,G=!0,n9(q,!1),J.lanes=4194304);q.isBackwards?(X.sibling=J.child,J.child=X):(_=q.last,_!==null?_.sibling=X:J.child=X,q.last=X)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=R2(),_.sibling=null,$=o0.current,$=G?$&g7|g_:$&g7,J1(o0,$,J),F0&&$3(J,q.treeForkCount),_;return j0(J),null;case 22:case 23:return z5(J),iU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(j0(J),J.subtreeFlags&6&&(J.flags|=8192)):j0(J),$=J.updateQueue,$!==null&&i$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&Q1(X8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),Q3(J2,J),j0(J),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function FI(_,J){switch(yU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 3:return Q3(J2,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return o(J),null;case 31:if(J.memoizedState!==null){if(z5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 13:if(z5(J),_=J.memoizedState,_!==null&&_.dehydrated!==null){if(J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 19:return Q1(o0,J),null;case 4:return c(J),null;case 10:return Q3(J.type,J),null;case 22:case 23:return z5(J),iU(J),_!==null&&Q1(X8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 24:return Q3(J2,J),null;case 25:return null;default:return null}}function $z(_,J){switch(yU(J),J.tag){case 3:Q3(J2,J),c(J);break;case 26:case 27:case 5:o(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&z5(J);break;case 13:z5(J);break;case 19:Q1(o0,J);break;case 10:Q3(J.type,J);break;case 22:case 23:z5(J),iU(J),_!==null&&Q1(X8,J);break;case 24:Q3(J2,J)}}function P4(_){return(_.mode&e1)!==i1}function Qz(_,J){P4(_)?(w4(),e9(J,_),I4()):e9(J,_)}function DG(_,J,$){P4(_)?(w4(),X7($,_,J),I4()):X7($,_,J)}function e9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&a2)!==hQ&&(t7=!0),q=A1(J,VP,$),(_&a2)!==hQ&&(t7=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&O5)!==0?"useLayoutEffect":($.tag&a2)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
141
141
 
142
- It looks like you wrote `+K+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
142
+ It looks like you wrote `+X+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
144
- `+K+`(() => {
144
+ `+X+`(() => {
145
145
  async function fetchData() {
146
146
  // You can await here
147
147
  const response = await MyAPI.getData(someId);
@@ -150,11 +150,11 @@ It looks like you wrote `+K+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,M1(J,function(L,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,I)},K,z)}$=$.next}while($!==G)}}catch(L){B0(J,J.return,L)}}function q7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var K=G.next;q=K;do{if((q.tag&_)===_){var z=q.inst,L=z.destroy;L!==void 0&&(z.destroy=void 0,(_&l2)!==bQ&&(d7=!0),G=J,M1(G,fP,G,$,L),(_&l2)!==bQ&&(d7=!1))}q=q.next}while(q!==K)}}catch(I){B0(J,J.return,I)}}function Qz(_,J){L4(_)?(B4(),a9(J,_),W4()):a9(J,_)}function kG(_,J,$){L4(_)?(B4(),q7($,_,J),W4()):q7($,_,J)}function qz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||m7||($.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(_)||"instance"),$.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(_)||"instance"));try{M1(_,GY,J,$)}catch(q){B0(_,_.return,q)}}}function qI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function UI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||m7||(J.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(_)||"instance"),J.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(_)||"instance"));try{var G=r6(_.type,$),K=M1(_,qI,J,G,q);$=xL,K!==void 0||$.has(_.type)||($.add(_.type),M1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(_))})),J.__reactInternalSnapshotBeforeUpdate=K}catch(z){B0(_,_.return,z)}}function Uz(_,J,$){$.props=r6(_.type,_.memoizedProps),$.state=_.memoizedState,L4(_)?(B4(),M1(_,qL,_,J,$),W4()):M1(_,qL,_,J,$)}function GI(_){var J=_.ref;if(J!==null){switch(_.tag){case 26:case 27:case 5:var $=_.stateNode;break;case 30:$=_.stateNode;break;default:$=_.stateNode}if(typeof J==="function")if(L4(_))try{B4(),_.refCleanup=J($)}finally{W4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",m(_)),J.current=$}}function s9(_,J){try{M1(_,GI,_)}catch($){B0(_,J,$)}}function A4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(L4(_))try{B4(),M1(_,q)}finally{W4(_)}else M1(_,q)}catch(G){B0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(L4(_))try{B4(),M1(_,$,null)}finally{W4(_)}else M1(_,$,null)}catch(G){B0(_,J,G)}else $.current=null}function Gz(_,J,$,q){var G=_.memoizedProps,K=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",vQ&&(J="nested-update"),typeof G==="function"&&G(K,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(K,J,q,$)}function ZI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",vQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Zz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{M1(_,VI,q,J,$,_)}catch(G){B0(_,_.return,G)}}function DG(_,J,$){try{M1(_,kI,_.stateNode,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Fz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&c3(_.type)||_.tag===4}function uG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Fz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&c3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function bG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(BW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(BW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=d4));else if(q!==4&&(q===27&&c3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(bG(_,J,$),_=_.sibling;_!==null;)bG(_,J,$),_=_.sibling}function l$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&c3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(l$(_,J,$),_=_.sibling;_!==null;)l$(_,J,$),_=_.sibling}function FI(_){for(var J,$=_.return;$!==null;){if(Fz($)){J=$;break}$=$.return}if(J==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(J.tag){case 27:J=J.stateNode,$=uG(_),l$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(WW($),J.flags&=-33),J=uG(_),l$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=uG(_),bG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Kz(_){var{stateNode:J,memoizedProps:$}=_;try{M1(_,sI,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Xz(_,J){return J.tag===31?(J=J.memoizedState,_.memoizedState!==null&&J===null):J.tag===13?(_=_.memoizedState,J=J.memoizedState,_!==null&&_.dehydrated!==null&&(J===null||J.dehydrated===null)):J.tag===3?_.memoizedState.isDehydrated&&(J.flags&256)===0:!1}function KI(_,J){if(_=_.containerInfo,uF=Xq,_=CH(_),TU(_)){if("selectionStart"in _)var $={start:_.selectionStart,end:_.selectionEnd};else _:{$=($=_.ownerDocument)&&$.defaultView||window;var q=$.getSelection&&$.getSelection();if(q&&q.rangeCount!==0){$=q.anchorNode;var{anchorOffset:G,focusNode:K}=q;q=q.focusOffset;try{$.nodeType,K.nodeType}catch(f1){$=null;break _}var z=0,L=-1,I=-1,f=0,n=0,_1=_,i=null;J:for(;;){for(var Z1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(L=z+G),_1!==K||q!==0&&_1.nodeType!==3||(I=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(Z1=_1.firstChild)===null)break;i=_1,_1=Z1}for(;;){if(_1===_)break J;if(i===$&&++f===G&&(L=z),i===K&&++n===q&&(I=z),(Z1=_1.nextSibling)!==null)break;_1=i,i=_1.parentNode}_1=Z1}$=L===-1||I===-1?null:{start:L,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;bF={focusedElem:_,selectionRange:$},Xq=!1;for(B2=J;B2!==null;)if(J=B2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,B2=_;else for(;B2!==null;){switch(_=J=B2,$=_.alternate,G=_.flags,_.tag){case 0:if((G&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)G=_[$],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&$!==null&&UI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)$Z(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":$Z(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(_=J.sibling,_!==null){_.return=J.return,B2=_;break}B2=J.return}}function Hz(_,J,$){var q=Z5(),G=X4(),K=Y4(),z=z4(),L=$.flags;switch($.tag){case 0:case 11:case 15:M4(_,$),L&4&&$z($,A5|V5);break;case 1:if(M4(_,$),L&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||m7||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m($)||"instance")),L4($)?(B4(),M1($,QF,$,_),W4()):M1($,QF,$,_);else{var I=r6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||m7||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m($)||"instance")),L4($)?(B4(),M1($,JL,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),W4()):M1($,JL,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}L&64&&qz($),L&512&&s9($,$.return);break;case 3:if(J=s4(),M4(_,$),L&64&&(L=$.updateQueue,L!==null)){if(I=null,$.child!==null)switch($.child.tag){case 27:case 5:I=$.child.stateNode;break;case 1:I=$.child.stateNode}try{M1($,GY,L,I)}catch(n){B0($,$.return,n)}}_.effectDuration+=A$(J);break;case 27:J===null&&L&4&&Kz($);case 26:case 5:if(M4(_,$),J===null){if(L&4)Zz($);else if(L&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{M1($,yI,I,_,J,$)}catch(n){B0($,$.return,n)}}}L&512&&s9($,$.return);break;case 12:if(L&4){L=s4(),M4(_,$),_=$.stateNode,_.effectDuration+=E9(L);try{M1($,Gz,$,J,e3,_.effectDuration)}catch(n){B0($,$.return,n)}}else M4(_,$);break;case 31:M4(_,$),L&4&&Wz(_,$);break;case 13:M4(_,$),L&4&&Bz(_,$),L&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(L=MI.bind(null,$),dI(_,L))));break;case 22:if(L=$.memoizedState!==null||H3,!L){J=J!==null&&J.memoizedState!==null||e0,I=H3;var f=e0;H3=L,(e0=J)&&!f?(T4(_,$,($.subtreeFlags&8772)!==0),($.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z$($,x1,g1)):M4(_,$),H3=I,e0=f}break;case 30:break;default:M4(_,$)}($.mode&t1)!==p1&&0<=x1&&0<=g1&&((x0||0.05<u0)&&F4($,x1,g1,u0,y0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<g1-x1&&(Xz($.return.alternate,$.return)||Z4($,x1,g1,"Mount"))),F5(q),H4(G),y0=K,x0=z}function Yz(_){var J=_.alternate;J!==null&&(_.alternate=null,Yz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&S1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function n4(_,J,$){for($=$.child;$!==null;)zz(_,J,$),$=$.sibling}function zz(_,J,$){if(S2&&typeof S2.onCommitFiberUnmount==="function")try{S2.onCommitFiberUnmount(L7,$)}catch(f){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",f))}var q=Z5(),G=X4(),K=Y4(),z=z4();switch($.tag){case 26:e0||A4($,J),n4(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:e0||A4($,J);var L=_2,I=J5;c3($.type)&&(_2=$.stateNode,J5=!1),n4(_,J,$),M1($,q_,$.stateNode),_2=L,J5=I;break;case 5:e0||A4($,J);case 6:if(L=_2,I=J5,_2=null,n4(_,J,$),_2=L,J5=I,_2!==null)if(J5)try{M1($,bI,_2,$.stateNode)}catch(f){B0($,J,f)}else try{M1($,uI,_2,$.stateNode)}catch(f){B0($,J,f)}break;case 18:_2!==null&&(J5?(_=_2,LW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),Y7(_)):LW(_2,$.stateNode));break;case 4:L=_2,I=J5,_2=$.stateNode.containerInfo,J5=!0,n4(_,J,$),_2=L,J5=I;break;case 0:case 11:case 14:case 15:q7(l2,$,J),e0||yG($,J,A5),n4(_,J,$);break;case 1:e0||(A4($,J),L=$.stateNode,typeof L.componentWillUnmount==="function"&&Uz($,J,L)),n4(_,J,$);break;case 21:n4(_,J,$);break;case 22:e0=(L=e0)||$.memoizedState!==null,n4(_,J,$),e0=L;break;default:n4(_,J,$)}($.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4($,x1,g1,u0,y0),F5(q),H4(G),y0=K,x0=z}function Wz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{M1(J,rI,_)}catch($){B0(J,J.return,$)}}}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{M1(J,aI,_)}catch($){B0(J,J.return,$)}}function XI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new mL),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new mL),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function d$(_,J){var $=XI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),C4)if(g7!==null&&p7!==null)e9(p7,g7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=TI.bind(null,_,q);q.then(G,G)}})}function e2(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,K=J,z=$[q],L=Z5(),I=K;_:for(;I!==null;){switch(I.tag){case 27:if(c3(I.type)){_2=I.stateNode,J5=!1;break _}break;case 5:_2=I.stateNode,J5=!1;break _;case 3:case 4:_2=I.stateNode.containerInfo,J5=!0;break _}I=I.return}if(_2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");zz(G,K,z),_2=null,J5=!1,(z.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(z,x1,g1,"Unmount"),F5(L),G=z,K=G.alternate,K!==null&&(K.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Lz(J,_),J=J.sibling}function Lz(_,J){var $=Z5(),q=X4(),G=Y4(),K=z4(),z=_.alternate,L=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:e2(J,_),_5(_),L&4&&(q7(l2|V5,_,_.return),a9(l2|V5,_),yG(_,_.return,A5|V5));break;case 1:if(e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),L&64&&H3&&(L=_.updateQueue,L!==null&&(z=L.callbacks,z!==null))){var I=L.shared.hiddenCallbacks;L.shared.hiddenCallbacks=I===null?z:I.concat(z)}break;case 26:if(I=s5,e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),L&4){var f=z!==null?z.memoizedState:null;if(L=_.memoizedState,z===null)if(L===null)if(_.stateNode===null){_:{L=_.type,z=_.memoizedProps,I=I.ownerDocument||I;J:switch(L){case"title":if(f=I.getElementsByTagName("title")[0],!f||f[H_]||f[O2]||f.namespaceURI===M7||f.hasAttribute("itemprop"))f=I.createElement(L),I.head.insertBefore(f,I.querySelector("head > title"));R2(f,L,z),f[O2]=_,E1(f),L=f;break _;case"link":var n=fW("link","href",I).get(L+(z.href||""));if(n){for(var _1=0;_1<n.length;_1++)if(f=n[_1],f.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&f.getAttribute("rel")===(z.rel==null?null:z.rel)&&f.getAttribute("title")===(z.title==null?null:z.title)&&f.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){n.splice(_1,1);break J}}f=I.createElement(L),R2(f,L,z),I.head.appendChild(f);break;case"meta":if(n=fW("meta","content",I).get(L+(z.content||""))){for(_1=0;_1<n.length;_1++)if(f=n[_1],K1(z.content,"content"),f.getAttribute("content")===(z.content==null?null:""+z.content)&&f.getAttribute("name")===(z.name==null?null:z.name)&&f.getAttribute("property")===(z.property==null?null:z.property)&&f.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&f.getAttribute("charset")===(z.charSet==null?null:z.charSet)){n.splice(_1,1);break J}}f=I.createElement(L),R2(f,L,z),I.head.appendChild(f);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+L+'". This is a bug in React.')}f[O2]=_,E1(f),L=f}_.stateNode=L}else SW(I,_.type,_.stateNode);else _.stateNode=CW(I,L,_.memoizedProps);else f!==L?(f===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):f.count--,L===null?SW(I,_.type,_.stateNode):CW(I,L,_.memoizedProps)):L===null&&_.stateNode!==null&&DG(_,_.memoizedProps,z.memoizedProps)}break;case 27:e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),z!==null&&L&4&&DG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),_.flags&32){I=_.stateNode;try{M1(_,WW,I)}catch(V1){B0(_,_.return,V1)}}L&4&&_.stateNode!=null&&(I=_.memoizedProps,DG(_,I,z!==null?z.memoizedProps:I)),L&1024&&(LF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(e2(J,_),_5(_),L&4){if(_.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");L=_.memoizedProps,z=z!==null?z.memoizedProps:L,I=_.stateNode;try{M1(_,DI,I,z,L)}catch(V1){B0(_,_.return,V1)}}break;case 3:if(I=s4(),Zq=null,f=s5,s5=e$(J.containerInfo),e2(J,_),s5=f,_5(_),L&4&&z!==null&&z.memoizedState.isDehydrated)try{M1(_,iI,J.containerInfo)}catch(V1){B0(_,_.return,V1)}LF&&(LF=!1,Az(_)),J.effectDuration+=A$(I);break;case 4:L=s5,s5=e$(_.stateNode.containerInfo),e2(J,_),_5(_),s5=L;break;case 12:L=s4(),e2(J,_),_5(_),_.stateNode.effectDuration+=E9(L);break;case 31:e2(J,_),_5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,d$(_,L)));break;case 13:e2(J,_),_5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(iQ=z2()),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,d$(_,L)));break;case 22:I=_.memoizedState!==null;var i=z!==null&&z.memoizedState!==null,Z1=H3,f1=e0;if(H3=Z1||I,e0=f1||i,e2(J,_),e0=f1,H3=Z1,i&&!I&&!Z1&&!f1&&(_.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z$(_,x1,g1),_5(_),L&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~R_:J._visibility|R_,!I||z===null||i||H3||e0||(a6(_),(_.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(_,x1,g1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){i=z=J;try{f=i.stateNode,I?M1(i,hI,f):M1(i,gI,i.stateNode,i.memoizedProps)}catch(V1){B0(i,i.return,V1)}}}else if(J.tag===6){if(z===null){i=J;try{n=i.stateNode,I?M1(i,xI,n):M1(i,pI,n,i.memoizedProps)}catch(V1){B0(i,i.return,V1)}}}else if(J.tag===18){if(z===null){i=J;try{_1=i.stateNode,I?M1(i,EI,_1):M1(i,mI,i.stateNode)}catch(V1){B0(i,i.return,V1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;z===J&&(z=null),J=J.return}z===J&&(z=null),J.sibling.return=J.return,J=J.sibling}L&4&&(L=_.updateQueue,L!==null&&(z=L.retryQueue,z!==null&&(L.retryQueue=null,d$(_,z))));break;case 19:e2(J,_),_5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,d$(_,L)));break;case 30:break;case 21:break;default:e2(J,_),_5(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&((x0||0.05<u0)&&F4(_,x1,g1,u0,y0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<g1-x1&&(Xz(_.return.alternate,_.return)||Z4(_,x1,g1,"Mount"))),F5($),H4(q),y0=G,x0=K}function _5(_){var J=_.flags;if(J&2){try{M1(_,FI,_)}catch($){B0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Az(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Az(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function M4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Hz(_,J.alternate,J),J=J.sibling}function Mz(_){var J=Z5(),$=X4(),q=Y4(),G=z4();switch(_.tag){case 0:case 11:case 14:case 15:yG(_,_.return,A5),a6(_);break;case 1:A4(_,_.return);var K=_.stateNode;typeof K.componentWillUnmount==="function"&&Uz(_,_.return,K),a6(_);break;case 27:M1(_,q_,_.stateNode);case 26:case 5:A4(_,_.return),a6(_);break;case 22:_.memoizedState===null&&a6(_);break;case 30:a6(_);break;default:a6(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(_,x1,g1,u0,y0),F5(J),H4($),y0=q,x0=G}function a6(_){for(_=_.child;_!==null;)Mz(_),_=_.sibling}function Tz(_,J,$,q){var G=Z5(),K=X4(),z=Y4(),L=z4(),I=$.flags;switch($.tag){case 0:case 11:case 15:T4(_,$,q),$z($,A5);break;case 1:if(T4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&M1($,QF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{M1($,iO,J,_)}catch(f){B0($,$.return,f)}}q&&I&64&&qz($),s9($,$.return);break;case 27:Kz($);case 26:case 5:T4(_,$,q),q&&J===null&&I&4&&Zz($),s9($,$.return);break;case 12:if(q&&I&4){I=s4(),T4(_,$,q),q=$.stateNode,q.effectDuration+=E9(I);try{M1($,Gz,$,J,e3,q.effectDuration)}catch(f){B0($,$.return,f)}}else T4(_,$,q);break;case 31:T4(_,$,q),q&&I&4&&Wz(_,$);break;case 13:T4(_,$,q),q&&I&4&&Bz(_,$);break;case 22:$.memoizedState===null&&T4(_,$,q),s9($,$.return);break;case 30:break;default:T4(_,$,q)}($.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4($,x1,g1,u0,y0),F5(G),H4(K),y0=z,x0=L}function T4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Tz(_,J.alternate,J,$),J=J.sibling}function EG(_,J){var $=null;_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),_=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(_=J.memoizedState.cachePool.pool),_!==$&&(_!=null&&c6(_),$!=null&&b9($))}function hG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(c6(J),_!=null&&b9(_))}function c5(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(J=J.child;J!==null;){var K=J.sibling;Rz(_,J,$,q,K!==null?K.actualStartTime:G),J=K}}function Rz(_,J,$,q,G){var K=Z5(),z=X4(),L=Y4(),I=z4(),f=s3,n=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&t1)!==p1&&0<J.actualStartTime&&(J.flags&1)!==0&&F$(J,J.actualStartTime,G,G2,$),c5(_,J,$,q,G),n&2048&&Qz(J,d2|V5);break;case 1:(J.mode&t1)!==p1&&0<J.actualStartTime&&((J.flags&128)!==0?OU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&F$(J,J.actualStartTime,G,G2,$)),c5(_,J,$,q,G);break;case 3:var _1=s4(),i=G2;G2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,c5(_,J,$,q,G),G2=i,n&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(c6(q),$!=null&&b9($))),_.passiveEffectDuration+=A$(_1);break;case 12:if(n&2048){n=s4(),c5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=E9(n);try{M1(J,ZI,J,J.alternate,e3,_.passiveEffectDuration)}catch(Z1){B0(J,J.return,Z1)}}else c5(_,J,$,q,G);break;case 31:n=G2,_1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,_1!==null&&i===null?(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(G2=!1,_1=_1.hydrationErrors,_1!==null&&OU(J,J.actualStartTime,G,_1)):G2=!0):G2=!1,c5(_,J,$,q,G),G2=n;break;case 13:n=G2,_1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,_1===null||_1.dehydrated===null||i!==null&&i.dehydrated!==null?G2=!1:(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(G2=!1,_1=_1.hydrationErrors,_1!==null&&OU(J,J.actualStartTime,G,_1)):G2=!0),c5(_,J,$,q,G),G2=n;break;case 23:break;case 22:i=J.stateNode,_1=J.alternate,J.memoizedState!==null?i._visibility&J3?c5(_,J,$,q,G):t9(_,J,$,q,G):i._visibility&J3?c5(_,J,$,q,G):(i._visibility|=J3,U7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&t1)===p1||G2||(_=J.actualStartTime,0<=_&&0.05<G-_&&Z$(J,_,G),0<=x1&&0<=g1&&0.05<g1-x1&&Z$(J,x1,g1))),n&2048&&EG(_1,J);break;case 24:c5(_,J,$,q,G),n&2048&&hG(J.alternate,J);break;default:c5(_,J,$,q,G)}if((J.mode&t1)!==p1){if(_=!G2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&Z4(J,$,G,"Mount");0<=x1&&0<=g1&&((x0||0.05<u0)&&F4(J,x1,g1,u0,y0),_&&0.05<g1-x1&&Z4(J,x1,g1,"Mount"))}F5(K),H4(z),y0=L,x0=I,s3=f}function U7(_,J,$,q,G,K){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var z=J.sibling;Oz(_,J,$,q,G,z!==null?z.actualStartTime:K),J=z}}function Oz(_,J,$,q,G,K){var z=Z5(),L=X4(),I=Y4(),f=z4(),n=s3;G&&(J.mode&t1)!==p1&&0<J.actualStartTime&&(J.flags&1)!==0&&F$(J,J.actualStartTime,K,G2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:U7(_,J,$,q,G,K),Qz(J,d2);break;case 23:break;case 22:var i=J.stateNode;J.memoizedState!==null?i._visibility&J3?U7(_,J,$,q,G,K):t9(_,J,$,q,K):(i._visibility|=J3,U7(_,J,$,q,G,K)),G&&_1&2048&&EG(J.alternate,J);break;case 24:U7(_,J,$,q,G,K),G&&_1&2048&&hG(J.alternate,J);break;default:U7(_,J,$,q,G,K)}(J.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(J,x1,g1,u0,y0),F5(z),H4(L),y0=I,x0=f,s3=n}function t9(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var K=J.child;K!==null;){J=K.sibling;var z=_,L=$,I=q,f=J!==null?J.actualStartTime:G,n=s3;(K.mode&t1)!==p1&&0<K.actualStartTime&&(K.flags&1)!==0&&F$(K,K.actualStartTime,f,G2,L);var _1=K.flags;switch(K.tag){case 22:t9(z,K,L,I,f),_1&2048&&EG(K.alternate,K);break;case 24:t9(z,K,L,I,f),_1&2048&&hG(K.alternate,K);break;default:t9(z,K,L,I,f)}s3=n,K=J}}function G7(_,J,$){if(_.subtreeFlags&m_)for(_=_.child;_!==null;)Iz(_,J,$),_=_.sibling}function Iz(_,J,$){switch(_.tag){case 26:G7(_,J,$),_.flags&m_&&_.memoizedState!==null&&nI($,s5,_.memoizedState,_.memoizedProps);break;case 5:G7(_,J,$);break;case 3:case 4:var q=s5;s5=e$(_.stateNode.containerInfo),G7(_,J,$),s5=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=m_,m_=16777216,G7(_,J,$),m_=q):G7(_,J,$));break;default:G7(_,J,$)}}function wz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function o9(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=Z5();B2=q,Cz(q,_),(q.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(q,x1,g1,"Unmount"),F5(G)}wz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Pz(_),_=_.sibling}function Pz(_){var J=Z5(),$=X4(),q=Y4(),G=z4();switch(_.tag){case 0:case 11:case 15:o9(_),_.flags&2048&&kG(_,_.return,d2|V5);break;case 3:var K=s4();o9(_),_.stateNode.passiveEffectDuration+=A$(K);break;case 12:K=s4(),o9(_),_.stateNode.passiveEffectDuration+=E9(K);break;case 22:K=_.stateNode,_.memoizedState!==null&&K._visibility&J3&&(_.return===null||_.return.tag!==13)?(K._visibility&=~J3,i$(_),(_.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(_,x1,g1,"Disconnect")):o9(_);break;default:o9(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(_,x1,g1,u0,y0),F5(J),H4($),x0=G,y0=q}function i$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=Z5();B2=q,Cz(q,_),(q.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(q,x1,g1,"Unmount"),F5(G)}wz(_)}for(_=_.child;_!==null;)Nz(_),_=_.sibling}function Nz(_){var J=Z5(),$=X4(),q=Y4(),G=z4();switch(_.tag){case 0:case 11:case 15:kG(_,_.return,d2),i$(_);break;case 22:var K=_.stateNode;K._visibility&J3&&(K._visibility&=~J3,i$(_));break;default:i$(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(_,x1,g1,u0,y0),F5(J),H4($),x0=G,y0=q}function Cz(_,J){for(;B2!==null;){var $=B2,q=$,G=J,K=Z5(),z=X4(),L=Y4(),I=z4();switch(q.tag){case 0:case 11:case 15:kG(q,G,d2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&c6(G));break;case 24:b9(q.memoizedState.cache)}if((q.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(q,x1,g1,u0,y0),F5(K),H4(z),x0=I,y0=L,q=$.child,q!==null)q.return=$,B2=q;else _:for($=_;B2!==null;){if(q=B2,K=q.sibling,z=q.return,Yz(q),q===$){B2=null;break _}if(K!==null){K.return=z,B2=K;break _}B2=z}}}function HI(){yP.forEach(function(_){return _()})}function fz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||H1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function X5(_){if((H0&Z2)!==L2&&n1!==0)return n1&-n1;var J=H1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),iG()):$1()}function Sz(){if(Q5===0)if((n1&536870912)===0||G0){var _=HQ;HQ<<=1,(HQ&3932160)===0&&(HQ=262144),Q5=_}else Q5=536870912;return _=L5.current,_!==null&&(_.flags|=32),Q5}function h0(_,J,$){if(d7&&console.error("useInsertionEffect must not schedule updates."),fF&&(tQ=!0),_===P0&&(T0===K8||T0===X8)||_.cancelPendingCommit!==null)F7(_,0),g3(_,n1,Q5,!1);if(C2(_,$),(H0&Z2)!==L2&&_===P0){if(P4)switch(J.tag){case 0:case 11:case 15:_=e1&&m(e1)||"Unknown",JA.has(_)||(JA.add(_),J=m(J)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",J,_,_));break;case 1:_A||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),_A=!0)}}else C4&&y6(_,J,$),OI(J),_===P0&&((H0&Z2)===L2&&(F6|=$),b0===U6&&g3(_,n1,Q5,!1)),R4(_)}function jz(_,J,$){if((H0&(Z2|M5))!==L2)throw Error("Should not already be working.");if(n1!==0&&e1!==null){var q=e1,G=z2();switch(rB){case c_:case K8:var K=C_;S0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",K,G,w5,void 0,"primary-light")):console.timeStamp("Suspended",K,G,w5,void 0,"primary-light"));break;case X8:K=C_,S0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",K,G,w5,void 0,"primary-light")):console.timeStamp("Action",K,G,w5,void 0,"primary-light"));break;default:S0&&(q=G-C_,3>q||console.timeStamp("Blocked",C_,G,w5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}K=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||D2(_,J))?zI(_,J):mG(_,J,!0);var z=$;do{if(K===Y3){c7&&!$&&g3(_,J,0,!1),J=T0,C_=t0(),rB=J;break}else{if(q=z2(),G=_.current.alternate,z&&!YI(G)){U5(J),G=W2,K=q,!S0||K<=G||(p0?p0.run(console.timeStamp.bind(console,"Teared Render",G,K,q0,$0,"error")):console.timeStamp("Teared Render",G,K,q0,$0,"error")),s6(J,q),K=mG(_,J,!1),z=!1;continue}if(K===F8){if(z=J,_.errorRecoveryDisabledLanes&z)var L=0;else L=_.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){U5(J),IU(W2,q,J,p0),s6(J,q),J=L;_:{q=_,K=z,z=d_;var I=q.current.memoizedState.isDehydrated;if(I&&(F7(q,L).flags|=256),L=mG(q,L,!1),L!==F8){if(TF&&!I){q.errorRecoveryDisabledLanes|=K,F6|=K,K=U6;break _}q=i2,i2=z,q!==null&&(i2===null?i2=q:i2.push.apply(i2,q))}K=L}if(z=!1,K!==F8)continue;else q=z2()}}if(K===p_){U5(J),IU(W2,q,J,p0),s6(J,q),F7(_,0),g3(_,J,0,!0);break}_:{switch($=_,K){case Y3:case p_:throw Error("Root did not complete. This is a bug in React.");case U6:if((J&4194048)!==J)break;case pQ:U5(J),jH(W2,q,J,p0),s6(J,q),G=J,(G&127)!==0?fQ=q:(G&4194048)!==0&&(SQ=q),g3($,J,Q5,!G6);break _;case F8:i2=null;break;case gQ:case gL:break;default:throw Error("Unknown root exit status.")}if(H1.actQueue!==null)gG($,G,J,i2,i_,dQ,Q5,F6,H8,K,null,null,W2,q);else{if((J&62914560)===J&&(z=iQ+lL-z2(),10<z)){if(g3($,J,Q5,!G6),O0($,0,!0)!==0)break _;t5=J,$.timeoutHandle=KA(vz.bind(null,$,G,i2,i_,dQ,J,Q5,F6,H8,G6,K,"Throttled",W2,q),z);break _}vz($,G,i2,i_,dQ,J,Q5,F6,H8,G6,K,null,W2,q)}}}break}while(1);R4(_)}function vz(_,J,$,q,G,K,z,L,I,f,n,_1,i,Z1){_.timeoutHandle=L8;var f1=J.subtreeFlags,V1=null;if(f1&8192||(f1&16785408)===16785408){if(V1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:d4},Iz(J,K,V1),f1=(K&62914560)===K?iQ-z2():(K&4194048)===K?cL-z2():0,f1=eI(V1,f1),f1!==null){t5=K,_.cancelPendingCommit=f1(gG.bind(null,_,J,K,$,q,G,z,L,I,n,V1,V1.waitingForViewTransition?"Waiting for the previous Animation":0<V1.count?0<V1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":V1.imgCount===1?"Suspended on an Image":0<V1.imgCount?"Suspended on Images":null,i,Z1)),g3(_,K,z,!f);return}}gG(_,J,K,$,q,G,z,L,I,n,V1,_1,i,Z1)}function YI(_){for(var J=_;;){var $=J.tag;if(($===0||$===11||$===15)&&J.flags&16384&&($=J.updateQueue,$!==null&&($=$.stores,$!==null)))for(var q=0;q<$.length;q++){var G=$[q],K=G.getSnapshot;G=G.value;try{if(!p2(K(),G))return!1}catch(z){return!1}}if($=J.child,J.subtreeFlags&16384&&$!==null)$.return=J,J=$;else{if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return!0;J=J.return}J.sibling.return=J.return,J=J.sibling}}return!0}function g3(_,J,$,q){J&=~RF,J&=~F6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var K=31-x2(G),z=1<<K;q[K]=-1,G&=~z}$!==0&&x5(_,$,J)}function Z7(){return(H0&(Z2|M5))===L2?(__(0,!1),!1):!0}function xG(){if(e1!==null){if(T0===$5)var _=e1.return;else _=e1,W$(),tU(_),D7=null,u_=0,_=e1;for(;_!==null;)Jz(_.alternate,_),_=_.return;e1=null}}function s6(_,J){(_&127)!==0&&(_6=J),(_&4194048)!==0&&(V4=J),(_&62914560)!==0&&(dB=J),(_&2080374784)!==0&&(iB=J)}function F7(_,J){S0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",$0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",$0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",$0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",$0,"primary-light"));var $=W2;if(W2=t0(),n1!==0&&0<$){if(U5(n1),b0===gQ||b0===U6)jH($,W2,J,p0);else{var q=W2,G=p0;if(S0&&!(q<=$)){var K=(J&738197653)===J?"tertiary-dark":"primary-dark",z=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,z,$,q,q0,$0,K)):console.timeStamp(z,$,q,q0,$0,K)}}s6(n1,W2)}if($=p0,p0=null,(J&127)!==0){p0=w_,G=0<=v4&&v4<_6?_6:v4,q=0<=_8&&_8<_6?_6:_8,K=0<=q?q:0<=G?G:W2,0<=fQ?(U5(2),vH(fQ,K,J,$)):(jQ&127)!==0&&(U5(2),D9(_6,K,Z3)),$=G;var L=q,I=P_,f=0<V7,n=J6===I_,_1=J6===CQ;if(G=W2,q=w_,K=nZ,z=eZ,S0){if(q0="Blocking",0<$?$>G&&($=G):$=G,0<L?L>$&&(L=$):L=$,I!==null&&$>L){var i=f?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+I,L,$,q0,$0,i)):console.timeStamp(f?"Consecutive":"Event: "+I,L,$,q0,$0,i)}G>$&&(L=n?"error":(J&738197653)===J?"tertiary-light":"primary-light",n=_1?"Promise Resolved":n?"Cascading Update":5<G-$?"Update Blocked":"Update",_1=[],z!=null&&_1.push(["Component name",z]),K!=null&&_1.push(["Method name",K]),$={start:$,end:G,detail:{devtools:{properties:_1,track:q0,trackGroup:$0,color:L}}},q?q.run(performance.measure.bind(performance,n,$)):performance.measure(n,$))}v4=-1.1,J6=0,eZ=nZ=null,fQ=-1.1,V7=_8,_8=-1.1,_6=t0()}if((J&4194048)!==0&&(p0=N_,G=0<=G3&&G3<V4?V4:G3,$=0<=j5&&j5<V4?V4:j5,q=0<=$6&&$6<V4?V4:$6,K=0<=q?q:0<=$?$:W2,0<=SQ?(U5(256),vH(SQ,K,J,p0)):(jQ&4194048)!==0&&(U5(256),D9(V4,K,Z3)),_1=q,L=J8,I=0<Q6,f=_F===CQ,K=W2,q=N_,z=cB,n=lB,S0&&(q0="Transition",0<$?$>K&&($=K):$=K,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&L!==null&&(i=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+L,_1,G,q0,$0,i)):console.timeStamp(I?"Consecutive":"Event: "+L,_1,G,q0,$0,i)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,q0,$0,"primary-dark")):console.timeStamp("Action",G,$,q0,$0,"primary-dark")),K>$&&(G=f?"Promise Resolved":5<K-$?"Update Blocked":"Update",_1=[],n!=null&&_1.push(["Component name",n]),z!=null&&_1.push(["Method name",z]),$={start:$,end:K,detail:{devtools:{properties:_1,track:q0,trackGroup:$0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),j5=G3=-1.1,_F=0,SQ=-1.1,Q6=$6,$6=-1.1,V4=t0()),(J&62914560)!==0&&(jQ&62914560)!==0&&(U5(4194304),D9(dB,W2,Z3)),(J&2080374784)!==0&&(jQ&2080374784)!==0&&(U5(268435456),D9(iB,W2,Z3)),$=_.timeoutHandle,$!==L8&&(_.timeoutHandle=L8,dP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),t5=0,xG(),P0=_,e1=$=i4(_.current,null),n1=J,T0=$5,T5=null,G6=!1,c7=D2(_,J),TF=!1,b0=Y3,H8=Q5=RF=F6=Z6=0,i2=d_=null,dQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-x2(q),K=1<<G,J|=_[G],q&=~K;return k4=J,K$(),_=EB(),1000<_-bB&&(H1.recentlyCreatedOwnerStacks=0,bB=_),r5.discardPendingWarnings(),$}function Vz(_,J){i1=null,H1.H=x_,H1.getCurrentStack=null,P4=!1,z5=null,J===k7||J===kQ?(J=nH(),T0=c_):J===qF?(J=nH(),T0=pL):T0=J===WF?MF:J!==null&&typeof J==="object"&&typeof J.then==="function"?l_:cQ,T5=J;var $=e1;$===null?(b0=p_,x$(_,G5(J,_.current))):$.mode&t1&&EU($)}function yz(){var _=L5.current;return _===null?!0:(n1&4194048)===n1?v5===null?!0:!1:(n1&62914560)===n1||(n1&536870912)!==0?_===v5:!1}function kz(){var _=H1.H;return H1.H=x_,_===null?x_:_}function Dz(){var _=H1.A;return H1.A=VP,_}function r$(_){p0===null&&(p0=_._debugTask==null?null:_._debugTask)}function a$(){b0=U6,G6||(n1&4194048)!==n1&&L5.current!==null||(c7=!0),(Z6&134217727)===0&&(F6&134217727)===0||P0===null||g3(P0,n1,Q5,!1)}function mG(_,J,$){var q=H0;H0|=Z2;var G=kz(),K=Dz();if(P0!==_||n1!==J){if(C4){var z=_.memoizedUpdaters;0<z.size&&(e9(_,n1),z.clear()),q4(_,J)}i_=null,F7(_,J)}J=!1,z=b0;_:do try{if(T0!==$5&&e1!==null){var L=e1,I=T5;switch(T0){case MF:xG(),z=pQ;break _;case c_:case K8:case X8:case l_:L5.current===null&&(J=!0);var f=T0;if(T0=$5,T5=null,K7(_,L,I,f),$&&c7){z=Y3;break _}break;default:f=T0,T0=$5,T5=null,K7(_,L,I,f)}}uz(),z=b0;break}catch(n){Vz(_,n)}while(1);return J&&_.shellSuspendCounter++,W$(),H0=q,H1.H=G,H1.A=K,e1===null&&(P0=null,n1=0,K$()),z}function uz(){for(;e1!==null;)bz(e1)}function zI(_,J){var $=H0;H0|=Z2;var q=kz(),G=Dz();if(P0!==_||n1!==J){if(C4){var K=_.memoizedUpdaters;0<K.size&&(e9(_,n1),K.clear()),q4(_,J)}i_=null,rQ=z2()+dL,F7(_,J)}else c7=D2(_,J);_:do try{if(T0!==$5&&e1!==null)J:switch(J=e1,K=T5,T0){case cQ:T0=$5,T5=null,K7(_,J,K,cQ);break;case K8:case X8:if(tH(K)){T0=$5,T5=null,Ez(J);break}J=function(){T0!==K8&&T0!==X8||P0!==_||(T0=lQ),R4(_)},K.then(J,J);break _;case c_:T0=lQ;break _;case pL:T0=AF;break _;case lQ:tH(K)?(T0=$5,T5=null,Ez(J)):(T0=$5,T5=null,K7(_,J,K,lQ));break;case AF:var z=null;switch(e1.tag){case 26:z=e1.memoizedState;case 5:case 27:var L=e1;if(z?jW(z):L.stateNode.complete){T0=$5,T5=null;var I=L.sibling;if(I!==null)e1=I;else{var f=L.return;f!==null?(e1=f,s$(f)):e1=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}T0=$5,T5=null,K7(_,J,K,AF);break;case l_:T0=$5,T5=null,K7(_,J,K,l_);break;case MF:xG(),b0=pQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}H1.actQueue!==null?uz():WI();break}catch(n){Vz(_,n)}while(1);if(W$(),H1.H=q,H1.A=G,H0=$,e1!==null)return Y3;return P0=null,n1=0,K$(),b0}function WI(){for(;e1!==null&&!Yw();)bz(e1)}function bz(_){var J=_.alternate;(_.mode&t1)!==p1?(bU(_),J=M1(_,vG,J,_,k4),EU(_)):J=M1(_,vG,J,_,k4),_.memoizedProps=_.pendingProps,J===null?s$(_):e1=J}function Ez(_){var J=M1(_,BI,_);_.memoizedProps=_.pendingProps,J===null?s$(_):e1=J}function BI(_){var J=_.alternate,$=(_.mode&t1)!==p1;switch($&&bU(_),_.tag){case 15:case 0:J=aY(J,_,_.pendingProps,_.type,void 0,n1);break;case 11:J=aY(J,_,_.pendingProps,_.type.render,_.ref,n1);break;case 5:tU(_);default:Jz(J,_),_=e1=bH(_,k4),J=vG(J,_,k4)}return $&&EU(_),J}function K7(_,J,$,q){W$(),tU(J),D7=null,u_=0;var G=J.return;try{if(eO(_,G,J,$,n1)){b0=p_,x$(_,G5($,_.current)),e1=null;return}}catch(K){if(G!==null)throw e1=G,K;b0=p_,x$(_,G5($,_.current)),e1=null;return}if(J.flags&32768){if(G0||q===cQ)_=!0;else if(c7||(n1&536870912)!==0)_=!1;else if(G6=_=!0,q===K8||q===X8||q===c_||q===l_)q=L5.current,q!==null&&q.tag===13&&(q.flags|=16384);hz(J,_)}else s$(J)}function s$(_){var J=_;do{if((J.flags&32768)!==0){hz(J,G6);return}var $=J.alternate;if(_=J.return,bU(J),$=M1(J,$I,$,J,k4),(J.mode&t1)!==p1&&dH(J),$!==null){e1=$;return}if(J=J.sibling,J!==null){e1=J;return}e1=J=_}while(J!==null);b0===Y3&&(b0=gL)}function hz(_,J){do{var $=QI(_.alternate,_);if($!==null){$.flags&=32767,e1=$;return}if((_.mode&t1)!==p1){dH(_),$=_.actualDuration;for(var q=_.child;q!==null;)$+=q.actualDuration,q=q.sibling;_.actualDuration=$}if($=_.return,$!==null&&($.flags|=32768,$.subtreeFlags=0,$.deletions=null),!J&&(_=_.sibling,_!==null)){e1=_;return}e1=_=$}while(_!==null);b0=pQ,e1=null}function gG(_,J,$,q,G,K,z,L,I,f,n,_1,i,Z1){_.cancelPendingCommit=null;do n9();while(J2!==X6);if(r5.flushLegacyContextWarning(),r5.flushPendingUnsafeLifecycleWarnings(),(H0&(Z2|M5))!==L2)throw Error("Should not already be working.");if(U5($),f===F8?IU(i,Z1,$,p0):q!==null?mO(i,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,p0):xO(i,Z1,$,p0),J!==null){if($===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),J===_.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(K=J.lanes|J.childLanes,K|=rZ,C3(_,$,K,z,L,I),_===P0&&(e1=P0=null,n1=0),l7=J,H6=_,t5=$,wF=K,NF=G,oL=q,PF=Z1,nL=_1,o5=aQ,eL=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,RI(B7,function(){return n_=window.event,o5===aQ&&(o5=IF),cz(),null})):(_.callbackNode=null,_.callbackPriority=0),U3=null,e3=t0(),_1!==null&&gO(Z1,e3,_1,p0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=H1.T,H1.T=null,G=L0.p,L0.p=W5,z=H0,H0|=M5;try{KI(_,J,$)}finally{H0=z,L0.p=G,H1.T=q}}J2=rL,xz(),mz(),gz()}}function xz(){if(J2===rL){J2=X6;var _=H6,J=l7,$=t5,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=H1.T,H1.T=null;var G=L0.p;L0.p=W5;var K=H0;H0|=M5;try{g7=$,p7=_,M$(),Lz(J,_),p7=g7=null,$=bF;var z=CH(_.containerInfo),L=$.focusedElem,I=$.selectionRange;if(z!==L&&L&&L.ownerDocument&&NH(L.ownerDocument.documentElement,L)){if(I!==null&&TU(L)){var{start:f,end:n}=I;if(n===void 0&&(n=f),"selectionStart"in L)L.selectionStart=f,L.selectionEnd=Math.min(n,L.value.length);else{var _1=L.ownerDocument||document,i=_1&&_1.defaultView||window;if(i.getSelection){var Z1=i.getSelection(),f1=L.textContent.length,V1=Math.min(I.start,f1),C0=I.end===void 0?V1:Math.min(I.end,f1);!Z1.extend&&V1>C0&&(z=C0,C0=V1,V1=z);var F0=PH(L,V1),l=PH(L,C0);if(F0&&l&&(Z1.rangeCount!==1||Z1.anchorNode!==F0.node||Z1.anchorOffset!==F0.offset||Z1.focusNode!==l.node||Z1.focusOffset!==l.offset)){var r=_1.createRange();r.setStart(F0.node,F0.offset),Z1.removeAllRanges(),V1>C0?(Z1.addRange(r),Z1.extend(l.node,l.offset)):(r.setEnd(l.node,l.offset),Z1.addRange(r))}}}}_1=[];for(Z1=L;Z1=Z1.parentNode;)Z1.nodeType===1&&_1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof L.focus==="function"&&L.focus();for(L=0;L<_1.length;L++){var o=_1[L];o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}Xq=!!uF,bF=uF=null}finally{H0=K,L0.p=G,H1.T=q}}_.current=J,J2=aL}}function mz(){if(J2===aL){J2=X6;var _=eL;if(_!==null){e3=t0();var J=q3,$=e3;!S0||$<=J||(Z3?Z3.run(console.timeStamp.bind(console,_,J,$,q0,$0,"secondary-light")):console.timeStamp(_,J,$,q0,$0,"secondary-light"))}_=H6,J=l7,$=t5;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=H1.T,H1.T=null;var G=L0.p;L0.p=W5;var K=H0;H0|=M5;try{g7=$,p7=_,M$(),Hz(_,J.alternate,J),p7=g7=null}finally{H0=K,L0.p=G,H1.T=q}}_=PF,J=nL,q3=t0(),_=J===null?_:e3,J=q3,$=o5===OF,q=p0,U3!==null?VH(_,J,U3,!1,q):!S0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,q0,$0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,q0,$0,$?"error":"secondary-dark")),J2=sL}}function gz(){if(J2===tL||J2===sL){if(J2===tL){var _=q3;q3=t0();var J=q3,$=o5===OF;!S0||J<=_||(Z3?Z3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,q0,$0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,q0,$0,$?" error":"secondary-light")),o5!==OF&&(o5=iL)}J2=X6,zw(),_=H6;var q=l7;J=t5,$=oL;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?J2=sQ:(J2=X6,l7=H6=null,pz(_,_.pendingLanes),Y8=0,a_=null);var K=_.pendingLanes;if(K===0&&(K6=null),G||rz(_),K=j(J),q=q.stateNode,S2&&typeof S2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(K){case W5:var L=NZ;break;case d5:L=CZ;break;case f4:L=B7;break;case zQ:L=fZ;break;default:L=B7}S2.onCommitFiberRoot(L7,q,L,z)}catch(_1){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(C4&&_.memoizedUpdaters.clear(),HI(),$!==null){z=H1.T,L=L0.p,L0.p=W5,H1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var f=$[q],n=LI(f.stack);M1(f.source,I,f.value,n)}}finally{H1.T=z,L0.p=L}}(t5&3)!==0&&n9(),R4(_),K=_.pendingLanes,(J&261930)!==0&&(K&42)!==0?(VQ=!0,_===CF?r_++:(r_=0,CF=_)):r_=0,G||s6(J,q3),__(0,!1)}}function LI(_){return _={componentStack:_},Object.defineProperty(_,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),_}function pz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,b9(J)))}function n9(){return xz(),mz(),gz(),cz()}function cz(){if(J2!==sQ)return!1;var _=H6,J=wF;wF=0;var $=j(t5),q=f4===0||f4>$?f4:$;$=H1.T;var G=L0.p;try{L0.p=q,H1.T=null;var K=NF;NF=null,q=H6;var z=t5;if(J2=X6,l7=H6=null,t5=0,(H0&(Z2|M5))!==L2)throw Error("Cannot flush passive effects while already rendering.");U5(z),fF=!0,tQ=!1;var L=0;if(U3=null,L=z2(),o5===iL)D9(q3,L,Z3);else{var I=q3,f=L,n=o5===IF;!S0||f<=I||(p0?p0.run(console.timeStamp.bind(console,n?"Waiting for Paint":"Waiting",I,f,q0,$0,"secondary-light")):console.timeStamp(n?"Waiting for Paint":"Waiting",I,f,q0,$0,"secondary-light"))}I=H0,H0|=M5;var _1=q.current;M$(),Pz(_1);var i=q.current;_1=PF,M$(),Rz(q,i,z,K,_1),rz(q),H0=I;var Z1=z2();if(i=L,_1=p0,U3!==null?VH(i,Z1,U3,!0,_1):!S0||Z1<=i||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",i,Z1,q0,$0,"secondary-dark")):console.timeStamp("Remaining Effects",i,Z1,q0,$0,"secondary-dark")),s6(z,Z1),__(0,!1),tQ?q===a_?Y8++:(Y8=0,a_=q):Y8=0,tQ=fF=!1,S2&&typeof S2.onPostCommitFiberRoot==="function")try{S2.onPostCommitFiberRoot(L7,q)}catch(V1){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",V1))}var f1=q.current.stateNode;return f1.effectDuration=0,f1.passiveEffectDuration=0,!0}finally{L0.p=G,H1.T=$,pz(_,J)}}function lz(_,J,$){J=G5($,J),iH(J),J=TG(_.stateNode,J,2),_=E3(_,J,2),_!==null&&(C2(_,2),R4(_))}function B0(_,J,$){if(d7=!1,_.tag===3)lz(_,_,$);else{for(;J!==null;){if(J.tag===3){lz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(K6===null||!K6.has(q))){_=G5($,_),iH(_),$=RG(2),q=E3(J,$,2),q!==null&&(OG($,q,J,_),C2(q,2),R4(q));return}}J=J.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,A1(J,function(L,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,w)},X,z)}$=$.next}while($!==G)}}catch(L){L0(J,J.return,L)}}function X7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var X=G.next;q=X;do{if((q.tag&_)===_){var z=q.inst,L=z.destroy;L!==void 0&&(z.destroy=void 0,(_&a2)!==hQ&&(t7=!0),G=J,A1(G,yP,G,$,L),(_&a2)!==hQ&&(t7=!1))}q=q.next}while(q!==X)}}catch(w){L0(J,J.return,w)}}function qz(_,J){P4(_)?(w4(),e9(J,_),I4()):e9(J,_)}function uG(_,J,$){P4(_)?(w4(),X7($,_,J),I4()):X7($,_,J)}function Uz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||i7||($.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x(_)||"instance"),$.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x(_)||"instance"));try{A1(_,ZY,J,$)}catch(q){L0(_,_.return,q)}}}function XI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function KI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||i7||(J.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x(_)||"instance"),J.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x(_)||"instance"));try{var G=e6(_.type,$),X=A1(_,XI,J,G,q);$=mL,X!==void 0||$.has(_.type)||($.add(_.type),A1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",x(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(z){L0(_,_.return,z)}}function Gz(_,J,$){$.props=e6(_.type,_.memoizedProps),$.state=_.memoizedState,P4(_)?(w4(),A1(_,UL,_,J,$),I4()):A1(_,UL,_,J,$)}function HI(_){var J=_.ref;if(J!==null){switch(_.tag){case 26:case 27:case 5:var $=_.stateNode;break;case 30:$=_.stateNode;break;default:$=_.stateNode}if(typeof J==="function")if(P4(_))try{w4(),_.refCleanup=J($)}finally{I4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",x(_)),J.current=$}}function __(_,J){try{A1(_,HI,_)}catch($){L0(_,J,$)}}function N4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(P4(_))try{w4(),A1(_,q)}finally{I4(_)}else A1(_,q)}catch(G){L0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(P4(_))try{w4(),A1(_,$,null)}finally{I4(_)}else A1(_,$,null)}catch(G){L0(_,J,G)}else $.current=null}function Zz(_,J,$,q){var G=_.memoizedProps,X=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",yQ&&(J="nested-update"),typeof G==="function"&&G(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(X,J,q,$)}function YI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",yQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Fz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{A1(_,bI,q,J,$,_)}catch(G){L0(_,_.return,G)}}function bG(_,J,$){try{A1(_,hI,_.stateNode,_.type,$,J,_)}catch(q){L0(_,_.return,q)}}function Xz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&e3(_.type)||_.tag===4}function EG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Xz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&e3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function hG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(LW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(LW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=_3));else if(q!==4&&(q===27&&e3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(hG(_,J,$),_=_.sibling;_!==null;)hG(_,J,$),_=_.sibling}function d$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&e3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(d$(_,J,$),_=_.sibling;_!==null;)d$(_,J,$),_=_.sibling}function zI(_){for(var J,$=_.return;$!==null;){if(Xz($)){J=$;break}$=$.return}if(J==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(J.tag){case 27:J=J.stateNode,$=EG(_),d$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(BW($),J.flags&=-33),J=EG(_),d$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=EG(_),hG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Kz(_){var{stateNode:J,memoizedProps:$}=_;try{A1(_,_w,_.type,$,J,_)}catch(q){L0(_,_.return,q)}}function Hz(_,J){return J.tag===31?(J=J.memoizedState,_.memoizedState!==null&&J===null):J.tag===13?(_=_.memoizedState,J=J.memoizedState,_!==null&&_.dehydrated!==null&&(J===null||J.dehydrated===null)):J.tag===3?_.memoizedState.isDehydrated&&(J.flags&256)===0:!1}function WI(_,J){if(_=_.containerInfo,EF=Yq,_=fH(_),OU(_)){if("selectionStart"in _)var $={start:_.selectionStart,end:_.selectionEnd};else _:{$=($=_.ownerDocument)&&$.defaultView||window;var q=$.getSelection&&$.getSelection();if(q&&q.rangeCount!==0){$=q.anchorNode;var{anchorOffset:G,focusNode:X}=q;q=q.focusOffset;try{$.nodeType,X.nodeType}catch(f1){$=null;break _}var z=0,L=-1,w=-1,S=0,e=0,_1=_,r=null;J:for(;;){for(var Z1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(L=z+G),_1!==X||q!==0&&_1.nodeType!==3||(w=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(Z1=_1.firstChild)===null)break;r=_1,_1=Z1}for(;;){if(_1===_)break J;if(r===$&&++S===G&&(L=z),r===X&&++e===q&&(w=z),(Z1=_1.nextSibling)!==null)break;_1=r,r=_1.parentNode}_1=Z1}$=L===-1||w===-1?null:{start:L,end:w}}else $=null}$=$||{start:0,end:0}}else $=null;hF={focusedElem:_,selectionRange:$},Yq=!1;for(I2=J;I2!==null;)if(J=I2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,I2=_;else for(;I2!==null;){switch(_=J=I2,$=_.alternate,G=_.flags,_.tag){case 0:if((G&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)G=_[$],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&$!==null&&KI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)qZ(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":qZ(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(_=J.sibling,_!==null){_.return=J.return,I2=_;break}I2=J.return}}function Yz(_,J,$){var q=H5(),G=M4(),X=R4(),z=O4(),L=$.flags;switch($.tag){case 0:case 11:case 15:C4(_,$),L&4&&Qz($,O5|x5);break;case 1:if(C4(_,$),L&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||i7||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x($)||"instance")),P4($)?(w4(),A1($,UF,$,_),I4()):A1($,UF,$,_);else{var w=e6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||i7||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x($)||"instance")),P4($)?(w4(),A1($,$L,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate),I4()):A1($,$L,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate)}L&64&&Uz($),L&512&&__($,$.return);break;case 3:if(J=q3(),C4(_,$),L&64&&(L=$.updateQueue,L!==null)){if(w=null,$.child!==null)switch($.child.tag){case 27:case 5:w=$.child.stateNode;break;case 1:w=$.child.stateNode}try{A1($,ZY,L,w)}catch(e){L0($,$.return,e)}}_.effectDuration+=T$(J);break;case 27:J===null&&L&4&&Kz($);case 26:case 5:if(C4(_,$),J===null){if(L&4)Fz($);else if(L&64){_=$.type,J=$.memoizedProps,w=$.stateNode;try{A1($,EI,w,_,J,$)}catch(e){L0($,$.return,e)}}}L&512&&__($,$.return);break;case 12:if(L&4){L=q3(),C4(_,$),_=$.stateNode,_.effectDuration+=p9(L);try{A1($,Zz,$,J,X6,_.effectDuration)}catch(e){L0($,$.return,e)}}else C4(_,$);break;case 31:C4(_,$),L&4&&Bz(_,$);break;case 13:C4(_,$),L&4&&Lz(_,$),L&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(L=wI.bind(null,$),tI(_,L))));break;case 22:if(L=$.memoizedState!==null||R3,!L){J=J!==null&&J.memoizedState!==null||U2,w=R3;var S=U2;R3=L,(U2=J)&&!S?(f4(_,$,($.subtreeFlags&8772)!==0),($.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$($,m1,l1)):C4(_,$),R3=w,U2=S}break;case 30:break;default:C4(_,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&L4($,m1,l1,m0,b0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<l1-m1&&(Hz($.return.alternate,$.return)||B4($,m1,l1,"Mount"))),Y5(q),T4(G),b0=X,l0=z}function zz(_){var J=_.alternate;J!==null&&(_.alternate=null,zz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&I1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function Z3(_,J,$){for($=$.child;$!==null;)Wz(_,J,$),$=$.sibling}function Wz(_,J,$){if(D2&&typeof D2.onCommitFiberUnmount==="function")try{D2.onCommitFiberUnmount(O7,$)}catch(S){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",S))}var q=H5(),G=M4(),X=R4(),z=O4();switch($.tag){case 26:U2||N4($,J),Z3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:U2||N4($,J);var L=G2,w=U5;e3($.type)&&(G2=$.stateNode,U5=!1),Z3(_,J,$),A1($,X_,$.stateNode),G2=L,U5=w;break;case 5:U2||N4($,J);case 6:if(L=G2,w=U5,G2=null,Z3(_,J,$),G2=L,U5=w,G2!==null)if(U5)try{A1($,gI,G2,$.stateNode)}catch(S){L0($,J,S)}else try{A1($,mI,G2,$.stateNode)}catch(S){L0($,J,S)}break;case 18:G2!==null&&(U5?(_=G2,AW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),A7(_)):AW(G2,$.stateNode));break;case 4:L=G2,w=U5,G2=$.stateNode.containerInfo,U5=!0,Z3(_,J,$),G2=L,U5=w;break;case 0:case 11:case 14:case 15:X7(a2,$,J),U2||DG($,J,O5),Z3(_,J,$);break;case 1:U2||(N4($,J),L=$.stateNode,typeof L.componentWillUnmount==="function"&&Gz($,J,L)),Z3(_,J,$);break;case 21:Z3(_,J,$);break;case 22:U2=(L=U2)||$.memoizedState!==null,Z3(_,J,$),U2=L;break;default:Z3(_,J,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4($,m1,l1,m0,b0),Y5(q),T4(G),b0=X,l0=z}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{A1(J,nI,_)}catch($){L0(J,J.return,$)}}}function Lz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{A1(J,eI,_)}catch($){L0(J,J.return,$)}}function BI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new gL),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new gL),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function r$(_,J){var $=BI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),D4)if(d7!==null&&r7!==null)q_(r7,d7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=PI.bind(null,_,q);q.then(G,G)}})}function Q5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,X=J,z=$[q],L=H5(),w=X;_:for(;w!==null;){switch(w.tag){case 27:if(e3(w.type)){G2=w.stateNode,U5=!1;break _}break;case 5:G2=w.stateNode,U5=!1;break _;case 3:case 4:G2=w.stateNode.containerInfo,U5=!0;break _}w=w.return}if(G2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Wz(G,X,z),G2=null,U5=!1,(z.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(z,m1,l1,"Unmount"),Y5(L),G=z,X=G.alternate,X!==null&&(X.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Az(J,_),J=J.sibling}function Az(_,J){var $=H5(),q=M4(),G=R4(),X=O4(),z=_.alternate,L=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:Q5(J,_),q5(_),L&4&&(X7(a2|x5,_,_.return),e9(a2|x5,_),DG(_,_.return,O5|x5));break;case 1:if(Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),L&64&&R3&&(L=_.updateQueue,L!==null&&(z=L.callbacks,z!==null))){var w=L.shared.hiddenCallbacks;L.shared.hiddenCallbacks=w===null?z:w.concat(z)}break;case 26:if(w=Q4,Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),L&4){var S=z!==null?z.memoizedState:null;if(L=_.memoizedState,z===null)if(L===null)if(_.stateNode===null){_:{L=_.type,z=_.memoizedProps,w=w.ownerDocument||w;J:switch(L){case"title":if(S=w.getElementsByTagName("title")[0],!S||S[L_]||S[v2]||S.namespaceURI===w7||S.hasAttribute("itemprop"))S=w.createElement(L),w.head.insertBefore(S,w.querySelector("head > title"));j2(S,L,z),S[v2]=_,v1(S),L=S;break _;case"link":var e=SW("link","href",w).get(L+(z.href||""));if(e){for(var _1=0;_1<e.length;_1++)if(S=e[_1],S.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&S.getAttribute("rel")===(z.rel==null?null:z.rel)&&S.getAttribute("title")===(z.title==null?null:z.title)&&S.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){e.splice(_1,1);break J}}S=w.createElement(L),j2(S,L,z),w.head.appendChild(S);break;case"meta":if(e=SW("meta","content",w).get(L+(z.content||""))){for(_1=0;_1<e.length;_1++)if(S=e[_1],M1(z.content,"content"),S.getAttribute("content")===(z.content==null?null:""+z.content)&&S.getAttribute("name")===(z.name==null?null:z.name)&&S.getAttribute("property")===(z.property==null?null:z.property)&&S.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&S.getAttribute("charset")===(z.charSet==null?null:z.charSet)){e.splice(_1,1);break J}}S=w.createElement(L),j2(S,L,z),w.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+L+'". This is a bug in React.')}S[v2]=_,v1(S),L=S}_.stateNode=L}else jW(w,_.type,_.stateNode);else _.stateNode=fW(w,L,_.memoizedProps);else S!==L?(S===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):S.count--,L===null?jW(w,_.type,_.stateNode):fW(w,L,_.memoizedProps)):L===null&&_.stateNode!==null&&bG(_,_.memoizedProps,z.memoizedProps)}break;case 27:Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),z!==null&&L&4&&bG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),_.flags&32){w=_.stateNode;try{A1(_,BW,w)}catch(V1){L0(_,_.return,V1)}}L&4&&_.stateNode!=null&&(w=_.memoizedProps,bG(_,w,z!==null?z.memoizedProps:w)),L&1024&&(MF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Q5(J,_),q5(_),L&4){if(_.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");L=_.memoizedProps,z=z!==null?z.memoizedProps:L,w=_.stateNode;try{A1(_,xI,w,z,L)}catch(V1){L0(_,_.return,V1)}}break;case 3:if(w=q3(),Xq=null,S=Q4,Q4=JQ(J.containerInfo),Q5(J,_),Q4=S,q5(_),L&4&&z!==null&&z.memoizedState.isDehydrated)try{A1(_,oI,J.containerInfo)}catch(V1){L0(_,_.return,V1)}MF&&(MF=!1,Mz(_)),J.effectDuration+=T$(w);break;case 4:L=Q4,Q4=JQ(_.stateNode.containerInfo),Q5(J,_),q5(_),Q4=L;break;case 12:L=q3(),Q5(J,_),q5(_),_.stateNode.effectDuration+=p9(L);break;case 31:Q5(J,_),q5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,r$(_,L)));break;case 13:Q5(J,_),q5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(aQ=R2()),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,r$(_,L)));break;case 22:w=_.memoizedState!==null;var r=z!==null&&z.memoizedState!==null,Z1=R3,f1=U2;if(R3=Z1||w,U2=f1||r,Q5(J,_),U2=f1,R3=Z1,r&&!w&&!Z1&&!f1&&(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$(_,m1,l1),q5(_),L&8192)_:for(J=_.stateNode,J._visibility=w?J._visibility&~N_:J._visibility|N_,!w||z===null||r||R3||U2||(_8(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(_,m1,l1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){r=z=J;try{S=r.stateNode,w?A1(r,cI,S):A1(r,dI,r.stateNode,r.memoizedProps)}catch(V1){L0(r,r.return,V1)}}}else if(J.tag===6){if(z===null){r=J;try{e=r.stateNode,w?A1(r,lI,e):A1(r,rI,e,r.memoizedProps)}catch(V1){L0(r,r.return,V1)}}}else if(J.tag===18){if(z===null){r=J;try{_1=r.stateNode,w?A1(r,pI,_1):A1(r,iI,r.stateNode)}catch(V1){L0(r,r.return,V1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;z===J&&(z=null),J=J.return}z===J&&(z=null),J.sibling.return=J.return,J=J.sibling}L&4&&(L=_.updateQueue,L!==null&&(z=L.retryQueue,z!==null&&(L.retryQueue=null,r$(_,z))));break;case 19:Q5(J,_),q5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,r$(_,L)));break;case 30:break;case 21:break;default:Q5(J,_),q5(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&L4(_,m1,l1,m0,b0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<l1-m1&&(Hz(_.return.alternate,_.return)||B4(_,m1,l1,"Mount"))),Y5($),T4(q),b0=G,l0=X}function q5(_){var J=_.flags;if(J&2){try{A1(_,zI,_)}catch($){L0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Mz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Mz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function C4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Yz(_,J.alternate,J),J=J.sibling}function Tz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 14:case 15:DG(_,_.return,O5),_8(_);break;case 1:N4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Gz(_,_.return,X),_8(_);break;case 27:A1(_,X_,_.stateNode);case 26:case 5:N4(_,_.return),_8(_);break;case 22:_.memoizedState===null&&_8(_);break;case 30:_8(_);break;default:_8(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(_,m1,l1,m0,b0),Y5(J),T4($),b0=q,l0=G}function _8(_){for(_=_.child;_!==null;)Tz(_),_=_.sibling}function Rz(_,J,$,q){var G=H5(),X=M4(),z=R4(),L=O4(),w=$.flags;switch($.tag){case 0:case 11:case 15:f4(_,$,q),Qz($,O5);break;case 1:if(f4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&A1($,UF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{A1($,oO,J,_)}catch(S){L0($,$.return,S)}}q&&w&64&&Uz($),__($,$.return);break;case 27:Kz($);case 26:case 5:f4(_,$,q),q&&J===null&&w&4&&Fz($),__($,$.return);break;case 12:if(q&&w&4){w=q3(),f4(_,$,q),q=$.stateNode,q.effectDuration+=p9(w);try{A1($,Zz,$,J,X6,q.effectDuration)}catch(S){L0($,$.return,S)}}else f4(_,$,q);break;case 31:f4(_,$,q),q&&w&4&&Bz(_,$);break;case 13:f4(_,$,q),q&&w&4&&Lz(_,$);break;case 22:$.memoizedState===null&&f4(_,$,q),__($,$.return);break;case 30:break;default:f4(_,$,q)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4($,m1,l1,m0,b0),Y5(G),T4(X),b0=z,l0=L}function f4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Rz(_,J.alternate,J,$),J=J.sibling}function xG(_,J){var $=null;_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),_=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(_=J.memoizedState.cachePool.pool),_!==$&&(_!=null&&s6(_),$!=null&&g9($))}function mG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(s6(J),_!=null&&g9(_))}function o5(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(J=J.child;J!==null;){var X=J.sibling;Oz(_,J,$,q,X!==null?X.actualStartTime:G),J=X}}function Oz(_,J,$,q,G){var X=H5(),z=M4(),L=R4(),w=O4(),S=U6,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$),o5(_,J,$,q,G),e&2048&&qz(J,s2|x5);break;case 1:(J.mode&e1)!==i1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$)),o5(_,J,$,q,G);break;case 3:var _1=q3(),r=z2;z2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,o5(_,J,$,q,G),z2=r,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(s6(q),$!=null&&g9($))),_.passiveEffectDuration+=T$(_1);break;case 12:if(e&2048){e=q3(),o5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=p9(e);try{A1(J,YI,J,J.alternate,X6,_.passiveEffectDuration)}catch(Z1){L0(J,J.return,Z1)}}else o5(_,J,$,q,G);break;case 31:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1!==null&&r===null?(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0):z2=!1,o5(_,J,$,q,G),z2=e;break;case 13:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1===null||_1.dehydrated===null||r!==null&&r.dehydrated!==null?z2=!1:(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0),o5(_,J,$,q,G),z2=e;break;case 23:break;case 22:r=J.stateNode,_1=J.alternate,J.memoizedState!==null?r._visibility&K3?o5(_,J,$,q,G):J_(_,J,$,q,G):r._visibility&K3?o5(_,J,$,q,G):(r._visibility|=K3,K7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&e1)===i1||z2||(_=J.actualStartTime,0<=_&&0.05<G-_&&X$(J,_,G),0<=m1&&0<=l1&&0.05<l1-m1&&X$(J,m1,l1))),e&2048&&xG(_1,J);break;case 24:o5(_,J,$,q,G),e&2048&&mG(J.alternate,J);break;default:o5(_,J,$,q,G)}if((J.mode&e1)!==i1){if(_=!z2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&B4(J,$,G,"Mount");0<=m1&&0<=l1&&((l0||0.05<m0)&&L4(J,m1,l1,m0,b0),_&&0.05<l1-m1&&B4(J,m1,l1,"Mount"))}Y5(X),T4(z),b0=L,l0=w,U6=S}function K7(_,J,$,q,G,X){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var z=J.sibling;Iz(_,J,$,q,G,z!==null?z.actualStartTime:X),J=z}}function Iz(_,J,$,q,G,X){var z=H5(),L=M4(),w=R4(),S=O4(),e=U6;G&&(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,X,z2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:K7(_,J,$,q,G,X),qz(J,s2);break;case 23:break;case 22:var r=J.stateNode;J.memoizedState!==null?r._visibility&K3?K7(_,J,$,q,G,X):J_(_,J,$,q,X):(r._visibility|=K3,K7(_,J,$,q,G,X)),G&&_1&2048&&xG(J.alternate,J);break;case 24:K7(_,J,$,q,G,X),G&&_1&2048&&mG(J.alternate,J);break;default:K7(_,J,$,q,G,X)}(J.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(J,m1,l1,m0,b0),Y5(z),T4(L),b0=w,l0=S,U6=e}function J_(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var X=J.child;X!==null;){J=X.sibling;var z=_,L=$,w=q,S=J!==null?J.actualStartTime:G,e=U6;(X.mode&e1)!==i1&&0<X.actualStartTime&&(X.flags&1)!==0&&K$(X,X.actualStartTime,S,z2,L);var _1=X.flags;switch(X.tag){case 22:J_(z,X,L,w,S),_1&2048&&xG(X.alternate,X);break;case 24:J_(z,X,L,w,S),_1&2048&&mG(X.alternate,X);break;default:J_(z,X,L,w,S)}U6=e,X=J}}function H7(_,J,$){if(_.subtreeFlags&i_)for(_=_.child;_!==null;)wz(_,J,$),_=_.sibling}function wz(_,J,$){switch(_.tag){case 26:H7(_,J,$),_.flags&i_&&_.memoizedState!==null&&Qw($,Q4,_.memoizedState,_.memoizedProps);break;case 5:H7(_,J,$);break;case 3:case 4:var q=Q4;Q4=JQ(_.stateNode.containerInfo),H7(_,J,$),Q4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=i_,i_=16777216,H7(_,J,$),i_=q):H7(_,J,$));break;default:H7(_,J,$)}}function Pz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function $_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=H5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(q,m1,l1,"Unmount"),Y5(G)}Pz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Nz(_),_=_.sibling}function Nz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:$_(_),_.flags&2048&&uG(_,_.return,s2|x5);break;case 3:var X=q3();$_(_),_.stateNode.passiveEffectDuration+=T$(X);break;case 12:X=q3(),$_(_),_.stateNode.passiveEffectDuration+=p9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&K3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~K3,a$(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(_,m1,l1,"Disconnect")):$_(_);break;default:$_(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(_,m1,l1,m0,b0),Y5(J),T4($),l0=G,b0=q}function a$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=H5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(q,m1,l1,"Unmount"),Y5(G)}Pz(_)}for(_=_.child;_!==null;)Cz(_),_=_.sibling}function Cz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:uG(_,_.return,s2),a$(_);break;case 22:var X=_.stateNode;X._visibility&K3&&(X._visibility&=~K3,a$(_));break;default:a$(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(_,m1,l1,m0,b0),Y5(J),T4($),l0=G,b0=q}function fz(_,J){for(;I2!==null;){var $=I2,q=$,G=J,X=H5(),z=M4(),L=R4(),w=O4();switch(q.tag){case 0:case 11:case 15:uG(q,G,s2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&s6(G));break;case 24:g9(q.memoizedState.cache)}if((q.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(q,m1,l1,m0,b0),Y5(X),T4(z),l0=w,b0=L,q=$.child,q!==null)q.return=$,I2=q;else _:for($=_;I2!==null;){if(q=I2,X=q.sibling,z=q.return,zz(q),q===$){I2=null;break _}if(X!==null){X.return=z,I2=X;break _}I2=z}}}function LI(){EP.forEach(function(_){return _()})}function Sz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||Y1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function W5(_){if((Y0&W2)!==w2&&J0!==0)return J0&-J0;var J=Y1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),aG()):l()}function jz(){if(Z5===0)if((J0&536870912)===0||F0){var _=zQ;zQ<<=1,(zQ&3932160)===0&&(zQ=262144),Z5=_}else Z5=536870912;return _=R5.current,_!==null&&(_.flags|=32),Z5}function c0(_,J,$){if(t7&&console.error("useInsertionEffect must not schedule updates."),jF&&(nQ=!0),_===C0&&(O0===B8||O0===L8)||_.cancelPendingCommit!==null)z7(_,0),o3(_,J0,Z5,!1);if(_2(_,$),(Y0&W2)!==w2&&_===C0){if(y4)switch(J.tag){case 0:case 11:case 15:_=$0&&x($0)||"Unknown",$A.has(_)||($A.add(_),J=x(J)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",J,_,_));break;case 1:JA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),JA=!0)}}else D4&&o4(_,J,$),CI(J),_===C0&&((Y0&W2)===w2&&(M6|=$),g0===B6&&o3(_,J0,Z5,!1)),S4(_)}function vz(_,J,$){if((Y0&(W2|I5))!==w2)throw Error("Should not already be working.");if(J0!==0&&$0!==null){var q=$0,G=R2();switch(aB){case a_:case B8:var X=V_;V0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,G,V5,void 0,"primary-light")):console.timeStamp("Suspended",X,G,V5,void 0,"primary-light"));break;case L8:X=V_,V0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,G,V5,void 0,"primary-light")):console.timeStamp("Action",X,G,V5,void 0,"primary-light"));break;default:V0&&(q=G-V_,3>q||console.timeStamp("Blocked",V_,G,V5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||A2(_,J))?MI(_,J):pG(_,J,!0);var z=$;do{if(X===O3){a7&&!$&&o3(_,J,0,!1),J=O0,V_=$2(),aB=J;break}else{if(q=R2(),G=_.current.alternate,z&&!AI(G)){X5(J),G=O2,X=q,!V0||X<=G||(a0?a0.run(console.timeStamp.bind(console,"Teared Render",G,X,Z0,G0,"error")):console.timeStamp("Teared Render",G,X,Z0,G0,"error")),J8(J,q),X=pG(_,J,!1),z=!1;continue}if(X===W8){if(z=J,_.errorRecoveryDisabledLanes&z)var L=0;else L=_.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){X5(J),PU(O2,q,J,a0),J8(J,q),J=L;_:{q=_,X=z,z=t_;var w=q.current.memoizedState.isDehydrated;if(w&&(z7(q,L).flags|=256),L=pG(q,L,!1),L!==W8){if(OF&&!w){q.errorRecoveryDisabledLanes|=X,M6|=X,X=B6;break _}q=t2,t2=z,q!==null&&(t2===null?t2=q:t2.push.apply(t2,q))}X=L}if(z=!1,X!==W8)continue;else q=R2()}}if(X===r_){X5(J),PU(O2,q,J,a0),J8(J,q),z7(_,0),o3(_,J,0,!0);break}_:{switch($=_,X){case O3:case r_:throw Error("Root did not complete. This is a bug in React.");case B6:if((J&4194048)!==J)break;case lQ:X5(J),vH(O2,q,J,a0),J8(J,q),G=J,(G&127)!==0?jQ=q:(G&4194048)!==0&&(vQ=q),o3($,J,Z5,!L6);break _;case W8:t2=null;break;case cQ:case pL:break;default:throw Error("Unknown root exit status.")}if(Y1.actQueue!==null)cG($,G,J,t2,o_,rQ,Z5,M6,A8,X,null,null,O2,q);else{if((J&62914560)===J&&(z=aQ+iL-R2(),10<z)){if(o3($,J,Z5,!L6),N2($,0,!0)!==0)break _;q4=J,$.timeoutHandle=KA(Vz.bind(null,$,G,t2,o_,rQ,J,Z5,M6,A8,L6,X,"Throttled",O2,q),z);break _}Vz($,G,t2,o_,rQ,J,Z5,M6,A8,L6,X,null,O2,q)}}}break}while(1);S4(_)}function Vz(_,J,$,q,G,X,z,L,w,S,e,_1,r,Z1){_.timeoutHandle=I8;var f1=J.subtreeFlags,V1=null;if(f1&8192||(f1&16785408)===16785408){if(V1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_3},wz(J,X,V1),f1=(X&62914560)===X?aQ-R2():(X&4194048)===X?lL-R2():0,f1=qw(V1,f1),f1!==null){q4=X,_.cancelPendingCommit=f1(cG.bind(null,_,J,X,$,q,G,z,L,w,e,V1,V1.waitingForViewTransition?"Waiting for the previous Animation":0<V1.count?0<V1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":V1.imgCount===1?"Suspended on an Image":0<V1.imgCount?"Suspended on Images":null,r,Z1)),o3(_,X,z,!S);return}}cG(_,J,X,$,q,G,z,L,w,e,V1,_1,r,Z1)}function AI(_){for(var J=_;;){var $=J.tag;if(($===0||$===11||$===15)&&J.flags&16384&&($=J.updateQueue,$!==null&&($=$.stores,$!==null)))for(var q=0;q<$.length;q++){var G=$[q],X=G.getSnapshot;G=G.value;try{if(!d2(X(),G))return!1}catch(z){return!1}}if($=J.child,J.subtreeFlags&16384&&$!==null)$.return=J,J=$;else{if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return!0;J=J.return}J.sibling.return=J.return,J=J.sibling}}return!0}function o3(_,J,$,q){J&=~IF,J&=~M6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var X=31-c2(G),z=1<<X;q[X]=-1,G&=~z}$!==0&&m2(_,$,J)}function Y7(){return(Y0&(W2|I5))===w2?(U_(0,!1),!1):!0}function gG(){if($0!==null){if(O0===G5)var _=$0.return;else _=$0,L$(),nU(_),x7=null,m_=0,_=$0;for(;_!==null;)$z(_.alternate,_),_=_.return;$0=null}}function J8(_,J){(_&127)!==0&&(K6=J),(_&4194048)!==0&&(x4=J),(_&62914560)!==0&&(dB=J),(_&2080374784)!==0&&(rB=J)}function z7(_,J){V0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",G0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",G0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",G0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",G0,"primary-light"));var $=O2;if(O2=$2(),J0!==0&&0<$){if(X5(J0),g0===cQ||g0===B6)vH($,O2,J,a0);else{var q=O2,G=a0;if(V0&&!(q<=$)){var X=(J&738197653)===J?"tertiary-dark":"primary-dark",z=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,z,$,q,Z0,G0,X)):console.timeStamp(z,$,q,Z0,G0,X)}}J8(J0,O2)}if($=a0,a0=null,(J&127)!==0){a0=S_,G=0<=h4&&h4<K6?K6:h4,q=0<=G8&&G8<K6?K6:G8,X=0<=q?q:0<=G?G:O2,0<=jQ?(X5(2),VH(jQ,X,J,$)):(VQ&127)!==0&&(X5(2),x9(K6,X,L3)),$=G;var L=q,w=j_,S=0<b7,e=H6===f_,_1=H6===SQ;if(G=O2,q=S_,X=_F,z=JF,V0){if(Z0="Blocking",0<$?$>G&&($=G):$=G,0<L?L>$&&(L=$):L=$,w!==null&&$>L){var r=S?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+w,L,$,Z0,G0,r)):console.timeStamp(S?"Consecutive":"Event: "+w,L,$,Z0,G0,r)}G>$&&(L=e?"error":(J&738197653)===J?"tertiary-light":"primary-light",e=_1?"Promise Resolved":e?"Cascading Update":5<G-$?"Update Blocked":"Update",_1=[],z!=null&&_1.push(["Component name",z]),X!=null&&_1.push(["Method name",X]),$={start:$,end:G,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:L}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}h4=-1.1,H6=0,JF=_F=null,jQ=-1.1,b7=G8,G8=-1.1,K6=$2()}if((J&4194048)!==0&&(a0=v_,G=0<=B3&&B3<x4?x4:B3,$=0<=E5&&E5<x4?x4:E5,q=0<=Y6&&Y6<x4?x4:Y6,X=0<=q?q:0<=$?$:O2,0<=vQ?(X5(256),VH(vQ,X,J,a0)):(VQ&4194048)!==0&&(X5(256),x9(x4,X,L3)),_1=q,L=Z8,w=0<z6,S=$F===SQ,X=O2,q=v_,z=lB,e=iB,V0&&(Z0="Transition",0<$?$>X&&($=X):$=X,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&L!==null&&(r=w?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+L,_1,G,Z0,G0,r)):console.timeStamp(w?"Consecutive":"Event: "+L,_1,G,Z0,G0,r)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,Z0,G0,"primary-dark")):console.timeStamp("Action",G,$,Z0,G0,"primary-dark")),X>$&&(G=S?"Promise Resolved":5<X-$?"Update Blocked":"Update",_1=[],e!=null&&_1.push(["Component name",e]),z!=null&&_1.push(["Method name",z]),$={start:$,end:X,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),E5=B3=-1.1,$F=0,vQ=-1.1,z6=Y6,Y6=-1.1,x4=$2()),(J&62914560)!==0&&(VQ&62914560)!==0&&(X5(4194304),x9(dB,O2,L3)),(J&2080374784)!==0&&(VQ&2080374784)!==0&&(X5(268435456),x9(rB,O2,L3)),$=_.timeoutHandle,$!==I8&&(_.timeoutHandle=I8,tP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),q4=0,gG(),C0=_,$0=$=J3(_.current,null),J0=J,O0=G5,w5=null,L6=!1,a7=A2(_,J),OF=!1,g0=O3,A8=Z5=IF=M6=A6=0,t2=t_=null,rQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-c2(q),X=1<<G,J|=_[G],q&=~X;return g4=J,H$(),_=hB(),1000<_-EB&&(Y1.recentlyCreatedOwnerStacks=0,EB=_),J4.discardPendingWarnings(),$}function yz(_,J){a1=null,Y1.H=l_,Y1.getCurrentStack=null,y4=!1,A5=null,J===h7||J===uQ?(J=eH(),O0=a_):J===GF?(J=eH(),O0=cL):O0=J===LF?RF:J!==null&&typeof J==="object"&&typeof J.then==="function"?s_:iQ,w5=J;var $=$0;$===null?(g0=r_,g$(_,K5(J,_.current))):$.mode&e1&&xU($)}function kz(){var _=R5.current;return _===null?!0:(J0&4194048)===J0?h5===null?!0:!1:(J0&62914560)===J0||(J0&536870912)!==0?_===h5:!1}function Dz(){var _=Y1.H;return Y1.H=l_,_===null?l_:_}function uz(){var _=Y1.A;return Y1.A=bP,_}function s$(_){a0===null&&(a0=_._debugTask==null?null:_._debugTask)}function t$(){g0=B6,L6||(J0&4194048)!==J0&&R5.current!==null||(a7=!0),(A6&134217727)===0&&(M6&134217727)===0||C0===null||o3(C0,J0,Z5,!1)}function pG(_,J,$){var q=Y0;Y0|=W2;var G=Dz(),X=uz();if(C0!==_||J0!==J){if(D4){var z=_.memoizedUpdaters;0<z.size&&(q_(_,J0),z.clear()),G1(_,J)}o_=null,z7(_,J)}J=!1,z=g0;_:do try{if(O0!==G5&&$0!==null){var L=$0,w=w5;switch(O0){case RF:gG(),z=lQ;break _;case a_:case B8:case L8:case s_:R5.current===null&&(J=!0);var S=O0;if(O0=G5,w5=null,W7(_,L,w,S),$&&a7){z=O3;break _}break;default:S=O0,O0=G5,w5=null,W7(_,L,w,S)}}bz(),z=g0;break}catch(e){yz(_,e)}while(1);return J&&_.shellSuspendCounter++,L$(),Y0=q,Y1.H=G,Y1.A=X,$0===null&&(C0=null,J0=0,H$()),z}function bz(){for(;$0!==null;)Ez($0)}function MI(_,J){var $=Y0;Y0|=W2;var q=Dz(),G=uz();if(C0!==_||J0!==J){if(D4){var X=_.memoizedUpdaters;0<X.size&&(q_(_,J0),X.clear()),G1(_,J)}o_=null,sQ=R2()+dL,z7(_,J)}else a7=A2(_,J);_:do try{if(O0!==G5&&$0!==null)J:switch(J=$0,X=w5,O0){case iQ:O0=G5,w5=null,W7(_,J,X,iQ);break;case B8:case L8:if(oH(X)){O0=G5,w5=null,hz(J);break}J=function(){O0!==B8&&O0!==L8||C0!==_||(O0=dQ),S4(_)},X.then(J,J);break _;case a_:O0=dQ;break _;case cL:O0=TF;break _;case dQ:oH(X)?(O0=G5,w5=null,hz(J)):(O0=G5,w5=null,W7(_,J,X,dQ));break;case TF:var z=null;switch($0.tag){case 26:z=$0.memoizedState;case 5:case 27:var L=$0;if(z?vW(z):L.stateNode.complete){O0=G5,w5=null;var w=L.sibling;if(w!==null)$0=w;else{var S=L.return;S!==null?($0=S,o$(S)):$0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}O0=G5,w5=null,W7(_,J,X,TF);break;case s_:O0=G5,w5=null,W7(_,J,X,s_);break;case RF:gG(),g0=lQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y1.actQueue!==null?bz():TI();break}catch(e){yz(_,e)}while(1);if(L$(),Y1.H=q,Y1.A=G,Y0=$,$0!==null)return O3;return C0=null,J0=0,H$(),g0}function TI(){for(;$0!==null&&!Aw();)Ez($0)}function Ez(_){var J=_.alternate;(_.mode&e1)!==i1?(hU(_),J=A1(_,yG,J,_,g4),xU(_)):J=A1(_,yG,J,_,g4),_.memoizedProps=_.pendingProps,J===null?o$(_):$0=J}function hz(_){var J=A1(_,RI,_);_.memoizedProps=_.pendingProps,J===null?o$(_):$0=J}function RI(_){var J=_.alternate,$=(_.mode&e1)!==i1;switch($&&hU(_),_.tag){case 15:case 0:J=sY(J,_,_.pendingProps,_.type,void 0,J0);break;case 11:J=sY(J,_,_.pendingProps,_.type.render,_.ref,J0);break;case 5:nU(_);default:$z(J,_),_=$0=EH(_,g4),J=yG(J,_,g4)}return $&&xU(_),J}function W7(_,J,$,q){L$(),nU(J),x7=null,m_=0;var G=J.return;try{if(qI(_,G,J,$,J0)){g0=r_,g$(_,K5($,_.current)),$0=null;return}}catch(X){if(G!==null)throw $0=G,X;g0=r_,g$(_,K5($,_.current)),$0=null;return}if(J.flags&32768){if(F0||q===iQ)_=!0;else if(a7||(J0&536870912)!==0)_=!1;else if(L6=_=!0,q===B8||q===L8||q===a_||q===s_)q=R5.current,q!==null&&q.tag===13&&(q.flags|=16384);xz(J,_)}else o$(J)}function o$(_){var J=_;do{if((J.flags&32768)!==0){xz(J,L6);return}var $=J.alternate;if(_=J.return,hU(J),$=A1(J,ZI,$,J,g4),(J.mode&e1)!==i1&&dH(J),$!==null){$0=$;return}if(J=J.sibling,J!==null){$0=J;return}$0=J=_}while(J!==null);g0===O3&&(g0=pL)}function xz(_,J){do{var $=FI(_.alternate,_);if($!==null){$.flags&=32767,$0=$;return}if((_.mode&e1)!==i1){dH(_),$=_.actualDuration;for(var q=_.child;q!==null;)$+=q.actualDuration,q=q.sibling;_.actualDuration=$}if($=_.return,$!==null&&($.flags|=32768,$.subtreeFlags=0,$.deletions=null),!J&&(_=_.sibling,_!==null)){$0=_;return}$0=_=$}while(_!==null);g0=lQ,$0=null}function cG(_,J,$,q,G,X,z,L,w,S,e,_1,r,Z1){_.cancelPendingCommit=null;do Q_();while(Z2!==R6);if(J4.flushLegacyContextWarning(),J4.flushPendingUnsafeLifecycleWarnings(),(Y0&(W2|I5))!==w2)throw Error("Should not already be working.");if(X5($),S===W8?PU(r,Z1,$,a0):q!==null?iO(r,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,a0):lO(r,Z1,$,a0),J!==null){if($===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),J===_.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(X=J.lanes|J.childLanes,X|=sZ,z4(_,$,X,z,L,w),_===C0&&($0=C0=null,J0=0),s7=J,O6=_,q4=$,NF=X,fF=G,nL=q,CF=Z1,eL=_1,U4=tQ,_A=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,NI(R7,function(){return QJ=window.event,U4===tQ&&(U4=PF),lz(),null})):(_.callbackNode=null,_.callbackPriority=0),W3=null,X6=$2(),_1!==null&&dO(Z1,X6,_1,a0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null,G=A0.p,A0.p=M5,z=Y0,Y0|=I5;try{WI(_,J,$)}finally{Y0=z,A0.p=G,Y1.T=q}}Z2=aL,mz(),gz(),pz()}}function mz(){if(Z2===aL){Z2=R6;var _=O6,J=s7,$=q4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=M5;var X=Y0;Y0|=I5;try{d7=$,r7=_,R$(),Az(J,_),r7=d7=null,$=hF;var z=fH(_.containerInfo),L=$.focusedElem,w=$.selectionRange;if(z!==L&&L&&L.ownerDocument&&CH(L.ownerDocument.documentElement,L)){if(w!==null&&OU(L)){var{start:S,end:e}=w;if(e===void 0&&(e=S),"selectionStart"in L)L.selectionStart=S,L.selectionEnd=Math.min(e,L.value.length);else{var _1=L.ownerDocument||document,r=_1&&_1.defaultView||window;if(r.getSelection){var Z1=r.getSelection(),f1=L.textContent.length,V1=Math.min(w.start,f1),v0=w.end===void 0?V1:Math.min(w.end,f1);!Z1.extend&&V1>v0&&(z=v0,v0=V1,V1=z);var K0=NH(L,V1),d=NH(L,v0);if(K0&&d&&(Z1.rangeCount!==1||Z1.anchorNode!==K0.node||Z1.anchorOffset!==K0.offset||Z1.focusNode!==d.node||Z1.focusOffset!==d.offset)){var s=_1.createRange();s.setStart(K0.node,K0.offset),Z1.removeAllRanges(),V1>v0?(Z1.addRange(s),Z1.extend(d.node,d.offset)):(s.setEnd(d.node,d.offset),Z1.addRange(s))}}}}_1=[];for(Z1=L;Z1=Z1.parentNode;)Z1.nodeType===1&&_1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof L.focus==="function"&&L.focus();for(L=0;L<_1.length;L++){var n=_1[L];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}Yq=!!EF,hF=EF=null}finally{Y0=X,A0.p=G,Y1.T=q}}_.current=J,Z2=sL}}function gz(){if(Z2===sL){Z2=R6;var _=_A;if(_!==null){X6=$2();var J=z3,$=X6;!V0||$<=J||(L3?L3.run(console.timeStamp.bind(console,_,J,$,Z0,G0,"secondary-light")):console.timeStamp(_,J,$,Z0,G0,"secondary-light"))}_=O6,J=s7,$=q4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=M5;var X=Y0;Y0|=I5;try{d7=$,r7=_,R$(),Yz(_,J.alternate,J),r7=d7=null}finally{Y0=X,A0.p=G,Y1.T=q}}_=CF,J=eL,z3=$2(),_=J===null?_:X6,J=z3,$=U4===wF,q=a0,W3!==null?yH(_,J,W3,!1,q):!V0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")),Z2=tL}}function pz(){if(Z2===oL||Z2===tL){if(Z2===oL){var _=z3;z3=$2();var J=z3,$=U4===wF;!V0||J<=_||(L3?L3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?" error":"secondary-light")),U4!==wF&&(U4=rL)}Z2=R6,Mw(),_=O6;var q=s7;J=q4,$=nL;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?Z2=oQ:(Z2=R6,s7=O6=null,cz(_,_.pendingLanes),M8=0,e_=null);var X=_.pendingLanes;if(X===0&&(T6=null),G||az(_),X=I(J),q=q.stateNode,D2&&typeof D2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(X){case M5:var L=fZ;break;case e5:L=SZ;break;case u4:L=R7;break;case BQ:L=jZ;break;default:L=R7}D2.onCommitFiberRoot(O7,q,L,z)}catch(_1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(D4&&_.memoizedUpdaters.clear(),LI(),$!==null){z=Y1.T,L=A0.p,A0.p=M5,Y1.T=null;try{var w=_.onRecoverableError;for(q=0;q<$.length;q++){var S=$[q],e=OI(S.stack);A1(S.source,w,S.value,e)}}finally{Y1.T=z,A0.p=L}}(q4&3)!==0&&Q_(),S4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(kQ=!0,_===SF?n_++:(n_=0,SF=_)):n_=0,G||J8(J,z3),U_(0,!1)}}function OI(_){return _={componentStack:_},Object.defineProperty(_,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),_}function cz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,g9(J)))}function Q_(){return mz(),gz(),pz(),lz()}function lz(){if(Z2!==oQ)return!1;var _=O6,J=NF;NF=0;var $=I(q4),q=u4===0||u4>$?u4:$;$=Y1.T;var G=A0.p;try{A0.p=q,Y1.T=null;var X=fF;fF=null,q=O6;var z=q4;if(Z2=R6,s7=O6=null,q4=0,(Y0&(W2|I5))!==w2)throw Error("Cannot flush passive effects while already rendering.");X5(z),jF=!0,nQ=!1;var L=0;if(W3=null,L=R2(),U4===rL)x9(z3,L,L3);else{var w=z3,S=L,e=U4===PF;!V0||S<=w||(a0?a0.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light"))}w=Y0,Y0|=I5;var _1=q.current;R$(),Nz(_1);var r=q.current;_1=CF,R$(),Oz(q,r,z,X,_1),az(q),Y0=w;var Z1=R2();if(r=L,_1=a0,W3!==null?yH(r,Z1,W3,!0,_1):!V0||Z1<=r||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",r,Z1,Z0,G0,"secondary-dark")):console.timeStamp("Remaining Effects",r,Z1,Z0,G0,"secondary-dark")),J8(z,Z1),U_(0,!1),nQ?q===e_?M8++:(M8=0,e_=q):M8=0,nQ=jF=!1,D2&&typeof D2.onPostCommitFiberRoot==="function")try{D2.onPostCommitFiberRoot(O7,q)}catch(V1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",V1))}var f1=q.current.stateNode;return f1.effectDuration=0,f1.passiveEffectDuration=0,!0}finally{A0.p=G,Y1.T=$,cz(_,J)}}function iz(_,J,$){J=K5($,J),rH(J),J=OG(_.stateNode,J,2),_=r3(_,J,2),_!==null&&(_2(_,2),S4(_))}function L0(_,J,$){if(t7=!1,_.tag===3)iz(_,_,$);else{for(;J!==null;){if(J.tag===3){iz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(T6===null||!T6.has(q))){_=K5($,_),rH(_),$=IG(2),q=r3(J,$,2),q!==null&&(wG($,q,J,_),_2(q,2),S4(q));return}}J=J.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,$)}}function pG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new kP;var G=new Set;q.set(J,G)}else G=q.get(J),G===void 0&&(G=new Set,q.set(J,G));G.has($)||(TF=!0,G.add($),q=AI.bind(null,_,J,$),C4&&e9(_,$),J.then(q,q))}function AI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>v4&&(_6=v4=t0(),w_=NQ("Promise Resolved"),J6=CQ):($&4194048)!==0&&0>j5&&(V4=j5=t0(),N_=NQ("Promise Resolved"),_F=CQ),fz()&&H1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,$)}}function lG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new hP;var G=new Set;q.set(J,G)}else G=q.get(J),G===void 0&&(G=new Set,q.set(J,G));G.has($)||(OF=!0,G.add($),q=II.bind(null,_,J,$),D4&&q_(_,$),J.then(q,q))}function II(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>h4&&(K6=h4=$2(),S_=fQ("Promise Resolved"),H6=SQ):($&4194048)!==0&&0>E5&&(x4=E5=$2(),v_=fQ("Promise Resolved"),$F=SQ),Sz()&&Y1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
165
 
166
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),P0===_&&(n1&$)===$&&(b0===U6||b0===gQ&&(n1&62914560)===n1&&z2()-iQ<lL?(H0&Z2)===L2&&F7(_,0):RF|=$,H8===n1&&(H8=0)),R4(_)}function dz(_,J){J===0&&(J=P2()),_=f2(_,J),_!==null&&(C2(_,J),R4(_))}function MI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),dz(_,$)}function TI(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:G}=_;G!==null&&($=G.retryLane);break;case 19:q=_.stateNode;break;case 22:q=_.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(J),dz(_,$)}function cG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,K=G.type===ZQ;K=$||K,G.tag!==22?G.flags&67108864?K&&M1(G,iz,q,G):cG(q,G,K):G.memoizedState===null&&(K&&G.flags&8192?M1(G,iz,q,G):G.subtreeFlags&67108864&&M1(G,cG,q,G,K)),J=J.sibling}}function iz(_,J){b1(!0);try{Mz(J),Nz(J),Tz(_,J.alternate,J,!1),Oz(_,J,0,null,!1,0)}finally{b1(!1)}}function rz(_){var J=!0;_.current.mode&(j2|i5)||(J=!1),cG(_,_.current,J)}function az(_){if((H0&Z2)===L2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",oQ!==null){if(oQ.has(J))return;oQ.add(J)}else oQ=new Set([J]);M1(_,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function e9(_,J){C4&&_.memoizedUpdaters.forEach(function($){y6(_,$,J)})}function RI(_,J){var $=H1.actQueue;return $!==null?($.push(J),bP):PZ(_,J)}function OI(_){fz()&&H1.actQueue===null&&M1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),C0===_&&(J0&$)===$&&(g0===B6||g0===cQ&&(J0&62914560)===J0&&R2()-aQ<iL?(Y0&W2)===w2&&z7(_,0):IF|=$,A8===J0&&(A8=0)),S4(_)}function dz(_,J){J===0&&(J=M2()),_=k2(_,J),_!==null&&(_2(_,J),S4(_))}function wI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),dz(_,$)}function PI(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:G}=_;G!==null&&($=G.retryLane);break;case 19:q=_.stateNode;break;case 22:q=_.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(J),dz(_,$)}function iG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,X=G.type===XQ;X=$||X,G.tag!==22?G.flags&67108864?X&&A1(G,rz,q,G):iG(q,G,X):G.memoizedState===null&&(X&&G.flags&8192?A1(G,rz,q,G):G.subtreeFlags&67108864&&A1(G,iG,q,G,X)),J=J.sibling}}function rz(_,J){o1(!0);try{Tz(J),Cz(J),Rz(_,J.alternate,J,!1),Iz(_,J,0,null,!1,0)}finally{o1(!1)}}function az(_){var J=!0;_.current.mode&(u2|_4)||(J=!1),iG(_,_.current,J)}function sz(_){if((Y0&W2)===w2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=x(_)||"ReactComponent",eQ!==null){if(eQ.has(J))return;eQ.add(J)}else eQ=new Set([J]);A1(_,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function q_(_,J){D4&&_.memoizedUpdaters.forEach(function($){o4(_,$,J)})}function NI(_,J){var $=Y1.actQueue;return $!==null?($.push(J),gP):CZ(_,J)}function CI(_){Sz()&&Y1.actQueue===null&&A1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,16 +172,16 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,m(_))})}function R4(_){_!==i7&&_.next===null&&(i7===null?nQ=i7=_:i7=i7.next=_),eQ=!0,H1.actQueue!==null?jF||(jF=!0,nz()):SF||(SF=!0,nz())}function __(_,J){if(!vF&&eQ){vF=!0;do{var $=!1;for(var q=nQ;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var K=0;else{var{suspendedLanes:z,pingedLanes:L}=q;K=(1<<31-x2(42|_)+1)-1,K&=G&~(z&~L),K=K&201326741?K&201326741|1:K?K|2:0}K!==0&&($=!0,oz(q,K))}else K=n1,K=O0(q,q===P0?K:0,q.cancelPendingCommit!==null||q.timeoutHandle!==L8),(K&3)===0||D2(q,K)||($=!0,oz(q,K));q=q.next}}while($);vF=!1}}function II(){n_=window.event,lG()}function lG(){eQ=jF=SF=!1;var _=0;Y6!==0&&jI()&&(_=Y6);for(var J=z2(),$=null,q=nQ;q!==null;){var G=q.next,K=sz(q,J);if(K===0)q.next=null,$===null?nQ=G:$.next=G,G===null&&(i7=$);else if($=q,_!==0||(K&3)!==0)eQ=!0;q=G}J2!==X6&&J2!==sQ||__(_,!1),Y6!==0&&(Y6=0)}function sz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,K=_.pendingLanes&-62914561;0<K;){var z=31-x2(K),L=1<<z,I=G[z];if(I===-1){if((L&$)===0||(L&q)!==0)G[z]=u2(L,J)}else I<=J&&(_.expiredLanes|=L);K&=~L}if(J=P0,$=n1,$=O0(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==L8),q=_.callbackNode,$===0||_===J&&(T0===K8||T0===X8)||_.cancelPendingCommit!==null)return q!==null&&dG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||D2(_,$)){if(J=$&-$,J!==_.callbackPriority||H1.actQueue!==null&&q!==VF)dG(q);else return J;switch(j($)){case W5:case d5:$=CZ;break;case f4:$=B7;break;case zQ:$=fZ;break;default:$=B7}return q=tz.bind(null,_),H1.actQueue!==null?(H1.actQueue.push(q),$=VF):$=PZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&dG(q),_.callbackPriority=2,_.callbackNode=null,2}function tz(_,J){if(VQ=vQ=!1,n_=window.event,J2!==X6&&J2!==sQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(o5===aQ&&(o5=IF),n9()&&_.callbackNode!==$)return null;var q=n1;if(q=O0(_,_===P0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==L8),q===0)return null;return jz(_,q,J),sz(_,z2()),_.callbackNode!=null&&_.callbackNode===$?tz.bind(null,_):null}function oz(_,J){if(n9())return null;vQ=VQ,VQ=!1,jz(_,J,!0)}function dG(_){_!==VF&&_!==null&&Hw(_)}function nz(){H1.actQueue!==null&&H1.actQueue.push(function(){return lG(),null}),iP(function(){(H0&(Z2|M5))!==L2?PZ(NZ,II):lG()})}function iG(){if(Y6===0){var _=$8;_===0&&(_=XQ,XQ<<=1,(XQ&261888)===0&&(XQ=256)),Y6=_}return Y6}function ez(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return K1(_,"action"),V9(""+_)}function _W(_,J){var $=J.ownerDocument.createElement("input");return $.name=J.name,$.value=J.value,_.id&&$.setAttribute("form",_.id),J.parentNode.insertBefore($,J),_=new FormData(_),$.parentNode.removeChild($),_}function wI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var K=ez((G[m2]||null).action),z=q.submitter;z&&(J=(J=z[m2]||null)?ez(J.formAction):z.getAttribute("formAction"),J!==null&&(K=J,z=null));var L=new MQ("action","action",null,q,G);_.push({event:L,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(Y6!==0){var I=z?_W(G,z):new FormData(G),f={pending:!0,data:I,method:G.method,action:K};Object.freeze(f),YG($,f,null,I)}}else typeof K==="function"&&(L.preventDefault(),I=z?_W(G,z):new FormData(G),f={pending:!0,data:I,method:G.method,action:K},Object.freeze(f),YG($,f,K,I))},currentTarget:G}]})}}function t$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){cZ(q)}_.currentTarget=null}function JW(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,K=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var L=q[z],I=L.instance,f=L.currentTarget;if(L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?M1(I,t$,K,L,f):t$(K,L,f),G=I}else for(z=0;z<q.length;z++){if(L=q[z],I=L.instance,f=L.currentTarget,L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?M1(I,t$,K,L,f):t$(K,L,f),G=I}}}}function Z0(_,J){yF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[SZ];$===void 0&&($=J[SZ]=new Set);var q=_+"__bubble";$.has(q)||($W(J,_,2,!1),$.add(q))}function rG(_,J,$){yF.has(_)&&!J&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',_);var q=0;J&&(q|=4),$W($,_,q,J)}function aG(_){if(!_[_q]){_[_q]=!0,nW.forEach(function($){$!=="selectionchange"&&(yF.has($)||rG($,!1,_),rG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[_q]||(J[_q]=!0,rG("selectionchange",!1,J))}}function $W(_,J,$,q){switch(uW(J)){case W5:var G=Qw;break;case d5:G=qw;break;default:G=XZ}$=G.bind(null,J,$,_),G=void 0,!kZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(G=!0),q?G!==void 0?_.addEventListener(J,$,{capture:!0,passive:G}):_.addEventListener(J,$,!0):G!==void 0?_.addEventListener(J,$,{passive:G}):_.addEventListener(J,$,!1)}function sG(_,J,$,q,G){var K=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var z=q.tag;if(z===3||z===4){var L=q.stateNode.containerInfo;if(L===G)break;if(z===4)for(z=q.return;z!==null;){var I=z.tag;if((I===3||I===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;L!==null;){if(z=y1(L),z===null)return;if(I=z.tag,I===5||I===6||I===26||I===27){q=K=z;continue _}L=L.parentNode}}q=q.return}zH(function(){var f=K,n=AU($),_1=[];_:{var i=uB.get(_);if(i!==void 0){var Z1=MQ,f1=_;switch(_){case"keypress":if(q$($)===0)break _;case"keydown":case"keyup":Z1=nw;break;case"focusin":f1="focus",Z1=EZ;break;case"focusout":f1="blur",Z1=EZ;break;case"beforeblur":case"afterblur":Z1=EZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z1=OB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=mw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=JP;break;case VB:case yB:case kB:Z1=cw;break;case DB:Z1=QP;break;case"scroll":case"scrollend":Z1=hw;break;case"wheel":Z1=UP;break;case"copy":case"cut":case"paste":Z1=dw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=wB;break;case"toggle":case"beforetoggle":Z1=ZP}var V1=(J&4)!==0,C0=!V1&&(_==="scroll"||_==="scrollend"),F0=V1?i!==null?i+"Capture":null:i;V1=[];for(var l=f,r;l!==null;){var o=l;if(r=o.stateNode,o=o.tag,o!==5&&o!==26&&o!==27||r===null||F0===null||(o=y9(l,F0),o!=null&&V1.push(J_(l,o,r))),C0)break;l=l.return}0<V1.length&&(i=new Z1(i,f1,null,$,n),_1.push({event:i,listeners:V1}))}}if((J&7)===0){_:{if(i=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",i&&$!==Y_&&(f1=$.relatedTarget||$.fromElement)&&(y1(f1)||f1[r3]))break _;if(Z1||i){if(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,Z1){if(f1=$.relatedTarget||$.toElement,Z1=f,f1=f1?y1(f1):null,f1!==null&&(C0=C(f1),V1=f1.tag,f1!==C0||V1!==5&&V1!==27&&V1!==6))f1=null}else Z1=null,f1=f;if(Z1!==f1){if(V1=OB,o="onMouseLeave",F0="onMouseEnter",l="mouse",_==="pointerout"||_==="pointerover")V1=wB,o="onPointerLeave",F0="onPointerEnter",l="pointer";if(C0=Z1==null?i:d1(Z1),r=f1==null?i:d1(f1),i=new V1(o,l+"leave",Z1,$,n),i.target=C0,i.relatedTarget=r,o=null,y1(n)===f&&(V1=new V1(F0,l+"enter",f1,$,n),V1.target=r,V1.relatedTarget=C0,o=V1),C0=o,Z1&&f1)J:{V1=PI,F0=Z1,l=f1,r=0;for(o=F0;o;o=V1(o))r++;o=0;for(var L1=l;L1;L1=V1(L1))o++;for(;0<r-o;)F0=V1(F0),r--;for(;0<o-r;)l=V1(l),o--;for(;r--;){if(F0===l||l!==null&&F0===l.alternate){V1=F0;break J}F0=V1(F0),l=V1(l)}V1=null}else V1=null;Z1!==null&&QW(_1,i,Z1,V1,!1),f1!==null&&C0!==null&&QW(_1,C0,f1,V1,!0)}}}_:{if(i=f?d1(f):window,Z1=i.nodeName&&i.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&i.type==="file")var j1=RH;else if(MH(i))if(jB)j1=bO;else{j1=DO;var r1=kO}else Z1=i.nodeName,!Z1||Z1.toLowerCase()!=="input"||i.type!=="checkbox"&&i.type!=="radio"?f&&v9(f.elementType)&&(j1=RH):j1=uO;if(j1&&(j1=j1(_,f))){TH(_1,j1,$,n);break _}r1&&r1(_,i,f),_==="focusout"&&f&&i.type==="number"&&f.memoizedProps.value!=null&&t8(i,"number",i.value)}switch(r1=f?d1(f):window,_){case"focusin":if(MH(r1)||r1.contentEditable==="true")w7=r1,xZ=f,T_=null;break;case"focusout":T_=xZ=w7=null;break;case"mousedown":mZ=!0;break;case"contextmenu":case"mouseup":case"dragend":mZ=!1,fH(_1,$,n);break;case"selectionchange":if(HP)break;case"keydown":case"keyup":fH(_1,$,n)}var h1;if(hZ)_:{switch(_){case"compositionstart":var k1="onCompositionStart";break _;case"compositionend":k1="onCompositionEnd";break _;case"compositionupdate":k1="onCompositionUpdate";break _}k1=void 0}else I7?LH(_,$)&&(k1="onCompositionEnd"):_==="keydown"&&$.keyCode===PB&&(k1="onCompositionStart");if(k1&&(NB&&$.locale!=="ko"&&(I7||k1!=="onCompositionStart"?k1==="onCompositionEnd"&&I7&&(h1=WH()):(a3=n,DZ=("value"in a3)?a3.value:a3.textContent,I7=!0)),r1=o$(f,k1),0<r1.length&&(k1=new IB(k1,_,null,$,n),_1.push({event:k1,listeners:r1}),h1?k1.data=h1:(h1=AH($),h1!==null&&(k1.data=h1)))),h1=KP?jO(_,$):vO(_,$))k1=o$(f,"onBeforeInput"),0<k1.length&&(r1=new rw("onBeforeInput","beforeinput",null,$,n),_1.push({event:r1,listeners:k1}),r1.data=h1);wI(_1,_,f,$,n)}JW(_1,J)})}function J_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function o$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,K=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||K===null||(G=y9(_,$),G!=null&&q.unshift(J_(_,G,K)),G=y9(_,J),G!=null&&q.push(J_(_,G,K))),_.tag===3)return q;_=_.return}return[]}function PI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function QW(_,J,$,q,G){for(var K=J._reactName,z=[];$!==null&&$!==q;){var L=$,I=L.alternate,f=L.stateNode;if(L=L.tag,I!==null&&I===q)break;L!==5&&L!==26&&L!==27||f===null||(I=f,G?(f=y9($,K),f!=null&&z.unshift(J_($,f,I))):G||(f=y9($,K),f!=null&&z.push(J_($,f,I)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function tG(_,J){NO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||TB||(TB=!0,_==="select"&&J.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",_):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",_));var $={registrationNameDependencies:t6,possibleRegistrationNames:jZ};v9(_)||typeof J.is==="string"||fO(_,J,$),J.contentEditable&&!J.suppressContentEditableWarning&&J.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Y2(_,J,$,q){J!==$&&($=p3($),p3(J)!==$&&(q[_]=J))}function NI(_,J,$){J.forEach(function(q){$[GW(q)]=q==="style"?nG(_):_.getAttribute(q)})}function O4(_,J){J===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",_,_,_):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",_,typeof J)}function qW(_,J){return _=_.namespaceURI===BQ||_.namespaceURI===M7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function p3(_){return I1(_)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",B1(_)),C1(_)),(typeof _==="string"?_:""+_).replace(EP,`
176
- `).replace(hP,"")}function UW(_,J){return J=p3(J),p3(_)===J?!0:!1}function I0(_,J,$,q,G,K){switch($){case"children":if(typeof q==="string")V3(q,J,!1),J==="body"||J==="textarea"&&q===""||u6(_,q);else if(typeof q==="number"||typeof q==="bigint")V3(""+q,J,!1),J!=="body"&&u6(_,""+q);break;case"className":r8(_,"class",q);break;case"tabIndex":r8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":r8(_,$,q);break;case"style":XH(_,q,K);break;case"data":if(J!=="object"){r8(_,"data",q);break}case"src":case"href":if(q===""&&(J!=="a"||$!=="href")){$==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$),_.removeAttribute($);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}K1(q,$),q=V9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||Qq||(Qq=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),G.target==null||$q||($q=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):J==="input"||J==="button"?$==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):J!=="input"||G.type==="submit"||G.type==="image"||Jq?J!=="button"||G.type==null||G.type==="submit"||Jq?typeof q==="function"&&(G.name==null||qA||(qA=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),G.formEncType==null&&G.formMethod==null||Qq||(Qq=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),G.formTarget==null||$q||($q=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Jq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Jq=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):$==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){_.setAttribute($,"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 K==="function"&&($==="formAction"?(J!=="input"&&I0(_,J,"name",G.name,G,null),I0(_,J,"formEncType",G.formEncType,G,null),I0(_,J,"formMethod",G.formMethod,G,null),I0(_,J,"formTarget",G.formTarget,G,null)):(I0(_,J,"encType",G.encType,G,null),I0(_,J,"method",G.method,G,null),I0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}K1(q,$),q=V9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&O4($,q),_.onclick=d4);break;case"onScroll":q!=null&&(typeof q!=="function"&&O4($,q),Z0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&O4($,q),Z0("scrollend",_));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}K1(q,$),$=V9(""+q),_.setAttributeNS(z8,"xlink:href",$);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(K1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||qq[$]||(qq[$]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",$));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q&&typeof q!=="function"&&typeof q!=="symbol"?_.setAttribute($,""):_.removeAttribute($);break;case"capture":case"download":q===!0?_.setAttribute($,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(K1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(K1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(K1(q,$),_.setAttribute($,q));break;case"popover":Z0("beforetoggle",_),Z0("toggle",_),i8(_,"popover",q);break;case"xlinkActuate":m5(_,z8,"xlink:actuate",q);break;case"xlinkArcrole":m5(_,z8,"xlink:arcrole",q);break;case"xlinkRole":m5(_,z8,"xlink:role",q);break;case"xlinkShow":m5(_,z8,"xlink:show",q);break;case"xlinkTitle":m5(_,z8,"xlink:title",q);break;case"xlinkType":m5(_,z8,"xlink:type",q);break;case"xmlBase":m5(_,kF,"xml:base",q);break;case"xmlLang":m5(_,kF,"xml:lang",q);break;case"xmlSpace":m5(_,kF,"xml:space",q);break;case"is":K!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),i8(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":UA||q==null||typeof q!=="object"||(UA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"?($=HH($),i8(_,$,q)):t6.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&O4($,q)}}function oG(_,J,$,q,G,K){switch($){case"style":XH(_,q,K);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?u6(_,q):(typeof q==="number"||typeof q==="bigint")&&u6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&O4($,q),Z0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&O4($,q),Z0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&O4($,q),_.onclick=d4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(t6.hasOwnProperty($))q!=null&&typeof q!=="function"&&O4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),K=_[m2]||null,K=K!=null?K[$]:null,typeof K==="function"&&_.removeEventListener(J,K,G),typeof q==="function")){typeof K!=="function"&&K!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):i8(_,$,q)}}}function R2(_,J,$){switch(tG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Z0("error",_),Z0("load",_);var q=!1,G=!1,K;for(K in $)if($.hasOwnProperty(K)){var z=$[K];if(z!=null)switch(K){case"src":q=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:I0(_,J,K,z,$,null)}}G&&I0(_,J,"srcSet",$.srcSet,$,null),q&&I0(_,J,"src",$.src,$,null);return;case"input":U4("input",$),Z0("invalid",_);var L=K=z=G=null,I=null,f=null;for(q in $)if($.hasOwnProperty(q)){var n=$[q];if(n!=null)switch(q){case"name":G=n;break;case"type":z=n;break;case"checked":I=n;break;case"defaultChecked":f=n;break;case"value":K=n;break;case"defaultValue":L=n;break;case"children":case"dangerouslySetInnerHTML":if(n!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:I0(_,J,q,n,$,null)}}dJ(_,$),O9(_,K,L,I,f,z,G,!1);return;case"select":U4("select",$),Z0("invalid",_),q=z=K=null;for(G in $)if($.hasOwnProperty(G)&&(L=$[G],L!=null))switch(G){case"value":K=L;break;case"defaultValue":z=L;break;case"multiple":q=L;default:I0(_,J,G,L,$,null)}aJ(_,$),J=K,$=z,_.multiple=!!q,J!=null?f3(_,!!q,J,!1):$!=null&&f3(_,!!q,$,!0);return;case"textarea":U4("textarea",$),Z0("invalid",_),K=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(L=$[z],L!=null))switch(z){case"value":q=L;break;case"defaultValue":G=L;break;case"children":K=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:I0(_,J,z,L,$,null)}sJ(_,$),I9(_,q,G,K);return;case"option":iJ(_,$);for(I in $)if($.hasOwnProperty(I)&&(q=$[I],q!=null))switch(I){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:I0(_,J,I,q,$,null)}return;case"dialog":Z0("beforetoggle",_),Z0("toggle",_),Z0("cancel",_),Z0("close",_);break;case"iframe":case"object":Z0("load",_);break;case"video":case"audio":for(q=0;q<s_.length;q++)Z0(s_[q],_);break;case"image":Z0("error",_),Z0("load",_);break;case"details":Z0("toggle",_);break;case"embed":case"source":case"link":Z0("error",_),Z0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in $)if($.hasOwnProperty(f)&&(q=$[f],q!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:I0(_,J,f,q,$,null)}return;default:if(v9(J)){for(n in $)$.hasOwnProperty(n)&&(q=$[n],q!==void 0&&oG(_,J,n,q,$,void 0));return}}for(L in $)$.hasOwnProperty(L)&&(q=$[L],q!=null&&I0(_,J,L,q,$,null))}function CI(_,J,$,q){switch(tG(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,K=null,z=null,L=null,I=null,f=null,n=null;for(Z1 in $){var _1=$[Z1];if($.hasOwnProperty(Z1)&&_1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":I=_1;default:q.hasOwnProperty(Z1)||I0(_,J,Z1,null,q,_1)}}for(var i in q){var Z1=q[i];if(_1=$[i],q.hasOwnProperty(i)&&(Z1!=null||_1!=null))switch(i){case"type":K=Z1;break;case"name":G=Z1;break;case"checked":f=Z1;break;case"defaultChecked":n=Z1;break;case"value":z=Z1;break;case"defaultValue":L=Z1;break;case"children":case"dangerouslySetInnerHTML":if(Z1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Z1!==_1&&I0(_,J,i,Z1,q,_1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||QA||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),QA=!0),!J||q||$A||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),$A=!0),s8(_,z,L,I,f,n,K,G);return;case"select":Z1=z=L=i=null;for(K in $)if(I=$[K],$.hasOwnProperty(K)&&I!=null)switch(K){case"value":break;case"multiple":Z1=I;default:q.hasOwnProperty(K)||I0(_,J,K,null,q,I)}for(G in q)if(K=q[G],I=$[G],q.hasOwnProperty(G)&&(K!=null||I!=null))switch(G){case"value":i=K;break;case"defaultValue":L=K;break;case"multiple":z=K;default:K!==I&&I0(_,J,G,K,q,I)}q=L,J=z,$=Z1,i!=null?f3(_,!!J,i,!1):!!$!==!!J&&(q!=null?f3(_,!!J,q,!0):f3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=i=null;for(L in $)if(G=$[L],$.hasOwnProperty(L)&&G!=null&&!q.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:I0(_,J,L,null,q,G)}for(z in q)if(G=q[z],K=$[z],q.hasOwnProperty(z)&&(G!=null||K!=null))switch(z){case"value":i=G;break;case"defaultValue":Z1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==K&&I0(_,J,z,G,q,K)}tJ(_,i,Z1);return;case"option":for(var f1 in $)if(i=$[f1],$.hasOwnProperty(f1)&&i!=null&&!q.hasOwnProperty(f1))switch(f1){case"selected":_.selected=!1;break;default:I0(_,J,f1,null,q,i)}for(I in q)if(i=q[I],Z1=$[I],q.hasOwnProperty(I)&&i!==Z1&&(i!=null||Z1!=null))switch(I){case"selected":_.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:I0(_,J,I,i,q,Z1)}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 V1 in $)i=$[V1],$.hasOwnProperty(V1)&&i!=null&&!q.hasOwnProperty(V1)&&I0(_,J,V1,null,q,i);for(f in q)if(i=q[f],Z1=$[f],q.hasOwnProperty(f)&&i!==Z1&&(i!=null||Z1!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(i!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:I0(_,J,f,i,q,Z1)}return;default:if(v9(J)){for(var C0 in $)i=$[C0],$.hasOwnProperty(C0)&&i!==void 0&&!q.hasOwnProperty(C0)&&oG(_,J,C0,void 0,q,i);for(n in q)i=q[n],Z1=$[n],!q.hasOwnProperty(n)||i===Z1||i===void 0&&Z1===void 0||oG(_,J,n,i,q,Z1);return}}for(var F0 in $)i=$[F0],$.hasOwnProperty(F0)&&i!=null&&!q.hasOwnProperty(F0)&&I0(_,J,F0,null,q,i);for(_1 in q)i=q[_1],Z1=$[_1],!q.hasOwnProperty(_1)||i===Z1||i==null&&Z1==null||I0(_,J,_1,i,q,Z1)}function GW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function nG(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function ZW(_,J,$){if(J!=null&&typeof J!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,G=q="",K;for(K in J)if(J.hasOwnProperty(K)){var z=J[K];z!=null&&typeof z!=="boolean"&&z!==""&&(K.indexOf("--")===0?(u1(z,K),q+=G+K+":"+(""+z).trim()):typeof z!=="number"||z===0||AB.has(K)?(u1(z,K),q+=G+K.replace(YB,"-$1").toLowerCase().replace(zB,"-ms-")+":"+(""+z).trim()):q+=G+K.replace(YB,"-$1").toLowerCase().replace(zB,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=p3(q),p3(J)!==q&&($.style=nG(_)))}}function I5(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(K1(q,J),_===""+q)return}Y2(J,_,q,K)}function FW(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}Y2(J,_,q,K)}function eG(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(K1(q,$),_===""+q)return}Y2(J,_,q,K)}function KW(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(K1(q,J),_===""+q))return}Y2(J,_,q,K)}function _Z(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(K1(q,J),$=V9(""+q),_===$)return}Y2(J,_,q,K)}function XW(_,J,$,q){for(var G={},K=new Set,z=_.attributes,L=0;L<z.length;L++)switch(z[L].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:K.add(z[L].name)}if(v9(J)){for(var I in $)if($.hasOwnProperty(I)){var f=$[I];if(f!=null){if(t6.hasOwnProperty(I))typeof f!=="function"&&O4(I,f);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof f!=="string"&&typeof f!=="number"||Y2("children",_.textContent,f,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,f=f?f.__html:void 0,f!=null&&(f=qW(_,f),Y2(I,z,f,G));continue;case"style":K.delete(I),ZW(_,f,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":K.delete(I.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",I);continue;case"className":K.delete("class"),z=pJ(_,"class",f),Y2("className",z,f,G);continue;default:q.context===z3&&J!=="svg"&&J!=="math"?K.delete(I.toLowerCase()):K.delete(I),z=pJ(_,I,f),Y2(I,z,f,G)}}}}else for(f in $)if($.hasOwnProperty(f)&&(I=$[f],I!=null)){if(t6.hasOwnProperty(f))typeof I!=="function"&&O4(f,I);else if($.suppressHydrationWarning!==!0)switch(f){case"children":typeof I!=="string"&&typeof I!=="number"||Y2("children",_.textContent,I,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,I=I?I.__html:void 0,I!=null&&(I=qW(_,I),z!==I&&(G[f]={__html:z}));continue;case"className":I5(_,f,"class",I,K,G);continue;case"tabIndex":I5(_,f,"tabindex",I,K,G);continue;case"style":K.delete(f),ZW(_,I,G);continue;case"multiple":K.delete(f),Y2(f,_.multiple,I,G);continue;case"muted":K.delete(f),Y2(f,_.muted,I,G);continue;case"autoFocus":K.delete("autofocus"),Y2(f,_.autofocus,I,G);continue;case"data":if(J!=="object"){K.delete(f),z=_.getAttribute("data"),Y2(f,z,I,G);continue}case"src":case"href":if(!(I!==""||J==="a"&&f==="href"||J==="object"&&f==="data")){f==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',f,f):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',f,f);continue}_Z(_,f,f,I,K,G);continue;case"action":case"formAction":if(z=_.getAttribute(f),typeof I==="function"){K.delete(f.toLowerCase()),f==="formAction"?(K.delete("name"),K.delete("formenctype"),K.delete("formmethod"),K.delete("formtarget")):(K.delete("enctype"),K.delete("method"),K.delete("target"));continue}else if(z===xP){K.delete(f.toLowerCase()),Y2(f,"function",I,G);continue}_Z(_,f,f.toLowerCase(),I,K,G);continue;case"xlinkHref":_Z(_,f,"xlink:href",I,K,G);continue;case"contentEditable":eG(_,f,"contenteditable",I,K,G);continue;case"spellCheck":eG(_,f,"spellcheck",I,K,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":eG(_,f,f,I,K,G);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":FW(_,f,f.toLowerCase(),I,K,G);continue;case"capture":case"download":_:{L=_;var n=z=f,_1=G;if(K.delete(n),L=L.getAttribute(n),L===null)switch(typeof I){case"undefined":case"function":case"symbol":break _;default:if(I===!1)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":break;case"boolean":if(I===!0&&L==="")break _;break;default:if(K1(I,z),L===""+I)break _}Y2(z,L,I,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(L=_,n=z=f,_1=G,K.delete(n),L=L.getAttribute(n),L===null)switch(typeof I){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(I)||1>I)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(I)||1>I)&&(K1(I,z),L===""+I))break _}Y2(z,L,I,_1)}continue;case"rowSpan":KW(_,f,"rowspan",I,K,G);continue;case"start":KW(_,f,f,I,K,G);continue;case"xHeight":I5(_,f,"x-height",I,K,G);continue;case"xlinkActuate":I5(_,f,"xlink:actuate",I,K,G);continue;case"xlinkArcrole":I5(_,f,"xlink:arcrole",I,K,G);continue;case"xlinkRole":I5(_,f,"xlink:role",I,K,G);continue;case"xlinkShow":I5(_,f,"xlink:show",I,K,G);continue;case"xlinkTitle":I5(_,f,"xlink:title",I,K,G);continue;case"xlinkType":I5(_,f,"xlink:type",I,K,G);continue;case"xmlBase":I5(_,f,"xml:base",I,K,G);continue;case"xmlLang":I5(_,f,"xml:lang",I,K,G);continue;case"xmlSpace":I5(_,f,"xml:space",I,K,G);continue;case"inert":I!==""||qq[f]||(qq[f]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",f)),FW(_,f,f,I,K,G);continue;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N"){L=HH(f),z=!1,q.context===z3&&J!=="svg"&&J!=="math"?K.delete(L.toLowerCase()):(n=f.toLowerCase(),n=LQ.hasOwnProperty(n)?LQ[n]||null:null,n!==null&&n!==f&&(z=!0,K.delete(n)),K.delete(L));_:if(n=_,_1=L,L=I,k6(_1))if(n.hasAttribute(_1))n=n.getAttribute(_1),K1(L,_1),L=n===""+L?L:n;else{switch(typeof L){case"function":case"symbol":break _;case"boolean":if(n=_1.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-")break _}L=L===void 0?void 0:null}else L=void 0;z||Y2(f,L,I,G)}}}return 0<K.size&&$.suppressHydrationWarning!==!0&&NI(_,K,G),Object.keys(G).length===0?null:G}function fI(_,J){switch(_.length){case 0:return"";case 1:return _[0];case 2:return _[0]+" "+J+" "+_[1];default:return _.slice(0,-1).join(", ")+", "+J+" "+_[_.length-1]}}function HW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],K=G.transferSize,z=G.initiatorType,L=G.duration;if(K&&L&&HW(z)){z=0,L=G.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],f=I.startTime;if(f>L)break;var{transferSize:n,initiatorType:_1}=I;n&&HW(_1)&&(I=I.responseEnd,z+=n*(I<L?1:(L-f)/(I-f)))}if(--q,J+=8*(K+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function n$(_){return _.nodeType===9?_:_.ownerDocument}function YW(_){switch(_){case M7:return a7;case BQ:return Gq;default:return z3}}function zW(_,J){if(_===z3)switch(J){case"svg":return a7;case"math":return Gq;default:return z3}return _===a7&&J==="foreignObject"?z3:_}function JZ(_,J){return _==="textarea"||_==="noscript"||typeof J.children==="string"||typeof J.children==="number"||typeof J.children==="bigint"||typeof J.dangerouslySetInnerHTML==="object"&&J.dangerouslySetInnerHTML!==null&&J.dangerouslySetInnerHTML.__html!=null}function jI(){var _=window.event;if(_&&_.type==="popstate"){if(_===EF)return!1;return EF=_,!0}return EF=null,!1}function $_(){var _=window.event;return _&&_!==n_?_.type:null}function Q_(){var _=window.event;return _&&_!==n_?_.timeStamp:-1.1}function vI(_){setTimeout(function(){throw _})}function VI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function yI(){}function kI(_,J,$,q){CI(_,J,$,q),_[m2]=q}function WW(_){u6(_,"")}function DI(_,J,$){_.nodeValue=$}function BW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[m2]||null;if(J!==null){var $=l1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,M1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):J.dangerouslySetInnerHTML!=null&&(_.__reactWarnedAboutChildrenConflict=!0,M1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function c3(_){return _==="head"}function uI(_,J){_.removeChild(J)}function bI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function LW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===o_||$===Uq){if(q===0){_.removeChild(G),Y7(J);return}q--}else if($===t_||$===z6||$===B8||$===r7||$===W8)q++;else if($===gP)q_(_.ownerDocument.documentElement);else if($===cP){$=_.ownerDocument.head,q_($);for(var K=$.firstChild;K;){var{nextSibling:z,nodeName:L}=K;K[H_]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&K.rel.toLowerCase()==="stylesheet"||$.removeChild(K),K=z}}else $===pP&&q_(_.ownerDocument.body);$=G}while($);Y7(J)}function AW(_,J){var $=_;_=0;do{var q=$.nextSibling;if($.nodeType===1?J?($._stashedDisplay=$.style.display,$.style.display="none"):($.style.display=$._stashedDisplay||"",$.getAttribute("style")===""&&$.removeAttribute("style")):$.nodeType===3&&(J?($._stashedText=$.nodeValue,$.nodeValue=""):$.nodeValue=$._stashedText||""),q&&q.nodeType===8)if($=q.data,$===o_)if(_===0)break;else _--;else $!==t_&&$!==z6&&$!==B8&&$!==r7||_++;$=q}while($)}function EI(_){AW(_,!0)}function hI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function xI(_){_.nodeValue=""}function mI(_){AW(_,!1)}function gI(_,J){J=J[lP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function pI(_,J){_.nodeValue=J}function $Z(_){var J=_.firstChild;J&&J.nodeType===10&&(J=J.nextSibling);for(;J;){var $=J;switch(J=J.nextSibling,$.nodeName){case"HTML":case"HEAD":case"BODY":$Z($),S1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function cI(_,J,$,q){for(;_.nodeType===1;){var G=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){K1(G.name,"name");var K=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===K)return _}else return _;else if(!_[H_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(K=_.getAttribute("rel"),K==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(K!==G.rel||_.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||_.getAttribute("title")!==(G.title==null?null:G.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(K=_.getAttribute("src"),(K!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&K&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=H5(_.nextSibling),_===null)break}return null}function lI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=H5(_.nextSibling),_===null)return null}return _}function MW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=H5(_.nextSibling),_===null)return null}return _}function QZ(_){return _.data===z6||_.data===B8}function qZ(_){return _.data===r7||_.data===z6&&_.ownerDocument.readyState!==ZA}function dI(_,J){var $=_.ownerDocument;if(_.data===B8)_._reactRetry=J;else if(_.data!==z6||$.readyState!==ZA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function H5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===t_||J===r7||J===z6||J===B8||J===W8||J===DF||J===GA)break;if(J===o_||J===Uq)return null}}return _}function TW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var K=q[G];$[GW(K.name)]=K.name.toLowerCase()==="style"?nG(_):K.value}return{type:J,props:$}}return _.nodeType===8?_.data===W8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function RW(_,J,$){return $===null||$[mP]!==!0?(_.nodeValue===J?_=null:(J=p3(J),_=p3(_.nodeValue)===J?null:_.nodeValue),_):null}function UZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===o_||$===Uq){if(J===0)return H5(_.nextSibling);J--}else $!==t_&&$!==r7&&$!==z6&&$!==B8&&$!==W8||J++}_=_.nextSibling}return null}function OW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===t_||$===r7||$===z6||$===B8||$===W8){if(J===0)return _;J--}else $!==o_&&$!==Uq||J++}_=_.previousSibling}return null}function iI(_){Y7(_)}function rI(_){Y7(_)}function aI(_){Y7(_)}function IW(_,J,$,q,G){switch(G&&S9(_,q.ancestorInfo),J=n$($),_){case"html":if(_=J.documentElement,!_)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"head":if(_=J.head,!_)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"body":if(_=J.body,!_)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return _;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function sI(_,J,$,q){if(!$[r3]&&l1($)){var G=$.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",G,G,G)}switch(_){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(G=$.attributes;G.length;)$.removeAttributeNode(G[0]);R2($,_,J),$[O2]=q,$[m2]=J}function q_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);S1(_)}function e$(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function wW(_,J,$){var q=s7;if(q&&typeof J==="string"&&J){var G=t2(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),zA.has(G)||(zA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),R2(J,"link",_),E1(J),q.head.appendChild(J)))}}function PW(_,J,$,q){var G=(G=d3.current)?e$(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(_){case"meta":case"title":return null;case"style":return typeof $.precedence==="string"&&typeof $.href==="string"?($=X7($.href),J=K0(G).hoistableStyles,q=J.get($),q||(q={type:"style",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if($.rel==="stylesheet"&&typeof $.href==="string"&&typeof $.precedence==="string"){_=X7($.href);var K=K0(G).hoistableStyles,z=K.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:A8,preload:null}},K.set(_,z),(K=G.querySelector(U_(_)))&&!K._p&&(z.instance=K,z.state.loading=e_|k5),!D5.has(_))){var L={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};D5.set(_,L),K||tI(G,_,L,z.state)}if(J&&q===null)throw $=`
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,x(_))})}function S4(_){_!==o7&&_.next===null&&(o7===null?_q=o7=_:o7=o7.next=_),Jq=!0,Y1.actQueue!==null?VF||(VF=!0,ez()):vF||(vF=!0,ez())}function U_(_,J){if(!yF&&Jq){yF=!0;do{var $=!1;for(var q=_q;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var X=0;else{var{suspendedLanes:z,pingedLanes:L}=q;X=(1<<31-c2(42|_)+1)-1,X&=G&~(z&~L),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,nz(q,X))}else X=J0,X=N2(q,q===C0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==I8),(X&3)===0||A2(q,X)||($=!0,nz(q,X));q=q.next}}while($);yF=!1}}function fI(){QJ=window.event,dG()}function dG(){Jq=VF=vF=!1;var _=0;I6!==0&&DI()&&(_=I6);for(var J=R2(),$=null,q=_q;q!==null;){var G=q.next,X=tz(q,J);if(X===0)q.next=null,$===null?_q=G:$.next=G,G===null&&(o7=$);else if($=q,_!==0||(X&3)!==0)Jq=!0;q=G}Z2!==R6&&Z2!==oQ||U_(_,!1),I6!==0&&(I6=0)}function tz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,X=_.pendingLanes&-62914561;0<X;){var z=31-c2(X),L=1<<z,w=G[z];if(w===-1){if((L&$)===0||(L&q)!==0)G[z]=C2(L,J)}else w<=J&&(_.expiredLanes|=L);X&=~L}if(J=C0,$=J0,$=N2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q=_.callbackNode,$===0||_===J&&(O0===B8||O0===L8)||_.cancelPendingCommit!==null)return q!==null&&rG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||A2(_,$)){if(J=$&-$,J!==_.callbackPriority||Y1.actQueue!==null&&q!==kF)rG(q);else return J;switch(I($)){case M5:case e5:$=SZ;break;case u4:$=R7;break;case BQ:$=jZ;break;default:$=R7}return q=oz.bind(null,_),Y1.actQueue!==null?(Y1.actQueue.push(q),$=kF):$=CZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&rG(q),_.callbackPriority=2,_.callbackNode=null,2}function oz(_,J){if(kQ=yQ=!1,QJ=window.event,Z2!==R6&&Z2!==oQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(U4===tQ&&(U4=PF),Q_()&&_.callbackNode!==$)return null;var q=J0;if(q=N2(_,_===C0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q===0)return null;return vz(_,q,J),tz(_,R2()),_.callbackNode!=null&&_.callbackNode===$?oz.bind(null,_):null}function nz(_,J){if(Q_())return null;yQ=kQ,kQ=!1,vz(_,J,!0)}function rG(_){_!==kF&&_!==null&&Lw(_)}function ez(){Y1.actQueue!==null&&Y1.actQueue.push(function(){return dG(),null}),oP(function(){(Y0&(W2|I5))!==w2?CZ(fZ,fI):dG()})}function aG(){if(I6===0){var _=F8;_===0&&(_=YQ,YQ<<=1,(YQ&261888)===0&&(YQ=256)),I6=_}return I6}function _W(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return M1(_,"action"),b9(""+_)}function JW(_,J){var $=J.ownerDocument.createElement("input");return $.name=J.name,$.value=J.value,_.id&&$.setAttribute("form",_.id),J.parentNode.insertBefore($,J),_=new FormData(_),$.parentNode.removeChild($),_}function SI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var X=_W((G[l2]||null).action),z=q.submitter;z&&(J=(J=z[l2]||null)?_W(J.formAction):z.getAttribute("formAction"),J!==null&&(X=J,z=null));var L=new RQ("action","action",null,q,G);_.push({event:L,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(I6!==0){var w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X};Object.freeze(S),WG($,S,null,w)}}else typeof X==="function"&&(L.preventDefault(),w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X},Object.freeze(S),WG($,S,X,w))},currentTarget:G}]})}}function n$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){iZ(q)}_.currentTarget=null}function $W(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,X=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var L=q[z],w=L.instance,S=L.currentTarget;if(L=L.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,L,S):n$(X,L,S),G=w}else for(z=0;z<q.length;z++){if(L=q[z],w=L.instance,S=L.currentTarget,L=L.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,L,S):n$(X,L,S),G=w}}}}function X0(_,J){DF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[vZ];$===void 0&&($=J[vZ]=new Set);var q=_+"__bubble";$.has(q)||(QW(J,_,2,!1),$.add(q))}function sG(_,J,$){DF.has(_)&&!J&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',_);var q=0;J&&(q|=4),QW($,_,q,J)}function tG(_){if(!_[$q]){_[$q]=!0,eW.forEach(function($){$!=="selectionchange"&&(DF.has($)||sG($,!1,_),sG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[$q]||(J[$q]=!0,sG("selectionchange",!1,J))}}function QW(_,J,$,q){switch(bW(J)){case M5:var G=Fw;break;case e5:G=Xw;break;default:G=YZ}$=G.bind(null,J,$,_),G=void 0,!uZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(G=!0),q?G!==void 0?_.addEventListener(J,$,{capture:!0,passive:G}):_.addEventListener(J,$,!0):G!==void 0?_.addEventListener(J,$,{passive:G}):_.addEventListener(J,$,!1)}function oG(_,J,$,q,G){var X=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var z=q.tag;if(z===3||z===4){var L=q.stateNode.containerInfo;if(L===G)break;if(z===4)for(z=q.return;z!==null;){var w=z.tag;if((w===3||w===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;L!==null;){if(z=R1(L),z===null)return;if(w=z.tag,w===5||w===6||w===26||w===27){q=X=z;continue _}L=L.parentNode}}q=q.return}WH(function(){var S=X,e=TU($),_1=[];_:{var r=bB.get(_);if(r!==void 0){var Z1=RQ,f1=_;switch(_){case"keypress":if(G$($)===0)break _;case"keydown":case"keyup":Z1=QP;break;case"focusin":f1="focus",Z1=xZ;break;case"focusout":f1="blur",Z1=xZ;break;case"beforeblur":case"afterblur":Z1=xZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z1=IB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=iw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=GP;break;case yB:case kB:case DB:Z1=aw;break;case uB:Z1=FP;break;case"scroll":case"scrollend":Z1=cw;break;case"wheel":Z1=KP;break;case"copy":case"cut":case"paste":Z1=tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=PB;break;case"toggle":case"beforetoggle":Z1=YP}var V1=(J&4)!==0,v0=!V1&&(_==="scroll"||_==="scrollend"),K0=V1?r!==null?r+"Capture":null:r;V1=[];for(var d=S,s;d!==null;){var n=d;if(s=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||s===null||K0===null||(n=E9(d,K0),n!=null&&V1.push(G_(d,n,s))),v0)break;d=d.return}0<V1.length&&(r=new Z1(r,f1,null,$,e),_1.push({event:r,listeners:V1}))}}if((J&7)===0){_:{if(r=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",r&&$!==A_&&(f1=$.relatedTarget||$.fromElement)&&(R1(f1)||f1[Q6]))break _;if(Z1||r){if(r=e.window===e?e:(r=e.ownerDocument)?r.defaultView||r.parentWindow:window,Z1){if(f1=$.relatedTarget||$.toElement,Z1=S,f1=f1?R1(f1):null,f1!==null&&(v0=f(f1),V1=f1.tag,f1!==v0||V1!==5&&V1!==27&&V1!==6))f1=null}else Z1=null,f1=S;if(Z1!==f1){if(V1=IB,n="onMouseLeave",K0="onMouseEnter",d="mouse",_==="pointerout"||_==="pointerover")V1=PB,n="onPointerLeave",K0="onPointerEnter",d="pointer";if(v0=Z1==null?r:C1(Z1),s=f1==null?r:C1(f1),r=new V1(n,d+"leave",Z1,$,e),r.target=v0,r.relatedTarget=s,n=null,R1(e)===S&&(V1=new V1(K0,d+"enter",f1,$,e),V1.target=s,V1.relatedTarget=v0,n=V1),v0=n,Z1&&f1)J:{V1=jI,K0=Z1,d=f1,s=0;for(n=K0;n;n=V1(n))s++;n=0;for(var L1=d;L1;L1=V1(L1))n++;for(;0<s-n;)K0=V1(K0),s--;for(;0<n-s;)d=V1(d),n--;for(;s--;){if(K0===d||d!==null&&K0===d.alternate){V1=K0;break J}K0=V1(K0),d=V1(d)}V1=null}else V1=null;Z1!==null&&qW(_1,r,Z1,V1,!1),f1!==null&&v0!==null&&qW(_1,v0,f1,V1,!0)}}}_:{if(r=S?C1(S):window,Z1=r.nodeName&&r.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&r.type==="file")var S1=OH;else if(TH(r))if(vB)S1=gO;else{S1=xO;var s1=hO}else Z1=r.nodeName,!Z1||Z1.toLowerCase()!=="input"||r.type!=="checkbox"&&r.type!=="radio"?S&&u9(S.elementType)&&(S1=OH):S1=mO;if(S1&&(S1=S1(_,S))){RH(_1,S1,$,e);break _}s1&&s1(_,r,S),_==="focusout"&&S&&r.type==="number"&&S.memoizedProps.value!=null&&J7(r,"number",r.value)}switch(s1=S?C1(S):window,_){case"focusin":if(TH(s1)||s1.contentEditable==="true")S7=s1,gZ=S,P_=null;break;case"focusout":P_=gZ=S7=null;break;case"mousedown":pZ=!0;break;case"contextmenu":case"mouseup":case"dragend":pZ=!1,SH(_1,$,e);break;case"selectionchange":if(LP)break;case"keydown":case"keyup":SH(_1,$,e)}var x1;if(mZ)_:{switch(_){case"compositionstart":var E1="onCompositionStart";break _;case"compositionend":E1="onCompositionEnd";break _;case"compositionupdate":E1="onCompositionUpdate";break _}E1=void 0}else f7?AH(_,$)&&(E1="onCompositionEnd"):_==="keydown"&&$.keyCode===NB&&(E1="onCompositionStart");if(E1&&(CB&&$.locale!=="ko"&&(f7||E1!=="onCompositionStart"?E1==="onCompositionEnd"&&f7&&(x1=BH()):(q6=e,bZ=("value"in q6)?q6.value:q6.textContent,f7=!0)),s1=e$(S,E1),0<s1.length&&(E1=new wB(E1,_,null,$,e),_1.push({event:E1,listeners:s1}),x1?E1.data=x1:(x1=MH($),x1!==null&&(E1.data=x1)))),x1=WP?DO(_,$):uO(_,$))E1=e$(S,"onBeforeInput"),0<E1.length&&(s1=new nw("onBeforeInput","beforeinput",null,$,e),_1.push({event:s1,listeners:E1}),s1.data=x1);SI(_1,_,S,$,e)}$W(_1,J)})}function G_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function e$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,X=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||X===null||(G=E9(_,$),G!=null&&q.unshift(G_(_,G,X)),G=E9(_,J),G!=null&&q.push(G_(_,G,X))),_.tag===3)return q;_=_.return}return[]}function jI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function qW(_,J,$,q,G){for(var X=J._reactName,z=[];$!==null&&$!==q;){var L=$,w=L.alternate,S=L.stateNode;if(L=L.tag,w!==null&&w===q)break;L!==5&&L!==26&&L!==27||S===null||(w=S,G?(S=E9($,X),S!=null&&z.unshift(G_($,S,w))):G||(S=E9($,X),S!=null&&z.push(G_($,S,w)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function nG(_,J){vO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||RB||(RB=!0,_==="select"&&J.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",_):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",_));var $={registrationNameDependencies:$8,possibleRegistrationNames:VZ};u9(_)||typeof J.is==="string"||yO(_,J,$),J.contentEditable&&!J.suppressContentEditableWarning&&J.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function T2(_,J,$,q){J!==$&&($=n3($),n3(J)!==$&&(q[_]=J))}function vI(_,J,$){J.forEach(function(q){$[ZW(q)]=q==="style"?_Z(_):_.getAttribute(q)})}function j4(_,J){J===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",_,_,_):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",_,typeof J)}function UW(_,J){return _=_.namespaceURI===AQ||_.namespaceURI===w7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function n3(_){return g1(_)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",D1(_)),h1(_)),(typeof _==="string"?_:""+_).replace(pP,`
176
+ `).replace(cP,"")}function GW(_,J){return J=n3(J),n3(_)===J?!0:!1}function P0(_,J,$,q,G,X){switch($){case"children":if(typeof q==="string")g3(q,J,!1),J==="body"||J==="textarea"&&q===""||g6(_,q);else if(typeof q==="number"||typeof q==="bigint")g3(""+q,J,!1),J!=="body"&&g6(_,""+q);break;case"className":n8(_,"class",q);break;case"tabIndex":n8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":n8(_,$,q);break;case"style":HH(_,q,X);break;case"data":if(J!=="object"){n8(_,"data",q);break}case"src":case"href":if(q===""&&(J!=="a"||$!=="href")){$==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$),_.removeAttribute($);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=b9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||Uq||(Uq=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),G.target==null||qq||(qq=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):J==="input"||J==="button"?$==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):J!=="input"||G.type==="submit"||G.type==="image"||Qq?J!=="button"||G.type==null||G.type==="submit"||Qq?typeof q==="function"&&(G.name==null||UA||(UA=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),G.formEncType==null&&G.formMethod==null||Uq||(Uq=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),G.formTarget==null||qq||(qq=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Qq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qq=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):$==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){_.setAttribute($,"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 X==="function"&&($==="formAction"?(J!=="input"&&P0(_,J,"name",G.name,G,null),P0(_,J,"formEncType",G.formEncType,G,null),P0(_,J,"formMethod",G.formMethod,G,null),P0(_,J,"formTarget",G.formTarget,G,null)):(P0(_,J,"encType",G.encType,G,null),P0(_,J,"method",G.method,G,null),P0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=b9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&j4($,q),_.onclick=_3);break;case"onScroll":q!=null&&(typeof q!=="function"&&j4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&j4($,q),X0("scrollend",_));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}M1(q,$),$=b9(""+q),_.setAttributeNS(T8,"xlink:href",$);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(M1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||Gq[$]||(Gq[$]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",$));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q&&typeof q!=="function"&&typeof q!=="symbol"?_.setAttribute($,""):_.removeAttribute($);break;case"capture":case"download":q===!0?_.setAttribute($,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(M1(q,$),_.setAttribute($,q));break;case"popover":X0("beforetoggle",_),X0("toggle",_),T0(_,"popover",q);break;case"xlinkActuate":a5(_,T8,"xlink:actuate",q);break;case"xlinkArcrole":a5(_,T8,"xlink:arcrole",q);break;case"xlinkRole":a5(_,T8,"xlink:role",q);break;case"xlinkShow":a5(_,T8,"xlink:show",q);break;case"xlinkTitle":a5(_,T8,"xlink:title",q);break;case"xlinkType":a5(_,T8,"xlink:type",q);break;case"xmlBase":a5(_,uF,"xml:base",q);break;case"xmlLang":a5(_,uF,"xml:lang",q);break;case"xmlSpace":a5(_,uF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),T0(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":GA||q==null||typeof q!=="object"||(GA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"?($=YH($),T0(_,$,q)):$8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&j4($,q)}}function eG(_,J,$,q,G,X){switch($){case"style":HH(_,q,X);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?g6(_,q):(typeof q==="number"||typeof q==="bigint")&&g6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&j4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&j4($,q),X0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&j4($,q),_.onclick=_3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if($8.hasOwnProperty($))q!=null&&typeof q!=="function"&&j4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),X=_[l2]||null,X=X!=null?X[$]:null,typeof X==="function"&&_.removeEventListener(J,X,G),typeof q==="function")){typeof X!=="function"&&X!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):T0(_,$,q)}}}function j2(_,J,$){switch(nG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":X0("error",_),X0("load",_);var q=!1,G=!1,X;for(X in $)if($.hasOwnProperty(X)){var z=$[X];if(z!=null)switch(X){case"src":q=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:P0(_,J,X,z,$,null)}}G&&P0(_,J,"srcSet",$.srcSet,$,null),q&&P0(_,J,"src",$.src,$,null);return;case"input":w0("input",$),X0("invalid",_);var L=X=z=G=null,w=null,S=null;for(q in $)if($.hasOwnProperty(q)){var e=$[q];if(e!=null)switch(q){case"name":G=e;break;case"type":z=e;break;case"checked":w=e;break;case"defaultChecked":S=e;break;case"value":X=e;break;case"defaultValue":L=e;break;case"children":case"dangerouslySetInnerHTML":if(e!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P0(_,J,q,e,$,null)}}rJ(_,$),C9(_,X,L,w,S,z,G,!1);return;case"select":w0("select",$),X0("invalid",_),q=z=X=null;for(G in $)if($.hasOwnProperty(G)&&(L=$[G],L!=null))switch(G){case"value":X=L;break;case"defaultValue":z=L;break;case"multiple":q=L;default:P0(_,J,G,L,$,null)}tJ(_,$),J=X,$=z,_.multiple=!!q,J!=null?E3(_,!!q,J,!1):$!=null&&E3(_,!!q,$,!0);return;case"textarea":w0("textarea",$),X0("invalid",_),X=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(L=$[z],L!=null))switch(z){case"value":q=L;break;case"defaultValue":G=L;break;case"children":X=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:P0(_,J,z,L,$,null)}oJ(_,$),f9(_,q,G,X);return;case"option":aJ(_,$);for(w in $)if($.hasOwnProperty(w)&&(q=$[w],q!=null))switch(w){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:P0(_,J,w,q,$,null)}return;case"dialog":X0("beforetoggle",_),X0("toggle",_),X0("cancel",_),X0("close",_);break;case"iframe":case"object":X0("load",_);break;case"video":case"audio":for(q=0;q<_J.length;q++)X0(_J[q],_);break;case"image":X0("error",_),X0("load",_);break;case"details":X0("toggle",_);break;case"embed":case"source":case"link":X0("error",_),X0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in $)if($.hasOwnProperty(S)&&(q=$[S],q!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:P0(_,J,S,q,$,null)}return;default:if(u9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&eG(_,J,e,q,$,void 0));return}}for(L in $)$.hasOwnProperty(L)&&(q=$[L],q!=null&&P0(_,J,L,q,$,null))}function VI(_,J,$,q){switch(nG(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,X=null,z=null,L=null,w=null,S=null,e=null;for(Z1 in $){var _1=$[Z1];if($.hasOwnProperty(Z1)&&_1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":w=_1;default:q.hasOwnProperty(Z1)||P0(_,J,Z1,null,q,_1)}}for(var r in q){var Z1=q[r];if(_1=$[r],q.hasOwnProperty(r)&&(Z1!=null||_1!=null))switch(r){case"type":X=Z1;break;case"name":G=Z1;break;case"checked":S=Z1;break;case"defaultChecked":e=Z1;break;case"value":z=Z1;break;case"defaultValue":L=Z1;break;case"children":case"dangerouslySetInnerHTML":if(Z1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Z1!==_1&&P0(_,J,r,Z1,q,_1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||qA||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qA=!0),!J||q||QA||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),QA=!0),_7(_,z,L,w,S,e,X,G);return;case"select":Z1=z=L=r=null;for(X in $)if(w=$[X],$.hasOwnProperty(X)&&w!=null)switch(X){case"value":break;case"multiple":Z1=w;default:q.hasOwnProperty(X)||P0(_,J,X,null,q,w)}for(G in q)if(X=q[G],w=$[G],q.hasOwnProperty(G)&&(X!=null||w!=null))switch(G){case"value":r=X;break;case"defaultValue":L=X;break;case"multiple":z=X;default:X!==w&&P0(_,J,G,X,q,w)}q=L,J=z,$=Z1,r!=null?E3(_,!!J,r,!1):!!$!==!!J&&(q!=null?E3(_,!!J,q,!0):E3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=r=null;for(L in $)if(G=$[L],$.hasOwnProperty(L)&&G!=null&&!q.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:P0(_,J,L,null,q,G)}for(z in q)if(G=q[z],X=$[z],q.hasOwnProperty(z)&&(G!=null||X!=null))switch(z){case"value":r=G;break;case"defaultValue":Z1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==X&&P0(_,J,z,G,q,X)}nJ(_,r,Z1);return;case"option":for(var f1 in $)if(r=$[f1],$.hasOwnProperty(f1)&&r!=null&&!q.hasOwnProperty(f1))switch(f1){case"selected":_.selected=!1;break;default:P0(_,J,f1,null,q,r)}for(w in q)if(r=q[w],Z1=$[w],q.hasOwnProperty(w)&&r!==Z1&&(r!=null||Z1!=null))switch(w){case"selected":_.selected=r&&typeof r!=="function"&&typeof r!=="symbol";break;default:P0(_,J,w,r,q,Z1)}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 V1 in $)r=$[V1],$.hasOwnProperty(V1)&&r!=null&&!q.hasOwnProperty(V1)&&P0(_,J,V1,null,q,r);for(S in q)if(r=q[S],Z1=$[S],q.hasOwnProperty(S)&&r!==Z1&&(r!=null||Z1!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(r!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P0(_,J,S,r,q,Z1)}return;default:if(u9(J)){for(var v0 in $)r=$[v0],$.hasOwnProperty(v0)&&r!==void 0&&!q.hasOwnProperty(v0)&&eG(_,J,v0,void 0,q,r);for(e in q)r=q[e],Z1=$[e],!q.hasOwnProperty(e)||r===Z1||r===void 0&&Z1===void 0||eG(_,J,e,r,q,Z1);return}}for(var K0 in $)r=$[K0],$.hasOwnProperty(K0)&&r!=null&&!q.hasOwnProperty(K0)&&P0(_,J,K0,null,q,r);for(_1 in q)r=q[_1],Z1=$[_1],!q.hasOwnProperty(_1)||r===Z1||r==null&&Z1==null||P0(_,J,_1,r,q,Z1)}function ZW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function _Z(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function FW(_,J,$){if(J!=null&&typeof J!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,G=q="",X;for(X in J)if(J.hasOwnProperty(X)){var z=J[X];z!=null&&typeof z!=="boolean"&&z!==""&&(X.indexOf("--")===0?(r1(z,X),q+=G+X+":"+(""+z).trim()):typeof z!=="number"||z===0||MB.has(X)?(r1(z,X),q+=G+X.replace(zB,"-$1").toLowerCase().replace(WB,"-ms-")+":"+(""+z).trim()):q+=G+X.replace(zB,"-$1").toLowerCase().replace(WB,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=n3(q),n3(J)!==q&&($.style=_Z(_)))}}function v5(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(M1(q,J),_===""+q)return}T2(J,_,q,X)}function XW(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}T2(J,_,q,X)}function JZ(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(M1(q,$),_===""+q)return}T2(J,_,q,X)}function KW(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(M1(q,J),_===""+q))return}T2(J,_,q,X)}function $Z(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(M1(q,J),$=b9(""+q),_===$)return}T2(J,_,q,X)}function HW(_,J,$,q){for(var G={},X=new Set,z=_.attributes,L=0;L<z.length;L++)switch(z[L].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(z[L].name)}if(u9(J)){for(var w in $)if($.hasOwnProperty(w)){var S=$[w];if(S!=null){if($8.hasOwnProperty(w))typeof S!=="function"&&j4(w,S);else if($.suppressHydrationWarning!==!0)switch(w){case"children":typeof S!=="string"&&typeof S!=="number"||T2("children",_.textContent,S,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,S=S?S.__html:void 0,S!=null&&(S=UW(_,S),T2(w,z,S,G));continue;case"style":X.delete(w),FW(_,S,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":X.delete(w.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",w);continue;case"className":X.delete("class"),z=j5(_,"class",S),T2("className",z,S,G);continue;default:q.context===I3&&J!=="svg"&&J!=="math"?X.delete(w.toLowerCase()):X.delete(w),z=j5(_,w,S),T2(w,z,S,G)}}}}else for(S in $)if($.hasOwnProperty(S)&&(w=$[S],w!=null)){if($8.hasOwnProperty(S))typeof w!=="function"&&j4(S,w);else if($.suppressHydrationWarning!==!0)switch(S){case"children":typeof w!=="string"&&typeof w!=="number"||T2("children",_.textContent,w,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,w=w?w.__html:void 0,w!=null&&(w=UW(_,w),z!==w&&(G[S]={__html:z}));continue;case"className":v5(_,S,"class",w,X,G);continue;case"tabIndex":v5(_,S,"tabindex",w,X,G);continue;case"style":X.delete(S),FW(_,w,G);continue;case"multiple":X.delete(S),T2(S,_.multiple,w,G);continue;case"muted":X.delete(S),T2(S,_.muted,w,G);continue;case"autoFocus":X.delete("autofocus"),T2(S,_.autofocus,w,G);continue;case"data":if(J!=="object"){X.delete(S),z=_.getAttribute("data"),T2(S,z,w,G);continue}case"src":case"href":if(!(w!==""||J==="a"&&S==="href"||J==="object"&&S==="data")){S==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}$Z(_,S,S,w,X,G);continue;case"action":case"formAction":if(z=_.getAttribute(S),typeof w==="function"){X.delete(S.toLowerCase()),S==="formAction"?(X.delete("name"),X.delete("formenctype"),X.delete("formmethod"),X.delete("formtarget")):(X.delete("enctype"),X.delete("method"),X.delete("target"));continue}else if(z===lP){X.delete(S.toLowerCase()),T2(S,"function",w,G);continue}$Z(_,S,S.toLowerCase(),w,X,G);continue;case"xlinkHref":$Z(_,S,"xlink:href",w,X,G);continue;case"contentEditable":JZ(_,S,"contenteditable",w,X,G);continue;case"spellCheck":JZ(_,S,"spellcheck",w,X,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JZ(_,S,S,w,X,G);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":XW(_,S,S.toLowerCase(),w,X,G);continue;case"capture":case"download":_:{L=_;var e=z=S,_1=G;if(X.delete(e),L=L.getAttribute(e),L===null)switch(typeof w){case"undefined":case"function":case"symbol":break _;default:if(w===!1)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":break;case"boolean":if(w===!0&&L==="")break _;break;default:if(M1(w,z),L===""+w)break _}T2(z,L,w,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(L=_,e=z=S,_1=G,X.delete(e),L=L.getAttribute(e),L===null)switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(w)||1>w)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(w)||1>w)&&(M1(w,z),L===""+w))break _}T2(z,L,w,_1)}continue;case"rowSpan":KW(_,S,"rowspan",w,X,G);continue;case"start":KW(_,S,S,w,X,G);continue;case"xHeight":v5(_,S,"x-height",w,X,G);continue;case"xlinkActuate":v5(_,S,"xlink:actuate",w,X,G);continue;case"xlinkArcrole":v5(_,S,"xlink:arcrole",w,X,G);continue;case"xlinkRole":v5(_,S,"xlink:role",w,X,G);continue;case"xlinkShow":v5(_,S,"xlink:show",w,X,G);continue;case"xlinkTitle":v5(_,S,"xlink:title",w,X,G);continue;case"xlinkType":v5(_,S,"xlink:type",w,X,G);continue;case"xmlBase":v5(_,S,"xml:base",w,X,G);continue;case"xmlLang":v5(_,S,"xml:lang",w,X,G);continue;case"xmlSpace":v5(_,S,"xml:space",w,X,G);continue;case"inert":w!==""||Gq[S]||(Gq[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),XW(_,S,S,w,X,G);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){L=YH(S),z=!1,q.context===I3&&J!=="svg"&&J!=="math"?X.delete(L.toLowerCase()):(e=S.toLowerCase(),e=MQ.hasOwnProperty(e)?MQ[e]||null:null,e!==null&&e!==S&&(z=!0,X.delete(e)),X.delete(L));_:if(e=_,_1=L,L=w,n4(_1))if(e.hasAttribute(_1))e=e.getAttribute(_1),M1(L,_1),L=e===""+L?L:e;else{switch(typeof L){case"function":case"symbol":break _;case"boolean":if(e=_1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}L=L===void 0?void 0:null}else L=void 0;z||T2(S,L,w,G)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&vI(_,X,G),Object.keys(G).length===0?null:G}function yI(_,J){switch(_.length){case 0:return"";case 1:return _[0];case 2:return _[0]+" "+J+" "+_[1];default:return _.slice(0,-1).join(", ")+", "+J+" "+_[_.length-1]}}function YW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],X=G.transferSize,z=G.initiatorType,L=G.duration;if(X&&L&&YW(z)){z=0,L=G.responseEnd;for(q+=1;q<$.length;q++){var w=$[q],S=w.startTime;if(S>L)break;var{transferSize:e,initiatorType:_1}=w;e&&YW(_1)&&(w=w.responseEnd,z+=e*(w<L?1:(L-S)/(w-S)))}if(--q,J+=8*(X+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function _Q(_){return _.nodeType===9?_:_.ownerDocument}function zW(_){switch(_){case w7:return e7;case AQ:return Fq;default:return I3}}function WW(_,J){if(_===I3)switch(J){case"svg":return e7;case"math":return Fq;default:return I3}return _===e7&&J==="foreignObject"?I3:_}function QZ(_,J){return _==="textarea"||_==="noscript"||typeof J.children==="string"||typeof J.children==="number"||typeof J.children==="bigint"||typeof J.dangerouslySetInnerHTML==="object"&&J.dangerouslySetInnerHTML!==null&&J.dangerouslySetInnerHTML.__html!=null}function DI(){var _=window.event;if(_&&_.type==="popstate"){if(_===xF)return!1;return xF=_,!0}return xF=null,!1}function Z_(){var _=window.event;return _&&_!==QJ?_.type:null}function F_(){var _=window.event;return _&&_!==QJ?_.timeStamp:-1.1}function uI(_){setTimeout(function(){throw _})}function bI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function EI(){}function hI(_,J,$,q){VI(_,J,$,q),_[l2]=q}function BW(_){g6(_,"")}function xI(_,J,$){_.nodeValue=$}function LW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[l2]||null;if(J!==null){var $=N1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,A1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):J.dangerouslySetInnerHTML!=null&&(_.__reactWarnedAboutChildrenConflict=!0,A1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function e3(_){return _==="head"}function mI(_,J){_.removeChild(J)}function gI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function AW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===$J||$===Zq){if(q===0){_.removeChild(G),A7(J);return}q--}else if($===JJ||$===w6||$===O8||$===n7||$===R8)q++;else if($===dP)X_(_.ownerDocument.documentElement);else if($===aP){$=_.ownerDocument.head,X_($);for(var X=$.firstChild;X;){var{nextSibling:z,nodeName:L}=X;X[L_]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=z}}else $===rP&&X_(_.ownerDocument.body);$=G}while($);A7(J)}function MW(_,J){var $=_;_=0;do{var q=$.nextSibling;if($.nodeType===1?J?($._stashedDisplay=$.style.display,$.style.display="none"):($.style.display=$._stashedDisplay||"",$.getAttribute("style")===""&&$.removeAttribute("style")):$.nodeType===3&&(J?($._stashedText=$.nodeValue,$.nodeValue=""):$.nodeValue=$._stashedText||""),q&&q.nodeType===8)if($=q.data,$===$J)if(_===0)break;else _--;else $!==JJ&&$!==w6&&$!==O8&&$!==n7||_++;$=q}while($)}function pI(_){MW(_,!0)}function cI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function lI(_){_.nodeValue=""}function iI(_){MW(_,!1)}function dI(_,J){J=J[sP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function rI(_,J){_.nodeValue=J}function qZ(_){var J=_.firstChild;J&&J.nodeType===10&&(J=J.nextSibling);for(;J;){var $=J;switch(J=J.nextSibling,$.nodeName){case"HTML":case"HEAD":case"BODY":qZ($),I1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function aI(_,J,$,q){for(;_.nodeType===1;){var G=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){M1(G.name,"name");var X=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[L_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(X=_.getAttribute("rel"),X==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(X!==G.rel||_.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||_.getAttribute("title")!==(G.title==null?null:G.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(X=_.getAttribute("src"),(X!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&X&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=B5(_.nextSibling),_===null)break}return null}function sI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=B5(_.nextSibling),_===null)return null}return _}function TW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=B5(_.nextSibling),_===null)return null}return _}function UZ(_){return _.data===w6||_.data===O8}function GZ(_){return _.data===n7||_.data===w6&&_.ownerDocument.readyState!==FA}function tI(_,J){var $=_.ownerDocument;if(_.data===O8)_._reactRetry=J;else if(_.data!==w6||$.readyState!==FA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function B5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===JJ||J===n7||J===w6||J===O8||J===R8||J===bF||J===ZA)break;if(J===$J||J===Zq)return null}}return _}function RW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var X=q[G];$[ZW(X.name)]=X.name.toLowerCase()==="style"?_Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===R8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function OW(_,J,$){return $===null||$[iP]!==!0?(_.nodeValue===J?_=null:(J=n3(J),_=n3(_.nodeValue)===J?null:_.nodeValue),_):null}function ZZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===$J||$===Zq){if(J===0)return B5(_.nextSibling);J--}else $!==JJ&&$!==n7&&$!==w6&&$!==O8&&$!==R8||J++}_=_.nextSibling}return null}function IW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===JJ||$===n7||$===w6||$===O8||$===R8){if(J===0)return _;J--}else $!==$J&&$!==Zq||J++}_=_.previousSibling}return null}function oI(_){A7(_)}function nI(_){A7(_)}function eI(_){A7(_)}function wW(_,J,$,q,G){switch(G&&k9(_,q.ancestorInfo),J=_Q($),_){case"html":if(_=J.documentElement,!_)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"head":if(_=J.head,!_)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"body":if(_=J.body,!_)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return _;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function _w(_,J,$,q){if(!$[Q6]&&N1($)){var G=$.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",G,G,G)}switch(_){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(G=$.attributes;G.length;)$.removeAttributeNode(G[0]);j2($,_,J),$[v2]=q,$[l2]=J}function X_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);I1(_)}function JQ(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function PW(_,J,$){var q=_9;if(q&&typeof J==="string"&&J){var G=_5(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),WA.has(G)||(WA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),j2(J,"link",_),v1(J),q.head.appendChild(J)))}}function NW(_,J,$,q){var G=(G=J6.current)?JQ(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(_){case"meta":case"title":return null;case"style":return typeof $.precedence==="string"&&typeof $.href==="string"?($=B7($.href),J=y1(G).hoistableStyles,q=J.get($),q||(q={type:"style",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if($.rel==="stylesheet"&&typeof $.href==="string"&&typeof $.precedence==="string"){_=B7($.href);var X=y1(G).hoistableStyles,z=X.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:w8,preload:null}},X.set(_,z),(X=G.querySelector(K_(_)))&&!X._p&&(z.instance=X,z.state.loading=qJ|g5),!p5.has(_))){var L={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};p5.set(_,L),X||Jw(G,_,L,z.state)}if(J&&q===null)throw $=`
177
177
 
178
- - `+_Q(J)+`
179
- + `+_Q($),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return z}if(J&&q!==null)throw $=`
178
+ - `+$Q(J)+`
179
+ + `+$Q($),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return z}if(J&&q!==null)throw $=`
180
180
 
181
- - `+_Q(J)+`
182
- + `+_Q($),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return null;case"script":return J=$.async,$=$.src,typeof $==="string"&&J&&typeof J!=="function"&&typeof J!=="symbol"?($=H7($),J=K0(G).hoistableScripts,q=J.get($),q||(q={type:"script",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+_+'". this is a bug in React.')}}function _Q(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):l5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):l5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):l5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function X7(_){return'href="'+t2(_)+'"'}function U_(_){return'link[rel="stylesheet"]['+_+"]"}function NW(_){return J0({},_,{"data-precedence":_.precedence,precedence:null})}function tI(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=e_:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=e_}),J.addEventListener("error",function(){return q.loading|=HA}),R2(J,"link",$),E1(J),_.head.appendChild(J))}function H7(_){return'[src="'+t2(_)+'"]'}function G_(_){return"script[async]"+_}function CW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+t2($.href)+'"]');if(q)return J.instance=q,E1(q),q;var G=J0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),E1(q),R2(q,"style",G),JQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=X7($.href);var K=_.querySelector(U_(G));if(K)return J.state.loading|=k5,J.instance=K,E1(K),K;q=NW($),(G=D5.get(G))&&GZ(q,G),K=(_.ownerDocument||_).createElement("link"),E1(K);var z=K;return z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),R2(K,"link",q),J.state.loading|=k5,JQ(K,$.precedence,_),J.instance=K;case"script":if(K=H7($.src),G=_.querySelector(G_(K)))return J.instance=G,E1(G),G;if(q=$,G=D5.get(K))q=J0({},$),ZZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),E1(G),R2(G,"link",q),_.head.appendChild(G),J.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+J.type+'". this is a bug in React.')}else J.type==="stylesheet"&&(J.state.loading&k5)===A8&&(q=J.instance,J.state.loading|=k5,JQ(q,$.precedence,_));return J.instance}function JQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,K=G,z=0;z<q.length;z++){var L=q[z];if(L.dataset.precedence===J)K=L;else if(K!==G)break}K?K.parentNode.insertBefore(_,K.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function GZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function ZZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function fW(_,J,$){if(Zq===null){var q=new Map,G=Zq=new Map;G.set($,q)}else G=Zq,q=G.get($),q||(q=new Map,G.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(G=0;G<$.length;G++){var K=$[G];if(!(K[H_]||K[O2]||_==="link"&&K.getAttribute("rel")==="stylesheet")&&K.namespaceURI!==M7){var z=K.getAttribute(J)||"";z=_+z;var L=q.get(z);L?L.push(K):q.set(z,[K])}}return q}function SW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function oI(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===a7||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:K}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),K!=null&&$.push("`disabled`"),G=fI($,"and"),G+=$.length===1?" prop":" props",K=$.length===1?"an "+G:"the "+G,$.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',_,K,G)}q&&(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(J.onError||J.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(J.rel){case"stylesheet":return _=J.precedence,J=J.disabled,typeof _!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof _==="string"&&J==null;default:return!0}case"script":if(_=J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol",!_||J.onLoad||J.onError||!J.src||typeof J.src!=="string"){q&&(_?J.onLoad||J.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",_)}return!1}function jW(_){return _.type==="stylesheet"&&(_.state.loading&YA)===A8?!1:!0}function nI(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&k5)===A8){if($.instance===null){var G=X7(q.href),K=J.querySelector(U_(G));if(K){J=K._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=$Q.bind(_),J.then(_,_)),$.state.loading|=k5,$.instance=K,E1(K);return}K=J.ownerDocument||J,q=NW(q),(G=D5.get(G))&&GZ(q,G),K=K.createElement("link"),E1(K);var z=K;z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),R2(K,"link",q),$.instance=K}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&YA)===A8&&(_.count++,$=$Q.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function eI(_,J){return _.stylesheets&&_.count===0&&QQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&QQ(_,_.stylesheets),_.unsuspend){var K=_.unsuspend;_.unsuspend=null,K()}},rP+J);0<_.imgBytes&&xF===0&&(xF=125*SI()*sP);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&QQ(_,_.stylesheets),_.unsuspend)){var K=_.unsuspend;_.unsuspend=null,K()}},(_.imgBytes>xF?50:aP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function $Q(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)QQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function QQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Fq=new Map,J.forEach(_w,_),Fq=null,$Q.call(_))}function _w(_,J){if(!(J.state.loading&k5)){var $=Fq.get(_);if($)var q=$.get(mF);else{$=new Map,Fq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),K=0;K<G.length;K++){var z=G[K];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(mF,q)}G=J.instance,z=G.getAttribute("data-precedence"),K=$.get(z)||q,K===q&&$.set(mF,G),$.set(z,G),this.count++,q=$Q.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),K?K.parentNode.insertBefore(G,K.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=k5}}function Jw(_,J,$,q,G,K,z,L,I){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=L8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=N2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N2(0),this.hiddenUpdates=N2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=K,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function vW(_,J,$,q,G,K,z,L,I,f,n,_1){return _=new Jw(_,J,$,z,I,f,n,_1,L),J=RP,K===!0&&(J|=j2|i5),J|=t1,K=O(3,null,null,J),_.current=K,K.stateNode=_,J=uU(),c6(J),_.pooledCache=J,c6(J),K.memoizedState={element:q,isDehydrated:$,cache:J},mU(K),_}function VW(_){if(!_)return o3;return _=o3,_}function FZ(_,J,$,q,G,K){if(S2&&typeof S2.onScheduleFiberRoot==="function")try{S2.onScheduleFiberRoot(L7,q,$)}catch(z){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",z))}G=VW(G),q.context===null?q.context=G:q.pendingContext=G,P4&&z5!==null&&!AA&&(AA=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
181
+ - `+$Q(J)+`
182
+ + `+$Q($),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return null;case"script":return J=$.async,$=$.src,typeof $==="string"&&J&&typeof J!=="function"&&typeof J!=="symbol"?($=L7($),J=y1(G).hoistableScripts,q=J.get($),q||(q={type:"script",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+_+'". this is a bug in React.')}}function $Q(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):n5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):n5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):n5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function B7(_){return'href="'+_5(_)+'"'}function K_(_){return'link[rel="stylesheet"]['+_+"]"}function CW(_){return U0({},_,{"data-precedence":_.precedence,precedence:null})}function Jw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=qJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=qJ}),J.addEventListener("error",function(){return q.loading|=YA}),j2(J,"link",$),v1(J),_.head.appendChild(J))}function L7(_){return'[src="'+_5(_)+'"]'}function H_(_){return"script[async]"+_}function fW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+_5($.href)+'"]');if(q)return J.instance=q,v1(q),q;var G=U0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),v1(q),j2(q,"style",G),QQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=B7($.href);var X=_.querySelector(K_(G));if(X)return J.state.loading|=g5,J.instance=X,v1(X),X;q=CW($),(G=p5.get(G))&&FZ(q,G),X=(_.ownerDocument||_).createElement("link"),v1(X);var z=X;return z._p=new Promise(function(L,w){z.onload=L,z.onerror=w}),j2(X,"link",q),J.state.loading|=g5,QQ(X,$.precedence,_),J.instance=X;case"script":if(X=L7($.src),G=_.querySelector(H_(X)))return J.instance=G,v1(G),G;if(q=$,G=p5.get(X))q=U0({},$),XZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),v1(G),j2(G,"link",q),_.head.appendChild(G),J.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+J.type+'". this is a bug in React.')}else J.type==="stylesheet"&&(J.state.loading&g5)===w8&&(q=J.instance,J.state.loading|=g5,QQ(q,$.precedence,_));return J.instance}function QQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,X=G,z=0;z<q.length;z++){var L=q[z];if(L.dataset.precedence===J)X=L;else if(X!==G)break}X?X.parentNode.insertBefore(_,X.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function FZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function XZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function SW(_,J,$){if(Xq===null){var q=new Map,G=Xq=new Map;G.set($,q)}else G=Xq,q=G.get($),q||(q=new Map,G.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(G=0;G<$.length;G++){var X=$[G];if(!(X[L_]||X[v2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==w7){var z=X.getAttribute(J)||"";z=_+z;var L=q.get(z);L?L.push(X):q.set(z,[X])}}return q}function jW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function $w(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===e7||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:X}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),X!=null&&$.push("`disabled`"),G=yI($,"and"),G+=$.length===1?" prop":" props",X=$.length===1?"an "+G:"the "+G,$.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',_,X,G)}q&&(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(J.onError||J.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(J.rel){case"stylesheet":return _=J.precedence,J=J.disabled,typeof _!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof _==="string"&&J==null;default:return!0}case"script":if(_=J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol",!_||J.onLoad||J.onError||!J.src||typeof J.src!=="string"){q&&(_?J.onLoad||J.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",_)}return!1}function vW(_){return _.type==="stylesheet"&&(_.state.loading&zA)===w8?!1:!0}function Qw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&g5)===w8){if($.instance===null){var G=B7(q.href),X=J.querySelector(K_(G));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=qQ.bind(_),J.then(_,_)),$.state.loading|=g5,$.instance=X,v1(X);return}X=J.ownerDocument||J,q=CW(q),(G=p5.get(G))&&FZ(q,G),X=X.createElement("link"),v1(X);var z=X;z._p=new Promise(function(L,w){z.onload=L,z.onerror=w}),j2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&zA)===w8&&(_.count++,$=qQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function qw(_,J){return _.stylesheets&&_.count===0&&UQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend){var X=_.unsuspend;_.unsuspend=null,X()}},nP+J);0<_.imgBytes&&gF===0&&(gF=125*kI()*_N);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>gF?50:eP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function qQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)UQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function UQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Kq=new Map,J.forEach(Uw,_),Kq=null,qQ.call(_))}function Uw(_,J){if(!(J.state.loading&g5)){var $=Kq.get(_);if($)var q=$.get(pF);else{$=new Map,Kq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X<G.length;X++){var z=G[X];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(pF,q)}G=J.instance,z=G.getAttribute("data-precedence"),X=$.get(z)||q,X===q&&$.set(pF,G),$.set(z,G),this.count++,q=qQ.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),X?X.parentNode.insertBefore(G,X.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=g5}}function Gw(_,J,$,q,G,X,z,L,w){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=I8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=H2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H2(0),this.hiddenUpdates=H2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=X,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function VW(_,J,$,q,G,X,z,L,w,S,e,_1){return _=new Gw(_,J,$,z,w,S,e,_1,L),J=NP,X===!0&&(J|=u2|_4),J|=e1,X=O(3,null,null,J),_.current=X,X.stateNode=_,J=EU(),s6(J),_.pooledCache=J,s6(J),X.memoizedState={element:q,isDehydrated:$,cache:J},pU(X),_}function yW(_){if(!_)return Z6;return _=Z6,_}function KZ(_,J,$,q,G,X){if(D2&&typeof D2.onScheduleFiberRoot==="function")try{D2.onScheduleFiberRoot(O7,q,$)}catch(z){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",z))}G=yW(G),q.context===null?q.context=G:q.pendingContext=G,y4&&A5!==null&&!MA&&(MA=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
183
 
184
- Check the render method of %s.`,m(z5)||"Unknown")),q=b3(J),q.payload={element:$},K=K===void 0?null:K,K!==null&&(typeof K!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",K),q.callback=K),$=E3(_,q,J),$!==null&&(K4(J,"root.render()",null),h0($,_,J),m9($,_,J))}function yW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function KZ(_,J){yW(_,J),(_=_.alternate)&&yW(_,J)}function kW(_){if(_.tag===13||_.tag===31){var J=f2(_,67108864);J!==null&&h0(J,_,67108864),KZ(_,67108864)}}function DW(_){if(_.tag===13||_.tag===31){var J=X5(_);J=c4(J);var $=f2(_,J);$!==null&&h0($,_,J),KZ(_,J)}}function $w(){return z5}function Qw(_,J,$,q){var G=H1.T;H1.T=null;var K=L0.p;try{L0.p=W5,XZ(_,J,$,q)}finally{L0.p=K,H1.T=G}}function qw(_,J,$,q){var G=H1.T;H1.T=null;var K=L0.p;try{L0.p=d5,XZ(_,J,$,q)}finally{L0.p=K,H1.T=G}}function XZ(_,J,$,q){if(Xq){var G=HZ(q);if(G===null)sG(_,J,q,Hq,$),bW(_,q);else if(Uw(G,_,J,$,q))q.stopPropagation();else if(bW(_,q),J&4&&-1<oP.indexOf(_)){for(;G!==null;){var K=l1(G);if(K!==null)switch(K.tag){case 3:if(K=K.stateNode,K.current.memoizedState.isDehydrated){var z=q2(K.pendingLanes);if(z!==0){var L=K;L.pendingLanes|=2;for(L.entangledLanes|=2;z;){var I=1<<31-x2(z);L.entanglements[1]|=I,z&=~I}R4(K),(H0&(Z2|M5))===L2&&(rQ=z2()+dL,__(0,!1))}}break;case 31:case 13:L=f2(K,2),L!==null&&h0(L,K,2),Z7(),KZ(K,2)}if(K=HZ(q),K===null&&sG(_,J,q,Hq,$),K===G)break;G=K}G!==null&&q.stopPropagation()}else sG(_,J,q,null,$)}}function HZ(_){return _=AU(_),YZ(_)}function YZ(_){if(Hq=null,_=y1(_),_!==null){var J=C(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=D(J),_!==null)return _;_=null}else if($===31){if(_=N(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return Hq=_,null}function uW(_){switch(_){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return W5;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return d5;case"message":switch(Ww()){case NZ:return W5;case CZ:return d5;case B7:case Bw:return f4;case fZ:return zQ;default:return f4}default:return f4}}function bW(_,J){switch(_){case"focusin":case"focusout":W6=null;break;case"dragenter":case"dragleave":B6=null;break;case"mouseover":case"mouseout":L6=null;break;case"pointerover":case"pointerout":JJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":$J.delete(J.pointerId)}}function Z_(_,J,$,q,G,K){if(_===null||_.nativeEvent!==K)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:K,targetContainers:[G]},J!==null&&(J=l1(J),J!==null&&kW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Uw(_,J,$,q,G){switch(J){case"focusin":return W6=Z_(W6,_,J,$,q,G),!0;case"dragenter":return B6=Z_(B6,_,J,$,q,G),!0;case"mouseover":return L6=Z_(L6,_,J,$,q,G),!0;case"pointerover":var K=G.pointerId;return JJ.set(K,Z_(JJ.get(K)||null,_,J,$,q,G)),!0;case"gotpointercapture":return K=G.pointerId,$J.set(K,Z_($J.get(K)||null,_,J,$,q,G)),!0}return!1}function EW(_){var J=y1(_.target);if(J!==null){var $=C(J);if($!==null){if(J=$.tag,J===13){if(J=D($),J!==null){_.blockedOn=J,P1(_.priority,function(){DW($)});return}}else if(J===31){if(J=N($),J!==null){_.blockedOn=J,P1(_.priority,function(){DW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function qQ(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=HZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;Y_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Y_=G,$.target.dispatchEvent(q),Y_===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Y_=null}else return J=l1($),J!==null&&kW(J),_.blockedOn=$,!1;J.shift()}return!0}function hW(_,J,$){qQ(_)&&$.delete(J)}function Gw(){gF=!1,W6!==null&&qQ(W6)&&(W6=null),B6!==null&&qQ(B6)&&(B6=null),L6!==null&&qQ(L6)&&(L6=null),JJ.forEach(hW),$J.forEach(hW)}function UQ(_,J){_.blockedOn===J&&(_.blockedOn=null,gF||(gF=!0,Y0.unstable_scheduleCallback(Y0.unstable_NormalPriority,Gw)))}function xW(_){Yq!==_&&(Yq=_,Y0.unstable_scheduleCallback(Y0.unstable_NormalPriority,function(){Yq===_&&(Yq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(YZ(q||$)===null)continue;else break;var K=l1($);K!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),YG(K,$,q,G))}}))}function Y7(_){function J(I){return UQ(I,_)}W6!==null&&UQ(W6,_),B6!==null&&UQ(B6,_),L6!==null&&UQ(L6,_),JJ.forEach(J),$J.forEach(J);for(var $=0;$<A6.length;$++){var q=A6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<A6.length&&($=A6[0],$.blockedOn===null);)EW($),$.blockedOn===null&&A6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],K=$[q+1],z=G[m2]||null;if(typeof K==="function")z||xW($);else if(z){var L=null;if(K&&K.hasAttribute("formAction")){if(G=K,z=K[m2]||null)L=z.formAction;else if(YZ(G)!==null)continue}else L=z.action;typeof L==="function"?$[q+1]=L:($.splice(q,3),q-=3),xW($)}}}function mW(){function _(K){K.canIntercept&&K.info==="react-transition"&&K.intercept({handler:function(){return new Promise(function(z){return G=z})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var K=navigation.currentEntry;K&&K.url!=null&&navigation.navigate(K.url,{state:K.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,G=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",J),navigation.addEventListener("navigateerror",J),setTimeout($,100),function(){q=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",J),navigation.removeEventListener("navigateerror",J),G!==null&&(G(),G=null)}}}function zZ(_){this._internalRoot=_}function GQ(_){this._internalRoot=_}function gW(_){_[r3]&&(_._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var J0=Object.assign,Zw=Symbol.for("react.element"),I4=Symbol.for("react.transitional.element"),z7=Symbol.for("react.portal"),W7=Symbol.for("react.fragment"),ZQ=Symbol.for("react.strict_mode"),WZ=Symbol.for("react.profiler"),BZ=Symbol.for("react.consumer"),w4=Symbol.for("react.context"),F_=Symbol.for("react.forward_ref"),LZ=Symbol.for("react.suspense"),AZ=Symbol.for("react.suspense_list"),FQ=Symbol.for("react.memo"),Y5=Symbol.for("react.lazy"),MZ=Symbol.for("react.activity"),Fw=Symbol.for("react.memo_cache_sentinel"),pW=Symbol.iterator,Kw=Symbol.for("react.client.reference"),U2=Array.isArray,H1=t7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=lF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xw=Object.freeze({pending:!1,data:null,method:null,action:null}),TZ=[],RZ=[],e4=-1,l3=e(null),K_=e(null),d3=e(null),KQ=e(null),X_=0,cW,lW,dW,iW,rW,aW,sW;y.__reactDisabledLog=!0;var OZ,tW,IZ=!1,wZ=new(typeof WeakMap==="function"?WeakMap:Map),z5=null,P4=!1,l5=Object.prototype.hasOwnProperty,PZ=Y0.unstable_scheduleCallback,Hw=Y0.unstable_cancelCallback,Yw=Y0.unstable_shouldYield,zw=Y0.unstable_requestPaint,z2=Y0.unstable_now,Ww=Y0.unstable_getCurrentPriorityLevel,NZ=Y0.unstable_ImmediatePriority,CZ=Y0.unstable_UserBlockingPriority,B7=Y0.unstable_NormalPriority,Bw=Y0.unstable_LowPriority,fZ=Y0.unstable_IdlePriority,Lw=Y0.log,Aw=Y0.unstable_setDisableYieldValue,L7=null,S2=null,N4=!1,C4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",x2=Math.clz32?Math.clz32:a0,Mw=Math.log,Tw=Math.LN2,XQ=256,HQ=262144,YQ=4194304,W5=2,d5=8,f4=32,zQ=268435456,i3=Math.random().toString(36).slice(2),O2="__reactFiber$"+i3,m2="__reactProps$"+i3,r3="__reactContainer$"+i3,SZ="__reactEvents$"+i3,Rw="__reactListeners$"+i3,Ow="__reactHandles$"+i3,oW="__reactResources$"+i3,H_="__reactMarker$"+i3,nW=new Set,t6={},jZ={},Iw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ww=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]*$"),eW={},_B={},Pw=/[\n"\\]/g,JB=!1,$B=!1,QB=!1,qB=!1,UB=!1,GB=!1,ZB=["value","defaultValue"],FB=!1,KB=/["'&<>\n\t]|^\s|\s$/,Nw="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),XB="applet caption html table td th marquee object template foreignObject desc title".split(" "),Cw=XB.concat(["button"]),fw="dd dt li option optgroup p rp rt".split(" "),HB={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},WQ={},vZ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},YB=/([A-Z])/g,zB=/^ms-/,Sw=/^(?:webkit|moz|o)[A-Z]/,jw=/^-ms-/,vw=/-(.)/g,WB=/;\s*$/,A7={},VZ={},BB=!1,LB=!1,AB=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(" ")),BQ="http://www.w3.org/1998/Math/MathML",M7="http://www.w3.org/2000/svg",Vw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),LQ={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},MB={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},T7={},yw=RegExp("^(aria)-[: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]*$"),kw=RegExp("^(aria)[A-Z][: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]*$"),TB=!1,g2={},RB=/^on./,Dw=/^on[^A-Z]/,uw=RegExp("^(aria)-[: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]*$"),bw=RegExp("^(aria)[A-Z][: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]*$"),Ew=/^[\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,Y_=null,R7=null,O7=null,yZ=!1,S4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kZ=!1;if(S4)try{var z_={};Object.defineProperty(z_,"passive",{get:function(){kZ=!0}}),window.addEventListener("test",z_,z_),window.removeEventListener("test",z_,z_)}catch(_){kZ=!1}var a3=null,DZ=null,AQ=null,o6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},MQ=o2(o6),W_=J0({},o6,{view:0,detail:0}),hw=o2(W_),uZ,bZ,B_,TQ=J0({},W_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:MU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==B_&&(B_&&_.type==="mousemove"?(uZ=_.screenX-B_.screenX,bZ=_.screenY-B_.screenY):bZ=uZ=0,B_=_),uZ},movementY:function(_){return"movementY"in _?_.movementY:bZ}}),OB=o2(TQ),xw=J0({},TQ,{dataTransfer:0}),mw=o2(xw),gw=J0({},W_,{relatedTarget:0}),EZ=o2(gw),pw=J0({},o6,{animationName:0,elapsedTime:0,pseudoElement:0}),cw=o2(pw),lw=J0({},o6,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),dw=o2(lw),iw=J0({},o6,{data:0}),IB=o2(iw),rw=IB,aw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sw={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"},tw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},ow=J0({},W_,{key:function(_){if(_.key){var J=aw[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=q$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?sw[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:MU,charCode:function(_){return _.type==="keypress"?q$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?q$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),nw=o2(ow),ew=J0({},TQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wB=o2(ew),_P=J0({},W_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:MU}),JP=o2(_P),$P=J0({},o6,{propertyName:0,elapsedTime:0,pseudoElement:0}),QP=o2($P),qP=J0({},TQ,{deltaX:function(_){return"deltaX"in _?_.deltaX:("wheelDeltaX"in _)?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:("wheelDeltaY"in _)?-_.wheelDeltaY:("wheelDelta"in _)?-_.wheelDelta:0},deltaZ:0,deltaMode:0}),UP=o2(qP),GP=J0({},o6,{newState:0,oldState:0}),ZP=o2(GP),FP=[9,13,27,32],PB=229,hZ=S4&&"CompositionEvent"in window,L_=null;S4&&"documentMode"in document&&(L_=document.documentMode);var KP=S4&&"TextEvent"in window&&!L_,NB=S4&&(!hZ||L_&&8<L_&&11>=L_),CB=32,fB=String.fromCharCode(CB),SB=!1,I7=!1,XP={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},A_=null,M_=null,jB=!1;S4&&(jB=VO("input")&&(!document.documentMode||9<document.documentMode));var p2=typeof Object.is==="function"?Object.is:EO,HP=S4&&"documentMode"in document&&11>=document.documentMode,w7=null,xZ=null,T_=null,mZ=!1,P7={animationend:b6("Animation","AnimationEnd"),animationiteration:b6("Animation","AnimationIteration"),animationstart:b6("Animation","AnimationStart"),transitionrun:b6("Transition","TransitionRun"),transitionstart:b6("Transition","TransitionStart"),transitioncancel:b6("Transition","TransitionCancel"),transitionend:b6("Transition","TransitionEnd")},gZ={},vB={};S4&&(vB=document.createElement("div").style,("AnimationEvent"in window)||(delete P7.animationend.animation,delete P7.animationiteration.animation,delete P7.animationstart.animation),("TransitionEvent"in window)||delete P7.transitionend.transition);var VB=E6("animationend"),yB=E6("animationiteration"),kB=E6("animationstart"),YP=E6("transitionrun"),zP=E6("transitionstart"),WP=E6("transitioncancel"),DB=E6("transitionend"),uB=new Map,pZ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");pZ.push("scrollEnd");var bB=0;if(typeof performance==="object"&&typeof performance.now==="function")var BP=performance,EB=function(){return BP.now()};else{var LP=Date;EB=function(){return LP.now()}}var cZ=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},AP="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",RQ=0,lZ=1,dZ=2,iZ=3,OQ="– ",IQ="+ ",hB="  ",S0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",w5="Components ⚛",$0="Scheduler ⚛",q0="Blocking",s3=!1,_3={color:"primary",properties:null,tooltipText:"",track:w5},t3={start:-0,end:-0,detail:{devtools:_3}},MP=["Changed Props",""],xB="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",TP=["Changed Props",xB],R_=1,J3=2,P5=[],N7=0,rZ=0,o3={};Object.freeze(o3);var N5=null,C7=null,p1=0,RP=1,t1=2,j2=8,i5=16,OP=32,mB=!1;try{var gB=Object.preventExtensions({})}catch(_){mB=!0}var aZ=new WeakMap,f7=[],S7=0,wQ=null,O_=0,C5=[],f5=0,n6=null,$3=1,Q3="",I2=null,j0=null,G0=!1,j4=!1,B5=null,n3=null,S5=!1,sZ=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),tZ=e(null),oZ=e(null),pB={},PQ=null,j7=null,v7=!1,IP=typeof AbortController<"u"?AbortController:function(){var _=[],J=this.signal={aborted:!1,addEventListener:function($,q){_.push(q)}};this.abort=function(){J.aborted=!0,_.forEach(function($){return $()})}},wP=Y0.unstable_scheduleCallback,PP=Y0.unstable_NormalPriority,s0={$$typeof:w4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},t0=Y0.unstable_now,NQ=console.createTask?console.createTask:function(){return null},I_=1,CQ=2,W2=-0,e3=-0,q3=-0,U3=null,c2=-1.1,e6=-0,u0=-0,x1=-1.1,g1=-1.1,y0=null,x0=!1,_6=-0,v4=-1.1,w_=null,J6=0,nZ=null,eZ=null,_8=-1.1,P_=null,V7=-1.1,fQ=-1.1,V4=-0,G3=-1.1,j5=-1.1,_F=0,N_=null,cB=null,lB=null,$6=-1.1,J8=null,Q6=-1.1,SQ=-1.1,dB=-0,iB=-0,jQ=0,Z3=null,rB=0,C_=-1.1,vQ=!1,VQ=!1,f_=null,JF=0,$8=0,y7=null,aB=H1.S;H1.S=function(_,J){if(cL=z2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>G3&&0>j5){G3=t0();var $=Q_(),q=$_();if($!==Q6||q!==J8)Q6=-1.1;$6=$,J8=q}lO(_,J)}aB!==null&&aB(_,J)};var Q8=e(null),r5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},S_=[],j_=[],v_=[],V_=[],y_=[],k_=[],q8=new Set;r5.recordUnsafeLifecycleWarnings=function(_,J){q8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&S_.push(_),_.mode&j2&&typeof J.UNSAFE_componentWillMount==="function"&&j_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&v_.push(_),_.mode&j2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&V_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&y_.push(_),_.mode&j2&&typeof J.UNSAFE_componentWillUpdate==="function"&&k_.push(_))},r5.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<S_.length&&(S_.forEach(function(L){_.add(m(L)||"Component"),q8.add(L.type)}),S_=[]);var J=new Set;0<j_.length&&(j_.forEach(function(L){J.add(m(L)||"Component"),q8.add(L.type)}),j_=[]);var $=new Set;0<v_.length&&(v_.forEach(function(L){$.add(m(L)||"Component"),q8.add(L.type)}),v_=[]);var q=new Set;0<V_.length&&(V_.forEach(function(L){q.add(m(L)||"Component"),q8.add(L.type)}),V_=[]);var G=new Set;0<y_.length&&(y_.forEach(function(L){G.add(m(L)||"Component"),q8.add(L.type)}),y_=[]);var K=new Set;if(0<k_.length&&(k_.forEach(function(L){K.add(m(L)||"Component"),q8.add(L.type)}),k_=[]),0<J.size){var z=A(J);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
184
+ Check the render method of %s.`,x(A5)||"Unknown")),q=d3(J),q.payload={element:$},X=X===void 0?null:X,X!==null&&(typeof X!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",X),q.callback=X),$=r3(_,q,J),$!==null&&(A4(J,"root.render()",null),c0($,_,J),i9($,_,J))}function kW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function HZ(_,J){kW(_,J),(_=_.alternate)&&kW(_,J)}function DW(_){if(_.tag===13||_.tag===31){var J=k2(_,67108864);J!==null&&c0(J,_,67108864),HZ(_,67108864)}}function uW(_){if(_.tag===13||_.tag===31){var J=W5(_);J=r5(J);var $=k2(_,J);$!==null&&c0($,_,J),HZ(_,J)}}function Zw(){return A5}function Fw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=M5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function Xw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=e5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function YZ(_,J,$,q){if(Yq){var G=zZ(q);if(G===null)oG(_,J,q,zq,$),EW(_,q);else if(Kw(G,_,J,$,q))q.stopPropagation();else if(EW(_,q),J&4&&-1<$N.indexOf(_)){for(;G!==null;){var X=N1(G);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var z=K2(X.pendingLanes);if(z!==0){var L=X;L.pendingLanes|=2;for(L.entangledLanes|=2;z;){var w=1<<31-c2(z);L.entanglements[1]|=w,z&=~w}S4(X),(Y0&(W2|I5))===w2&&(sQ=R2()+dL,U_(0,!1))}}break;case 31:case 13:L=k2(X,2),L!==null&&c0(L,X,2),Y7(),HZ(X,2)}if(X=zZ(q),X===null&&oG(_,J,q,zq,$),X===G)break;G=X}G!==null&&q.stopPropagation()}else oG(_,J,q,null,$)}}function zZ(_){return _=TU(_),WZ(_)}function WZ(_){if(zq=null,_=R1(_),_!==null){var J=f(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=u(J),_!==null)return _;_=null}else if($===31){if(_=C(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return zq=_,null}function bW(_){switch(_){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return M5;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return e5;case"message":switch(Tw()){case fZ:return M5;case SZ:return e5;case R7:case Rw:return u4;case jZ:return BQ;default:return u4}default:return u4}}function EW(_,J){switch(_){case"focusin":case"focusout":P6=null;break;case"dragenter":case"dragleave":N6=null;break;case"mouseover":case"mouseout":C6=null;break;case"pointerover":case"pointerout":GJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":ZJ.delete(J.pointerId)}}function Y_(_,J,$,q,G,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[G]},J!==null&&(J=N1(J),J!==null&&DW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Kw(_,J,$,q,G){switch(J){case"focusin":return P6=Y_(P6,_,J,$,q,G),!0;case"dragenter":return N6=Y_(N6,_,J,$,q,G),!0;case"mouseover":return C6=Y_(C6,_,J,$,q,G),!0;case"pointerover":var X=G.pointerId;return GJ.set(X,Y_(GJ.get(X)||null,_,J,$,q,G)),!0;case"gotpointercapture":return X=G.pointerId,ZJ.set(X,Y_(ZJ.get(X)||null,_,J,$,q,G)),!0}return!1}function hW(_){var J=R1(_.target);if(J!==null){var $=f(J);if($!==null){if(J=$.tag,J===13){if(J=u($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===31){if(J=C($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function GQ(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=zZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;A_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),A_=G,$.target.dispatchEvent(q),A_===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),A_=null}else return J=N1($),J!==null&&DW(J),_.blockedOn=$,!1;J.shift()}return!0}function xW(_,J,$){GQ(_)&&$.delete(J)}function Hw(){cF=!1,P6!==null&&GQ(P6)&&(P6=null),N6!==null&&GQ(N6)&&(N6=null),C6!==null&&GQ(C6)&&(C6=null),GJ.forEach(xW),ZJ.forEach(xW)}function ZQ(_,J){_.blockedOn===J&&(_.blockedOn=null,cF||(cF=!0,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,Hw)))}function mW(_){Wq!==_&&(Wq=_,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,function(){Wq===_&&(Wq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(WZ(q||$)===null)continue;else break;var X=N1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),WG(X,$,q,G))}}))}function A7(_){function J(w){return ZQ(w,_)}P6!==null&&ZQ(P6,_),N6!==null&&ZQ(N6,_),C6!==null&&ZQ(C6,_),GJ.forEach(J),ZJ.forEach(J);for(var $=0;$<f6.length;$++){var q=f6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<f6.length&&($=f6[0],$.blockedOn===null);)hW($),$.blockedOn===null&&f6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],X=$[q+1],z=G[l2]||null;if(typeof X==="function")z||mW($);else if(z){var L=null;if(X&&X.hasAttribute("formAction")){if(G=X,z=X[l2]||null)L=z.formAction;else if(WZ(G)!==null)continue}else L=z.action;typeof L==="function"?$[q+1]=L:($.splice(q,3),q-=3),mW($)}}}function gW(){function _(X){X.canIntercept&&X.info==="react-transition"&&X.intercept({handler:function(){return new Promise(function(z){return G=z})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var X=navigation.currentEntry;X&&X.url!=null&&navigation.navigate(X.url,{state:X.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,G=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",J),navigation.addEventListener("navigateerror",J),setTimeout($,100),function(){q=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",J),navigation.removeEventListener("navigateerror",J),G!==null&&(G(),G=null)}}}function BZ(_){this._internalRoot=_}function FQ(_){this._internalRoot=_}function pW(_){_[Q6]&&(_._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U0=Object.assign,Yw=Symbol.for("react.element"),v4=Symbol.for("react.transitional.element"),M7=Symbol.for("react.portal"),T7=Symbol.for("react.fragment"),XQ=Symbol.for("react.strict_mode"),LZ=Symbol.for("react.profiler"),AZ=Symbol.for("react.consumer"),V4=Symbol.for("react.context"),z_=Symbol.for("react.forward_ref"),MZ=Symbol.for("react.suspense"),TZ=Symbol.for("react.suspense_list"),KQ=Symbol.for("react.memo"),L5=Symbol.for("react.lazy"),RZ=Symbol.for("react.activity"),zw=Symbol.for("react.memo_cache_sentinel"),cW=Symbol.iterator,Ww=Symbol.for("react.client.reference"),Y2=Array.isArray,Y1=J9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A0=dF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bw=Object.freeze({pending:!1,data:null,method:null,action:null}),OZ=[],IZ=[],F3=-1,_6=$1(null),W_=$1(null),J6=$1(null),HQ=$1(null),B_=0,lW,iW,dW,rW,aW,sW,tW;y.__reactDisabledLog=!0;var wZ,oW,PZ=!1,NZ=new(typeof WeakMap==="function"?WeakMap:Map),A5=null,y4=!1,n5=Object.prototype.hasOwnProperty,CZ=W0.unstable_scheduleCallback,Lw=W0.unstable_cancelCallback,Aw=W0.unstable_shouldYield,Mw=W0.unstable_requestPaint,R2=W0.unstable_now,Tw=W0.unstable_getCurrentPriorityLevel,fZ=W0.unstable_ImmediatePriority,SZ=W0.unstable_UserBlockingPriority,R7=W0.unstable_NormalPriority,Rw=W0.unstable_LowPriority,jZ=W0.unstable_IdlePriority,Ow=W0.log,Iw=W0.unstable_setDisableYieldValue,O7=null,D2=null,k4=!1,D4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",c2=Math.clz32?Math.clz32:X2,ww=Math.log,Pw=Math.LN2,YQ=256,zQ=262144,WQ=4194304,M5=2,e5=8,u4=32,BQ=268435456,$6=Math.random().toString(36).slice(2),v2="__reactFiber$"+$6,l2="__reactProps$"+$6,Q6="__reactContainer$"+$6,vZ="__reactEvents$"+$6,Nw="__reactListeners$"+$6,Cw="__reactHandles$"+$6,nW="__reactResources$"+$6,L_="__reactMarker$"+$6,eW=new Set,$8={},VZ={},fw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Sw=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]*$"),_B={},JB={},jw=/[\n"\\]/g,$B=!1,QB=!1,qB=!1,UB=!1,GB=!1,ZB=!1,FB=["value","defaultValue"],XB=!1,KB=/["'&<>\n\t]|^\s|\s$/,vw="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),HB="applet caption html table td th marquee object template foreignObject desc title".split(" "),Vw=HB.concat(["button"]),yw="dd dt li option optgroup p rp rt".split(" "),YB={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},LQ={},yZ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},zB=/([A-Z])/g,WB=/^ms-/,kw=/^(?:webkit|moz|o)[A-Z]/,Dw=/^-ms-/,uw=/-(.)/g,BB=/;\s*$/,I7={},kZ={},LB=!1,AB=!1,MB=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(" ")),AQ="http://www.w3.org/1998/Math/MathML",w7="http://www.w3.org/2000/svg",bw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),MQ={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},TB={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},P7={},Ew=RegExp("^(aria)-[: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]*$"),hw=RegExp("^(aria)[A-Z][: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]*$"),RB=!1,i2={},OB=/^on./,xw=/^on[^A-Z]/,mw=RegExp("^(aria)-[: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]*$"),gw=RegExp("^(aria)[A-Z][: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]*$"),pw=/^[\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,A_=null,N7=null,C7=null,DZ=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uZ=!1;if(b4)try{var M_={};Object.defineProperty(M_,"passive",{get:function(){uZ=!0}}),window.addEventListener("test",M_,M_),window.removeEventListener("test",M_,M_)}catch(_){uZ=!1}var q6=null,bZ=null,TQ=null,Q8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RQ=J5(Q8),T_=U0({},Q8,{view:0,detail:0}),cw=J5(T_),EZ,hZ,R_,OQ=U0({},T_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==R_&&(R_&&_.type==="mousemove"?(EZ=_.screenX-R_.screenX,hZ=_.screenY-R_.screenY):hZ=EZ=0,R_=_),EZ},movementY:function(_){return"movementY"in _?_.movementY:hZ}}),IB=J5(OQ),lw=U0({},OQ,{dataTransfer:0}),iw=J5(lw),dw=U0({},T_,{relatedTarget:0}),xZ=J5(dw),rw=U0({},Q8,{animationName:0,elapsedTime:0,pseudoElement:0}),aw=J5(rw),sw=U0({},Q8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),tw=J5(sw),ow=U0({},Q8,{data:0}),wB=J5(ow),nw=wB,ew={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_P={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"},JP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$P=U0({},T_,{key:function(_){if(_.key){var J=ew[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=G$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?_P[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RU,charCode:function(_){return _.type==="keypress"?G$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?G$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),QP=J5($P),qP=U0({},OQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PB=J5(qP),UP=U0({},T_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RU}),GP=J5(UP),ZP=U0({},Q8,{propertyName:0,elapsedTime:0,pseudoElement:0}),FP=J5(ZP),XP=U0({},OQ,{deltaX:function(_){return"deltaX"in _?_.deltaX:("wheelDeltaX"in _)?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:("wheelDeltaY"in _)?-_.wheelDeltaY:("wheelDelta"in _)?-_.wheelDelta:0},deltaZ:0,deltaMode:0}),KP=J5(XP),HP=U0({},Q8,{newState:0,oldState:0}),YP=J5(HP),zP=[9,13,27,32],NB=229,mZ=b4&&"CompositionEvent"in window,O_=null;b4&&"documentMode"in document&&(O_=document.documentMode);var WP=b4&&"TextEvent"in window&&!O_,CB=b4&&(!mZ||O_&&8<O_&&11>=O_),fB=32,SB=String.fromCharCode(fB),jB=!1,f7=!1,BP={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},I_=null,w_=null,vB=!1;b4&&(vB=bO("input")&&(!document.documentMode||9<document.documentMode));var d2=typeof Object.is==="function"?Object.is:pO,LP=b4&&"documentMode"in document&&11>=document.documentMode,S7=null,gZ=null,P_=null,pZ=!1,j7={animationend:p6("Animation","AnimationEnd"),animationiteration:p6("Animation","AnimationIteration"),animationstart:p6("Animation","AnimationStart"),transitionrun:p6("Transition","TransitionRun"),transitionstart:p6("Transition","TransitionStart"),transitioncancel:p6("Transition","TransitionCancel"),transitionend:p6("Transition","TransitionEnd")},cZ={},VB={};b4&&(VB=document.createElement("div").style,("AnimationEvent"in window)||(delete j7.animationend.animation,delete j7.animationiteration.animation,delete j7.animationstart.animation),("TransitionEvent"in window)||delete j7.transitionend.transition);var yB=c6("animationend"),kB=c6("animationiteration"),DB=c6("animationstart"),AP=c6("transitionrun"),MP=c6("transitionstart"),TP=c6("transitioncancel"),uB=c6("transitionend"),bB=new Map,lZ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lZ.push("scrollEnd");var EB=0;if(typeof performance==="object"&&typeof performance.now==="function")var RP=performance,hB=function(){return RP.now()};else{var OP=Date;hB=function(){return OP.now()}}var iZ=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},IP="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",IQ=0,dZ=1,rZ=2,aZ=3,wQ="– ",PQ="+ ",xB="  ",V0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",V5="Components ⚛",G0="Scheduler ⚛",Z0="Blocking",U6=!1,X3={color:"primary",properties:null,tooltipText:"",track:V5},G6={start:-0,end:-0,detail:{devtools:X3}},wP=["Changed Props",""],mB="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",PP=["Changed Props",mB],N_=1,K3=2,y5=[],v7=0,sZ=0,Z6={};Object.freeze(Z6);var k5=null,V7=null,i1=0,NP=1,e1=2,u2=8,_4=16,CP=32,gB=!1;try{var pB=Object.preventExtensions({})}catch(_){gB=!0}var tZ=new WeakMap,y7=[],k7=0,NQ=null,C_=0,D5=[],u5=0,q8=null,H3=1,Y3="",V2=null,y0=null,F0=!1,E4=!1,T5=null,F6=null,b5=!1,oZ=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),nZ=$1(null),eZ=$1(null),cB={},CQ=null,D7=null,u7=!1,fP=typeof AbortController<"u"?AbortController:function(){var _=[],J=this.signal={aborted:!1,addEventListener:function($,q){_.push(q)}};this.abort=function(){J.aborted=!0,_.forEach(function($){return $()})}},SP=W0.unstable_scheduleCallback,jP=W0.unstable_NormalPriority,J2={$$typeof:V4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},$2=W0.unstable_now,fQ=console.createTask?console.createTask:function(){return null},f_=1,SQ=2,O2=-0,X6=-0,z3=-0,W3=null,r2=-1.1,U8=-0,m0=-0,m1=-1.1,l1=-1.1,b0=null,l0=!1,K6=-0,h4=-1.1,S_=null,H6=0,_F=null,JF=null,G8=-1.1,j_=null,b7=-1.1,jQ=-1.1,x4=-0,B3=-1.1,E5=-1.1,$F=0,v_=null,lB=null,iB=null,Y6=-1.1,Z8=null,z6=-1.1,vQ=-1.1,dB=-0,rB=-0,VQ=0,L3=null,aB=0,V_=-1.1,yQ=!1,kQ=!1,y_=null,QF=0,F8=0,E7=null,sB=Y1.S;Y1.S=function(_,J){if(lL=R2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>B3&&0>E5){B3=$2();var $=F_(),q=Z_();if($!==z6||q!==Z8)z6=-1.1;Y6=$,Z8=q}sO(_,J)}sB!==null&&sB(_,J)};var X8=$1(null),J4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},k_=[],D_=[],u_=[],b_=[],E_=[],h_=[],K8=new Set;J4.recordUnsafeLifecycleWarnings=function(_,J){K8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&k_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillMount==="function"&&D_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&u_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&b_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&E_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillUpdate==="function"&&h_.push(_))},J4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<k_.length&&(k_.forEach(function(L){_.add(x(L)||"Component"),K8.add(L.type)}),k_=[]);var J=new Set;0<D_.length&&(D_.forEach(function(L){J.add(x(L)||"Component"),K8.add(L.type)}),D_=[]);var $=new Set;0<u_.length&&(u_.forEach(function(L){$.add(x(L)||"Component"),K8.add(L.type)}),u_=[]);var q=new Set;0<b_.length&&(b_.forEach(function(L){q.add(x(L)||"Component"),K8.add(L.type)}),b_=[]);var G=new Set;0<E_.length&&(E_.forEach(function(L){G.add(x(L)||"Component"),K8.add(L.type)}),E_=[]);var X=new Set;if(0<h_.length&&(h_.forEach(function(L){X.add(x(L)||"Component"),K8.add(L.type)}),h_=[]),0<J.size){var z=A(J);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
@@ -190,7 +190,7 @@ Please update the following components: %s`,z)}0<q.size&&(z=A(q),console.error(`
190
190
  * Move data fetching code or side effects to componentDidUpdate.
191
191
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
192
 
193
- Please update the following components: %s`,z)),0<K.size&&(z=A(K),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
+ Please update the following components: %s`,z)),0<X.size&&(z=A(X),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
194
 
195
195
  * Move data fetching code or side effects to componentDidUpdate.
196
196
 
@@ -210,41 +210,41 @@ Please update the following components: %s`,z)),0<G.size&&(z=A(G),console.warn(`
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
212
 
213
- Please update the following components: %s`,z))};var yQ=new Map,sB=new Set;r5.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&j2&&($=q),q=q.return;$===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!sB.has(_.type)&&(q=yQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],yQ.set($,q)),q.push(_))},r5.flushLegacyContextWarning=function(){yQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),sB.add(G.type)});var q=A($);M1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,z))};var DQ=new Map,tB=new Set;J4.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&u2&&($=q),q=q.return;$===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!tB.has(_.type)&&(q=DQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],DQ.set($,q)),q.push(_))},J4.flushLegacyContextWarning=function(){DQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(x(G)||"Component"),tB.add(G.type)});var q=A($);A1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
214
 
215
215
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
216
 
217
217
  Please update the following components: %s
218
218
 
219
- Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},r5.discardPendingWarnings=function(){S_=[],j_=[],v_=[],V_=[],y_=[],k_=[],yQ=new Map};var tB={react_stack_bottom_frame:function(_,J,$){var q=P4;P4=!0;try{return _(J,$)}finally{P4=q}}},$F=tB.react_stack_bottom_frame.bind(tB),oB={react_stack_bottom_frame:function(_){var J=P4;P4=!0;try{return _.render()}finally{P4=J}}},nB=oB.react_stack_bottom_frame.bind(oB),eB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){B0(_,_.return,$)}}},QF=eB.react_stack_bottom_frame.bind(eB),_L={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(K){B0(_,_.return,K)}}},JL=_L.react_stack_bottom_frame.bind(_L),$L={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},NP=$L.react_stack_bottom_frame.bind($L),QL={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){B0(_,J,q)}}},qL=QL.react_stack_bottom_frame.bind(QL),UL={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},CP=UL.react_stack_bottom_frame.bind(UL),GL={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){B0(_,J,q)}}},fP=GL.react_stack_bottom_frame.bind(GL),ZL={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},SP=ZL.react_stack_bottom_frame.bind(ZL),k7=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),qF=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),kQ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),DQ={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},U8=null,D_=!1,D7=null,u_=0,o1=null,UF,FL=UF=!1,KL={},XL={},HL={};M=function(_,J,$){if($!==null&&typeof $==="object"&&$._store&&(!$._store.validated&&$.key==null||$._store.validated===2)){if(typeof $._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");$._store.validated=1;var q=m(_),G=q||"null";if(!KL[G]){KL[G]=!0,$=$._owner,_=_._debugOwner;var K="";_&&typeof _.tag==="number"&&(G=m(_))&&(K=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},J4.discardPendingWarnings=function(){k_=[],D_=[],u_=[],b_=[],E_=[],h_=[],DQ=new Map};var oB={react_stack_bottom_frame:function(_,J,$){var q=y4;y4=!0;try{return _(J,$)}finally{y4=q}}},qF=oB.react_stack_bottom_frame.bind(oB),nB={react_stack_bottom_frame:function(_){var J=y4;y4=!0;try{return _.render()}finally{y4=J}}},eB=nB.react_stack_bottom_frame.bind(nB),_L={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){L0(_,_.return,$)}}},UF=_L.react_stack_bottom_frame.bind(_L),JL={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(X){L0(_,_.return,X)}}},$L=JL.react_stack_bottom_frame.bind(JL),QL={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},vP=QL.react_stack_bottom_frame.bind(QL),qL={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){L0(_,J,q)}}},UL=qL.react_stack_bottom_frame.bind(qL),GL={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},VP=GL.react_stack_bottom_frame.bind(GL),ZL={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){L0(_,J,q)}}},yP=ZL.react_stack_bottom_frame.bind(ZL),FL={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},kP=FL.react_stack_bottom_frame.bind(FL),h7=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),GF=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),uQ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),bQ={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},H8=null,x_=!1,x7=null,m_=0,_0=null,ZF,XL=ZF=!1,KL={},HL={},YL={};M=function(_,J,$){if($!==null&&typeof $==="object"&&$._store&&(!$._store.validated&&$.key==null||$._store.validated===2)){if(typeof $._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");$._store.validated=1;var q=x(_),G=q||"null";if(!KL[G]){KL[G]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(G=x(_))&&(X=`
220
220
 
221
- Check the render method of \``+G+"`."),K||q&&(K=`
221
+ Check the render method of \``+G+"`."),X||q&&(X=`
222
222
 
223
- Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=m($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),M1(J,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',K,z)})}}};var G8=QY(!0),YL=QY(!1),zL=0,WL=1,BL=2,GF=3,q6=!1,LL=!1,ZF=null,FF=!1,u7=e(null),uQ=e(0),L5=e(null),v5=null,b7=1,b_=2,d0=e(0),bQ=0,V5=1,l2=2,A5=4,d2=8,E7,AL=new Set,ML=new Set,KF=new Set,TL=new Set,F3=0,i1=null,w0=null,o0=null,EQ=!1,h7=!1,Z8=!1,hQ=0,E_=0,K3=null,jP=0,vP=25,F1=null,y5=null,X3=-1,h_=!1,x_={readContext:V0,use:m3,useCallback:g0,useContext:g0,useEffect:g0,useImperativeHandle:g0,useLayoutEffect:g0,useInsertionEffect:g0,useMemo:g0,useReducer:g0,useRef:g0,useState:g0,useDebugValue:g0,useDeferredValue:g0,useTransition:g0,useSyncExternalStore:g0,useId:g0,useHostTransitionStatus:g0,useFormState:g0,useActionState:g0,useOptimistic:g0,useMemoCache:g0,useCacheRefresh:g0};x_.useEffectEvent=g0;var XF=null,RL=null,HF=null,OL=null,y4=null,a5=null,xQ=null;XF={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",_0(),_7(J),FG(_,J)},useContext:function(_){return F1="useContext",_0(),V0(_)},useEffect:function(_,J){return F1="useEffect",_0(),_7(J),y$(_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",_0(),_7($),ZG(_,J,$)},useInsertionEffect:function(_,J){F1="useInsertionEffect",_0(),_7(J),d6(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",_0(),_7(J),GG(_,J)},useMemo:function(_,J){F1="useMemo",_0(),_7(J);var $=H1.H;H1.H=y4;try{return KG(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",_0();var q=H1.H;H1.H=y4;try{return oU(_,J,$)}finally{H1.H=q}},useRef:function(_){return F1="useRef",_0(),qG(_)},useState:function(_){F1="useState",_0();var J=H1.H;H1.H=y4;try{return JG(_)}finally{H1.H=J}},useDebugValue:function(){F1="useDebugValue",_0()},useDeferredValue:function(_,J){return F1="useDeferredValue",_0(),XG(_,J)},useTransition:function(){return F1="useTransition",_0(),zG()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",_0(),eU(_,J,$)},useId:function(){return F1="useId",_0(),WG()},useFormState:function(_,J){return F1="useFormState",_0(),f$(),$7(_,J)},useActionState:function(_,J){return F1="useActionState",_0(),$7(_,J)},useOptimistic:function(_){return F1="useOptimistic",_0(),$G(_)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",_0(),BG()},useEffectEvent:function(_){return F1="useEffectEvent",_0(),UG(_)}},RL={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",O1(),FG(_,J)},useContext:function(_){return F1="useContext",O1(),V0(_)},useEffect:function(_,J){return F1="useEffect",O1(),y$(_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",O1(),ZG(_,J,$)},useInsertionEffect:function(_,J){F1="useInsertionEffect",O1(),d6(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",O1(),GG(_,J)},useMemo:function(_,J){F1="useMemo",O1();var $=H1.H;H1.H=y4;try{return KG(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",O1();var q=H1.H;H1.H=y4;try{return oU(_,J,$)}finally{H1.H=q}},useRef:function(_){return F1="useRef",O1(),qG(_)},useState:function(_){F1="useState",O1();var J=H1.H;H1.H=y4;try{return JG(_)}finally{H1.H=J}},useDebugValue:function(){F1="useDebugValue",O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",O1(),XG(_,J)},useTransition:function(){return F1="useTransition",O1(),zG()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",O1(),eU(_,J,$)},useId:function(){return F1="useId",O1(),WG()},useActionState:function(_,J){return F1="useActionState",O1(),$7(_,J)},useFormState:function(_,J){return F1="useFormState",O1(),f$(),$7(_,J)},useOptimistic:function(_){return F1="useOptimistic",O1(),$G(_)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),BG()},useEffectEvent:function(_){return F1="useEffectEvent",O1(),UG(_)}},HF={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",O1(),u$(_,J)},useContext:function(_){return F1="useContext",O1(),V0(_)},useEffect:function(_,J){F1="useEffect",O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",O1();var $=H1.H;H1.H=a5;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",O1();var q=H1.H;H1.H=a5;try{return J7(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",O1(),M0().memoizedState},useState:function(){F1="useState",O1();var _=H1.H;H1.H=a5;try{return J7(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",O1(),NY(_,J)},useTransition:function(){return F1="useTransition",O1(),VY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",O1(),j$(_,J,$)},useId:function(){return F1="useId",O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",O1(),f$(),v$(_)},useActionState:function(_){return F1="useActionState",O1(),v$(_)},useOptimistic:function(_,J){return F1="useOptimistic",O1(),BY(_,J)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",O1(),k$(_)}},OL={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",O1(),u$(_,J)},useContext:function(_){return F1="useContext",O1(),V0(_)},useEffect:function(_,J){F1="useEffect",O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",O1();var $=H1.H;H1.H=xQ;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",O1();var q=H1.H;H1.H=xQ;try{return l9(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",O1(),M0().memoizedState},useState:function(){F1="useState",O1();var _=H1.H;H1.H=xQ;try{return l9(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",O1(),CY(_,J)},useTransition:function(){return F1="useTransition",O1(),yY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",O1(),j$(_,J,$)},useId:function(){return F1="useId",O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",O1(),f$(),V$(_)},useActionState:function(_){return F1="useActionState",O1(),V$(_)},useOptimistic:function(_,J){return F1="useOptimistic",O1(),AY(_,J)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",O1(),k$(_)}},y4={readContext:function(_){return T(),V0(_)},use:function(_){return B(),m3(_)},useCallback:function(_,J){return F1="useCallback",B(),_0(),FG(_,J)},useContext:function(_){return F1="useContext",B(),_0(),V0(_)},useEffect:function(_,J){return F1="useEffect",B(),_0(),y$(_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",B(),_0(),ZG(_,J,$)},useInsertionEffect:function(_,J){F1="useInsertionEffect",B(),_0(),d6(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",B(),_0(),GG(_,J)},useMemo:function(_,J){F1="useMemo",B(),_0();var $=H1.H;H1.H=y4;try{return KG(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",B(),_0();var q=H1.H;H1.H=y4;try{return oU(_,J,$)}finally{H1.H=q}},useRef:function(_){return F1="useRef",B(),_0(),qG(_)},useState:function(_){F1="useState",B(),_0();var J=H1.H;H1.H=y4;try{return JG(_)}finally{H1.H=J}},useDebugValue:function(){F1="useDebugValue",B(),_0()},useDeferredValue:function(_,J){return F1="useDeferredValue",B(),_0(),XG(_,J)},useTransition:function(){return F1="useTransition",B(),_0(),zG()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",B(),_0(),eU(_,J,$)},useId:function(){return F1="useId",B(),_0(),WG()},useFormState:function(_,J){return F1="useFormState",B(),_0(),$7(_,J)},useActionState:function(_,J){return F1="useActionState",B(),_0(),$7(_,J)},useOptimistic:function(_){return F1="useOptimistic",B(),_0(),$G(_)},useMemoCache:function(_){return B(),l6(_)},useHostTransitionStatus:i6,useCacheRefresh:function(){return F1="useCacheRefresh",_0(),BG()},useEffectEvent:function(_){return F1="useEffectEvent",B(),_0(),UG(_)}},a5={readContext:function(_){return T(),V0(_)},use:function(_){return B(),m3(_)},useCallback:function(_,J){return F1="useCallback",B(),O1(),u$(_,J)},useContext:function(_){return F1="useContext",B(),O1(),V0(_)},useEffect:function(_,J){F1="useEffect",B(),O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",B(),O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",B(),O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",B(),O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",B(),O1();var $=H1.H;H1.H=a5;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",B(),O1();var q=H1.H;H1.H=a5;try{return J7(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",B(),O1(),M0().memoizedState},useState:function(){F1="useState",B(),O1();var _=H1.H;H1.H=a5;try{return J7(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",B(),O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",B(),O1(),NY(_,J)},useTransition:function(){return F1="useTransition",B(),O1(),VY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",B(),O1(),j$(_,J,$)},useId:function(){return F1="useId",B(),O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",B(),O1(),v$(_)},useActionState:function(_){return F1="useActionState",B(),O1(),v$(_)},useOptimistic:function(_,J){return F1="useOptimistic",B(),O1(),BY(_,J)},useMemoCache:function(_){return B(),l6(_)},useHostTransitionStatus:i6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",B(),O1(),k$(_)}},xQ={readContext:function(_){return T(),V0(_)},use:function(_){return B(),m3(_)},useCallback:function(_,J){return F1="useCallback",B(),O1(),u$(_,J)},useContext:function(_){return F1="useContext",B(),O1(),V0(_)},useEffect:function(_,J){F1="useEffect",B(),O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",B(),O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",B(),O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",B(),O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",B(),O1();var $=H1.H;H1.H=a5;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",B(),O1();var q=H1.H;H1.H=a5;try{return l9(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",B(),O1(),M0().memoizedState},useState:function(){F1="useState",B(),O1();var _=H1.H;H1.H=a5;try{return l9(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",B(),O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",B(),O1(),CY(_,J)},useTransition:function(){return F1="useTransition",B(),O1(),yY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",B(),O1(),j$(_,J,$)},useId:function(){return F1="useId",B(),O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",B(),O1(),V$(_)},useActionState:function(_){return F1="useActionState",B(),O1(),V$(_)},useOptimistic:function(_,J){return F1="useOptimistic",B(),O1(),AY(_,J)},useMemoCache:function(_){return B(),l6(_)},useHostTransitionStatus:i6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",B(),O1(),k$(_)}};var IL={},wL=new Set,PL=new Set,NL=new Set,CL=new Set,fL=new Set,SL=new Set,jL=new Set,vL=new Set,VL=new Set,yL=new Set;Object.freeze(IL);var YF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=X5(_),G=b3(q);G.payload=J,$!==void 0&&$!==null&&(AG($),G.callback=$),J=E3(_,G,q),J!==null&&(K4(q,"this.setState()",_),h0(J,_,q),m9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=X5(_),G=b3(q);G.tag=WL,G.payload=J,$!==void 0&&$!==null&&(AG($),G.callback=$),J=E3(_,G,q),J!==null&&(K4(q,"this.replaceState()",_),h0(J,_,q),m9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=X5(_),q=b3($);q.tag=BL,J!==void 0&&J!==null&&(AG(J),q.callback=J),J=E3(_,q,$),J!==null&&(K4($,"this.forceUpdate()",_),h0(J,_,$),m9(J,_,$))}},x7=null,zF=null,WF=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),n0=!1,kL={},DL={},uL={},bL={},m7=!1,EL={},mQ={},BF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},hL=!1,xL=null;xL=new Set;var H3=!1,e0=!1,LF=!1,mL=typeof WeakSet==="function"?WeakSet:Set,B2=null,g7=null,p7=null,_2=null,J5=!1,s5=null,G2=!1,m_=8192,VP={getCacheForType:function(_){var J=V0(s0),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return V0(s0).controller.signal},getOwner:function(){return z5}};if(typeof Symbol==="function"&&Symbol.for){var g_=Symbol.for;g_("selector.component"),g_("selector.has_pseudo_class"),g_("selector.role"),g_("selector.test_id"),g_("selector.text")}var yP=[],kP=typeof WeakMap==="function"?WeakMap:Map,L2=0,Z2=2,M5=4,Y3=0,p_=1,F8=2,gQ=3,U6=4,pQ=6,gL=5,H0=L2,P0=null,e1=null,n1=0,$5=0,cQ=1,K8=2,c_=3,pL=4,AF=5,l_=6,lQ=7,MF=8,X8=9,T0=$5,T5=null,G6=!1,c7=!1,TF=!1,k4=0,b0=Y3,Z6=0,F6=0,RF=0,Q5=0,H8=0,d_=null,i2=null,dQ=!1,iQ=0,cL=0,lL=300,rQ=1/0,dL=500,i_=null,p0=null,K6=null,aQ=0,OF=1,IF=2,iL=3,X6=0,rL=1,aL=2,sL=3,tL=4,sQ=5,J2=0,H6=null,l7=null,t5=0,wF=0,PF=-0,NF=null,oL=null,nL=null,o5=aQ,eL=null,DP=50,r_=0,CF=null,fF=!1,tQ=!1,uP=50,Y8=0,a_=null,d7=!1,oQ=null,_A=!1,JA=new Set,bP={},nQ=null,i7=null,SF=!1,jF=!1,eQ=!1,vF=!1,Y6=0,VF={};(function(){for(var _=0;_<pZ.length;_++){var J=pZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),g5($,"on"+J)}g5(VB,"onAnimationEnd"),g5(yB,"onAnimationIteration"),g5(kB,"onAnimationStart"),g5("dblclick","onDoubleClick"),g5("focusin","onFocus"),g5("focusout","onBlur"),g5(YP,"onTransitionRun"),g5(zP,"onTransitionStart"),g5(WP,"onTransitionCancel"),g5(DB,"onTransitionEnd")})(),b2("onMouseEnter",["mouseout","mouseover"]),b2("onMouseLeave",["mouseout","mouseover"]),b2("onPointerEnter",["pointerout","pointerover"]),b2("onPointerLeave",["pointerout","pointerover"]),H2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),H2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),H2("onBeforeInput",["compositionend","keypress","textInput","paste"]),H2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),H2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),H2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var s_="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(" "),yF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(s_)),_q="_reactListening"+Math.random().toString(36).slice(2),$A=!1,QA=!1,Jq=!1,qA=!1,$q=!1,Qq=!1,UA=!1,qq={},EP=/\r\n?/g,hP=/\u0000|\uFFFD/g,z8="http://www.w3.org/1999/xlink",kF="http://www.w3.org/XML/1998/namespace",xP="javascript:throw new Error('React form unexpectedly submitted.')",mP="suppressHydrationWarning",W8="&",Uq="/&",t_="$",o_="/$",z6="$?",B8="$~",r7="$!",gP="html",pP="body",cP="head",DF="F!",GA="F",ZA="loading",lP="style",z3=0,a7=1,Gq=2,uF=null,bF=null,FA={dialog:!0,webview:!0},EF=null,n_=void 0,KA=typeof setTimeout==="function"?setTimeout:void 0,dP=typeof clearTimeout==="function"?clearTimeout:void 0,L8=-1,XA=typeof Promise==="function"?Promise:void 0,iP=typeof queueMicrotask==="function"?queueMicrotask:typeof XA<"u"?function(_){return XA.resolve(null).then(_).catch(vI)}:KA,hF=null,A8=0,e_=1,HA=2,YA=3,k5=4,D5=new Map,zA=new Set,W3=L0.d;L0.d={f:function(){var _=W3.f(),J=Z7();return _||J},r:function(_){var J=l1(_);J!==null&&J.tag===5&&J.type==="form"?vY(J):W3.r(_)},D:function(_){W3.D(_),wW("dns-prefetch",_,null)},C:function(_,J){W3.C(_,J),wW("preconnect",_,J)},L:function(_,J,$){W3.L(_,J,$);var q=s7;if(q&&_&&J){var G='link[rel="preload"][as="'+t2(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+t2($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+t2($.imageSizes)+'"]')):G+='[href="'+t2(_)+'"]':G+='[href="'+t2(_)+'"]';var K=G;switch(J){case"style":K=X7(_);break;case"script":K=H7(_)}D5.has(K)||(_=J0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),D5.set(K,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(U_(K))||J==="script"&&q.querySelector(G_(K))||(J=q.createElement("link"),R2(J,"link",_),E1(J),q.head.appendChild(J)))}},m:function(_,J){W3.m(_,J);var $=s7;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+t2(q)+'"][href="'+t2(_)+'"]',K=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":K=H7(_)}if(!D5.has(K)&&(_=J0({rel:"modulepreload",href:_},J),D5.set(K,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(G_(K)))return}q=$.createElement("link"),R2(q,"link",_),E1(q),$.head.appendChild(q)}}},X:function(_,J){W3.X(_,J);var $=s7;if($&&_){var q=K0($).hoistableScripts,G=H7(_),K=q.get(G);K||(K=$.querySelector(G_(G)),K||(_=J0({src:_,async:!0},J),(J=D5.get(G))&&ZZ(_,J),K=$.createElement("script"),E1(K),R2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}},S:function(_,J,$){W3.S(_,J,$);var q=s7;if(q&&_){var G=K0(q).hoistableStyles,K=X7(_);J=J||"default";var z=G.get(K);if(!z){var L={loading:A8,preload:null};if(z=q.querySelector(U_(K)))L.loading=e_|k5;else{_=J0({rel:"stylesheet",href:_,"data-precedence":J},$),($=D5.get(K))&&GZ(_,$);var I=z=q.createElement("link");E1(I),R2(I,"link",_),I._p=new Promise(function(f,n){I.onload=f,I.onerror=n}),I.addEventListener("load",function(){L.loading|=e_}),I.addEventListener("error",function(){L.loading|=HA}),L.loading|=k5,JQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:L},G.set(K,z)}}},M:function(_,J){W3.M(_,J);var $=s7;if($&&_){var q=K0($).hoistableScripts,G=H7(_),K=q.get(G);K||(K=$.querySelector(G_(G)),K||(_=J0({src:_,async:!0,type:"module"},J),(J=D5.get(G))&&ZZ(_,J),K=$.createElement("script"),E1(K),R2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}}};var s7=typeof document>"u"?null:document,Zq=null,rP=60000,aP=800,sP=500,xF=0,mF=null,Fq=null,M8=Xw,_J={$$typeof:w4,Provider:null,Consumer:null,_currentValue:M8,_currentValue2:M8,_threadCount:0},WA="%c%s%c",BA="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",LA="",Kq=" ",tP=Function.prototype.bind,AA=!1,MA=null,TA=null,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null;MA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=f2(_,2),$!==null&&h0($,_,2))},TA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=f2(_,2),$!==null&&h0($,_,2))},RA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=f2(_,2),$!==null&&h0($,_,2))},OA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=f2(_,2),J!==null&&h0(J,_,2)},IA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=f2(_,2),J!==null&&h0(J,_,2)},wA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=f2(_,2),J!==null&&h0(J,_,2)},PA=function(_){var J=f2(_,2);J!==null&&h0(J,_,2)},NA=function(_){var J=P2(),$=f2(_,J);$!==null&&h0($,_,J)},CA=function(_){W=_},fA=function(_){Y=_};var Xq=!0,Hq=null,gF=!1,W6=null,B6=null,L6=null,JJ=new Map,$J=new Map,A6=[],oP="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(" "),Yq=null;if(GQ.prototype.render=zZ.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):S($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=X5(q);FZ(q,G,$,J,null,null)},GQ.prototype.unmount=zZ.prototype.unmount=function(){var _=arguments;if(typeof _[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),_=this._internalRoot,_!==null){this._internalRoot=null;var J=_.containerInfo;(H0&(Z2|M5))!==L2&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),FZ(_.current,2,null,_,null,null),Z7(),J[r3]=null}},GQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=$1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<A6.length&&J!==0&&J<A6[$].priority;$++);A6.splice($,0,_),$===0&&EW(_)}},function(){var _=t7.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=x($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),A1(J,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',X,z)})}}};var Y8=qY(!0),zL=qY(!1),WL=0,BL=1,LL=2,FF=3,W6=!1,AL=!1,XF=null,KF=!1,m7=$1(null),EQ=$1(0),R5=$1(null),h5=null,g7=1,g_=2,o0=$1(0),hQ=0,x5=1,a2=2,O5=4,s2=8,p7,ML=new Set,TL=new Set,HF=new Set,RL=new Set,A3=0,a1=null,N0=null,Q2=null,xQ=!1,c7=!1,z8=!1,mQ=0,p_=0,M3=null,DP=0,uP=25,X1=null,m5=null,T3=-1,c_=!1,l_={readContext:u0,use:t3,useCallback:r0,useContext:r0,useEffect:r0,useImperativeHandle:r0,useLayoutEffect:r0,useInsertionEffect:r0,useMemo:r0,useReducer:r0,useRef:r0,useState:r0,useDebugValue:r0,useDeferredValue:r0,useTransition:r0,useSyncExternalStore:r0,useId:r0,useHostTransitionStatus:r0,useFormState:r0,useActionState:r0,useOptimistic:r0,useMemoCache:r0,useCacheRefresh:r0};l_.useEffectEvent=r0;var YF=null,OL=null,zF=null,IL=null,m4=null,$4=null,gQ=null;YF={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",q0(),U7(J),KG(_,J)},useContext:function(_){return X1="useContext",q0(),u0(_)},useEffect:function(_,J){return X1="useEffect",q0(),U7(J),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",q0(),U7($),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",q0(),U7(J),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",q0(),U7(J),FG(_,J)},useMemo:function(_,J){X1="useMemo",q0(),U7(J);var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",q0(),GG(_)},useState:function(_){X1="useState",q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",q0()},useDeferredValue:function(_,J){return X1="useDeferredValue",q0(),YG(_,J)},useTransition:function(){return X1="useTransition",q0(),BG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",q0(),JG(_,J,$)},useId:function(){return X1="useId",q0(),LG()},useFormState:function(_,J){return X1="useFormState",q0(),j$(),Z7(_,J)},useActionState:function(_,J){return X1="useActionState",q0(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",q0(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",q0(),ZG(_)}},OL={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",w1(),KG(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){return X1="useEffect",w1(),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",w1(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),FG(_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",w1(),GG(_)},useState:function(_){X1="useState",w1();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),YG(_,J)},useTransition:function(){return X1="useTransition",w1(),BG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),JG(_,J,$)},useId:function(){return X1="useId",w1(),LG()},useActionState:function(_,J){return X1="useActionState",w1(),Z7(_,J)},useFormState:function(_,J){return X1="useFormState",w1(),j$(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",w1(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",w1(),ZG(_)}},zF={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",w1(),E$(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){X1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=$4;try{return G7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),R0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=$4;try{return G7(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),CY(_,J)},useTransition:function(){return X1="useTransition",w1(),yY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),V$(_,J,$)},useId:function(){return X1="useId",w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),y$(_)},useActionState:function(_){return X1="useActionState",w1(),y$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),LY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),u$(_)}},IL={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",w1(),E$(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){X1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=gQ;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=gQ;try{return s9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),R0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=gQ;try{return s9(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),fY(_,J)},useTransition:function(){return X1="useTransition",w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),V$(_,J,$)},useId:function(){return X1="useId",w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),k$(_)},useActionState:function(_){return X1="useActionState",w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),MY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),u$(_)}},m4={readContext:function(_){return T(),u0(_)},use:function(_){return B(),t3(_)},useCallback:function(_,J){return X1="useCallback",B(),q0(),KG(_,J)},useContext:function(_){return X1="useContext",B(),q0(),u0(_)},useEffect:function(_,J){return X1="useEffect",B(),q0(),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",B(),q0(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",B(),q0(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",B(),q0(),FG(_,J)},useMemo:function(_,J){X1="useMemo",B(),q0();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",B(),q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",B(),q0(),GG(_)},useState:function(_){X1="useState",B(),q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",B(),q0()},useDeferredValue:function(_,J){return X1="useDeferredValue",B(),q0(),YG(_,J)},useTransition:function(){return X1="useTransition",B(),q0(),BG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",B(),q0(),JG(_,J,$)},useId:function(){return X1="useId",B(),q0(),LG()},useFormState:function(_,J){return X1="useFormState",B(),q0(),Z7(_,J)},useActionState:function(_,J){return X1="useActionState",B(),q0(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",B(),q0(),qG(_)},useMemoCache:function(_){return B(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",B(),q0(),ZG(_)}},$4={readContext:function(_){return T(),u0(_)},use:function(_){return B(),t3(_)},useCallback:function(_,J){return X1="useCallback",B(),w1(),E$(_,J)},useContext:function(_){return X1="useContext",B(),w1(),u0(_)},useEffect:function(_,J){X1="useEffect",B(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",B(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",B(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",B(),w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",B(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",B(),w1();var q=Y1.H;Y1.H=$4;try{return G7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",B(),w1(),R0().memoizedState},useState:function(){X1="useState",B(),w1();var _=Y1.H;Y1.H=$4;try{return G7(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",B(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",B(),w1(),CY(_,J)},useTransition:function(){return X1="useTransition",B(),w1(),yY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",B(),w1(),V$(_,J,$)},useId:function(){return X1="useId",B(),w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",B(),w1(),y$(_)},useActionState:function(_){return X1="useActionState",B(),w1(),y$(_)},useOptimistic:function(_,J){return X1="useOptimistic",B(),w1(),LY(_,J)},useMemoCache:function(_){return B(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",B(),w1(),u$(_)}},gQ={readContext:function(_){return T(),u0(_)},use:function(_){return B(),t3(_)},useCallback:function(_,J){return X1="useCallback",B(),w1(),E$(_,J)},useContext:function(_){return X1="useContext",B(),w1(),u0(_)},useEffect:function(_,J){X1="useEffect",B(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",B(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",B(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",B(),w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",B(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",B(),w1();var q=Y1.H;Y1.H=$4;try{return s9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",B(),w1(),R0().memoizedState},useState:function(){X1="useState",B(),w1();var _=Y1.H;Y1.H=$4;try{return s9(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",B(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",B(),w1(),fY(_,J)},useTransition:function(){return X1="useTransition",B(),w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",B(),w1(),V$(_,J,$)},useId:function(){return X1="useId",B(),w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",B(),w1(),k$(_)},useActionState:function(_){return X1="useActionState",B(),w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",B(),w1(),MY(_,J)},useMemoCache:function(_){return B(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",B(),w1(),u$(_)}};var wL={},PL=new Set,NL=new Set,CL=new Set,fL=new Set,SL=new Set,jL=new Set,vL=new Set,VL=new Set,yL=new Set,kL=new Set;Object.freeze(wL);var WF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=W5(_),G=d3(q);G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=r3(_,G,q),J!==null&&(A4(q,"this.setState()",_),c0(J,_,q),i9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=W5(_),G=d3(q);G.tag=BL,G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=r3(_,G,q),J!==null&&(A4(q,"this.replaceState()",_),c0(J,_,q),i9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=W5(_),q=d3($);q.tag=LL,J!==void 0&&J!==null&&(TG(J),q.callback=J),J=r3(_,q,$),J!==null&&(A4($,"this.forceUpdate()",_),c0(J,_,$),i9(J,_,$))}},l7=null,BF=null,LF=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),q2=!1,DL={},uL={},bL={},EL={},i7=!1,hL={},pQ={},AF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},xL=!1,mL=null;mL=new Set;var R3=!1,U2=!1,MF=!1,gL=typeof WeakSet==="function"?WeakSet:Set,I2=null,d7=null,r7=null,G2=null,U5=!1,Q4=null,z2=!1,i_=8192,bP={getCacheForType:function(_){var J=u0(J2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return u0(J2).controller.signal},getOwner:function(){return A5}};if(typeof Symbol==="function"&&Symbol.for){var d_=Symbol.for;d_("selector.component"),d_("selector.has_pseudo_class"),d_("selector.role"),d_("selector.test_id"),d_("selector.text")}var EP=[],hP=typeof WeakMap==="function"?WeakMap:Map,w2=0,W2=2,I5=4,O3=0,r_=1,W8=2,cQ=3,B6=4,lQ=6,pL=5,Y0=w2,C0=null,$0=null,J0=0,G5=0,iQ=1,B8=2,a_=3,cL=4,TF=5,s_=6,dQ=7,RF=8,L8=9,O0=G5,w5=null,L6=!1,a7=!1,OF=!1,g4=0,g0=O3,A6=0,M6=0,IF=0,Z5=0,A8=0,t_=null,t2=null,rQ=!1,aQ=0,lL=0,iL=300,sQ=1/0,dL=500,o_=null,a0=null,T6=null,tQ=0,wF=1,PF=2,rL=3,R6=0,aL=1,sL=2,tL=3,oL=4,oQ=5,Z2=0,O6=null,s7=null,q4=0,NF=0,CF=-0,fF=null,nL=null,eL=null,U4=tQ,_A=null,xP=50,n_=0,SF=null,jF=!1,nQ=!1,mP=50,M8=0,e_=null,t7=!1,eQ=null,JA=!1,$A=new Set,gP={},_q=null,o7=null,vF=!1,VF=!1,Jq=!1,yF=!1,I6=0,kF={};(function(){for(var _=0;_<lZ.length;_++){var J=lZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),s5($,"on"+J)}s5(yB,"onAnimationEnd"),s5(kB,"onAnimationIteration"),s5(DB,"onAnimationStart"),s5("dblclick","onDoubleClick"),s5("focusin","onFocus"),s5("focusout","onBlur"),s5(AP,"onTransitionRun"),s5(MP,"onTransitionStart"),s5(TP,"onTransitionCancel"),s5(uB,"onTransitionEnd")})(),S0("onMouseEnter",["mouseout","mouseover"]),S0("onMouseLeave",["mouseout","mouseover"]),S0("onPointerEnter",["pointerout","pointerover"]),S0("onPointerLeave",["pointerout","pointerover"]),p1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p1("onBeforeInput",["compositionend","keypress","textInput","paste"]),p1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _J="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(" "),DF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_J)),$q="_reactListening"+Math.random().toString(36).slice(2),QA=!1,qA=!1,Qq=!1,UA=!1,qq=!1,Uq=!1,GA=!1,Gq={},pP=/\r\n?/g,cP=/\u0000|\uFFFD/g,T8="http://www.w3.org/1999/xlink",uF="http://www.w3.org/XML/1998/namespace",lP="javascript:throw new Error('React form unexpectedly submitted.')",iP="suppressHydrationWarning",R8="&",Zq="/&",JJ="$",$J="/$",w6="$?",O8="$~",n7="$!",dP="html",rP="body",aP="head",bF="F!",ZA="F",FA="loading",sP="style",I3=0,e7=1,Fq=2,EF=null,hF=null,XA={dialog:!0,webview:!0},xF=null,QJ=void 0,KA=typeof setTimeout==="function"?setTimeout:void 0,tP=typeof clearTimeout==="function"?clearTimeout:void 0,I8=-1,HA=typeof Promise==="function"?Promise:void 0,oP=typeof queueMicrotask==="function"?queueMicrotask:typeof HA<"u"?function(_){return HA.resolve(null).then(_).catch(uI)}:KA,mF=null,w8=0,qJ=1,YA=2,zA=3,g5=4,p5=new Map,WA=new Set,w3=A0.d;A0.d={f:function(){var _=w3.f(),J=Y7();return _||J},r:function(_){var J=N1(_);J!==null&&J.tag===5&&J.type==="form"?VY(J):w3.r(_)},D:function(_){w3.D(_),PW("dns-prefetch",_,null)},C:function(_,J){w3.C(_,J),PW("preconnect",_,J)},L:function(_,J,$){w3.L(_,J,$);var q=_9;if(q&&_&&J){var G='link[rel="preload"][as="'+_5(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+_5($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+_5($.imageSizes)+'"]')):G+='[href="'+_5(_)+'"]':G+='[href="'+_5(_)+'"]';var X=G;switch(J){case"style":X=B7(_);break;case"script":X=L7(_)}p5.has(X)||(_=U0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),p5.set(X,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(K_(X))||J==="script"&&q.querySelector(H_(X))||(J=q.createElement("link"),j2(J,"link",_),v1(J),q.head.appendChild(J)))}},m:function(_,J){w3.m(_,J);var $=_9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+_5(q)+'"][href="'+_5(_)+'"]',X=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=L7(_)}if(!p5.has(X)&&(_=U0({rel:"modulepreload",href:_},J),p5.set(X,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(H_(X)))return}q=$.createElement("link"),j2(q,"link",_),v1(q),$.head.appendChild(q)}}},X:function(_,J){w3.X(_,J);var $=_9;if($&&_){var q=y1($).hoistableScripts,G=L7(_),X=q.get(G);X||(X=$.querySelector(H_(G)),X||(_=U0({src:_,async:!0},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),v1(X),j2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}},S:function(_,J,$){w3.S(_,J,$);var q=_9;if(q&&_){var G=y1(q).hoistableStyles,X=B7(_);J=J||"default";var z=G.get(X);if(!z){var L={loading:w8,preload:null};if(z=q.querySelector(K_(X)))L.loading=qJ|g5;else{_=U0({rel:"stylesheet",href:_,"data-precedence":J},$),($=p5.get(X))&&FZ(_,$);var w=z=q.createElement("link");v1(w),j2(w,"link",_),w._p=new Promise(function(S,e){w.onload=S,w.onerror=e}),w.addEventListener("load",function(){L.loading|=qJ}),w.addEventListener("error",function(){L.loading|=YA}),L.loading|=g5,QQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:L},G.set(X,z)}}},M:function(_,J){w3.M(_,J);var $=_9;if($&&_){var q=y1($).hoistableScripts,G=L7(_),X=q.get(G);X||(X=$.querySelector(H_(G)),X||(_=U0({src:_,async:!0,type:"module"},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),v1(X),j2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}}};var _9=typeof document>"u"?null:document,Xq=null,nP=60000,eP=800,_N=500,gF=0,pF=null,Kq=null,P8=Bw,UJ={$$typeof:V4,Provider:null,Consumer:null,_currentValue:P8,_currentValue2:P8,_threadCount:0},BA="%c%s%c",LA="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",AA="",Hq=" ",JN=Function.prototype.bind,MA=!1,TA=null,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null,SA=null;TA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},RA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},OA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},IA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},wA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},PA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},NA=function(_){var J=k2(_,2);J!==null&&c0(J,_,2)},CA=function(_){var J=M2(),$=k2(_,J);$!==null&&c0($,_,J)},fA=function(_){W=_},SA=function(_){Y=_};var Yq=!0,zq=null,cF=!1,P6=null,N6=null,C6=null,GJ=new Map,ZJ=new Map,f6=[],$N="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(" "),Wq=null;if(FQ.prototype.render=BZ.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):j($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=W5(q);KZ(q,G,$,J,null,null)},FQ.prototype.unmount=BZ.prototype.unmount=function(){var _=arguments;if(typeof _[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),_=this._internalRoot,_!==null){this._internalRoot=null;var J=_.containerInfo;(Y0&(W2|I5))!==w2&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),KZ(_.current,2,null,_,null,null),Y7(),J[Q6]=null}},FQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=l();_={blockedOn:null,target:_,priority:J};for(var $=0;$<f6.length&&J!==0&&J<f6[$].priority;$++);f6.splice($,0,_),$===0&&hW(_)}},function(){var _=J9.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
224
  - react: `+(_+`
225
225
  - react-dom: 19.2.7
226
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),L0.findDOMNode=function(_){var J=_._reactInternals;if(J===void 0){if(typeof _.render==="function")throw Error("Unable to find node on an unmounted component.");throw _=Object.keys(_).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+_)}return _=u(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:H1,reconcilerVersion:"19.2.7"};return _.overrideHookState=MA,_.overrideHookStateDeletePath=TA,_.overrideHookStateRenamePath=RA,_.overrideProps=OA,_.overridePropsDeletePath=IA,_.overridePropsRenamePath=wA,_.scheduleUpdate=PA,_.scheduleRetry=NA,_.setErrorHandler=CA,_.setSuspenseHandler=fA,_.scheduleRefresh=P,_.scheduleRoot=w,_.setRefreshHandler=V,_.getCurrentFiber=$w,Q0(_)}()&&S4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var SA=window.location.protocol;/^(https?|file):$/.test(SA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(SA==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}XN.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");gW(_);var $=!1,q="",G=hY,K=xY,z=mY;return J!==null&&J!==void 0&&(J.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof J==="object"&&J!==null&&J.$$typeof===I4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),A0.findDOMNode=function(_){var J=_._reactInternals;if(J===void 0){if(typeof _.render==="function")throw Error("Unable to find node on an unmounted component.");throw _=Object.keys(_).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+_)}return _=D(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Y1,reconcilerVersion:"19.2.7"};return _.overrideHookState=TA,_.overrideHookStateDeletePath=RA,_.overrideHookStateRenamePath=OA,_.overrideProps=IA,_.overridePropsDeletePath=wA,_.overridePropsRenamePath=PA,_.scheduleUpdate=NA,_.scheduleRetry=CA,_.setErrorHandler=fA,_.setSuspenseHandler=SA,_.scheduleRefresh=N,_.scheduleRoot=P,_.setRefreshHandler=V,_.getCurrentFiber=Zw,D0(_)}()&&b4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var jA=window.location.protocol;/^(https?|file):$/.test(jA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(jA==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}BN.createRoot=function(_,J){if(!j(_))throw Error("Target container is not a DOM element.");pW(_);var $=!1,q="",G=xY,X=mY,z=gY;return J!==null&&J!==void 0&&(J.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof J==="object"&&J!==null&&J.$$typeof===v4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
228
 
229
229
  let root = createRoot(domContainer);
230
- root.render(<App />);`),J.unstable_strictMode===!0&&($=!0),J.identifierPrefix!==void 0&&(q=J.identifierPrefix),J.onUncaughtError!==void 0&&(G=J.onUncaughtError),J.onCaughtError!==void 0&&(K=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=vW(_,1,!1,null,null,$,q,null,G,K,z,mW),_[r3]=J.current,aG(_),new zZ(J)},XN.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");gW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",K=hY,z=xY,L=mY,I=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(K=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(L=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=vW(_,1,!0,J,$!=null?$:null,q,G,I,K,z,L,mW),J.context=VW(null),$=J.current,q=X5($),q=c4(q),G=b3(q),G.callback=null,E3($,G,q),K4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,C2(J,$),R4(J),_[r3]=J.current,aG(_),new GQ(J)},XN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uA=D4((Kk,DA)=>{var HN=E0(kA());DA.exports=HN});var O8=D4((YN)=>{var R8=E0(n5());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===m?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case u:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case P:return"Portal";case N:return y.displayName||"Context";case D:return(y._context.displayName||"Context")+".Consumer";case v:var p=y.render;return y=y.displayName,y||(y=p.displayName||p.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case k:return p=y.displayName||null,p!==null?p:Q(y.type)||"Memo";case b:p=y._payload,y=y._init;try{return Q(y(p))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var p=!1}catch(W1){p=!0}if(p){p=console;var q1=p.error,s=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),U(y)}}function X(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var p=Q(y);return p?"<"+p+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=e.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var p=Object.getOwnPropertyDescriptor(y,"key").get;if(p&&p.isReactWarning)return!1}return y.key!==void 0}function B(y,p){function q1(){g||(g=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",p))}q1.isReactWarning=!0,Object.defineProperty(y,"key",{get:q1,configurable:!0})}function T(){var y=Q(this.type);return c[y]||(c[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function R(y,p,q1,s,W1,R1){var T1=q1.ref;return y={$$typeof:w,type:y,key:p,props:q1,_owner:s},(T1!==void 0?T1:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:T}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,p,q1,s,W1,R1){var T1=p.children;if(T1!==void 0)if(s)if(J1(T1)){for(s=0;s<T1.length;s++)A(T1[s]);Object.freeze&&Object.freeze(T1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(T1);if(Q1.call(p,"key")){T1=Q(y);var A1=Object.keys(p).filter(function(w1){return w1!=="key"});s=0<A1.length?"{key: someKey, "+A1.join(": ..., ")+": ...}":"{key: someKey}",t[T1+s]||(A1=0<A1.length?"{"+A1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),J.unstable_strictMode===!0&&($=!0),J.identifierPrefix!==void 0&&(q=J.identifierPrefix),J.onUncaughtError!==void 0&&(G=J.onUncaughtError),J.onCaughtError!==void 0&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=VW(_,1,!1,null,null,$,q,null,G,X,z,gW),_[Q6]=J.current,tG(_),new BZ(J)},BN.hydrateRoot=function(_,J,$){if(!j(_))throw Error("Target container is not a DOM element.");pW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",X=xY,z=mY,L=gY,w=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(X=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(L=$.onRecoverableError),$.formState!==void 0&&(w=$.formState)),J=VW(_,1,!0,J,$!=null?$:null,q,G,w,X,z,L,gW),J.context=yW(null),$=J.current,q=W5($),q=r5(q),G=d3(q),G.callback=null,r3($,G,q),A4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,_2(J,$),S4(J),_[Q6]=J.current,tG(_),new FQ(J)},BN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var bA=p4((Bk,uA)=>{var LN=p0(DA());uA.exports=LN});var f8=p4((AN)=>{var C8=p0(G4());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===x?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case f:return"Profiler";case j:return"StrictMode";case D:return"Suspense";case h:return"SuspenseList";case k:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case N:return"Portal";case C:return y.displayName||"Context";case u:return(y._context.displayName||"Context")+".Consumer";case v:var g=y.render;return y=y.displayName,y||(y=g.displayName||g.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case E:return g=y.displayName||null,g!==null?g:Q(y.type)||"Memo";case b:g=y._payload,y=y._init;try{return Q(y(g))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var g=!1}catch(W1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(y)}}function K(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var g=Q(y);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=$1.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var g=Object.getOwnPropertyDescriptor(y,"key").get;if(g&&g.isReactWarning)return!1}return y.key!==void 0}function B(y,g){function q1(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}q1.isReactWarning=!0,Object.defineProperty(y,"key",{get:q1,configurable:!0})}function T(){var y=Q(this.type);return c[y]||(c[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function R(y,g,q1,t,W1,T1){var O1=q1.ref;return y={$$typeof:P,type:y,key:g,props:q1,_owner:t},(O1!==void 0?O1:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:T}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,g,q1,t,W1,T1){var O1=g.children;if(O1!==void 0)if(t)if(J1(O1)){for(t=0;t<O1.length;t++)A(O1[t]);Object.freeze&&Object.freeze(O1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(O1);if(Q1.call(g,"key")){O1=Q(y);var B1=Object.keys(g).filter(function(P1){return P1!=="key"});t=0<B1.length?"{key: someKey, "+B1.join(": ..., ")+": ...}":"{key: someKey}",o[O1+t]||(B1=0<B1.length?"{"+B1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
231
  let props = %s;
232
232
  <%s {...props} />
233
233
  React keys must be passed directly to JSX without using spread:
234
234
  let props = %s;
235
- <%s key={someKey} {...props} />`,s,T1,A1,T1),t[T1+s]=!0)}if(T1=null,q1!==void 0&&(Z(q1),T1=""+q1),W(p)&&(Z(p.key),T1=""+p.key),"key"in p){q1={};for(var U1 in p)U1!=="key"&&(q1[U1]=p[U1])}else q1=p;return T1&&B(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,T1,q1,H(),W1,R1)}function A(y){O(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===b&&(y._payload.status==="fulfilled"?O(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function O(y){return typeof y==="object"&&y!==null&&y.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),e=R8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,x=console.createTask?console.createTask:function(){return null};R8={react_stack_bottom_frame:function(y){return y()}};var g,c={},a=R8.react_stack_bottom_frame.bind(R8,Y)(),d=x(X(Y)),t={};YN.Fragment=V,YN.jsxDEV=function(y,p,q1,s){var W1=1e4>e.recentlyCreatedOwnerStacks++;return M(y,p,q1,s,W1?Error("react-stack-top-frame"):a,W1?x(X(y)):d)}})()});var lA=D4((MN)=>{var w8=E0(n5());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===m?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case u:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case P:return"Portal";case N:return y.displayName||"Context";case D:return(y._context.displayName||"Context")+".Consumer";case v:var p=y.render;return y=y.displayName,y||(y=p.displayName||p.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case k:return p=y.displayName||null,p!==null?p:Q(y.type)||"Memo";case b:p=y._payload,y=y._init;try{return Q(y(p))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var p=!1}catch(W1){p=!0}if(p){p=console;var q1=p.error,s=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),U(y)}}function X(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var p=Q(y);return p?"<"+p+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=e.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var p=Object.getOwnPropertyDescriptor(y,"key").get;if(p&&p.isReactWarning)return!1}return y.key!==void 0}function B(y,p){function q1(){g||(g=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",p))}q1.isReactWarning=!0,Object.defineProperty(y,"key",{get:q1,configurable:!0})}function T(){var y=Q(this.type);return c[y]||(c[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function R(y,p,q1,s,W1,R1){var T1=q1.ref;return y={$$typeof:w,type:y,key:p,props:q1,_owner:s},(T1!==void 0?T1:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:T}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,p,q1,s,W1,R1){var T1=p.children;if(T1!==void 0)if(s)if(J1(T1)){for(s=0;s<T1.length;s++)A(T1[s]);Object.freeze&&Object.freeze(T1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(T1);if(Q1.call(p,"key")){T1=Q(y);var A1=Object.keys(p).filter(function(w1){return w1!=="key"});s=0<A1.length?"{key: someKey, "+A1.join(": ..., ")+": ...}":"{key: someKey}",t[T1+s]||(A1=0<A1.length?"{"+A1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,t,O1,B1,O1),o[O1+t]=!0)}if(O1=null,q1!==void 0&&(Z(q1),O1=""+q1),W(g)&&(Z(g.key),O1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return O1&&B(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,O1,q1,H(),W1,T1)}function A(y){O(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===b&&(y._payload.status==="fulfilled"?O(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function O(y){return typeof y==="object"&&y!==null&&y.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),C=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),$1=C8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,m=console.createTask?console.createTask:function(){return null};C8={react_stack_bottom_frame:function(y){return y()}};var p,c={},a=C8.react_stack_bottom_frame.bind(C8,Y)(),i=m(K(Y)),o={};AN.Fragment=V,AN.jsxDEV=function(y,g,q1,t){var W1=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,t,W1?Error("react-stack-top-frame"):a,W1?m(K(y)):i)}})()});var iA=p4((wN)=>{var j8=p0(G4());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===x?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case f:return"Profiler";case j:return"StrictMode";case D:return"Suspense";case h:return"SuspenseList";case k:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case N:return"Portal";case C:return y.displayName||"Context";case u:return(y._context.displayName||"Context")+".Consumer";case v:var g=y.render;return y=y.displayName,y||(y=g.displayName||g.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case E:return g=y.displayName||null,g!==null?g:Q(y.type)||"Memo";case b:g=y._payload,y=y._init;try{return Q(y(g))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var g=!1}catch(W1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(y)}}function K(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var g=Q(y);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=$1.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var g=Object.getOwnPropertyDescriptor(y,"key").get;if(g&&g.isReactWarning)return!1}return y.key!==void 0}function B(y,g){function q1(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}q1.isReactWarning=!0,Object.defineProperty(y,"key",{get:q1,configurable:!0})}function T(){var y=Q(this.type);return c[y]||(c[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function R(y,g,q1,t,W1,T1){var O1=q1.ref;return y={$$typeof:P,type:y,key:g,props:q1,_owner:t},(O1!==void 0?O1:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:T}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,g,q1,t,W1,T1){var O1=g.children;if(O1!==void 0)if(t)if(J1(O1)){for(t=0;t<O1.length;t++)A(O1[t]);Object.freeze&&Object.freeze(O1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(O1);if(Q1.call(g,"key")){O1=Q(y);var B1=Object.keys(g).filter(function(P1){return P1!=="key"});t=0<B1.length?"{key: someKey, "+B1.join(": ..., ")+": ...}":"{key: someKey}",o[O1+t]||(B1=0<B1.length?"{"+B1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
236
  let props = %s;
237
237
  <%s {...props} />
238
238
  React keys must be passed directly to JSX without using spread:
239
239
  let props = %s;
240
- <%s key={someKey} {...props} />`,s,T1,A1,T1),t[T1+s]=!0)}if(T1=null,q1!==void 0&&(Z(q1),T1=""+q1),W(p)&&(Z(p.key),T1=""+p.key),"key"in p){q1={};for(var U1 in p)U1!=="key"&&(q1[U1]=p[U1])}else q1=p;return T1&&B(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,T1,q1,H(),W1,R1)}function A(y){O(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===b&&(y._payload.status==="fulfilled"?O(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function O(y){return typeof y==="object"&&y!==null&&y.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),e=w8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,x=console.createTask?console.createTask:function(){return null};w8={react_stack_bottom_frame:function(y){return y()}};var g,c={},a=w8.react_stack_bottom_frame.bind(w8,Y)(),d=x(X(Y)),t={};MN.Fragment=V,MN.jsx=function(y,p,q1){var s=1e4>e.recentlyCreatedOwnerStacks++;return M(y,p,q1,!1,s?Error("react-stack-top-frame"):a,s?x(X(y)):d)},MN.jsxs=function(y,p,q1){var s=1e4>e.recentlyCreatedOwnerStacks++;return M(y,p,q1,!0,s?Error("react-stack-top-frame"):a,s?x(X(y)):d)}})()});var OT=D4((WS)=>{var O5=E0(n5());(function(){function Q(O,w){return O===w&&(O!==0||1/O===1/w)||O!==O&&w!==w}function U(O,w){R||O5.startTransition===void 0||(R=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var P=w();if(!M){var V=w();H(P,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),M=!0)}V=Y({inst:{value:P,getSnapshot:w}});var S=V[0].inst,C=V[1];return B(function(){S.value=P,S.getSnapshot=w,Z(S)&&C({inst:S})},[O,P,w]),W(function(){return Z(S)&&C({inst:S}),O(function(){Z(S)&&C({inst:S})})},[O]),T(P),P}function Z(O){var w=O.getSnapshot;O=O.value;try{var P=w();return!H(O,P)}catch(V){return!0}}function X(O,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=O5.useState,W=O5.useEffect,B=O5.useLayoutEffect,T=O5.useDebugValue,R=!1,M=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?X:U;WS.useSyncExternalStore=O5.useSyncExternalStore!==void 0?O5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var IT=D4((BS)=>{var I3=E0(n5());(function(){function Q(T,R){return T===R&&(T!==0||1/T===1/R)||T!==T&&R!==R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=OT(),Z=typeof Object.is==="function"?Object.is:Q,X=U.useSyncExternalStore,H=I3.useRef,Y=I3.useEffect,W=I3.useMemo,B=I3.useDebugValue;BS.useSyncExternalStoreWithSelector=function(T,R,M,A,O){var w=H(null);if(w.current===null){var P={hasValue:!1,value:null};w.current=P}else P=w.current;w=W(function(){function S(u){if(!C){if(C=!0,D=u,u=A(u),O!==void 0&&P.hasValue){var h=P.value;if(O(h,u))return N=h}return N=u}if(h=N,Z(D,u))return h;var k=A(u);if(O!==void 0&&O(h,k))return D=u,h;return D=u,N=k}var C=!1,D,N,v=M===void 0?null:M;return[function(){return S(R())},v===null?void 0:function(){return S(v())}]},[R,M,A,O]);var V=X(T,w[0],w[1]);return Y(function(){P.hasValue=!0,P.value=V},[V]),B(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var IO=E0(uA(),1);var A2=E0(n5(),1);var bA={x:{title:"X",fill:"currentColor",d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},youtube:{title:"YouTube",fill:"#FF0000",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},tiktok:{title:"TikTok",fill:"currentColor",d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},discord:{title:"Discord",fill:"#5865F2",d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},resend:{title:"Resend",fill:"currentColor",d:"M2.023 0v24h5.553v-8.434h2.998L15.326 24h6.65l-5.372-9.258a7.652 7.652 0 0 0 3.316-3.016c.709-1.21 1.062-2.57 1.062-4.08 0-1.462-.353-2.767-1.062-3.91-.709-1.165-1.692-2.079-2.95-2.742C15.737.331 14.355 0 12.823 0Zm5.553 4.87h4.219c.731 0 1.349.125 1.851.376.526.252.925.618 1.2 1.098.274.457.412.994.412 1.611S15.132 9.12 14.88 9.6c-.229.48-.572.856-1.03 1.13-.434.252-.948.38-1.542.38H7.576Z"},linkedin:{title:"LinkedIn",fill:"#0A66C2",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},reddit:{title:"Reddit",fill:"#FF4500",d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"},bluesky:{title:"Bluesky",fill:"#0285FF",d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"},instagram:{title:"Instagram",fill:"#FF0069",d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},github:{title:"GitHub",fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"},stripe:{title:"Stripe",fill:"#635BFF",d:"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"},slack:{title:"Slack",fill:"#4A154B",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},openai:{title:"OpenAI",fill:"#412991",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"},anthropic:{title:"Anthropic",fill:"currentColor",d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},twilio:{title:"Twilio",fill:"#F22F46",d:"M12 0C5.381-.008.008 5.352 0 11.971V12c0 6.64 5.359 12 12 12 6.64 0 12-5.36 12-12 0-6.641-5.36-12-12-12zm0 20.801c-4.846.015-8.786-3.904-8.801-8.75V12c-.014-4.846 3.904-8.786 8.75-8.801H12c4.847-.014 8.786 3.904 8.801 8.75V12c.015 4.847-3.904 8.786-8.75 8.801H12zm5.44-11.76c0 1.359-1.12 2.479-2.481 2.479-1.366-.007-2.472-1.113-2.479-2.479 0-1.361 1.12-2.481 2.479-2.481 1.361 0 2.481 1.12 2.481 2.481zm0 5.919c0 1.36-1.12 2.48-2.481 2.48-1.367-.008-2.473-1.114-2.479-2.48 0-1.359 1.12-2.479 2.479-2.479 1.361-.001 2.481 1.12 2.481 2.479zm-5.919 0c0 1.36-1.12 2.48-2.479 2.48-1.368-.007-2.475-1.113-2.481-2.48 0-1.359 1.12-2.479 2.481-2.479 1.358-.001 2.479 1.12 2.479 2.479zm0-5.919c0 1.359-1.12 2.479-2.479 2.479-1.367-.007-2.475-1.112-2.481-2.479 0-1.361 1.12-2.481 2.481-2.481 1.358 0 2.479 1.12 2.479 2.481z"},sendgrid:{title:"SendGrid",fill:"#51A9E3",d:"M.8 24h13.6c.88 0 1.6-.72 1.6-1.6v-4.8c0-.88-.72-1.6-1.6-1.6H9.6c-.88 0-1.6-.72-1.6-1.6V9.6C8 8.72 7.28 8 6.4 8H1.6C.72 8 0 8.72 0 9.6v13.6c0 .44.36.8.8.8zM23.2 0H9.6C8.72 0 8 .72 8 1.6v4.8C8 7.28 8.72 8 9.6 8h4.8c.88 0 1.6.72 1.6 1.6v4.8c0 .88.72 1.6 1.6 1.6h4.8c.88 0 1.6-.72 1.6-1.6V.8c0-.44-.36-.8-.8-.8Z"},mailgun:{title:"Mailgun",fill:"#F06B66",d:"M11.837 0c6.602 0 11.984 5.381 11.984 11.994-.017 2.99-3.264 4.84-5.844 3.331a3.805 3.805 0 0 1-.06-.035l-.055-.033-.022.055c-2.554 4.63-9.162 4.758-11.894.232-2.732-4.527.46-10.313 5.746-10.416a6.868 6.868 0 0 1 7.002 6.866 1.265 1.265 0 0 0 2.52 0c0-5.18-4.197-9.38-9.377-9.387C4.611 2.594.081 10.41 3.683 16.673c3.238 5.632 11.08 6.351 15.289 1.402l1.997 1.686A11.95 11.95 0 0 1 11.837 24C2.6 23.72-2.87 13.543 1.992 5.684A12.006 12.006 0 0 1 11.837 0Zm0 7.745c-3.276-.163-5.5 3.281-4.003 6.2a4.26 4.26 0 0 0 4.014 2.31c3.276-.171 5.137-3.824 3.35-6.575a4.26 4.26 0 0 0-3.36-1.935Zm0 2.53c1.324 0 2.152 1.433 1.49 2.58a1.72 1.72 0 0 1-1.49.86 1.72 1.72 0 1 1 0-3.44Z"},notion:{title:"Notion",fill:"currentColor",d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"},linear:{title:"Linear",fill:"#5E6AD2",d:"M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"},jira:{title:"Jira",fill:"#0052CC",d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"},hubspot:{title:"HubSpot",fill:"#FF7A59",d:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},paypal:{title:"PayPal",fill:"#003087",d:"M7.016 19.198h-4.2a.562.562 0 0 1-.555-.65L5.093.584A.692.692 0 0 1 5.776 0h7.222c3.417 0 5.904 2.488 5.846 5.5-.006.25-.027.5-.066.747A6.794 6.794 0 0 1 12.071 12H8.743a.69.69 0 0 0-.682.583l-.325 2.056-.013.083-.692 4.39-.015.087zM19.79 6.142c-.01.087-.01.175-.023.261a7.76 7.76 0 0 1-7.695 6.598H9.007l-.283 1.795-.013.083-.692 4.39-.134.843-.014.088H6.86l-.497 3.15a.562.562 0 0 0 .555.65h3.612c.34 0 .63-.249.683-.585l.952-6.031a.692.692 0 0 1 .683-.584h2.126a6.793 6.793 0 0 0 6.707-5.752c.306-1.95-.466-3.744-1.89-4.906z"},shopify:{title:"Shopify",fill:"#7AB55C",d:"M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z"},sentry:{title:"Sentry",fill:"#362D59",d:"M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"},vercel:{title:"Vercel",fill:"currentColor",d:"M24 22.525H0l12-21.05 12 21.05z"},supabase:{title:"Supabase",fill:"#3FCF8E",d:"M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"},clerk:{title:"Clerk",fill:"#6C47FF",d:"m21.47 20.829-2.881-2.881a.572.572 0 0 0-.7-.084 6.854 6.854 0 0 1-7.081 0 .576.576 0 0 0-.7.084l-2.881 2.881a.576.576 0 0 0-.103.69.57.57 0 0 0 .166.186 12 12 0 0 0 14.113 0 .58.58 0 0 0 .239-.423.576.576 0 0 0-.172-.453Zm.002-17.668-2.88 2.88a.569.569 0 0 1-.701.084A6.857 6.857 0 0 0 8.724 8.08a6.862 6.862 0 0 0-1.222 3.692 6.86 6.86 0 0 0 .978 3.764.573.573 0 0 1-.083.699l-2.881 2.88a.567.567 0 0 1-.864-.063A11.993 11.993 0 0 1 6.771 2.7a11.99 11.99 0 0 1 14.637-.405.566.566 0 0 1 .232.418.57.57 0 0 1-.168.448Zm-7.118 12.261a3.427 3.427 0 1 0 0-6.854 3.427 3.427 0 0 0 0 6.854Z"},aws:{title:"Amazon Web Services",fill:"#232F3E",d:"M6.763 10.036c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 0 1-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 0 1-.287-.375 6.18 6.18 0 0 1-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.391-.384-.59-.894-.59-1.533 0-.678.239-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.287 2.287 0 0 1-.28.104.488.488 0 0 1-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 0 1 .224-.167c.279-.144.614-.264 1.005-.36a4.84 4.84 0 0 1 1.246-.151c.95 0 1.644.216 2.091.647.439.43.662 1.085.662 1.963v2.586zm-3.24 1.214c.263 0 .534-.048.822-.144.287-.096.543-.271.758-.51.128-.152.224-.32.272-.512.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 0 0-.735-.136 6.02 6.02 0 0 0-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 5.55a1.398 1.398 0 0 1-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 0 1 .32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 0 1 .311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 0 1-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 0 1-.303.08h-.687c-.151 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32l-1.238-5.148-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 0 1-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.319.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 0 0 .415-.758.777.777 0 0 0-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 0 1-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .359.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 0 1 .24.2.43.43 0 0 1 .071.263v.375c0 .168-.064.256-.184.256a.83.83 0 0 1-.303-.096 3.652 3.652 0 0 0-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.159.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926-.144.272-.336.511-.583.703-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167zM21.698 16.207c-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351 3.384 1.963 7.559 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.439-.2.814.287.383.607zM22.792 14.961c-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151.32-.79 1.03-2.57.695-2.994z"},figma:{title:"Figma",fill:"#F24E1E",d:"M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"},airtable:{title:"Airtable",fill:"#18BFFF",d:"M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"},intercom:{title:"Intercom",fill:"#6AFDEF",d:"M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"},posthog:{title:"PostHog",fill:"currentColor",d:"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z"},datadog:{title:"Datadog",fill:"#632CA6",d:"M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"},algolia:{title:"Algolia",fill:"#003DFF",d:"M12 0C5.445 0 .103 5.285.01 11.817c-.097 6.634 5.285 12.131 11.92 12.17a11.91 11.91 0 0 0 5.775-1.443.281.281 0 0 0 .052-.457l-1.122-.994a.79.79 0 0 0-.833-.14 9.693 9.693 0 0 1-3.923.77c-5.36-.067-9.692-4.527-9.607-9.888.084-5.293 4.417-9.573 9.73-9.573h9.73v17.296l-5.522-4.907a.407.407 0 0 0-.596.063 4.52 4.52 0 0 1-3.934 1.793 4.538 4.538 0 0 1-4.192-4.168 4.53 4.53 0 0 1 4.512-4.872 4.532 4.532 0 0 1 4.509 4.126c.018.205.11.397.265.533l1.438 1.275a.28.28 0 0 0 .462-.158 6.82 6.82 0 0 0 .099-1.725c-.232-3.376-2.966-6.092-6.345-6.3-3.873-.24-7.11 2.79-7.214 6.588-.1 3.7 2.933 6.892 6.634 6.974a6.75 6.75 0 0 0 4.136-1.294l7.212 6.394a.48.48 0 0 0 .797-.36V.456A.456.456 0 0 0 23.54 0Z"},cloudflare:{title:"Cloudflare",fill:"#F38020",d:"M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727"},upstash:{title:"Upstash",fill:"#00E9A3",d:"M13.8027 0C11.193 0 8.583.9952 6.5918 2.9863c-3.9823 3.9823-3.9823 10.4396 0 14.4219 1.9911 1.9911 5.2198 1.9911 7.211 0 1.991-1.9911 1.991-5.2198 0-7.211L12 12c.9956.9956.9956 2.6098 0 3.6055-.9956.9955-2.6099.9955-3.6055 0-2.9866-2.9868-2.9866-7.8297 0-10.8164 2.9868-2.9868 7.8297-2.9868 10.8164 0l1.8028-1.8028C19.0225.9952 16.4125 0 13.8027 0zM12 12c-.9956-.9956-.9956-2.6098 0-3.6055.9956-.9955 2.6098-.9955 3.6055 0 2.9867 2.9868 2.9867 7.8297 0 10.8164-2.9867 2.9868-7.8297 2.9868-10.8164 0l-1.8028 1.8028c3.9823 3.9822 10.4396 3.9822 14.4219 0 3.9823-3.9824 3.9823-10.4396 0-14.4219-.9956-.9956-2.3006-1.4922-3.6055-1.4922-1.3048 0-2.6099.4966-3.6054 1.4922-1.9912 1.9912-1.9912 5.2198 0 7.211z"},mixpanel:{title:"Mixpanel",fill:"#7856FF",d:"M6.967 9.996h3.053c-.763-.477-1.048-1.145-1.431-2.384L7.443 3.366C6.919 1.458 6.49.551 4.39.551H.004v1.145h.621c1.286 0 1.431.477 1.814 1.908L3.44 7.326c.524 1.814 1.337 2.67 3.53 2.67h-.003Zm7.06 0h3.053c2.194 0 2.956-.86 3.484-2.67l1.001-3.722c.382-1.431.57-1.908 1.814-1.908H24V.551h-4.34c-2.146 0-2.576.86-3.053 2.815l-1.145 4.246c-.384 1.286-.673 1.907-1.435 2.384Zm-4.007 4.008h4.007V9.996H10.02v4.008ZM0 23.449h4.39c2.1 0 2.529-.907 3.053-2.815l1.146-4.246c.383-1.239.668-1.907 1.431-2.384H6.967c-2.194 0-3.007.86-3.531 2.67l-1.001 3.722c-.383 1.431-.524 1.907-1.814 1.907H0v1.146Zm19.65 0h4.343v-1.146h-.622c-1.239 0-1.431-.476-1.814-1.907l-1.001-3.722c-.524-1.814-1.286-2.67-3.483-2.67h-3.046c.762.477 1.041 1.098 1.424 2.384l1.145 4.246c.477 1.955.907 2.815 3.054 2.815Z"},gemini:{title:"Google Gemini",fill:"#8E75B2",d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}};var m1=E0(O8(),1),zN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function QJ({href:Q,onClick:U}){return m1.jsxDEV("h1",{children:m1.jsxDEV("a",{href:Q,onClick:U,children:[m1.jsxDEV("img",{src:zN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),m1.jsxDEV("span",{className:"brand-name",children:" Volter World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}async function L3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function hA(Q,U,Z=0,X=""){let[H,Y]=A2.useState({state:"loading"});return A2.useEffect(()=>{Y({state:"loading"})},[X,U]),A2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let B=await Q(U),T=B.ok?{state:"ok",data:await B.json()}:{state:"error",status:B.status,error:await L3(B)};if(W)Y(T)}catch(B){if(W)Y({state:"error",status:0,error:String(B)})}})(),()=>{W=!1}},[X,U,Z]),H}function v2({load:Q,what:U,retry:Z,lines:X=3}){if(Q.state==="loading")return m1.jsxDEV(WN,{lines:X,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return m1.jsxDEV("div",{role:"alert",className:"error-state",children:[m1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?m1.jsxDEV("button",{type:"button",onClick:Z,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function WN({lines:Q=3,label:U="Loading…"}){return m1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,X)=>m1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][X%5]}%`}},X,!1,void 0,this))},void 0,!1,void 0,this)}function R0({iso:Q,time:U}){if(!Q)return m1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return m1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var rF=(Q)=>Q?new Date(Q).toLocaleString():"—";function aF(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let Z=Math.max(0,Math.round((Date.now()-U)/1000));return Z<60?"just now":Z<3600?`${Math.round(Z/60)}m ago`:Z<86400?`${Math.round(Z/3600)}h ago`:`${Math.round(Z/86400)}d ago`}function r0(Q,U){let Z=U.replace(/[_-]+/g," "),X=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:X}`}var I8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,BN={github:"GitHub",openai:"OpenAI",aws:"AWS",hubspot:"HubSpot",paypal:"PayPal",youtube:"YouTube",tiktok:"TikTok",linkedin:"LinkedIn",xai:"xAI",sendgrid:"SendGrid",elevenlabs:"ElevenLabs",assemblyai:"AssemblyAI",planetscale:"PlanetScale",googleoauth:"Google sign-in",npm:"npm","npm-registry":"npm registry",posthog:"PostHog",mongodb:"MongoDB",pagerduty:"PagerDuty",mailgun:"Mailgun",turbopuffer:"turbopuffer"},c1=(Q)=>BN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function $2({vendor:Q}){let U=bA[Q];return m1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?m1.jsxDEV("svg",{viewBox:"0 0 24 24",children:m1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):c1(Q).charAt(0)},void 0,!1,void 0,this)}var EA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},LN="volter.theme",sF=()=>{try{let Q=localStorage.getItem(LN);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Wq(Q=sF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function xA(){return A2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(X)=>{if(X.key!=="Escape"||document.querySelector("dialog[open]"))return;let H=Q();if(!H.length)return;for(let Y of H)Y.removeAttribute("open");H[H.length-1].querySelector("summary")?.focus()},Z=(X)=>{let H=X.target;for(let Y of Q())if(!H||!Y.contains(H))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function R5({open:Q,onClose:U,title:Z,children:X,footer:H,wide:Y}){let W=A2.useRef(null),B=A2.useId();return A2.useEffect(()=>{let T=W.current;if(!T)return;if(Q&&!T.open){T.showModal();let R=T.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(R?.focus(),R instanceof HTMLInputElement&&R.value&&/^(text|search|email|url)$/.test(R.type))R.select()}if(!Q&&T.open)T.close()},[Q]),m1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":B,onClose:U,onCancel:(T)=>{T.preventDefault(),U()},onMouseDown:(T)=>{if(T.target===W.current)U()},children:Q?m1.jsxDEV(m1.Fragment,{children:[m1.jsxDEV("div",{className:"dialog-head",children:[m1.jsxDEV("h2",{id:B,children:Z},void 0,!1,void 0,this),m1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:U,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m1.jsxDEV("div",{className:"dialog-body",children:X},void 0,!1,void 0,this),H?m1.jsxDEV("div",{className:"dialog-foot",children:H},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var dF="volter:confirm";function u4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(dF,{detail:{ask:Q,resolve:U}}))})}function mA(){let[Q,U]=A2.useState(null),[Z,X]=A2.useState("");A2.useEffect(()=>{let B=(T)=>{X(""),U(T.detail)};return window.addEventListener(dF,B),()=>window.removeEventListener(dF,B)},[]);let H=(B)=>{Q?.resolve(B),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return m1.jsxDEV(R5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:m1.jsxDEV(m1.Fragment,{children:[m1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),m1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!W,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?m1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?m1.jsxDEV("div",{className:"typed-confirm",children:[m1.jsxDEV("p",{children:["Type ",m1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),m1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(B)=>X(B.target.value),onKeyDown:(B)=>{if(B.key==="Enter"&&W)H(!0)},autoComplete:"off",spellCheck:!1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}var iF="volter:toast";function c0(Q,U="ok"){window.dispatchEvent(new CustomEvent(iF,{detail:{text:Q,kind:U}}))}function gA(){let[Q,U]=A2.useState([]);return A2.useEffect(()=>{let Z=0,X=(H)=>{let{text:Y,kind:W}=H.detail,B=++Z;if(U((T)=>[...T.slice(-3),{id:B,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((T)=>T.filter((R)=>R.id!==B)),4500)};return window.addEventListener(iF,X),()=>window.removeEventListener(iF,X)},[]),m1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>m1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[m1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),m1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((X)=>X.filter((H)=>H.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function tF({value:Q,label:U,secret:Z}){let[X,H]=A2.useState(!1);return m1.jsxDEV("div",{className:"copy-field",children:[U?m1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,m1.jsxDEV("div",{className:"copy-row",children:[m1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),m1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),c0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>c0("Your browser would not copy it: select it and copy","error"))},children:X?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pA({label:Q,items:U}){return m1.jsxDEV("details",{className:"menu row-menu",children:[m1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),m1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?m1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:EA,children:Z.label},Z.label,!1,void 0,this):m1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(X)=>{EA(X),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function o7({title:Q,children:U,action:Z}){return m1.jsxDEV("div",{className:"empty-state",children:[m1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?m1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?m1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function cA(){return A2.useEffect(()=>{let Q=(Z)=>{let X=document.querySelector("main.app"),H=Z.target;if(X?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))X.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")AN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),m1.jsxDEV("button",{type:"button",className:"icon-button drawer-button","aria-label":"Menu",onClick:()=>{document.querySelector("main.app")?.toggleAttribute("data-drawer")},children:"☰"},void 0,!1,void 0,this)}var AN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var X1=E0(n5(),1);var Y1=E0(lA(),1),z1=E0(n5(),1);function m0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,X;Z<Q.length;Z++)if((X=m0(Q[Z]))!=="")U+=(U&&" ")+X}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var TN={value:()=>{}};function iA(){for(var Q=0,U=arguments.length,Z={},X;Q<U;++Q){if(!(X=arguments[Q]+"")||X in Z||/[\s.]/.test(X))throw Error("illegal type: "+X);Z[X]=[]}return new Bq(Z)}function Bq(Q){this._=Q}function RN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var X="",H=Z.indexOf(".");if(H>=0)X=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:X}})}Bq.prototype=iA.prototype={constructor:Bq,on:function(Q,U){var Z=this._,X=RN(Q+"",Z),H,Y=-1,W=X.length;if(arguments.length<2){while(++Y<W)if((H=(Q=X[Y]).type)&&(H=ON(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(H=(Q=X[Y]).type)Z[H]=dA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=dA(Z[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new Bq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),X=0,H,Y;X<H;++X)Z[X]=arguments[X+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],X=0,H=Y.length;X<H;++X)Y[X].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var X=this._[Q],H=0,Y=X.length;H<Y;++H)X[H].value.apply(U,Z)}};function ON(Q,U){for(var Z=0,X=Q.length,H;Z<X;++Z)if((H=Q[Z]).name===U)return H.value}function dA(Q,U,Z){for(var X=0,H=Q.length;X<H;++X)if(Q[X].name===U){Q[X]=TN,Q=Q.slice(0,X).concat(Q.slice(X+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var P8=iA;function n7(Q){return function(){return this.matches(Q)}}function Lq(Q){return function(U){return U.matches(Q)}}var Aq="http://www.w3.org/1999/xhtml",oF={svg:"http://www.w3.org/2000/svg",xhtml:Aq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function b4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return oF.hasOwnProperty(U)?{space:oF[U],local:Q}:Q}function nF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function V2(Q,U){if(Q=nF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var X=Z.createSVGPoint();return X.x=Q.clientX,X.y=Q.clientY,X=X.matrixTransform(U.getScreenCTM().inverse()),[X.x,X.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function IN(){}function M6(Q){return Q==null?IN:function(){return this.querySelector(Q)}}function eF(Q){if(typeof Q!=="function")Q=M6(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=X[H]=Array(W),T,R,M=0;M<W;++M)if((T=Y[M])&&(R=Q.call(T,T.__data__,M,Y))){if("__data__"in T)R.__data__=T.__data__;B[M]=R}return new l0(X,this._parents)}function _K(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function wN(){return[]}function e7(Q){return Q==null?wN:function(){return this.querySelectorAll(Q)}}function PN(Q){return function(){return _K(Q.apply(this,arguments))}}function JK(Q){if(typeof Q==="function")Q=PN(Q);else Q=e7(Q);for(var U=this._groups,Z=U.length,X=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])X.push(Q.call(T,T.__data__,R,W)),H.push(T);return new l0(X,H)}var NN=Array.prototype.find;function CN(Q){return function(){return NN.call(this.children,Q)}}function fN(){return this.firstElementChild}function $K(Q){return this.select(Q==null?fN:CN(typeof Q==="function"?Q:Lq(Q)))}var SN=Array.prototype.filter;function jN(){return Array.from(this.children)}function vN(Q){return function(){return SN.call(this.children,Q)}}function QK(Q){return this.selectAll(Q==null?jN:vN(typeof Q==="function"?Q:Lq(Q)))}function qK(Q){if(typeof Q!=="function")Q=n7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=X[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new l0(X,this._parents)}function qJ(Q){return Array(Q.length)}function UK(){return new l0(this._enter||this._groups.map(qJ),this._parents)}function UJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}UJ.prototype={constructor:UJ,appendChild:function(Q){return this._parent.insertBefore(Q,this._next)},insertBefore:function(Q,U){return this._parent.insertBefore(Q,U)},querySelector:function(Q){return this._parent.querySelector(Q)},querySelectorAll:function(Q){return this._parent.querySelectorAll(Q)}};function GK(Q){return function(){return Q}}function VN(Q,U,Z,X,H,Y){var W=0,B,T=U.length,R=Y.length;for(;W<R;++W)if(B=U[W])B.__data__=Y[W],X[W]=B;else Z[W]=new UJ(Q,Y[W]);for(;W<T;++W)if(B=U[W])H[W]=B}function yN(Q,U,Z,X,H,Y,W){var B,T,R=new Map,M=U.length,A=Y.length,O=Array(M),w;for(B=0;B<M;++B)if(T=U[B])if(O[B]=w=W.call(T,T.__data__,B,U)+"",R.has(w))H[B]=T;else R.set(w,T);for(B=0;B<A;++B)if(w=W.call(Q,Y[B],B,Y)+"",T=R.get(w))X[B]=T,T.__data__=Y[B],R.delete(w);else Z[B]=new UJ(Q,Y[B]);for(B=0;B<M;++B)if((T=U[B])&&R.get(O[B])===T)H[B]=T}function kN(Q){return Q.__data__}function ZK(Q,U){if(!arguments.length)return Array.from(this,kN);var Z=U?yN:VN,X=this._parents,H=this._groups;if(typeof Q!=="function")Q=GK(Q);for(var Y=H.length,W=Array(Y),B=Array(Y),T=Array(Y),R=0;R<Y;++R){var M=X[R],A=H[R],O=A.length,w=DN(Q.call(M,M&&M.__data__,R,X)),P=w.length,V=B[R]=Array(P),S=W[R]=Array(P),C=T[R]=Array(O);Z(M,A,V,S,C,w,U);for(var D=0,N=0,v,u;D<P;++D)if(v=V[D]){if(D>=N)N=D+1;while(!(u=S[N])&&++N<P);v._next=u||null}}return W=new l0(W,X),W._enter=B,W._exit=T,W}function DN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function FK(){return new l0(this._exit||this._groups.map(qJ),this._parents)}function KK(Q,U,Z){var X=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(X=Q(X),X)X=X.selection()}else X=X.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return X&&H?X.merge(H).order():H}function XK(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,X=U._groups,H=Z.length,Y=X.length,W=Math.min(H,Y),B=Array(H),T=0;T<W;++T)for(var R=Z[T],M=X[T],A=R.length,O=B[T]=Array(A),w,P=0;P<A;++P)if(w=R[P]||M[P])O[P]=w;for(;T<H;++T)B[T]=Z[T];return new l0(B,this._parents)}function HK(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var X=Q[U],H=X.length-1,Y=X[H],W;--H>=0;)if(W=X[H]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function YK(Q){if(!Q)Q=uN;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var Z=this._groups,X=Z.length,H=Array(X),Y=0;Y<X;++Y){for(var W=Z[Y],B=W.length,T=H[Y]=Array(B),R,M=0;M<B;++M)if(R=W[M])T[M]=R;T.sort(U)}return new l0(H,this._parents).order()}function uN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function zK(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function WK(){return Array.from(this)}function BK(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length;H<Y;++H){var W=X[H];if(W)return W}return null}function LK(){let Q=0;for(let U of this)++Q;return Q}function AK(){return!this.node()}function MK(Q){for(var U=this._groups,Z=0,X=U.length;Z<X;++Z)for(var H=U[Z],Y=0,W=H.length,B;Y<W;++Y)if(B=H[Y])Q.call(B,B.__data__,Y,H);return this}function bN(Q){return function(){this.removeAttribute(Q)}}function EN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function hN(Q,U){return function(){this.setAttribute(Q,U)}}function xN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function mN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function gN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,Z)}}function TK(Q,U){var Z=b4(Q);if(arguments.length<2){var X=this.node();return Z.local?X.getAttributeNS(Z.space,Z.local):X.getAttribute(Z)}return this.each((U==null?Z.local?EN:bN:typeof U==="function"?Z.local?gN:mN:Z.local?xN:hN)(Z,U))}function GJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function pN(Q){return function(){this.style.removeProperty(Q)}}function cN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function lN(Q,U,Z){return function(){var X=U.apply(this,arguments);if(X==null)this.style.removeProperty(Q);else this.style.setProperty(Q,X,Z)}}function RK(Q,U,Z){return arguments.length>1?this.each((U==null?pN:typeof U==="function"?lN:cN)(Q,U,Z==null?"":Z)):T6(this.node(),Q)}function T6(Q,U){return Q.style.getPropertyValue(U)||GJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function dN(Q){return function(){delete this[Q]}}function iN(Q,U){return function(){this[Q]=U}}function rN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function OK(Q,U){return arguments.length>1?this.each((U==null?dN:typeof U==="function"?rN:iN)(Q,U)):this.node()[Q]}function rA(Q){return Q.trim().split(/^|\s+/)}function IK(Q){return Q.classList||new aA(Q)}function aA(Q){this._node=Q,this._names=rA(Q.getAttribute("class")||"")}aA.prototype={add:function(Q){var U=this._names.indexOf(Q);if(U<0)this._names.push(Q),this._node.setAttribute("class",this._names.join(" "))},remove:function(Q){var U=this._names.indexOf(Q);if(U>=0)this._names.splice(U,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(Q){return this._names.indexOf(Q)>=0}};function sA(Q,U){var Z=IK(Q),X=-1,H=U.length;while(++X<H)Z.add(U[X])}function tA(Q,U){var Z=IK(Q),X=-1,H=U.length;while(++X<H)Z.remove(U[X])}function aN(Q){return function(){sA(this,Q)}}function sN(Q){return function(){tA(this,Q)}}function tN(Q,U){return function(){(U.apply(this,arguments)?sA:tA)(this,Q)}}function wK(Q,U){var Z=rA(Q+"");if(arguments.length<2){var X=IK(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!X.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?tN:U?aN:sN)(Z,U))}function oN(){this.textContent=""}function nN(Q){return function(){this.textContent=Q}}function eN(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function PK(Q){return arguments.length?this.each(Q==null?oN:(typeof Q==="function"?eN:nN)(Q)):this.node().textContent}function _C(){this.innerHTML=""}function JC(Q){return function(){this.innerHTML=Q}}function $C(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function NK(Q){return arguments.length?this.each(Q==null?_C:(typeof Q==="function"?$C:JC)(Q)):this.node().innerHTML}function QC(){if(this.nextSibling)this.parentNode.appendChild(this)}function CK(){return this.each(QC)}function qC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fK(){return this.each(qC)}function UC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Aq&&U.documentElement.namespaceURI===Aq?U.createElement(Q):U.createElementNS(Z,Q)}}function GC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function ZJ(Q){var U=b4(Q);return(U.local?GC:UC)(U)}function SK(Q){var U=typeof Q==="function"?Q:ZJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function ZC(){return null}function jK(Q,U){var Z=typeof Q==="function"?Q:ZJ(Q),X=U==null?ZC:typeof U==="function"?U:M6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),X.apply(this,arguments)||null)})}function FC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function vK(){return this.each(FC)}function KC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function XC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function VK(Q){return this.select(Q?XC:KC)}function yK(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function HC(Q){return function(U){Q.call(this,U,this.__data__)}}function YC(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",X=U.indexOf(".");if(X>=0)Z=U.slice(X+1),U=U.slice(0,X);return{type:U,name:Z}})}function zC(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,X=-1,H=U.length,Y;Z<H;++Z)if(Y=U[Z],(!Q.type||Y.type===Q.type)&&Y.name===Q.name)this.removeEventListener(Y.type,Y.listener,Y.options);else U[++X]=Y;if(++X)U.length=X;else delete this.__on}}function WC(Q,U,Z){return function(){var X=this.__on,H,Y=HC(U);if(X){for(var W=0,B=X.length;W<B;++W)if((H=X[W]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=Z),H.value=U;return}}if(this.addEventListener(Q.type,Y,Z),H={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!X)this.__on=[H];else X.push(H)}}function kK(Q,U,Z){var X=YC(Q+""),H,Y=X.length,W;if(arguments.length<2){var B=this.node().__on;if(B){for(var T=0,R=B.length,M;T<R;++T)for(H=0,M=B[T];H<Y;++H)if((W=X[H]).type===M.type&&W.name===M.name)return M.value}return}B=U?WC:zC;for(H=0;H<Y;++H)this.each(B(X[H],U,Z));return this}function oA(Q,U,Z){var X=GJ(Q),H=X.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=X.document.createEvent("Event"),Z)H.initEvent(U,Z.bubbles,Z.cancelable),H.detail=Z.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function BC(Q,U){return function(){return oA(this,Q,U)}}function LC(Q,U){return function(){return oA(this,Q,U.apply(this,arguments))}}function DK(Q,U){return this.each((typeof U==="function"?LC:BC)(Q,U))}function*uK(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length,W;H<Y;++H)if(W=X[H])yield W}var bK=[null];function l0(Q,U){this._groups=Q,this._parents=U}function nA(){return new l0([[document.documentElement]],bK)}function AC(){return this}l0.prototype=nA.prototype={constructor:l0,select:eF,selectAll:JK,selectChild:$K,selectChildren:QK,filter:qK,data:ZK,enter:UK,exit:FK,join:KK,merge:XK,selection:AC,order:HK,sort:YK,call:zK,nodes:WK,node:BK,size:LK,empty:AK,each:MK,attr:TK,style:RK,property:OK,classed:wK,text:PK,html:NK,raise:CK,lower:fK,append:SK,insert:jK,remove:vK,clone:VK,datum:yK,on:kK,dispatch:DK,[Symbol.iterator]:uK};var A3=nA;function F2(Q){return typeof Q==="string"?new l0([[document.querySelector(Q)]],[document.documentElement]):new l0([[Q]],bK)}var eA={passive:!1},N8={capture:!0,passive:!1};function Mq(Q){Q.stopImmediatePropagation()}function M3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function _9(Q){var U=Q.document.documentElement,Z=F2(Q).on("dragstart.drag",M3,N8);if("onselectstart"in U)Z.on("selectstart.drag",M3,N8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function FJ(Q,U){var Z=Q.document.documentElement,X=F2(Q).on("dragstart.drag",null);if(U)X.on("click.drag",M3,N8),setTimeout(function(){X.on("click.drag",null)},0);if("onselectstart"in Z)X.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var KJ=(Q)=>()=>Q;function XJ(Q,{sourceEvent:U,subject:Z,target:X,identifier:H,active:Y,x:W,y:B,dx:T,dy:R,dispatch:M}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:Z,enumerable:!0,configurable:!0},target:{value:X,enumerable:!0,configurable:!0},identifier:{value:H,enumerable:!0,configurable:!0},active:{value:Y,enumerable:!0,configurable:!0},x:{value:W,enumerable:!0,configurable:!0},y:{value:B,enumerable:!0,configurable:!0},dx:{value:T,enumerable:!0,configurable:!0},dy:{value:R,enumerable:!0,configurable:!0},_:{value:M}})}XJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function MC(Q){return!Q.ctrlKey&&!Q.button}function TC(){return this.parentNode}function RC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function OC(){return navigator.maxTouchPoints||"ontouchstart"in this}function HJ(){var Q=MC,U=TC,Z=RC,X=OC,H={},Y=P8("start","drag","end"),W=0,B,T,R,M,A=0;function O(v){v.on("mousedown.drag",w).filter(X).on("touchstart.drag",S).on("touchmove.drag",C,eA).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(v,u){if(M||!Q.call(this,v,u))return;var h=N(this,U.call(this,v,u),v,u,"mouse");if(!h)return;F2(v.view).on("mousemove.drag",P,N8).on("mouseup.drag",V,N8),_9(v.view),Mq(v),R=!1,B=v.clientX,T=v.clientY,h("start",v)}function P(v){if(M3(v),!R){var u=v.clientX-B,h=v.clientY-T;R=u*u+h*h>A}H.mouse("drag",v)}function V(v){F2(v.view).on("mousemove.drag mouseup.drag",null),FJ(v.view,R),M3(v),H.mouse("end",v)}function S(v,u){if(!Q.call(this,v,u))return;var h=v.changedTouches,k=U.call(this,v,u),b=h.length,E,m;for(E=0;E<b;++E)if(m=N(this,k,v,u,h[E].identifier,h[E]))Mq(v),m("start",v,h[E])}function C(v){var u=v.changedTouches,h=u.length,k,b;for(k=0;k<h;++k)if(b=H[u[k].identifier])M3(v),b("drag",v,u[k])}function D(v){var u=v.changedTouches,h=u.length,k,b;if(M)clearTimeout(M);M=setTimeout(function(){M=null},500);for(k=0;k<h;++k)if(b=H[u[k].identifier])Mq(v),b("end",v,u[k])}function N(v,u,h,k,b,E){var m=Y.copy(),e=V2(E||h,u),Q1,J1,x;if((x=Z.call(v,new XJ("beforestart",{sourceEvent:h,target:O,identifier:b,active:W,x:e[0],y:e[1],dx:0,dy:0,dispatch:m}),k))==null)return;return Q1=x.x-e[0]||0,J1=x.y-e[1]||0,function g(c,a,d){var t=e,y;switch(c){case"start":H[b]=g,y=W++;break;case"end":delete H[b],--W;case"drag":e=V2(d||a,u),y=W;break}m.call(c,v,new XJ(c,{sourceEvent:a,subject:x,target:O,identifier:b,active:y,x:e[0]+Q1,y:e[1]+J1,dx:e[0]-t[0],dy:e[1]-t[1],dispatch:m}),k)}}return O.filter=function(v){return arguments.length?(Q=typeof v==="function"?v:KJ(!!v),O):Q},O.container=function(v){return arguments.length?(U=typeof v==="function"?v:KJ(v),O):U},O.subject=function(v){return arguments.length?(Z=typeof v==="function"?v:KJ(v),O):Z},O.touchable=function(v){return arguments.length?(X=typeof v==="function"?v:KJ(!!v),O):X},O.on=function(){var v=Y.on.apply(Y,arguments);return v===Y?O:v},O.clickDistance=function(v){return arguments.length?(A=(v=+v)*v,O):Math.sqrt(A)},O}function YJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function EK(Q,U){var Z=Object.create(Q.prototype);for(var X in U)Z[X]=U[X];return Z}function BJ(){}var zJ=0.7,Oq=1/zJ,J9="\\s*([+-]?\\d+)\\s*",WJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",E4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IC=/^#([0-9a-f]{3,8})$/,wC=new RegExp(`^rgb\\(${J9},${J9},${J9}\\)$`),PC=new RegExp(`^rgb\\(${E4},${E4},${E4}\\)$`),NC=new RegExp(`^rgba\\(${J9},${J9},${J9},${WJ}\\)$`),CC=new RegExp(`^rgba\\(${E4},${E4},${E4},${WJ}\\)$`),fC=new RegExp(`^hsl\\(${WJ},${E4},${E4}\\)$`),SC=new RegExp(`^hsla\\(${WJ},${E4},${E4},${WJ}\\)$`),_M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};YJ(BJ,_4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:JM,formatHex:JM,formatHex8:jC,formatHsl:vC,formatRgb:$M,toString:$M});function JM(){return this.rgb().formatHex()}function jC(){return this.rgb().formatHex8()}function vC(){return FM(this).formatHsl()}function $M(){return this.rgb().formatRgb()}function _4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=IC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?QM(U):Z===3?new q5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Tq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Tq(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=wC.exec(Q))?new q5(U[1],U[2],U[3],1):(U=PC.exec(Q))?new q5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=NC.exec(Q))?Tq(U[1],U[2],U[3],U[4]):(U=CC.exec(Q))?Tq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=fC.exec(Q))?GM(U[1],U[2]/100,U[3]/100,1):(U=SC.exec(Q))?GM(U[1],U[2]/100,U[3]/100,U[4]):_M.hasOwnProperty(Q)?QM(_M[Q]):Q==="transparent"?new q5(NaN,NaN,NaN,0):null}function QM(Q){return new q5(Q>>16&255,Q>>8&255,Q&255,1)}function Tq(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;return new q5(Q,U,Z,X)}function VC(Q){if(!(Q instanceof BJ))Q=_4(Q);if(!Q)return new q5;return Q=Q.rgb(),new q5(Q.r,Q.g,Q.b,Q.opacity)}function $9(Q,U,Z,X){return arguments.length===1?VC(Q):new q5(Q,U,Z,X==null?1:X)}function q5(Q,U,Z,X){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+X}YJ(q5,$9,EK(BJ,{brighter(Q){return Q=Q==null?Oq:Math.pow(Oq,Q),new q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?zJ:Math.pow(zJ,Q),new q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new q5(f8(this.r),f8(this.g),f8(this.b),Iq(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:qM,formatHex:qM,formatHex8:yC,formatRgb:UM,toString:UM}));function qM(){return`#${C8(this.r)}${C8(this.g)}${C8(this.b)}`}function yC(){return`#${C8(this.r)}${C8(this.g)}${C8(this.b)}${C8((isNaN(this.opacity)?1:this.opacity)*255)}`}function UM(){let Q=Iq(this.opacity);return`${Q===1?"rgb(":"rgba("}${f8(this.r)}, ${f8(this.g)}, ${f8(this.b)}${Q===1?")":`, ${Q})`}`}function Iq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function f8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function C8(Q){return Q=f8(Q),(Q<16?"0":"")+Q.toString(16)}function GM(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new e5(Q,U,Z,X)}function FM(Q){if(Q instanceof e5)return new e5(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof BJ))Q=_4(Q);if(!Q)return new e5;if(Q instanceof e5)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,X=Q.b/255,H=Math.min(U,Z,X),Y=Math.max(U,Z,X),W=NaN,B=Y-H,T=(Y+H)/2;if(B){if(U===Y)W=(Z-X)/B+(Z<X)*6;else if(Z===Y)W=(X-U)/B+2;else W=(U-Z)/B+4;B/=T<0.5?Y+H:2-Y-H,W*=60}else B=T>0&&T<1?0:W;return new e5(W,B,T,Q.opacity)}function KM(Q,U,Z,X){return arguments.length===1?FM(Q):new e5(Q,U,Z,X==null?1:X)}function e5(Q,U,Z,X){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+X}YJ(e5,KM,EK(BJ,{brighter(Q){return Q=Q==null?Oq:Math.pow(Oq,Q),new e5(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?zJ:Math.pow(zJ,Q),new e5(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,X=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-X;return new q5(hK(Q>=240?Q-240:Q+120,H,X),hK(Q,H,X),hK(Q<120?Q+240:Q-120,H,X),this.opacity)},clamp(){return new e5(ZM(this.h),Rq(this.s),Rq(this.l),Iq(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let Q=Iq(this.opacity);return`${Q===1?"hsl(":"hsla("}${ZM(this.h)}, ${Rq(this.s)*100}%, ${Rq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function ZM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Rq(Q){return Math.max(0,Math.min(1,Q||0))}function hK(Q,U,Z){return(Q<60?U+(Z-U)*Q/60:Q<180?Z:Q<240?U+(Z-U)*(240-Q)/60:U)*255}function xK(Q,U,Z,X,H){var Y=Q*Q,W=Y*Q;return((1-3*Q+3*Y-W)*U+(4-6*Y+3*W)*Z+(1+3*Q+3*Y-3*W)*X+W*H)/6}function mK(Q){var U=Q.length-1;return function(Z){var X=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[X],Y=Q[X+1],W=X>0?Q[X-1]:2*H-Y,B=X<U-1?Q[X+2]:2*Y-H;return xK((Z-X/U)*U,W,H,Y,B)}}function gK(Q){var U=Q.length;return function(Z){var X=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(X+U-1)%U],Y=Q[X%U],W=Q[(X+1)%U],B=Q[(X+2)%U];return xK((Z-X/U)*U,H,Y,W,B)}}var LJ=(Q)=>()=>Q;function kC(Q,U){return function(Z){return Q+Z*U}}function DC(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(X){return Math.pow(Q+X*U,Z)}}function XM(Q){return(Q=+Q)===1?wq:function(U,Z){return Z-U?DC(U,Z,Q):LJ(isNaN(U)?Z:U)}}function wq(Q,U){var Z=U-Q;return Z?kC(Q,Z):LJ(isNaN(Q)?U:Q)}var S8=function Q(U){var Z=XM(U);function X(H,Y){var W=Z((H=$9(H)).r,(Y=$9(Y)).r),B=Z(H.g,Y.g),T=Z(H.b,Y.b),R=wq(H.opacity,Y.opacity);return function(M){return H.r=W(M),H.g=B(M),H.b=T(M),H.opacity=R(M),H+""}}return X.gamma=Q,X}(1);function HM(Q){return function(U){var Z=U.length,X=Array(Z),H=Array(Z),Y=Array(Z),W,B;for(W=0;W<Z;++W)B=$9(U[W]),X[W]=B.r||0,H[W]=B.g||0,Y[W]=B.b||0;return X=Q(X),H=Q(H),Y=Q(Y),B.opacity=1,function(T){return B.r=X(T),B.g=H(T),B.b=Y(T),B+""}}}var uC=HM(mK),bC=HM(gK);function pK(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,X=U.slice(),H;return function(Y){for(H=0;H<Z;++H)X[H]=Q[H]*(1-Y)+U[H]*Y;return X}}function YM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function zM(Q,U){var Z=U?U.length:0,X=Q?Math.min(Z,Q.length):0,H=Array(X),Y=Array(Z),W;for(W=0;W<X;++W)H[W]=h4(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(B){for(W=0;W<X;++W)Y[W]=H[W](B);return Y}}function cK(Q,U){var Z=new Date;return Q=+Q,U=+U,function(X){return Z.setTime(Q*(1-X)+U*X),Z}}function y2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function lK(Q,U){var Z={},X={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)Z[H]=h4(Q[H],U[H]);else X[H]=U[H];return function(Y){for(H in Z)X[H]=Z[H](Y);return X}}var iK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dK=new RegExp(iK.source,"g");function EC(Q){return function(){return Q}}function hC(Q){return function(U){return Q(U)+""}}function Q9(Q,U){var Z=iK.lastIndex=dK.lastIndex=0,X,H,Y,W=-1,B=[],T=[];Q=Q+"",U=U+"";while((X=iK.exec(Q))&&(H=dK.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),B[W])B[W]+=Y;else B[++W]=Y;if((X=X[0])===(H=H[0]))if(B[W])B[W]+=H;else B[++W]=H;else B[++W]=null,T.push({i:W,x:y2(X,H)});Z=dK.lastIndex}if(Z<U.length)if(Y=U.slice(Z),B[W])B[W]+=Y;else B[++W]=Y;return B.length<2?T[0]?hC(T[0].x):EC(U):(U=T.length,function(R){for(var M=0,A;M<U;++M)B[(A=T[M]).i]=A.x(R);return B.join("")})}function h4(Q,U){var Z=typeof U,X;return U==null||Z==="boolean"?LJ(U):(Z==="number"?y2:Z==="string"?(X=_4(U))?(U=X,S8):Q9:U instanceof _4?S8:U instanceof Date?cK:YM(U)?pK:Array.isArray(U)?zM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?lK:y2)(Q,U)}var WM=180/Math.PI,Pq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Nq(Q,U,Z,X,H,Y){var W,B,T;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(T=Q*Z+U*X)Z-=Q*T,X-=U*T;if(B=Math.sqrt(Z*Z+X*X))Z/=B,X/=B,T/=B;if(Q*X<U*Z)Q=-Q,U=-U,T=-T,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*WM,skewX:Math.atan(T)*WM,scaleX:W,scaleY:B}}var Cq;function BM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Pq:Nq(U.a,U.b,U.c,U.d,U.e,U.f)}function LM(Q){if(Q==null)return Pq;if(!Cq)Cq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Cq.setAttribute("transform",Q),!(Q=Cq.transform.baseVal.consolidate()))return Pq;return Q=Q.matrix,Nq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function AM(Q,U,Z,X){function H(R){return R.length?R.pop()+" ":""}function Y(R,M,A,O,w,P){if(R!==A||M!==O){var V=w.push("translate(",null,U,null,Z);P.push({i:V-4,x:y2(R,A)},{i:V-2,x:y2(M,O)})}else if(A||O)w.push("translate("+A+U+O+Z)}function W(R,M,A,O){if(R!==M){if(R-M>180)M+=360;else if(M-R>180)R+=360;O.push({i:A.push(H(A)+"rotate(",null,X)-2,x:y2(R,M)})}else if(M)A.push(H(A)+"rotate("+M+X)}function B(R,M,A,O){if(R!==M)O.push({i:A.push(H(A)+"skewX(",null,X)-2,x:y2(R,M)});else if(M)A.push(H(A)+"skewX("+M+X)}function T(R,M,A,O,w,P){if(R!==A||M!==O){var V=w.push(H(w)+"scale(",null,",",null,")");P.push({i:V-4,x:y2(R,A)},{i:V-2,x:y2(M,O)})}else if(A!==1||O!==1)w.push(H(w)+"scale("+A+","+O+")")}return function(R,M){var A=[],O=[];return R=Q(R),M=Q(M),Y(R.translateX,R.translateY,M.translateX,M.translateY,A,O),W(R.rotate,M.rotate,A,O),B(R.skewX,M.skewX,A,O),T(R.scaleX,R.scaleY,M.scaleX,M.scaleY,A,O),R=M=null,function(w){var P=-1,V=O.length,S;while(++P<V)A[(S=O[P]).i]=S.x(w);return A.join("")}}}var rK=AM(BM,"px, ","px)","deg)"),aK=AM(LM,", ",")",")");var xC=0.000000000001;function MM(Q){return((Q=Math.exp(Q))+1/Q)/2}function mC(Q){return((Q=Math.exp(Q))-1/Q)/2}function gC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var j8=function Q(U,Z,X){function H(Y,W){var B=Y[0],T=Y[1],R=Y[2],M=W[0],A=W[1],O=W[2],w=M-B,P=A-T,V=w*w+P*P,S,C;if(V<xC)C=Math.log(O/R)/U,S=function(k){return[B+k*w,T+k*P,R*Math.exp(U*k*C)]};else{var D=Math.sqrt(V),N=(O*O-R*R+X*V)/(2*R*Z*D),v=(O*O-R*R-X*V)/(2*O*Z*D),u=Math.log(Math.sqrt(N*N+1)-N),h=Math.log(Math.sqrt(v*v+1)-v);C=(h-u)/U,S=function(k){var b=k*C,E=MM(u),m=R/(Z*D)*(E*gC(U*b+u)-mC(u));return[B+m*w,T+m*P,R*E/MM(U*b+u)]}}return S.duration=C*1000*U/Math.SQRT2,S}return H.rho=function(Y){var W=Math.max(0.001,+Y),B=W*W,T=B*B;return Q(W,B,T)},H}(Math.SQRT2,2,4);var q9=0,MJ=0,AJ=0,RM=1000,fq,TJ,Sq=0,v8=0,jq=0,RJ=typeof performance==="object"&&performance.now?performance:Date,OM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function IJ(){return v8||(OM(pC),v8=RJ.now()+jq)}function pC(){v8=0}function OJ(){this._call=this._time=this._next=null}OJ.prototype=vq.prototype={constructor:OJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?IJ():+Z)+(U==null?0:+U),!this._next&&TJ!==this){if(TJ)TJ._next=this;else fq=this;TJ=this}this._call=Q,this._time=Z,sK()},stop:function(){if(this._call)this._call=null,this._time=1/0,sK()}};function vq(Q,U,Z){var X=new OJ;return X.restart(Q,U,Z),X}function IM(){IJ(),++q9;var Q=fq,U;while(Q){if((U=v8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--q9}function TM(){v8=(Sq=RJ.now())+jq,q9=MJ=0;try{IM()}finally{q9=0,lC(),v8=0}}function cC(){var Q=RJ.now(),U=Q-Sq;if(U>RM)jq-=U,Sq=Q}function lC(){var Q,U=fq,Z,X=1/0;while(U)if(U._call){if(X>U._time)X=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:fq=Z;TJ=Q,sK(X)}function sK(Q){if(q9)return;if(MJ)MJ=clearTimeout(MJ);var U=Q-v8;if(U>24){if(Q<1/0)MJ=setTimeout(TM,Q-RJ.now()-jq);if(AJ)AJ=clearInterval(AJ)}else{if(!AJ)Sq=RJ.now(),AJ=setInterval(cC,RM);q9=1,OM(TM)}}function wJ(Q,U,Z){var X=new OJ;return U=U==null?0:+U,X.restart((H)=>{X.stop(),Q(H+U)},U,Z),X}var dC=P8("start","end","cancel","interrupt"),iC=[],NM=0,wM=1,yq=2,Vq=3,PM=4,kq=5,PJ=6;function T3(Q,U,Z,X,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;rC(Q,Z,{name:U,index:X,group:H,on:dC,tween:iC,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:NM})}function NJ(Q,U){var Z=K2(Q,U);if(Z.state>NM)throw Error("too late; already scheduled");return Z}function w2(Q,U){var Z=K2(Q,U);if(Z.state>Vq)throw Error("too late; already running");return Z}function K2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function rC(Q,U,Z){var X=Q.__transition,H;X[U]=Z,Z.timer=vq(Y,0,Z.time);function Y(R){if(Z.state=wM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=R)W(R-Z.delay)}function W(R){var M,A,O,w;if(Z.state!==wM)return T();for(M in X){if(w=X[M],w.name!==Z.name)continue;if(w.state===Vq)return wJ(W);if(w.state===PM)w.state=PJ,w.timer.stop(),w.on.call("interrupt",Q,Q.__data__,w.index,w.group),delete X[M];else if(+M<U)w.state=PJ,w.timer.stop(),w.on.call("cancel",Q,Q.__data__,w.index,w.group),delete X[M]}if(wJ(function(){if(Z.state===Vq)Z.state=PM,Z.timer.restart(B,Z.delay,Z.time),B(R)}),Z.state=yq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==yq)return;Z.state=Vq,H=Array(O=Z.tween.length);for(M=0,A=-1;M<O;++M)if(w=Z.tween[M].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=w;H.length=A+1}function B(R){var M=R<Z.duration?Z.ease.call(null,R/Z.duration):(Z.timer.restart(T),Z.state=kq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,M);if(Z.state===kq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),T()}function T(){Z.state=PJ,Z.timer.stop(),delete X[U];for(var R in X)return;delete Q.__transition}}function R6(Q,U){var Z=Q.__transition,X,H,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((X=Z[W]).name!==U){Y=!1;continue}H=X.state>yq&&X.state<kq,X.state=PJ,X.timer.stop(),X.on.call(H?"interrupt":"cancel",Q,Q.__data__,X.index,X.group),delete Z[W]}if(Y)delete Q.__transition}function tK(Q){return this.each(function(){R6(this,Q)})}function aC(Q,U){var Z,X;return function(){var H=w2(this,Q),Y=H.tween;if(Y!==Z){X=Z=Y;for(var W=0,B=X.length;W<B;++W)if(X[W].name===U){X=X.slice(),X.splice(W,1);break}}H.tween=X}}function sC(Q,U,Z){var X,H;if(typeof Z!=="function")throw Error();return function(){var Y=w2(this,Q),W=Y.tween;if(W!==X){H=(X=W).slice();for(var B={name:U,value:Z},T=0,R=H.length;T<R;++T)if(H[T].name===U){H[T]=B;break}if(T===R)H.push(B)}Y.tween=H}}function oK(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var X=K2(this.node(),Z).tween;for(var H=0,Y=X.length,W;H<Y;++H)if((W=X[H]).name===Q)return W.value;return null}return this.each((U==null?aC:sC)(Z,Q,U))}function U9(Q,U,Z){var X=Q._id;return Q.each(function(){var H=w2(this,X);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return K2(H,X).value[U]}}function CJ(Q,U){var Z;return(typeof U==="number"?y2:U instanceof _4?S8:(Z=_4(U))?(U=Z,S8):Q9)(Q,U)}function tC(Q){return function(){this.removeAttribute(Q)}}function oC(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function nC(Q,U,Z){var X,H=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===H?null:W===X?Y:Y=U(X=W,Z)}}function eC(Q,U,Z){var X,H=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===H?null:W===X?Y:Y=U(X=W,Z)}}function _f(Q,U,Z){var X,H,Y;return function(){var W,B=Z(this),T;if(B==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),T=B+"",W===T?null:W===X&&T===H?Y:(H=T,Y=U(X=W,B))}}function Jf(Q,U,Z){var X,H,Y;return function(){var W,B=Z(this),T;if(B==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),T=B+"",W===T?null:W===X&&T===H?Y:(H=T,Y=U(X=W,B))}}function nK(Q,U){var Z=b4(Q),X=Z==="transform"?aK:CJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Jf:_f)(Z,X,U9(this,"attr."+Q,U)):U==null?(Z.local?oC:tC)(Z):(Z.local?eC:nC)(Z,X,U))}function $f(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Qf(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function qf(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&Qf(Q,Y);return Z}return H._value=U,H}function Uf(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&$f(Q,Y);return Z}return H._value=U,H}function eK(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var X=b4(Q);return this.tween(Z,(X.local?qf:Uf)(X,U))}function Gf(Q,U){return function(){NJ(this,Q).delay=+U.apply(this,arguments)}}function Zf(Q,U){return U=+U,function(){NJ(this,Q).delay=U}}function _X(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Gf:Zf)(U,Q)):K2(this.node(),U).delay}function Ff(Q,U){return function(){w2(this,Q).duration=+U.apply(this,arguments)}}function Kf(Q,U){return U=+U,function(){w2(this,Q).duration=U}}function JX(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Ff:Kf)(U,Q)):K2(this.node(),U).duration}function Xf(Q,U){if(typeof U!=="function")throw Error();return function(){w2(this,Q).ease=U}}function $X(Q){var U=this._id;return arguments.length?this.each(Xf(U,Q)):K2(this.node(),U).ease}function Hf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();w2(this,Q).ease=Z}}function QX(Q){if(typeof Q!=="function")throw Error();return this.each(Hf(this._id,Q))}function qX(Q){if(typeof Q!=="function")Q=n7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=X[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new r2(X,this._parents,this._name,this._id)}function UX(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,X=U.length,H=Z.length,Y=Math.min(X,H),W=Array(X),B=0;B<Y;++B)for(var T=U[B],R=Z[B],M=T.length,A=W[B]=Array(M),O,w=0;w<M;++w)if(O=T[w]||R[w])A[w]=O;for(;B<X;++B)W[B]=U[B];return new r2(W,this._parents,this._name,this._id)}function Yf(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var Z=U.indexOf(".");if(Z>=0)U=U.slice(0,Z);return!U||U==="start"})}function zf(Q,U,Z){var X,H,Y=Yf(U)?NJ:w2;return function(){var W=Y(this,Q),B=W.on;if(B!==X)(H=(X=B).copy()).on(U,Z);W.on=H}}function GX(Q,U){var Z=this._id;return arguments.length<2?K2(this.node(),Z).on.on(Q):this.each(zf(Z,Q,U))}function Wf(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function ZX(){return this.on("end.remove",Wf(this._id))}function FX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=M6(Q);for(var X=this._groups,H=X.length,Y=Array(H),W=0;W<H;++W)for(var B=X[W],T=B.length,R=Y[W]=Array(T),M,A,O=0;O<T;++O)if((M=B[O])&&(A=Q.call(M,M.__data__,O,B))){if("__data__"in M)A.__data__=M.__data__;R[O]=A,T3(R[O],U,Z,O,R,K2(M,Z))}return new r2(Y,this._parents,U,Z)}function KX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=e7(Q);for(var X=this._groups,H=X.length,Y=[],W=[],B=0;B<H;++B)for(var T=X[B],R=T.length,M,A=0;A<R;++A)if(M=T[A]){for(var O=Q.call(M,M.__data__,A,T),w,P=K2(M,Z),V=0,S=O.length;V<S;++V)if(w=O[V])T3(w,U,Z,V,O,P);Y.push(O),W.push(M)}return new r2(Y,W,U,Z)}var Bf=A3.prototype.constructor;function XX(){return new Bf(this._groups,this._parents)}function Lf(Q,U){var Z,X,H;return function(){var Y=T6(this,Q),W=(this.style.removeProperty(Q),T6(this,Q));return Y===W?null:Y===Z&&W===X?H:H=U(Z=Y,X=W)}}function CM(Q){return function(){this.style.removeProperty(Q)}}function Af(Q,U,Z){var X,H=Z+"",Y;return function(){var W=T6(this,Q);return W===H?null:W===X?Y:Y=U(X=W,Z)}}function Mf(Q,U,Z){var X,H,Y;return function(){var W=T6(this,Q),B=Z(this),T=B+"";if(B==null)T=B=(this.style.removeProperty(Q),T6(this,Q));return W===T?null:W===X&&T===H?Y:(H=T,Y=U(X=W,B))}}function Tf(Q,U){var Z,X,H,Y="style."+U,W="end."+Y,B;return function(){var T=w2(this,Q),R=T.on,M=T.value[Y]==null?B||(B=CM(U)):void 0;if(R!==Z||H!==M)(X=(Z=R).copy()).on(W,H=M);T.on=X}}function HX(Q,U,Z){var X=(Q+="")==="transform"?rK:CJ;return U==null?this.styleTween(Q,Lf(Q,X)).on("end.style."+Q,CM(Q)):typeof U==="function"?this.styleTween(Q,Mf(Q,X,U9(this,"style."+Q,U))).each(Tf(this._id,Q)):this.styleTween(Q,Af(Q,X,U),Z).on("end.style."+Q,null)}function Rf(Q,U,Z){return function(X){this.style.setProperty(Q,U.call(this,X),Z)}}function Of(Q,U,Z){var X,H;function Y(){var W=U.apply(this,arguments);if(W!==H)X=(H=W)&&Rf(Q,W,Z);return X}return Y._value=U,Y}function YX(Q,U,Z){var X="style."+(Q+="");if(arguments.length<2)return(X=this.tween(X))&&X._value;if(U==null)return this.tween(X,null);if(typeof U!=="function")throw Error();return this.tween(X,Of(Q,U,Z==null?"":Z))}function If(Q){return function(){this.textContent=Q}}function wf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function zX(Q){return this.tween("text",typeof Q==="function"?wf(U9(this,"text",Q)):If(Q==null?"":Q+""))}function Pf(Q){return function(U){this.textContent=Q.call(this,U)}}function Nf(Q){var U,Z;function X(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&Pf(H);return U}return X._value=Q,X}function WX(Q){var U="text";if(arguments.length<1)return(U=this.tween(U))&&U._value;if(Q==null)return this.tween(U,null);if(typeof Q!=="function")throw Error();return this.tween(U,Nf(Q))}function BX(){var Q=this._name,U=this._id,Z=Dq();for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var W=X[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R]){var M=K2(T,U);T3(T,Q,Z,R,W,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new r2(X,this._parents,Q,Z)}function LX(){var Q,U,Z=this,X=Z._id,H=Z.size();return new Promise(function(Y,W){var B={value:W},T={value:function(){if(--H===0)Y()}};if(Z.each(function(){var R=w2(this,X),M=R.on;if(M!==Q)U=(Q=M).copy(),U._.cancel.push(B),U._.interrupt.push(B),U._.end.push(T);R.on=U}),H===0)Y()})}var Cf=0;function r2(Q,U,Z,X){this._groups=Q,this._parents=U,this._name=Z,this._id=X}function fM(Q){return A3().transition(Q)}function Dq(){return++Cf}var R3=A3.prototype;r2.prototype=fM.prototype={constructor:r2,select:FX,selectAll:KX,selectChild:R3.selectChild,selectChildren:R3.selectChildren,filter:qX,merge:UX,selection:XX,transition:BX,call:R3.call,nodes:R3.nodes,node:R3.node,size:R3.size,empty:R3.empty,each:R3.each,on:GX,attr:nK,attrTween:eK,style:HX,styleTween:YX,text:zX,textTween:WX,remove:ZX,tween:oK,delay:_X,duration:JX,ease:$X,easeVarying:QX,end:LX,[Symbol.iterator]:R3[Symbol.iterator]};function uq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var ff={time:null,delay:0,duration:250,ease:uq};function Sf(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function AX(Q){var U,Z;if(Q instanceof r2)U=Q._id,Q=Q._name;else U=Dq(),(Z=ff).time=IJ(),Q=Q==null?null:Q+"";for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var W=X[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])T3(T,Q,U,R,W,Z||Sf(T,U));return new r2(X,this._parents,Q,U)}A3.prototype.interrupt=tK;A3.prototype.transition=AX;var fJ=(Q)=>()=>Q;function MX(Q,{sourceEvent:U,target:Z,transform:X,dispatch:H}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:Z,enumerable:!0,configurable:!0},transform:{value:X,enumerable:!0,configurable:!0},_:{value:H}})}function J4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}J4.prototype={constructor:J4,scale:function(Q){return Q===1?this:new J4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new J4(this.k,this.x+this.k*Q,this.y+this.k*U)},apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},applyX:function(Q){return Q*this.k+this.x},applyY:function(Q){return Q*this.k+this.y},invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},invertX:function(Q){return(Q-this.x)/this.k},invertY:function(Q){return(Q-this.y)/this.k},rescaleX:function(Q){return Q.copy().domain(Q.range().map(this.invertX,this).map(Q.invert,Q))},rescaleY:function(Q){return Q.copy().domain(Q.range().map(this.invertY,this).map(Q.invert,Q))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var V8=new J4(1,0,0);SJ.prototype=J4.prototype;function SJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return V8;return Q.__zoom}function bq(Q){Q.stopImmediatePropagation()}function y8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function jf(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function vf(){var Q=this;if(Q instanceof SVGElement){if(Q=Q.ownerSVGElement||Q,Q.hasAttribute("viewBox"))return Q=Q.viewBox.baseVal,[[Q.x,Q.y],[Q.x+Q.width,Q.y+Q.height]];return[[0,0],[Q.width.baseVal.value,Q.height.baseVal.value]]}return[[0,0],[Q.clientWidth,Q.clientHeight]]}function SM(){return this.__zoom||V8}function Vf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function yf(){return navigator.maxTouchPoints||"ontouchstart"in this}function kf(Q,U,Z){var X=Q.invertX(U[0][0])-Z[0][0],H=Q.invertX(U[1][0])-Z[1][0],Y=Q.invertY(U[0][1])-Z[0][1],W=Q.invertY(U[1][1])-Z[1][1];return Q.translate(H>X?(X+H)/2:Math.min(0,X)||Math.max(0,H),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function jJ(){var Q=jf,U=vf,Z=kf,X=Vf,H=yf,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],B=250,T=j8,R=P8("start","zoom","end"),M,A,O,w=500,P=150,V=0,S=10;function C(x){x.property("__zoom",SM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",m).filter(H).on("touchstart.zoom",e).on("touchmove.zoom",Q1).on("touchend.zoom touchcancel.zoom",J1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(x,g,c,a){var d=x.selection?x.selection():x;if(d.property("__zoom",SM),x!==d)u(x,g,c,a);else d.interrupt().each(function(){h(this,arguments).event(a).start().zoom(null,typeof g==="function"?g.apply(this,arguments):g).end()})},C.scaleBy=function(x,g,c,a){C.scaleTo(x,function(){var d=this.__zoom.k,t=typeof g==="function"?g.apply(this,arguments):g;return d*t},c,a)},C.scaleTo=function(x,g,c,a){C.transform(x,function(){var d=U.apply(this,arguments),t=this.__zoom,y=c==null?v(d):typeof c==="function"?c.apply(this,arguments):c,p=t.invert(y),q1=typeof g==="function"?g.apply(this,arguments):g;return Z(N(D(t,q1),y,p),d,W)},c,a)},C.translateBy=function(x,g,c,a){C.transform(x,function(){return Z(this.__zoom.translate(typeof g==="function"?g.apply(this,arguments):g,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),W)},null,a)},C.translateTo=function(x,g,c,a,d){C.transform(x,function(){var t=U.apply(this,arguments),y=this.__zoom,p=a==null?v(t):typeof a==="function"?a.apply(this,arguments):a;return Z(V8.translate(p[0],p[1]).scale(y.k).translate(typeof g==="function"?-g.apply(this,arguments):-g,typeof c==="function"?-c.apply(this,arguments):-c),t,W)},a,d)};function D(x,g){return g=Math.max(Y[0],Math.min(Y[1],g)),g===x.k?x:new J4(g,x.x,x.y)}function N(x,g,c){var a=g[0]-c[0]*x.k,d=g[1]-c[1]*x.k;return a===x.x&&d===x.y?x:new J4(x.k,a,d)}function v(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function u(x,g,c,a){x.on("start.zoom",function(){h(this,arguments).event(a).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(a).end()}).tween("zoom",function(){var d=this,t=arguments,y=h(d,t).event(a),p=U.apply(d,t),q1=c==null?v(p):typeof c==="function"?c.apply(d,t):c,s=Math.max(p[1][0]-p[0][0],p[1][1]-p[0][1]),W1=d.__zoom,R1=typeof g==="function"?g.apply(d,t):g,T1=T(W1.invert(q1).concat(s/W1.k),R1.invert(q1).concat(s/R1.k));return function(A1){if(A1===1)A1=R1;else{var U1=T1(A1),w1=s/U1[2];A1=new J4(w1,q1[0]-U1[0]*w1,q1[1]-U1[1]*w1)}y.zoom(null,A1)}})}function h(x,g,c){return!c&&x.__zooming||new k(x,g)}function k(x,g){this.that=x,this.args=g,this.active=0,this.sourceEvent=null,this.extent=U.apply(x,g),this.taps=0}k.prototype={event:function(x){if(x)this.sourceEvent=x;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(x,g){if(this.mouse&&x!=="mouse")this.mouse[1]=g.invert(this.mouse[0]);if(this.touch0&&x!=="touch")this.touch0[1]=g.invert(this.touch0[0]);if(this.touch1&&x!=="touch")this.touch1[1]=g.invert(this.touch1[0]);return this.that.__zoom=g,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(x){var g=F2(this.that).datum();R.call(x,this.that,new MX(x,{sourceEvent:this.sourceEvent,target:C,type:x,transform:this.that.__zoom,dispatch:R}),g)}};function b(x,...g){if(!Q.apply(this,arguments))return;var c=h(this,g).event(x),a=this.__zoom,d=Math.max(Y[0],Math.min(Y[1],a.k*Math.pow(2,X.apply(this,arguments)))),t=V2(x);if(c.wheel){if(c.mouse[0][0]!==t[0]||c.mouse[0][1]!==t[1])c.mouse[1]=a.invert(c.mouse[0]=t);clearTimeout(c.wheel)}else if(a.k===d)return;else c.mouse=[t,a.invert(t)],R6(this),c.start();y8(x),c.wheel=setTimeout(y,P),c.zoom("mouse",Z(N(D(a,d),c.mouse[0],c.mouse[1]),c.extent,W));function y(){c.wheel=null,c.end()}}function E(x,...g){if(O||!Q.apply(this,arguments))return;var c=x.currentTarget,a=h(this,g,!0).event(x),d=F2(x.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",s,!0),t=V2(x,c),y=x.clientX,p=x.clientY;_9(x.view),bq(x),a.mouse=[t,this.__zoom.invert(t)],R6(this),a.start();function q1(W1){if(y8(W1),!a.moved){var R1=W1.clientX-y,T1=W1.clientY-p;a.moved=R1*R1+T1*T1>V}a.event(W1).zoom("mouse",Z(N(a.that.__zoom,a.mouse[0]=V2(W1,c),a.mouse[1]),a.extent,W))}function s(W1){d.on("mousemove.zoom mouseup.zoom",null),FJ(W1.view,a.moved),y8(W1),a.event(W1).end()}}function m(x,...g){if(!Q.apply(this,arguments))return;var c=this.__zoom,a=V2(x.changedTouches?x.changedTouches[0]:x,this),d=c.invert(a),t=c.k*(x.shiftKey?0.5:2),y=Z(N(D(c,t),a,d),U.apply(this,g),W);if(y8(x),B>0)F2(this).transition().duration(B).call(u,y,a,x);else F2(this).call(C.transform,y,a,x)}function e(x,...g){if(!Q.apply(this,arguments))return;var c=x.touches,a=c.length,d=h(this,g,x.changedTouches.length===a).event(x),t,y,p,q1;bq(x);for(y=0;y<a;++y)if(p=c[y],q1=V2(p,this),q1=[q1,this.__zoom.invert(q1),p.identifier],!d.touch0)d.touch0=q1,t=!0,d.taps=1+!!M;else if(!d.touch1&&d.touch0[2]!==q1[2])d.touch1=q1,d.taps=0;if(M)M=clearTimeout(M);if(t){if(d.taps<2)A=q1[0],M=setTimeout(function(){M=null},w);R6(this),d.start()}}function Q1(x,...g){if(!this.__zooming)return;var c=h(this,g).event(x),a=x.changedTouches,d=a.length,t,y,p,q1;y8(x);for(t=0;t<d;++t)if(y=a[t],p=V2(y,this),c.touch0&&c.touch0[2]===y.identifier)c.touch0[0]=p;else if(c.touch1&&c.touch1[2]===y.identifier)c.touch1[0]=p;if(y=c.that.__zoom,c.touch1){var s=c.touch0[0],W1=c.touch0[1],R1=c.touch1[0],T1=c.touch1[1],A1=(A1=R1[0]-s[0])*A1+(A1=R1[1]-s[1])*A1,U1=(U1=T1[0]-W1[0])*U1+(U1=T1[1]-W1[1])*U1;y=D(y,Math.sqrt(A1/U1)),p=[(s[0]+R1[0])/2,(s[1]+R1[1])/2],q1=[(W1[0]+T1[0])/2,(W1[1]+T1[1])/2]}else if(c.touch0)p=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(N(y,p,q1),c.extent,W))}function J1(x,...g){if(!this.__zooming)return;var c=h(this,g).event(x),a=x.changedTouches,d=a.length,t,y;if(bq(x),O)clearTimeout(O);O=setTimeout(function(){O=null},w);for(t=0;t<d;++t)if(y=a[t],c.touch0&&c.touch0[2]===y.identifier)delete c.touch0;else if(c.touch1&&c.touch1[2]===y.identifier)delete c.touch1;if(c.touch1&&!c.touch0)c.touch0=c.touch1,delete c.touch1;if(c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),c.taps===2){if(y=V2(y,this),Math.hypot(A[0]-y[0],A[1]-y[1])<S){var p=F2(this).on("dblclick.zoom");if(p)p.apply(this,arguments)}}}return C.wheelDelta=function(x){return arguments.length?(X=typeof x==="function"?x:fJ(+x),C):X},C.filter=function(x){return arguments.length?(Q=typeof x==="function"?x:fJ(!!x),C):Q},C.touchable=function(x){return arguments.length?(H=typeof x==="function"?x:fJ(!!x),C):H},C.extent=function(x){return arguments.length?(U=typeof x==="function"?x:fJ([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),C):U},C.scaleExtent=function(x){return arguments.length?(Y[0]=+x[0],Y[1]=+x[1],C):[Y[0],Y[1]]},C.translateExtent=function(x){return arguments.length?(W[0][0]=+x[0][0],W[1][0]=+x[1][0],W[0][1]=+x[0][1],W[1][1]=+x[1][1],C):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},C.constrain=function(x){return arguments.length?(Z=x,C):Z},C.duration=function(x){return arguments.length?(B=+x,C):B},C.interpolate=function(x){return arguments.length?(T=x,C):T},C.on=function(){var x=R.on.apply(R,arguments);return x===R?C:x},C.clickDistance=function(x){return arguments.length?(V=(x=+x)*x,C):Math.sqrt(V)},C.tapDistance=function(x){return arguments.length?(S=+x,C):S},C}var a2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:X})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:X}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},K9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],wX=["Enter"," ","Escape"],PX={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:Q,x:U,y:Z})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${Z}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"},P6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(P6||(P6={}));var O3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(O3||(O3={}));var k8;(function(Q){Q.Partial="partial",Q.Full="full"})(k8||(k8={}));var NX={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},x4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(x4||(x4={}));var Z9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(Z9||(Z9={}));var D1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(D1||(D1={}));var jM={[D1.Left]:D1.Right,[D1.Right]:D1.Left,[D1.Top]:D1.Bottom,[D1.Bottom]:D1.Top},CX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),cM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),fX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var VJ=(Q,U=[0,0])=>{let{width:Z,height:X}=E5(Q),H=Q.origin??U,Y=Z*H[0],W=X*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},SX=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,X=Q.reduce((H,Y)=>{let W=typeof Y==="string",B=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)B=W?U.nodeLookup.get(Y):!fX(Y)?U.nodeLookup.get(Y.id):Y;if(!B)return H;return Z=!0,pq(H,xq(B,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?cq(X):{x:0,y:0,width:0,height:0}},E8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},X=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=pq(Z,xq(H)),X=!0}),X?cq(Z):{x:0,y:0,width:0,height:0}},mq=(Q,U,[Z,X,H]=[0,0,1],Y=!1,W=!1)=>{let B=(U.x-Z)/H,T=(U.y-X)/H,R=U.width/H,M=U.height/H,A=[];for(let O of Q.values()){let{measured:w,selectable:P=!0,hidden:V=!1}=O;if(W&&!P||V)continue;let S=w.width??O.width??O.initialWidth??0,C=w.height??O.height??O.initialHeight??0,{x:D,y:N}=O.internals.positionAbsolute,v=aM(B,T,R,M,D,N,S,C),u=S*C,h=Y&&v>0;if(!O.internals.handleBounds||h||v>=u||O.dragging)A.push(O)}return A},lM=(Q,U)=>{let Z=new Set;return Q.forEach((X)=>{Z.add(X.id)}),U.filter((X)=>Z.has(X.source)||Z.has(X.target))};function Df(Q,U){let Z=new Map,X=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:W,height:B}=E5(H);Y=W>0&&B>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!X||X.has(H.id)))Z.set(H.id,H)}),Z}async function dM({nodes:Q,width:U,height:Z,panZoom:X,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let B=Df(Q,W),T=E8(B),R=kJ(T,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await X.setViewport(R,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function jX({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:X=[0,0],nodeExtent:H,onError:Y}){let W=Z.get(Q),B=W.parentId?Z.get(W.parentId):void 0,{x:T,y:R}=B?B.internals.positionAbsolute:{x:0,y:0},M=W.origin??X,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!B)Y?.("005",a2.error005());else{let{width:w,height:P}=E5(B);if(w&&P)A=[[T,R],[T+w,R+P]]}else if(B&&b8(W.extent))A=[[W.extent[0][0]+T,W.extent[0][1]+R],[W.extent[1][0]+T,W.extent[1][1]+R]];let O=b8(A)?D8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",a2.error015());return{position:{x:O.x-T+(W.measured.width??0)*M[0],y:O.y-R+(W.measured.height??0)*M[1]},positionAbsolute:O}}async function iM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:X,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),W=[];for(let O of Z){if(O.deletable===!1)continue;let w=Y.has(O.id),P=!w&&O.parentId&&W.find((V)=>V.id===O.parentId);if(w||P)W.push(O)}let B=new Set(U.map((O)=>O.id)),T=X.filter((O)=>O.deletable!==!1),M=lM(W,T);for(let O of T)if(B.has(O.id)&&!M.find((P)=>P.id===O.id))M.push(O);if(!H)return{edges:M,nodes:W};let A=await H({nodes:W,edges:M});if(typeof A==="boolean")return A?{edges:M,nodes:W}:{edges:[],nodes:[]};return A}var F9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),D8=(Q={x:0,y:0},U,Z)=>({x:F9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:F9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function rM(Q,U,Z){let{width:X,height:H}=E5(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return D8(Q,[[Y,W],[Y+X,W+H]],U)}var vM=(Q,U,Z)=>{if(Q<U)return F9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-F9(Math.abs(Q-Z),1,U)/U;return 0},gq=(Q,U,Z=15,X=40)=>{let H=vM(Q.x,X,U.width-X)*Z,Y=vM(Q.y,X,U.height-X)*Z;return[H,Y]},pq=(Q,U)=>({x:Math.min(Q.x,U.x),y:Math.min(Q.y,U.y),x2:Math.max(Q.x2,U.x2),y2:Math.max(Q.y2,U.y2)}),IX=({x:Q,y:U,width:Z,height:X})=>({x:Q,y:U,x2:Q+Z,y2:U+X}),cq=({x:Q,y:U,x2:Z,y2:X})=>({x:Q,y:U,width:Z-Q,height:X-U}),X9=(Q,U=[0,0])=>{let{x:Z,y:X}=fX(Q)?Q.internals.positionAbsolute:VJ(Q,U);return{x:Z,y:X,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},xq=(Q,U=[0,0])=>{let{x:Z,y:X}=fX(Q)?Q.internals.positionAbsolute:VJ(Q,U);return{x:Z,y:X,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:X+(Q.measured?.height??Q.height??Q.initialHeight??0)}},vX=(Q,U)=>cq(pq(IX(Q),IX(U))),aM=(Q,U,Z,X,H,Y,W,B)=>{let T=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),R=Math.max(0,Math.min(U+X,Y+B)-Math.max(U,Y));return Math.ceil(T*R)},yJ=(Q,U)=>aM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),VX=(Q)=>u5(Q.width)&&u5(Q.height)&&u5(Q.x)&&u5(Q.y),u5=(Q)=>!isNaN(Q)&&isFinite(Q),yX=(Q,U)=>(Z,X)=>{console.warn(`[${Q}]: ${X} Help: ${U}error#${Z}`)},H9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},Y9=({x:Q,y:U},[Z,X,H],Y=!1,W=[1,1])=>{let B={x:(Q-Z)/H,y:(U-X)/H};return Y?H9(B,W):B},u8=({x:Q,y:U},[Z,X,H])=>{return{x:Q*H+Z,y:U*H+X}};function G9(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(Z)}if(typeof Q==="string"&&Q.endsWith("%")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(U*Z*0.01)}return console.error(`The padding value "${Q}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function uf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let X=G9(Q,Z),H=G9(Q,U);return{top:X,right:H,bottom:X,left:H,x:H*2,y:X*2}}if(typeof Q==="object"){let X=G9(Q.top??Q.y??0,Z),H=G9(Q.bottom??Q.y??0,Z),Y=G9(Q.left??Q.x??0,U),W=G9(Q.right??Q.x??0,U);return{top:X,right:W,bottom:H,left:Y,x:Y+W,y:X+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function bf(Q,U,Z,X,H,Y){let{x:W,y:B}=u8(Q,[U,Z,X]),{x:T,y:R}=u8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,X]),M=H-T,A=Y-R;return{left:Math.floor(W),top:Math.floor(B),right:Math.floor(M),bottom:Math.floor(A)}}var kJ=(Q,U,Z,X,H,Y)=>{let W=uf(Y,U,Z),B=(U-W.x)/Q.width,T=(Z-W.y)/Q.height,R=Math.min(B,T),M=F9(R,X,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,w=U/2-A*M,P=Z/2-O*M,V=bf(Q,w,P,M,U,Z),S={left:Math.min(V.left-W.left,0),top:Math.min(V.top-W.top,0),right:Math.min(V.right-W.right,0),bottom:Math.min(V.bottom-W.bottom,0)};return{x:w-S.left+S.right,y:P-S.top+S.bottom,zoom:M}},z9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function b8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function E5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function kX(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function DX(Q,U={width:0,height:0},Z,X,H){let Y={...Q},W=X.get(Z);if(W){let B=W.origin||H;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*B[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*B[1]}return Y}function uX(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function sM(){let Q,U;return{promise:new Promise((X,H)=>{Q=X,U=H}),resolve:Q,reject:U}}function tM(Q){return{...PX,...Q||{}}}function Ef(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let X=U.getBoundingClientRect();if(X.width===0&&X.height===0)return!0;let H=document.querySelector(`.${Q}-flow__attribution`);if(!H||!H.isConnected)return!1;let Y=getComputedStyle(H);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let W=H.getBoundingClientRect();if(W.width===0&&W.height===0)return!1;return!0}var VM=!1;function oM(Q){if(VM)return;VM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!Ef(Q))console.warn(`${U}: It seems like you are hiding the attribution. Please only do this when you are subscribed to ${U} Pro: https://${Q}flow.dev/remove-attr
241
- %cYou can ignore this warning if you are subscribed.`,"font-style: italic;")},1000)}function bX(Q){return Q===null?null:Q?"valid":"invalid"}function vJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:X,containerBounds:H}){let{x:Y,y:W}=b5(Q),B=Y9({x:Y-(H?.left??0),y:W-(H?.top??0)},X),{x:T,y:R}=Z?H9(B,U):B;return{xSnapped:T,ySnapped:R,...B}}var lq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),EX=(Q)=>Q?.getRootNode?.()||window?.document,hf=["INPUT","SELECT","TEXTAREA"];function hX(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return hf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var xX=(Q)=>("clientX"in Q),b5=(Q,U)=>{let Z=xX(Q),X=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:X-(U?.left??0),y:H-(U?.top??0)}},yM=(Q,U,Z,X,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let B=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:H,position:W.getAttribute("data-handlepos"),x:(B.left-Z.left)/X,y:(B.top-Z.top)/X,...lq(W)}})};function dq({sourceX:Q,sourceY:U,targetX:Z,targetY:X,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:B}){let T=Q*0.125+H*0.375+W*0.375+Z*0.125,R=U*0.125+Y*0.375+B*0.375+X*0.125,M=Math.abs(T-Q),A=Math.abs(R-U);return[T,R,M,A]}function Eq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function kM({pos:Q,x1:U,y1:Z,x2:X,y2:H,c:Y}){switch(Q){case D1.Left:return[U-Eq(U-X,Y),Z];case D1.Right:return[U+Eq(X-U,Y),Z];case D1.Top:return[U,Z-Eq(Z-H,Y)];case D1.Bottom:return[U,Z+Eq(H-Z,Y)]}}function iq({sourceX:Q,sourceY:U,sourcePosition:Z=D1.Bottom,targetX:X,targetY:H,targetPosition:Y=D1.Top,curvature:W=0.25}){let[B,T]=kM({pos:Z,x1:Q,y1:U,x2:X,y2:H,c:W}),[R,M]=kM({pos:Y,x1:X,y1:H,x2:Q,y2:U,c:W}),[A,O,w,P]=dq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:B,sourceControlY:T,targetControlX:R,targetControlY:M});return[`M${Q},${U} C${B},${T} ${R},${M} ${X},${H}`,A,O,w,P]}function mX({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,W=Math.abs(X-U)/2,B=X<U?X+W:X-W;return[Y,B,H,W]}function nM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:X=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return X;let W=H&&Z?X+1000:X,B=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+B}function eM({sourceNode:Q,targetNode:U,width:Z,height:X,transform:H}){let Y=pq(xq(Q),xq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let W={x:-H[0]/H[2],y:-H[1]/H[2],width:Z/H[2],height:X/H[2]};return yJ(W,cq(Y))>0}var xf=({source:Q,sourceHandle:U,target:Z,targetHandle:X})=>`xy-edge__${Q}${U||""}-${Z}${X||""}`,mf=(Q,U)=>{return U.some((Z)=>Z.source===Q.source&&Z.target===Q.target&&(Z.sourceHandle===Q.sourceHandle||!Z.sourceHandle&&!Q.sourceHandle)&&(Z.targetHandle===Q.targetHandle||!Z.targetHandle&&!Q.targetHandle))},_T=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",a2.error006()),U;let X=Z.getEdgeId||xf,H;if(CX(Q))H={...Q};else H={...Q,id:X(Q)};if(mf(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function rq({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let[H,Y,W,B]=mX({sourceX:Q,sourceY:U,targetX:Z,targetY:X});return[`M ${Q},${U}L ${Z},${X}`,H,Y,W,B]}var DM={[D1.Left]:{x:-1,y:0},[D1.Right]:{x:1,y:0},[D1.Top]:{x:0,y:-1},[D1.Bottom]:{x:0,y:1}},gf=({source:Q,sourcePosition:U=D1.Bottom,target:Z})=>{if(U===D1.Left||U===D1.Right)return Q.x<Z.x?{x:1,y:0}:{x:-1,y:0};return Q.y<Z.y?{x:0,y:1}:{x:0,y:-1}},uM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function pf({source:Q,sourcePosition:U=D1.Bottom,target:Z,targetPosition:X=D1.Top,center:H,offset:Y,stepPosition:W}){let B=DM[U],T=DM[X],R={x:Q.x+B.x*Y,y:Q.y+B.y*Y},M={x:Z.x+T.x*Y,y:Z.y+T.y*Y},A=gf({source:R,sourcePosition:U,target:M}),O=A.x!==0?"x":"y",w=A[O],P=[],V,S,C={x:0,y:0},D={x:0,y:0},[,,N,v]=mX({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(B[O]*T[O]===-1){if(O==="x")V=H.x??R.x+(M.x-R.x)*W,S=H.y??(R.y+M.y)/2;else V=H.x??(R.x+M.x)/2,S=H.y??R.y+(M.y-R.y)*W;let b=[{x:V,y:R.y},{x:V,y:M.y}],E=[{x:R.x,y:S},{x:M.x,y:S}];if(B[O]===w)P=O==="x"?b:E;else P=O==="x"?E:b}else{let b=[{x:R.x,y:M.y}],E=[{x:M.x,y:R.y}];if(O==="x")P=B.x===w?E:b;else P=B.y===w?b:E;if(U===X){let x=Math.abs(Q[O]-Z[O]);if(x<=Y){let g=Math.min(Y-1,Y-x);if(B[O]===w)C[O]=(R[O]>Q[O]?-1:1)*g;else D[O]=(M[O]>Z[O]?-1:1)*g}}if(U!==X){let x=O==="x"?"y":"x",g=B[O]===T[x],c=R[x]>M[x],a=R[x]<M[x];if(B[O]===1&&(!g&&c||g&&a)||B[O]!==1&&(!g&&a||g&&c))P=O==="x"?b:E}let m={x:R.x+C.x,y:R.y+C.y},e={x:M.x+D.x,y:M.y+D.y},Q1=Math.max(Math.abs(m.x-P[0].x),Math.abs(e.x-P[0].x)),J1=Math.max(Math.abs(m.y-P[0].y),Math.abs(e.y-P[0].y));if(Q1>=J1)V=(m.x+e.x)/2,S=P[0].y;else V=P[0].x,S=(m.y+e.y)/2}let u={x:R.x+C.x,y:R.y+C.y},h={x:M.x+D.x,y:M.y+D.y};return[[Q,...u.x!==P[0].x||u.y!==P[0].y?[u]:[],...P,...h.x!==P[P.length-1].x||h.y!==P[P.length-1].y?[h]:[],Z],V,S,N,v]}function cf(Q,U,Z,X){let H=Math.min(uM(Q,U)/2,uM(U,Z)/2,X),{x:Y,y:W}=U;if(Q.x===Y&&Y===Z.x||Q.y===W&&W===Z.y)return`L${Y} ${W}`;if(Q.y===W){let R=Q.x<Z.x?-1:1,M=Q.y<Z.y?1:-1;return`L ${Y+H*R},${W}Q ${Y},${W} ${Y},${W+H*M}`}let B=Q.x<Z.x?1:-1,T=Q.y<Z.y?-1:1;return`L ${Y},${W+H*T}Q ${Y},${W} ${Y+H*B},${W}`}function DJ({sourceX:Q,sourceY:U,sourcePosition:Z=D1.Bottom,targetX:X,targetY:H,targetPosition:Y=D1.Top,borderRadius:W=5,centerX:B,centerY:T,offset:R=20,stepPosition:M=0.5}){let[A,O,w,P,V]=pf({source:{x:Q,y:U},sourcePosition:Z,target:{x:X,y:H},targetPosition:Y,center:{x:B,y:T},offset:R,stepPosition:M}),S=`M${A[0].x} ${A[0].y}`;for(let C=1;C<A.length-1;C++)S+=cf(A[C-1],A[C],A[C+1],W);return S+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[S,O,w,P,V]}function bM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function JT(Q){let{sourceNode:U,targetNode:Z}=Q;if(!bM(U)||!bM(Z))return null;let X=U.internals.handleBounds||EM(U.handles),H=Z.internals.handleBounds||EM(Z.handles),Y=hM(X?.source??[],Q.sourceHandle),W=hM(Q.connectionMode===P6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",a2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let B=Y?.position||D1.Bottom,T=W?.position||D1.Top,R=N6(U,Y,B),M=N6(Z,W,T);return{sourceX:R.x,sourceY:R.y,targetX:M.x,targetY:M.y,sourcePosition:B,targetPosition:T}}function EM(Q){if(!Q)return null;let U=[],Z=[];for(let X of Q)if(X.width=X.width??1,X.height=X.height??1,X.type==="source")U.push(X);else if(X.type==="target")Z.push(X);return{source:U,target:Z}}function N6(Q,U,Z=D1.Left,X=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:B}=U??E5(Q);if(X)return{x:H+W/2,y:Y+B/2};switch(U?.position??Z){case D1.Top:return{x:H+W/2,y:Y};case D1.Right:return{x:H+W,y:Y+B/2};case D1.Bottom:return{x:H+W/2,y:Y+B};case D1.Left:return{x:H,y:Y+B/2}}}function hM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function aq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((X)=>`${X}=${Q[X]}`).join("&")}`}function $T(Q,{id:U,defaultColor:Z,defaultMarkerStart:X,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((W,B)=>{return[B.markerStart||X,B.markerEnd||H].forEach((T)=>{if(T&&typeof T==="object"){let R=aq(T,U);if(!Y.has(R))W.push({id:R,color:T.color||Z,...T}),Y.add(R)}}),W},[]).sort((W,B)=>W.id.localeCompare(B.id))}function QT(Q,U,Z,X,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let W=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-X],B=[-100*Y,-100];switch(Z){case D1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+X,(Q.y+Q.height*Y)*U.zoom+U.y],B=[0,-100*Y];break;case D1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+X,B[1]=0;break;case D1.Left:W=[Q.x*U.zoom+U.x-X,(Q.y+Q.height*Y)*U.zoom+U.y],B=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${B[0]}%, ${B[1]}%)`}var qT=1000,lf=10,gX={nodeOrigin:[0,0],nodeExtent:K9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},df={...gX,checkEquality:!0};function pX(Q,U){let Z={...Q};for(let X in U)if(U[X]!==void 0)Z[X]=U[X];return Z}function UT(Q,U,Z){let X=pX(gX,Z);for(let H of Q.values())if(H.parentId)lX(H,Q,U,X);else{let Y=VJ(H,X.nodeOrigin),W=b8(H.extent)?H.extent:X.nodeExtent,B=D8(Y,W,E5(H));H.internals.positionAbsolute=B}}function rf(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],X=[];for(let H of Q.handles){let Y={id:H.id,width:H.width??1,height:H.height??1,nodeId:Q.id,x:H.x,y:H.y,position:H.position,type:H.type};if(H.type==="source")Z.push(Y);else if(H.type==="target")X.push(Y)}return{source:Z,target:X}}function cX(Q){return Q==="manual"}function sq(Q,U,Z,X={}){let H=pX(df,X),Y={i:0},W=new Map(U),B=H?.elevateNodesOnSelect&&!cX(H.zIndexMode)?qT:0,T=Q.length>0,R=!1;U.clear(),Z.clear();for(let M of Q){let A=W.get(M.id);if(H.checkEquality&&M===A?.internals.userNode)U.set(M.id,A);else{let O=VJ(M,H.nodeOrigin),w=b8(M.extent)?M.extent:H.nodeExtent,P=D8(O,w,E5(M));A={...H.defaults,...M,measured:{width:M.measured?.width,height:M.measured?.height},internals:{positionAbsolute:P,handleBounds:rf(M,A),z:GT(M,B,H.zIndexMode),userNode:M}},U.set(M.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)T=!1;if(M.parentId)lX(A,U,Z,X,Y);R||=M.selected??!1}return{nodesInitialized:T,hasSelectedNodes:R}}function af(Q,U){if(!Q.parentId)return;let Z=U.get(Q.parentId);if(Z)Z.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function lX(Q,U,Z,X,H){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:B,zIndexMode:T}=pX(gX,X),R=Q.parentId,M=U.get(R);if(!M){console.warn(`Parent node ${R} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(af(Q,Z),H&&!M.parentId&&M.internals.rootParentIndex===void 0&&T==="auto")M.internals.rootParentIndex=++H.i,M.internals.z=M.internals.z+H.i*lf;if(H&&M.internals.rootParentIndex!==void 0)H.i=M.internals.rootParentIndex;let A=Y&&!cX(T)?qT:0,{x:O,y:w,z:P}=sf(Q,M,W,B,A,T),{positionAbsolute:V}=Q.internals,S=O!==V.x||w!==V.y;if(S||P!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:O,y:w}:V,z:P}})}function GT(Q,U,Z){let X=u5(Q.zIndex)?Q.zIndex:0;if(cX(Z))return X;return X+(Q.selected?U:0)}function sf(Q,U,Z,X,H,Y){let{x:W,y:B}=U.internals.positionAbsolute,T=E5(Q),R=VJ(Q,Z),M=b8(Q.extent)?D8(R,Q.extent,T):R,A=D8({x:W+M.x,y:B+M.y},X,T);if(Q.extent==="parent")A=rM(A,T,U);let O=GT(Q,H,Y),w=U.internals.z??0;return{x:A.x,y:A.y,z:w>=O?w+1:O}}function tq(Q,U,Z,X=[0,0]){let H=[],Y=new Map;for(let W of Q){let B=U.get(W.parentId);if(!B)continue;let T=Y.get(W.parentId)?.expandedRect??X9(B),R=vX(T,W.rect);Y.set(W.parentId,{expandedRect:R,parent:B})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:B},T)=>{let R=B.internals.positionAbsolute,M=E5(B),A=B.origin??X,O=W.x<R.x?Math.round(Math.abs(R.x-W.x)):0,w=W.y<R.y?Math.round(Math.abs(R.y-W.y)):0,P=Math.max(M.width,Math.round(W.width)),V=Math.max(M.height,Math.round(W.height)),S=(P-M.width)*A[0],C=(V-M.height)*A[1];if(O>0||w>0||S||C)H.push({id:T,type:"position",position:{x:B.position.x-O+S,y:B.position.y-w+C}}),Z.get(T)?.forEach((D)=>{if(!Q.some((N)=>N.id===D.id))H.push({id:D.id,type:"position",position:{x:D.position.x+O,y:D.position.y+w}})});if(M.width<W.width||M.height<W.height||O||w)H.push({id:T,type:"dimensions",setAttributes:!0,dimensions:{width:P+(O?A[0]*O-S:0),height:V+(w?A[1]*w-C:0)}})});return H}function ZT(Q,U,Z,X,H,Y,W){let B=X?.querySelector(".xyflow__viewport"),T=!1;if(!B)return{changes:[],updatedInternals:T};let R=[],M=window.getComputedStyle(B),{m22:A}=new window.DOMMatrixReadOnly(M.transform),O=[];for(let w of Q.values()){let P=U.get(w.id);if(!P)continue;if(P.hidden){U.set(P.id,{...P,internals:{...P.internals,handleBounds:void 0}}),T=!0;continue}let V=lq(w.nodeElement),S=P.measured.width!==V.width||P.measured.height!==V.height;if(!!(V.width&&V.height&&(S||!P.internals.handleBounds||w.force))){let D=w.nodeElement.getBoundingClientRect(),N=b8(P.extent)?P.extent:Y,{positionAbsolute:v}=P.internals;if(P.parentId&&P.extent==="parent"){let h=U.get(P.parentId);if(h)v=rM(v,V,h)}else if(N)v=D8(v,N,V);let u={...P,measured:V,internals:{...P.internals,positionAbsolute:v,handleBounds:{source:yM("source",w.nodeElement,D,A,P.id),target:yM("target",w.nodeElement,D,A,P.id)}}};if(U.set(P.id,u),P.parentId)lX(u,U,Z,{nodeOrigin:H,zIndexMode:W});if(T=!0,S){if(R.push({id:P.id,type:"dimensions",dimensions:V}),P.expandParent&&P.parentId)O.push({id:P.id,parentId:P.parentId,rect:X9(u,H)})}}}if(O.length>0){let w=tq(O,U,Z,H);R.push(...w)}return{changes:R,updatedInternals:T}}async function FT({delta:Q,panZoom:U,transform:Z,translateExtent:X,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let W=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[H,Y]],X);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function xM(Q,U,Z,X,H,Y){let W=H,B=X.get(W)||new Map;X.set(W,B.set(Z,U)),W=`${H}-${Q}`;let T=X.get(W)||new Map;if(X.set(W,T.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let R=X.get(W)||new Map;X.set(W,R.set(Z,U))}}function dX(Q,U,Z){Q.clear(),U.clear();for(let X of Z){let{source:H,target:Y,sourceHandle:W=null,targetHandle:B=null}=X,T={edgeId:X.id,source:H,target:Y,sourceHandle:W,targetHandle:B},R=`${H}-${W}--${Y}-${B}`,M=`${Y}-${B}--${H}-${W}`;xM("source",T,M,Q,H,W),xM("target",T,R,Q,Y,B),U.set(X.id,X)}}function KT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return KT(Z,U)}function mM(Q,U,Z){let X=Q;do{if(X?.matches?.(U))return!0;if(X===Z)return!1;X=X?.parentElement}while(X);return!1}function tf(Q,U,Z,X){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===X)&&(!W.parentId||!KT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let B=Q.get(Y);if(B)H.set(Y,{id:Y,position:B.position||{x:0,y:0},distance:{x:Z.x-B.internals.positionAbsolute.x,y:Z.y-B.internals.positionAbsolute.y},extent:B.extent,parentId:B.parentId,origin:B.origin,expandParent:B.expandParent,internals:{positionAbsolute:B.internals.positionAbsolute||{x:0,y:0}},measured:{width:B.measured.width??0,height:B.measured.height??0}})}return H}function TX({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:X=!0}){let H=[];for(let[W,B]of U){let T=Z.get(W)?.internals.userNode;if(T)H.push({...T,position:B.position,dragging:X})}if(!Q)return[H[0],H];let Y=Z.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:X},H]}function of({dragItems:Q,snapGrid:U,x:Z,y:X}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:X-H.distance.y},W=H9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function XT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:X,onDragStop:H}){let Y={x:null,y:null},W=0,B=new Map,T=!1,R={x:0,y:0},M=null,A=!1,O=null,w=!1,P=!1,V=null;function S({noDragClassName:D,handleSelector:N,domNode:v,isSelectable:u,nodeId:h,nodeClickDistance:k=0}){O=F2(v);function b({x:Q1,y:J1}){let{nodeLookup:x,nodeExtent:g,snapGrid:c,snapToGrid:a,nodeOrigin:d,onNodeDrag:t,onSelectionDrag:y,onError:p,updateNodePositions:q1}=U();Y={x:Q1,y:J1};let s=!1,W1=B.size>1,R1=W1&&g?IX(E8(B)):null,T1=W1&&a?of({dragItems:B,snapGrid:c,x:Q1,y:J1}):null;for(let[A1,U1]of B){if(!x.has(A1))continue;let w1={x:Q1-U1.distance.x,y:J1-U1.distance.y};if(a)w1=T1?{x:Math.round(w1.x+T1.x),y:Math.round(w1.y+T1.y)}:H9(w1,c);let v1=null;if(W1&&g&&!U1.extent&&R1){let{positionAbsolute:B1}=U1.internals,I1=B1.x-R1.x+g[0][0],C1=B1.x+U1.measured.width-R1.x2+g[1][0],K1=B1.y-R1.y+g[0][1],u1=B1.y+U1.measured.height-R1.y2+g[1][1];v1=[[I1,K1],[C1,u1]]}let{position:M1,positionAbsolute:G1}=jX({nodeId:A1,nextPosition:w1,nodeLookup:x,nodeExtent:v1?v1:g,nodeOrigin:d,onError:p});s=s||U1.position.x!==M1.x||U1.position.y!==M1.y,U1.position=M1,U1.internals.positionAbsolute=G1}if(P=P||s,!s)return;if(q1(B,!0),V&&(X||t||!h&&y)){let[A1,U1]=TX({nodeId:h,dragItems:B,nodeLookup:x});if(X?.(V,B,A1,U1),t?.(V,A1,U1),!h)y?.(V,U1)}}async function E(){if(!M)return;let{transform:Q1,panBy:J1,autoPanSpeed:x,autoPanOnNodeDrag:g}=U();if(!g){T=!1,cancelAnimationFrame(W);return}let[c,a]=gq(R,M,x);if(c!==0||a!==0){if(Y.x=(Y.x??0)-c/Q1[2],Y.y=(Y.y??0)-a/Q1[2],await J1({x:c,y:a}))b(Y)}W=requestAnimationFrame(E)}function m(Q1){let{nodeLookup:J1,multiSelectionActive:x,nodesDraggable:g,transform:c,snapGrid:a,snapToGrid:d,selectNodesOnDrag:t,onNodeDragStart:y,onSelectionDragStart:p,unselectNodesAndEdges:q1}=U();if(A=!0,(!t||!u)&&!x&&h){if(!J1.get(h)?.selected)q1()}if(u&&t&&h)Q?.(h);let s=vJ(Q1.sourceEvent,{transform:c,snapGrid:a,snapToGrid:d,containerBounds:M});if(Y=s,B=tf(J1,g,s,h),B.size>0&&(Z||y||!h&&p)){let[W1,R1]=TX({nodeId:h,dragItems:B,nodeLookup:J1});if(Z?.(Q1.sourceEvent,B,W1,R1),y?.(Q1.sourceEvent,W1,R1),!h)p?.(Q1.sourceEvent,R1)}}let e=HJ().clickDistance(k).on("start",(Q1)=>{let{domNode:J1,nodeDragThreshold:x,transform:g,snapGrid:c,snapToGrid:a}=U();if(M=J1?.getBoundingClientRect()||null,w=!1,P=!1,V=Q1.sourceEvent,x===0)m(Q1);Y=vJ(Q1.sourceEvent,{transform:g,snapGrid:c,snapToGrid:a,containerBounds:M}),R=b5(Q1.sourceEvent,M)}).on("drag",(Q1)=>{let{autoPanOnNodeDrag:J1,transform:x,snapGrid:g,snapToGrid:c,nodeDragThreshold:a,nodeLookup:d}=U(),t=vJ(Q1.sourceEvent,{transform:x,snapGrid:g,snapToGrid:c,containerBounds:M});if(V=Q1.sourceEvent,Q1.sourceEvent.type==="touchmove"&&Q1.sourceEvent.touches.length>1||h&&!d.has(h))w=!0;if(w)return;if(!T&&J1&&A)T=!0,E();if(!A){let y=b5(Q1.sourceEvent,M),p=y.x-R.x,q1=y.y-R.y;if(Math.sqrt(p*p+q1*q1)>a)m(Q1)}if((Y.x!==t.xSnapped||Y.y!==t.ySnapped)&&B&&A)R=b5(Q1.sourceEvent,M),b(t)}).on("end",(Q1)=>{if(!A||w){if(w&&B.size>0)U().updateNodePositions(B,!1);return}if(T=!1,A=!1,cancelAnimationFrame(W),B.size>0){let{nodeLookup:J1,updateNodePositions:x,onNodeDragStop:g,onSelectionDragStop:c}=U();if(P)x(B,!1),P=!1;if(H||g||!h&&c){let[a,d]=TX({nodeId:h,dragItems:B,nodeLookup:J1,dragging:!1});if(H?.(Q1.sourceEvent,B,a,d),g?.(Q1.sourceEvent,a,d),!h)c?.(Q1.sourceEvent,d)}}}).filter((Q1)=>{let J1=Q1.target;return!Q1.button&&(!D||!mM(J1,`.${D}`,v))&&(!N||mM(J1,N,v))});O.call(e)}function C(){O?.on(".drag",null)}return{update:S,destroy:C}}function nf(Q,U,Z){let X=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(yJ(H,X9(Y))>0)X.push(Y);return X}var ef=250;function _S(Q,U,Z,X){let H=[],Y=1/0,W=nf(Q,Z,U+ef);for(let B of W){let T=[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]];for(let R of T){if(X.nodeId===R.nodeId&&X.type===R.type&&X.id===R.id)continue;let{x:M,y:A}=N6(B,R,R.position,!0),O=Math.sqrt(Math.pow(M-Q.x,2)+Math.pow(A-Q.y,2));if(O>U)continue;if(O<Y)H=[{...R,x:M,y:A}],Y=O;else if(O===Y)H.push({...R,x:M,y:A})}}if(!H.length)return null;if(H.length>1){let B=X.type==="source"?"target":"source";return H.find((T)=>T.type===B)??H[0]}return H[0]}function HT(Q,U,Z,X,H,Y=!1){let W=X.get(Q);if(!W)return null;let B=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],T=(Z?B?.find((R)=>R.id===Z):B?.[0])??null;return T&&Y?{...T,...N6(W,T,T.position,!0)}:T}function YT(Q,U){if(Q)return Q;else if(U?.classList.contains("target"))return"target";else if(U?.classList.contains("source"))return"source";return null}function JS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var zT=()=>!0;function $S(Q,{connectionMode:U,connectionRadius:Z,handleId:X,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:B,nodeLookup:T,lib:R,autoPanOnConnect:M,flowId:A,panBy:O,cancelConnection:w,onConnectStart:P,onConnect:V,onConnectEnd:S,isValidConnection:C=zT,onReconnectEnd:D,updateConnection:N,getTransform:v,getFromHandle:u,autoPanSpeed:h,dragThreshold:k=1,handleDomNode:b}){let E=EX(Q.target),m=0,e,{x:Q1,y:J1}=b5(Q),x=YT(Y,b),g=B?.getBoundingClientRect(),c=!1;if(!g||!x)return;let a=HT(H,x,X,T,U);if(!a)return;let d=b5(Q,g),t=!1,y=null,p=!1,q1=null;function s(){if(!M||!g)return;let[M1,G1]=gq(d,g,h);O({x:M1,y:G1}),m=requestAnimationFrame(s)}let W1={...a,nodeId:H,type:x,position:a.position},R1=T.get(H),A1={inProgress:!0,isValid:null,from:N6(R1,W1,D1.Left,!0),fromHandle:W1,fromPosition:W1.position,fromNode:R1,to:d,toHandle:null,toPosition:jM[W1.position],toNode:null,pointer:d};function U1(){c=!0,N(A1),P?.(Q,{nodeId:H,handleId:X,handleType:x})}if(k===0)U1();function w1(M1){if(!c){let{x:u1,y:N1}=b5(M1),Q0=u1-Q1,b1=N1-J1;if(!(Q0*Q0+b1*b1>k*k))return;U1()}if(!u()||!W1){v1(M1);return}let G1=v();if(d=b5(M1,g),e=_S(Y9(d,G1,!1,[1,1]),Z,T,W1),!t)s(),t=!0;let B1=WT(M1,{handle:e,connectionMode:U,fromNodeId:H,fromHandleId:X,fromType:W?"target":"source",isValidConnection:C,doc:E,lib:R,flowId:A,nodeLookup:T});q1=B1.handleDomNode,y=B1.connection,p=JS(!!e,B1.isValid);let I1=T.get(H),C1=I1?N6(I1,W1,D1.Left,!0):A1.from,K1={...A1,from:C1,isValid:p,to:B1.toHandle&&p?u8({x:B1.toHandle.x,y:B1.toHandle.y},G1):d,toHandle:B1.toHandle,toPosition:p&&B1.toHandle?B1.toHandle.position:jM[W1.position],toNode:B1.toHandle?T.get(B1.toHandle.nodeId):null,pointer:d};N(K1),A1=K1}function v1(M1){if("touches"in M1&&M1.touches.length>0)return;if(c){if((e||q1)&&y&&p)V?.(y);let{inProgress:G1,...B1}=A1,I1={...B1,toPosition:A1.toHandle?A1.toPosition:null};if(S?.(M1,I1),Y)D?.(M1,I1)}w(),cancelAnimationFrame(m),t=!1,p=!1,y=null,q1=null,E.removeEventListener("mousemove",w1),E.removeEventListener("mouseup",v1),E.removeEventListener("touchmove",w1),E.removeEventListener("touchend",v1)}E.addEventListener("mousemove",w1),E.addEventListener("mouseup",v1),E.addEventListener("touchmove",w1),E.addEventListener("touchend",v1)}function WT(Q,{handle:U,connectionMode:Z,fromNodeId:X,fromHandleId:H,fromType:Y,doc:W,lib:B,flowId:T,isValidConnection:R=zT,nodeLookup:M}){let A=Y==="target",O=U?W.querySelector(`.${B}-flow__handle[data-id="${T}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:w,y:P}=b5(Q),V=W.elementFromPoint(w,P),S=V?.classList.contains(`${B}-flow__handle`)?V:O,C={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let D=YT(void 0,S),N=S.getAttribute("data-nodeid"),v=S.getAttribute("data-handleid"),u=S.classList.contains("connectable"),h=S.classList.contains("connectableend");if(!N||!D)return C;let k={source:A?N:X,sourceHandle:A?v:H,target:A?X:N,targetHandle:A?H:v};C.connection=k;let E=u&&h&&(Z===P6.Strict?A&&D==="source"||!A&&D==="target":N!==X||v!==H);C.isValid=E&&R(k),C.toHandle=HT(N,D,v,M,Z,!0)}return C}var oq={onPointerDown:$S,isValid:WT};function BT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:X}){let H=F2(Q);function Y({translateExtent:B,width:T,height:R,zoomStep:M=1,pannable:A=!0,zoomable:O=!0,inversePan:w=!1}){let P=(N)=>{if(N.sourceEvent.type!=="wheel"||!U)return;let v=Z(),u=N.sourceEvent.ctrlKey&&z9()?10:1,h=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?0.05:N.sourceEvent.deltaMode?1:0.002)*M,k=v[2]*Math.pow(2,h*u);U.scaleTo(k)},V=[0,0],S=(N)=>{if(N.sourceEvent.type==="mousedown"||N.sourceEvent.type==="touchstart")V=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY]},C=(N)=>{let v=Z();if(N.sourceEvent.type!=="mousemove"&&N.sourceEvent.type!=="touchmove"||!U)return;let u=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],h=[u[0]-V[0],u[1]-V[1]];V=u;let k=X()*Math.max(v[2],Math.log(v[2]))*(w?-1:1),b={x:v[0]-h[0]*k,y:v[1]-h[1]*k},E=[[0,0],[T,R]];U.setViewportConstrained({x:b.x,y:b.y,zoom:v[2]},E,B)},D=jJ().on("start",S).on("zoom",A?C:null).on("zoom.wheel",O?P:null);H.call(D,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:V2}}var nq=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),RX=({x:Q,y:U,zoom:Z})=>V8.translate(Q,U).scale(Z),w6=(Q,U)=>Q.target.closest(`.${U}`),LT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),QS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,OX=(Q,U=0,Z=QS,X=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)X();return H?Q.transition().duration(U).ease(Z).on("end",X):Q},AT=(Q)=>{let U=Q.ctrlKey&&z9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function qS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:X,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:B,onPanZoom:T,onPanZoomEnd:R}){return(M)=>{if(w6(M,U)){if(M.ctrlKey)M.preventDefault();return!1}M.preventDefault(),M.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(M.ctrlKey&&W){let S=V2(M),C=AT(M),D=A*Math.pow(2,C);X.scaleTo(Z,D,S,M);return}let O=M.deltaMode===1?20:1,w=H===O3.Vertical?0:M.deltaX*O,P=H===O3.Horizontal?0:M.deltaY*O;if(!z9()&&M.shiftKey&&H!==O3.Vertical)w=M.deltaY*O,P=0;X.translateBy(Z,-(w/A)*Y,-(P/A)*Y,{internal:!0});let V=nq(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,B?.(M,V);else T?.(M,V);Q.panScrollTimeout=setTimeout(()=>{R?.(M,V),Q.isPanScrolling=!1},150)}}function US({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(X,H){let Y=X.type==="wheel",W=!U&&Y&&!X.ctrlKey,B=w6(X,Q);if(X.ctrlKey&&Y&&B)X.preventDefault();if(W||B)return null;X.preventDefault(),Z.call(this,X,H)}}function GS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(X)=>{if(X.sourceEvent?.internal)return;let H=nq(X.transform);if(Q.mouseButton=X.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,X.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(X.sourceEvent,H)}}function ZS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:X,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&LT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)X([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,nq(Y.transform))}}function FS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:X,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&LT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,X(!1),H){let B=nq(W.transform);Q.prevViewport=B,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,B)},Z?150:0)}}}function KS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:X,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:B,noWheelClassName:T,noPanClassName:R,lib:M,connectionInProgress:A}){return(O)=>{let w=U||Z,P=X&&O.ctrlKey,V=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(w6(O,`${M}-flow__node`)||w6(O,`${M}-flow__edge`)||w6(O,`${M}-flow__selection`)||w6(O,`${M}-flow__nodesselection`)))return!0;if(!H&&!w&&!Y&&!W&&!X)return!1;if(B)return!1;if(A&&!V)return!1;if(w6(O,T)&&V)return!1;if(w6(O,R)&&(!V||Y&&V&&!U))return!1;if(!X&&O.ctrlKey&&V)return!1;if(!X&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!w&&!Y&&!P&&V)return!1;if(!H&&(O.type==="mousedown"||O.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(O.button)&&O.type==="mousedown")return!1;let S=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||V||Q)&&S}}function MT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:X,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:B,onDraggingChange:T}){let R={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},M=Q.getBoundingClientRect(),A=[[0,0],[M.width,M.height]];(typeof ResizeObserver<"u"?new ResizeObserver((J1)=>{let x=J1[0];if(x)A=[[0,0],[x.contentRect.width,x.contentRect.height]]}):null)?.observe(Q);let w=jJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(X),P=F2(Q).call(w);v({x:H.x,y:H.y,zoom:F9(H.zoom,U,Z)},[[0,0],[M.width,M.height]],X);let V=P.on("wheel.zoom"),S=P.on("dblclick.zoom");w.wheelDelta(AT);async function C(J1,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?h4:j8).transform(OX(P,x?.duration,x?.ease,()=>g(!0)),J1)});return!1}function D({noWheelClassName:J1,noPanClassName:x,onPaneContextMenu:g,userSelectionActive:c,panOnScroll:a,panOnDrag:d,panOnScrollMode:t,panOnScrollSpeed:y,preventScrolling:p,zoomOnPinch:q1,zoomOnScroll:s,zoomOnDoubleClick:W1,panActivationKeyPressed:R1=!1,zoomActivationKeyPressed:T1,lib:A1,onTransformChange:U1,connectionInProgress:w1,paneClickDistance:v1,selectionOnDrag:M1}){if(c&&!R.isZoomingOrPanning)N();let G1=a&&!T1&&!c;w.clickDistance(M1?1/0:!u5(v1)||v1<0?0:v1);let B1=G1?qS({zoomPanValues:R,noWheelClassName:J1,d3Selection:P,d3Zoom:w,panOnScrollMode:t,panOnScrollSpeed:y,zoomOnPinch:q1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:B}):US({noWheelClassName:J1,preventScrolling:p,d3ZoomHandler:V});P.on("wheel.zoom",B1,{passive:!1});let I1=GS({zoomPanValues:R,onDraggingChange:T,onPanZoomStart:W});w.on("start",I1);let C1=ZS({zoomPanValues:R,panOnDrag:d,onPaneContextMenu:!!g,onPanZoom:Y,onTransformChange:U1});w.on("zoom",C1);let K1=FS({zoomPanValues:R,panOnDrag:d,panOnScroll:a,onPaneContextMenu:g,onPanZoomEnd:B,onDraggingChange:T});w.on("end",K1);let u1=KS({panActivationKeyPressed:R1,zoomActivationKeyPressed:T1,panOnDrag:d,zoomOnScroll:s,panOnScroll:a,zoomOnDoubleClick:W1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:x,noWheelClassName:J1,lib:A1,connectionInProgress:w1});if(w.filter(u1),W1)P.on("dblclick.zoom",S);else P.on("dblclick.zoom",null)}function N(){w.on("zoom",null)}async function v(J1,x,g){let c=RX(J1),a=w?.constrain()(c,x,g);if(a)await C(a);return a}async function u(J1,x){let g=RX(J1);return await C(g,x),g}function h(J1){if(P){let x=RX(J1),g=P.property("__zoom");if(g.k!==J1.zoom||g.x!==J1.x||g.y!==J1.y)w?.transform(P,x,null,{sync:!0})}}function k(){let J1=P?SJ(P.node()):{x:0,y:0,k:1};return{x:J1.x,y:J1.y,zoom:J1.k}}async function b(J1,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?h4:j8).scaleTo(OX(P,x?.duration,x?.ease,()=>g(!0)),J1)});return!1}async function E(J1,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?h4:j8).scaleBy(OX(P,x?.duration,x?.ease,()=>g(!0)),J1)});return!1}function m(J1){w?.scaleExtent(J1)}function e(J1){w?.translateExtent(J1)}function Q1(J1){let x=!u5(J1)||J1<0?0:J1;w?.clickDistance(x)}return{update:D,destroy:N,setViewport:u,setViewportConstrained:v,getViewport:k,scaleTo:b,scaleBy:E,setScaleExtent:m,setTranslateExtent:e,syncViewport:h,setClickDistance:Q1}}var C6;(function(Q){Q.Line="line",Q.Handle="handle"})(C6||(C6={}));function XS({width:Q,prevWidth:U,height:Z,prevHeight:X,affectsX:H,affectsY:Y}){let W=Q-U,B=Z-X,T=[W>0?1:W<0?-1:0,B>0?1:B<0?-1:0];if(W&&H)T[0]=T[0]*-1;if(B&&Y)T[1]=T[1]*-1;return T}function gM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),X=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:X,affectsY:H}}function O6(Q,U){return Math.max(0,U-Q)}function I6(Q,U){return Math.max(0,Q-U)}function hq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function pM(Q,U){return Q?!U:U}function HS(Q,U,Z,X,H,Y,W,B){let{affectsX:T,affectsY:R}=U,{isHorizontal:M,isVertical:A}=U,O=M&&A,{xSnapped:w,ySnapped:P}=Z,{minWidth:V,maxWidth:S,minHeight:C,maxHeight:D}=X,{x:N,y:v,width:u,height:h,aspectRatio:k}=Q,b=Math.floor(M?w-Q.pointerX:0),E=Math.floor(A?P-Q.pointerY:0),m=u+(T?-b:b),e=h+(R?-E:E),Q1=-Y[0]*u,J1=-Y[1]*h,x=hq(m,V,S),g=hq(e,C,D);if(W){let d=0,t=0;if(T&&b<0)d=O6(N+b+Q1,W[0][0]);else if(!T&&b>0)d=I6(N+m+Q1,W[1][0]);if(R&&E<0)t=O6(v+E+J1,W[0][1]);else if(!R&&E>0)t=I6(v+e+J1,W[1][1]);x=Math.max(x,d),g=Math.max(g,t)}if(B){let d=0,t=0;if(T&&b>0)d=I6(N+b,B[0][0]);else if(!T&&b<0)d=O6(N+m,B[1][0]);if(R&&E>0)t=I6(v+E,B[0][1]);else if(!R&&E<0)t=O6(v+e,B[1][1]);x=Math.max(x,d),g=Math.max(g,t)}if(H){if(M){let d=hq(m/k,C,D)*k;if(x=Math.max(x,d),W){let t=0;if(!T&&!R||T&&!R&&O)t=I6(v+J1+m/k,W[1][1])*k;else t=O6(v+J1+(T?b:-b)/k,W[0][1])*k;x=Math.max(x,t)}if(B){let t=0;if(!T&&!R||T&&!R&&O)t=O6(v+m/k,B[1][1])*k;else t=I6(v+(T?b:-b)/k,B[0][1])*k;x=Math.max(x,t)}}if(A){let d=hq(e*k,V,S)/k;if(g=Math.max(g,d),W){let t=0;if(!T&&!R||R&&!T&&O)t=I6(N+e*k+Q1,W[1][0])/k;else t=O6(N+(R?E:-E)*k+Q1,W[0][0])/k;g=Math.max(g,t)}if(B){let t=0;if(!T&&!R||R&&!T&&O)t=O6(N+e*k,B[1][0])/k;else t=I6(N+(R?E:-E)*k,B[0][0])/k;g=Math.max(g,t)}}}if(E=E+(E<0?g:-g),b=b+(b<0?x:-x),H)if(O)if(m>e*k)E=(pM(T,R)?-b:b)/k;else b=(pM(T,R)?-E:E)*k;else if(M)E=b/k,R=T;else b=E*k,T=R;let c=T?N+b:N,a=R?v+E:v;return{width:u+(T?-b:b),height:h+(R?-E:E),x:Y[0]*b*(!T?1:-1)+c,y:Y[1]*E*(!R?1:-1)+a}}var TT={width:0,height:0,x:0,y:0},YS={...TT,pointerX:0,pointerY:0,aspectRatio:1};function zS(Q,U,Z){let X=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,W=Q.measured.height??0,B=Z[0]*Y,T=Z[1]*W;return[[X-B,H-T],[X+Y-B,H+W-T]]}function RT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:X,onEnd:H}){let Y=F2(Q),W={controlDirection:gM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function B({controlPosition:R,boundaries:M,keepAspectRatio:A,resizeDirection:O,onResizeStart:w,onResize:P,onResizeEnd:V,shouldResize:S}){let C={...TT},D={...YS};W={boundaries:M,resizeDirection:O,keepAspectRatio:A,controlDirection:gM(R)};let N=void 0,v=null,u=[],h=void 0,k=void 0,b=void 0,E=HJ().on("start",(m)=>{let{nodeLookup:e,transform:Q1,snapGrid:J1,snapToGrid:x,nodeOrigin:g,paneDomNode:c}=Z();if(N=e.get(U),!N)return;v=c?.getBoundingClientRect()??null;let{xSnapped:a,ySnapped:d}=vJ(m.sourceEvent,{transform:Q1,snapGrid:J1,snapToGrid:x,containerBounds:v});if(C={width:N.measured.width??0,height:N.measured.height??0,x:N.position.x??0,y:N.position.y??0},D={...C,pointerX:a,pointerY:d,aspectRatio:C.width/C.height},h=void 0,k=b8(N.extent)?N.extent:void 0,N.parentId&&(N.extent==="parent"||N.expandParent))h=e.get(N.parentId);if(h&&N.extent==="parent")k=[[0,0],[h.measured.width,h.measured.height]];u=[],b=void 0;for(let[t,y]of e)if(y.parentId===U){if(u.push({id:t,position:{...y.position},extent:y.extent}),y.extent==="parent"||y.expandParent){let p=zS(y,N,y.origin??g);if(b)b=[[Math.min(p[0][0],b[0][0]),Math.min(p[0][1],b[0][1])],[Math.max(p[1][0],b[1][0]),Math.max(p[1][1],b[1][1])]];else b=p}}w?.(m,{...C})}).on("drag",(m)=>{let{transform:e,snapGrid:Q1,snapToGrid:J1,nodeOrigin:x}=Z(),g=vJ(m.sourceEvent,{transform:e,snapGrid:Q1,snapToGrid:J1,containerBounds:v}),c=[];if(!N)return;let{x:a,y:d,width:t,height:y}=C,p={},q1=N.origin??x,{width:s,height:W1,x:R1,y:T1}=HS(D,W.controlDirection,g,W.boundaries,W.keepAspectRatio,q1,k,b),A1=s!==t,U1=W1!==y,w1=R1!==a&&A1,v1=T1!==d&&U1;if(!w1&&!v1&&!A1&&!U1)return;let M1={prevValues:{...C},startX:D.x,startY:D.y,childNodes:u.map((C1)=>({...C1,position:{...C1.position}}))};if(w1||v1||q1[0]===1||q1[1]===1){if(p.x=w1?R1:C.x,p.y=v1?T1:C.y,C.x=p.x,C.y=p.y,u.length>0){let C1=R1-a,K1=T1-d;for(let u1 of u)u1.position={x:u1.position.x-C1+q1[0]*(s-t),y:u1.position.y-K1+q1[1]*(W1-y)},c.push(u1)}}if(A1||U1)p.width=A1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?s:C.width,p.height=U1&&(!W.resizeDirection||W.resizeDirection==="vertical")?W1:C.height,C.width=p.width,C.height=p.height;if(h&&N.expandParent){let C1=q1[0]*(p.width??0);if(p.x&&p.x<C1)C.x=C1,D.x=D.x-(p.x-C1);let K1=q1[1]*(p.height??0);if(p.y&&p.y<K1)C.y=K1,D.y=D.y-(p.y-K1)}let G1=XS({width:C.width,prevWidth:t,height:C.height,prevHeight:y,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),B1={...C,direction:G1};if(S?.(m,B1)===!1){C=M1.prevValues,D.x=M1.startX,D.y=M1.startY,u.forEach((C1,K1)=>{C1.position=M1.childNodes[K1].position});return}P?.(m,B1),X(p,c)}).on("end",(m)=>{V?.(m,{...C}),H?.({...C})});Y.call(E)}function T(){Y.on(".drag",null)}return{update:B,destroy:T}}var CT=E0(n5(),1),fT=E0(IT(),1);var wT=(Q)=>{let U,Z=new Set,X=(M,A)=>{let O=typeof M==="function"?M(U):M;if(!Object.is(O,U)){let w=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),Z.forEach((P)=>P(U,w))}},H=()=>U,T={setState:X,getState:H,getInitialState:()=>R,subscribe:(M)=>{return Z.add(M),()=>Z.delete(M)},destroy:()=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");Z.clear()}},R=U=Q(X,H,T);return T},PT=(Q)=>Q?wT(Q):wT;var{useDebugValue:LS}=CT.default,{useSyncExternalStoreWithSelector:AS}=fT.default,MS=(Q)=>Q;function iX(Q,U=MS,Z){let X=AS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return LS(X),X}var NT=(Q,U)=>{let Z=PT(Q),X=(H,Y=U)=>iX(Z,H,Y);return Object.assign(X,Z),X},ST=(Q,U)=>Q?NT(Q,U):NT;function k0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[X,H]of Q)if(!Object.is(H,U.get(X)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let X of Q)if(!U.has(X))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let X of Z)if(!Object.prototype.hasOwnProperty.call(U,X)||!Object.is(Q[X],U[X]))return!1;return!0}var JR=E0(cF(),1),QU=z1.createContext(null),TS=QU.Provider,$R=a2.error001("react");function X0(Q,U){let Z=z1.useContext(QU);if(Z===null)throw Error($R);return iX(Z,Q,U)}function D0(){let Q=z1.useContext(QU);if(Q===null)throw Error($R);return z1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var jT={display:"none"},RS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},QR="react-flow__node-desc",qR="react-flow__edge-desc",OS="react-flow__aria-live",IS=(Q)=>Q.ariaLiveMessage,wS=(Q)=>Q.ariaLabelConfig;function PS({rfId:Q}){let U=X0(IS);return Y1.jsx("div",{id:`${OS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:RS,children:U})}function NS({rfId:Q,disableKeyboardA11y:U}){let Z=X0(wS);return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx("div",{id:`${QR}-${Q}`,style:jT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),Y1.jsx("div",{id:`${qR}-${Q}`,style:jT,children:Z["edge.a11yDescription.default"]}),!U&&Y1.jsx(PS,{rfId:Q})]})}var x8=z1.forwardRef(({position:Q="top-left",children:U,className:Z,style:X,...H},Y)=>{let W=`${Q}`.split("-");return Y1.jsx("div",{className:m0(["react-flow__panel",Z,...W]),style:X,ref:Y,...H,children:U})});x8.displayName="Panel";var vT="https://reactflow.dev/attribution";function CS({proOptions:Q,position:U="bottom-right"}){if(z1.useEffect(()=>{oM("react")},[]),Q?.hideAttribution)return null;return Y1.jsx(x8,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${vT}`,children:Y1.jsx("a",{href:vT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var fS=(Q)=>{let U=[],Z=[];for(let[,X]of Q.nodeLookup)if(X.selected)U.push(X.internals.userNode);for(let[,X]of Q.edgeLookup)if(X.selected)Z.push(X);return{selectedNodes:U,selectedEdges:Z}},eq=(Q)=>Q.id;function SS(Q,U){return k0(Q.selectedNodes.map(eq),U.selectedNodes.map(eq))&&k0(Q.selectedEdges.map(eq),U.selectedEdges.map(eq))}function jS({onSelectionChange:Q}){let U=D0(),{selectedNodes:Z,selectedEdges:X}=X0(fS,SS);return z1.useEffect(()=>{let H={nodes:Z,edges:X};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,X,Q]),null}var vS=(Q)=>!!Q.onSelectionChangeHandlers;function VS({onSelectionChange:Q}){let U=X0(vS);if(Q||U)return Y1.jsx(jS,{onSelectionChange:Q});return null}var UR=[0,0],yS={x:0,y:0,zoom:1},kS=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],VT=[...kS,"rfId"],DS=(Q)=>({setNodes:Q.setNodes,setEdges:Q.setEdges,setMinZoom:Q.setMinZoom,setMaxZoom:Q.setMaxZoom,setTranslateExtent:Q.setTranslateExtent,setNodeExtent:Q.setNodeExtent,reset:Q.reset,setDefaultNodesAndEdges:Q.setDefaultNodesAndEdges}),yT={translateExtent:K9,nodeOrigin:UR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function uS(Q){let{setNodes:U,setEdges:Z,setMinZoom:X,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:B,setDefaultNodesAndEdges:T}=X0(DS,k0),R=D0();z1.useEffect(()=>{return T(Q.defaultNodes,Q.defaultEdges),()=>{M.current=yT,B()}},[]);let M=z1.useRef(yT);return z1.useEffect(()=>{for(let A of VT){let O=Q[A],w=M.current[A];if(O===w)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")Z(O);else if(A==="minZoom")X(O);else if(A==="maxZoom")H(O);else if(A==="translateExtent")Y(O);else if(A==="nodeExtent")W(O);else if(A==="ariaLabelConfig")R.setState({ariaLabelConfig:tM(O)});else if(A==="fitView")R.setState({fitViewQueued:O});else if(A==="fitViewOptions")R.setState({fitViewOptions:O});else R.setState({[A]:O})}M.current=Q},VT.map((A)=>Q[A])),null}function kT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function bS(Q){let[U,Z]=z1.useState(Q==="system"?null:Q);return z1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let X=kT(),H=()=>Z(X?.matches?"dark":"light");return H(),X?.addEventListener("change",H),()=>{X?.removeEventListener("change",H)}},[Q]),U!==null?U:kT()?.matches?"dark":"light"}var DT=typeof document<"u"?document:null;function uJ(Q=null,U={target:DT,actInsideInputWithModifier:!0}){let[Z,X]=z1.useState(!1),H=z1.useRef(!1),Y=z1.useRef(new Set([])),[W,B]=z1.useMemo(()=>{if(Q!==null){let R=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
240
+ <%s key={someKey} {...props} />`,t,O1,B1,O1),o[O1+t]=!0)}if(O1=null,q1!==void 0&&(Z(q1),O1=""+q1),W(g)&&(Z(g.key),O1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return O1&&B(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,O1,q1,H(),W1,T1)}function A(y){O(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===b&&(y._payload.status==="fulfilled"?O(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function O(y){return typeof y==="object"&&y!==null&&y.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),C=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),$1=j8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,m=console.createTask?console.createTask:function(){return null};j8={react_stack_bottom_frame:function(y){return y()}};var p,c={},a=j8.react_stack_bottom_frame.bind(j8,Y)(),i=m(K(Y)),o={};wN.Fragment=V,wN.jsx=function(y,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,!1,t?Error("react-stack-top-frame"):a,t?m(K(y)):i)},wN.jsxs=function(y,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,!0,t?Error("react-stack-top-frame"):a,t?m(K(y)):i)}})()});var PT=p4((TS)=>{var N5=p0(G4());(function(){function Q(O,P){return O===P&&(O!==0||1/O===1/P)||O!==O&&P!==P}function U(O,P){R||N5.startTransition===void 0||(R=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var N=P();if(!M){var V=P();H(N,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),M=!0)}V=Y({inst:{value:N,getSnapshot:P}});var j=V[0].inst,f=V[1];return B(function(){j.value=N,j.getSnapshot=P,Z(j)&&f({inst:j})},[O,N,P]),W(function(){return Z(j)&&f({inst:j}),O(function(){Z(j)&&f({inst:j})})},[O]),T(N),N}function Z(O){var P=O.getSnapshot;O=O.value;try{var N=P();return!H(O,N)}catch(V){return!0}}function K(O,P){return P()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=N5.useState,W=N5.useEffect,B=N5.useLayoutEffect,T=N5.useDebugValue,R=!1,M=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;TS.useSyncExternalStore=N5.useSyncExternalStore!==void 0?N5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var NT=p4((RS)=>{var y3=p0(G4());(function(){function Q(T,R){return T===R&&(T!==0||1/T===1/R)||T!==T&&R!==R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=PT(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=y3.useRef,Y=y3.useEffect,W=y3.useMemo,B=y3.useDebugValue;RS.useSyncExternalStoreWithSelector=function(T,R,M,A,O){var P=H(null);if(P.current===null){var N={hasValue:!1,value:null};P.current=N}else N=P.current;P=W(function(){function j(D){if(!f){if(f=!0,u=D,D=A(D),O!==void 0&&N.hasValue){var h=N.value;if(O(h,D))return C=h}return C=D}if(h=C,Z(u,D))return h;var E=A(D);if(O!==void 0&&O(h,E))return u=D,h;return u=D,C=E}var f=!1,u,C,v=M===void 0?null:M;return[function(){return j(R())},v===null?void 0:function(){return j(v())}]},[R,M,A,O]);var V=K(T,P[0],P[1]);return Y(function(){N.hasValue=!0,N.value=V},[V]),B(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fO=p0(bA(),1);var P2=p0(G4(),1);var EA={x:{title:"X",fill:"currentColor",d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},youtube:{title:"YouTube",fill:"#FF0000",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},tiktok:{title:"TikTok",fill:"currentColor",d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},discord:{title:"Discord",fill:"#5865F2",d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},resend:{title:"Resend",fill:"currentColor",d:"M2.023 0v24h5.553v-8.434h2.998L15.326 24h6.65l-5.372-9.258a7.652 7.652 0 0 0 3.316-3.016c.709-1.21 1.062-2.57 1.062-4.08 0-1.462-.353-2.767-1.062-3.91-.709-1.165-1.692-2.079-2.95-2.742C15.737.331 14.355 0 12.823 0Zm5.553 4.87h4.219c.731 0 1.349.125 1.851.376.526.252.925.618 1.2 1.098.274.457.412.994.412 1.611S15.132 9.12 14.88 9.6c-.229.48-.572.856-1.03 1.13-.434.252-.948.38-1.542.38H7.576Z"},linkedin:{title:"LinkedIn",fill:"#0A66C2",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},reddit:{title:"Reddit",fill:"#FF4500",d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"},bluesky:{title:"Bluesky",fill:"#0285FF",d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"},instagram:{title:"Instagram",fill:"#FF0069",d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},github:{title:"GitHub",fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"},stripe:{title:"Stripe",fill:"#635BFF",d:"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"},slack:{title:"Slack",fill:"#4A154B",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},openai:{title:"OpenAI",fill:"#412991",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"},anthropic:{title:"Anthropic",fill:"currentColor",d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},twilio:{title:"Twilio",fill:"#F22F46",d:"M12 0C5.381-.008.008 5.352 0 11.971V12c0 6.64 5.359 12 12 12 6.64 0 12-5.36 12-12 0-6.641-5.36-12-12-12zm0 20.801c-4.846.015-8.786-3.904-8.801-8.75V12c-.014-4.846 3.904-8.786 8.75-8.801H12c4.847-.014 8.786 3.904 8.801 8.75V12c.015 4.847-3.904 8.786-8.75 8.801H12zm5.44-11.76c0 1.359-1.12 2.479-2.481 2.479-1.366-.007-2.472-1.113-2.479-2.479 0-1.361 1.12-2.481 2.479-2.481 1.361 0 2.481 1.12 2.481 2.481zm0 5.919c0 1.36-1.12 2.48-2.481 2.48-1.367-.008-2.473-1.114-2.479-2.48 0-1.359 1.12-2.479 2.479-2.479 1.361-.001 2.481 1.12 2.481 2.479zm-5.919 0c0 1.36-1.12 2.48-2.479 2.48-1.368-.007-2.475-1.113-2.481-2.48 0-1.359 1.12-2.479 2.481-2.479 1.358-.001 2.479 1.12 2.479 2.479zm0-5.919c0 1.359-1.12 2.479-2.479 2.479-1.367-.007-2.475-1.112-2.481-2.479 0-1.361 1.12-2.481 2.481-2.481 1.358 0 2.479 1.12 2.479 2.481z"},sendgrid:{title:"SendGrid",fill:"#51A9E3",d:"M.8 24h13.6c.88 0 1.6-.72 1.6-1.6v-4.8c0-.88-.72-1.6-1.6-1.6H9.6c-.88 0-1.6-.72-1.6-1.6V9.6C8 8.72 7.28 8 6.4 8H1.6C.72 8 0 8.72 0 9.6v13.6c0 .44.36.8.8.8zM23.2 0H9.6C8.72 0 8 .72 8 1.6v4.8C8 7.28 8.72 8 9.6 8h4.8c.88 0 1.6.72 1.6 1.6v4.8c0 .88.72 1.6 1.6 1.6h4.8c.88 0 1.6-.72 1.6-1.6V.8c0-.44-.36-.8-.8-.8Z"},mailgun:{title:"Mailgun",fill:"#F06B66",d:"M11.837 0c6.602 0 11.984 5.381 11.984 11.994-.017 2.99-3.264 4.84-5.844 3.331a3.805 3.805 0 0 1-.06-.035l-.055-.033-.022.055c-2.554 4.63-9.162 4.758-11.894.232-2.732-4.527.46-10.313 5.746-10.416a6.868 6.868 0 0 1 7.002 6.866 1.265 1.265 0 0 0 2.52 0c0-5.18-4.197-9.38-9.377-9.387C4.611 2.594.081 10.41 3.683 16.673c3.238 5.632 11.08 6.351 15.289 1.402l1.997 1.686A11.95 11.95 0 0 1 11.837 24C2.6 23.72-2.87 13.543 1.992 5.684A12.006 12.006 0 0 1 11.837 0Zm0 7.745c-3.276-.163-5.5 3.281-4.003 6.2a4.26 4.26 0 0 0 4.014 2.31c3.276-.171 5.137-3.824 3.35-6.575a4.26 4.26 0 0 0-3.36-1.935Zm0 2.53c1.324 0 2.152 1.433 1.49 2.58a1.72 1.72 0 0 1-1.49.86 1.72 1.72 0 1 1 0-3.44Z"},notion:{title:"Notion",fill:"currentColor",d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"},linear:{title:"Linear",fill:"#5E6AD2",d:"M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"},jira:{title:"Jira",fill:"#0052CC",d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"},hubspot:{title:"HubSpot",fill:"#FF7A59",d:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},paypal:{title:"PayPal",fill:"#003087",d:"M7.016 19.198h-4.2a.562.562 0 0 1-.555-.65L5.093.584A.692.692 0 0 1 5.776 0h7.222c3.417 0 5.904 2.488 5.846 5.5-.006.25-.027.5-.066.747A6.794 6.794 0 0 1 12.071 12H8.743a.69.69 0 0 0-.682.583l-.325 2.056-.013.083-.692 4.39-.015.087zM19.79 6.142c-.01.087-.01.175-.023.261a7.76 7.76 0 0 1-7.695 6.598H9.007l-.283 1.795-.013.083-.692 4.39-.134.843-.014.088H6.86l-.497 3.15a.562.562 0 0 0 .555.65h3.612c.34 0 .63-.249.683-.585l.952-6.031a.692.692 0 0 1 .683-.584h2.126a6.793 6.793 0 0 0 6.707-5.752c.306-1.95-.466-3.744-1.89-4.906z"},shopify:{title:"Shopify",fill:"#7AB55C",d:"M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z"},sentry:{title:"Sentry",fill:"#362D59",d:"M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"},vercel:{title:"Vercel",fill:"currentColor",d:"M24 22.525H0l12-21.05 12 21.05z"},supabase:{title:"Supabase",fill:"#3FCF8E",d:"M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"},clerk:{title:"Clerk",fill:"#6C47FF",d:"m21.47 20.829-2.881-2.881a.572.572 0 0 0-.7-.084 6.854 6.854 0 0 1-7.081 0 .576.576 0 0 0-.7.084l-2.881 2.881a.576.576 0 0 0-.103.69.57.57 0 0 0 .166.186 12 12 0 0 0 14.113 0 .58.58 0 0 0 .239-.423.576.576 0 0 0-.172-.453Zm.002-17.668-2.88 2.88a.569.569 0 0 1-.701.084A6.857 6.857 0 0 0 8.724 8.08a6.862 6.862 0 0 0-1.222 3.692 6.86 6.86 0 0 0 .978 3.764.573.573 0 0 1-.083.699l-2.881 2.88a.567.567 0 0 1-.864-.063A11.993 11.993 0 0 1 6.771 2.7a11.99 11.99 0 0 1 14.637-.405.566.566 0 0 1 .232.418.57.57 0 0 1-.168.448Zm-7.118 12.261a3.427 3.427 0 1 0 0-6.854 3.427 3.427 0 0 0 0 6.854Z"},aws:{title:"Amazon Web Services",fill:"#232F3E",d:"M6.763 10.036c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 0 1-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 0 1-.287-.375 6.18 6.18 0 0 1-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.391-.384-.59-.894-.59-1.533 0-.678.239-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.287 2.287 0 0 1-.28.104.488.488 0 0 1-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 0 1 .224-.167c.279-.144.614-.264 1.005-.36a4.84 4.84 0 0 1 1.246-.151c.95 0 1.644.216 2.091.647.439.43.662 1.085.662 1.963v2.586zm-3.24 1.214c.263 0 .534-.048.822-.144.287-.096.543-.271.758-.51.128-.152.224-.32.272-.512.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 0 0-.735-.136 6.02 6.02 0 0 0-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 5.55a1.398 1.398 0 0 1-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 0 1 .32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 0 1 .311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 0 1-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 0 1-.303.08h-.687c-.151 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32l-1.238-5.148-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 0 1-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.319.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 0 0 .415-.758.777.777 0 0 0-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 0 1-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .359.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 0 1 .24.2.43.43 0 0 1 .071.263v.375c0 .168-.064.256-.184.256a.83.83 0 0 1-.303-.096 3.652 3.652 0 0 0-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.159.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926-.144.272-.336.511-.583.703-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167zM21.698 16.207c-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351 3.384 1.963 7.559 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.439-.2.814.287.383.607zM22.792 14.961c-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151.32-.79 1.03-2.57.695-2.994z"},figma:{title:"Figma",fill:"#F24E1E",d:"M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"},airtable:{title:"Airtable",fill:"#18BFFF",d:"M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"},intercom:{title:"Intercom",fill:"#6AFDEF",d:"M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"},posthog:{title:"PostHog",fill:"currentColor",d:"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z"},datadog:{title:"Datadog",fill:"#632CA6",d:"M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"},algolia:{title:"Algolia",fill:"#003DFF",d:"M12 0C5.445 0 .103 5.285.01 11.817c-.097 6.634 5.285 12.131 11.92 12.17a11.91 11.91 0 0 0 5.775-1.443.281.281 0 0 0 .052-.457l-1.122-.994a.79.79 0 0 0-.833-.14 9.693 9.693 0 0 1-3.923.77c-5.36-.067-9.692-4.527-9.607-9.888.084-5.293 4.417-9.573 9.73-9.573h9.73v17.296l-5.522-4.907a.407.407 0 0 0-.596.063 4.52 4.52 0 0 1-3.934 1.793 4.538 4.538 0 0 1-4.192-4.168 4.53 4.53 0 0 1 4.512-4.872 4.532 4.532 0 0 1 4.509 4.126c.018.205.11.397.265.533l1.438 1.275a.28.28 0 0 0 .462-.158 6.82 6.82 0 0 0 .099-1.725c-.232-3.376-2.966-6.092-6.345-6.3-3.873-.24-7.11 2.79-7.214 6.588-.1 3.7 2.933 6.892 6.634 6.974a6.75 6.75 0 0 0 4.136-1.294l7.212 6.394a.48.48 0 0 0 .797-.36V.456A.456.456 0 0 0 23.54 0Z"},cloudflare:{title:"Cloudflare",fill:"#F38020",d:"M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727"},upstash:{title:"Upstash",fill:"#00E9A3",d:"M13.8027 0C11.193 0 8.583.9952 6.5918 2.9863c-3.9823 3.9823-3.9823 10.4396 0 14.4219 1.9911 1.9911 5.2198 1.9911 7.211 0 1.991-1.9911 1.991-5.2198 0-7.211L12 12c.9956.9956.9956 2.6098 0 3.6055-.9956.9955-2.6099.9955-3.6055 0-2.9866-2.9868-2.9866-7.8297 0-10.8164 2.9868-2.9868 7.8297-2.9868 10.8164 0l1.8028-1.8028C19.0225.9952 16.4125 0 13.8027 0zM12 12c-.9956-.9956-.9956-2.6098 0-3.6055.9956-.9955 2.6098-.9955 3.6055 0 2.9867 2.9868 2.9867 7.8297 0 10.8164-2.9867 2.9868-7.8297 2.9868-10.8164 0l-1.8028 1.8028c3.9823 3.9822 10.4396 3.9822 14.4219 0 3.9823-3.9824 3.9823-10.4396 0-14.4219-.9956-.9956-2.3006-1.4922-3.6055-1.4922-1.3048 0-2.6099.4966-3.6054 1.4922-1.9912 1.9912-1.9912 5.2198 0 7.211z"},mixpanel:{title:"Mixpanel",fill:"#7856FF",d:"M6.967 9.996h3.053c-.763-.477-1.048-1.145-1.431-2.384L7.443 3.366C6.919 1.458 6.49.551 4.39.551H.004v1.145h.621c1.286 0 1.431.477 1.814 1.908L3.44 7.326c.524 1.814 1.337 2.67 3.53 2.67h-.003Zm7.06 0h3.053c2.194 0 2.956-.86 3.484-2.67l1.001-3.722c.382-1.431.57-1.908 1.814-1.908H24V.551h-4.34c-2.146 0-2.576.86-3.053 2.815l-1.145 4.246c-.384 1.286-.673 1.907-1.435 2.384Zm-4.007 4.008h4.007V9.996H10.02v4.008ZM0 23.449h4.39c2.1 0 2.529-.907 3.053-2.815l1.146-4.246c.383-1.239.668-1.907 1.431-2.384H6.967c-2.194 0-3.007.86-3.531 2.67l-1.001 3.722c-.383 1.431-.524 1.907-1.814 1.907H0v1.146Zm19.65 0h4.343v-1.146h-.622c-1.239 0-1.431-.476-1.814-1.907l-1.001-3.722c-.524-1.814-1.286-2.67-3.483-2.67h-3.046c.762.477 1.041 1.098 1.424 2.384l1.145 4.246c.477 1.955.907 2.815 3.054 2.815Z"},gemini:{title:"Google Gemini",fill:"#8E75B2",d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}};var c1=p0(f8(),1),MN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function FJ({href:Q,onClick:U}){return c1.jsxDEV("h1",{children:c1.jsxDEV("a",{href:Q,onClick:U,children:[c1.jsxDEV("img",{src:MN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),c1.jsxDEV("span",{className:"brand-name",children:" Volter World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}async function N3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function xA(Q,U,Z=0,K=""){let[H,Y]=P2.useState({state:"loading"});return P2.useEffect(()=>{Y({state:"loading"})},[K,U]),P2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let B=await Q(U),T=B.ok?{state:"ok",data:await B.json()}:{state:"error",status:B.status,error:await N3(B)};if(W)Y(T)}catch(B){if(W)Y({state:"error",status:0,error:String(B)})}})(),()=>{W=!1}},[K,U,Z]),H}function b2({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return c1.jsxDEV(TN,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return c1.jsxDEV("div",{role:"alert",className:"error-state",children:[c1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?c1.jsxDEV("button",{type:"button",onClick:Z,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function TN({lines:Q=3,label:U="Loading…"}){return c1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>c1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function I0({iso:Q,time:U}){if(!Q)return c1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return c1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var $9=(Q)=>Q?new Date(Q).toLocaleString():"—";function sF(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let Z=Math.max(0,Math.round((Date.now()-U)/1000));return Z<60?"just now":Z<3600?`${Math.round(Z/60)}m ago`:Z<86400?`${Math.round(Z/3600)}h ago`:`${Math.round(Z/86400)}d ago`}function E0(Q,U){let Z=U.replace(/[_-]+/g," "),K=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:K}`}var S8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,RN={github:"GitHub",openai:"OpenAI",aws:"AWS",hubspot:"HubSpot",paypal:"PayPal",youtube:"YouTube",tiktok:"TikTok",linkedin:"LinkedIn",xai:"xAI",sendgrid:"SendGrid",elevenlabs:"ElevenLabs",assemblyai:"AssemblyAI",planetscale:"PlanetScale",googleoauth:"Google sign-in",npm:"npm","npm-registry":"npm registry",posthog:"PostHog",mongodb:"MongoDB",pagerduty:"PagerDuty",mailgun:"Mailgun",turbopuffer:"turbopuffer"},d1=(Q)=>RN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function s0({vendor:Q}){let U=EA[Q];return c1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?c1.jsxDEV("svg",{viewBox:"0 0 24 24",children:c1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):d1(Q).charAt(0)},void 0,!1,void 0,this)}var hA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},ON="volter.theme",tF=()=>{try{let Q=localStorage.getItem(ON);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Lq(Q=tF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function mA(){return P2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(K)=>{if(K.key!=="Escape"||document.querySelector("dialog[open]"))return;let H=Q();if(!H.length)return;for(let Y of H)Y.removeAttribute("open");H[H.length-1].querySelector("summary")?.focus()},Z=(K)=>{let H=K.target;for(let Y of Q())if(!H||!Y.contains(H))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function P5({open:Q,onClose:U,title:Z,children:K,footer:H,wide:Y}){let W=P2.useRef(null),B=P2.useId();return P2.useEffect(()=>{let T=W.current;if(!T)return;if(Q&&!T.open){T.showModal();let R=T.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(R?.focus(),R instanceof HTMLInputElement&&R.value&&/^(text|search|email|url)$/.test(R.type))R.select()}if(!Q&&T.open)T.close()},[Q]),c1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":B,onClose:U,onCancel:(T)=>{T.preventDefault(),U()},onMouseDown:(T)=>{if(T.target===W.current)U()},children:Q?c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("div",{className:"dialog-head",children:[c1.jsxDEV("h2",{id:B,children:Z},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:U,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?c1.jsxDEV("div",{className:"dialog-foot",children:H},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var rF="volter:confirm";function c4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(rF,{detail:{ask:Q,resolve:U}}))})}function gA(){let[Q,U]=P2.useState(null),[Z,K]=P2.useState("");P2.useEffect(()=>{let B=(T)=>{K(""),U(T.detail)};return window.addEventListener(rF,B),()=>window.removeEventListener(rF,B)},[]);let H=(B)=>{Q?.resolve(B),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return c1.jsxDEV(P5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!W,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?c1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?c1.jsxDEV("div",{className:"typed-confirm",children:[c1.jsxDEV("p",{children:["Type ",c1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),c1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(B)=>K(B.target.value),onKeyDown:(B)=>{if(B.key==="Enter"&&W)H(!0)},autoComplete:"off",spellCheck:!1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}var aF="volter:toast";function i0(Q,U="ok"){window.dispatchEvent(new CustomEvent(aF,{detail:{text:Q,kind:U}}))}function pA(){let[Q,U]=P2.useState([]);return P2.useEffect(()=>{let Z=0,K=(H)=>{let{text:Y,kind:W}=H.detail,B=++Z;if(U((T)=>[...T.slice(-3),{id:B,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((T)=>T.filter((R)=>R.id!==B)),4500)};return window.addEventListener(aF,K),()=>window.removeEventListener(aF,K)},[]),c1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>c1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[c1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.filter((H)=>H.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function oF({value:Q,label:U,secret:Z}){let[K,H]=P2.useState(!1);return c1.jsxDEV("div",{className:"copy-field",children:[U?c1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,c1.jsxDEV("div",{className:"copy-row",children:[c1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),i0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>i0("Your browser would not copy it: select it and copy","error"))},children:K?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cA({label:Q,items:U}){return c1.jsxDEV("details",{className:"menu row-menu",children:[c1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),c1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?c1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:hA,children:Z.label},Z.label,!1,void 0,this):c1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{hA(K),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Q9({title:Q,children:U,action:Z}){return c1.jsxDEV("div",{className:"empty-state",children:[c1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?c1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?c1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function lA(){return P2.useEffect(()=>{let Q=(Z)=>{let K=document.querySelector("main.app"),H=Z.target;if(K?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")IN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),c1.jsxDEV("button",{type:"button",className:"icon-button drawer-button","aria-label":"Menu",onClick:()=>{document.querySelector("main.app")?.toggleAttribute("data-drawer")},children:"☰"},void 0,!1,void 0,this)}var IN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var K1=p0(G4(),1);var H1=p0(iA(),1),z1=p0(G4(),1);function d0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,K;Z<Q.length;Z++)if((K=d0(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var PN={value:()=>{}};function rA(){for(var Q=0,U=arguments.length,Z={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in Z||/[\s.]/.test(K))throw Error("illegal type: "+K);Z[K]=[]}return new Aq(Z)}function Aq(Q){this._=Q}function NN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var K="",H=Z.indexOf(".");if(H>=0)K=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:K}})}Aq.prototype=rA.prototype={constructor:Aq,on:function(Q,U){var Z=this._,K=NN(Q+"",Z),H,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((H=(Q=K[Y]).type)&&(H=CN(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(H=(Q=K[Y]).type)Z[H]=dA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=dA(Z[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new Aq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),K=0,H,Y;K<H;++K)Z[K]=arguments[K+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],K=0,H=Y.length;K<H;++K)Y[K].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var K=this._[Q],H=0,Y=K.length;H<Y;++H)K[H].value.apply(U,Z)}};function CN(Q,U){for(var Z=0,K=Q.length,H;Z<K;++Z)if((H=Q[Z]).name===U)return H.value}function dA(Q,U,Z){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=PN,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var v8=rA;function q9(Q){return function(){return this.matches(Q)}}function Mq(Q){return function(U){return U.matches(Q)}}var Tq="http://www.w3.org/1999/xhtml",nF={svg:"http://www.w3.org/2000/svg",xhtml:Tq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function l4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return nF.hasOwnProperty(U)?{space:nF[U],local:Q}:Q}function eF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function E2(Q,U){if(Q=eF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var K=Z.createSVGPoint();return K.x=Q.clientX,K.y=Q.clientY,K=K.matrixTransform(U.getScreenCTM().inverse()),[K.x,K.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function fN(){}function S6(Q){return Q==null?fN:function(){return this.querySelector(Q)}}function _X(Q){if(typeof Q!=="function")Q=S6(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=K[H]=Array(W),T,R,M=0;M<W;++M)if((T=Y[M])&&(R=Q.call(T,T.__data__,M,Y))){if("__data__"in T)R.__data__=T.__data__;B[M]=R}return new t0(K,this._parents)}function JX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function SN(){return[]}function U9(Q){return Q==null?SN:function(){return this.querySelectorAll(Q)}}function jN(Q){return function(){return JX(Q.apply(this,arguments))}}function $X(Q){if(typeof Q==="function")Q=jN(Q);else Q=U9(Q);for(var U=this._groups,Z=U.length,K=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])K.push(Q.call(T,T.__data__,R,W)),H.push(T);return new t0(K,H)}var vN=Array.prototype.find;function VN(Q){return function(){return vN.call(this.children,Q)}}function yN(){return this.firstElementChild}function QX(Q){return this.select(Q==null?yN:VN(typeof Q==="function"?Q:Mq(Q)))}var kN=Array.prototype.filter;function DN(){return Array.from(this.children)}function uN(Q){return function(){return kN.call(this.children,Q)}}function qX(Q){return this.selectAll(Q==null?DN:uN(typeof Q==="function"?Q:Mq(Q)))}function UX(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=K[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new t0(K,this._parents)}function XJ(Q){return Array(Q.length)}function GX(){return new t0(this._enter||this._groups.map(XJ),this._parents)}function KJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}KJ.prototype={constructor:KJ,appendChild:function(Q){return this._parent.insertBefore(Q,this._next)},insertBefore:function(Q,U){return this._parent.insertBefore(Q,U)},querySelector:function(Q){return this._parent.querySelector(Q)},querySelectorAll:function(Q){return this._parent.querySelectorAll(Q)}};function ZX(Q){return function(){return Q}}function bN(Q,U,Z,K,H,Y){var W=0,B,T=U.length,R=Y.length;for(;W<R;++W)if(B=U[W])B.__data__=Y[W],K[W]=B;else Z[W]=new KJ(Q,Y[W]);for(;W<T;++W)if(B=U[W])H[W]=B}function EN(Q,U,Z,K,H,Y,W){var B,T,R=new Map,M=U.length,A=Y.length,O=Array(M),P;for(B=0;B<M;++B)if(T=U[B])if(O[B]=P=W.call(T,T.__data__,B,U)+"",R.has(P))H[B]=T;else R.set(P,T);for(B=0;B<A;++B)if(P=W.call(Q,Y[B],B,Y)+"",T=R.get(P))K[B]=T,T.__data__=Y[B],R.delete(P);else Z[B]=new KJ(Q,Y[B]);for(B=0;B<M;++B)if((T=U[B])&&R.get(O[B])===T)H[B]=T}function hN(Q){return Q.__data__}function FX(Q,U){if(!arguments.length)return Array.from(this,hN);var Z=U?EN:bN,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=ZX(Q);for(var Y=H.length,W=Array(Y),B=Array(Y),T=Array(Y),R=0;R<Y;++R){var M=K[R],A=H[R],O=A.length,P=xN(Q.call(M,M&&M.__data__,R,K)),N=P.length,V=B[R]=Array(N),j=W[R]=Array(N),f=T[R]=Array(O);Z(M,A,V,j,f,P,U);for(var u=0,C=0,v,D;u<N;++u)if(v=V[u]){if(u>=C)C=u+1;while(!(D=j[C])&&++C<N);v._next=D||null}}return W=new t0(W,K),W._enter=B,W._exit=T,W}function xN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function XX(){return new t0(this._exit||this._groups.map(XJ),this._parents)}function KX(Q,U,Z){var K=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(K=Q(K),K)K=K.selection()}else K=K.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return K&&H?K.merge(H).order():H}function HX(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,K=U._groups,H=Z.length,Y=K.length,W=Math.min(H,Y),B=Array(H),T=0;T<W;++T)for(var R=Z[T],M=K[T],A=R.length,O=B[T]=Array(A),P,N=0;N<A;++N)if(P=R[N]||M[N])O[N]=P;for(;T<H;++T)B[T]=Z[T];return new t0(B,this._parents)}function YX(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var K=Q[U],H=K.length-1,Y=K[H],W;--H>=0;)if(W=K[H]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function zX(Q){if(!Q)Q=mN;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var Z=this._groups,K=Z.length,H=Array(K),Y=0;Y<K;++Y){for(var W=Z[Y],B=W.length,T=H[Y]=Array(B),R,M=0;M<B;++M)if(R=W[M])T[M]=R;T.sort(U)}return new t0(H,this._parents).order()}function mN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function WX(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function BX(){return Array.from(this)}function LX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length;H<Y;++H){var W=K[H];if(W)return W}return null}function AX(){let Q=0;for(let U of this)++Q;return Q}function MX(){return!this.node()}function TX(Q){for(var U=this._groups,Z=0,K=U.length;Z<K;++Z)for(var H=U[Z],Y=0,W=H.length,B;Y<W;++Y)if(B=H[Y])Q.call(B,B.__data__,Y,H);return this}function gN(Q){return function(){this.removeAttribute(Q)}}function pN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function cN(Q,U){return function(){this.setAttribute(Q,U)}}function lN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function iN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function dN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,Z)}}function RX(Q,U){var Z=l4(Q);if(arguments.length<2){var K=this.node();return Z.local?K.getAttributeNS(Z.space,Z.local):K.getAttribute(Z)}return this.each((U==null?Z.local?pN:gN:typeof U==="function"?Z.local?dN:iN:Z.local?lN:cN)(Z,U))}function HJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function rN(Q){return function(){this.style.removeProperty(Q)}}function aN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function sN(Q,U,Z){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,Z)}}function OX(Q,U,Z){return arguments.length>1?this.each((U==null?rN:typeof U==="function"?sN:aN)(Q,U,Z==null?"":Z)):j6(this.node(),Q)}function j6(Q,U){return Q.style.getPropertyValue(U)||HJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function tN(Q){return function(){delete this[Q]}}function oN(Q,U){return function(){this[Q]=U}}function nN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function IX(Q,U){return arguments.length>1?this.each((U==null?tN:typeof U==="function"?nN:oN)(Q,U)):this.node()[Q]}function aA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new sA(Q)}function sA(Q){this._node=Q,this._names=aA(Q.getAttribute("class")||"")}sA.prototype={add:function(Q){var U=this._names.indexOf(Q);if(U<0)this._names.push(Q),this._node.setAttribute("class",this._names.join(" "))},remove:function(Q){var U=this._names.indexOf(Q);if(U>=0)this._names.splice(U,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(Q){return this._names.indexOf(Q)>=0}};function tA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.add(U[K])}function oA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.remove(U[K])}function eN(Q){return function(){tA(this,Q)}}function _C(Q){return function(){oA(this,Q)}}function JC(Q,U){return function(){(U.apply(this,arguments)?tA:oA)(this,Q)}}function PX(Q,U){var Z=aA(Q+"");if(arguments.length<2){var K=wX(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!K.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?JC:U?eN:_C)(Z,U))}function $C(){this.textContent=""}function QC(Q){return function(){this.textContent=Q}}function qC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function NX(Q){return arguments.length?this.each(Q==null?$C:(typeof Q==="function"?qC:QC)(Q)):this.node().textContent}function UC(){this.innerHTML=""}function GC(Q){return function(){this.innerHTML=Q}}function ZC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function CX(Q){return arguments.length?this.each(Q==null?UC:(typeof Q==="function"?ZC:GC)(Q)):this.node().innerHTML}function FC(){if(this.nextSibling)this.parentNode.appendChild(this)}function fX(){return this.each(FC)}function XC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SX(){return this.each(XC)}function KC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Tq&&U.documentElement.namespaceURI===Tq?U.createElement(Q):U.createElementNS(Z,Q)}}function HC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function YJ(Q){var U=l4(Q);return(U.local?HC:KC)(U)}function jX(Q){var U=typeof Q==="function"?Q:YJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function YC(){return null}function vX(Q,U){var Z=typeof Q==="function"?Q:YJ(Q),K=U==null?YC:typeof U==="function"?U:S6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function zC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function VX(){return this.each(zC)}function WC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function BC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function yX(Q){return this.select(Q?BC:WC)}function kX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function LC(Q){return function(U){Q.call(this,U,this.__data__)}}function AC(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",K=U.indexOf(".");if(K>=0)Z=U.slice(K+1),U=U.slice(0,K);return{type:U,name:Z}})}function MC(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,K=-1,H=U.length,Y;Z<H;++Z)if(Y=U[Z],(!Q.type||Y.type===Q.type)&&Y.name===Q.name)this.removeEventListener(Y.type,Y.listener,Y.options);else U[++K]=Y;if(++K)U.length=K;else delete this.__on}}function TC(Q,U,Z){return function(){var K=this.__on,H,Y=LC(U);if(K){for(var W=0,B=K.length;W<B;++W)if((H=K[W]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=Z),H.value=U;return}}if(this.addEventListener(Q.type,Y,Z),H={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!K)this.__on=[H];else K.push(H)}}function DX(Q,U,Z){var K=AC(Q+""),H,Y=K.length,W;if(arguments.length<2){var B=this.node().__on;if(B){for(var T=0,R=B.length,M;T<R;++T)for(H=0,M=B[T];H<Y;++H)if((W=K[H]).type===M.type&&W.name===M.name)return M.value}return}B=U?TC:MC;for(H=0;H<Y;++H)this.each(B(K[H],U,Z));return this}function nA(Q,U,Z){var K=HJ(Q),H=K.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=K.document.createEvent("Event"),Z)H.initEvent(U,Z.bubbles,Z.cancelable),H.detail=Z.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function RC(Q,U){return function(){return nA(this,Q,U)}}function OC(Q,U){return function(){return nA(this,Q,U.apply(this,arguments))}}function uX(Q,U){return this.each((typeof U==="function"?OC:RC)(Q,U))}function*bX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length,W;H<Y;++H)if(W=K[H])yield W}var EX=[null];function t0(Q,U){this._groups=Q,this._parents=U}function eA(){return new t0([[document.documentElement]],EX)}function IC(){return this}t0.prototype=eA.prototype={constructor:t0,select:_X,selectAll:$X,selectChild:QX,selectChildren:qX,filter:UX,data:FX,enter:GX,exit:XX,join:KX,merge:HX,selection:IC,order:YX,sort:zX,call:WX,nodes:BX,node:LX,size:AX,empty:MX,each:TX,attr:RX,style:OX,property:IX,classed:PX,text:NX,html:CX,raise:fX,lower:SX,append:jX,insert:vX,remove:VX,clone:yX,datum:kX,on:DX,dispatch:uX,[Symbol.iterator]:bX};var C3=eA;function B2(Q){return typeof Q==="string"?new t0([[document.querySelector(Q)]],[document.documentElement]):new t0([[Q]],EX)}var _M={passive:!1},V8={capture:!0,passive:!1};function Rq(Q){Q.stopImmediatePropagation()}function f3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function G9(Q){var U=Q.document.documentElement,Z=B2(Q).on("dragstart.drag",f3,V8);if("onselectstart"in U)Z.on("selectstart.drag",f3,V8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function zJ(Q,U){var Z=Q.document.documentElement,K=B2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",f3,V8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in Z)K.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var WJ=(Q)=>()=>Q;function BJ(Q,{sourceEvent:U,subject:Z,target:K,identifier:H,active:Y,x:W,y:B,dx:T,dy:R,dispatch:M}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:Z,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},identifier:{value:H,enumerable:!0,configurable:!0},active:{value:Y,enumerable:!0,configurable:!0},x:{value:W,enumerable:!0,configurable:!0},y:{value:B,enumerable:!0,configurable:!0},dx:{value:T,enumerable:!0,configurable:!0},dy:{value:R,enumerable:!0,configurable:!0},_:{value:M}})}BJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function wC(Q){return!Q.ctrlKey&&!Q.button}function PC(){return this.parentNode}function NC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function CC(){return navigator.maxTouchPoints||"ontouchstart"in this}function LJ(){var Q=wC,U=PC,Z=NC,K=CC,H={},Y=v8("start","drag","end"),W=0,B,T,R,M,A=0;function O(v){v.on("mousedown.drag",P).filter(K).on("touchstart.drag",j).on("touchmove.drag",f,_M).on("touchend.drag touchcancel.drag",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(v,D){if(M||!Q.call(this,v,D))return;var h=C(this,U.call(this,v,D),v,D,"mouse");if(!h)return;B2(v.view).on("mousemove.drag",N,V8).on("mouseup.drag",V,V8),G9(v.view),Rq(v),R=!1,B=v.clientX,T=v.clientY,h("start",v)}function N(v){if(f3(v),!R){var D=v.clientX-B,h=v.clientY-T;R=D*D+h*h>A}H.mouse("drag",v)}function V(v){B2(v.view).on("mousemove.drag mouseup.drag",null),zJ(v.view,R),f3(v),H.mouse("end",v)}function j(v,D){if(!Q.call(this,v,D))return;var h=v.changedTouches,E=U.call(this,v,D),b=h.length,k,x;for(k=0;k<b;++k)if(x=C(this,E,v,D,h[k].identifier,h[k]))Rq(v),x("start",v,h[k])}function f(v){var D=v.changedTouches,h=D.length,E,b;for(E=0;E<h;++E)if(b=H[D[E].identifier])f3(v),b("drag",v,D[E])}function u(v){var D=v.changedTouches,h=D.length,E,b;if(M)clearTimeout(M);M=setTimeout(function(){M=null},500);for(E=0;E<h;++E)if(b=H[D[E].identifier])Rq(v),b("end",v,D[E])}function C(v,D,h,E,b,k){var x=Y.copy(),$1=E2(k||h,D),Q1,J1,m;if((m=Z.call(v,new BJ("beforestart",{sourceEvent:h,target:O,identifier:b,active:W,x:$1[0],y:$1[1],dx:0,dy:0,dispatch:x}),E))==null)return;return Q1=m.x-$1[0]||0,J1=m.y-$1[1]||0,function p(c,a,i){var o=$1,y;switch(c){case"start":H[b]=p,y=W++;break;case"end":delete H[b],--W;case"drag":$1=E2(i||a,D),y=W;break}x.call(c,v,new BJ(c,{sourceEvent:a,subject:m,target:O,identifier:b,active:y,x:$1[0]+Q1,y:$1[1]+J1,dx:$1[0]-o[0],dy:$1[1]-o[1],dispatch:x}),E)}}return O.filter=function(v){return arguments.length?(Q=typeof v==="function"?v:WJ(!!v),O):Q},O.container=function(v){return arguments.length?(U=typeof v==="function"?v:WJ(v),O):U},O.subject=function(v){return arguments.length?(Z=typeof v==="function"?v:WJ(v),O):Z},O.touchable=function(v){return arguments.length?(K=typeof v==="function"?v:WJ(!!v),O):K},O.on=function(){var v=Y.on.apply(Y,arguments);return v===Y?O:v},O.clickDistance=function(v){return arguments.length?(A=(v=+v)*v,O):Math.sqrt(A)},O}function AJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function hX(Q,U){var Z=Object.create(Q.prototype);for(var K in U)Z[K]=U[K];return Z}function RJ(){}var MJ=0.7,wq=1/MJ,Z9="\\s*([+-]?\\d+)\\s*",TJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fC=/^#([0-9a-f]{3,8})$/,SC=new RegExp(`^rgb\\(${Z9},${Z9},${Z9}\\)$`),jC=new RegExp(`^rgb\\(${i4},${i4},${i4}\\)$`),vC=new RegExp(`^rgba\\(${Z9},${Z9},${Z9},${TJ}\\)$`),VC=new RegExp(`^rgba\\(${i4},${i4},${i4},${TJ}\\)$`),yC=new RegExp(`^hsl\\(${TJ},${i4},${i4}\\)$`),kC=new RegExp(`^hsla\\(${TJ},${i4},${i4},${TJ}\\)$`),JM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};AJ(RJ,F4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:$M,formatHex:$M,formatHex8:DC,formatHsl:uC,formatRgb:QM,toString:QM});function $M(){return this.rgb().formatHex()}function DC(){return this.rgb().formatHex8()}function uC(){return XM(this).formatHsl()}function QM(){return this.rgb().formatRgb()}function F4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=fC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?qM(U):Z===3?new F5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Oq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Oq(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=SC.exec(Q))?new F5(U[1],U[2],U[3],1):(U=jC.exec(Q))?new F5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=vC.exec(Q))?Oq(U[1],U[2],U[3],U[4]):(U=VC.exec(Q))?Oq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=yC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,1):(U=kC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,U[4]):JM.hasOwnProperty(Q)?qM(JM[Q]):Q==="transparent"?new F5(NaN,NaN,NaN,0):null}function qM(Q){return new F5(Q>>16&255,Q>>8&255,Q&255,1)}function Oq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new F5(Q,U,Z,K)}function bC(Q){if(!(Q instanceof RJ))Q=F4(Q);if(!Q)return new F5;return Q=Q.rgb(),new F5(Q.r,Q.g,Q.b,Q.opacity)}function F9(Q,U,Z,K){return arguments.length===1?bC(Q):new F5(Q,U,Z,K==null?1:K)}function F5(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}AJ(F5,F9,hX(RJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?MJ:Math.pow(MJ,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new F5(k8(this.r),k8(this.g),k8(this.b),Pq(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:UM,formatHex:UM,formatHex8:EC,formatRgb:GM,toString:GM}));function UM(){return`#${y8(this.r)}${y8(this.g)}${y8(this.b)}`}function EC(){return`#${y8(this.r)}${y8(this.g)}${y8(this.b)}${y8((isNaN(this.opacity)?1:this.opacity)*255)}`}function GM(){let Q=Pq(this.opacity);return`${Q===1?"rgb(":"rgba("}${k8(this.r)}, ${k8(this.g)}, ${k8(this.b)}${Q===1?")":`, ${Q})`}`}function Pq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function k8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function y8(Q){return Q=k8(Q),(Q<16?"0":"")+Q.toString(16)}function ZM(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new Z4(Q,U,Z,K)}function XM(Q){if(Q instanceof Z4)return new Z4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof RJ))Q=F4(Q);if(!Q)return new Z4;if(Q instanceof Z4)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,K=Q.b/255,H=Math.min(U,Z,K),Y=Math.max(U,Z,K),W=NaN,B=Y-H,T=(Y+H)/2;if(B){if(U===Y)W=(Z-K)/B+(Z<K)*6;else if(Z===Y)W=(K-U)/B+2;else W=(U-Z)/B+4;B/=T<0.5?Y+H:2-Y-H,W*=60}else B=T>0&&T<1?0:W;return new Z4(W,B,T,Q.opacity)}function KM(Q,U,Z,K){return arguments.length===1?XM(Q):new Z4(Q,U,Z,K==null?1:K)}function Z4(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}AJ(Z4,KM,hX(RJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?MJ:Math.pow(MJ,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,K=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-K;return new F5(xX(Q>=240?Q-240:Q+120,H,K),xX(Q,H,K),xX(Q<120?Q+240:Q-120,H,K),this.opacity)},clamp(){return new Z4(FM(this.h),Iq(this.s),Iq(this.l),Pq(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let Q=Pq(this.opacity);return`${Q===1?"hsl(":"hsla("}${FM(this.h)}, ${Iq(this.s)*100}%, ${Iq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function FM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Iq(Q){return Math.max(0,Math.min(1,Q||0))}function xX(Q,U,Z){return(Q<60?U+(Z-U)*Q/60:Q<180?Z:Q<240?U+(Z-U)*(240-Q)/60:U)*255}function mX(Q,U,Z,K,H){var Y=Q*Q,W=Y*Q;return((1-3*Q+3*Y-W)*U+(4-6*Y+3*W)*Z+(1+3*Q+3*Y-3*W)*K+W*H)/6}function gX(Q){var U=Q.length-1;return function(Z){var K=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[K],Y=Q[K+1],W=K>0?Q[K-1]:2*H-Y,B=K<U-1?Q[K+2]:2*Y-H;return mX((Z-K/U)*U,W,H,Y,B)}}function pX(Q){var U=Q.length;return function(Z){var K=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(K+U-1)%U],Y=Q[K%U],W=Q[(K+1)%U],B=Q[(K+2)%U];return mX((Z-K/U)*U,H,Y,W,B)}}var OJ=(Q)=>()=>Q;function hC(Q,U){return function(Z){return Q+Z*U}}function xC(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(K){return Math.pow(Q+K*U,Z)}}function HM(Q){return(Q=+Q)===1?Nq:function(U,Z){return Z-U?xC(U,Z,Q):OJ(isNaN(U)?Z:U)}}function Nq(Q,U){var Z=U-Q;return Z?hC(Q,Z):OJ(isNaN(Q)?U:Q)}var D8=function Q(U){var Z=HM(U);function K(H,Y){var W=Z((H=F9(H)).r,(Y=F9(Y)).r),B=Z(H.g,Y.g),T=Z(H.b,Y.b),R=Nq(H.opacity,Y.opacity);return function(M){return H.r=W(M),H.g=B(M),H.b=T(M),H.opacity=R(M),H+""}}return K.gamma=Q,K}(1);function YM(Q){return function(U){var Z=U.length,K=Array(Z),H=Array(Z),Y=Array(Z),W,B;for(W=0;W<Z;++W)B=F9(U[W]),K[W]=B.r||0,H[W]=B.g||0,Y[W]=B.b||0;return K=Q(K),H=Q(H),Y=Q(Y),B.opacity=1,function(T){return B.r=K(T),B.g=H(T),B.b=Y(T),B+""}}}var mC=YM(gX),gC=YM(pX);function cX(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,K=U.slice(),H;return function(Y){for(H=0;H<Z;++H)K[H]=Q[H]*(1-Y)+U[H]*Y;return K}}function zM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function WM(Q,U){var Z=U?U.length:0,K=Q?Math.min(Z,Q.length):0,H=Array(K),Y=Array(Z),W;for(W=0;W<K;++W)H[W]=d4(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(B){for(W=0;W<K;++W)Y[W]=H[W](B);return Y}}function lX(Q,U){var Z=new Date;return Q=+Q,U=+U,function(K){return Z.setTime(Q*(1-K)+U*K),Z}}function h2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function iX(Q,U){var Z={},K={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)Z[H]=d4(Q[H],U[H]);else K[H]=U[H];return function(Y){for(H in Z)K[H]=Z[H](Y);return K}}var rX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dX=new RegExp(rX.source,"g");function pC(Q){return function(){return Q}}function cC(Q){return function(U){return Q(U)+""}}function X9(Q,U){var Z=rX.lastIndex=dX.lastIndex=0,K,H,Y,W=-1,B=[],T=[];Q=Q+"",U=U+"";while((K=rX.exec(Q))&&(H=dX.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),B[W])B[W]+=Y;else B[++W]=Y;if((K=K[0])===(H=H[0]))if(B[W])B[W]+=H;else B[++W]=H;else B[++W]=null,T.push({i:W,x:h2(K,H)});Z=dX.lastIndex}if(Z<U.length)if(Y=U.slice(Z),B[W])B[W]+=Y;else B[++W]=Y;return B.length<2?T[0]?cC(T[0].x):pC(U):(U=T.length,function(R){for(var M=0,A;M<U;++M)B[(A=T[M]).i]=A.x(R);return B.join("")})}function d4(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?OJ(U):(Z==="number"?h2:Z==="string"?(K=F4(U))?(U=K,D8):X9:U instanceof F4?D8:U instanceof Date?lX:zM(U)?cX:Array.isArray(U)?WM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?iX:h2)(Q,U)}var BM=180/Math.PI,Cq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fq(Q,U,Z,K,H,Y){var W,B,T;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(T=Q*Z+U*K)Z-=Q*T,K-=U*T;if(B=Math.sqrt(Z*Z+K*K))Z/=B,K/=B,T/=B;if(Q*K<U*Z)Q=-Q,U=-U,T=-T,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*BM,skewX:Math.atan(T)*BM,scaleX:W,scaleY:B}}var Sq;function LM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Cq:fq(U.a,U.b,U.c,U.d,U.e,U.f)}function AM(Q){if(Q==null)return Cq;if(!Sq)Sq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Sq.setAttribute("transform",Q),!(Q=Sq.transform.baseVal.consolidate()))return Cq;return Q=Q.matrix,fq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function MM(Q,U,Z,K){function H(R){return R.length?R.pop()+" ":""}function Y(R,M,A,O,P,N){if(R!==A||M!==O){var V=P.push("translate(",null,U,null,Z);N.push({i:V-4,x:h2(R,A)},{i:V-2,x:h2(M,O)})}else if(A||O)P.push("translate("+A+U+O+Z)}function W(R,M,A,O){if(R!==M){if(R-M>180)M+=360;else if(M-R>180)R+=360;O.push({i:A.push(H(A)+"rotate(",null,K)-2,x:h2(R,M)})}else if(M)A.push(H(A)+"rotate("+M+K)}function B(R,M,A,O){if(R!==M)O.push({i:A.push(H(A)+"skewX(",null,K)-2,x:h2(R,M)});else if(M)A.push(H(A)+"skewX("+M+K)}function T(R,M,A,O,P,N){if(R!==A||M!==O){var V=P.push(H(P)+"scale(",null,",",null,")");N.push({i:V-4,x:h2(R,A)},{i:V-2,x:h2(M,O)})}else if(A!==1||O!==1)P.push(H(P)+"scale("+A+","+O+")")}return function(R,M){var A=[],O=[];return R=Q(R),M=Q(M),Y(R.translateX,R.translateY,M.translateX,M.translateY,A,O),W(R.rotate,M.rotate,A,O),B(R.skewX,M.skewX,A,O),T(R.scaleX,R.scaleY,M.scaleX,M.scaleY,A,O),R=M=null,function(P){var N=-1,V=O.length,j;while(++N<V)A[(j=O[N]).i]=j.x(P);return A.join("")}}}var aX=MM(LM,"px, ","px)","deg)"),sX=MM(AM,", ",")",")");var lC=0.000000000001;function TM(Q){return((Q=Math.exp(Q))+1/Q)/2}function iC(Q){return((Q=Math.exp(Q))-1/Q)/2}function dC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var u8=function Q(U,Z,K){function H(Y,W){var B=Y[0],T=Y[1],R=Y[2],M=W[0],A=W[1],O=W[2],P=M-B,N=A-T,V=P*P+N*N,j,f;if(V<lC)f=Math.log(O/R)/U,j=function(E){return[B+E*P,T+E*N,R*Math.exp(U*E*f)]};else{var u=Math.sqrt(V),C=(O*O-R*R+K*V)/(2*R*Z*u),v=(O*O-R*R-K*V)/(2*O*Z*u),D=Math.log(Math.sqrt(C*C+1)-C),h=Math.log(Math.sqrt(v*v+1)-v);f=(h-D)/U,j=function(E){var b=E*f,k=TM(D),x=R/(Z*u)*(k*dC(U*b+D)-iC(D));return[B+x*P,T+x*N,R*k/TM(U*b+D)]}}return j.duration=f*1000*U/Math.SQRT2,j}return H.rho=function(Y){var W=Math.max(0.001,+Y),B=W*W,T=B*B;return Q(W,B,T)},H}(Math.SQRT2,2,4);var K9=0,wJ=0,IJ=0,OM=1000,jq,PJ,vq=0,b8=0,Vq=0,NJ=typeof performance==="object"&&performance.now?performance:Date,IM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function fJ(){return b8||(IM(rC),b8=NJ.now()+Vq)}function rC(){b8=0}function CJ(){this._call=this._time=this._next=null}CJ.prototype=yq.prototype={constructor:CJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?fJ():+Z)+(U==null?0:+U),!this._next&&PJ!==this){if(PJ)PJ._next=this;else jq=this;PJ=this}this._call=Q,this._time=Z,tX()},stop:function(){if(this._call)this._call=null,this._time=1/0,tX()}};function yq(Q,U,Z){var K=new CJ;return K.restart(Q,U,Z),K}function wM(){fJ(),++K9;var Q=jq,U;while(Q){if((U=b8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--K9}function RM(){b8=(vq=NJ.now())+Vq,K9=wJ=0;try{wM()}finally{K9=0,sC(),b8=0}}function aC(){var Q=NJ.now(),U=Q-vq;if(U>OM)Vq-=U,vq=Q}function sC(){var Q,U=jq,Z,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:jq=Z;PJ=Q,tX(K)}function tX(Q){if(K9)return;if(wJ)wJ=clearTimeout(wJ);var U=Q-b8;if(U>24){if(Q<1/0)wJ=setTimeout(RM,Q-NJ.now()-Vq);if(IJ)IJ=clearInterval(IJ)}else{if(!IJ)vq=NJ.now(),IJ=setInterval(aC,OM);K9=1,IM(RM)}}function SJ(Q,U,Z){var K=new CJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,Z),K}var tC=v8("start","end","cancel","interrupt"),oC=[],CM=0,PM=1,Dq=2,kq=3,NM=4,uq=5,jJ=6;function S3(Q,U,Z,K,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;nC(Q,Z,{name:U,index:K,group:H,on:tC,tween:oC,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:CM})}function vJ(Q,U){var Z=L2(Q,U);if(Z.state>CM)throw Error("too late; already scheduled");return Z}function y2(Q,U){var Z=L2(Q,U);if(Z.state>kq)throw Error("too late; already running");return Z}function L2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function nC(Q,U,Z){var K=Q.__transition,H;K[U]=Z,Z.timer=yq(Y,0,Z.time);function Y(R){if(Z.state=PM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=R)W(R-Z.delay)}function W(R){var M,A,O,P;if(Z.state!==PM)return T();for(M in K){if(P=K[M],P.name!==Z.name)continue;if(P.state===kq)return SJ(W);if(P.state===NM)P.state=jJ,P.timer.stop(),P.on.call("interrupt",Q,Q.__data__,P.index,P.group),delete K[M];else if(+M<U)P.state=jJ,P.timer.stop(),P.on.call("cancel",Q,Q.__data__,P.index,P.group),delete K[M]}if(SJ(function(){if(Z.state===kq)Z.state=NM,Z.timer.restart(B,Z.delay,Z.time),B(R)}),Z.state=Dq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Dq)return;Z.state=kq,H=Array(O=Z.tween.length);for(M=0,A=-1;M<O;++M)if(P=Z.tween[M].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=P;H.length=A+1}function B(R){var M=R<Z.duration?Z.ease.call(null,R/Z.duration):(Z.timer.restart(T),Z.state=uq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,M);if(Z.state===uq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),T()}function T(){Z.state=jJ,Z.timer.stop(),delete K[U];for(var R in K)return;delete Q.__transition}}function v6(Q,U){var Z=Q.__transition,K,H,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((K=Z[W]).name!==U){Y=!1;continue}H=K.state>Dq&&K.state<uq,K.state=jJ,K.timer.stop(),K.on.call(H?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete Z[W]}if(Y)delete Q.__transition}function oX(Q){return this.each(function(){v6(this,Q)})}function eC(Q,U){var Z,K;return function(){var H=y2(this,Q),Y=H.tween;if(Y!==Z){K=Z=Y;for(var W=0,B=K.length;W<B;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}H.tween=K}}function _f(Q,U,Z){var K,H;if(typeof Z!=="function")throw Error();return function(){var Y=y2(this,Q),W=Y.tween;if(W!==K){H=(K=W).slice();for(var B={name:U,value:Z},T=0,R=H.length;T<R;++T)if(H[T].name===U){H[T]=B;break}if(T===R)H.push(B)}Y.tween=H}}function nX(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=L2(this.node(),Z).tween;for(var H=0,Y=K.length,W;H<Y;++H)if((W=K[H]).name===Q)return W.value;return null}return this.each((U==null?eC:_f)(Z,Q,U))}function H9(Q,U,Z){var K=Q._id;return Q.each(function(){var H=y2(this,K);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return L2(H,K).value[U]}}function VJ(Q,U){var Z;return(typeof U==="number"?h2:U instanceof F4?D8:(Z=F4(U))?(U=Z,D8):X9)(Q,U)}function Jf(Q){return function(){this.removeAttribute(Q)}}function $f(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function Qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Uf(Q,U,Z){var K,H,Y;return function(){var W,B=Z(this),T;if(B==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),T=B+"",W===T?null:W===K&&T===H?Y:(H=T,Y=U(K=W,B))}}function Gf(Q,U,Z){var K,H,Y;return function(){var W,B=Z(this),T;if(B==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),T=B+"",W===T?null:W===K&&T===H?Y:(H=T,Y=U(K=W,B))}}function eX(Q,U){var Z=l4(Q),K=Z==="transform"?sX:VJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Gf:Uf)(Z,K,H9(this,"attr."+Q,U)):U==null?(Z.local?$f:Jf)(Z):(Z.local?qf:Qf)(Z,K,U))}function Zf(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Ff(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function Xf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Ff(Q,Y);return Z}return H._value=U,H}function Kf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Zf(Q,Y);return Z}return H._value=U,H}function _K(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var K=l4(Q);return this.tween(Z,(K.local?Xf:Kf)(K,U))}function Hf(Q,U){return function(){vJ(this,Q).delay=+U.apply(this,arguments)}}function Yf(Q,U){return U=+U,function(){vJ(this,Q).delay=U}}function JK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Hf:Yf)(U,Q)):L2(this.node(),U).delay}function zf(Q,U){return function(){y2(this,Q).duration=+U.apply(this,arguments)}}function Wf(Q,U){return U=+U,function(){y2(this,Q).duration=U}}function $K(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?zf:Wf)(U,Q)):L2(this.node(),U).duration}function Bf(Q,U){if(typeof U!=="function")throw Error();return function(){y2(this,Q).ease=U}}function QK(Q){var U=this._id;return arguments.length?this.each(Bf(U,Q)):L2(this.node(),U).ease}function Lf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();y2(this,Q).ease=Z}}function qK(Q){if(typeof Q!=="function")throw Error();return this.each(Lf(this._id,Q))}function UK(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=K[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new o2(K,this._parents,this._name,this._id)}function GK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,K=U.length,H=Z.length,Y=Math.min(K,H),W=Array(K),B=0;B<Y;++B)for(var T=U[B],R=Z[B],M=T.length,A=W[B]=Array(M),O,P=0;P<M;++P)if(O=T[P]||R[P])A[P]=O;for(;B<K;++B)W[B]=U[B];return new o2(W,this._parents,this._name,this._id)}function Af(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var Z=U.indexOf(".");if(Z>=0)U=U.slice(0,Z);return!U||U==="start"})}function Mf(Q,U,Z){var K,H,Y=Af(U)?vJ:y2;return function(){var W=Y(this,Q),B=W.on;if(B!==K)(H=(K=B).copy()).on(U,Z);W.on=H}}function ZK(Q,U){var Z=this._id;return arguments.length<2?L2(this.node(),Z).on.on(Q):this.each(Mf(Z,Q,U))}function Tf(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function FK(){return this.on("end.remove",Tf(this._id))}function XK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=S6(Q);for(var K=this._groups,H=K.length,Y=Array(H),W=0;W<H;++W)for(var B=K[W],T=B.length,R=Y[W]=Array(T),M,A,O=0;O<T;++O)if((M=B[O])&&(A=Q.call(M,M.__data__,O,B))){if("__data__"in M)A.__data__=M.__data__;R[O]=A,S3(R[O],U,Z,O,R,L2(M,Z))}return new o2(Y,this._parents,U,Z)}function KK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=U9(Q);for(var K=this._groups,H=K.length,Y=[],W=[],B=0;B<H;++B)for(var T=K[B],R=T.length,M,A=0;A<R;++A)if(M=T[A]){for(var O=Q.call(M,M.__data__,A,T),P,N=L2(M,Z),V=0,j=O.length;V<j;++V)if(P=O[V])S3(P,U,Z,V,O,N);Y.push(O),W.push(M)}return new o2(Y,W,U,Z)}var Rf=C3.prototype.constructor;function HK(){return new Rf(this._groups,this._parents)}function Of(Q,U){var Z,K,H;return function(){var Y=j6(this,Q),W=(this.style.removeProperty(Q),j6(this,Q));return Y===W?null:Y===Z&&W===K?H:H=U(Z=Y,K=W)}}function fM(Q){return function(){this.style.removeProperty(Q)}}function If(Q,U,Z){var K,H=Z+"",Y;return function(){var W=j6(this,Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function wf(Q,U,Z){var K,H,Y;return function(){var W=j6(this,Q),B=Z(this),T=B+"";if(B==null)T=B=(this.style.removeProperty(Q),j6(this,Q));return W===T?null:W===K&&T===H?Y:(H=T,Y=U(K=W,B))}}function Pf(Q,U){var Z,K,H,Y="style."+U,W="end."+Y,B;return function(){var T=y2(this,Q),R=T.on,M=T.value[Y]==null?B||(B=fM(U)):void 0;if(R!==Z||H!==M)(K=(Z=R).copy()).on(W,H=M);T.on=K}}function YK(Q,U,Z){var K=(Q+="")==="transform"?aX:VJ;return U==null?this.styleTween(Q,Of(Q,K)).on("end.style."+Q,fM(Q)):typeof U==="function"?this.styleTween(Q,wf(Q,K,H9(this,"style."+Q,U))).each(Pf(this._id,Q)):this.styleTween(Q,If(Q,K,U),Z).on("end.style."+Q,null)}function Nf(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function Cf(Q,U,Z){var K,H;function Y(){var W=U.apply(this,arguments);if(W!==H)K=(H=W)&&Nf(Q,W,Z);return K}return Y._value=U,Y}function zK(Q,U,Z){var K="style."+(Q+="");if(arguments.length<2)return(K=this.tween(K))&&K._value;if(U==null)return this.tween(K,null);if(typeof U!=="function")throw Error();return this.tween(K,Cf(Q,U,Z==null?"":Z))}function ff(Q){return function(){this.textContent=Q}}function Sf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function WK(Q){return this.tween("text",typeof Q==="function"?Sf(H9(this,"text",Q)):ff(Q==null?"":Q+""))}function jf(Q){return function(U){this.textContent=Q.call(this,U)}}function vf(Q){var U,Z;function K(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&jf(H);return U}return K._value=Q,K}function BK(Q){var U="text";if(arguments.length<1)return(U=this.tween(U))&&U._value;if(Q==null)return this.tween(U,null);if(typeof Q!=="function")throw Error();return this.tween(U,vf(Q))}function LK(){var Q=this._name,U=this._id,Z=bq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R]){var M=L2(T,U);S3(T,Q,Z,R,W,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new o2(K,this._parents,Q,Z)}function AK(){var Q,U,Z=this,K=Z._id,H=Z.size();return new Promise(function(Y,W){var B={value:W},T={value:function(){if(--H===0)Y()}};if(Z.each(function(){var R=y2(this,K),M=R.on;if(M!==Q)U=(Q=M).copy(),U._.cancel.push(B),U._.interrupt.push(B),U._.end.push(T);R.on=U}),H===0)Y()})}var Vf=0;function o2(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function SM(Q){return C3().transition(Q)}function bq(){return++Vf}var j3=C3.prototype;o2.prototype=SM.prototype={constructor:o2,select:XK,selectAll:KK,selectChild:j3.selectChild,selectChildren:j3.selectChildren,filter:UK,merge:GK,selection:HK,transition:LK,call:j3.call,nodes:j3.nodes,node:j3.node,size:j3.size,empty:j3.empty,each:j3.each,on:ZK,attr:eX,attrTween:_K,style:YK,styleTween:zK,text:WK,textTween:BK,remove:FK,tween:nX,delay:JK,duration:$K,ease:QK,easeVarying:qK,end:AK,[Symbol.iterator]:j3[Symbol.iterator]};function Eq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var yf={time:null,delay:0,duration:250,ease:Eq};function kf(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function MK(Q){var U,Z;if(Q instanceof o2)U=Q._id,Q=Q._name;else U=bq(),(Z=yf).time=fJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])S3(T,Q,U,R,W,Z||kf(T,U));return new o2(K,this._parents,Q,U)}C3.prototype.interrupt=oX;C3.prototype.transition=MK;var yJ=(Q)=>()=>Q;function TK(Q,{sourceEvent:U,target:Z,transform:K,dispatch:H}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:Z,enumerable:!0,configurable:!0},transform:{value:K,enumerable:!0,configurable:!0},_:{value:H}})}function X4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}X4.prototype={constructor:X4,scale:function(Q){return Q===1?this:new X4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new X4(this.k,this.x+this.k*Q,this.y+this.k*U)},apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},applyX:function(Q){return Q*this.k+this.x},applyY:function(Q){return Q*this.k+this.y},invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},invertX:function(Q){return(Q-this.x)/this.k},invertY:function(Q){return(Q-this.y)/this.k},rescaleX:function(Q){return Q.copy().domain(Q.range().map(this.invertX,this).map(Q.invert,Q))},rescaleY:function(Q){return Q.copy().domain(Q.range().map(this.invertY,this).map(Q.invert,Q))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var E8=new X4(1,0,0);kJ.prototype=X4.prototype;function kJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return E8;return Q.__zoom}function hq(Q){Q.stopImmediatePropagation()}function h8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Df(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function uf(){var Q=this;if(Q instanceof SVGElement){if(Q=Q.ownerSVGElement||Q,Q.hasAttribute("viewBox"))return Q=Q.viewBox.baseVal,[[Q.x,Q.y],[Q.x+Q.width,Q.y+Q.height]];return[[0,0],[Q.width.baseVal.value,Q.height.baseVal.value]]}return[[0,0],[Q.clientWidth,Q.clientHeight]]}function jM(){return this.__zoom||E8}function bf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function Ef(){return navigator.maxTouchPoints||"ontouchstart"in this}function hf(Q,U,Z){var K=Q.invertX(U[0][0])-Z[0][0],H=Q.invertX(U[1][0])-Z[1][0],Y=Q.invertY(U[0][1])-Z[0][1],W=Q.invertY(U[1][1])-Z[1][1];return Q.translate(H>K?(K+H)/2:Math.min(0,K)||Math.max(0,H),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function DJ(){var Q=Df,U=uf,Z=hf,K=bf,H=Ef,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],B=250,T=u8,R=v8("start","zoom","end"),M,A,O,P=500,N=150,V=0,j=10;function f(m){m.property("__zoom",jM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",x).filter(H).on("touchstart.zoom",$1).on("touchmove.zoom",Q1).on("touchend.zoom touchcancel.zoom",J1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}f.transform=function(m,p,c,a){var i=m.selection?m.selection():m;if(i.property("__zoom",jM),m!==i)D(m,p,c,a);else i.interrupt().each(function(){h(this,arguments).event(a).start().zoom(null,typeof p==="function"?p.apply(this,arguments):p).end()})},f.scaleBy=function(m,p,c,a){f.scaleTo(m,function(){var i=this.__zoom.k,o=typeof p==="function"?p.apply(this,arguments):p;return i*o},c,a)},f.scaleTo=function(m,p,c,a){f.transform(m,function(){var i=U.apply(this,arguments),o=this.__zoom,y=c==null?v(i):typeof c==="function"?c.apply(this,arguments):c,g=o.invert(y),q1=typeof p==="function"?p.apply(this,arguments):p;return Z(C(u(o,q1),y,g),i,W)},c,a)},f.translateBy=function(m,p,c,a){f.transform(m,function(){return Z(this.__zoom.translate(typeof p==="function"?p.apply(this,arguments):p,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),W)},null,a)},f.translateTo=function(m,p,c,a,i){f.transform(m,function(){var o=U.apply(this,arguments),y=this.__zoom,g=a==null?v(o):typeof a==="function"?a.apply(this,arguments):a;return Z(E8.translate(g[0],g[1]).scale(y.k).translate(typeof p==="function"?-p.apply(this,arguments):-p,typeof c==="function"?-c.apply(this,arguments):-c),o,W)},a,i)};function u(m,p){return p=Math.max(Y[0],Math.min(Y[1],p)),p===m.k?m:new X4(p,m.x,m.y)}function C(m,p,c){var a=p[0]-c[0]*m.k,i=p[1]-c[1]*m.k;return a===m.x&&i===m.y?m:new X4(m.k,a,i)}function v(m){return[(+m[0][0]+ +m[1][0])/2,(+m[0][1]+ +m[1][1])/2]}function D(m,p,c,a){m.on("start.zoom",function(){h(this,arguments).event(a).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(a).end()}).tween("zoom",function(){var i=this,o=arguments,y=h(i,o).event(a),g=U.apply(i,o),q1=c==null?v(g):typeof c==="function"?c.apply(i,o):c,t=Math.max(g[1][0]-g[0][0],g[1][1]-g[0][1]),W1=i.__zoom,T1=typeof p==="function"?p.apply(i,o):p,O1=T(W1.invert(q1).concat(t/W1.k),T1.invert(q1).concat(t/T1.k));return function(B1){if(B1===1)B1=T1;else{var U1=O1(B1),P1=t/U1[2];B1=new X4(P1,q1[0]-U1[0]*P1,q1[1]-U1[1]*P1)}y.zoom(null,B1)}})}function h(m,p,c){return!c&&m.__zooming||new E(m,p)}function E(m,p){this.that=m,this.args=p,this.active=0,this.sourceEvent=null,this.extent=U.apply(m,p),this.taps=0}E.prototype={event:function(m){if(m)this.sourceEvent=m;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(m,p){if(this.mouse&&m!=="mouse")this.mouse[1]=p.invert(this.mouse[0]);if(this.touch0&&m!=="touch")this.touch0[1]=p.invert(this.touch0[0]);if(this.touch1&&m!=="touch")this.touch1[1]=p.invert(this.touch1[0]);return this.that.__zoom=p,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(m){var p=B2(this.that).datum();R.call(m,this.that,new TK(m,{sourceEvent:this.sourceEvent,target:f,type:m,transform:this.that.__zoom,dispatch:R}),p)}};function b(m,...p){if(!Q.apply(this,arguments))return;var c=h(this,p).event(m),a=this.__zoom,i=Math.max(Y[0],Math.min(Y[1],a.k*Math.pow(2,K.apply(this,arguments)))),o=E2(m);if(c.wheel){if(c.mouse[0][0]!==o[0]||c.mouse[0][1]!==o[1])c.mouse[1]=a.invert(c.mouse[0]=o);clearTimeout(c.wheel)}else if(a.k===i)return;else c.mouse=[o,a.invert(o)],v6(this),c.start();h8(m),c.wheel=setTimeout(y,N),c.zoom("mouse",Z(C(u(a,i),c.mouse[0],c.mouse[1]),c.extent,W));function y(){c.wheel=null,c.end()}}function k(m,...p){if(O||!Q.apply(this,arguments))return;var c=m.currentTarget,a=h(this,p,!0).event(m),i=B2(m.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",t,!0),o=E2(m,c),y=m.clientX,g=m.clientY;G9(m.view),hq(m),a.mouse=[o,this.__zoom.invert(o)],v6(this),a.start();function q1(W1){if(h8(W1),!a.moved){var T1=W1.clientX-y,O1=W1.clientY-g;a.moved=T1*T1+O1*O1>V}a.event(W1).zoom("mouse",Z(C(a.that.__zoom,a.mouse[0]=E2(W1,c),a.mouse[1]),a.extent,W))}function t(W1){i.on("mousemove.zoom mouseup.zoom",null),zJ(W1.view,a.moved),h8(W1),a.event(W1).end()}}function x(m,...p){if(!Q.apply(this,arguments))return;var c=this.__zoom,a=E2(m.changedTouches?m.changedTouches[0]:m,this),i=c.invert(a),o=c.k*(m.shiftKey?0.5:2),y=Z(C(u(c,o),a,i),U.apply(this,p),W);if(h8(m),B>0)B2(this).transition().duration(B).call(D,y,a,m);else B2(this).call(f.transform,y,a,m)}function $1(m,...p){if(!Q.apply(this,arguments))return;var c=m.touches,a=c.length,i=h(this,p,m.changedTouches.length===a).event(m),o,y,g,q1;hq(m);for(y=0;y<a;++y)if(g=c[y],q1=E2(g,this),q1=[q1,this.__zoom.invert(q1),g.identifier],!i.touch0)i.touch0=q1,o=!0,i.taps=1+!!M;else if(!i.touch1&&i.touch0[2]!==q1[2])i.touch1=q1,i.taps=0;if(M)M=clearTimeout(M);if(o){if(i.taps<2)A=q1[0],M=setTimeout(function(){M=null},P);v6(this),i.start()}}function Q1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,y,g,q1;h8(m);for(o=0;o<i;++o)if(y=a[o],g=E2(y,this),c.touch0&&c.touch0[2]===y.identifier)c.touch0[0]=g;else if(c.touch1&&c.touch1[2]===y.identifier)c.touch1[0]=g;if(y=c.that.__zoom,c.touch1){var t=c.touch0[0],W1=c.touch0[1],T1=c.touch1[0],O1=c.touch1[1],B1=(B1=T1[0]-t[0])*B1+(B1=T1[1]-t[1])*B1,U1=(U1=O1[0]-W1[0])*U1+(U1=O1[1]-W1[1])*U1;y=u(y,Math.sqrt(B1/U1)),g=[(t[0]+T1[0])/2,(t[1]+T1[1])/2],q1=[(W1[0]+O1[0])/2,(W1[1]+O1[1])/2]}else if(c.touch0)g=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(C(y,g,q1),c.extent,W))}function J1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,y;if(hq(m),O)clearTimeout(O);O=setTimeout(function(){O=null},P);for(o=0;o<i;++o)if(y=a[o],c.touch0&&c.touch0[2]===y.identifier)delete c.touch0;else if(c.touch1&&c.touch1[2]===y.identifier)delete c.touch1;if(c.touch1&&!c.touch0)c.touch0=c.touch1,delete c.touch1;if(c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),c.taps===2){if(y=E2(y,this),Math.hypot(A[0]-y[0],A[1]-y[1])<j){var g=B2(this).on("dblclick.zoom");if(g)g.apply(this,arguments)}}}return f.wheelDelta=function(m){return arguments.length?(K=typeof m==="function"?m:yJ(+m),f):K},f.filter=function(m){return arguments.length?(Q=typeof m==="function"?m:yJ(!!m),f):Q},f.touchable=function(m){return arguments.length?(H=typeof m==="function"?m:yJ(!!m),f):H},f.extent=function(m){return arguments.length?(U=typeof m==="function"?m:yJ([[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]]),f):U},f.scaleExtent=function(m){return arguments.length?(Y[0]=+m[0],Y[1]=+m[1],f):[Y[0],Y[1]]},f.translateExtent=function(m){return arguments.length?(W[0][0]=+m[0][0],W[1][0]=+m[1][0],W[0][1]=+m[0][1],W[1][1]=+m[1][1],f):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},f.constrain=function(m){return arguments.length?(Z=m,f):Z},f.duration=function(m){return arguments.length?(B=+m,f):B},f.interpolate=function(m){return arguments.length?(T=m,f):T},f.on=function(){var m=R.on.apply(R,arguments);return m===R?f:m},f.clickDistance=function(m){return arguments.length?(V=(m=+m)*m,f):Math.sqrt(V)},f.tapDistance=function(m){return arguments.length?(j=+m,f):j},f}var n2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:K}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},B9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],PK=["Enter"," ","Escape"],NK={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:Q,x:U,y:Z})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${Z}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"},D6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(D6||(D6={}));var v3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(v3||(v3={}));var x8;(function(Q){Q.Partial="partial",Q.Full="full"})(x8||(x8={}));var CK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},r4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(r4||(r4={}));var z9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(z9||(z9={}));var b1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(b1||(b1={}));var vM={[b1.Left]:b1.Right,[b1.Right]:b1.Left,[b1.Top]:b1.Bottom,[b1.Bottom]:b1.Top},fK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),lM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),SK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var bJ=(Q,U=[0,0])=>{let{width:Z,height:K}=i5(Q),H=Q.origin??U,Y=Z*H[0],W=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},jK=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,K=Q.reduce((H,Y)=>{let W=typeof Y==="string",B=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)B=W?U.nodeLookup.get(Y):!SK(Y)?U.nodeLookup.get(Y.id):Y;if(!B)return H;return Z=!0,lq(H,gq(B,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?iq(K):{x:0,y:0,width:0,height:0}},c8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},K=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=lq(Z,gq(H)),K=!0}),K?iq(Z):{x:0,y:0,width:0,height:0}},pq=(Q,U,[Z,K,H]=[0,0,1],Y=!1,W=!1)=>{let B=(U.x-Z)/H,T=(U.y-K)/H,R=U.width/H,M=U.height/H,A=[];for(let O of Q.values()){let{measured:P,selectable:N=!0,hidden:V=!1}=O;if(W&&!N||V)continue;let j=P.width??O.width??O.initialWidth??0,f=P.height??O.height??O.initialHeight??0,{x:u,y:C}=O.internals.positionAbsolute,v=sM(B,T,R,M,u,C,j,f),D=j*f,h=Y&&v>0;if(!O.internals.handleBounds||h||v>=D||O.dragging)A.push(O)}return A},iM=(Q,U)=>{let Z=new Set;return Q.forEach((K)=>{Z.add(K.id)}),U.filter((K)=>Z.has(K.source)||Z.has(K.target))};function xf(Q,U){let Z=new Map,K=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:W,height:B}=i5(H);Y=W>0&&B>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!K||K.has(H.id)))Z.set(H.id,H)}),Z}async function dM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let B=xf(Q,W),T=c8(B),R=hJ(T,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(R,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function vK({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[0,0],nodeExtent:H,onError:Y}){let W=Z.get(Q),B=W.parentId?Z.get(W.parentId):void 0,{x:T,y:R}=B?B.internals.positionAbsolute:{x:0,y:0},M=W.origin??K,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!B)Y?.("005",n2.error005());else{let{width:P,height:N}=i5(B);if(P&&N)A=[[T,R],[T+P,R+N]]}else if(B&&p8(W.extent))A=[[W.extent[0][0]+T,W.extent[0][1]+R],[W.extent[1][0]+T,W.extent[1][1]+R]];let O=p8(A)?m8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",n2.error015());return{position:{x:O.x-T+(W.measured.width??0)*M[0],y:O.y-R+(W.measured.height??0)*M[1]},positionAbsolute:O}}async function rM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),W=[];for(let O of Z){if(O.deletable===!1)continue;let P=Y.has(O.id),N=!P&&O.parentId&&W.find((V)=>V.id===O.parentId);if(P||N)W.push(O)}let B=new Set(U.map((O)=>O.id)),T=K.filter((O)=>O.deletable!==!1),M=iM(W,T);for(let O of T)if(B.has(O.id)&&!M.find((N)=>N.id===O.id))M.push(O);if(!H)return{edges:M,nodes:W};let A=await H({nodes:W,edges:M});if(typeof A==="boolean")return A?{edges:M,nodes:W}:{edges:[],nodes:[]};return A}var W9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),m8=(Q={x:0,y:0},U,Z)=>({x:W9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:W9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function aM(Q,U,Z){let{width:K,height:H}=i5(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return m8(Q,[[Y,W],[Y+K,W+H]],U)}var VM=(Q,U,Z)=>{if(Q<U)return W9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-W9(Math.abs(Q-Z),1,U)/U;return 0},cq=(Q,U,Z=15,K=40)=>{let H=VM(Q.x,K,U.width-K)*Z,Y=VM(Q.y,K,U.height-K)*Z;return[H,Y]},lq=(Q,U)=>({x:Math.min(Q.x,U.x),y:Math.min(Q.y,U.y),x2:Math.max(Q.x2,U.x2),y2:Math.max(Q.y2,U.y2)}),wK=({x:Q,y:U,width:Z,height:K})=>({x:Q,y:U,x2:Q+Z,y2:U+K}),iq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),L9=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:bJ(Q,U);return{x:Z,y:K,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},gq=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:bJ(Q,U);return{x:Z,y:K,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},VK=(Q,U)=>iq(lq(wK(Q),wK(U))),sM=(Q,U,Z,K,H,Y,W,B)=>{let T=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),R=Math.max(0,Math.min(U+K,Y+B)-Math.max(U,Y));return Math.ceil(T*R)},EJ=(Q,U)=>sM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),yK=(Q)=>c5(Q.width)&&c5(Q.height)&&c5(Q.x)&&c5(Q.y),c5=(Q)=>!isNaN(Q)&&isFinite(Q),kK=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},A9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},M9=({x:Q,y:U},[Z,K,H],Y=!1,W=[1,1])=>{let B={x:(Q-Z)/H,y:(U-K)/H};return Y?A9(B,W):B},g8=({x:Q,y:U},[Z,K,H])=>{return{x:Q*H+Z,y:U*H+K}};function Y9(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(Z)}if(typeof Q==="string"&&Q.endsWith("%")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(U*Z*0.01)}return console.error(`The padding value "${Q}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function mf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=Y9(Q,Z),H=Y9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=Y9(Q.top??Q.y??0,Z),H=Y9(Q.bottom??Q.y??0,Z),Y=Y9(Q.left??Q.x??0,U),W=Y9(Q.right??Q.x??0,U);return{top:K,right:W,bottom:H,left:Y,x:Y+W,y:K+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function gf(Q,U,Z,K,H,Y){let{x:W,y:B}=g8(Q,[U,Z,K]),{x:T,y:R}=g8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),M=H-T,A=Y-R;return{left:Math.floor(W),top:Math.floor(B),right:Math.floor(M),bottom:Math.floor(A)}}var hJ=(Q,U,Z,K,H,Y)=>{let W=mf(Y,U,Z),B=(U-W.x)/Q.width,T=(Z-W.y)/Q.height,R=Math.min(B,T),M=W9(R,K,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,P=U/2-A*M,N=Z/2-O*M,V=gf(Q,P,N,M,U,Z),j={left:Math.min(V.left-W.left,0),top:Math.min(V.top-W.top,0),right:Math.min(V.right-W.right,0),bottom:Math.min(V.bottom-W.bottom,0)};return{x:P-j.left+j.right,y:N-j.top+j.bottom,zoom:M}},T9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function p8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function i5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function DK(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function uK(Q,U={width:0,height:0},Z,K,H){let Y={...Q},W=K.get(Z);if(W){let B=W.origin||H;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*B[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*B[1]}return Y}function bK(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function tM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function oM(Q){return{...NK,...Q||{}}}function pf(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let K=U.getBoundingClientRect();if(K.width===0&&K.height===0)return!0;let H=document.querySelector(`.${Q}-flow__attribution`);if(!H||!H.isConnected)return!1;let Y=getComputedStyle(H);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let W=H.getBoundingClientRect();if(W.width===0&&W.height===0)return!1;return!0}var yM=!1;function nM(Q){if(yM)return;yM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!pf(Q))console.warn(`${U}: It seems like you are hiding the attribution. Please only do this when you are subscribed to ${U} Pro: https://${Q}flow.dev/remove-attr
241
+ %cYou can ignore this warning if you are subscribed.`,"font-style: italic;")},1000)}function EK(Q){return Q===null?null:Q?"valid":"invalid"}function uJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:H}){let{x:Y,y:W}=l5(Q),B=M9({x:Y-(H?.left??0),y:W-(H?.top??0)},K),{x:T,y:R}=Z?A9(B,U):B;return{xSnapped:T,ySnapped:R,...B}}var dq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),hK=(Q)=>Q?.getRootNode?.()||window?.document,cf=["INPUT","SELECT","TEXTAREA"];function xK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return cf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var mK=(Q)=>("clientX"in Q),l5=(Q,U)=>{let Z=mK(Q),K=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:H-(U?.top??0)}},kM=(Q,U,Z,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let B=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:H,position:W.getAttribute("data-handlepos"),x:(B.left-Z.left)/K,y:(B.top-Z.top)/K,...dq(W)}})};function rq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:B}){let T=Q*0.125+H*0.375+W*0.375+Z*0.125,R=U*0.125+Y*0.375+B*0.375+K*0.125,M=Math.abs(T-Q),A=Math.abs(R-U);return[T,R,M,A]}function xq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function DM({pos:Q,x1:U,y1:Z,x2:K,y2:H,c:Y}){switch(Q){case b1.Left:return[U-xq(U-K,Y),Z];case b1.Right:return[U+xq(K-U,Y),Z];case b1.Top:return[U,Z-xq(Z-H,Y)];case b1.Bottom:return[U,Z+xq(H-Z,Y)]}}function aq({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,curvature:W=0.25}){let[B,T]=DM({pos:Z,x1:Q,y1:U,x2:K,y2:H,c:W}),[R,M]=DM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:W}),[A,O,P,N]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:B,sourceControlY:T,targetControlX:R,targetControlY:M});return[`M${Q},${U} C${B},${T} ${R},${M} ${K},${H}`,A,O,P,N]}function gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,W=Math.abs(K-U)/2,B=K<U?K+W:K-W;return[Y,B,H,W]}function eM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:K=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let W=H&&Z?K+1000:K,B=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+B}function _T({sourceNode:Q,targetNode:U,width:Z,height:K,transform:H}){let Y=lq(gq(Q),gq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let W={x:-H[0]/H[2],y:-H[1]/H[2],width:Z/H[2],height:K/H[2]};return EJ(W,iq(Y))>0}var lf=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,df=(Q,U)=>{return U.some((Z)=>Z.source===Q.source&&Z.target===Q.target&&(Z.sourceHandle===Q.sourceHandle||!Z.sourceHandle&&!Q.sourceHandle)&&(Z.targetHandle===Q.targetHandle||!Z.targetHandle&&!Q.targetHandle))},JT=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",n2.error006()),U;let K=Z.getEdgeId||lf,H;if(fK(Q))H={...Q};else H={...Q,id:K(Q)};if(df(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function sq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[H,Y,W,B]=gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,H,Y,W,B]}var uM={[b1.Left]:{x:-1,y:0},[b1.Right]:{x:1,y:0},[b1.Top]:{x:0,y:-1},[b1.Bottom]:{x:0,y:1}},rf=({source:Q,sourcePosition:U=b1.Bottom,target:Z})=>{if(U===b1.Left||U===b1.Right)return Q.x<Z.x?{x:1,y:0}:{x:-1,y:0};return Q.y<Z.y?{x:0,y:1}:{x:0,y:-1}},bM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function af({source:Q,sourcePosition:U=b1.Bottom,target:Z,targetPosition:K=b1.Top,center:H,offset:Y,stepPosition:W}){let B=uM[U],T=uM[K],R={x:Q.x+B.x*Y,y:Q.y+B.y*Y},M={x:Z.x+T.x*Y,y:Z.y+T.y*Y},A=rf({source:R,sourcePosition:U,target:M}),O=A.x!==0?"x":"y",P=A[O],N=[],V,j,f={x:0,y:0},u={x:0,y:0},[,,C,v]=gK({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(B[O]*T[O]===-1){if(O==="x")V=H.x??R.x+(M.x-R.x)*W,j=H.y??(R.y+M.y)/2;else V=H.x??(R.x+M.x)/2,j=H.y??R.y+(M.y-R.y)*W;let b=[{x:V,y:R.y},{x:V,y:M.y}],k=[{x:R.x,y:j},{x:M.x,y:j}];if(B[O]===P)N=O==="x"?b:k;else N=O==="x"?k:b}else{let b=[{x:R.x,y:M.y}],k=[{x:M.x,y:R.y}];if(O==="x")N=B.x===P?k:b;else N=B.y===P?b:k;if(U===K){let m=Math.abs(Q[O]-Z[O]);if(m<=Y){let p=Math.min(Y-1,Y-m);if(B[O]===P)f[O]=(R[O]>Q[O]?-1:1)*p;else u[O]=(M[O]>Z[O]?-1:1)*p}}if(U!==K){let m=O==="x"?"y":"x",p=B[O]===T[m],c=R[m]>M[m],a=R[m]<M[m];if(B[O]===1&&(!p&&c||p&&a)||B[O]!==1&&(!p&&a||p&&c))N=O==="x"?b:k}let x={x:R.x+f.x,y:R.y+f.y},$1={x:M.x+u.x,y:M.y+u.y},Q1=Math.max(Math.abs(x.x-N[0].x),Math.abs($1.x-N[0].x)),J1=Math.max(Math.abs(x.y-N[0].y),Math.abs($1.y-N[0].y));if(Q1>=J1)V=(x.x+$1.x)/2,j=N[0].y;else V=N[0].x,j=(x.y+$1.y)/2}let D={x:R.x+f.x,y:R.y+f.y},h={x:M.x+u.x,y:M.y+u.y};return[[Q,...D.x!==N[0].x||D.y!==N[0].y?[D]:[],...N,...h.x!==N[N.length-1].x||h.y!==N[N.length-1].y?[h]:[],Z],V,j,C,v]}function sf(Q,U,Z,K){let H=Math.min(bM(Q,U)/2,bM(U,Z)/2,K),{x:Y,y:W}=U;if(Q.x===Y&&Y===Z.x||Q.y===W&&W===Z.y)return`L${Y} ${W}`;if(Q.y===W){let R=Q.x<Z.x?-1:1,M=Q.y<Z.y?1:-1;return`L ${Y+H*R},${W}Q ${Y},${W} ${Y},${W+H*M}`}let B=Q.x<Z.x?1:-1,T=Q.y<Z.y?-1:1;return`L ${Y},${W+H*T}Q ${Y},${W} ${Y+H*B},${W}`}function xJ({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,borderRadius:W=5,centerX:B,centerY:T,offset:R=20,stepPosition:M=0.5}){let[A,O,P,N,V]=af({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:H},targetPosition:Y,center:{x:B,y:T},offset:R,stepPosition:M}),j=`M${A[0].x} ${A[0].y}`;for(let f=1;f<A.length-1;f++)j+=sf(A[f-1],A[f],A[f+1],W);return j+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[j,O,P,N,V]}function EM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function $T(Q){let{sourceNode:U,targetNode:Z}=Q;if(!EM(U)||!EM(Z))return null;let K=U.internals.handleBounds||hM(U.handles),H=Z.internals.handleBounds||hM(Z.handles),Y=xM(K?.source??[],Q.sourceHandle),W=xM(Q.connectionMode===D6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",n2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let B=Y?.position||b1.Bottom,T=W?.position||b1.Top,R=u6(U,Y,B),M=u6(Z,W,T);return{sourceX:R.x,sourceY:R.y,targetX:M.x,targetY:M.y,sourcePosition:B,targetPosition:T}}function hM(Q){if(!Q)return null;let U=[],Z=[];for(let K of Q)if(K.width=K.width??1,K.height=K.height??1,K.type==="source")U.push(K);else if(K.type==="target")Z.push(K);return{source:U,target:Z}}function u6(Q,U,Z=b1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:B}=U??i5(Q);if(K)return{x:H+W/2,y:Y+B/2};switch(U?.position??Z){case b1.Top:return{x:H+W/2,y:Y};case b1.Right:return{x:H+W,y:Y+B/2};case b1.Bottom:return{x:H+W/2,y:Y+B};case b1.Left:return{x:H,y:Y+B/2}}}function xM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function tq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((K)=>`${K}=${Q[K]}`).join("&")}`}function QT(Q,{id:U,defaultColor:Z,defaultMarkerStart:K,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((W,B)=>{return[B.markerStart||K,B.markerEnd||H].forEach((T)=>{if(T&&typeof T==="object"){let R=tq(T,U);if(!Y.has(R))W.push({id:R,color:T.color||Z,...T}),Y.add(R)}}),W},[]).sort((W,B)=>W.id.localeCompare(B.id))}function qT(Q,U,Z,K,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let W=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-K],B=[-100*Y,-100];switch(Z){case b1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],B=[0,-100*Y];break;case b1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,B[1]=0;break;case b1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],B=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${B[0]}%, ${B[1]}%)`}var UT=1000,tf=10,pK={nodeOrigin:[0,0],nodeExtent:B9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},of={...pK,checkEquality:!0};function cK(Q,U){let Z={...Q};for(let K in U)if(U[K]!==void 0)Z[K]=U[K];return Z}function GT(Q,U,Z){let K=cK(pK,Z);for(let H of Q.values())if(H.parentId)iK(H,Q,U,K);else{let Y=bJ(H,K.nodeOrigin),W=p8(H.extent)?H.extent:K.nodeExtent,B=m8(Y,W,i5(H));H.internals.positionAbsolute=B}}function nf(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],K=[];for(let H of Q.handles){let Y={id:H.id,width:H.width??1,height:H.height??1,nodeId:Q.id,x:H.x,y:H.y,position:H.position,type:H.type};if(H.type==="source")Z.push(Y);else if(H.type==="target")K.push(Y)}return{source:Z,target:K}}function lK(Q){return Q==="manual"}function oq(Q,U,Z,K={}){let H=cK(of,K),Y={i:0},W=new Map(U),B=H?.elevateNodesOnSelect&&!lK(H.zIndexMode)?UT:0,T=Q.length>0,R=!1;U.clear(),Z.clear();for(let M of Q){let A=W.get(M.id);if(H.checkEquality&&M===A?.internals.userNode)U.set(M.id,A);else{let O=bJ(M,H.nodeOrigin),P=p8(M.extent)?M.extent:H.nodeExtent,N=m8(O,P,i5(M));A={...H.defaults,...M,measured:{width:M.measured?.width,height:M.measured?.height},internals:{positionAbsolute:N,handleBounds:nf(M,A),z:ZT(M,B,H.zIndexMode),userNode:M}},U.set(M.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)T=!1;if(M.parentId)iK(A,U,Z,K,Y);R||=M.selected??!1}return{nodesInitialized:T,hasSelectedNodes:R}}function ef(Q,U){if(!Q.parentId)return;let Z=U.get(Q.parentId);if(Z)Z.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function iK(Q,U,Z,K,H){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:B,zIndexMode:T}=cK(pK,K),R=Q.parentId,M=U.get(R);if(!M){console.warn(`Parent node ${R} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(ef(Q,Z),H&&!M.parentId&&M.internals.rootParentIndex===void 0&&T==="auto")M.internals.rootParentIndex=++H.i,M.internals.z=M.internals.z+H.i*tf;if(H&&M.internals.rootParentIndex!==void 0)H.i=M.internals.rootParentIndex;let A=Y&&!lK(T)?UT:0,{x:O,y:P,z:N}=_S(Q,M,W,B,A,T),{positionAbsolute:V}=Q.internals,j=O!==V.x||P!==V.y;if(j||N!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:j?{x:O,y:P}:V,z:N}})}function ZT(Q,U,Z){let K=c5(Q.zIndex)?Q.zIndex:0;if(lK(Z))return K;return K+(Q.selected?U:0)}function _S(Q,U,Z,K,H,Y){let{x:W,y:B}=U.internals.positionAbsolute,T=i5(Q),R=bJ(Q,Z),M=p8(Q.extent)?m8(R,Q.extent,T):R,A=m8({x:W+M.x,y:B+M.y},K,T);if(Q.extent==="parent")A=aM(A,T,U);let O=ZT(Q,H,Y),P=U.internals.z??0;return{x:A.x,y:A.y,z:P>=O?P+1:O}}function nq(Q,U,Z,K=[0,0]){let H=[],Y=new Map;for(let W of Q){let B=U.get(W.parentId);if(!B)continue;let T=Y.get(W.parentId)?.expandedRect??L9(B),R=VK(T,W.rect);Y.set(W.parentId,{expandedRect:R,parent:B})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:B},T)=>{let R=B.internals.positionAbsolute,M=i5(B),A=B.origin??K,O=W.x<R.x?Math.round(Math.abs(R.x-W.x)):0,P=W.y<R.y?Math.round(Math.abs(R.y-W.y)):0,N=Math.max(M.width,Math.round(W.width)),V=Math.max(M.height,Math.round(W.height)),j=(N-M.width)*A[0],f=(V-M.height)*A[1];if(O>0||P>0||j||f)H.push({id:T,type:"position",position:{x:B.position.x-O+j,y:B.position.y-P+f}}),Z.get(T)?.forEach((u)=>{if(!Q.some((C)=>C.id===u.id))H.push({id:u.id,type:"position",position:{x:u.position.x+O,y:u.position.y+P}})});if(M.width<W.width||M.height<W.height||O||P)H.push({id:T,type:"dimensions",setAttributes:!0,dimensions:{width:N+(O?A[0]*O-j:0),height:V+(P?A[1]*P-f:0)}})});return H}function FT(Q,U,Z,K,H,Y,W){let B=K?.querySelector(".xyflow__viewport"),T=!1;if(!B)return{changes:[],updatedInternals:T};let R=[],M=window.getComputedStyle(B),{m22:A}=new window.DOMMatrixReadOnly(M.transform),O=[];for(let P of Q.values()){let N=U.get(P.id);if(!N)continue;if(N.hidden){U.set(N.id,{...N,internals:{...N.internals,handleBounds:void 0}}),T=!0;continue}let V=dq(P.nodeElement),j=N.measured.width!==V.width||N.measured.height!==V.height;if(!!(V.width&&V.height&&(j||!N.internals.handleBounds||P.force))){let u=P.nodeElement.getBoundingClientRect(),C=p8(N.extent)?N.extent:Y,{positionAbsolute:v}=N.internals;if(N.parentId&&N.extent==="parent"){let h=U.get(N.parentId);if(h)v=aM(v,V,h)}else if(C)v=m8(v,C,V);let D={...N,measured:V,internals:{...N.internals,positionAbsolute:v,handleBounds:{source:kM("source",P.nodeElement,u,A,N.id),target:kM("target",P.nodeElement,u,A,N.id)}}};if(U.set(N.id,D),N.parentId)iK(D,U,Z,{nodeOrigin:H,zIndexMode:W});if(T=!0,j){if(R.push({id:N.id,type:"dimensions",dimensions:V}),N.expandParent&&N.parentId)O.push({id:N.id,parentId:N.parentId,rect:L9(D,H)})}}}if(O.length>0){let P=nq(O,U,Z,H);R.push(...P)}return{changes:R,updatedInternals:T}}async function XT({delta:Q,panZoom:U,transform:Z,translateExtent:K,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let W=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[H,Y]],K);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function mM(Q,U,Z,K,H,Y){let W=H,B=K.get(W)||new Map;K.set(W,B.set(Z,U)),W=`${H}-${Q}`;let T=K.get(W)||new Map;if(K.set(W,T.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let R=K.get(W)||new Map;K.set(W,R.set(Z,U))}}function dK(Q,U,Z){Q.clear(),U.clear();for(let K of Z){let{source:H,target:Y,sourceHandle:W=null,targetHandle:B=null}=K,T={edgeId:K.id,source:H,target:Y,sourceHandle:W,targetHandle:B},R=`${H}-${W}--${Y}-${B}`,M=`${Y}-${B}--${H}-${W}`;mM("source",T,M,Q,H,W),mM("target",T,R,Q,Y,B),U.set(K.id,K)}}function KT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return KT(Z,U)}function gM(Q,U,Z){let K=Q;do{if(K?.matches?.(U))return!0;if(K===Z)return!1;K=K?.parentElement}while(K);return!1}function JS(Q,U,Z,K){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!W.parentId||!KT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let B=Q.get(Y);if(B)H.set(Y,{id:Y,position:B.position||{x:0,y:0},distance:{x:Z.x-B.internals.positionAbsolute.x,y:Z.y-B.internals.positionAbsolute.y},extent:B.extent,parentId:B.parentId,origin:B.origin,expandParent:B.expandParent,internals:{positionAbsolute:B.internals.positionAbsolute||{x:0,y:0}},measured:{width:B.measured.width??0,height:B.measured.height??0}})}return H}function RK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let H=[];for(let[W,B]of U){let T=Z.get(W)?.internals.userNode;if(T)H.push({...T,position:B.position,dragging:K})}if(!Q)return[H[0],H];let Y=Z.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:K},H]}function $S({dragItems:Q,snapGrid:U,x:Z,y:K}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:K-H.distance.y},W=A9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function HT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:H}){let Y={x:null,y:null},W=0,B=new Map,T=!1,R={x:0,y:0},M=null,A=!1,O=null,P=!1,N=!1,V=null;function j({noDragClassName:u,handleSelector:C,domNode:v,isSelectable:D,nodeId:h,nodeClickDistance:E=0}){O=B2(v);function b({x:Q1,y:J1}){let{nodeLookup:m,nodeExtent:p,snapGrid:c,snapToGrid:a,nodeOrigin:i,onNodeDrag:o,onSelectionDrag:y,onError:g,updateNodePositions:q1}=U();Y={x:Q1,y:J1};let t=!1,W1=B.size>1,T1=W1&&p?wK(c8(B)):null,O1=W1&&a?$S({dragItems:B,snapGrid:c,x:Q1,y:J1}):null;for(let[B1,U1]of B){if(!m.has(B1))continue;let P1={x:Q1-U1.distance.x,y:J1-U1.distance.y};if(a)P1=O1?{x:Math.round(P1.x+O1.x),y:Math.round(P1.y+O1.y)}:A9(P1,c);let j1=null;if(W1&&p&&!U1.extent&&T1){let{positionAbsolute:D1}=U1.internals,g1=D1.x-T1.x+p[0][0],h1=D1.x+U1.measured.width-T1.x2+p[1][0],M1=D1.y-T1.y+p[0][1],r1=D1.y+U1.measured.height-T1.y2+p[1][1];j1=[[g1,M1],[h1,r1]]}let{position:A1,positionAbsolute:k1}=vK({nodeId:B1,nextPosition:P1,nodeLookup:m,nodeExtent:j1?j1:p,nodeOrigin:i,onError:g});t=t||U1.position.x!==A1.x||U1.position.y!==A1.y,U1.position=A1,U1.internals.positionAbsolute=k1}if(N=N||t,!t)return;if(q1(B,!0),V&&(K||o||!h&&y)){let[B1,U1]=RK({nodeId:h,dragItems:B,nodeLookup:m});if(K?.(V,B,B1,U1),o?.(V,B1,U1),!h)y?.(V,U1)}}async function k(){if(!M)return;let{transform:Q1,panBy:J1,autoPanSpeed:m,autoPanOnNodeDrag:p}=U();if(!p){T=!1,cancelAnimationFrame(W);return}let[c,a]=cq(R,M,m);if(c!==0||a!==0){if(Y.x=(Y.x??0)-c/Q1[2],Y.y=(Y.y??0)-a/Q1[2],await J1({x:c,y:a}))b(Y)}W=requestAnimationFrame(k)}function x(Q1){let{nodeLookup:J1,multiSelectionActive:m,nodesDraggable:p,transform:c,snapGrid:a,snapToGrid:i,selectNodesOnDrag:o,onNodeDragStart:y,onSelectionDragStart:g,unselectNodesAndEdges:q1}=U();if(A=!0,(!o||!D)&&!m&&h){if(!J1.get(h)?.selected)q1()}if(D&&o&&h)Q?.(h);let t=uJ(Q1.sourceEvent,{transform:c,snapGrid:a,snapToGrid:i,containerBounds:M});if(Y=t,B=JS(J1,p,t,h),B.size>0&&(Z||y||!h&&g)){let[W1,T1]=RK({nodeId:h,dragItems:B,nodeLookup:J1});if(Z?.(Q1.sourceEvent,B,W1,T1),y?.(Q1.sourceEvent,W1,T1),!h)g?.(Q1.sourceEvent,T1)}}let $1=LJ().clickDistance(E).on("start",(Q1)=>{let{domNode:J1,nodeDragThreshold:m,transform:p,snapGrid:c,snapToGrid:a}=U();if(M=J1?.getBoundingClientRect()||null,P=!1,N=!1,V=Q1.sourceEvent,m===0)x(Q1);Y=uJ(Q1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:a,containerBounds:M}),R=l5(Q1.sourceEvent,M)}).on("drag",(Q1)=>{let{autoPanOnNodeDrag:J1,transform:m,snapGrid:p,snapToGrid:c,nodeDragThreshold:a,nodeLookup:i}=U(),o=uJ(Q1.sourceEvent,{transform:m,snapGrid:p,snapToGrid:c,containerBounds:M});if(V=Q1.sourceEvent,Q1.sourceEvent.type==="touchmove"&&Q1.sourceEvent.touches.length>1||h&&!i.has(h))P=!0;if(P)return;if(!T&&J1&&A)T=!0,k();if(!A){let y=l5(Q1.sourceEvent,M),g=y.x-R.x,q1=y.y-R.y;if(Math.sqrt(g*g+q1*q1)>a)x(Q1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&B&&A)R=l5(Q1.sourceEvent,M),b(o)}).on("end",(Q1)=>{if(!A||P){if(P&&B.size>0)U().updateNodePositions(B,!1);return}if(T=!1,A=!1,cancelAnimationFrame(W),B.size>0){let{nodeLookup:J1,updateNodePositions:m,onNodeDragStop:p,onSelectionDragStop:c}=U();if(N)m(B,!1),N=!1;if(H||p||!h&&c){let[a,i]=RK({nodeId:h,dragItems:B,nodeLookup:J1,dragging:!1});if(H?.(Q1.sourceEvent,B,a,i),p?.(Q1.sourceEvent,a,i),!h)c?.(Q1.sourceEvent,i)}}}).filter((Q1)=>{let J1=Q1.target;return!Q1.button&&(!u||!gM(J1,`.${u}`,v))&&(!C||gM(J1,C,v))});O.call($1)}function f(){O?.on(".drag",null)}return{update:j,destroy:f}}function QS(Q,U,Z){let K=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(EJ(H,L9(Y))>0)K.push(Y);return K}var qS=250;function US(Q,U,Z,K){let H=[],Y=1/0,W=QS(Q,Z,U+qS);for(let B of W){let T=[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]];for(let R of T){if(K.nodeId===R.nodeId&&K.type===R.type&&K.id===R.id)continue;let{x:M,y:A}=u6(B,R,R.position,!0),O=Math.sqrt(Math.pow(M-Q.x,2)+Math.pow(A-Q.y,2));if(O>U)continue;if(O<Y)H=[{...R,x:M,y:A}],Y=O;else if(O===Y)H.push({...R,x:M,y:A})}}if(!H.length)return null;if(H.length>1){let B=K.type==="source"?"target":"source";return H.find((T)=>T.type===B)??H[0]}return H[0]}function YT(Q,U,Z,K,H,Y=!1){let W=K.get(Q);if(!W)return null;let B=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],T=(Z?B?.find((R)=>R.id===Z):B?.[0])??null;return T&&Y?{...T,...u6(W,T,T.position,!0)}:T}function zT(Q,U){if(Q)return Q;else if(U?.classList.contains("target"))return"target";else if(U?.classList.contains("source"))return"source";return null}function GS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var WT=()=>!0;function ZS(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:B,nodeLookup:T,lib:R,autoPanOnConnect:M,flowId:A,panBy:O,cancelConnection:P,onConnectStart:N,onConnect:V,onConnectEnd:j,isValidConnection:f=WT,onReconnectEnd:u,updateConnection:C,getTransform:v,getFromHandle:D,autoPanSpeed:h,dragThreshold:E=1,handleDomNode:b}){let k=hK(Q.target),x=0,$1,{x:Q1,y:J1}=l5(Q),m=zT(Y,b),p=B?.getBoundingClientRect(),c=!1;if(!p||!m)return;let a=YT(H,m,K,T,U);if(!a)return;let i=l5(Q,p),o=!1,y=null,g=!1,q1=null;function t(){if(!M||!p)return;let[A1,k1]=cq(i,p,h);O({x:A1,y:k1}),x=requestAnimationFrame(t)}let W1={...a,nodeId:H,type:m,position:a.position},T1=T.get(H),B1={inProgress:!0,isValid:null,from:u6(T1,W1,b1.Left,!0),fromHandle:W1,fromPosition:W1.position,fromNode:T1,to:i,toHandle:null,toPosition:vM[W1.position],toNode:null,pointer:i};function U1(){c=!0,C(B1),N?.(Q,{nodeId:H,handleId:K,handleType:m})}if(E===0)U1();function P1(A1){if(!c){let{x:r1,y:u1}=l5(A1),D0=r1-Q1,o1=u1-J1;if(!(D0*D0+o1*o1>E*E))return;U1()}if(!D()||!W1){j1(A1);return}let k1=v();if(i=l5(A1,p),$1=US(M9(i,k1,!1,[1,1]),Z,T,W1),!o)t(),o=!0;let D1=BT(A1,{handle:$1,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:W?"target":"source",isValidConnection:f,doc:k,lib:R,flowId:A,nodeLookup:T});q1=D1.handleDomNode,y=D1.connection,g=GS(!!$1,D1.isValid);let g1=T.get(H),h1=g1?u6(g1,W1,b1.Left,!0):B1.from,M1={...B1,from:h1,isValid:g,to:D1.toHandle&&g?g8({x:D1.toHandle.x,y:D1.toHandle.y},k1):i,toHandle:D1.toHandle,toPosition:g&&D1.toHandle?D1.toHandle.position:vM[W1.position],toNode:D1.toHandle?T.get(D1.toHandle.nodeId):null,pointer:i};C(M1),B1=M1}function j1(A1){if("touches"in A1&&A1.touches.length>0)return;if(c){if(($1||q1)&&y&&g)V?.(y);let{inProgress:k1,...D1}=B1,g1={...D1,toPosition:B1.toHandle?B1.toPosition:null};if(j?.(A1,g1),Y)u?.(A1,g1)}P(),cancelAnimationFrame(x),o=!1,g=!1,y=null,q1=null,k.removeEventListener("mousemove",P1),k.removeEventListener("mouseup",j1),k.removeEventListener("touchmove",P1),k.removeEventListener("touchend",j1)}k.addEventListener("mousemove",P1),k.addEventListener("mouseup",j1),k.addEventListener("touchmove",P1),k.addEventListener("touchend",j1)}function BT(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:H,fromType:Y,doc:W,lib:B,flowId:T,isValidConnection:R=WT,nodeLookup:M}){let A=Y==="target",O=U?W.querySelector(`.${B}-flow__handle[data-id="${T}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:P,y:N}=l5(Q),V=W.elementFromPoint(P,N),j=V?.classList.contains(`${B}-flow__handle`)?V:O,f={handleDomNode:j,isValid:!1,connection:null,toHandle:null};if(j){let u=zT(void 0,j),C=j.getAttribute("data-nodeid"),v=j.getAttribute("data-handleid"),D=j.classList.contains("connectable"),h=j.classList.contains("connectableend");if(!C||!u)return f;let E={source:A?C:K,sourceHandle:A?v:H,target:A?K:C,targetHandle:A?H:v};f.connection=E;let k=D&&h&&(Z===D6.Strict?A&&u==="source"||!A&&u==="target":C!==K||v!==H);f.isValid=k&&R(E),f.toHandle=YT(C,u,v,M,Z,!0)}return f}var eq={onPointerDown:ZS,isValid:BT};function LT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let H=B2(Q);function Y({translateExtent:B,width:T,height:R,zoomStep:M=1,pannable:A=!0,zoomable:O=!0,inversePan:P=!1}){let N=(C)=>{if(C.sourceEvent.type!=="wheel"||!U)return;let v=Z(),D=C.sourceEvent.ctrlKey&&T9()?10:1,h=-C.sourceEvent.deltaY*(C.sourceEvent.deltaMode===1?0.05:C.sourceEvent.deltaMode?1:0.002)*M,E=v[2]*Math.pow(2,h*D);U.scaleTo(E)},V=[0,0],j=(C)=>{if(C.sourceEvent.type==="mousedown"||C.sourceEvent.type==="touchstart")V=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY]},f=(C)=>{let v=Z();if(C.sourceEvent.type!=="mousemove"&&C.sourceEvent.type!=="touchmove"||!U)return;let D=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY],h=[D[0]-V[0],D[1]-V[1]];V=D;let E=K()*Math.max(v[2],Math.log(v[2]))*(P?-1:1),b={x:v[0]-h[0]*E,y:v[1]-h[1]*E},k=[[0,0],[T,R]];U.setViewportConstrained({x:b.x,y:b.y,zoom:v[2]},k,B)},u=DJ().on("start",j).on("zoom",A?f:null).on("zoom.wheel",O?N:null);H.call(u,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:E2}}var _U=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),OK=({x:Q,y:U,zoom:Z})=>E8.translate(Q,U).scale(Z),k6=(Q,U)=>Q.target.closest(`.${U}`),AT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),FS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,IK=(Q,U=0,Z=FS,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(Z).on("end",K):Q},MT=(Q)=>{let U=Q.ctrlKey&&T9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function XS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:B,onPanZoom:T,onPanZoomEnd:R}){return(M)=>{if(k6(M,U)){if(M.ctrlKey)M.preventDefault();return!1}M.preventDefault(),M.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(M.ctrlKey&&W){let j=E2(M),f=MT(M),u=A*Math.pow(2,f);K.scaleTo(Z,u,j,M);return}let O=M.deltaMode===1?20:1,P=H===v3.Vertical?0:M.deltaX*O,N=H===v3.Horizontal?0:M.deltaY*O;if(!T9()&&M.shiftKey&&H!==v3.Vertical)P=M.deltaY*O,N=0;K.translateBy(Z,-(P/A)*Y,-(N/A)*Y,{internal:!0});let V=_U(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,B?.(M,V);else T?.(M,V);Q.panScrollTimeout=setTimeout(()=>{R?.(M,V),Q.isPanScrolling=!1},150)}}function KS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,H){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,B=k6(K,Q);if(K.ctrlKey&&Y&&B)K.preventDefault();if(W||B)return null;K.preventDefault(),Z.call(this,K,H)}}function HS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let H=_U(K.transform);if(Q.mouseButton=K.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,K.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(K.sourceEvent,H)}}function YS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&AT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)K([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,_U(Y.transform))}}function zS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&AT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let B=_U(W.transform);Q.prevViewport=B,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,B)},Z?150:0)}}}function WS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:B,noWheelClassName:T,noPanClassName:R,lib:M,connectionInProgress:A}){return(O)=>{let P=U||Z,N=K&&O.ctrlKey,V=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(k6(O,`${M}-flow__node`)||k6(O,`${M}-flow__edge`)||k6(O,`${M}-flow__selection`)||k6(O,`${M}-flow__nodesselection`)))return!0;if(!H&&!P&&!Y&&!W&&!K)return!1;if(B)return!1;if(A&&!V)return!1;if(k6(O,T)&&V)return!1;if(k6(O,R)&&(!V||Y&&V&&!U))return!1;if(!K&&O.ctrlKey&&V)return!1;if(!K&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!P&&!Y&&!N&&V)return!1;if(!H&&(O.type==="mousedown"||O.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(O.button)&&O.type==="mousedown")return!1;let j=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||V||Q)&&j}}function TT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:B,onDraggingChange:T}){let R={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},M=Q.getBoundingClientRect(),A=[[0,0],[M.width,M.height]];(typeof ResizeObserver<"u"?new ResizeObserver((J1)=>{let m=J1[0];if(m)A=[[0,0],[m.contentRect.width,m.contentRect.height]]}):null)?.observe(Q);let P=DJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(K),N=B2(Q).call(P);v({x:H.x,y:H.y,zoom:W9(H.zoom,U,Z)},[[0,0],[M.width,M.height]],K);let V=N.on("wheel.zoom"),j=N.on("dblclick.zoom");P.wheelDelta(MT);async function f(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).transform(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function u({noWheelClassName:J1,noPanClassName:m,onPaneContextMenu:p,userSelectionActive:c,panOnScroll:a,panOnDrag:i,panOnScrollMode:o,panOnScrollSpeed:y,preventScrolling:g,zoomOnPinch:q1,zoomOnScroll:t,zoomOnDoubleClick:W1,panActivationKeyPressed:T1=!1,zoomActivationKeyPressed:O1,lib:B1,onTransformChange:U1,connectionInProgress:P1,paneClickDistance:j1,selectionOnDrag:A1}){if(c&&!R.isZoomingOrPanning)C();let k1=a&&!O1&&!c;P.clickDistance(A1?1/0:!c5(j1)||j1<0?0:j1);let D1=k1?XS({zoomPanValues:R,noWheelClassName:J1,d3Selection:N,d3Zoom:P,panOnScrollMode:o,panOnScrollSpeed:y,zoomOnPinch:q1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:B}):KS({noWheelClassName:J1,preventScrolling:g,d3ZoomHandler:V});N.on("wheel.zoom",D1,{passive:!1});let g1=HS({zoomPanValues:R,onDraggingChange:T,onPanZoomStart:W});P.on("start",g1);let h1=YS({zoomPanValues:R,panOnDrag:i,onPaneContextMenu:!!p,onPanZoom:Y,onTransformChange:U1});P.on("zoom",h1);let M1=zS({zoomPanValues:R,panOnDrag:i,panOnScroll:a,onPaneContextMenu:p,onPanZoomEnd:B,onDraggingChange:T});P.on("end",M1);let r1=WS({panActivationKeyPressed:T1,zoomActivationKeyPressed:O1,panOnDrag:i,zoomOnScroll:t,panOnScroll:a,zoomOnDoubleClick:W1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:m,noWheelClassName:J1,lib:B1,connectionInProgress:P1});if(P.filter(r1),W1)N.on("dblclick.zoom",j);else N.on("dblclick.zoom",null)}function C(){P.on("zoom",null)}async function v(J1,m,p){let c=OK(J1),a=P?.constrain()(c,m,p);if(a)await f(a);return a}async function D(J1,m){let p=OK(J1);return await f(p,m),p}function h(J1){if(N){let m=OK(J1),p=N.property("__zoom");if(p.k!==J1.zoom||p.x!==J1.x||p.y!==J1.y)P?.transform(N,m,null,{sync:!0})}}function E(){let J1=N?kJ(N.node()):{x:0,y:0,k:1};return{x:J1.x,y:J1.y,zoom:J1.k}}async function b(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).scaleTo(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}async function k(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).scaleBy(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function x(J1){P?.scaleExtent(J1)}function $1(J1){P?.translateExtent(J1)}function Q1(J1){let m=!c5(J1)||J1<0?0:J1;P?.clickDistance(m)}return{update:u,destroy:C,setViewport:D,setViewportConstrained:v,getViewport:E,scaleTo:b,scaleBy:k,setScaleExtent:x,setTranslateExtent:$1,syncViewport:h,setClickDistance:Q1}}var V3;(function(Q){Q.Line="line",Q.Handle="handle"})(V3||(V3={}));var RT=["top-left","top-right","bottom-left","bottom-right"],OT=["top","right","bottom","left"];function BS({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:H,affectsY:Y}){let W=Q-U,B=Z-K,T=[W>0?1:W<0?-1:0,B>0?1:B<0?-1:0];if(W&&H)T[0]=T[0]*-1;if(B&&Y)T[1]=T[1]*-1;return T}function pM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:K,affectsY:H}}function V6(Q,U){return Math.max(0,U-Q)}function y6(Q,U){return Math.max(0,Q-U)}function mq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function cM(Q,U){return Q?!U:U}function LS(Q,U,Z,K,H,Y,W,B){let{affectsX:T,affectsY:R}=U,{isHorizontal:M,isVertical:A}=U,O=M&&A,{xSnapped:P,ySnapped:N}=Z,{minWidth:V,maxWidth:j,minHeight:f,maxHeight:u}=K,{x:C,y:v,width:D,height:h,aspectRatio:E}=Q,b=Math.floor(M?P-Q.pointerX:0),k=Math.floor(A?N-Q.pointerY:0),x=D+(T?-b:b),$1=h+(R?-k:k),Q1=-Y[0]*D,J1=-Y[1]*h,m=mq(x,V,j),p=mq($1,f,u);if(W){let i=0,o=0;if(T&&b<0)i=V6(C+b+Q1,W[0][0]);else if(!T&&b>0)i=y6(C+x+Q1,W[1][0]);if(R&&k<0)o=V6(v+k+J1,W[0][1]);else if(!R&&k>0)o=y6(v+$1+J1,W[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(B){let i=0,o=0;if(T&&b>0)i=y6(C+b,B[0][0]);else if(!T&&b<0)i=V6(C+x,B[1][0]);if(R&&k>0)o=y6(v+k,B[0][1]);else if(!R&&k<0)o=V6(v+$1,B[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(H){if(M){let i=mq(x/E,f,u)*E;if(m=Math.max(m,i),W){let o=0;if(!T&&!R||T&&!R&&O)o=y6(v+J1+x/E,W[1][1])*E;else o=V6(v+J1+(T?b:-b)/E,W[0][1])*E;m=Math.max(m,o)}if(B){let o=0;if(!T&&!R||T&&!R&&O)o=V6(v+x/E,B[1][1])*E;else o=y6(v+(T?b:-b)/E,B[0][1])*E;m=Math.max(m,o)}}if(A){let i=mq($1*E,V,j)/E;if(p=Math.max(p,i),W){let o=0;if(!T&&!R||R&&!T&&O)o=y6(C+$1*E+Q1,W[1][0])/E;else o=V6(C+(R?k:-k)*E+Q1,W[0][0])/E;p=Math.max(p,o)}if(B){let o=0;if(!T&&!R||R&&!T&&O)o=V6(C+$1*E,B[1][0])/E;else o=y6(C+(R?k:-k)*E,B[0][0])/E;p=Math.max(p,o)}}}if(k=k+(k<0?p:-p),b=b+(b<0?m:-m),H)if(O)if(x>$1*E)k=(cM(T,R)?-b:b)/E;else b=(cM(T,R)?-k:k)*E;else if(M)k=b/E,R=T;else b=k*E,T=R;let c=T?C+b:C,a=R?v+k:v;return{width:D+(T?-b:b),height:h+(R?-k:k),x:Y[0]*b*(!T?1:-1)+c,y:Y[1]*k*(!R?1:-1)+a}}var IT={width:0,height:0,x:0,y:0},AS={...IT,pointerX:0,pointerY:0,aspectRatio:1};function MS(Q,U,Z){let K=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,W=Q.measured.height??0,B=Z[0]*Y,T=Z[1]*W;return[[K-B,H-T],[K+Y-B,H+W-T]]}function wT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:H}){let Y=B2(Q),W={controlDirection:pM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function B({controlPosition:R,boundaries:M,keepAspectRatio:A,resizeDirection:O,onResizeStart:P,onResize:N,onResizeEnd:V,shouldResize:j}){let f={...IT},u={...AS};W={boundaries:M,resizeDirection:O,keepAspectRatio:A,controlDirection:pM(R)};let C=void 0,v=null,D=[],h=void 0,E=void 0,b=void 0,k=LJ().on("start",(x)=>{let{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,paneDomNode:c}=Z();if(C=$1.get(U),!C)return;v=c?.getBoundingClientRect()??null;let{xSnapped:a,ySnapped:i}=uJ(x.sourceEvent,{transform:Q1,snapGrid:J1,snapToGrid:m,containerBounds:v});if(f={width:C.measured.width??0,height:C.measured.height??0,x:C.position.x??0,y:C.position.y??0},u={...f,pointerX:a,pointerY:i,aspectRatio:f.width/f.height},h=void 0,E=p8(C.extent)?C.extent:void 0,C.parentId&&(C.extent==="parent"||C.expandParent))h=$1.get(C.parentId);if(h&&C.extent==="parent")E=[[0,0],[h.measured.width,h.measured.height]];D=[],b=void 0;for(let[o,y]of $1)if(y.parentId===U){if(D.push({id:o,position:{...y.position},extent:y.extent}),y.extent==="parent"||y.expandParent){let g=MS(y,C,y.origin??p);if(b)b=[[Math.min(g[0][0],b[0][0]),Math.min(g[0][1],b[0][1])],[Math.max(g[1][0],b[1][0]),Math.max(g[1][1],b[1][1])]];else b=g}}P?.(x,{...f})}).on("drag",(x)=>{let{transform:$1,snapGrid:Q1,snapToGrid:J1,nodeOrigin:m}=Z(),p=uJ(x.sourceEvent,{transform:$1,snapGrid:Q1,snapToGrid:J1,containerBounds:v}),c=[];if(!C)return;let{x:a,y:i,width:o,height:y}=f,g={},q1=C.origin??m,{width:t,height:W1,x:T1,y:O1}=LS(u,W.controlDirection,p,W.boundaries,W.keepAspectRatio,q1,E,b),B1=t!==o,U1=W1!==y,P1=T1!==a&&B1,j1=O1!==i&&U1;if(!P1&&!j1&&!B1&&!U1)return;let A1={prevValues:{...f},startX:u.x,startY:u.y,childNodes:D.map((h1)=>({...h1,position:{...h1.position}}))};if(P1||j1||q1[0]===1||q1[1]===1){if(g.x=P1?T1:f.x,g.y=j1?O1:f.y,f.x=g.x,f.y=g.y,D.length>0){let h1=T1-a,M1=O1-i;for(let r1 of D)r1.position={x:r1.position.x-h1+q1[0]*(t-o),y:r1.position.y-M1+q1[1]*(W1-y)},c.push(r1)}}if(B1||U1)g.width=B1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?t:f.width,g.height=U1&&(!W.resizeDirection||W.resizeDirection==="vertical")?W1:f.height,f.width=g.width,f.height=g.height;if(h&&C.expandParent){let h1=q1[0]*(g.width??0);if(g.x&&g.x<h1)f.x=h1,u.x=u.x-(g.x-h1);let M1=q1[1]*(g.height??0);if(g.y&&g.y<M1)f.y=M1,u.y=u.y-(g.y-M1)}let k1=BS({width:f.width,prevWidth:o,height:f.height,prevHeight:y,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),D1={...f,direction:k1};if(j?.(x,D1)===!1){f=A1.prevValues,u.x=A1.startX,u.y=A1.startY,D.forEach((h1,M1)=>{h1.position=A1.childNodes[M1].position});return}N?.(x,D1),K(g,c)}).on("end",(x)=>{V?.(x,{...f}),H?.({...f})});Y.call(k)}function T(){Y.on(".drag",null)}return{update:B,destroy:T}}var jT=p0(G4(),1),vT=p0(NT(),1);var CT=(Q)=>{let U,Z=new Set,K=(M,A)=>{let O=typeof M==="function"?M(U):M;if(!Object.is(O,U)){let P=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),Z.forEach((N)=>N(U,P))}},H=()=>U,T={setState:K,getState:H,getInitialState:()=>R,subscribe:(M)=>{return Z.add(M),()=>Z.delete(M)},destroy:()=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");Z.clear()}},R=U=Q(K,H,T);return T},fT=(Q)=>Q?CT(Q):CT;var{useDebugValue:OS}=jT.default,{useSyncExternalStoreWithSelector:IS}=vT.default,wS=(Q)=>Q;function rK(Q,U=wS,Z){let K=IS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return OS(K),K}var ST=(Q,U)=>{let Z=fT(Q),K=(H,Y=U)=>rK(Z,H,Y);return Object.assign(K,Z),K},VT=(Q,U)=>Q?ST(Q,U):ST;function h0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[K,H]of Q)if(!Object.is(H,U.get(K)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let K of Q)if(!U.has(K))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let K of Z)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var UR=p0(iF(),1),UU=z1.createContext(null),PS=UU.Provider,GR=n2.error001("react");function H0(Q,U){let Z=z1.useContext(UU);if(Z===null)throw Error(GR);return rK(Z,Q,U)}function x0(){let Q=z1.useContext(UU);if(Q===null)throw Error(GR);return z1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var yT={display:"none"},NS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ZR="react-flow__node-desc",FR="react-flow__edge-desc",CS="react-flow__aria-live",fS=(Q)=>Q.ariaLiveMessage,SS=(Q)=>Q.ariaLabelConfig;function jS({rfId:Q}){let U=H0(fS);return H1.jsx("div",{id:`${CS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:NS,children:U})}function vS({rfId:Q,disableKeyboardA11y:U}){let Z=H0(SS);return H1.jsxs(H1.Fragment,{children:[H1.jsx("div",{id:`${ZR}-${Q}`,style:yT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),H1.jsx("div",{id:`${FR}-${Q}`,style:yT,children:Z["edge.a11yDescription.default"]}),!U&&H1.jsx(jS,{rfId:Q})]})}var s4=z1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...H},Y)=>{let W=`${Q}`.split("-");return H1.jsx("div",{className:d0(["react-flow__panel",Z,...W]),style:K,ref:Y,...H,children:U})});s4.displayName="Panel";var kT="https://reactflow.dev/attribution";function VS({proOptions:Q,position:U="bottom-right"}){if(z1.useEffect(()=>{nM("react")},[]),Q?.hideAttribution)return null;return H1.jsx(s4,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${kT}`,children:H1.jsx("a",{href:kT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var yS=(Q)=>{let U=[],Z=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)Z.push(K);return{selectedNodes:U,selectedEdges:Z}},JU=(Q)=>Q.id;function kS(Q,U){return h0(Q.selectedNodes.map(JU),U.selectedNodes.map(JU))&&h0(Q.selectedEdges.map(JU),U.selectedEdges.map(JU))}function DS({onSelectionChange:Q}){let U=x0(),{selectedNodes:Z,selectedEdges:K}=H0(yS,kS);return z1.useEffect(()=>{let H={nodes:Z,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,K,Q]),null}var uS=(Q)=>!!Q.onSelectionChangeHandlers;function bS({onSelectionChange:Q}){let U=H0(uS);if(Q||U)return H1.jsx(DS,{onSelectionChange:Q});return null}var XR=[0,0],ES={x:0,y:0,zoom:1},hS=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],DT=[...hS,"rfId"],xS=(Q)=>({setNodes:Q.setNodes,setEdges:Q.setEdges,setMinZoom:Q.setMinZoom,setMaxZoom:Q.setMaxZoom,setTranslateExtent:Q.setTranslateExtent,setNodeExtent:Q.setNodeExtent,reset:Q.reset,setDefaultNodesAndEdges:Q.setDefaultNodesAndEdges}),uT={translateExtent:B9,nodeOrigin:XR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function mS(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:B,setDefaultNodesAndEdges:T}=H0(xS,h0),R=x0();z1.useEffect(()=>{return T(Q.defaultNodes,Q.defaultEdges),()=>{M.current=uT,B()}},[]);let M=z1.useRef(uT);return z1.useEffect(()=>{for(let A of DT){let O=Q[A],P=M.current[A];if(O===P)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")Z(O);else if(A==="minZoom")K(O);else if(A==="maxZoom")H(O);else if(A==="translateExtent")Y(O);else if(A==="nodeExtent")W(O);else if(A==="ariaLabelConfig")R.setState({ariaLabelConfig:oM(O)});else if(A==="fitView")R.setState({fitViewQueued:O});else if(A==="fitViewOptions")R.setState({fitViewOptions:O});else R.setState({[A]:O})}M.current=Q},DT.map((A)=>Q[A])),null}function bT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function gS(Q){let[U,Z]=z1.useState(Q==="system"?null:Q);return z1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=bT(),H=()=>Z(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:bT()?.matches?"dark":"light"}var ET=typeof document<"u"?document:null;function mJ(Q=null,U={target:ET,actInsideInputWithModifier:!0}){let[Z,K]=z1.useState(!1),H=z1.useRef(!1),Y=z1.useRef(new Set([])),[W,B]=z1.useMemo(()=>{if(Q!==null){let R=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
242
242
  `).replace(`
243
243
 
244
244
  `,`
245
245
  +`).split(`
246
- `)),M=R.reduce((A,O)=>A.concat(...O),[]);return[R,M]}return[[],[]]},[Q]);return z1.useEffect(()=>{let T=U?.target??DT,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let M=(w)=>{if(H.current=w.ctrlKey||w.metaKey||w.shiftKey||w.altKey,(!H.current||H.current&&!R)&&hX(w))return!1;let V=bT(w.code,B);if(Y.current.add(w[V]),uT(W,Y.current,!1)){let S=w.composedPath?.()?.[0]||w.target,C=S?.nodeName==="BUTTON"||S?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!C))w.preventDefault();X(!0)}},A=(w)=>{let P=bT(w.code,B);if(uT(W,Y.current,!0))X(!1),Y.current.clear();else Y.current.delete(w[P]);if(w.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),X(!1)};return T?.addEventListener("keydown",M),T?.addEventListener("keyup",A),window.addEventListener("blur",O),window.addEventListener("contextmenu",O),()=>{T?.removeEventListener("keydown",M),T?.removeEventListener("keyup",A),window.removeEventListener("blur",O),window.removeEventListener("contextmenu",O)}}},[Q,X]),Z}function uT(Q,U,Z){return Q.filter((X)=>Z||X.length===U.size).some((X)=>X.every((H)=>U.has(H)))}function bT(Q,U){return U.includes(Q)?"code":"key"}var ES=()=>{let Q=D0();return z1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,Z)=>{let{panZoom:X}=Q.getState();return X?X.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[X,H,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??X,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,X]=Q.getState().transform;return{x:U,y:Z,zoom:X}},setCenter:async(U,Z,X)=>{return Q.getState().setCenter(U,Z,X)},fitBounds:async(U,Z)=>{let{width:X,height:H,minZoom:Y,maxZoom:W,panZoom:B}=Q.getState(),T=kJ(U,X,H,Y,W,Z?.padding??0.1);if(!B)return!1;return await B.setViewport(T,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:X,snapGrid:H,snapToGrid:Y,domNode:W}=Q.getState();if(!W)return U;let{x:B,y:T}=W.getBoundingClientRect(),R={x:U.x-B,y:U.y-T},M=Z.snapGrid??H,A=Z.snapToGrid??Y;return Y9(R,X,A,M)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:X}=Q.getState();if(!X)return U;let{x:H,y:Y}=X.getBoundingClientRect(),W=u8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function GR(Q,U){let Z=[],X=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")X.set(Y.id,[Y]);else{let W=X.get(Y.id);if(W)W.push(Y);else X.set(Y.id,[Y])}for(let Y of U){let W=X.get(Y.id);if(!W){Z.push(Y);continue}if(W[0].type==="remove")continue;if(W[0].type==="replace"){Z.push({...W[0].item});continue}let B={...Y};for(let T of W)hS(T,B);Z.push(B)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function hS(Q,U){switch(Q.type){case"select":{U.selected=Q.selected;break}case"position":{if(typeof Q.position<"u")U.position=Q.position;if(typeof Q.dragging<"u")U.dragging=Q.dragging;break}case"dimensions":{if(typeof Q.dimensions<"u"){if(U.measured={...Q.dimensions},Q.setAttributes){if(Q.setAttributes===!0||Q.setAttributes==="width")U.width=Q.dimensions.width;if(Q.setAttributes===!0||Q.setAttributes==="height")U.height=Q.dimensions.height}}if(typeof Q.resizing==="boolean")U.resizing=Q.resizing;break}}}function ZR(Q,U){return GR(Q,U)}function xS(Q,U){return GR(Q,U)}function h8(Q,U){return{id:Q,type:"select",selected:U}}function W9(Q,U=new Set,Z=!1){let X=[];for(let[H,Y]of Q){let W=U.has(H);if(!(Y.selected===void 0&&!W)&&Y.selected!==W){if(Z)Y.selected=W;X.push(h8(Y.id,W))}}return X}function ET({items:Q=[],lookup:U}){let Z=[],X=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let W=U.get(Y.id),B=W?.internals?.userNode??W;if(B!==void 0&&B!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(B===void 0)Z.push({item:Y,type:"add",index:H})}for(let[H]of U)if(X.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function hT(Q){return{id:Q.id,type:"remove"}}var mS=yX("React Flow","https://reactflow.dev/");function gS(Q,U,Z={}){return _T(Q,U,{...Z,onError:Z.onError??mS})}var xT=(Q)=>cM(Q),pS=(Q)=>CX(Q);function FR(Q){return z1.forwardRef(Q)}var KR=typeof window<"u"?z1.useLayoutEffect:z1.useEffect;function mT(Q){let[U,Z]=z1.useState(BigInt(0)),[X]=z1.useState(()=>cS(()=>Z((H)=>H+BigInt(1))));return KR(()=>{let H=X.get();if(H.length)Q(H),X.reset()},[U]),X}function cS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var XR=z1.createContext(null);function lS({children:Q}){let U=D0(),Z=z1.useCallback((B)=>{let{nodes:T=[],setNodes:R,hasDefaultNodes:M,onNodesChange:A,nodeLookup:O,fitViewQueued:w,onNodesChangeMiddlewareMap:P}=U.getState(),V=T;for(let C of B)V=typeof C==="function"?C(V):C;let S=ET({items:V,lookup:O});for(let C of P.values())S=C(S);if(M)R(V);if(S.length>0)A?.(S);else if(w)window.requestAnimationFrame(()=>{let{fitViewQueued:C,nodes:D,setNodes:N}=U.getState();if(C)N(D)})},[]),X=mT(Z),H=z1.useCallback((B)=>{let{edges:T=[],setEdges:R,hasDefaultEdges:M,onEdgesChange:A,edgeLookup:O}=U.getState(),w=T;for(let P of B)w=typeof P==="function"?P(w):P;if(M)R(w);else if(A)A(ET({items:w,lookup:O}))},[]),Y=mT(H),W=z1.useMemo(()=>({nodeQueue:X,edgeQueue:Y}),[]);return Y1.jsx(XR.Provider,{value:W,children:Q})}function dS(){let Q=z1.useContext(XR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var iS=(Q)=>!!Q.panZoom;function bJ(){let Q=ES(),U=D0(),Z=dS(),X=X0(iS),H=z1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},B=(A)=>{Z.edgeQueue.push(A)},T=(A)=>{let{nodeLookup:O,nodeOrigin:w}=U.getState(),P=xT(A)?A:O.get(A.id),V=P.parentId?DX(P.position,P.measured,P.parentId,O,w):P.position,S={...P,position:V,width:P.measured?.width??P.width,height:P.measured?.height??P.height};return X9(S)},R=(A,O,w={replace:!1})=>{W((P)=>P.map((V)=>{if(V.id===A){let S=typeof O==="function"?O(V):O;return w.replace&&xT(S)?S:{...V,...S}}return V}))},M=(A,O,w={replace:!1})=>{B((P)=>P.map((V)=>{if(V.id===A){let S=typeof O==="function"?O(V):O;return w.replace&&pS(S)?S:{...V,...S}}return V}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((O)=>({...O}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:W,setEdges:B,addNodes:(A)=>{let O=Array.isArray(A)?A:[A];Z.nodeQueue.push((w)=>[...w,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];Z.edgeQueue.push((w)=>[...w,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:w}=U.getState(),[P,V,S]=w;return{nodes:A.map((C)=>({...C})),edges:O.map((C)=>({...C})),viewport:{x:P,y:V,zoom:S}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:w,edges:P,onNodesDelete:V,onEdgesDelete:S,triggerNodeChanges:C,triggerEdgeChanges:D,onDelete:N,onBeforeDelete:v}=U.getState(),{nodes:u,edges:h}=await iM({nodesToRemove:A,edgesToRemove:O,nodes:w,edges:P,onBeforeDelete:v}),k=h.length>0,b=u.length>0;if(k){let E=h.map(hT);S?.(h),D(E)}if(b){let E=u.map(hT);V?.(u),C(E)}if(b||k)N?.({nodes:u,edges:h});return{deletedNodes:u,deletedEdges:h}},getIntersectingNodes:(A,O=!0,w)=>{let P=VX(A),V=P?A:T(A),S=w!==void 0;if(!V)return[];return(w||U.getState().nodes).filter((C)=>{let D=U.getState().nodeLookup.get(C.id);if(D&&!P&&(C.id===A.id||!D.internals.positionAbsolute))return!1;let N=X9(S?C:D),v=yJ(N,V);return O&&v>0||v>=N.width*N.height||v>=V.width*V.height})},isNodeIntersecting:(A,O,w=!0)=>{let V=VX(A)?A:T(A);if(!V)return!1;let S=yJ(V,O);return w&&S>0||S>=O.width*O.height||S>=V.width*V.height},updateNode:R,updateNodeData:(A,O,w={replace:!1})=>{R(A,(P)=>{let V=typeof O==="function"?O(P):O;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},updateEdge:M,updateEdgeData:(A,O,w={replace:!1})=>{M(A,(P)=>{let V=typeof O==="function"?O(P):O;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:w}=U.getState();return SX(A,{nodeLookup:O,nodeOrigin:w})},getHandleConnections:({type:A,id:O,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??sM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),Z.nodeQueue.push((w)=>[...w]),O.promise}}},[]);return z1.useMemo(()=>{return{...H,...Q,viewportInitialized:X}},[X])}var gT=(Q)=>Q.selected,rS=typeof window<"u"?window:void 0;function aS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=D0(),{deleteElements:X}=bJ(),H=uJ(Q,{actInsideInputWithModifier:!1}),Y=uJ(U,{target:rS});z1.useEffect(()=>{if(H){let{edges:W,nodes:B}=Z.getState();X({nodes:B.filter(gT),edges:W.filter(gT)}),Z.setState({nodesSelectionActive:!1})}},[H]),z1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function sS(Q){let U=D0();z1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let X=lq(Q.current);if(X.height===0||X.width===0)U.getState().onError?.("004",a2.error004());U.setState({width:X.width||500,height:X.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let X=new ResizeObserver(()=>Z());return X.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),X&&Q.current)X.unobserve(Q.current)}}},[])}var qU={position:"absolute",width:"100%",height:"100%",top:0,left:0},tS=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function oS({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:X=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=O3.Free,zoomOnDoubleClick:B=!0,panOnDrag:T=!0,defaultViewport:R,translateExtent:M,minZoom:A,maxZoom:O,zoomActivationKeyCode:w,preventScrolling:P=!0,children:V,noWheelClassName:S,noPanClassName:C,onViewportChange:D,isControlledViewport:N,paneClickDistance:v,selectionOnDrag:u}){let h=D0(),k=z1.useRef(null),{userSelectionActive:b,lib:E,connectionInProgress:m}=X0(tS,k0),e=uJ(w),Q1=z1.useRef();sS(k);let J1=z1.useCallback((x)=>{if(D?.({x:x[0],y:x[1],zoom:x[2]}),!N)h.setState({transform:x})},[D,N]);return z1.useEffect(()=>{if(k.current){Q1.current=MT({domNode:k.current,minZoom:A,maxZoom:O,translateExtent:M,viewport:R,onDraggingChange:(a)=>h.setState((d)=>d.paneDragging===a?d:{paneDragging:a}),onPanZoomStart:(a,d)=>{let{onViewportChangeStart:t,onMoveStart:y}=h.getState();y?.(a,d),t?.(d)},onPanZoom:(a,d)=>{let{onViewportChange:t,onMove:y}=h.getState();y?.(a,d),t?.(d)},onPanZoomEnd:(a,d)=>{let{onViewportChangeEnd:t,onMoveEnd:y}=h.getState();y?.(a,d),t?.(d)}});let{x,y:g,zoom:c}=Q1.current.getViewport();return h.setState({panZoom:Q1.current,transform:[x,g,c],domNode:k.current.closest(".react-flow")}),()=>{Q1.current?.destroy()}}},[]),z1.useEffect(()=>{Q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:X,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:B,panOnDrag:T,zoomActivationKeyPressed:e,preventScrolling:P,noPanClassName:C,userSelectionActive:b,noWheelClassName:S,lib:E,onTransformChange:J1,connectionInProgress:m,selectionOnDrag:u,paneClickDistance:v})},[Q,U,Z,X,H,Y,W,B,T,e,P,C,b,S,E,J1,m,u,v]),Y1.jsx("div",{className:"react-flow__renderer",ref:k,style:qU,children:V})}var nS=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function eS(){let{userSelectionActive:Q,userSelectionRect:U}=X0(nS,k0);if(!(Q&&U))return null;return Y1.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:U.width,height:U.height,transform:`translate(${U.x}px, ${U.y}px)`}})}var rX=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},_j=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Jj({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=k8.Full,panOnDrag:X,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:B,onSelectionEnd:T,onPaneClick:R,onPaneContextMenu:M,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:w,onPaneMouseLeave:P,children:V}){let S=z1.useRef(0),C=D0(),{userSelectionActive:D,elementsSelectable:N,dragging:v,panBy:u,autoPanSpeed:h}=X0(_j,k0),k=N&&(Q||D),b=z1.useRef(null),E=z1.useRef(),m=z1.useRef(new Set),e=z1.useRef(new Set),Q1=z1.useRef(!1),J1=z1.useRef(!1),x=z1.useRef({x:0,y:0}),g=z1.useRef(!1),c=(U1)=>{if(J1.current||Q1.current||C.getState().connection.inProgress){J1.current=!1,Q1.current=!1;return}R?.(U1),C.getState().resetSelectedElements(),C.setState({nodesSelectionActive:!1})},a=(U1)=>{if(Array.isArray(X)&&X?.includes(2)){U1.preventDefault();return}M?.(U1)},d=A?(U1)=>A(U1):void 0,t=(U1)=>{if(J1.current)U1.stopPropagation(),J1.current=!1},y=(U1)=>{if(U1.pointerType==="touch"&&X!==!1&&!U)return;let{domNode:w1,transform:v1}=C.getState();if(E.current=w1?.getBoundingClientRect(),!E.current)return;let M1=U1.target===b.current;if(!M1&&!!U1.target.closest(".nokey")||!Q||!(W&&M1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),J1.current=!1;let{x:I1,y:C1}=b5(U1.nativeEvent,E.current),K1=Y9({x:I1,y:C1},v1);if(C.setState({userSelectionRect:{width:0,height:0,startX:K1.x,startY:K1.y,x:I1,y:C1}}),!M1)U1.stopPropagation(),U1.preventDefault()};function p(U1,w1){let{userSelectionRect:v1}=C.getState();if(!v1)return;let{transform:M1,nodeLookup:G1,edgeLookup:B1,connectionLookup:I1,triggerNodeChanges:C1,triggerEdgeChanges:K1,defaultEdgeOptions:u1}=C.getState(),N1={x:v1.startX,y:v1.startY},{x:Q0,y:b1}=u8(N1,M1),a0={startX:N1.x,startY:N1.y,x:U1<Q0?U1:Q0,y:w1<b1?w1:b1,width:Math.abs(U1-Q0),height:Math.abs(w1-b1)},q2=m.current,O0=e.current;m.current=new Set(mq(G1,a0,M1,Z===k8.Partial,!0).map((u2)=>u2.id)),e.current=new Set;let D2=u1?.selectable??!0;for(let u2 of m.current){let P2=I1.get(u2);if(!P2)continue;for(let{edgeId:N2}of P2.values()){let C2=B1.get(N2);if(C2&&(C2.selectable??D2))e.current.add(N2)}}if(!uX(q2,m.current)){let u2=W9(G1,m.current,!0);C1(u2)}if(!uX(O0,e.current)){let u2=W9(B1,e.current);K1(u2)}C.setState({userSelectionRect:a0,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!E.current)return;let[U1,w1]=gq(x.current,E.current,h);u({x:U1,y:w1}).then((v1)=>{if(!J1.current||!v1){S.current=requestAnimationFrame(q1);return}let{x:M1,y:G1}=x.current;p(M1,G1),S.current=requestAnimationFrame(q1)})}let s=()=>{cancelAnimationFrame(S.current),S.current=0,g.current=!1};z1.useEffect(()=>{return()=>s()},[]);let W1=(U1)=>{let{userSelectionRect:w1,transform:v1,resetSelectedElements:M1}=C.getState();if(!E.current||!w1)return;let{x:G1,y:B1}=b5(U1.nativeEvent,E.current);x.current={x:G1,y:B1};let I1=u8({x:w1.startX,y:w1.startY},v1);if(!J1.current){let C1=U?0:Y;if(Math.hypot(G1-I1.x,B1-I1.y)<=C1)return;M1(),B?.(U1)}if(J1.current=!0,!g.current)q1(),g.current=!0;p(G1,B1)},R1=(U1)=>{if(!k){if(U1.target===b.current&&C.getState().connection.inProgress)Q1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!D&&U1.target===b.current&&C.getState().userSelectionRect)c?.(U1);if(C.setState({userSelectionActive:!1,userSelectionRect:null}),J1.current)T?.(U1),C.setState({nodesSelectionActive:m.current.size>0});s()},T1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),s()},A1=X===!0||Array.isArray(X)&&X.includes(0);return Y1.jsxs("div",{className:m0(["react-flow__pane",{draggable:A1,dragging:v,selection:Q}]),onClick:k?void 0:rX(c,b),onContextMenu:rX(a,b),onWheel:rX(d,b),onPointerEnter:k?void 0:O,onPointerMove:k?W1:w,onPointerUp:R1,onPointerCancel:k?T1:void 0,onPointerDownCapture:k?y:void 0,onClickCapture:k?t:void 0,onPointerLeave:P,ref:b,style:qU,children:[V,Y1.jsx(eS,{})]})}function sX({id:Q,store:U,unselect:Z=!1,nodeRef:X}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:B,onError:T}=U.getState(),R=B.get(Q);if(!R){T?.("012",a2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(Z||R.selected&&W)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>X?.current?.blur())}function HR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:X,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let B=D0(),[T,R]=z1.useState(!1),M=z1.useRef();return z1.useEffect(()=>{if(U)return;return M.current=XT({getStoreItems:()=>B.getState(),onNodeMouseDown:(A)=>{sX({id:A,store:B,nodeRef:Q})},onDragStart:()=>{R(!0)},onDragStop:()=>{R(!1)}}),()=>{M.current?.destroy(),M.current=void 0}},[U,B,Q]),z1.useEffect(()=>{if(U||!Q.current||!M.current)return;M.current.update({noDragClassName:Z,handleSelector:X,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,X,U,Y,Q,H,W]),T}var $j=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function YR(){let Q=D0();return z1.useCallback((Z)=>{let{nodeExtent:X,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:B,updateNodePositions:T,nodeLookup:R,nodeOrigin:M}=Q.getState(),A=new Map,O=$j(W),w=H?Y[0]:5,P=H?Y[1]:5,V=Z.direction.x*w*Z.factor,S=Z.direction.y*P*Z.factor;for(let[,C]of R){if(!O(C))continue;let D={x:C.internals.positionAbsolute.x+V,y:C.internals.positionAbsolute.y+S};if(H)D=H9(D,Y);let{position:N,positionAbsolute:v}=jX({nodeId:C.id,nextPosition:D,nodeLookup:R,nodeExtent:X,nodeOrigin:M,onError:B});C.position=N,C.internals.positionAbsolute=v,A.set(C.id,C)}T(A)},[])}var tX=z1.createContext(null),Qj=tX.Provider;tX.Consumer;var oX=()=>{return z1.useContext(tX)},qj=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),zR=z1.createContext(null);function Uj({children:Q}){let U=X0(qj,k0);return Y1.jsx(zR.Provider,{value:U,children:Q})}function Gj(){let Q=z1.useContext(zR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Zj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Fj=(Q,U,Z)=>(X)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=X,{fromHandle:B,toHandle:T,isValid:R}=W;if(!B&&!H)return Zj;let M=T?.nodeId===Q&&T?.id===U&&T?.type===Z;return{connectingFrom:B?.nodeId===Q&&B?.id===U&&B?.type===Z,connectingTo:M,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===P6.Strict?B?.type!==Z:Q!==B?.nodeId||U!==B?.id,connectionInProcess:!!B,clickConnectionInProcess:!!H,valid:M&&R}};function Kj({type:Q="source",position:U=D1.Top,isValidConnection:Z,isConnectable:X=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:B,children:T,className:R,onMouseDown:M,onTouchStart:A,...O},w){let P=W||null,V=Q==="target",S=D0(),C=oX(),{connectOnClick:D,noPanClassName:N,rfId:v}=Gj(),{connectingFrom:u,connectingTo:h,clickConnecting:k,isPossibleEndHandle:b,connectionInProcess:E,clickConnectionInProcess:m,valid:e}=X0(Fj(C,P,Q),k0);if(!C)S.getState().onError?.("010",a2.error010());let Q1=(g)=>{let{defaultEdgeOptions:c,onConnect:a,hasDefaultEdges:d}=S.getState(),t={...c,...g};if(d){let{edges:y,setEdges:p,onError:q1}=S.getState();p(gS(t,y,{onError:q1}))}a?.(t),B?.(t)},J1=(g)=>{if(!C)return;let c=xX(g.nativeEvent);if(H&&(c&&g.button===0||!c)){let a=S.getState();oq.onPointerDown(g.nativeEvent,{handleDomNode:g.currentTarget,autoPanOnConnect:a.autoPanOnConnect,connectionMode:a.connectionMode,connectionRadius:a.connectionRadius,domNode:a.domNode,nodeLookup:a.nodeLookup,lib:a.lib,isTarget:V,handleId:P,nodeId:C,flowId:a.rfId,panBy:a.panBy,cancelConnection:a.cancelConnection,onConnectStart:a.onConnectStart,onConnectEnd:(...d)=>S.getState().onConnectEnd?.(...d),updateConnection:a.updateConnection,onConnect:Q1,isValidConnection:Z||((...d)=>S.getState().isValidConnection?.(...d)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:a.autoPanSpeed,dragThreshold:a.connectionDragThreshold})}if(c)M?.(g);else A?.(g)},x=(g)=>{let{onClickConnectStart:c,onClickConnectEnd:a,connectionClickStartHandle:d,connectionMode:t,isValidConnection:y,lib:p,rfId:q1,nodeLookup:s,connection:W1}=S.getState();if(!C||!d&&!H)return;if(!d){c?.(g.nativeEvent,{nodeId:C,handleId:P,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:C,type:Q,id:P}});return}let R1=EX(g.target),T1=Z||y,{connection:A1,isValid:U1}=oq.isValid(g.nativeEvent,{handle:{nodeId:C,id:P,type:Q},connectionMode:t,fromNodeId:d.nodeId,fromHandleId:d.id||null,fromType:d.type,isValidConnection:T1,flowId:q1,doc:R1,lib:p,nodeLookup:s});if(U1&&A1)Q1(A1);let w1=structuredClone(W1);delete w1.inProgress,w1.toPosition=w1.toHandle?w1.toHandle.position:null,a?.(g,w1),S.setState({connectionClickStartHandle:null})};return Y1.jsx("div",{"data-handleid":P,"data-nodeid":C,"data-handlepos":U,"data-id":`${v}-${C}-${P}-${Q}`,className:m0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",N,R,{source:!V,target:V,connectable:X,connectablestart:H,connectableend:Y,clickconnecting:k,connectingfrom:u,connectingto:h,valid:e,connectionindicator:X&&(!E||b)&&(E||m?Y:H)}]),onMouseDown:J1,onTouchStart:J1,onClick:D?x:void 0,ref:w,...O,children:T})}var JU=z1.memo(FR(Kj));function Xj({data:Q,isConnectable:U,sourcePosition:Z=D1.Bottom}){return Y1.jsxs(Y1.Fragment,{children:[Q?.label,Y1.jsx(JU,{type:"source",position:Z,isConnectable:U})]})}function Hj({data:Q,isConnectable:U,targetPosition:Z=D1.Top,sourcePosition:X=D1.Bottom}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(JU,{type:"target",position:Z,isConnectable:U}),Q?.label,Y1.jsx(JU,{type:"source",position:X,isConnectable:U})]})}function Yj(){return null}function zj({data:Q,isConnectable:U,targetPosition:Z=D1.Top}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(JU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var $U={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},pT={input:Xj,default:Hj,output:zj,group:Yj};function Wj(Q){if(Q.internals.handleBounds===void 0)return{width:Q.width??Q.initialWidth??Q.style?.width,height:Q.height??Q.initialHeight??Q.style?.height};return{width:Q.width??Q.style?.width,height:Q.height??Q.style?.height}}var Bj=(Q)=>{let{width:U,height:Z,x:X,y:H}=E8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:u5(U)?U:null,height:u5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${X}px,${H}px)`}};function Lj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let X=D0(),{width:H,height:Y,transformString:W,userSelectionActive:B}=X0(Bj,k0),T=YR(),R=z1.useRef(null);z1.useEffect(()=>{if(!Z)R.current?.focus({preventScroll:!0})},[Z]);let M=!B&&H!==null&&Y!==null;if(HR({nodeRef:R,disabled:!M}),!M)return null;let A=Q?(w)=>{let P=X.getState().nodes.filter((V)=>V.selected);Q(w,P)}:void 0,O=(w)=>{if(Object.prototype.hasOwnProperty.call($U,w.key))w.preventDefault(),T({direction:$U[w.key],factor:w.shiftKey?4:1})};return Y1.jsx("div",{className:m0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:Y1.jsx("div",{ref:R,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:O,style:{width:H,height:Y}})})}var cT=typeof window<"u"?window:void 0,Aj=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function WR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:B,deleteKeyCode:T,selectionKeyCode:R,selectionOnDrag:M,selectionMode:A,onSelectionStart:O,onSelectionEnd:w,multiSelectionKeyCode:P,panActivationKeyCode:V,zoomActivationKeyCode:S,elementsSelectable:C,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:v,panOnScrollSpeed:u,panOnScrollMode:h,zoomOnDoubleClick:k,panOnDrag:b,autoPanOnSelection:E,defaultViewport:m,translateExtent:e,minZoom:Q1,maxZoom:J1,preventScrolling:x,onSelectionContextMenu:g,noWheelClassName:c,noPanClassName:a,disableKeyboardA11y:d,onViewportChange:t,isControlledViewport:y}){let{nodesSelectionActive:p,userSelectionActive:q1}=X0(Aj,k0),s=uJ(R,{target:cT}),W1=uJ(V,{target:cT}),R1=W1||b,T1=W1||v,A1=M&&R1!==!0,U1=s||q1||A1;return aS({deleteKeyCode:T,multiSelectionKeyCode:P}),Y1.jsx(oS,{onPaneContextMenu:Y,elementsSelectable:C,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:T1,panActivationKeyPressed:W1,panOnScrollSpeed:u,panOnScrollMode:h,zoomOnDoubleClick:k,panOnDrag:!s&&R1,defaultViewport:m,translateExtent:e,minZoom:Q1,maxZoom:J1,zoomActivationKeyCode:S,preventScrolling:x,noWheelClassName:c,noPanClassName:a,onViewportChange:t,isControlledViewport:y,paneClickDistance:B,selectionOnDrag:A1,children:Y1.jsxs(Jj,{onSelectionStart:O,onSelectionEnd:w,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:R1,autoPanOnSelection:E,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:s,paneClickDistance:B,selectionOnDrag:A1,children:[Q,p&&Y1.jsx(Lj,{onSelectionContextMenu:g,noPanClassName:a,disableKeyboardA11y:d})]})})}WR.displayName="FlowRenderer";var Mj=z1.memo(WR),Tj=(Q)=>(U)=>{return Q?mq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function Rj(Q){return X0(z1.useCallback(Tj(Q),[Q]),k0)}var Oj=(Q)=>Q.updateNodeInternals;function Ij(){let Q=X0(Oj),[U]=z1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let X=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");X.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(X)})});return z1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function wj({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:X}){let H=D0(),Y=z1.useRef(null),W=z1.useRef(null),B=z1.useRef(Q.sourcePosition),T=z1.useRef(Q.targetPosition),R=z1.useRef(U),M=Z&&!!Q.internals.handleBounds;return z1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!M||W.current!==Y.current)){if(W.current)X?.unobserve(W.current);X?.observe(Y.current),W.current=Y.current}},[M,Q.hidden]),z1.useEffect(()=>{return()=>{if(W.current)X?.unobserve(W.current),W.current=null}},[]),z1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=B.current!==Q.sourcePosition,w=T.current!==Q.targetPosition;if(A||O||w)R.current=U,B.current=Q.sourcePosition,T.current=Q.targetPosition,H.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:Y.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),Y}function Pj({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:X,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:B,elementsSelectable:T,nodesConnectable:R,nodesFocusable:M,resizeObserver:A,noDragClassName:O,noPanClassName:w,disableKeyboardA11y:P,rfId:V,nodeTypes:S,nodeClickDistance:C,onError:D}){let{node:N,internals:v,isParent:u}=X0((U1)=>{let w1=U1.nodeLookup.get(Q),v1=U1.parentLookup.has(Q);return{node:w1,internals:w1.internals,isParent:v1}},k0),h=N.type||"default",k=S?.[h]||pT[h];if(k===void 0)D?.("003",a2.error003(h)),h="default",k=S?.default||pT.default;let b=!!(N.draggable||B&&typeof N.draggable>"u"),E=!!(N.selectable||T&&typeof N.selectable>"u"),m=!!(N.connectable||R&&typeof N.connectable>"u"),e=!!(N.focusable||M&&typeof N.focusable>"u"),Q1=D0(),J1=kX(N),x=wj({node:N,nodeType:h,hasDimensions:J1,resizeObserver:A}),g=HR({nodeRef:x,disabled:N.hidden||!b,noDragClassName:O,handleSelector:N.dragHandle,nodeId:Q,isSelectable:E,nodeClickDistance:C}),c=YR();if(N.hidden)return null;let a=E5(N),d=Wj(N),t=E||b||U||Z||X||H,y=Z?(U1)=>Z(U1,{...v.userNode}):void 0,p=X?(U1)=>X(U1,{...v.userNode}):void 0,q1=H?(U1)=>H(U1,{...v.userNode}):void 0,s=Y?(U1)=>Y(U1,{...v.userNode}):void 0,W1=W?(U1)=>W(U1,{...v.userNode}):void 0,R1=(U1)=>{let{selectNodesOnDrag:w1,nodeDragThreshold:v1}=Q1.getState();if(E&&(!w1||!b||v1>0))sX({id:Q,store:Q1,nodeRef:x});if(U)U(U1,{...v.userNode})},T1=(U1)=>{if(hX(U1.nativeEvent)||P)return;if(wX.includes(U1.key)&&E){let w1=U1.key==="Escape";sX({id:Q,store:Q1,unselect:w1,nodeRef:x})}else if(b&&N.selected&&Object.prototype.hasOwnProperty.call($U,U1.key)){U1.preventDefault();let{ariaLabelConfig:w1}=Q1.getState();Q1.setState({ariaLiveMessage:w1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),c({direction:$U[U1.key],factor:U1.shiftKey?4:1})}},A1=()=>{if(P||!x.current?.matches(":focus-visible"))return;let{transform:U1,width:w1,height:v1,autoPanOnNodeFocus:M1,setCenter:G1}=Q1.getState();if(!M1)return;if(!(mq(new Map([[Q,N]]),{x:0,y:0,width:w1,height:v1},U1,!0).length>0))G1(N.position.x+a.width/2,N.position.y+a.height/2,{zoom:U1[2]})};return Y1.jsx("div",{className:m0(["react-flow__node",`react-flow__node-${h}`,{[w]:b},N.className,{selected:N.selected,selectable:E,parent:u,draggable:b,dragging:g}]),ref:x,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:t?"all":"none",visibility:J1?"visible":"hidden",...N.style,...d},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:y,onMouseMove:p,onMouseLeave:q1,onContextMenu:s,onClick:R1,onDoubleClick:W1,onKeyDown:e?T1:void 0,tabIndex:e?0:void 0,onFocus:e?A1:void 0,role:N.ariaRole??(e?"group":void 0),"aria-roledescription":"node","aria-describedby":P?void 0:`${QR}-${V}`,"aria-label":N.ariaLabel,...N.domAttributes,children:Y1.jsx(Qj,{value:Q,children:Y1.jsx(k,{id:Q,data:N.data,type:h,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:N.selected??!1,selectable:E,draggable:b,deletable:N.deletable??!0,isConnectable:m,sourcePosition:N.sourcePosition,targetPosition:N.targetPosition,dragging:g,dragHandle:N.dragHandle,zIndex:v.z,parentId:N.parentId,...a})})})}var Nj=z1.memo(Pj),Cj=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function BR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:X,onError:H}=X0(Cj,k0),Y=Rj(Q.onlyRenderVisibleElements),W=Ij();return Y1.jsx("div",{className:"react-flow__nodes",style:qU,children:Y.map((B)=>{return Y1.jsx(Nj,{id:B,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:W,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:X,nodeClickDistance:Q.nodeClickDistance,onError:H},B)})})}BR.displayName="NodeRenderer";var fj=z1.memo(BR);function Sj(Q){return X0(z1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let X=[];if(Z.width&&Z.height)for(let H of Z.edges){let Y=Z.nodeLookup.get(H.source),W=Z.nodeLookup.get(H.target);if(Y&&W&&eM({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))X.push(H.id)}return X},[Q]),k0)}var jj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return Y1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},vj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return Y1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},lT={[Z9.Arrow]:jj,[Z9.ArrowClosed]:vj};function Vj(Q){let U=D0();return z1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(lT,Q))return U.getState().onError?.("009",a2.error009(Q)),null;return lT[Q]},[Q])}var yj=({id:Q,type:U,color:Z,width:X=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:B="auto-start-reverse"})=>{let T=Vj(U);if(!T)return null;return Y1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${X}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:B,refX:"0",refY:"0",children:Y1.jsx(T,{color:Z,strokeWidth:W})})},LR=({defaultColor:Q,rfId:U})=>{let Z=X0((Y)=>Y.edges),X=X0((Y)=>Y.defaultEdgeOptions),H=z1.useMemo(()=>{return $T(Z,{id:U,defaultColor:Q,defaultMarkerStart:X?.markerStart,defaultMarkerEnd:X?.markerEnd})},[Z,X,U,Q]);if(!H.length)return null;return Y1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:Y1.jsx("defs",{children:H.map((Y)=>Y1.jsx(yj,{id:Y.id,type:Y.type,color:Y.color,width:Y.width,height:Y.height,markerUnits:Y.markerUnits,strokeWidth:Y.strokeWidth,orient:Y.orient},Y.id))})})};LR.displayName="MarkerDefinitions";var kj=z1.memo(LR);function AR({x:Q,y:U,label:Z,labelStyle:X,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:B=2,children:T,className:R,...M}){let[A,O]=z1.useState({x:1,y:0,width:0,height:0}),w=m0(["react-flow__edge-textwrapper",R]),P=z1.useRef(null);if(z1.useEffect(()=>{if(P.current){let V=P.current.getBBox();O({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return Y1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:w,visibility:A.width?"visible":"hidden",...M,children:[H&&Y1.jsx("rect",{width:A.width+2*W[0],x:-W[0],y:-W[1],height:A.height+2*W[1],className:"react-flow__edge-textbg",style:Y,rx:B,ry:B}),Y1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:P,style:X,children:Z}),T]})}AR.displayName="EdgeText";var Dj=z1.memo(AR);function UU({path:Q,labelX:U,labelY:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T,interactionWidth:R=20,...M}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx("path",{...M,d:Q,fill:"none",className:m0(["react-flow__edge-path",M.className])}),R?Y1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,X&&u5(U)&&u5(Z)?Y1.jsx(Dj,{x:U,y:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T}):null]})}function dT({pos:Q,x1:U,y1:Z,x2:X,y2:H}){if(Q===D1.Left||Q===D1.Right)return[0.5*(U+X),Z];return[U,0.5*(Z+H)]}function MR({sourceX:Q,sourceY:U,sourcePosition:Z=D1.Bottom,targetX:X,targetY:H,targetPosition:Y=D1.Top}){let[W,B]=dT({pos:Z,x1:Q,y1:U,x2:X,y2:H}),[T,R]=dT({pos:Y,x1:X,y1:H,x2:Q,y2:U}),[M,A,O,w]=dq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:W,sourceControlY:B,targetControlX:T,targetControlY:R});return[`M${Q},${U} C${W},${B} ${T},${R} ${X},${H}`,M,A,O,w]}function TR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:W,targetPosition:B,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})=>{let[D,N,v]=MR({sourceX:Z,sourceY:X,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B}),u=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:u,path:D,labelX:N,labelY:v,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})})}var uj=TR({isInternal:!1}),RR=TR({isInternal:!0});uj.displayName="SimpleBezierEdge";RR.displayName="SimpleBezierEdgeInternal";function OR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,sourcePosition:w=D1.Bottom,targetPosition:P=D1.Top,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:D})=>{let[N,v,u]=DJ({sourceX:Z,sourceY:X,sourcePosition:w,targetX:H,targetY:Y,targetPosition:P,borderRadius:C?.borderRadius,offset:C?.offset,stepPosition:C?.stepPosition}),h=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:h,path:N,labelX:v,labelY:u,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:V,markerStart:S,interactionWidth:D})})}var IR=OR({isInternal:!1}),wR=OR({isInternal:!0});IR.displayName="SmoothStepEdge";wR.displayName="SmoothStepEdgeInternal";function PR(Q){return z1.memo(({id:U,...Z})=>{let X=Q.isInternal?void 0:U;return Y1.jsx(IR,{...Z,id:X,pathOptions:z1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var bj=PR({isInternal:!1}),NR=PR({isInternal:!0});bj.displayName="StepEdge";NR.displayName="StepEdgeInternal";function CR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:w,markerStart:P,interactionWidth:V})=>{let[S,C,D]=rq({sourceX:Z,sourceY:X,targetX:H,targetY:Y}),N=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:N,path:S,labelX:C,labelY:D,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:w,markerStart:P,interactionWidth:V})})}var Ej=CR({isInternal:!1}),fR=CR({isInternal:!0});Ej.displayName="StraightEdge";fR.displayName="StraightEdgeInternal";function SR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:W=D1.Bottom,targetPosition:B=D1.Top,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:D})=>{let[N,v,u]=iq({sourceX:Z,sourceY:X,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B,curvature:C?.curvature}),h=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:h,path:N,labelX:v,labelY:u,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:D})})}var hj=SR({isInternal:!1}),jR=SR({isInternal:!0});hj.displayName="BezierEdge";jR.displayName="BezierEdgeInternal";var iT={default:jR,straight:fR,step:NR,smoothstep:wR,simplebezier:RR},rT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},xj=(Q,U,Z)=>{if(Z===D1.Left)return Q-U;if(Z===D1.Right)return Q+U;return Q},mj=(Q,U,Z)=>{if(Z===D1.Top)return Q-U;if(Z===D1.Bottom)return Q+U;return Q},aT="react-flow__edgeupdater";function sT({position:Q,centerX:U,centerY:Z,radius:X=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:B}){return Y1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:m0([aT,`${aT}-${B}`]),cx:xj(U,X,Q),cy:mj(Z,X,Q),r:X,stroke:"transparent",fill:"transparent"})}function gj({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:X,sourceY:H,targetX:Y,targetY:W,sourcePosition:B,targetPosition:T,onReconnect:R,onReconnectStart:M,onReconnectEnd:A,setReconnecting:O,setUpdateHover:w}){let P=D0(),V=(v,u)=>{if(v.button!==0)return;let{autoPanOnConnect:h,domNode:k,connectionMode:b,connectionRadius:E,lib:m,onConnectStart:e,cancelConnection:Q1,nodeLookup:J1,rfId:x,panBy:g,updateConnection:c}=P.getState(),a=u.type==="target",d=(p,q1)=>{O(!1),A?.(p,Z,u.type,q1)},t=(p)=>R?.(Z,p),y=(p,q1)=>{O(!0),M?.(v,Z,u.type),e?.(p,q1)};oq.onPointerDown(v.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:E,domNode:k,handleId:u.id,nodeId:u.nodeId,nodeLookup:J1,isTarget:a,edgeUpdaterType:u.type,lib:m,flowId:x,cancelConnection:Q1,panBy:g,isValidConnection:(...p)=>P.getState().isValidConnection?.(...p)??!0,onConnect:t,onConnectStart:y,onConnectEnd:(...p)=>P.getState().onConnectEnd?.(...p),onReconnectEnd:d,updateConnection:c,getTransform:()=>P.getState().transform,getFromHandle:()=>P.getState().connection.fromHandle,dragThreshold:P.getState().connectionDragThreshold,handleDomNode:v.currentTarget})},S=(v)=>V(v,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),C=(v)=>V(v,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),D=()=>w(!0),N=()=>w(!1);return Y1.jsxs(Y1.Fragment,{children:[(Q===!0||Q==="source")&&Y1.jsx(sT,{position:B,centerX:X,centerY:H,radius:U,onMouseDown:S,onMouseEnter:D,onMouseOut:N,type:"source"}),(Q===!0||Q==="target")&&Y1.jsx(sT,{position:T,centerX:Y,centerY:W,radius:U,onMouseDown:C,onMouseEnter:D,onMouseOut:N,type:"target"})]})}function pj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:X,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:w,rfId:P,edgeTypes:V,noPanClassName:S,onError:C,disableKeyboardA11y:D}){let N=X0((G1)=>G1.edgeLookup.get(Q)),v=X0((G1)=>G1.defaultEdgeOptions);N=v?{...v,...N}:N;let u=N.type||"default",h=V?.[u]||iT[u];if(h===void 0)C?.("011",a2.error011(u)),u="default",h=V?.default||iT.default;let k=!!(N.focusable||U&&typeof N.focusable>"u"),b=typeof A<"u"&&(N.reconnectable||Z&&typeof N.reconnectable>"u"),E=!!(N.selectable||X&&typeof N.selectable>"u"),m=z1.useRef(null),[e,Q1]=z1.useState(!1),[J1,x]=z1.useState(!1),g=D0(),{zIndex:c=N.zIndex,sourceX:a,sourceY:d,targetX:t,targetY:y,sourcePosition:p,targetPosition:q1}=X0(z1.useCallback((G1)=>{let B1=G1.nodeLookup.get(N.source),I1=G1.nodeLookup.get(N.target);if(!B1||!I1)return rT;let C1=JT({id:Q,sourceNode:B1,targetNode:I1,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:G1.connectionMode,onError:C}),K1=nM({selected:N.selected,zIndex:N.zIndex,sourceNode:B1,targetNode:I1,elevateOnSelect:G1.elevateEdgesOnSelect,zIndexMode:G1.zIndexMode});return{...C1||rT,zIndex:K1}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex,C]),k0),s=z1.useMemo(()=>N.markerStart?`url('#${aq(N.markerStart,P)}')`:void 0,[N.markerStart,P]),W1=z1.useMemo(()=>N.markerEnd?`url('#${aq(N.markerEnd,P)}')`:void 0,[N.markerEnd,P]);if(N.hidden||a===null||d===null||t===null||y===null)return null;let R1=(G1)=>{let{addSelectedEdges:B1,unselectNodesAndEdges:I1,multiSelectionActive:C1}=g.getState();if(E)if(g.setState({nodesSelectionActive:!1}),N.selected&&C1)I1({nodes:[],edges:[N]}),m.current?.blur();else B1([Q]);if(H)H(G1,N)},T1=Y?(G1)=>{Y(G1,{...N})}:void 0,A1=W?(G1)=>{W(G1,{...N})}:void 0,U1=B?(G1)=>{B(G1,{...N})}:void 0,w1=T?(G1)=>{T(G1,{...N})}:void 0,v1=R?(G1)=>{R(G1,{...N})}:void 0,M1=(G1)=>{if(!D&&wX.includes(G1.key)&&E){let{unselectNodesAndEdges:B1,addSelectedEdges:I1}=g.getState();if(G1.key==="Escape")m.current?.blur(),B1({edges:[N]});else I1([Q])}};return Y1.jsx("svg",{style:{zIndex:c},children:Y1.jsxs("g",{className:m0(["react-flow__edge",`react-flow__edge-${u}`,N.className,S,{selected:N.selected,animated:N.animated,inactive:!E&&!H,updating:e,selectable:E}]),onClick:R1,onDoubleClick:T1,onContextMenu:A1,onMouseEnter:U1,onMouseMove:w1,onMouseLeave:v1,onKeyDown:k?M1:void 0,tabIndex:k?0:void 0,role:N.ariaRole??(k?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":N.ariaLabel===null?void 0:N.ariaLabel||`Edge from ${N.source} to ${N.target}`,"aria-describedby":k?`${qR}-${P}`:void 0,ref:m,...N.domAttributes,children:[!J1&&Y1.jsx(h,{id:Q,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:E,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:a,sourceY:d,targetX:t,targetY:y,sourcePosition:p,targetPosition:q1,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:s,markerEnd:W1,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),b&&Y1.jsx(gj,{edge:N,isReconnectable:b,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:w,sourceX:a,sourceY:d,targetX:t,targetY:y,sourcePosition:p,targetPosition:q1,setUpdateHover:Q1,setReconnecting:x})]})})}var cj=z1.memo(pj),lj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function vR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:X,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:B,onEdgeMouseMove:T,onEdgeMouseLeave:R,onEdgeClick:M,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:w,onReconnectEnd:P,disableKeyboardA11y:V}){let{edgesFocusable:S,edgesReconnectable:C,elementsSelectable:D,onError:N}=X0(lj,k0),v=Sj(U);return Y1.jsxs("div",{className:"react-flow__edges",children:[Y1.jsx(kj,{defaultColor:Q,rfId:Z}),v.map((u)=>{return Y1.jsx(cj,{id:u,edgesFocusable:S,edgesReconnectable:C,elementsSelectable:D,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,onClick:M,reconnectRadius:A,onDoubleClick:O,onReconnectStart:w,onReconnectEnd:P,rfId:Z,onError:N,edgeTypes:X,disableKeyboardA11y:V},u)})]})}vR.displayName="EdgeRenderer";var dj=z1.memo(vR),tT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function ij({children:Q}){let U=D0(),Z=z1.useRef(null),[X]=z1.useState(()=>U.getState().transform);return KR(()=>{let H=null,Y=()=>{let W=U.getState().transform;if(H&&W[0]===H[0]&&W[1]===H[1]&&W[2]===H[2])return;if(H=W,Z.current)Z.current.style.transform=tT(W)};return Y(),U.subscribe(Y)},[U]),Y1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:tT(X)},children:Q})}function rj(Q){let U=bJ(),Z=z1.useRef(!1);z1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var aj=(Q)=>Q.panZoom?.syncViewport;function sj(Q){let U=X0(aj),Z=D0();return z1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function oT(Q){return Q.connection.inProgress?{...Q.connection,to:Y9(Q.connection.to,Q.transform)}:{...Q.connection}}function tj(Q){if(Q)return(Z)=>{let X=oT(Z);return Q(X)};return oT}function oj(Q){let U=tj(Q);return X0(U,k0)}var nj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function ej({containerStyle:Q,style:U,type:Z,component:X}){let{nodesConnectable:H,width:Y,height:W,isValid:B,inProgress:T}=X0(nj,k0);if(!(Y&&H&&T))return null;return Y1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:Y1.jsx("g",{className:m0(["react-flow__connection",bX(B)]),children:Y1.jsx(VR,{style:U,type:Z,CustomComponent:X,isValid:B})})})}var VR=({style:Q,type:U=x4.Bezier,CustomComponent:Z,isValid:X})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:B,fromPosition:T,to:R,toNode:M,toHandle:A,toPosition:O,pointer:w}=oj();if(!H)return;if(Z)return Y1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:B,fromX:Y.x,fromY:Y.y,toX:R.x,toY:R.y,fromPosition:T,toPosition:O,connectionStatus:bX(X),toNode:M,toHandle:A,pointer:w});let P="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:T,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case x4.Bezier:[P]=iq(V);break;case x4.SimpleBezier:[P]=MR(V);break;case x4.Step:[P]=DJ({...V,borderRadius:0});break;case x4.SmoothStep:[P]=DJ(V);break;default:[P]=rq(V)}return Y1.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Q})};VR.displayName="ConnectionLine";var _v={};function nT(Q=_v){let U=z1.useRef(Q),Z=D0();z1.useEffect(()=>{{let X=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of X)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",a2.error002());break}U.current=Q}},[Q])}function Jv(){let Q=D0(),U=z1.useRef(!1);z1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",a2.error013("react"));U.current=!0}},[])}function yR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:X,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:w,connectionLineType:P,connectionLineStyle:V,connectionLineComponent:S,connectionLineContainerStyle:C,selectionKeyCode:D,selectionOnDrag:N,selectionMode:v,multiSelectionKeyCode:u,panActivationKeyCode:h,zoomActivationKeyCode:k,deleteKeyCode:b,onlyRenderVisibleElements:E,elementsSelectable:m,defaultViewport:e,translateExtent:Q1,minZoom:J1,maxZoom:x,preventScrolling:g,defaultMarkerColor:c,zoomOnScroll:a,zoomOnPinch:d,panOnScroll:t,panOnScrollSpeed:y,panOnScrollMode:p,zoomOnDoubleClick:q1,panOnDrag:s,autoPanOnSelection:W1,onPaneClick:R1,onPaneMouseEnter:T1,onPaneMouseMove:A1,onPaneMouseLeave:U1,onPaneScroll:w1,onPaneContextMenu:v1,paneClickDistance:M1,nodeClickDistance:G1,onEdgeContextMenu:B1,onEdgeMouseEnter:I1,onEdgeMouseMove:C1,onEdgeMouseLeave:K1,reconnectRadius:u1,onReconnect:N1,onReconnectStart:Q0,onReconnectEnd:b1,noDragClassName:a0,noWheelClassName:q2,noPanClassName:O0,disableKeyboardA11y:D2,nodeExtent:u2,rfId:P2,viewport:N2,onViewportChange:C2,nodesDraggable:C3}){return nT(Q),nT(U),Jv(),rj(Z),sj(N2),Y1.jsx(Mj,{onPaneClick:R1,onPaneMouseEnter:T1,onPaneMouseMove:A1,onPaneMouseLeave:U1,onPaneContextMenu:v1,onPaneScroll:w1,paneClickDistance:M1,deleteKeyCode:b,selectionKeyCode:D,selectionOnDrag:N,selectionMode:v,onSelectionStart:O,onSelectionEnd:w,multiSelectionKeyCode:u,panActivationKeyCode:h,zoomActivationKeyCode:k,elementsSelectable:m,zoomOnScroll:a,zoomOnPinch:d,zoomOnDoubleClick:q1,panOnScroll:t,panOnScrollSpeed:y,panOnScrollMode:p,panOnDrag:s,autoPanOnSelection:W1,defaultViewport:e,translateExtent:Q1,minZoom:J1,maxZoom:x,onSelectionContextMenu:A,preventScrolling:g,noDragClassName:a0,noWheelClassName:q2,noPanClassName:O0,disableKeyboardA11y:D2,onViewportChange:C2,isControlledViewport:!!N2,children:Y1.jsxs(ij,{children:[Y1.jsx(dj,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:N1,onReconnectStart:Q0,onReconnectEnd:b1,onlyRenderVisibleElements:E,onEdgeContextMenu:B1,onEdgeMouseEnter:I1,onEdgeMouseMove:C1,onEdgeMouseLeave:K1,reconnectRadius:u1,defaultMarkerColor:c,noPanClassName:O0,disableKeyboardA11y:D2,rfId:P2}),Y1.jsx(ej,{style:V,type:P,component:S,containerStyle:C}),Y1.jsx("div",{className:"react-flow__edgelabel-renderer"}),Y1.jsx(fj,{nodeTypes:Q,onNodeClick:X,onNodeDoubleClick:Y,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,nodeClickDistance:G1,onlyRenderVisibleElements:E,noPanClassName:O0,noDragClassName:a0,disableKeyboardA11y:D2,nodeExtent:u2,rfId:P2,nodesDraggable:C3}),Y1.jsx("div",{className:"react-flow__viewport-portal"})]})})}yR.displayName="GraphView";var $v=z1.memo(yR),Qv=yX("React Flow","https://reactflow.dev/"),eT=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T=0.5,maxZoom:R=2,nodeOrigin:M,nodeExtent:A,zIndexMode:O="basic"}={})=>{let w=new Map,P=new Map,V=new Map,S=new Map,C=X??U??[],D=Z??Q??[],N=M??[0,0],v=A??K9;dX(V,S,C);let{nodesInitialized:u}=sq(D,w,P,{nodeOrigin:N,nodeExtent:v,zIndexMode:O}),h=[0,0,1];if(W&&H&&Y){let k=E8(w,{filter:(e)=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),{x:b,y:E,zoom:m}=kJ(k,H,Y,T,R,B?.padding??0.1);h=[b,E,m]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:D,nodesInitialized:u,nodeLookup:w,parentLookup:P,edges:C,edgeLookup:S,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:X!==void 0,panZoom:null,minZoom:T,maxZoom:R,translateExtent:K9,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:P6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:N,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:W??!1,fitViewOptions:B,fitViewResolver:null,connection:{...NX},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Qv,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:PX,zIndexMode:O,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},qv=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O})=>ST((w,P)=>{async function V(){let{nodeLookup:S,panZoom:C,fitViewOptions:D,fitViewResolver:N,width:v,height:u,minZoom:h,maxZoom:k}=P();if(!C)return;await dM({nodes:S,width:v,height:u,panZoom:C,minZoom:h,maxZoom:k},D),N?.resolve(!0),w({fitViewResolver:null})}return{...eT({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,defaultNodes:Z,defaultEdges:X,zIndexMode:O}),setNodes:(S)=>{let{nodeLookup:C,parentLookup:D,nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:u,fitViewQueued:h,zIndexMode:k,nodesSelectionActive:b}=P(),{nodesInitialized:E,hasSelectedNodes:m}=sq(S,C,D,{nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:u,checkEquality:!0,zIndexMode:k}),e=b&&m;if(h&&E)V(),w({nodes:S,nodesInitialized:E,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:e});else w({nodes:S,nodesInitialized:E,nodesSelectionActive:e})},setEdges:(S)=>{let{connectionLookup:C,edgeLookup:D}=P();dX(C,D,S),w({edges:S})},setDefaultNodesAndEdges:(S,C)=>{if(S){let{setNodes:D}=P();D(S),w({hasDefaultNodes:!0})}if(C){let{setEdges:D}=P();D(C),w({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:C,nodeLookup:D,parentLookup:N,domNode:v,nodeOrigin:u,nodeExtent:h,debug:k,fitViewQueued:b,zIndexMode:E}=P(),{changes:m,updatedInternals:e}=ZT(S,D,N,v,u,h,E);if(!e)return;if(UT(D,N,{nodeOrigin:u,nodeExtent:h,zIndexMode:E}),b)V(),w({fitViewQueued:!1,fitViewOptions:void 0});else w({});if(m?.length>0){if(k)console.log("React Flow: trigger node changes",m);C?.(m)}},updateNodePositions:(S,C=!1)=>{let D=[],N=[],{nodeLookup:v,triggerNodeChanges:u,connection:h,updateConnection:k,onNodesChangeMiddlewareMap:b}=P();for(let[E,m]of S){let e=v.get(E),Q1=!!(e?.expandParent&&e?.parentId&&m?.position),J1={id:E,type:"position",position:Q1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:C};if(e&&h.inProgress&&h.fromNode.id===e.id){let x=N6(e,h.fromHandle,D1.Left,!0);k({...h,from:x})}if(Q1&&e.parentId)D.push({id:E,parentId:e.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});N.push(J1)}if(D.length>0){let{parentLookup:E,nodeOrigin:m}=P(),e=tq(D,v,E,m);N.push(...e)}for(let E of b.values())N=E(N);u(N)},triggerNodeChanges:(S)=>{let{onNodesChange:C,setNodes:D,nodes:N,hasDefaultNodes:v,debug:u}=P();if(S?.length){if(v){let h=ZR(S,N);D(h)}if(u)console.log("React Flow: trigger node changes",S);C?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:C,setEdges:D,edges:N,hasDefaultEdges:v,debug:u}=P();if(S?.length){if(v){let h=xS(S,N);D(h)}if(u)console.log("React Flow: trigger edge changes",S);C?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:C,edgeLookup:D,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:u}=P();if(C){let h=S.map((k)=>h8(k,!0));v(h);return}v(W9(N,new Set([...S]),!0)),u(W9(D))},addSelectedEdges:(S)=>{let{multiSelectionActive:C,edgeLookup:D,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:u}=P();if(C){let h=S.map((k)=>h8(k,!0));u(h);return}u(W9(D,new Set([...S]))),v(W9(N,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:C}={})=>{let{edges:D,nodes:N,nodeLookup:v,triggerNodeChanges:u,triggerEdgeChanges:h}=P(),k=S?S:N,b=C?C:D,E=[];for(let e of k){if(!e.selected)continue;let Q1=v.get(e.id);if(Q1)Q1.selected=!1;E.push(h8(e.id,!1))}let m=[];for(let e of b){if(!e.selected)continue;m.push(h8(e.id,!1))}u(E),h(m)},setMinZoom:(S)=>{let{panZoom:C,maxZoom:D}=P();C?.setScaleExtent([S,D]),w({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:C,minZoom:D}=P();C?.setScaleExtent([D,S]),w({maxZoom:S})},setTranslateExtent:(S)=>{P().panZoom?.setTranslateExtent(S),w({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:C,triggerNodeChanges:D,triggerEdgeChanges:N,elementsSelectable:v}=P();if(!v)return;let u=C.reduce((k,b)=>b.selected?[...k,h8(b.id,!1)]:k,[]),h=S.reduce((k,b)=>b.selected?[...k,h8(b.id,!1)]:k,[]);D(u),N(h)},setNodeExtent:(S)=>{let{nodes:C,nodeLookup:D,parentLookup:N,nodeOrigin:v,elevateNodesOnSelect:u,nodeExtent:h,zIndexMode:k}=P();if(S[0][0]===h[0][0]&&S[0][1]===h[0][1]&&S[1][0]===h[1][0]&&S[1][1]===h[1][1])return;sq(C,D,N,{nodeOrigin:v,nodeExtent:S,elevateNodesOnSelect:u,checkEquality:!1,zIndexMode:k}),w({nodeExtent:S})},panBy:(S)=>{let{transform:C,width:D,height:N,panZoom:v,translateExtent:u}=P();return FT({delta:S,panZoom:v,transform:C,translateExtent:u,width:D,height:N})},setCenter:async(S,C,D)=>{let{width:N,height:v,maxZoom:u,panZoom:h}=P();if(!h)return!1;let k=typeof D?.zoom<"u"?D.zoom:u;return await h.setViewport({x:N/2-S*k,y:v/2-C*k,zoom:k},{duration:D?.duration,ease:D?.ease,interpolate:D?.interpolate}),!0},cancelConnection:()=>{w({connection:{...NX}})},updateConnection:(S)=>{w({connection:S})},reset:()=>w({...eT()})}},Object.is);function nX({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:X,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:B,initialFitViewOptions:T,fitView:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O,children:w}){let[P]=z1.useState(()=>qv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:R,minZoom:W,maxZoom:B,fitViewOptions:T,nodeOrigin:M,nodeExtent:A,zIndexMode:O}));return Y1.jsx(TS,{value:P,children:Y1.jsx(lS,{children:Y1.jsx(Uj,{children:w})})})}function Uv({children:Q,nodes:U,edges:Z,defaultNodes:X,defaultEdges:H,width:Y,height:W,fitView:B,fitViewOptions:T,minZoom:R,maxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:w}){if(z1.useContext(QU))return Y1.jsx(Y1.Fragment,{children:Q});return Y1.jsx(nX,{initialNodes:U,initialEdges:Z,defaultNodes:X,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:B,initialFitViewOptions:T,initialMinZoom:R,initialMaxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:w,children:Q})}var Gv={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Zv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:B,onEdgeClick:T,onInit:R,onMove:M,onMoveStart:A,onMoveEnd:O,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:u,onNodeDoubleClick:h,onNodeDragStart:k,onNodeDrag:b,onNodeDragStop:E,onNodesDelete:m,onEdgesDelete:e,onDelete:Q1,onSelectionChange:J1,onSelectionDragStart:x,onSelectionDrag:g,onSelectionDragStop:c,onSelectionContextMenu:a,onSelectionStart:d,onSelectionEnd:t,onBeforeDelete:y,connectionMode:p,connectionLineType:q1=x4.Bezier,connectionLineStyle:s,connectionLineComponent:W1,connectionLineContainerStyle:R1,deleteKeyCode:T1="Backspace",selectionKeyCode:A1="Shift",selectionOnDrag:U1=!1,selectionMode:w1=k8.Full,panActivationKeyCode:v1="Space",multiSelectionKeyCode:M1=z9()?"Meta":"Control",zoomActivationKeyCode:G1=z9()?"Meta":"Control",snapToGrid:B1,snapGrid:I1,onlyRenderVisibleElements:C1=!1,selectNodesOnDrag:K1,nodesDraggable:u1,autoPanOnNodeFocus:N1,nodesConnectable:Q0,nodesFocusable:b1,nodeOrigin:a0=UR,edgesFocusable:q2,edgesReconnectable:O0,elementsSelectable:D2=!0,defaultViewport:u2=yS,minZoom:P2=0.5,maxZoom:N2=2,translateExtent:C2=K9,preventScrolling:C3=!0,nodeExtent:x5,defaultMarkerColor:g4="#b1b1b7",zoomOnScroll:p4=!0,zoomOnPinch:c4=!0,panOnScroll:y6=!1,panOnScrollSpeed:q4=0.5,panOnScrollMode:j=O3.Free,zoomOnDoubleClick:$1=!0,panOnDrag:P1=!0,onPaneClick:S1,onPaneMouseEnter:y1,onPaneMouseMove:l1,onPaneMouseLeave:d1,onPaneScroll:K0,onPaneContextMenu:E1,paneClickDistance:H2=1,nodeClickDistance:b2=0,children:U4,onReconnect:k6,onReconnectStart:pJ,onReconnectEnd:i8,onEdgeContextMenu:r8,onEdgeDoubleClick:m5,onEdgeMouseEnter:s2,onEdgeMouseMove:cJ,onEdgeMouseLeave:zU,reconnectRadius:R9=10,onNodesChange:lJ,onEdgesChange:a8,noDragClassName:t2="nodrag",noWheelClassName:dJ="nowheel",noPanClassName:s8="nopan",fitView:O9,fitViewOptions:t8,connectOnClick:iJ,attributionPosition:rJ,proOptions:f3,defaultEdgeOptions:aJ,elevateNodesOnSelect:sJ=!0,elevateEdgesOnSelect:tJ=!1,disableKeyboardA11y:I9=!1,autoPanOnConnect:oJ,autoPanOnNodeDrag:E2,autoPanOnSelection:S3=!0,autoPanSpeed:l4,connectionRadius:nJ,isValidConnection:D6,onError:o8,style:w9,id:j3,nodeDragThreshold:v3,connectionDragThreshold:P9,viewport:WU,onViewportChange:BU,width:eJ,height:N9,colorMode:C9="light",debug:_$,onScroll:f9,ariaLabelConfig:J$,zIndexMode:$$="basic",...Q$},S9){let V3=j3||"1",u6=bS(C9),LU=z1.useCallback((j9)=>{j9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),f9?.(j9)},[f9]);return Y1.jsx("div",{"data-testid":"rf__wrapper",...Q$,onScroll:LU,style:{...w9,...Gv},ref:S9,className:m0(["react-flow",H,u6]),id:j3,role:"application",children:Y1.jsxs(Uv,{nodes:Q,edges:U,width:eJ,height:N9,fitView:O9,fitViewOptions:t8,minZoom:P2,maxZoom:N2,nodeOrigin:a0,nodeExtent:x5,zIndexMode:$$,children:[Y1.jsx(uS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,nodesDraggable:u1,autoPanOnNodeFocus:N1,nodesConnectable:Q0,nodesFocusable:b1,edgesFocusable:q2,edgesReconnectable:O0,elementsSelectable:D2,elevateNodesOnSelect:sJ,elevateEdgesOnSelect:tJ,minZoom:P2,maxZoom:N2,nodeExtent:x5,onNodesChange:lJ,onEdgesChange:a8,snapToGrid:B1,snapGrid:I1,connectionMode:p,translateExtent:C2,connectOnClick:iJ,defaultEdgeOptions:aJ,fitView:O9,fitViewOptions:t8,onNodesDelete:m,onEdgesDelete:e,onDelete:Q1,onNodeDragStart:k,onNodeDrag:b,onNodeDragStop:E,onSelectionDrag:g,onSelectionDragStart:x,onSelectionDragStop:c,onMove:M,onMoveStart:A,onMoveEnd:O,noPanClassName:s8,nodeOrigin:a0,rfId:V3,autoPanOnConnect:oJ,autoPanOnNodeDrag:E2,autoPanSpeed:l4,onError:o8,connectionRadius:nJ,isValidConnection:D6,selectNodesOnDrag:K1,nodeDragThreshold:v3,connectionDragThreshold:P9,onBeforeDelete:y,debug:_$,ariaLabelConfig:J$,zIndexMode:$$}),Y1.jsx($v,{onInit:R,onNodeClick:B,onEdgeClick:T,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:u,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:W,connectionLineType:q1,connectionLineStyle:s,connectionLineComponent:W1,connectionLineContainerStyle:R1,selectionKeyCode:A1,selectionOnDrag:U1,selectionMode:w1,deleteKeyCode:T1,multiSelectionKeyCode:M1,panActivationKeyCode:v1,zoomActivationKeyCode:G1,onlyRenderVisibleElements:C1,defaultViewport:u2,translateExtent:C2,minZoom:P2,maxZoom:N2,preventScrolling:C3,zoomOnScroll:p4,zoomOnPinch:c4,zoomOnDoubleClick:$1,panOnScroll:y6,panOnScrollSpeed:q4,panOnScrollMode:j,panOnDrag:P1,autoPanOnSelection:S3,onPaneClick:S1,onPaneMouseEnter:y1,onPaneMouseMove:l1,onPaneMouseLeave:d1,onPaneScroll:K0,onPaneContextMenu:E1,paneClickDistance:H2,nodeClickDistance:b2,onSelectionContextMenu:a,onSelectionStart:d,onSelectionEnd:t,onReconnect:k6,onReconnectStart:pJ,onReconnectEnd:i8,onEdgeContextMenu:r8,onEdgeDoubleClick:m5,onEdgeMouseEnter:s2,onEdgeMouseMove:cJ,onEdgeMouseLeave:zU,reconnectRadius:R9,defaultMarkerColor:g4,noDragClassName:t2,noWheelClassName:dJ,noPanClassName:s8,rfId:V3,disableKeyboardA11y:I9,nodeExtent:x5,viewport:WU,onViewportChange:BU,nodesDraggable:u1}),Y1.jsx(VS,{onSelectionChange:J1}),U4,Y1.jsx(CS,{proOptions:f3,position:rJ}),Y1.jsx(NS,{rfId:V3,disableKeyboardA11y:I9})]})})}var kR=FR(Zv);function DR(Q){let[U,Z]=z1.useState(Q),X=z1.useCallback((H)=>Z((Y)=>ZR(H,Y)),[]);return[U,Z,X]}var fg=a2.error014();function Fv({dimensions:Q,lineWidth:U,variant:Z,className:X}){return Y1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:m0(["react-flow__background-pattern",Z,X])})}function Kv({radius:Q,className:U}){return Y1.jsx("circle",{cx:Q,cy:Q,r:Q,className:m0(["react-flow__background-pattern","dots",U])})}var m4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(m4||(m4={}));var Xv={[m4.Dots]:1,[m4.Lines]:1,[m4.Cross]:6},Hv=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function uR({id:Q,variant:U=m4.Dots,gap:Z=20,size:X,lineWidth:H=1,offset:Y=0,color:W,bgColor:B,style:T,className:R,patternClassName:M}){let A=z1.useRef(null),{transform:O,patternId:w}=X0(Hv,k0),P=X||Xv[U],V=U===m4.Dots,S=U===m4.Cross,C=Array.isArray(Z)?Z:[Z,Z],D=[C[0]*O[2]||1,C[1]*O[2]||1],N=P*O[2],v=Array.isArray(Y)?Y:[Y,Y],u=S?[N,N]:D,h=[v[0]*O[2]+u[0]/2,v[1]*O[2]+u[1]/2],k=`${w}${Q?Q:""}`;return Y1.jsxs("svg",{className:m0(["react-flow__background",R]),style:{...T,...qU,"--xy-background-color-props":B,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[Y1.jsx("pattern",{id:k,x:O[0]%D[0],y:O[1]%D[1],width:D[0],height:D[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:V?Y1.jsx(Kv,{radius:N/2,className:M}):Y1.jsx(Fv,{dimensions:u,lineWidth:H,variant:U,className:M})}),Y1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${k})`})]})}uR.displayName="Background";var bR=z1.memo(uR);function Yv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:Y1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function zv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:Y1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Wv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:Y1.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Bv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Y1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Lv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Y1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function _U({children:Q,className:U,...Z}){return Y1.jsx("button",{type:"button",className:m0(["react-flow__controls-button",U]),...Z,children:Q})}var Av=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function ER({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:X=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:B,onInteractiveChange:T,className:R,children:M,position:A="bottom-left",orientation:O="vertical","aria-label":w}){let P=D0(),{isInteractive:V,minZoomReached:S,maxZoomReached:C,ariaLabelConfig:D}=X0(Av,k0),{zoomIn:N,zoomOut:v,fitView:u}=bJ(),h=()=>{N(),Y?.()},k=()=>{v(),W?.()},b=()=>{u(H),B?.()},E=()=>{P.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),T?.(!V)};return Y1.jsxs(x8,{className:m0(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":w??D["controls.ariaLabel"],children:[U&&Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(_U,{onClick:h,className:"react-flow__controls-zoomin",title:D["controls.zoomIn.ariaLabel"],"aria-label":D["controls.zoomIn.ariaLabel"],disabled:C,children:Y1.jsx(Yv,{})}),Y1.jsx(_U,{onClick:k,className:"react-flow__controls-zoomout",title:D["controls.zoomOut.ariaLabel"],"aria-label":D["controls.zoomOut.ariaLabel"],disabled:S,children:Y1.jsx(zv,{})})]}),Z&&Y1.jsx(_U,{className:"react-flow__controls-fitview",onClick:b,title:D["controls.fitView.ariaLabel"],"aria-label":D["controls.fitView.ariaLabel"],children:Y1.jsx(Wv,{})}),X&&Y1.jsx(_U,{className:"react-flow__controls-interactive",onClick:E,title:D["controls.interactive.ariaLabel"],"aria-label":D["controls.interactive.ariaLabel"],children:V?Y1.jsx(Lv,{}):Y1.jsx(Bv,{})}),M]})}ER.displayName="Controls";var hR=z1.memo(ER);function Mv({id:Q,x:U,y:Z,width:X,height:H,style:Y,color:W,strokeColor:B,strokeWidth:T,className:R,borderRadius:M,shapeRendering:A,selected:O,onClick:w}){let{background:P,backgroundColor:V}=Y||{},S=W||P||V;return Y1.jsx("rect",{className:m0(["react-flow__minimap-node",{selected:O},R]),x:U,y:Z,rx:M,ry:M,width:X,height:H,style:{fill:S,stroke:B,strokeWidth:T},shapeRendering:A,onClick:w?(C)=>w(C,Q):void 0})}var Tv=z1.memo(Mv),Rv=(Q)=>Q.nodes.map((U)=>U.id),aX=(Q)=>Q instanceof Function?Q:()=>Q;function Ov({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:X=5,nodeStrokeWidth:H,nodeComponent:Y=Tv,onClick:W}){let B=X0(Rv,k0),T=aX(U),R=aX(Q),M=aX(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return Y1.jsx(Y1.Fragment,{children:B.map((O)=>Y1.jsx(wv,{id:O,nodeColorFunc:T,nodeStrokeColorFunc:R,nodeClassNameFunc:M,nodeBorderRadius:X,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},O))})}function Iv({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:X,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:B,onClick:T}){let{node:R,x:M,y:A,width:O,height:w}=X0((P)=>{let V=P.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let S=V.internals.userNode,{x:C,y:D}=V.internals.positionAbsolute,{width:N,height:v}=E5(S);return{node:S,x:C,y:D,width:N,height:v}},k0);if(!R||R.hidden||!kX(R))return null;return Y1.jsx(B,{x:M,y:A,width:O,height:w,style:R.style,selected:!!R.selected,className:X(R),color:U(R),borderRadius:H,strokeColor:Z(R),strokeWidth:Y,shapeRendering:W,onClick:T,id:R.id})}var wv=z1.memo(Iv),Pv=z1.memo(Ov),Nv=200,Cv=150,fv=(Q)=>!Q.hidden,Sv=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let X of Q.nodeLookup.values())if(!X.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?vX(E8(Q.nodeLookup,{filter:fv}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},_R=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,jv=(Q,U)=>_R(Q.viewBB,U.viewBB)&&_R(Q.boundingRect,U.boundingRect)&&Q.rfId===U.rfId&&Q.panZoom===U.panZoom&&Q.translateExtent===U.translateExtent&&Q.flowWidth===U.flowWidth&&Q.flowHeight===U.flowHeight&&Q.ariaLabelConfig===U.ariaLabelConfig,vv="react-flow__minimap-desc";function xR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:X,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:B,bgColor:T,maskColor:R,maskStrokeColor:M,maskStrokeWidth:A,position:O="bottom-right",onClick:w,onNodeClick:P,pannable:V=!1,zoomable:S=!1,ariaLabel:C,inversePan:D,zoomStep:N=1,offsetScale:v=5}){let u=D0(),h=z1.useRef(null),{boundingRect:k,panZoom:b,viewBB:E,rfId:m,translateExtent:e,flowWidth:Q1,flowHeight:J1,ariaLabelConfig:x}=X0(Sv,jv),g=Q?.width??Nv,c=Q?.height??Cv,a=k.width/g,d=k.height/c,t=Math.max(a,d),y=t*g,p=t*c,q1=v*t,s=k.x-(y-k.width)/2-q1,W1=k.y-(p-k.height)/2-q1,R1=y+q1*2,T1=p+q1*2,A1=`${vv}-${m}`,U1=z1.useRef(0),w1=z1.useRef();U1.current=t,z1.useEffect(()=>{let I1=u.getState().panZoom;if(h.current&&I1)return w1.current=BT({domNode:h.current,panZoom:I1,getTransform:()=>u.getState().transform,getViewScale:()=>U1.current}),()=>{w1.current?.destroy()}},[b]),z1.useEffect(()=>{w1.current?.update({translateExtent:e,width:Q1,height:J1,inversePan:D,pannable:V,zoomStep:N,zoomable:S})},[V,S,D,N,e,Q1,J1]);let v1=w?(I1)=>{let[C1,K1]=w1.current?.pointer(I1)||[0,0];w(I1,{x:C1,y:K1})}:void 0,M1=z1.useCallback((I1,C1)=>{let K1=u.getState().nodeLookup.get(C1).internals.userNode;P?.(I1,K1)},[P]),G1=P?M1:void 0,B1=C??x["minimap.ariaLabel"];return Y1.jsx(x8,{position:O,style:{...Q,"--xy-minimap-background-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-background-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-stroke-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*t:void 0,"--xy-minimap-node-background-color-props":typeof X==="string"?X:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof W==="number"?W:void 0},className:m0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:Y1.jsxs("svg",{width:g,height:c,viewBox:`${s} ${W1} ${R1} ${T1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":A1,ref:h,onClick:v1,children:[B1&&Y1.jsx("title",{id:A1,children:B1}),Y1.jsx(Pv,{onClick:G1,nodeColor:X,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:B}),Y1.jsx("path",{className:"react-flow__minimap-mask",d:`M${s-q1},${W1-q1}h${R1+q1*2}v${T1+q1*2}h${-R1-q1*2}z
247
- M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}xR.displayName="MiniMap";var mR=z1.memo(xR),Vv=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,yv={[C6.Line]:"right",[C6.Handle]:"bottom-right"};function kv({nodeId:Q,position:U,variant:Z=C6.Handle,className:X,style:H=void 0,children:Y,color:W,minWidth:B=10,minHeight:T=10,maxWidth:R=Number.MAX_VALUE,maxHeight:M=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:O,autoScale:w=!0,shouldResize:P,onResizeStart:V,onResize:S,onResizeEnd:C}){let D=oX(),N=typeof Q==="string"?Q:D,v=D0(),u=z1.useRef(null),h=Z===C6.Handle,k=X0(z1.useCallback(Vv(h&&w),[h,w]),k0),b=z1.useRef(null),E=U??yv[Z];z1.useEffect(()=>{if(!u.current||!N)return;if(!b.current)b.current=RT({domNode:u.current,nodeId:N,getStoreItems:()=>{let{nodeLookup:e,transform:Q1,snapGrid:J1,snapToGrid:x,nodeOrigin:g,domNode:c}=v.getState();return{nodeLookup:e,transform:Q1,snapGrid:J1,snapToGrid:x,nodeOrigin:g,paneDomNode:c}},onChange:(e,Q1)=>{let{triggerNodeChanges:J1,nodeLookup:x,parentLookup:g,nodeOrigin:c}=v.getState(),a=[],d={x:e.x,y:e.y},t=x.get(N);if(t&&t.expandParent&&t.parentId){let y=t.origin??c,p=e.width??t.measured.width??0,q1=e.height??t.measured.height??0,s={id:t.id,parentId:t.parentId,rect:{width:p,height:q1,...DX({x:e.x??t.position.x,y:e.y??t.position.y},{width:p,height:q1},t.parentId,x,y)}},W1=tq([s],x,g,c);a.push(...W1),d.x=e.x?Math.max(y[0]*p,e.x):void 0,d.y=e.y?Math.max(y[1]*q1,e.y):void 0}if(d.x!==void 0&&d.y!==void 0){let y={id:N,type:"position",position:{...d}};a.push(y)}if(e.width!==void 0&&e.height!==void 0){let p={id:N,type:"dimensions",resizing:!0,setAttributes:!O?!0:O==="horizontal"?"width":"height",dimensions:{width:e.width,height:e.height}};a.push(p)}for(let y of Q1){let p={...y,type:"position"};a.push(p)}J1(a)},onEnd:({width:e,height:Q1})=>{let J1={id:N,type:"dimensions",resizing:!1,dimensions:{width:e,height:Q1}};v.getState().triggerNodeChanges([J1])}});return b.current.update({controlPosition:E,boundaries:{minWidth:B,minHeight:T,maxWidth:R,maxHeight:M},keepAspectRatio:A,resizeDirection:O,onResizeStart:V,onResize:S,onResizeEnd:C,shouldResize:P}),()=>{b.current?.destroy()}},[E,B,T,R,M,A,V,S,C,P]);let m=E.split("-");return Y1.jsx("div",{className:m0(["react-flow__resize-control","nodrag",...m,Z,X]),ref:u,style:{...H,scale:k,...W&&{[h?"backgroundColor":"borderColor"]:W}},children:Y})}var Sg=z1.memo(kv);var Dv=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function uv({children:Q}){let U=X0(Dv);if(!U)return null;return JR.createPortal(Q,U)}var bv=(Q,U)=>Q?.internals.positionAbsolute.x!==U?.internals.positionAbsolute.x||Q?.internals.positionAbsolute.y!==U?.internals.positionAbsolute.y||Q?.measured.width!==U?.measured.width||Q?.measured.height!==U?.measured.height||Q?.selected!==U?.selected||Q?.internals.z!==U?.internals.z,Ev=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,X]of Q)if(bv(X,U.get(Z)))return!1;return!0},hv=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function gR({nodeId:Q,children:U,className:Z,style:X,isVisible:H,position:Y=D1.Top,offset:W=10,align:B="center",...T}){let R=oX(),M=z1.useCallback((u)=>{return(Array.isArray(Q)?Q:[Q||R||""]).reduce((b,E)=>{let m=u.nodeLookup.get(E);if(m)b.set(m.id,m);return b},new Map)},[Q,R]),A=X0(M,Ev),{x:O,y:w,zoom:P,selectedNodesCount:V}=X0(hv,k0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let C=E8(A),D=Array.from(A.values()),N=Math.max(...D.map((u)=>u.internals.z+1)),v={position:"absolute",transform:QT(C,{x:O,y:w,zoom:P},Y,W,B),zIndex:N,...X};return Y1.jsx(uv,{children:Y1.jsx("div",{style:v,className:m0(["react-flow__node-toolbar",Z]),...T,"data-id":D.reduce((u,h)=>`${u}${h.id} `,"").trim(),children:U})})}function GU(Q={}){let U=(X,H)=>Q.tools?`${H} (\`${X}\`)`:`\`${X}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let X=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${X} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
- `)}var pR={"git-commit-horizontal":[["rect",{x:"9",y:"9",width:"6",height:"6"}],["path",{d:"M3 12h6M15 12h6"}]],"arrow-down-to-line":[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],"arrow-up-from-line":[["path",{d:"m18 9-6-6-6 6"}],["path",{d:"M12 3v14"}],["path",{d:"M5 21h14"}]],"git-branch":[["rect",{x:"4",y:"3",width:"4",height:"4"}],["rect",{x:"4",y:"17",width:"4",height:"4"}],["rect",{x:"16",y:"5",width:"4",height:"4"}],["path",{d:"M6 7v10M18 9v2a4 4 0 0 1-4 4H6"}]],monitor:[["rect",{x:"3",y:"4",width:"18",height:"13"}],["path",{d:"M8 21h8M12 17v4"}]],vault:[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"6.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 7.9 2.7 2.7"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 10.6 2.7-2.7"}],["rect",{x:"6.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 16.1 2.7-2.7"}],["rect",{x:"15.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 13.4 2.7 2.7"}],["circle",{cx:"12",cy:"12",r:"2"}]],settings:[["circle",{cx:"12",cy:"12",r:"3"}],["circle",{cx:"12",cy:"12",r:"7"}],["path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"}]],history:[["path",{d:"M3 12a9 9 0 1 0 3-6.7"}],["path",{d:"M3 4v5h5"}],["path",{d:"M12 7v5l3 3"}]],activity:[["path",{d:"M2 12h4l3-8 6 16 3-8h4"}]],"file-diff":[["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"}],["path",{d:"M9 10h6"}],["path",{d:"M12 13V7"}],["path",{d:"M9 17h6"}]],"square-plus":[["rect",{x:"4",y:"4",width:"16",height:"16"}],["path",{d:"M12 8v8M8 12h8"}]],"square-minus":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["path",{d:"M8 12h8"}]],"square-dot":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"10.8",y:"10.8",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],cloud:[["path",{d:"M7 19a5 5 0 0 1-.5-10A6 6 0 0 1 18 8a4.5 4.5 0 0 1 .5 11z"}]],"refresh-cw":[["path",{d:"M20 12a8 8 0 0 1-14.3 4.9M4 12a8 8 0 0 1 14.3-4.9"}],["path",{d:"M19 3v5h-5M5 21v-5h5"}]],clock:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M12 7v5l3 3"}]],"key-round":[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],plug:[["path",{d:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0zM12 18v3"}]],"list-checks":[["path",{d:"M11 6h9M11 12h9M11 18h9"}],["path",{d:"M3 6l1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17"}]],palette:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}],["rect",{x:"12.3",y:"5.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"16.3",y:"9.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"5.3",y:"11.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"7.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],check:[["path",{d:"M4 12l5 5L20 6"}]],plus:[["path",{d:"M12 4v16M4 12h16"}]],"chevron-down":[["path",{d:"M5 9l7 7 7-7"}]],"external-link":[["path",{d:"M14 4h6v6M20 4l-9 9"}],["path",{d:"M18 14v6H4V6h6"}]],"table-2":[["path",{d:"M3 9h18"}],["path",{d:"M9 3v18"}],["rect",{x:"3",y:"3",width:"18",height:"18"}]],"scroll-text":[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]],"layout-grid":[["rect",{x:"4",y:"4",width:"7",height:"7"}],["rect",{x:"13",y:"4",width:"7",height:"7"}],["rect",{x:"4",y:"13",width:"7",height:"7"}],["rect",{x:"13",y:"13",width:"7",height:"7"}]],globe:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"}]],"arrow-left":[["path",{d:"M20 12H5M11 6l-6 6 6 6"}]],link:[["path",{d:"M9 15l6-6"}],["path",{d:"M11 6l2-2a4.2 4.2 0 0 1 6 6l-2 2M13 18l-2 2a4.2 4.2 0 0 1-6-6l2-2"}]],user:[["circle",{cx:"12",cy:"8",r:"4"}],["path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"}]],"log-out":[["path",{d:"M10 4H4v16h6M9 12h11M16 8l4 4-4 4"}]]};var F=E0(O8(),1),FU="volter.console.token",l8=document.getElementById("root"),a1=l8.dataset.base??"/-/console",z0=window.location.origin,j6=(l8.dataset.worlds??z0).replace(/\/+$/,""),oR=(l8.dataset.names??"").split(",").filter((Q)=>Q!==""),f6=l8.dataset.worldOrigin==="1",c8=window.fetch.bind(window),S6="(session)",nR="(pass)",hJ=(Q)=>{try{if(Q&&!f6)sessionStorage.setItem(FU,Q);else sessionStorage.removeItem(FU);localStorage.removeItem(FU)}catch{}},eR="volter.console.portal",_O=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(eR,new URL(Q).origin)}catch{}},xv=()=>{return d8.get("token")??""},k2=()=>{try{let Q=sessionStorage.getItem(eR)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},mv=()=>{let Q=xv();if(f6){if(hJ(""),d8.get("pass"))return nR;let U=new URLSearchParams(window.location.search).has("signin");if(U)try{window.history.replaceState(null,"",window.location.pathname+window.location.hash)}catch{}return Q||(U?"":S6)}if(Q)return hJ(Q),Q;try{return sessionStorage.getItem(FU)??""}catch{return""}};function Q2(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],W=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),W.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),W.push("approve");return{text:`Not ready to deploy: ${I8(Y)}.`,acts:W}}let Z=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(Z)return{text:`No credential is sealed for ${c1(Z[1])}: seal one in Settings › Vault.`,acts:["vault"]};if(/has no origin/i.test(U))return{text:"This World has no remote: name one in Settings › Remote.",acts:["remote"]};let X=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(X){let Y=X[1].split(/,\s*/).filter(Boolean).map(c1);return{text:`${I8(Y)} ${Y.length===1?"is":"are"} not connected to ${Y.length===1?"its":"their"} real service: Settings › Real services.`,acts:["settings"]}}if(/opening a seal is/i.test(U))return{text:"A key cannot seal a credential: open the World as yourself.",acts:[]};if(/a key manages no keys/i.test(U))return{text:"A key cannot manage keys: open the World as yourself.",acts:[]};if(/^PUT origin:/i.test(U))return{text:"That is not a World's address: https://<host>/<org>/<world>",acts:[]};if(/^clock: \{/i.test(U))return{text:"Pick a date and time.",acts:[]};if(/^advance: \{/i.test(U))return{text:"Advance by a number and a unit: 90m, 12h, 3d.",acts:[]};if(/^branches: \{/i.test(U))return{text:"That branch could not be made: pick now, or an instant before it.",acts:[]};if(/^approve: \{/i.test(U))return{text:"Name who approves.",acts:[]};if(/a browser deploys only what it names/i.test(U))return{text:"A deploy is confirmed by its name: use Deploy again.",acts:[]};if(/^no such door/i.test(U))return{text:"This World does not answer that here.",acts:[]};return{text:U.replace(/\s*[—–-]+\s*(?:run\s+)?`[^`]*`/g,"").replace(/\s*[—–-]+\s*(?:PUT|POST|GET|DELETE)\s+\/-\/\S+(?:\s*\{[^}]*\})?/g,"").replace(/\s*\(\s*`[^`]*`\s*\)/g,"").replace(/`(?:volter|printf|curl|npm|bun)[^`]*`/g,"").replace(/:\s*\{[^}]*\}/g,"").replace(/\(\s*\)/g,"").replace(/\s*;\s*(?=[;.]|$)/g,"").replace(/\s+([,.;:])/g,"$1").trim()||Q,acts:[]}}var h5=async(Q)=>Q2(await L3(Q)).text,gv={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function JO({name:Q,acts:U}){let Z=U.map((X)=>gv[X]).filter((X)=>Boolean(X));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([X,H])=>F.jsxDEV(X1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${a1}/${Q}/~/${X}`,onClick:(Y)=>{Y.preventDefault(),A0([...Q.split("/"),"~",...X.split("/")])},children:H},void 0,!1,void 0,this)]},X,!0,void 0,this))},void 0,!1,void 0,this)}async function W0(Q,U,Z={}){return c8(`${z0}${U}`,{...Z,headers:{...Z.headers??{},...Q===S6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function f0(Q,U,Z=0){let X=hA((H)=>W0(Q,H),U,Z,Q);return X.state==="error"?{...X,error:Q2(X.error).text}:X}var T9=(Q)=>{let U=new Date(Q),Z=(X)=>String(X).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},cR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),$O=(Q)=>Q.operation==="observed"?`observed${Q.provenance==="placeholder"?" (default data)":" (vendor)"}`:Q.receipt?`${Q.receipt.status??""} ${Q.receipt.externalId??""} ${Q.receipt.reason??""}`.trim():Q.provenance==="placeholder"?"default data":"unpushed",pv=(Q)=>{let U=/^[0-9a-f]{2}-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/.exec(Q??"");return U?{trace:U[1],span:U[2]}:null},QH="volter.console.snapshots",P3=()=>{try{return JSON.parse(sessionStorage.getItem(QH)??"{}")}catch{return{}}},QO=new Map,qH=(Q)=>{if(f6){if(Q.token||Q.readToken)QO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(QH,JSON.stringify({...P3(),[Q.name]:Q}))}catch{}},UH=(Q)=>QO.get(Q)?.readToken||P3()[Q]?.readToken||"",KU=(Q)=>{try{let U=P3();delete U[Q],sessionStorage.setItem(QH,JSON.stringify(U))}catch{}},d8=new URLSearchParams(window.location.hash.slice(1)),B9=d8.get("close")??"";function mJ(Q){if(typeof Q!=="string")return null;let U;try{U=new URL(Q)}catch{return null}return(U.protocol==="http:"||U.protocol==="https:")&&U.origin===Q.replace(/\/+$/,"")?U:null}function GH(Q){let U=mJ(Q);if(!U)return null;let Z=new URL(z0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let X=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!X.test(U.hostname))return null;let H=U.hostname.replace(X,"");return H===Z.hostname||X.test(Z.hostname)&&H===Z.hostname.replace(X,"")?U.origin:null}function cv(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let X=U.parentOrigin===void 0?void 0:GH(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...X?{parentOrigin:X}:{}}}{let Q=d8.get("snapshot");if(Q){let U=cv(Q);if(U&&!P3()[U.name])qH(U)}}var qO="volter.console.home",UO=(Q)=>{let U=mJ(Q);if(!U)return null;let Z=new URL(z0).hostname,X=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===X?U.origin:null};{let Q=UO(d8.get("home"));if(Q)try{sessionStorage.setItem(qO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>d8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var $4=()=>{try{return UO(sessionStorage.getItem(qO))??""}catch{return""}};function ZH(Q,U,Z,X){let H=new URLSearchParams({token:U,home:$4()||z0}),Y=P3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${X??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var $H=l8.dataset.route==="memory"?"":null;function g8(){return($H??window.location.pathname.slice(a1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var lR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,w3=(Q,U)=>Q&&U&&lR.test(Q)&&lR.test(U)?`${Q}/${U}`:"";function A0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if($H!==null)$H=U;else window.history.pushState(null,"",`${a1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function GO(Q,U){let Z=GH(P3()[Q]?.origin);if(Z&&Z!==z0){ZH(Z,UH(Q),Q,`${a1}/${U.map(encodeURIComponent).join("/")}`);return}A0(U)}async function dR(){let[Q,U]=g8(),Z=w3(Q,U),X=Z?[Z]:oR;if(X.length===0){let H=await c8(`${z0}/-/ping`).catch(()=>null);X=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}X=X.filter((H)=>{let[Y,W,...B]=H.split("/");return B.length===0&&w3(Y,W)===H});for(let H of X){let Y=await c8(`${z0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),B=mJ(W.origin)?.origin;if(Y.status===409&&B&&B!==z0)return window.location.replace(`${B}${a1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:S6}}return null}function lv(){let[Q,U]=X1.useState(sF),Z=(X)=>()=>{try{if(X==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",X)}catch{}Wq(X),U(X)};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Appearance",children:["system","light","dark"].map((X)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===X,onClick:Z(X),children:X==="system"?"System":X==="light"?"Light":"Dark"},X,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function dv(){let[Q,U]=X1.useState(mv()),[Z,X]=X1.useState(!1),[H,Y]=X1.useState(!1),[W,B]=X1.useState(""),[T,R]=X1.useState(null),[M,A]=X1.useState(null),[O,w]=X1.useState(g8());X1.useEffect(()=>{let p=()=>w(g8());return window.addEventListener("popstate",p),()=>window.removeEventListener("popstate",p)},[]),X1.useEffect(()=>{let[p,q1]=g8(),s=w3(p,q1),[W1,R1]=s?s.split("/"):[],T1=P3()[B9];if(!B9||!Q||!W1||!R1||!T1?.made||T1.parent!==`${W1}/${R1}`||w3(...B9.split("/"))!==B9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}W0(Q,`/-/${W1}/${R1}/branches/${B9}`,{method:"DELETE"}).catch(()=>null).then(()=>KU(B9))},[Q]);let P=X1.useCallback(async(p)=>{if(A(null),!p){let R1=await dR();if(R1==="moved")return;if(R1){if(X(!0),R1.token!==S6)hJ(R1.token);U(R1.token);return}R(null),Y(!0);return}if(f6&&p===S6){let R1=await dR();if(R1==="moved")return;if(R1)X(!0)}if(f6&&p===nR){let[R1,T1]=g8(),A1=w3(R1,T1),[U1,w1]=A1?A1.split("/"):[],v1=U1&&w1?await c8(`${z0}/-/${U1}/${w1}/session`,{method:"POST",headers:{"x-volter-pass":d8.get("pass")??""}}).catch(()=>null):null;if(!v1){A(`${z0} did not answer: no session was opened`),R(null);return}if(!v1.ok){A(`${await h5(v1)}. Open it again from the platform.`),R(null);return}_O((await v1.json().catch(()=>({}))).issuer),U(S6);return}if(f6&&p!==S6){let[R1,T1]=g8(),A1=w3(R1,T1),[U1,w1]=A1?A1.split("/"):[],v1=U1&&w1?await c8(`${z0}/-/${U1}/${w1}/session`,{method:"POST",headers:{"x-volter-token":p}}).catch(()=>null):null;if(!v1){A(`${z0} did not answer: no session was opened`),R(null);return}if(!v1.ok){let M1=await h5(v1);A(v1.status===401||v1.status===403?`That token does not open ${U1}/${w1}.`:v1.status===409?`${U1}/${w1}'s session lives at another origin: ${M1}`:`The World could not open a session (${v1.status}): ${M1}`),R(null);return}U(S6);return}let q1=f6?new Response(null,{status:404}):await W0(p,"/-/worlds");if(q1.ok){let{worlds:R1}=await q1.json();R({kind:"admin",worlds:R1});return}if(q1.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),R(null);return}if(q1.status>=500){let R1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${R1.error?`: ${R1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),R(null);return}let s=oR;if(s.length===0){let R1=await c8(`${z0}/-/ping`);if(!R1.ok){A(`${z0} does not answer as a host`),R(null);return}if(s=(await R1.json()).worlds??[],s.length===0){A(`${z0} does not list its Worlds: open a World at its own address, ${z0}${a1}/<org>/<world>`),R(null);return}}let W1=[];for(let R1 of s){let T1=await W0(p,`/-/${R1}/twins`);if(T1.ok){let A1=await T1.json();W1.push({name:R1,base:`${j6}/${R1}`,twins:(A1.twins??[]).map((U1)=>({vendor:U1.twin,protocol:U1.protocol??null,root:U1.root??null}))})}}if(W1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),R(null);return}R({kind:"world",worlds:W1})},[]);X1.useEffect(()=>{P(Q)},[Q,P]);let V=(p)=>T?.kind==="admin"?T.worlds.find((q1)=>q1.name===p)?.token??Q:Q,[S,C]=X1.useState("");if(!Q||!T&&!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(QJ,{href:`${a1}/`},void 0,!1,void 0,this),Q&&!T&&!M||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(p)=>{p.preventDefault(),hJ(W.trim()),U(W.trim())},className:"stack",children:[F.jsxDEV("h2",{children:"Open a World"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"A World's token opens that World. A host's admin token opens every World it serves."},void 0,!1,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Token"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"token",type:"password",value:W,onChange:(p)=>B(p.target.value),autoFocus:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let D=()=>{if(Z){window.location.reload();return}if(f6){let[p,q1]=g8(),s=w3(p,q1),[W1,R1]=s?s.split("/"):[],T1=()=>window.location.replace(k2()?`${k2()}/`:`${z0}${a1}/${W1&&R1?`${W1}/${R1}`:""}?signin`);if(setTimeout(T1,2000),W1&&R1)c8(`${z0}/-/${W1}/${R1}/session/end`,{method:"POST"}).catch(()=>null).then(T1);else T1();return}if(T)for(let p of T.worlds)navigator.sendBeacon(`${p.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${p.name}/session/end`);hJ(""),U(""),B(""),R(null),A0([])};if(M||!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(QJ,{href:`${a1}/`},void 0,!1,void 0,this),F.jsxDEV("h2",{children:"Could not open it"},void 0,!1,void 0,this),F.jsxDEV("p",{role:"alert",children:M??"nothing answered"},void 0,!1,void 0,this),k2()?F.jsxDEV("a",{className:"button primary",href:`${k2()}/`,children:["Back to ",new URL(k2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:D,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let[N,v,u,h,k,b,E]=O,m=u==="~",e=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,J1=m||!u||!e.test(u)?void 0:u,x=k&&e.test(k)?b!==void 0&&h!=="changes"&&h!=="screens"?w3(k,b)||void 0:k:void 0,g=h==="changes"&&k==="changesets"&&b&&e.test(b)?b:h==="screens"&&b&&E&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(E)?`${b}:${E}`:void 0,c=w3(N,v),a=c?P3()[c]??null:null,d=(p)=>UH(p)||V(p),t=a?T.kind==="admin"?T.worlds.find((p)=>p.name===a.parent)?.token??null:T.worlds.some((p)=>p.name===a.parent)?Q:null:null,y=async(p)=>{let q1=GH(p.parentOrigin);if(q1&&q1!==z0){KU(p.name),window.location.assign(`${q1}${a1}/${p.parent}#close=${encodeURIComponent(p.name)}`);return}if(p.made)await W0(V(p.parent),`/-/${p.parent}/branches/${p.name}`,{method:"DELETE"}).catch(()=>null),KU(p.name);A0(p.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(cA,{},void 0,!1,void 0,this):null,F.jsxDEV(QJ,{href:`${$4()&&$4()!==z0?$4():""}${a1}/`,onClick:(p)=>{if($4()&&$4()!==z0)return;p.preventDefault(),A0([])}},void 0,!1,void 0,this),F.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[c?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("span",{children:c.split("/")[0]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${c}`,className:"crumb-world",onClick:(p)=>{p.preventDefault(),A0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1?F.jsxDEV("span",{children:[" / ",J1]},void 0,!0,void 0,this):null,m&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k2()?F.jsxDEV("a",{href:`${k2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(k2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(k2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?null:F.jsxDEV("span",{className:"mode",children:Z?"on this machine":S?`signed in as ${S}`:T.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:D,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(sv,{name:c,token:d(c),twin:J1,tab:m?h??"overview":"overview",arg:m?x:void 0,...m&&g?{sub:g}:{},admin:a?null:T.kind==="admin"?Q:null,snapshot:a,parentToken:t,who:{local:Z,person:S||null,admin:T.kind==="admin"},onSignOut:D,onReturn:y,opens:(p)=>!!P3()[p]||T.kind==="admin"&&T.worlds.some((q1)=>q1.name===p),onRemoved:()=>{P(Q),A0([])},onWho:C,worlds:T.worlds.map((p)=>p.name)},c,!1,void 0,this):F.jsxDEV(iv,{mode:T,admin:T.kind==="admin"?Q:null,reload:()=>P(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iv({mode:Q,admin:U,reload:Z}){let[X,H]=X1.useState(""),[Y,W]=X1.useState(""),[B,T]=X1.useState(""),[R,M]=X1.useState(null),A=async(k)=>{if(!await u4({title:`Rotate the tokens of ${k}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let b=await W0(U,`/-/worlds/${k}/rotate`,{method:"POST"}),E=await b.json().catch(()=>({}));M(b.ok?`rotated ${k}: the new tokens are shown once — token ${E.token} · read token ${E.readToken}`:E.error?Q2(E.error).text:`answered ${b.status}`),await Z()},O=async(k)=>{let b=await W0(U,`/-/worlds/${k}`,{method:"DELETE"}),E=await b.json().catch(()=>({}));M(b.ok?`removed ${k}`:E.error?Q2(E.error).text:`answered ${b.status}`),await Z()},[w,P]=X1.useState(!1),[V,S]=X1.useState(!1),[C,D]=X1.useState(""),N=async(k)=>{k.preventDefault(),M(null),P(!0);try{let b=await W0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:X,world:Y,vendors:B.split(",").map((m)=>m.trim()).filter(Boolean)})}),E=await b.json();if(!b.ok){M(E.error?Q2(E.error).text:`the host answered ${b.status}`);return}M(`provisioned ${E.name}`),W(""),T(""),S(!1),await Z()}finally{P(!1)}},v=C.trim().toLowerCase(),u=Q.worlds.filter((k)=>!v||k.name.toLowerCase().includes(v)||k.twins.some((b)=>b.vendor.includes(v))),h=[...new Set(u.map((k)=>k.name.split("/")[0]))];return F.jsxDEV("section",{className:"home-window","aria-labelledby":"worlds",children:[F.jsxDEV("div",{className:"home-head",children:[F.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[r0(Q.worlds.length,"World")," ",U?"this host serves":"this key opens"]},void 0,!0,void 0,this),U?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{M(null),S(!0)},children:[F.jsxDEV(U0,{name:"plus",size:16},void 0,!1,void 0,this),"New World"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"home-find",children:F.jsxDEV("input",{type:"search",placeholder:"Filter by World or vendor","aria-label":"Filter Worlds",value:C,onChange:(k)=>D(k.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:R},void 0,!1,void 0,this):null,h.map((k)=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:k},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:u.filter((b)=>b.name.split("/")[0]===k).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${a1}/${b.name}`,onClick:(E)=>{E.preventDefault(),A0(b.name.split("/"))},children:[F.jsxDEV(U0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:b.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:b.base},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"home-vendors",children:b.twins.map((E)=>F.jsxDEV("span",{title:c1(E.vendor),children:F.jsxDEV($2,{vendor:E.vendor},void 0,!1,void 0,this)},E.vendor,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?F.jsxDEV("details",{className:"menu home-more",children:[F.jsxDEV("summary",{"aria-label":`More for ${b.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),A(b.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),u4({title:`Remove ${b.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:b.name}).then((m)=>{if(m)O(b.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},b.name,!0,void 0,this))},void 0,!1,void 0,this)]},k,!0,void 0,this)),u.length===0?F.jsxDEV("p",{className:"mode home-note",children:v?`No World matches ${C}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(R5,{open:V,onClose:()=>{if(!w)S(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>S(!1),disabled:w,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:w,children:w?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:N,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:X,onChange:(k)=>H(k.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"world",value:Y,onChange:(k)=>W(k.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Vendors"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"vendors",value:B,onChange:(k)=>T(k.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"status",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var rv=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],av=(Q,U)=>{let Z=U?.screens?.find((X)=>X.path.replace(/\/+$/,"")==="")??U?.screens?.find((X)=>!/[{<]/.test(X.path));return U&&Z?`${j6}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},iR={verify:"verified",use:"used",issue:"issued",revoke:"revoked",rotate:"rotated",seed:"seeded",upsert:"saved",set:"set",start:"started",finish:"finished",fail:"failed",schedule:"scheduled",deliver:"delivered",like:"liked",follow:"followed",reply:"replied",create:"created",update:"updated",delete:"deleted",record:"recorded",remove:"removed",add:"added",send:"sent",post:"posted",postmessage:"posted",cancel:"canceled",close:"closed",open:"opened",publish:"published",upload:"uploaded",invite:"invited",archive:"archived",merge:"merged",refund:"refunded",capture:"captured",confirm:"confirmed",pay:"paid"};function Q4(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),X=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${X.charAt(0).toUpperCase()}${X.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),B=Y?`${H} seeded`:iR[Z]?`${H} ${iR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,T=Q.fields??{},R=["title","name","email","text","subject","summary","description"].map((A)=>T[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,M=R===null?null:R.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,O,w)=>`${O==="!"?"@":O}${w}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:B,label:M===null?null:M.length>80?`${M.slice(0,79)}…`:M}}var v6=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id;function sv({name:Q,token:U,twin:Z,tab:X,arg:H,sub:Y,admin:W,snapshot:B,parentToken:T,who:R,onSignOut:M,onReturn:A,opens:O,onRemoved:w,onWho:P,worlds:V=[]}){let[S,C]=X1.useState("pending"),[D,N]=X1.useState(null),[v,u]=X1.useState(0),[h,k]=X1.useState(null);X1.useEffect(()=>{let A1=!0;return N(null),W0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let w1=await U1.json().catch(()=>({}));if(_O(w1.issuer),w1.who)P?.(w1.who);k(typeof w1.signsAs==="string"?w1.signsAs:null);let v1=mJ(w1.origin)?.origin;if(U1.status===409&&v1&&v1!==z0){ZH(v1,U,Q);return}if(!A1)return;if(C(!U1.ok?"unknown":w1.scope==="read"?"read":w1.scope==="write"?"write":"unknown"),!U1.ok)N(w1.error?Q2(w1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(A1)C("unknown"),N(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{A1=!1}},[Q,U,v]);let b=D?{state:"error",error:D}:S==="pending"?{state:"pending"}:{state:"ok",scope:S},E=S==="write",m=(A1)=>{if(A1.status!==403)return;A1.clone().json().then((U1)=>{if(/read token|opens only reads|write access|reads only/i.test(U1?.error??""))C("read")},()=>null)},[e,Q1]=X1.useState(0);X1.useEffect(()=>{let A1=setInterval(()=>{if(!document.hidden)Q1((U1)=>U1+1)},5000);return()=>clearInterval(A1)},[]);let[J1,x]=X1.useState(0),g=f0(U,`/-/${Q}/clock`,e+J1),c=f0(U,`/-/${Q}/twins`),a=f0(U,`/-/${Q}/branches`,J1),d=f0(U,`/-/${Q}/map`,Math.floor(e/2)),t=!(a.state==="error"&&(a.status===404||a.status===405)),y=rv.includes(X)?X:"overview",p=c.state==="ok"?c.data.twins.map((A1)=>A1.twin):[];if(Z&&c.state==="ok"&&!p.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(o7,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${a1}/${Q}`,onClick:(A1)=>{A1.preventDefault(),A0(Q.split("/"))},children:["Open ",Q]},void 0,!0,void 0,this),children:F.jsxDEV("p",{children:["No vendor of this World is called ",Z,". Its changesets are under Changes › History."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);let q1=y==="vendors"&&H?H:void 0,s=()=>{C("pending"),u((A1)=>A1+1)};if(y==="canvas"||y==="vendors"&&!q1||X==="screens"&&!H)return F.jsxDEV(wV,{name:Q,token:U,twins:c,session:b,retry:s,snapshot:B,back:()=>A0(Q.split("/")),canWrite:E&&!B},void 0,!1,void 0,this);let R1=X==="settings"?{kind:"settings",tab:((A1)=>ZO.find(([U1])=>U1===A1)?.[0]??"account")(H)}:X==="remote"?{kind:"settings",tab:"remote"}:X==="vault"?{kind:"settings",tab:"vault"}:X==="branches"?{kind:"branches",...H?{open:H}:{}}:null,T1=Z?"vendor":X==="screens"&&H?"screen":y==="vendors"&&q1?"vendor":X==="trace"?"trace":X==="events"?"events":X==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(UV,{name:Q,token:U,view:T1,win:R1,who:R,snapshot:B,onReturn:A,onSignOut:M,worlds:V,session:b,retry:s,...T1==="vendor"?{arg:Z??q1}:T1==="events"||T1==="trace"||T1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:d,branches:t?a:null,clock:g,canWrite:E&&!B,refused:m,signsAs:h,opens:O,tick:e,admin:W,onRemoved:w,onClock:()=>x((A1)=>A1+1),scope:B?"read":S},void 0,!1,void 0,this)}function U0({name:Q,size:U=20}){return F.jsxDEV("svg",{className:"icon",viewBox:"0 0 24 24",width:U,height:U,fill:"none",stroke:"currentColor",strokeWidth:U<=16?1.75:1.5,strokeLinecap:"square",strokeLinejoin:"miter","aria-hidden":"true",children:(pR[Q]??[]).map(([Z,X],H)=>X1.default.createElement(Z,{key:H,...X}))},void 0,!1,void 0,this)}function HU(Q){let U=(Z)=>{let X=(Z.operation??Z.op).toLowerCase();return X.includes(".")?X.slice(X.lastIndexOf(".")+1):X};if(Q.some((Z)=>/^(delete|remove|archive|revoke)/.test(U(Z))||Z.fields?.deleted===!0))return{icon:"square-minus",word:"removed",tone:"removed"};if(/^(create|add|insert|issue|send|post|upload|invite|record|seed)/.test(U(Q[0])))return{icon:"square-plus",word:"made",tone:"added"};return{icon:"square-dot",word:"changed",tone:"changed"}}var ZO=[["account","Account","user"],["changesets","Changesets","git-commit-horizontal"],["remote","Remote","cloud"],["access","Access","key-round"],["services","Real services","plug"],["vault","Vault","vault"],["checks","Checks","list-checks"],["clock","Clock","clock"],["appearance","Appearance","palette"]],tv=(Q,U)=>{let Z=U.split("/").pop()??U,X=Q.split("/").pop()??"";return Z.startsWith(`${X}-`)?Z.slice(X.length+1):Z},p8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function FO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],X=Q4(Z),H=HU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,B={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===Z.subject.type&&A.subject.id===Z.subject.id&&A.occurredAt<=W)Object.assign(B,A.fields??{})}let T={...B};for(let A of Q.writes)Object.assign(T,A.fields??{});let R=H.tone==="added"&&Object.keys(B).length===0,M=[...new Set([...Object.keys(B),...Object.keys(T)])].filter((A)=>!TO(B[A],T[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${X.label??v6(Z)}: its changes`,children:[F.jsxDEV("div",{className:"ws-diff-head",children:[F.jsxDEV("span",{className:`ws-kind ${H.tone}`,title:H.word,children:F.jsxDEV(U0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV($2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:X.label??v6(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[c1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:v6(Z)},void 0,!1,void 0,this)," · ",H.word," here"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ol",{className:"ws-writes",children:Q.writes.map((A)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:Q4(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(R0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",xJ(A)]},void 0,!0,void 0,this)]},A.id,!0,void 0,this))},void 0,!1,void 0,this),U===null?F.jsxDEV("p",{className:"mode pad",children:"Reading its history…"},void 0,!1,void 0,this):M.length===0?F.jsxDEV("p",{className:"mode pad",children:"No field holds a new value."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"ws-fields","aria-label":"Fields before and after",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Field"},void 0,!1,void 0,this),R?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:M.map((A)=>F.jsxDEV("tr",{children:[F.jsxDEV("th",{scope:"row",children:F.jsxDEV("code",{children:A},void 0,!1,void 0,this)},void 0,!1,void 0,this),R?null:F.jsxDEV("td",{className:A in B?"was":"none",children:A in B?F.jsxDEV(N3,{v:B[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:A in T?"now":"none",children:A in T?F.jsxDEV(N3,{v:T[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},A,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KO({records:Q,selected:U,onPick:Z,label:X}){let[H,Y]=X1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),W=(R)=>{Y(R);try{localStorage.setItem("volter.console.records",R?"tree":"path")}catch{}},B=(R,M)=>{let A=R.writes[R.writes.length-1],O=Q4(A),w=HU(R.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===R.key?"on":"",M?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===R.key,onClick:()=>Z(R.key),children:[M?null:F.jsxDEV($2,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??v6(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[p8(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${r0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${w.tone}`,title:w.word,"aria-label":w.word,children:F.jsxDEV(U0,{name:w.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R.key,!1,void 0,this)},T=[...new Set(Q.map((R)=>R.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>W(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>W(!0),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"ws-list","aria-label":X,children:H?T.map((R)=>{let M=Q.filter((A)=>A.twin===R);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV($2,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:c1(R)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:M.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:M.map((A)=>B(A,!0))},void 0,!1,void 0,this)]},R,!0,void 0,this)}):Q.map((R)=>B(R,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ov({name:Q,token:U,branches:Z,opens:X,refused:H,onChanged:Y}){let[W,B]=X1.useState(""),[T,R]=X1.useState(!1),M=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:M,running:!0}],O=Z?.state==="ok"?Z.data.branches:[],w=W.trim().toLowerCase(),P=(S)=>!w||S.toLowerCase().includes(w),V=(S)=>{S.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"The branch served here",children:[F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("b",{children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(U0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover ws-branch-menu",children:[F.jsxDEV("div",{className:"ws-branch-find",children:[F.jsxDEV("input",{type:"search",placeholder:"Filter","aria-label":"Filter branches",value:W,onChange:(S)=>B(S.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(S)=>{V(S),R(!0)},disabled:!Z,children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"This World"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-branch-list",children:A.filter((S)=>P(S.name)).map((S)=>F.jsxDEV("li",{className:S.name===M?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:S.name===M?F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:S.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.name===M?"served here":S.running?"running":"stopped"},void 0,!1,void 0,this)]},S.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),O.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:O.filter((S)=>P(S.name)).map((S)=>{let C=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:tv(Q,S.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(R0,{iso:S.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D=S.expiresAt?`Goes away ${new Date(S.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:X(S.name)?F.jsxDEV("a",{href:`${a1}/${S.name}`,title:D,onClick:(N)=>{N.preventDefault(),V(N),GO(S.name,S.name.split("/"))},children:C},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${D}. Its tokens went to whoever made it; it opens from their page.`,children:C},void 0,!1,void 0,this)},S.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${a1}/${Q}/~/branches`,onClick:(S)=>{S.preventDefault(),V(S),A0([...Q.split("/"),"~","branches"])},children:"Manage branches…"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(YO,{name:Q,token:U,open:T,onClose:()=>R(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function XO({name:Q,view:U,changes:Z,changesets:X}){let H=(Y)=>(W)=>{W.preventDefault(),A0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",Z?F.jsxDEV("span",{className:"count",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",X?F.jsxDEV("span",{className:"count",children:X},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function nv({name:Q,token:U,sets:Z,sub:X,signsAs:H,canWrite:Y,rooted:W,refused:B,onChanged:T,changes:R,withScreens:M,required:A}){let[O,w]=X1.useState(null),[P,V]=X1.useState(!1),S=Z.state==="ok"?[...Z.data.changesets].sort((b,E)=>E.createdAt.localeCompare(b.createdAt)):[],C=S.find((b)=>b.name===X)??S[0],D=X1.useMemo(()=>{let b=new Map;for(let E of C?AO(C):[]){let m=`${E.twin}:${E.entry.subject.type}:${E.entry.subject.id}`,e=b.get(m)??{key:m,twin:E.twin,writes:[]};e.writes.push(E.entry),b.set(m,e)}return[...b.values()]},[C]),N=D.find((b)=>b.key===O)??D[0],v=f0(U,N?`/-/${Q}/log/${N.twin}`:null),u={added:0,removed:0,changed:0};for(let b of D)u[HU(b.writes).tone]=(u[HU(b.writes).tone]??0)+1;let h=C?YU(C):null,k=C?MO(C,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(XO,{name:Q,view:"history",changes:R,changesets:S.length},void 0,!1,void 0,this),F.jsxDEV(v2,{load:Z,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:S.map((b)=>{let E=C?.name===b.name,m=YU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${a1}/${Q}/~/changes/changesets/${b.name}`,className:E?"on":void 0,"aria-current":E?"true":void 0,onClick:(e)=>{e.preventDefault(),w(null),A0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:JH(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?XU(b.cutBy):"unrecorded")," • ",F.jsxDEV(R0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(U0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},b.name,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-pane-right",children:[Z.state==="ok"&&!C?F.jsxDEV(o7,{title:"No changesets yet",children:F.jsxDEV("p",{children:"Cut one from Changes: the cut box is at its foot."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,C&&h&&k?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-commit-head",children:[F.jsxDEV("div",{className:"ws-commit-title",children:[F.jsxDEV("h3",{children:JH(C)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(U0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",r0(D.length,"changed record"),u.added?F.jsxDEV("span",{className:"plus",children:[" +",u.added]},void 0,!0,void 0,this):null,u.removed?F.jsxDEV("span",{className:"minus",children:[" −",u.removed]},void 0,!0,void 0,this):null,u.changed?F.jsxDEV("span",{className:"dot",children:[" •",u.changed]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode ws-commit-meta",children:[F.jsxDEV("code",{children:C.name},void 0,!1,void 0,this)," · ",F.jsxDEV(R0,{iso:C.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",C.owner??(C.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(C.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",C.cutBy?C.pushedBy&&C.applied===null&&C.cutBy==="machine"?"the machine it was cut on":XU(C.cutBy):"unrecorded"],...C.pushedBy?[["Pushed by",XU(C.pushedBy)]]:[]].map(([b,E])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",E]},b,!0,void 0,this))},void 0,!1,void 0,this),C.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:C.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${h.tone}`,children:h.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${k.tone}`,children:k.label},void 0,!1,void 0,this),"Review…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-two inner",children:[F.jsxDEV("div",{className:"ws-files",children:F.jsxDEV(KO,{records:D,...N?{selected:N.key}:{},onPick:w,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:N?F.jsxDEV(FO,{record:N,history:v.state==="ok"?v.data.entries:v.state==="error"?[]:null},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"It changes nothing."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:P,onClose:()=>V(!1),title:`Review: ${JH(C)}`,wide:!0,children:[F.jsxDEV(tR,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:B,onChanged:T,part:"head",required:A},`h:${C.name}`,!1,void 0,this),F.jsxDEV(tR,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:B,onChanged:T,part:"review",required:A},`r:${C.name}`,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ev({name:Q,token:U,vendors:Z,vendor:X,tick:H}){let[Y,W]=X1.useState(rR*4),[B,T]=X1.useState(""),[R,M]=X1.useState(null),A=f0(U,`/-/${Q}/timeline?limit=${Y}${X?`&twin=${encodeURIComponent(X)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?AV(A.data.entries):[],w=[...new Set(O.map((u)=>Q4(u.entry).what))].sort(),P=O.filter((u)=>!B||Q4(u.entry).what===B),V=P.find((u)=>L9(u)===R)??P[0],S=(u)=>(h)=>{h.preventDefault(),M(null),A0([...Q.split("/"),"~","events",...u?[u]:[]])},C=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,D=V?pv(V.entry.traceparent):null,N=V?aR(V):null,v=V?zV(V.entry):[];return F.jsxDEV("div",{className:"ws-events",children:[F.jsxDEV("div",{className:"ws-filterbar",children:[F.jsxDEV("nav",{className:"ws-seg","aria-label":"Vendor",children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/events`,className:!X?"on":void 0,"aria-current":!X?"page":void 0,onClick:S(),children:"All"},void 0,!1,void 0,this),Z.map((u)=>F.jsxDEV("a",{href:`${a1}/${Q}/~/events/${u}`,className:X===u?"on":void 0,"aria-current":X===u?"page":void 0,onClick:S(u),children:[F.jsxDEV($2,{vendor:u},void 0,!1,void 0,this),c1(u)]},u,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:B,onChange:(u)=>{T(u.target.value),M(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),w.map((u)=>F.jsxDEV("option",{value:u,children:u},u,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[F.jsxDEV(v2,{load:A,what:"the events",lines:6},void 0,!1,void 0,this),F.jsxDEV("table",{className:"ws-grid","aria-label":"Events",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Time"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"What"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Record"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"By"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Receipt"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:P.map((u)=>{let h=Q4(u.entry),k=aR(u),b=V&&L9(u)===L9(V);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>M(L9(u)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(R0,{iso:u.entry.occurredAt,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:u.twin},void 0,!1,void 0,this),c1(u.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:h.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:h.label?`“${h.label}”`:F.jsxDEV("code",{children:v6(u.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:xJ(u.entry,u.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k?F.jsxDEV("span",{className:k.bad?"badge cs-bad":k.status==="deployed"?"badge cs-done":"badge",children:k.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:$O(u.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},L9(u),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-detail",children:V?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-event-line",children:[F.jsxDEV("span",{className:"badge",children:WO(V.entry)},void 0,!1,void 0,this),N?F.jsxDEV("span",{className:N.bad?"badge cs-bad":"badge cs-good",children:N.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",v6(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(R0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",xJ(V.entry,V.caller)]},void 0,!0,void 0,this),D?F.jsxDEV("a",{href:`${a1}/${Q}/~/trace/${D.trace}`,onClick:(u)=>{u.preventDefault(),A0([...Q.split("/"),"~","trace",D.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),C!==void 0?F.jsxDEV(BV,{body:C},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"No request body: the World or the vendor wrote it."},void 0,!1,void 0,this),v.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:v.map(([u,h])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:u},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},u,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{role:"region","aria-label":"What it wrote",children:[F.jsxDEV("h4",{children:"Written"},void 0,!1,void 0,this),F.jsxDEV(LO,{fields:V.entry.fields},void 0,!1,void 0,this),F.jsxDEV("h4",{children:V.copies.length?"Receipts":"Receipt"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:V.copies.length?V.copies.map((u)=>u.entry.receipt?.status??"landed copy").join(" · "):LV(V.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[V?`${P.indexOf(V)+1} of ${P.length}`:P.length," events",X?` at ${c1(X)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((u)=>u+rR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function _V({name:Q,token:U,id:Z}){let X=/^[0-9a-f]{32}$/.test(Z),H=f0(U,X?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-zO(A,O)):[],[W,B]=X1.useState(null),T=Y[0]?Date.parse(Y[0].entry.occurredAt):0,R=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-T):1,M=[...new Set(Y.map((A)=>A.twin))];return F.jsxDEV("div",{className:"ws-sheet ws-trace",children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${a1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),A0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(U0,{name:"arrow-left",size:16},void 0,!1,void 0,this)," Events"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("h2",{children:[Y[0]?`${Q4(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:Z.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!X?F.jsxDEV("p",{role:"alert",children:[Z?`${Z} is not a trace id`:"No trace named",": a W3C trace id is 32 hex characters."]},void 0,!0,void 0,this):F.jsxDEV(v2,{load:H,what:"the trace"},void 0,!1,void 0,this),Y.length?F.jsxDEV("p",{className:"ws-trace-meta",children:["Started ",F.jsxDEV("b",{children:F.jsxDEV(R0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[R," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:M.map(c1).join(", ")},void 0,!1,void 0,this)," · Writes ",F.jsxDEV("b",{children:Y.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.state==="ok"&&Y.length===0?F.jsxDEV(o7,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(R/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let O=Date.parse(A.entry.occurredAt)-T,w=L9(A),P=Q4(A.entry);return F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("div",{className:W===w?"ws-span on":"ws-span",role:"row",onClick:()=>B(W===w?null:w),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV($2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:c1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[P.what,P.label?` “${P.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${O/R*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${O/R*100}%`},children:["+",O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W===w?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:WO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",v6(A.entry)]},void 0,!0,void 0,this)," · ",xJ(A.entry,A.caller)," · ",$O(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(LO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},w,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function JV({name:Q,token:U,vendor:Z,withScreens:X,tick:H}){let Y=f0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((v)=>v.deleted!==!0):[],B=[...new Set(W.map((v)=>v.type))].map((v)=>({type:v,count:W.filter((u)=>u.type===v).length})).sort((v,u)=>Number(v.type.startsWith("_"))-Number(u.type.startsWith("_"))||p8(v.type).localeCompare(p8(u.type))),[T,R]=X1.useState(null),[M,A]=X1.useState(null),O=B.some((v)=>v.type===T)?T:B[0]?.type,w=W.filter((v)=>v.type===O),P=w.find((v)=>v.id===M)??w[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],S=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),C=(v)=>!S.has(v)&&w.some((u)=>u[v]!==void 0&&u[v]!==null&&typeof u[v]!=="object"),D=[...new Set(w.flatMap((v)=>Object.keys(v)))],N=[...V.filter(C),...D.filter((v)=>!V.includes(v)&&C(v))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${c1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:Z},void 0,!1,void 0,this),c1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(v2,{load:Y,what:"what it stores",lines:4},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Stores"},void 0,!1,void 0,this),B.map((v)=>F.jsxDEV("a",{href:`#${v.type}`,className:O===v.type?"on":void 0,"aria-current":O===v.type?"true":void 0,onClick:(u)=>{u.preventDefault(),R(v.type),A(null)},children:[F.jsxDEV(U0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:p8(v.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:v.count},void 0,!1,void 0,this)]},v.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/events/${Z}`,onClick:(v)=>{v.preventDefault(),A0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(U0,{name:"activity",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X?F.jsxDEV("a",{href:`${a1}/${Q}/~/screens/${Z}`,onClick:(v)=>{v.preventDefault(),A0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(U0,{name:"monitor",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[Y.state==="ok"&&B.length===0?F.jsxDEV(o7,{title:`${c1(Z)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,w.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${p8(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),N.map((v)=>F.jsxDEV("th",{children:v},v,!1,void 0,this)),F.jsxDEV("th",{children:"updated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:w.map((v)=>F.jsxDEV("tr",{className:P?.id===v.id?"on":void 0,"aria-selected":P?.id===v.id,onClick:()=>A(v.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:v.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.map((u)=>F.jsxDEV("td",{className:"ws-cell-clip",children:v[u]===void 0||v[u]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(v[u])},u,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof v.updatedAt==="string"?F.jsxDEV(R0,{iso:v.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},v.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("aside",{className:"ws-record","aria-label":"The selected record",children:P?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:p8(P.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:P.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(P).filter(([v])=>v!=="type"&&v!=="id").map(([v,u])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(N3,{v:u},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},v,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:P?`${w.indexOf(P)+1} of ${r0(w.length,p8(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $V({name:Q,vendor:U,url:Z,mapError:X,holding:H,session:Y,retry:W}){return F.jsxDEV("div",{className:"ws-screen",children:[F.jsxDEV("div",{className:"ws-screen-bar",children:[F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:c1(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:H},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/vendors/${U}`,onClick:(B)=>{B.preventDefault(),A0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(U0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),Z?F.jsxDEV("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(U0,{name:"external-link",size:16},void 0,!1,void 0,this),"New tab"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Y.state==="ok"&&Y.scope==="read"?F.jsxDEV("p",{className:"mode ws-screens-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,X?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",X]},void 0,!0,void 0,this):Y.state==="pending"||Z===void 0?F.jsxDEV("p",{className:"mode ws-screens-note",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Y.state==="error"?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not open its screens: ",Y.error," ",F.jsxDEV("button",{type:"button",onClick:W,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z===null?F.jsxDEV("p",{className:"mode ws-screens-note",children:[c1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${c1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function QV({name:Q,token:U,who:Z,scope:X}){let[H,Y]=X1.useState(0),W=f0(U,`/-/${Q}/twins`),B=f0(U,`/-/${Q}/rules`,H),T=B.state==="ok"?B.data.changesets:null,[R,M]=X1.useState(null),[A,O]=X1.useState(null),[w,P]=X1.useState(!1),[V,S]=X1.useState([]),C=R??T?.approvals??1,D=A??T?.summary??"required",N=T!==null&&(C!==(T.approvals??1)||D!==(T.summary??"required")),v=(m,e)=>{if(S((Q1)=>[{ok:m,text:e,at:new Date().toISOString(),n:++gJ},...Q1].slice(0,3)),!m)c0(e,"error")},u=async(m)=>{m.preventDefault(),P(!0);try{let e=await W0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:C,summary:D}})});if(!e.ok){v(!1,`Save: ${await h5(e)}`);return}v(!0,`Saved: ${C===0?"no approval":r0(C,"approval")} before a deploy; a summary ${D==="required"?"required":"generated when none is given"}.`),M(null),O(null),Y((Q1)=>Q1+1)}finally{P(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},k=Z.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:Z.person},void 0,!1,void 0,this),Z.local?", signed in on this machine":""]},void 0,!0,void 0,this):Z.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this machine"},void 0,!1,void 0,this),": no one is signed in here, so no person owns them until they are pushed by one"]},void 0,!0,void 0,this):Z.admin?F.jsxDEV(F.Fragment,{children:F.jsxDEV("b",{children:"the host's admin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this token"},void 0,!1,void 0,this),", a service"]},void 0,!0,void 0,this),b=W.state==="ok"?W.data.twins.filter((m)=>m.root?.url):[],E=X!=="write"?"This session reads the World; it changes no rules":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Changesets"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"This World's rules, kept with it and shared by everyone who works in it. A person or the World's token changes them; a key never does, so an agent cannot relax the review its own changes go through."},void 0,!1,void 0,this),F.jsxDEV(v2,{load:B,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(m)=>void u(m),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",k,". An agent's or an app's key cuts as itself, for the person it was made for; a World's token cuts as a service."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"A cut's summary"},void 0,!1,void 0,this),F.jsxDEV("fieldset",{className:"choice",disabled:Boolean(E)||T===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="required",onChange:()=>O("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="generated",onChange:()=>O("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this),"Verified: replayed in a throwaway World, the World's checks passing"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("label",{className:"ws-rule-row",children:[F.jsxDEV("span",{children:"Approved by"},void 0,!1,void 0,this),F.jsxDEV("select",{value:C,onChange:(m)=>M(Number(m.target.value)),disabled:Boolean(E)||T===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((m)=>F.jsxDEV("option",{value:m,children:m===0?"no one: verified is enough":m===1?"1 person":`${m} different people`},m,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),W.state==="ok"&&b.length===0?F.jsxDEV("p",{className:"mode",children:"No vendor here is connected to its real service, so nothing deploys from this World."},void 0,!1,void 0,this):null,b.length?F.jsxDEV("ul",{className:"ws-rule-list",children:b.map((m)=>F.jsxDEV("li",{children:[F.jsxDEV($2,{vendor:m.twin},void 0,!1,void 0,this),c1(m.twin),": ",h[m.root.deploy??"gated"]??"gated"]},m.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/services`,onClick:(m)=>{m.preventDefault(),A0([...Q.split("/"),"~","settings","services"])},children:"Real services"},void 0,!1,void 0,this)," sets each vendor's deploy policy."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(V6,{log:V,name:Q},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(E)||w||!N,title:E??void 0,children:w?"Saving…":"Save"},void 0,!1,void 0,this),N?F.jsxDEV("button",{type:"button",onClick:()=>{M(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,E?F.jsxDEV("span",{className:"mode",children:[E,"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function qV({who:Q,scope:U,snapshot:Z,portal:X,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[W,B]=Z?["A snapshot",`of ${Z.parent}, read only`]:Q.local&&Q.person?[Q.person,"Signed in on this machine: this World is served here, and acts as you"]:Q.local?["This machine","Served here, with no one signed in: what you do is recorded as this machine"]:Q.person?[Q.person,X?`Signed in through ${new URL(X).host}`:"Signed in"]:Q.admin?["The host's admin","Opened with the host admin token: every World it serves"]:["A link or key","Opened with a token for this World"];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Account"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-account",children:[F.jsxDEV("span",{className:"ws-account-face","aria-hidden":"true",children:F.jsxDEV(U0,{name:Q.person?"user":Q.local?"monitor":Z?"clock":"key-round",size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:W},void 0,!1,void 0,this),F.jsxDEV("small",{children:B},void 0,!1,void 0,this),F.jsxDEV("small",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.local||Z?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(U0,{name:"log-out",size:16},void 0,!1,void 0,this),Q.person?"Sign out":Q.admin?"Sign out of the host":"Use another token"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${X}/`,children:new URL(X).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function UV({name:Q,token:U,view:Z,sub:X,arg:H,win:Y,who:W,snapshot:B,onReturn:T,onSignOut:R,worlds:M,session:A,retry:O,twins:w,map:P,branches:V,clock:S,canWrite:C,refused:D,signsAs:N,opens:v,tick:u,admin:h,onRemoved:k,onClock:b,scope:E}){let m=RO(Q,U,u,D),[e,Q1]=X1.useState(0),J1=e*1e5+Math.floor(u/2),x=f0(U,`/-/${Q}/diff`,J1),g=f0(U,`/-/${Q}/changesets`,J1),c=f0(U,`/-/${Q}/rules`,J1),[a,d]=X1.useState(null),t=(K1)=>(u1)=>{u1?.preventDefault(),A0([...Q.split("/"),"~",...K1])},y=w.state==="ok"?w.data.twins.map((K1)=>K1.twin):[],p=new Map((P.state==="ok"?P.data.twins:[]).flatMap((K1)=>{let u1=av(Q,K1);return u1?[[K1.twin,u1]]:[]})),q1=[...p.keys()],s=P.state==="ok"?P.data.twins.filter((K1)=>K1.root).map((K1)=>K1.twin):[],W1=(K1)=>P.state==="ok"?(P.data.twins.find((u1)=>u1.twin===K1)?.resources??[]).reduce((u1,N1)=>u1+N1.count,0):0,R1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],T1=X1.useMemo(()=>{if(x.state!=="ok")return[];let K1=new Map;for(let u1 of x.data.changes){let N1=`${u1.twin}:${u1.entry.subject.type}:${u1.entry.subject.id}`,Q0=K1.get(N1)??{key:N1,twin:u1.twin,writes:[]};Q0.writes.push(u1.entry),K1.set(N1,Q0)}return[...K1.values()]},[x]),A1=T1.find((K1)=>K1.key===a)??T1[0],U1=f0(U,Z==="changes"&&A1?`/-/${Q}/log/${A1.twin}`:null,J1),w1=x.state==="ok"?x.data.changes.length:0,v1=m.waiting.length,M1=m.there,G1=m.origin.state==="ok"?m.origin.data.origin:null,B1=!C?"This session reads the World; it changes nothing":!M1?"No remote: name one in Settings › Remote":null,I1=(K1,u1,N1,Q0,b1,a0)=>F.jsxDEV("a",{href:`${a1}/${Q}/~/${Q0}`,className:K1?"on":void 0,"aria-current":K1?"page":void 0,onClick:b1,children:[u1,F.jsxDEV("span",{children:N1},void 0,!1,void 0,this),a0?F.jsxDEV("span",{className:"count",children:a0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),C1=(K1)=>{K1.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("div",{className:"ws",children:[F.jsxDEV("div",{className:"ws-bar",role:"toolbar","aria-label":`${Q} toolbar`,children:[F.jsxDEV("div",{className:"ws-left",children:[F.jsxDEV(QJ,{href:`${a1}/${Q}`,onClick:(K1)=>{K1.preventDefault(),t(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(U0,{name:"globe",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("b",{children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(U0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover menu-list ws-world-menu",children:[W.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),M.map((K1)=>F.jsxDEV("a",{href:`${a1}/${K1}`,className:K1===Q?"on":void 0,onClick:(u1)=>{u1.preventDefault(),C1(u1),A0(K1.split("/"))},children:[K1===Q?F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(U0,{name:"globe",size:16},void 0,!1,void 0,this),K1]},K1,!0,void 0,this)),F.jsxDEV("a",{href:`${$4()&&$4()!==z0?$4():""}${a1}/`,onClick:(K1)=>{if($4()&&$4()!==z0)return;K1.preventDefault(),C1(K1),A0([])},children:[F.jsxDEV(U0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",k2()?` on ${new URL(k2()).host}`:""]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Connect an app"},void 0,!1,void 0,this),k2()?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key made on the platform; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[j6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(eX,{text:GU({platform:k2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!W.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key from Settings › Access; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[j6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(eX,{text:GU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Run it in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-menu-text mode",children:["Or point an SDK at ",F.jsxDEV("code",{children:[j6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",F.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),F.jsxDEV(eX,{text:GU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/settings`,onClick:(K1)=>{C1(K1),t(["settings"])(K1)},children:[F.jsxDEV(U0,{name:"settings",size:16},void 0,!1,void 0,this),"Settings…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(ov,{name:Q,token:U,branches:V,opens:v,refused:D,onChanged:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-where",title:"Where this is",children:[F.jsxDEV("span",{children:Q},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("span",{children:R1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),G1?F.jsxDEV("a",{href:`${a1}/${Q}/~/remote`,onClick:t(["remote"]),children:["origin ",G1.namespace,v1?F.jsxDEV("b",{children:[" ↑",v1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${a1}/${Q}/~/remote`,onClick:t(["remote"]),children:"no remote"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/clock`,onClick:t(["settings","clock"]),children:S.state==="ok"?F.jsxDEV(F.Fragment,{children:[S.data.frozen?"stopped at ":"",F.jsxDEV(R0,{iso:S.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.pull(),disabled:Boolean(B1)||m.busy!==null,title:B1??`Fetch what ${M1} has and move this branch onto it`,children:[F.jsxDEV(U0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),m.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.push(),disabled:Boolean(B1)||m.busy!==null||v1===0,title:B1??(v1?`Push ${r0(v1,"changeset")} to ${M1}`:`Every changeset is at ${M1}`),children:[F.jsxDEV(U0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),m.busy==="Push"?"Pushing…":"Push",v1?F.jsxDEV("span",{className:"ws-btn-count",children:v1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn icon-only","aria-label":"Settings",title:"Settings",onClick:()=>t(["settings"])(),children:F.jsxDEV(U0,{name:"settings",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(U0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:B.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(R0,{iso:B.at},void 0,!1,void 0,this),": a read-only snapshot",B.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(R0,{iso:B.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void T(B),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(V6,{log:m.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[y.length?F.jsxDEV("a",{href:`${a1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:t(["screens"]),title:`The board: ${I8(y.map(c1))}`,children:[F.jsxDEV(U0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Board"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-screens-marks",children:[y.slice(0,3).map((K1)=>F.jsxDEV($2,{vendor:K1},K1,!1,void 0,this)),y.length>3?F.jsxDEV("span",{className:"more",children:["+",y.length-3]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{className:"side-group",children:"Workspace"},void 0,!1,void 0,this),I1(Z==="changes"||Z==="history",F.jsxDEV(U0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",t(["changes"]),T1.length?String(T1.length):void 0),I1(Z==="events"&&!H||Z==="trace",F.jsxDEV(U0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",t(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),y.map((K1)=>F.jsxDEV(X1.default.Fragment,{children:I1(Z==="vendor"&&H===K1,F.jsxDEV($2,{vendor:K1},void 0,!1,void 0,this),c1(K1),`vendors/${K1}`,t(["vendors",K1]),W1(K1)?String(W1(K1)):void 0)},K1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),I1(!1,F.jsxDEV(U0,{name:"cloud",size:16},void 0,!1,void 0,this),M1?"origin":"Name a remote…","remote",t(["remote"]),v1?`↑${v1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[Z==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(XO,{name:Q,view:"changes",changes:T1.length,changesets:g.state==="ok"?g.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:x.state==="ok"?`${r0(T1.length,"record")} · ${r0(w1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:x,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(KO,{records:T1,...A1?{selected:A1.key}:{},onPick:d,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[x.state==="ok"&&!A1?F.jsxDEV(o7,{title:"No changes on this branch",action:v1>0&&M1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(B1)||m.busy!==null,onClick:()=>void m.push(),children:["Push ",r0(v1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",x.data.base.at?F.jsxDEV(R0,{iso:x.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:x.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,A1?F.jsxDEV(FO,{record:A1,history:U1.state==="ok"?U1.data.entries:U1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(fV,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(U0,{name:W.person?"user":W.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:W.person??(W.local?"This machine":W.admin?"The host's admin":"A token"),account:`${a1}/${Q}/~/settings/account`,branch:R1},name:Q,token:U,changes:w1,canWrite:C,refused:D,onCut:()=>{Q1((K1)=>K1+1),d(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(nv,{name:Q,token:U,sets:g,changes:T1.length,withScreens:q1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...X?{sub:X}:{},signsAs:N,canWrite:C,rooted:s,refused:D,onChanged:()=>Q1((K1)=>K1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(ev,{name:Q,token:U,vendors:y,...H&&y.includes(H)?{vendor:H}:{},tick:u},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(_V,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(JV,{name:Q,token:U,vendor:H,withScreens:q1.includes(H),tick:u},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV($V,{name:Q,vendor:H,url:P.state==="ok"?p.get(H)??null:void 0,...P.state==="error"?{mapError:P.error}:{},holding:ZV(P.state==="ok"?P.data.twins.find((K1)=>K1.twin===H)?.resources??[]:[]),session:A,retry:O},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:Y?.kind==="settings",onClose:()=>t(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:ZO.map(([K1,u1,N1])=>F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/${K1}`,className:Y.tab===K1?"on":void 0,"aria-current":Y.tab===K1?"page":void 0,onClick:t(["settings",K1]),children:[F.jsxDEV(U0,{name:N1,size:16},void 0,!1,void 0,this),u1]},K1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[E==="read"?F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"badge read-only",children:"Read only"},void 0,!1,void 0,this)," This session reads the World; it changes nothing."]},void 0,!0,void 0,this):null,Y.tab==="account"?F.jsxDEV(qV,{who:W,scope:E,snapshot:B,portal:k2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(QV,{name:Q,token:U,who:W,scope:E},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(jV,{name:Q,token:U,canWrite:C,tick:u,refused:D},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(VV,{name:Q,token:U,admin:h,canWrite:C,refused:D,onRemoved:k,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(vV,{name:Q,token:U,canWrite:C,refused:D},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(lv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV(R5,{open:Y?.kind==="branches",onClose:()=>t(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(XV,{name:Q,token:U,canWrite:C,branches:V,opens:v,...Y.open?{open:Y.open}:{},onChanged:b,refused:D},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eX({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>c0("Copied the prompt: paste it into your coding agent"),()=>c0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var FH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,GV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),ZV=(Q,U=4)=>{let Z=[...Q].filter((X)=>X.count>0).sort((X,H)=>H.count-X.count);return Z.length?Z.slice(0,U).map((X)=>r0(X.count,X.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},HO=F.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:F.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this);function FV({name:Q,token:U,clock:Z,canWrite:X,onChanged:H,refused:Y,open:W}){let[B,T]=X1.useState(!1),[R,M]=X1.useState(""),[A,O]=X1.useState(""),[w,P]=X1.useState(null),[V,S]=X1.useState(!1),C=Z.state==="ok"?Z.data:null,D=async(h,k,b)=>{S(!0),P(null);try{let E=await W0(U,`/-/${Q}/${k}`,{method:k==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!E.ok){Y(E),P({ok:!1,text:await h5(E)});return}let m=await E.json();P({ok:!0,text:`${h} — the World is at ${new Date(m.at).toLocaleString()}`}),T(!1),H()}catch(E){P({ok:!1,text:`the World did not answer: ${E instanceof Error?E.message:String(E)}`})}finally{S(!1)}},N=(h)=>{h.preventDefault();let k=new Date(R);if(Number.isNaN(k.getTime())){P({ok:!1,text:"Pick a date and time."});return}if(C&&k.getTime()<Date.parse(C.at)){P({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(C.at).toLocaleString()}.`});return}D("Clock set","clock",{at:k.toISOString()})},v=(h,k)=>{D(`Advanced ${k}`,"clock/advance",{by:h})},u=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${C?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):C.frozen?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",F.jsxDEV("strong",{children:F.jsxDEV(R0,{iso:C.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:["World time ",F.jsxDEV("strong",{children:F.jsxDEV(R0,{iso:C.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"· real time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X&&C?F.jsxDEV("details",{className:W?"clock-more inline":"clock-more",open:W||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:W?void 0:"popover",children:[F.jsxDEV("p",{className:"mode",children:"Move this World's clock forward to see what happens later: renewals, expiries, scheduled sends. Like a test clock, it only moves forward; to look back, the branch picker’s Manage branches… views an earlier moment."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"clock-controls",children:[F.jsxDEV("button",{type:"button","aria-expanded":B,onClick:()=>{T(!B),M(T9(cR(C.at))),P(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),u.map(([h,k])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${k}`,disabled:V||!C.frozen,title:C.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>v(h,k),children:k},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){P({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}v(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>O(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!C.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V||!C.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!C.frozen?F.jsxDEV("p",{className:"mode",children:"The World runs on real time. Set a time to start simulating; then advance it."},void 0,!1,void 0,this):null,B?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:N,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:T9(cR(C.at)),onChange:(h)=>M(h.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>T(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,w?F.jsxDEV("p",{role:w.ok?"status":"alert",children:w.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function KV({name:Q,token:U,clock:Z,refused:X}){let[H,Y]=X1.useState(!1),[W,B]=X1.useState(""),[T,R]=X1.useState(null),[M,A]=X1.useState(!1),O=Z.state==="ok"?Z.data.at:new Date().toISOString(),w=X1.useRef(null);return X1.useEffect(()=>{if(!H)return;let V=(C)=>{if(C.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),w.current?.querySelector("button")?.focus()},S=(C)=>{if(!w.current?.contains(C.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",S),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",S)}},[H]),F.jsxDEV("div",{className:"as-of",ref:w,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),B(T9(O)),R(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(V)=>{V.preventDefault(),R(null);let S=new Date(W);if(Number.isNaN(S.getTime())){R("Pick a date and time.");return}if(S.getTime()>Date.parse(O)){R(`That is after the World's present (${new Date(O).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let C=await W0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!C.ok){X(C),R(await h5(C));return}let D=await C.json();qH({name:D.name,parent:Q,token:D.token,readToken:D.readToken,at:S.toISOString(),expiresAt:D.expiresAt??null,parentOrigin:z0,made:!0});let N=mJ(D.origin)?.origin;if(N&&N!==z0){ZH(N,D.readToken,D.name,`${a1}/${D.name}`);return}A0(D.name.split("/"))}catch(C){R(`the World did not answer: ${C instanceof Error?C.message:String(C)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:W,max:T9(O),onChange:(V)=>B(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:M,children:M?"Opening…":"Open snapshot"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Opens a read-only copy of this World as it was then; the copy goes away within the hour."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,T?F.jsxDEV("p",{role:"alert",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function YO({name:Q,token:U,open:Z,onClose:X,onMade:H,refused:Y}){let W=(k)=>k.split("/").pop()??k,[B,T]=X1.useState(!1),[R,M]=X1.useState(null),[A,O]=X1.useState(""),[w,P]=X1.useState("now"),[V,S]=X1.useState(""),[C,D]=X1.useState("24"),[N,v]=X1.useState(!0);X1.useEffect(()=>{if(Z)M(null),S(T9(new Date().toISOString()))},[Z]);let u=async(k)=>{k.preventDefault(),M(null);let b=w==="at"?new Date(V):null;if(b&&Number.isNaN(b.getTime())){M("Pick a date and time, or make it as of now.");return}if(b&&b.getTime()>Date.now()){M("A branch is made as of now or a moment before it.");return}T(!0);let E=await W0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(C)*3600),...b?{at:{instant:b.toISOString()}}:N?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(T(!1),!E){M(`${z0} did not answer`);return}if(!E.ok){Y(E),M(await h5(E));return}let m=await E.json();qH({name:m.name,parent:Q,token:m.token??"",readToken:m.readToken,at:(b??new Date).toISOString(),expiresAt:m.expiresAt??null,parentOrigin:z0,...m.origin?{origin:m.origin}:{}}),X(),O(""),c0(`Made ${W(m.name)}`),H()};return F.jsxDEV(R5,{open:Z,onClose:()=>{if(!B)X()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>X(),disabled:B,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:B,children:B?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(k)=>void u(k),className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Label ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"branchLabel",value:A,onChange:(k)=>O(k.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9\\-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="now",onChange:()=>P("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:N,onChange:(k)=>v(k.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="at",onChange:()=>P("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:T9(new Date().toISOString()),onChange:(k)=>S(k.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"branchLife",value:C,onChange:(k)=>D(k.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function XV({name:Q,token:U,canWrite:Z,branches:X,opens:H,open:Y,onChanged:W,refused:B,snapshotOf:T}){let R=f0(U,`/-/${Q}/clock`),M=(D)=>D.split("/").pop()??D,[A,O]=X1.useState(!1),w=(D)=>(N)=>{N.preventDefault(),A0([...Q.split("/"),"~","branches",...D?D.split("/"):[]])};if(!X)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let P=X.state==="ok"?X.data.branches:[],V=X.state==="ok"&&(X.data.named?.length??0)>0?X.data.named:[{name:M(Q),running:!0}],S=X.state==="ok"?X.data.checkedOut??M(Q):M(Q),C=async(D)=>{if(!await u4({title:`Remove the branch ${M(D)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let N=await W0(U,`/-/${Q}/branches/${D}`,{method:"DELETE"}).catch((v)=>v);if(N instanceof Error){c0(`Remove ${M(D)}: the World did not answer (${N.message})`,"error");return}if(!N.ok){B(N),c0(`Remove ${M(D)}: ${await h5(N)}`,"error");return}KU(D),c0(`Removed ${M(D)}`),W(),A0([...Q.split("/"),"~","branches"])};if(Y){let D=Y.includes("/")?P.find((v)=>v.name===Y):void 0,N=Y.includes("/")?void 0:V.find((v)=>v.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${a1}/${Q}/~/branches`,onClick:w(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(v2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"&&!D&&!N?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,D?F.jsxDEV(HV,{name:Q,b:D,canWrite:Z,opens:H(D.name),remove:()=>void C(D.name)},void 0,!1,void 0,this):null,N&&!D?F.jsxDEV(YV,{name:Q,token:U,b:N,served:N.name===S,canWrite:Z,canServe:X.state==="ok"&&Boolean(X.data.canServe)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}return F.jsxDEV("div",{"aria-labelledby":"branches",children:[F.jsxDEV("div",{className:"branches-head",children:[F.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",F.jsxDEV("b",{children:S},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),Z?F.jsxDEV("div",{className:"head-actions",children:[T?null:F.jsxDEV(KV,{name:Q,token:U,clock:R,refused:B},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>O(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:[V.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/branches/${D.name}`,onClick:w(D.name),children:F.jsxDEV("b",{children:D.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.name===S?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${D.name}`,!0,void 0,this)),P.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${a1}/${Q}/~/branches/${D.name}`,onClick:w(D.name),children:F.jsxDEV("b",{children:M(D.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:M(D.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.at?.instant?F.jsxDEV(R0,{iso:D.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(R0,{iso:D.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.expiresAt?F.jsxDEV(R0,{iso:D.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},D.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(YO,{name:Q,token:U,open:A,onClose:()=>O(!1),onMade:W,refused:B},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HV({name:Q,b:U,canWrite:Z,opens:X,remove:H}){let Y=(T)=>T.split("/").pop()??T,W=UH(U.name),B=f0(W,W?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[HO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[X?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>GO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,Z?F.jsxDEV("button",{type:"button",className:"danger-button",onClick:H,children:"Remove…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:U.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Y(U.from??Q)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.at?.instant?F.jsxDEV(R0,{iso:U.at.instant},void 0,!1,void 0,this):"live: it keeps its parent's time"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(R0,{iso:U.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Goes away"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.expiresAt?F.jsxDEV(R0,{iso:U.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!X?F.jsxDEV("p",{className:"mode",children:"Its tokens were handed to whoever made it: it opens, and shows its own changes, in their tab."},void 0,!1,void 0,this):null,B.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),B.data.changes.length===0?F.jsxDEV("p",{className:"mode",children:"Nothing written on it since it branched."},void 0,!1,void 0,this):F.jsxDEV(CV,{changes:B.data.changes,idPrefix:`branch-${Y(U.name)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function YV({name:Q,token:U,b:Z,served:X,canWrite:H,canServe:Y}){let[W,B]=X1.useState(!1),[T,R]=X1.useState(null),M=async()=>{B(!0),R(null);let A=await W0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}B(!1),R(A?await h5(A):`${z0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[HO," ",Z.name," ",X?F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:H&&Y&&!X?F.jsxDEV("button",{type:"button",className:"primary",disabled:W,onClick:()=>void M(),children:W?"Switching…":"Serve here"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:Z.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Kind"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:"one of this World's own branches"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"State"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Z.running?"running":"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${a1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),A0([...Q.split("/"),"~","changes"])},children:"Changes"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):Y?F.jsxDEV("p",{className:"mode",children:["“Serve here” stops this one's twins and serves ",Z.name," in its place."]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode",children:"This host serves one of the World's own branches at a time, and does not switch them from this page."},void 0,!1,void 0,this),T?F.jsxDEV("p",{role:"alert",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var rR=50,L9=(Q)=>`${Q.twin}:${Q.position}`,zO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,XU=(Q)=>{if(!Q)return"someone";if(Q.startsWith("key:")){let[U,Z]=Q.slice(4).split(" for:");return Z?`${U}, for ${Z}`:U||"a key"}if(Q.startsWith("person:"))return Q.slice(7);return Q==="machine"?"this machine":Q==="person"?"a session with no name":Q==="token:read"?"the read-only token":Q==="token"?"the World's token":Q},xJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${XU(Z)}`;if(Z.startsWith("person:")&&Z.length>7)return`by ${Z.slice(7)}`;if(Z==="machine")return"by this machine";if(Z==="person")return"by a session with no name";if(Z==="key")return"by a key";if(Z==="token:read")return"by the read-only token";if(Z==="token")return"by the World's token";return Q.actor?.kind==="system"?"by the vendor":Q.actor?.id?`by ${Q.actor.id}`:"by an app"},WO=(Q)=>Q.operation??Q.op;function zV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,X=(...R)=>R.map((M)=>Z[M]??U[M]).find((M)=>typeof M==="number"),H=[],Y=X("prompt_tokens","input_tokens"),W=X("completion_tokens","output_tokens"),B=X("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(B!==void 0)H.push(["tokens in all",B.toLocaleString()]);let T=X("cost_usd","cost");if(T!==void 0)H.push(["cost",`$${T<0.01?T.toPrecision(2):T.toFixed(2)}`]);return H}function BO({text:Q,at:U=280}){if(Q.length<=U)return F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this);return F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:[F.jsxDEV("span",{className:"text",children:[Q.slice(0,U),"…"]},void 0,!0,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:["show all ",Q.length.toLocaleString()," characters"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function N3({v:Q}){if(typeof Q==="string")return F.jsxDEV(BO,{text:Q},void 0,!1,void 0,this);if(Q===null||typeof Q!=="object")return F.jsxDEV("code",{children:String(Q)},void 0,!1,void 0,this);let U=JSON.stringify(Q,null,2);return U.length<=160?F.jsxDEV("code",{children:JSON.stringify(Q)},void 0,!1,void 0,this):F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:F.jsxDEV("code",{children:[JSON.stringify(Q).slice(0,120),"…"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("pre",{children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var WV=(Q)=>typeof Q==="string"?Q:Array.isArray(Q)?Q.map((U)=>U&&typeof U==="object"&&typeof U.text==="string"?U.text:"").filter(Boolean).join(`
249
- `):JSON.stringify(Q??"");function BV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(N3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,X=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[X.length?F.jsxDEV("dl",{className:"fields",children:X.map(([H,Y])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(N3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,Z?F.jsxDEV("ol",{className:"messages",children:Z.map((H,Y)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"role",children:typeof H.role==="string"?H.role:"message"},void 0,!1,void 0,this),F.jsxDEV(BO,{text:WV(H.content)},void 0,!1,void 0,this)]},Y,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function LO({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return F.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return F.jsxDEV("dl",{className:"fields",children:U.map(([Z,X])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(N3,{v:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var LV=(Q)=>Q.receipt?`${Q.receipt.status??""}${Q.receipt.externalId?` · ${Q.receipt.externalId}`:""}${Q.receipt.reason?` · ${Q.receipt.reason}`:""}`:Q.operation==="observed"?"observed from the vendor":Q.provenance==="placeholder"?"default data":"none: it has not left this World";function AV(Q){let U=new Map,Z=[],X=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){X.push(Y);continue}let W={...Y,copies:[]};if(Z.push(W),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,W);if(!H.has(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`))H.set(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`,W)}for(let Y of X){let W=Y.entry.landsId?U.get(`${Y.twin}:${Y.entry.landsId}`):Y.entry.aliasOf?H.get(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.aliasOf}`):void 0;if(W)W.copies.push(Y);else Z.push({...Y,copies:[]})}return Z.sort(zO)}var _H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function aR(Q){let U=[Q.entry.receipt,...Q.copies.map((H)=>H.entry.receipt)].filter((H)=>Boolean(H?.status));if(U.length===0)return null;let Z=U.find((H)=>H.status==="failed"||H.status==="refused"),X=[...U].sort((H,Y)=>(_H[Y.status]??0)-(_H[H.status]??0))[0];return Z&&!(_H[X.status]>=5)?{status:Z.status,bad:!0}:{status:X.status,bad:!1}}var A9=1280,M9=820,ZU=160,EJ=72,sR=72,X2=(Q)=>`${Q.vendor}:${Q.id}`,m8=(Q)=>`${Q.vendor}:section:${Q.section.id}`,KH=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),MV=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${j6}/${Q}/${U.vendor}${U.at.screen}`:null,TV=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(X2(Z))||KH(Z).some((X)=>Q.include.includes(X))):U.filter((Z)=>!(Q.hidden??[]).includes(X2(Z)));function RV({data:Q}){let{world:U,frame:Z,url:X,active:H,boards:Y,addTo:W,remove:B}=Q,T=X2(Z),R=Y.filter((M)=>M.include&&!M.include.includes(T)&&!KH(Z).some((A)=>M.include.includes(A)));return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(gR,{isVisible:!0,position:D1.Top,align:"start",className:"frame-label",children:[F.jsxDEV($2,{vendor:Z.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:[c1(Z.vendor)," · ",Z.kind]},void 0,!0,void 0,this),Z.changes?F.jsxDEV("a",{className:"frame-changed nodrag",href:`${a1}/${U}/~/changes`,onClick:(M)=>{M.preventDefault(),A0([...U.split("/"),"~","changes"])},title:`${r0(Z.changes,"change")} here, not in a changeset: see them in Changes`,children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),Z.changes]},void 0,!0,void 0,this):null,R.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${Z.title} to a board`,onChange:(M)=>{if(M.target.value)W(M.target.value,T)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),R.map((M)=>F.jsxDEV("option",{value:M.id,children:M.name},M.id,!1,void 0,this))]},void 0,!0,void 0,this):null,B?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>B.act(T),title:B.label,"aria-label":B.label,children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:H?"frame on":"frame",style:{width:A9,height:M9},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move",children:[F.jsxDEV($2,{vendor:Z.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:Z.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"frame-url",children:Z.url.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),X?F.jsxDEV("a",{className:"nodrag",href:X,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${Z.title} in a new tab`,children:"↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:H?"frame-body nodrag nopan nowheel":"frame-body",children:X?F.jsxDEV("iframe",{title:Z.title,src:X,loading:"lazy",style:{pointerEvents:H?"auto":"none"}},void 0,!1,void 0,this):F.jsxDEV("div",{className:"frame-none",children:[F.jsxDEV("p",{children:F.jsxDEV("strong",{children:Z.unseen==="sites-not-routed"?`This World shows ${Z.title} only at its own local address.`:`${c1(Z.vendor)}'s twin draws no page for this ${Z.kind} yet.`},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:Z.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function OV({data:Q}){return F.jsxDEV("div",{className:"section-box",style:{width:Q.width,height:Q.height},children:F.jsxDEV("span",{className:"section-label",children:[F.jsxDEV($2,{vendor:Q.vendor},void 0,!1,void 0,this),Q.label]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var IV={screen:RV,section:OV};function wV(Q){return F.jsxDEV(nX,{children:F.jsxDEV(PV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function PV({name:Q,token:U,session:Z,retry:X,snapshot:H,back:Y,canWrite:W}){let B=X1.useRef(null),T=X1.useRef(0),R=X1.useRef(Promise.resolve()),M=X1.useRef(0),[,A]=X1.useState(0),[O,w]=X1.useState({state:"loading"}),[P,V]=X1.useState(null),S=X1.useRef(0),C=X1.useRef(0),D=X1.useCallback(async()=>{let G1=M.current,B1=++S.current,I1=await W0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),C1=I1?.ok?await I1.json().catch(()=>null):null;if(B1<C.current)return;if(C.current=B1,!C1?.frames||!C1.boards||!C1.version){let K1=I1?`the World answered ${I1.status}`:"the World did not answer";w((u1)=>u1.state==="ok"?u1:{state:"error",status:I1?.status??0,error:K1}),V(K1);return}if(V(null),G1===M.current&&T.current===0)B.current={boards:C1.boards,version:C1.version};w({state:"ok",data:C1})},[U,Q]);X1.useEffect(()=>{D();let G1=setInterval(()=>{if(!document.hidden)D()},1e4);return()=>clearInterval(G1)},[D]);let N=O.state==="ok"?O.data.frames:[],v=B.current?.boards??[{id:"everything",name:"Everything"}],[u,h]=X1.useState("everything"),k=v.find((G1)=>G1.id===u)??v[0],b=W&&!H,E=X1.useCallback((G1)=>{if(!B.current)return c0("The board is being read again: make that change once it shows","error"),Promise.resolve();B.current={...B.current,boards:G1(B.current.boards)},T.current+=1,M.current+=1,A((I1)=>I1+1);let B1=R.current.then(async()=>{let I1=B.current;if(!I1)return;try{let C1=await W0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:I1.boards,version:I1.version}),signal:AbortSignal.timeout(15000)}),K1=await C1.json().catch(()=>null);if(C1.ok&&K1?.boards&&K1.version)B.current={boards:T.current>1&&B.current?B.current.boards:K1.boards,version:K1.version};else if(C1.status===409&&K1?.boards&&K1.version)B.current={boards:K1.boards,version:K1.version},c0("Someone else changed the board first: it is shown as they left it","error");else throw Error(K1?.error??`the World answered ${C1.status}`)}catch(C1){c0(`The board was not kept: ${C1 instanceof Error?C1.message:String(C1)}`,"error"),B.current=null;let K1=await W0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),u1=K1?.ok?await K1.json().catch(()=>null):null;if(u1?.boards&&u1.version)B.current={boards:u1.boards,version:u1.version}}}).finally(()=>{if(T.current-=1,M.current+=1,A((I1)=>I1+1),T.current===0&&!B.current)D()});return R.current=B1,B1},[U,Q,D]),m=(G1,B1)=>{E((I1)=>I1.map((C1)=>C1.id===G1?B1(C1):C1))},e=TV(k,N),Q1=N.filter((G1)=>G1.changes&&!e.includes(G1)).reduce((G1,B1)=>G1+B1.changes,0),[J1,x]=X1.useState(null),g=bJ(),c=X1.useCallback(()=>{let G1=new Map;for(let N1 of e){let Q0=k.placed?.[X2(N1)];if(Q0)G1.set(X2(N1),Q0)}let B1=Math.max(-ZU,...[...G1.values()].map((N1)=>N1.y+M9)),I1=[...new Set(e.map(m8))];for(let N1 of I1){let Q0=e.filter((O0)=>m8(O0)===N1),b1=Q0.filter((O0)=>G1.has(X2(O0))).map((O0)=>G1.get(X2(O0))),a0=b1.length?Math.max(...b1.map((O0)=>O0.x))+A9+ZU:0,q2=b1.length?Math.min(...b1.map((O0)=>O0.y)):B1+ZU+EJ*2+sR;for(let O0 of Q0)if(!G1.has(X2(O0)))G1.set(X2(O0),{x:a0,y:q2}),a0+=A9+ZU;B1=Math.max(B1,q2+M9)}let C1=v.filter((N1)=>N1.include),K1=(N1,Q0)=>m(N1,(b1)=>({...b1,include:[...b1.include??[],Q0]})),u1={label:k.include?"Take it off this board":"Hide it",act:(N1)=>m(k.id,(Q0)=>Q0.include?{...Q0,include:Q0.include.filter((b1)=>b1!==N1)}:{...Q0,hidden:[...Q0.hidden??[],N1]})};return e.map((N1)=>({id:X2(N1),type:"screen",dragHandle:".frame-bar",draggable:b,position:G1.get(X2(N1)),data:{world:Q,frame:N1,url:MV(Q,N1),active:!1,boards:b?C1:[],addTo:K1,remove:!b||k.include&&!k.include.includes(X2(N1))?null:u1}}))},[JSON.stringify(e),JSON.stringify(k),JSON.stringify(v.map((G1)=>[G1.id,G1.name,G1.include])),Q,b]),[a,d,t]=DR([]),y=X1.useRef("");X1.useEffect(()=>{let G1=c();if(d(G1.map((B1)=>({...B1,data:{...B1.data,active:B1.id===J1}}))),G1.length&&y.current!==k.id)y.current=k.id,requestAnimationFrame(()=>{g.fitView({padding:0.08,duration:0})})},[c,d]),X1.useEffect(()=>{d((G1)=>G1.map((B1)=>B1.data.active===(B1.id===J1)?B1:{...B1,data:{...B1.data,active:B1.id===J1}}))},[J1,d]),X1.useEffect(()=>{let G1=(B1)=>{if(B1.key==="Escape")x(null)};return document.addEventListener("keydown",G1),()=>document.removeEventListener("keydown",G1)},[]);let p=X1.useMemo(()=>{let G1=new Map;for(let B1 of a){let I1=m8(B1.data.frame);G1.set(I1,[...G1.get(I1)??[],B1])}return[...G1].map(([B1,I1])=>{let C1=Math.min(...I1.map((b1)=>b1.position.x))-EJ,K1=Math.min(...I1.map((b1)=>b1.position.y))-EJ-sR,u1=I1[0].data.frame,N1=Math.max(...I1.map((b1)=>b1.position.x))+A9+EJ-C1,Q0=Math.max(...I1.map((b1)=>b1.position.y))+M9+EJ-K1;return{id:`box:${B1}`,type:"section",position:{x:C1,y:K1},width:N1,height:Q0,zIndex:-1,draggable:!1,selectable:!1,data:{vendor:u1.vendor,label:`${c1(u1.vendor)} · ${u1.section.title}`,width:N1,height:Q0}}})},[a]),q1=()=>m(k.id,(G1)=>({...G1,placed:{...G1.placed??{},...Object.fromEntries(a.map((B1)=>[B1.id,{x:Math.round(B1.position.x),y:Math.round(B1.position.y)}]))}})),s=(G1)=>{x(G1);let B1=g.getNode(G1);if(!B1)return;let I1=Math.min((window.innerWidth-300)/A9,(window.innerHeight-120)/M9,1);g.setCenter(B1.position.x+A9/2-130/I1,B1.position.y+M9/2,{zoom:I1,duration:400})},W1=()=>{let G1=`board-${Date.now().toString(36)}`;h(G1),E((B1)=>[...B1,{id:G1,name:`Board ${B1.length}`,include:[]}])},R1=()=>{let G1=window.prompt("Name this board",k.name)?.trim();if(G1)m(k.id,(B1)=>({...B1,name:G1.slice(0,80)}))},T1=()=>{let G1=k.id;h("everything"),E((B1)=>B1.filter((I1)=>I1.id!==G1))},A1=[...new Map(N.map((G1)=>[m8(G1),G1])).values()],U1=k.include?[...A1.filter((G1)=>!KH(G1).some((B1)=>k.include.includes(B1))).map((G1)=>({key:m8(G1),label:`${c1(G1.vendor)} · ${G1.section.title} (all)`})),...N.filter((G1)=>!e.includes(G1)).map((G1)=>({key:X2(G1),label:G1.title}))]:[],w1=k.include?[]:N.filter((G1)=>!e.includes(G1)),v1=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,M1=Z.state==="ok"&&O.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",children:F.jsxDEV(kR,{nodes:M1?[...p,...a]:[],onNodesChange:(G1)=>t(G1.filter((B1)=>!("id"in B1)||!String(B1.id).startsWith("box:"))),nodeTypes:IV,onNodeDragStop:q1,onNodeClick:(G1,B1)=>{if(!B1.id.startsWith("box:"))x(B1.id)},onPaneClick:()=>x(null),minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!1,zoomOnDoubleClick:!1,colorMode:v1?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(bR,{variant:m4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(x8,{position:"top-left",className:"float layers",children:[F.jsxDEV("div",{className:"float-head",children:[F.jsxDEV("button",{type:"button",className:"back",onClick:Y,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"float-title",children:[F.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],H?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"board-tabs",role:"tablist","aria-label":"Boards",children:[v.map((G1)=>F.jsxDEV("button",{type:"button",role:"tab","aria-selected":G1.id===k.id,className:G1.id===k.id?"on":void 0,onClick:()=>h(G1.id),onDoubleClick:b&&G1.id===k.id&&G1.include?R1:void 0,children:G1.name},G1.id,!1,void 0,this)),b?F.jsxDEV("button",{type:"button",className:"ghost",onClick:W1,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k.include&&b?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:R1,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:T1,children:"Delete board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("ul",{className:"layer-list","aria-label":"Frames",children:[...new Set(e.map(m8))].map((G1)=>{let B1=e.filter((I1)=>m8(I1)===G1);return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"layer-section",children:[F.jsxDEV($2,{vendor:B1[0].vendor},void 0,!1,void 0,this),c1(B1[0].vendor)," · ",B1[0].section.title]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:B1.map((I1)=>F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:J1===X2(I1)?"on":void 0,onClick:()=>s(X2(I1)),children:[F.jsxDEV("span",{children:I1.title},void 0,!1,void 0,this),I1.changes?F.jsxDEV("span",{className:"layer-changed",title:`${r0(I1.changes,"change")}, not in a changeset`,children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),I1.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},X2(I1),!1,void 0,this))},void 0,!1,void 0,this)]},G1,!0,void 0,this)})},void 0,!1,void 0,this),k.include&&!e.length?F.jsxDEV("p",{className:"mode pad-s",children:"An empty board: add frames from Everything, or below."},void 0,!1,void 0,this):null,U1.length&&b?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(G1)=>{let B1=G1.target.value;if(B1)m(k.id,(I1)=>({...I1,include:[...I1.include??[],B1]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),U1.map((G1)=>F.jsxDEV("option",{value:G1.key,children:G1.label},G1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,w1.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",w1.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:w1.map((G1)=>F.jsxDEV("li",{children:b?F.jsxDEV("button",{type:"button",onClick:()=>m(k.id,(B1)=>({...B1,hidden:(B1.hidden??[]).filter((I1)=>I1!==X2(G1))})),children:[F.jsxDEV("span",{children:G1.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"pad-s",children:G1.title},void 0,!1,void 0,this)},X2(G1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Q1?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>h("everything"),children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),r0(Q1,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(v2,{load:O,what:"the board"},void 0,!1,void 0,this),P&&O.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",P,"): it shows what was last read."]},void 0,!0,void 0,this):null,Z.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Z.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",Z.error," ",F.jsxDEV("button",{type:"button",onClick:X,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(x8,{position:"top-center",className:"float hint mode",children:J1?`Using ${e.find((G1)=>X2(G1)===J1)?.title??J1} · Esc to leave`:"Drag to pan · scroll to zoom · click a frame to use it"},void 0,!1,void 0,this),F.jsxDEV(hR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(mR,{pannable:!0,zoomable:!0,nodeBorderRadius:8,position:"bottom-right"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var AO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),NV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function YU(Q){let U=Q.actions.filter(NV).length,Z=Q.actions.length-U,X=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((T)=>T.status==="deployed"),...X.filter((T)=>T.status==="confirmed")].map((T)=>T.actionId)).size,W=new Set([...H.filter((T)=>T.status==="refused"||T.status==="failed"),...X.filter((T)=>T.status==="failed")].map((T)=>T.actionId)).size,B={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...B};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...B};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...B};if(X.some((T)=>T.status==="replayed")&&X.every((T)=>T.status==="replayed"||T.status==="skipped"))return{label:"Pushed",tone:"good",...B};return{label:"Not sent",tone:"plain",...B}}var JH=(Q)=>Q.message??Q.narration?.split(`
250
- `)[0]?.replace(/ setting .*$/,"")??Q.name;function MO(Q,U=1){let Z=Q.currentHash??Q.contentHash,X=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===Z).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===Z?Q.verification:null;if(H&&!H.passed)return{label:"Checks failed",tone:"bad"};if(X>0&&X<U)return{label:`Approved by ${X} of ${U}`,tone:"plain"};if(X>0)return{label:`Approved by ${X}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function tR({name:Q,token:U,signsAs:Z,c:X,canWrite:H,rooted:Y,refused:W,onChanged:B,part:T,required:R}){let M=T==="head",A=T==="review",[O,w]=X1.useState(null),[P,V]=X1.useState(!1),[S,C]=X1.useState(""),[D,N]=X1.useState(""),[v,u]=X1.useState(null),h=f0(U,`/-/${Q}/origin`),k=YU(X),b=MO(X,R),E=AO(X),m=[...new Set(E.map((s)=>s.twin))],e=m.some((s)=>Y.includes(s)),Q1=(s)=>s===(X.currentHash??X.contentHash),J1=X.applied?.receipts??[],x=(X.deployed??[]).filter((s)=>s.status!=="landed"),g=J1.filter((s)=>s.status==="confirmed").length,c=x.filter((s)=>s.status==="deployed"),a=async(s,W1,R1,T1)=>{w(s),u(null);try{let A1=await W0(U,W1,{method:"POST",...R1===void 0?{}:{body:JSON.stringify(R1)}});if(!A1.ok)return W(A1),u({what:s,...Q2(await L3(A1))}),!1;if(T1)c0(T1);return B(),!0}catch(A1){return u({what:s,text:`the World did not answer (${A1 instanceof Error?A1.message:String(A1)})`,acts:[]}),!1}finally{w(null)}},d=()=>{a("Verify",`/-/${Q}/changesets/${X.name}/verify`,void 0,"Verified: the checks ran over it")},t=async(s)=>{if(s.preventDefault(),await a("Approve",`/-/${Q}/changesets/${X.name}/approve`,{...S.trim()?{note:S.trim()}:{},...Z===null&&D.trim()?{as:D.trim()}:{}},"Approved"))V(!1),C("")},y=async()=>{let s=m.filter((W1)=>Y.includes(W1));if(!await u4({title:`Deploy ${X.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",X.actions.length," change",X.actions.length===1?"":"s"," against the real account",s.length===1?"":"s"," behind ",I8(s.map(c1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:X.name}))return;w("Deploy"),u(null);try{let W1=await W0(U,`/-/${Q}/deploy/${X.name}`,{method:"POST",body:JSON.stringify({confirm:X.name})});if(!W1.ok){W(W1),u({what:"Deploy",...Q2(await L3(W1))});return}let R1=await W0(U,`/-/${Q}/changesets/${X.name}`),T1=R1.ok?await R1.json():null;if(!T1){c0("Deploy: sent; reading its receipts failed","info"),B();return}let A1=YU(T1);c0(`Deploy: ${A1.performed} of ${A1.total} change${A1.total===1?"":"s"} performed at the vendor${A1.failed?`; ${A1.failed} refused or failed`:""}`,A1.failed?"error":A1.performed?"ok":"info"),B()}catch(W1){u({what:"Deploy",text:`the World did not answer (${W1 instanceof Error?W1.message:String(W1)})`,acts:[]})}finally{w(null)}},p=!H?"This session reads the World; it changes nothing":k.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?FH(h.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[M?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"changeset-title",children:[X.message??X.name," ",F.jsxDEV("span",{className:`badge cs-${k.tone}`,children:k.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:X.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(R0,{iso:X.createdAt},void 0,!1,void 0,this)," · ",X.actions.length," change",X.actions.length===1?"":"s"," at ",I8(m.map(c1))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[F.jsxDEV("button",{type:"button",onClick:d,disabled:Boolean(p)||O!==null,title:p??"Replay it in a throwaway World and run the World's checks",children:O==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(p)||O!==null,title:p??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),e?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void y(),disabled:Boolean(p)||O!==null,title:p??"Perform it against the real accounts behind this World",children:O==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p&&k.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[p,"."]},void 0,!0,void 0,this):null,v?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:v.what},void 0,!1,void 0,this),": ",v.text]},void 0,!0,void 0,this),v.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:d,disabled:O!==null,children:"Verify"},void 0,!1,void 0,this):null,v.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:O!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(JO,{name:Q,acts:v.acts},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null,A?F.jsxDEV(F.Fragment,{children:[X.narration?F.jsxDEV("p",{className:"narration",children:X.narration},void 0,!1,void 0,this):null,F.jsxDEV("h4",{children:"Where it went"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"block where",children:[k.performed>0?F.jsxDEV("p",{className:"pad",children:[k.performed>=k.total?"Deployed":"Partly deployed",": ",k.performed," of ",k.total," change",k.total===1?"":"s",k.own?` (and ${k.own} of the World's own, which stay in it)`:""," performed at ",I8([...new Set([...c.map((s)=>s.service),...J1.filter((s)=>s.status==="confirmed").map((s)=>s.service)].map(c1))]),c.length?` (${c.length} from here`:" (",c.length&&g?", ":"",g?`${g} by the remote`:"",")."]},void 0,!0,void 0,this):k.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",q1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:q1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,X.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(R0,{iso:X.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,": every change was replayed there. No vendor has performed any of it."]},void 0,!0,void 0,this):k.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",X.applied?.outcome==="refused"?" A push was refused (below); Push sends it again.":F.jsxDEV(F.Fragment,{children:[" Push sends it to the remote World",e?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,k.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[k.failed," change",k.failed===1?" was":"s were"," refused or failed at the vendor",[...x.filter((s)=>s.reason&&(s.status==="refused"||s.status==="failed")).map((s)=>s.reason),...J1.filter((s)=>s.status==="failed"&&s.error).map((s)=>s.error)].slice(0,3).map((s)=>`: ${Q2(s).text}`).join(""),"."]},void 0,!0,void 0,this):null,X.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:X.applied.refusal.map((s,W1)=>F.jsxDEV("li",{className:"mode",children:Q2(s).text},W1,!1,void 0,this))},void 0,!1,void 0,this):null,x.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:x.map((s)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:s.status==="refused"||s.status==="failed"?"badge cs-bad":s.status==="deployed"?"badge cs-done":"badge",children:s.status},void 0,!1,void 0,this)," ",c1(s.service)," ",s.status==="deployed"?s.url?F.jsxDEV("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",children:s.externalId??s.url},void 0,!1,void 0,this):s.externalId?F.jsxDEV("code",{children:s.externalId},void 0,!1,void 0,this):null:null,s.reason?F.jsxDEV("span",{className:"mode",children:[" · ",Q2(s.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(R0,{iso:s.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${s.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the remote"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:J1.map((s)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:s.status==="failed"?"badge cs-bad":s.status==="confirmed"?"badge cs-done":"badge",children:s.status},void 0,!1,void 0,this)," ",c1(s.service)," ",F.jsxDEV("span",{className:"mode",children:s.status==="replayed"?"replayed at the remote World":s.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),s.status==="confirmed"&&s.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:s.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,s.error?F.jsxDEV("span",{className:"mode",children:[" · ",Q2(s.error).text]},void 0,!0,void 0,this):null]},`r:${s.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!e&&k.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:["No vendor it changes is connected to its real service here, so it does not deploy from this World. ",F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/services`,onClick:(s)=>{s.preventDefault(),A0([...Q.split("/"),"~","settings","services"])},children:"Connect a vendor in Settings › Real services"},void 0,!1,void 0,this)," to deploy."]},void 0,!0,void 0,this):null,F.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!X.verification?F.jsxDEV("p",{className:"mode",children:"Not verified yet. Verify replays it in a throwaway World and runs this World's checks over the result."},void 0,!1,void 0,this):F.jsxDEV("div",{className:Q1(X.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[X.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(R0,{iso:X.verification.at},void 0,!1,void 0,this),Q1(X.verification.contentHash)?null:F.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.verification.results.length?F.jsxDEV("ul",{className:"checks",children:X.verification.results.map((s)=>F.jsxDEV("li",{children:[s.passed?"✓":"✗"," ",F.jsxDEV("code",{children:s.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:c1(s.service)},void 0,!1,void 0,this)]},s.id,!0,void 0,this))},void 0,!1,void 0,this):null,X.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:X.verification.refusals.map((s,W1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:s.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[c1(s.service),": ",s.reason]},void 0,!0,void 0,this)]},W1,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("h4",{children:"Approvals"},void 0,!1,void 0,this),X.approvals.length===0?F.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"approvals",children:X.approvals.map((s,W1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:s.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(R0,{iso:s.at},void 0,!1,void 0,this),Q1(s.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),s.note?F.jsxDEV("div",{className:"mode",children:["“",s.note,"”"]},void 0,!0,void 0,this):null]},W1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(R5,{open:P,onClose:()=>{if(!O)V(!1)},title:`Approve ${X.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:O!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:O!==null,children:O==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(s)=>void t(s),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.jsxDEV("b",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,". A later change to it shows your approval as for an earlier version."]},void 0,!0,void 0,this),Z===null?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:D,onChange:(s)=>N(s.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"This World was opened with its token, which names no person: the approval records the name you give."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Note ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("textarea",{name:"approveNote",value:S,onChange:(s)=>C(s.target.value),rows:3,maxLength:500},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var TO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function CV({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((X)=>X.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((X)=>{let H=Q.filter((W)=>W.twin===X).map((W)=>W.entry),Y=[...new Set(H.map((W)=>`${W.subject.type}:${W.subject.id}`))];return F.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${X}`,children:[F.jsxDEV("h3",{id:`${U}-${X}`,className:"vendor-cell",children:[F.jsxDEV($2,{vendor:X},void 0,!1,void 0,this),c1(X)," ",F.jsxDEV("span",{className:"mode",children:["· ",r0(Y.length,"record"),", ",r0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let B=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),T=B[B.length-1],R=Q4(T),M={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:T.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",R.label?F.jsxDEV("span",{className:"label",children:["“",R.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:v6(T)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.map((A)=>{let O=A.fields??{},w=Object.entries(O).filter(([V,S])=>!(V in M)||!TO(M[V],S)),P=M;return M={...M,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:Q4(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(R0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",xJ(A)]},void 0,!0,void 0,this),w.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${Q4(A).what} set`,children:w.map(([V,S])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in P?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(N3,{v:P[V]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(N3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(N3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V,!0,void 0,this))},void 0,!1,void 0,this)]},A.id,!0,void 0,this)})]},W,!0,void 0,this)})},void 0,!1,void 0,this)]},X,!0,void 0,this)})},void 0,!1,void 0,this)}function fV({name:Q,token:U,changes:Z,canWrite:X,refused:H,onCut:Y,pinned:W,generated:B,inputRef:T,author:R}){let[M,A]=X1.useState(""),[O,w]=X1.useState(!1),[P,V]=X1.useState([]),S=(D,N,v)=>{V((u)=>[{ok:D,text:N,at:new Date().toISOString(),n:++gJ,...v?.length?{acts:v}:{}},...u].slice(0,4))},C=async(D)=>{D.preventDefault(),w(!0);try{let N=await W0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(M.trim()?{message:M.trim()}:{})});if(!N.ok){H(N);let u=Q2(await L3(N));S(!1,`Cut a changeset: ${u.text}`,u.acts);return}let v=await N.json();S(!0,`Cut ${v.name??"a changeset"}: ${r0(v.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(N){S(!1,`Cut a changeset: the World did not answer (${N instanceof Error?N.message:String(N)})`)}finally{w(!1)}};if(W){let D=!X?"This session reads the World; it changes nothing":Z===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(V6,{log:P,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(N)=>void C(N),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(N)=>{N.preventDefault(),A0(R.account.slice(a1.length+1).split("/"))},children:R.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:T,name:"changesetMessage","aria-label":"Summary",value:M,onChange:(N)=>A(N.target.value),placeholder:Z===0?"Nothing to cut":B?"Summary (optional)":"Summary (required)",required:!B,maxLength:200,disabled:Boolean(D),title:D??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(D)||O,title:D??void 0,children:O?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",r0(Z,"change"),R?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:R.branch},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!X||Z===0)return F.jsxDEV(V6,{log:P,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(D)=>void C(D),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",Z===1?"this change":`these ${Z} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:M,onChange:(D)=>A(D.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:Z===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:O||Z===0,children:O?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(V6,{log:P,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function SV({name:Q,token:U}){let[Z,X]=X1.useState(0),H=f0(U,`/-/${Q}/keys`,Z),[Y,W]=X1.useState(!1),[B,T]=X1.useState(""),[R,M]=X1.useState("write"),[A,O]=X1.useState(!1),[w,P]=X1.useState(null),[V,S]=X1.useState(null),[C,D]=X1.useState(null),N=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,k=await W0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=k?await k.json().catch(()=>({})):{error:`${z0} did not answer`};if(!k?.ok||!b.key){c0(b.error?Q2(b.error).text:"refused","error");return}D(`${window.location.origin}${a1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),X((E)=>E+1)},v=async(h)=>{h.preventDefault(),O(!0),P(null);let k=await W0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:B.trim(),scope:R})}).catch(()=>null);O(!1);let b=k?await k.json().catch(()=>({})):{error:`${z0} did not answer`};if(!k?.ok||!b.key){P(b.error?Q2(b.error).text:"refused");return}W(!1),S({key:b.key,name:B.trim()}),T(""),X((E)=>E+1)},u=async(h)=>{if(!await u4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let k=await W0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(k.ok)c0(`Revoked ${h.name}`);else c0(await h5(k),"error");X((b)=>b+1)};return F.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[F.jsxDEV("div",{className:"keys-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"What an app, a script or a CI job holds to reach this World: each named for what holds it and revoked alone. People open the World as themselves; keys are for software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k2()?F.jsxDEV("a",{className:"button primary",href:`${k2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):F.jsxDEV("div",{className:"head-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>void N(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{P(null),W(!0)},children:"Make a key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:H,what:"the keys",retry:()=>X((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:rF(h.createdAt),children:aF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?aF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(pA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void u(h)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},h.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(R5,{open:Y,onClose:()=>{if(!A)W(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>W(!1),disabled:A,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"make-key",disabled:A||!B.trim(),children:A?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"make-key",onSubmit:v,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:B,onChange:(h)=>T(h.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:R,onChange:(h)=>M(h.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w?F.jsxDEV("p",{role:"alert",children:w},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(R5,{open:Boolean(V),onClose:()=>S(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>S(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Copy it now: it is shown this once. Put it where the app reads its secrets."},void 0,!1,void 0,this),V?F.jsxDEV(tF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:Boolean(C),onClose:()=>D(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>D(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),C?F.jsxDEV(tF,{label:"Link",value:C,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var gJ=0;function V6({log:Q,name:U}){if(Q.length===0)return null;return F.jsxDEV("ul",{className:"narration-log",role:"status","aria-live":"polite",children:Q.map((Z)=>F.jsxDEV("li",{className:Z.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(R0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(JO,{name:U,acts:Z.acts},void 0,!1,void 0,this):null]},Z.n,!0,void 0,this))},void 0,!1,void 0,this)}function RO(Q,U,Z,X){let[H,Y]=X1.useState(0),W=H*1e5+Math.floor(Z/2),B=f0(U,`/-/${Q}/origin`,W),T=f0(U,`/-/${Q}/diff`,W),R=f0(U,`/-/${Q}/changesets`,W),[M,A]=X1.useState([]),[O,w]=X1.useState(null),P=(u,h,k)=>{if(A((b)=>[{ok:u,text:h,at:new Date().toISOString(),n:++gJ,...k?.length?{acts:k}:{}},...b].slice(0,8)),!u)c0(h,"error")},V=async(u,h,k)=>{w(u);try{let b=await W0(U,`/-/${Q}/${h}`,k);if(!b.ok){X(b);let E=Q2(await L3(b));return P(!1,`${u}: ${E.text}`,E.acts),null}return await b.json()}catch(b){return P(!1,`${u}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{w(null),Y((b)=>b+1)}},S=B.state==="ok"&&B.data.origin?FH(B.data.origin):null,C=T.state==="ok"?T.data.changes.length:null,D=R.state==="ok"&&S?GV(R.data.changesets.filter((u)=>!u.pushedBy)).sort((u,h)=>u.createdAt.localeCompare(h.createdAt)):[];return{origin:B,diff:T,sets:R,there:S,changes:C,waiting:D,log:M,busy:O,say:P,send:V,push:async()=>{let u=await V("Push","origin/push",{method:"POST"});if(!u)return;if(u.pushed.length===0){P(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of u.pushed){let k=h.receipts??[],b=k.filter((J1)=>J1.status==="replayed").length,E=k.filter((J1)=>J1.status==="confirmed").length,m=k.filter((J1)=>J1.status==="failed").length,e=h.outcome==="applied"&&m===0;if(h.outcome==="refused"){P(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((J1)=>Q2(J1).text).join("; ")}`:""}.`);continue}let Q1=[`${b} of ${r0(k.length,"change")} replayed there`,...E?[`${E} performed at the vendor by the remote`]:[],...m?[`${m} failed`]:[]];P(e,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${S??"the remote"}: ${Q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((J1)=>Q2(J1).text).join("; ")})`:""}.`)}},pull:async()=>{let u=await V("Pull","origin/pull",{method:"POST"});if(!u)return;let h=Object.entries(u.appended).filter(([,b])=>b>0),k=u.rebased.flatMap((b)=>b.conflicts.map((E)=>`${c1(b.twin)} ${E.subject.type}:${E.subject.id} ${E.field}`));P(k.length===0,`Pulled from ${S??"the remote"}: ${h.length?h.map(([b,E])=>`${r0(E,"entry")} at ${c1(b)}`).join(", "):"nothing new"}${k.length?`; conflicts at ${k.join(", ")}`:""}.`)}}}function jV({name:Q,token:U,canWrite:Z,tick:X,refused:H}){let{origin:Y,there:W,changes:B,log:T,busy:R,say:M,send:A,push:O,pull:w}=RO(Q,U,X,H),[P,V]=X1.useState(""),[S,C]=X1.useState(""),[D,N]=X1.useState(!1),v=async(h)=>{h.preventDefault();let k=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:P.trim(),token:S.trim()})});if(k){let b=Object.values(k.appended??{}).reduce((E,m)=>E+m,0);M(!0,`The remote is ${FH(k.origin)}: its history came in (${r0(b,"entry")}).`),C(""),N(!1)}},u=!Z?"This session reads the World; it changes nothing":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"block remote",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{children:"Origin"},void 0,!1,void 0,this),Z?F.jsxDEV("button",{type:"button",onClick:()=>{V(W??""),N(!D)},"aria-expanded":D,children:W?"Change the remote…":"Name a remote…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"pad",children:[Y.state==="ok"?W?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:W},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(R0,{iso:Y.data.origin.fetchedAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("p",{children:"No remote — this World keeps its default data. Name one to push its changesets to a shared World and pull what others pushed there."},void 0,!1,void 0,this):F.jsxDEV(v2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),D?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void v(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:P,onChange:(h)=>V(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:S,onChange:(h)=>C(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:R!==null,children:R==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>N(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(V6,{log:T,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vV({name:Q,token:U,canWrite:Z,refused:X}){let[H,Y]=X1.useState(0),W=f0(U,`/-/${Q}/twins`,H),B=f0(U,`/-/${Q}/links`,H),T=f0(U,`/-/${Q}/requests?hours=24`,H),[R,M]=X1.useState({}),[A,O]=X1.useState(null),[w,P]=X1.useState(""),[V,S]=X1.useState(!1),[C,D]=X1.useState([]),N=(E,m,e)=>{if(D((Q1)=>[{ok:E,text:m,at:new Date().toISOString(),n:++gJ,...e?.length?{acts:e}:{}},...Q1].slice(0,6)),!E)c0(m,"error")},v=B.state==="ok"?Object.keys(B.data.links).sort():[];X1.useEffect(()=>{let E=!0;return Promise.all(v.map(async(m)=>{let e=await W0(U,`/-/${Q}/twins/${m}/credential`).catch(()=>null),Q1=e?.ok?await e.json():null;return[m,Q1?.credential??null]})).then((m)=>{if(E)M(Object.fromEntries(m))}),()=>{E=!1}},[Q,U,v.join(","),H]);let u=async(E)=>{if(E.preventDefault(),!A||!w)return;S(!0);let m=await W0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:w,headers:{"content-type":"text/plain"}}).catch(()=>null);if(S(!1),!m){N(!1,`Seal ${A.vendor}: ${z0} did not answer`);return}if(!m.ok){X(m);let Q1=Q2(await L3(m));N(!1,`Seal ${c1(A.vendor)}: ${Q1.text}`,Q1.acts);return}let e=await m.json().catch(()=>({}));N(!0,`Sealed a credential for ${c1(A.vendor)}${e.fingerprint?` (${e.fingerprint})`:""}: it opens for ${e.boundTo??A.to} only, and is never shown again.`),P(""),O(null),Y((Q1)=>Q1+1)},h=async(E)=>{if(!await u4({title:`Remove the link ${E}?`,body:`Requests to ${j6}/${Q}/${E}/… stop being forwarded to ${B.state==="ok"?B.data.links[E]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let m=await W0(U,`/-/${Q}/links/${E}`,{method:"DELETE"}).catch(()=>null);if(!m?.ok){if(m)X(m);N(!1,`Remove ${E}: ${m?await h5(m):"the World did not answer"}`);return}N(!0,`Removed the link ${E}.`),Y((e)=>e+1)},k=(E)=>E?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge rooted",children:"sealed"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[E.fingerprint?F.jsxDEV("code",{children:E.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(R0,{iso:E.placedAt},void 0,!1,void 0,this),E.sealedBy?` · by ${E.sealedBy==="vault"?"the vault":"the host's key"}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this),b=W.state==="ok"?W.data.twins:[];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"lede",children:"A real vendor's credential lives in one place, sealed: beside this World, bound to where it goes. It is never readable back; this page says only that one is sealed, when, by what, and for where."},void 0,!1,void 0,this),F.jsxDEV(V6,{log:C,name:Q},void 0,!1,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"creds-head",children:[F.jsxDEV("div",{className:"block-head",children:F.jsxDEV("h3",{id:"creds-head",children:"Vendors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(v2,{load:W,what:"the vendors"},void 0,!1,void 0,this),W.state==="ok"?F.jsxDEV("table",{className:"dense","aria-label":"Credentials by vendor",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Bound to"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:b.map((E)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:E.twin},void 0,!1,void 0,this),c1(E.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k(E.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.credential?.boundTo?F.jsxDEV("code",{children:E.credential.boundTo},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.root?.url?F.jsxDEV("code",{children:E.root.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"none: a stand-in"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!E.root?.url,title:E.root?.url?`Seal ${c1(E.twin)}'s real credential for ${E.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{P(""),O({vendor:E.twin,to:E.root.url})},children:E.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},E.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&b.every((E)=>!E.root?.url)?F.jsxDEV("p",{className:"mode pad",children:"No vendor here has a real service behind it, so none holds a credential. Connect one in Settings › Real services; its credential is sealed here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"links-head",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{id:"links-head",children:"Links"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"a vendor with no twin, forwarded with its sealed credential"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:B,what:"the links"},void 0,!1,void 0,this),T.state==="ok"&&(T.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[T.data.journalFailures," request ",T.data.journalFailures===1?"line was":"lines were"," not kept by this World's server since it started (its links, and the twins it runs in its own process): those requests are missing from what this page counts."]},void 0,!0,void 0,this):null,B.state==="ok"&&v.length===0?F.jsxDEV("p",{className:"mode pad",children:["No links. A link forwards requests for a vendor with no twin here, at ",F.jsxDEV("code",{children:[j6,"/",Q,"/<link>/…"]},void 0,!0,void 0,this),", to that vendor's real API with the credential sealed for it."]},void 0,!0,void 0,this):null,v.length?F.jsxDEV("table",{className:"dense","aria-label":"Links",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Link"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Origin"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:"Requests, 24h"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:v.map((E)=>{let m=B.state==="ok"?B.data.links[E].origin:"",e=T.state==="ok"?T.data.twins.find((Q1)=>Q1.twin===E):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:E},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:e?F.jsxDEV("span",{title:Object.entries(e.byStatus).map(([Q1,J1])=>`${Q1}: ${J1}`).join(" · "),children:e.requests},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:[k(R[E]??null),R[E]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[E].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{P(""),O({vendor:E,to:m})},children:R[E]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(E),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},E,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:Boolean(A),onClose:()=>{if(!V)O(null)},title:`Seal ${A?c1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>O(null),disabled:V,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:V||!w,children:V?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(E)=>void u(E),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:w,onChange:(E)=>P(E.target.value),autoComplete:"off",required:!0,autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function VV({name:Q,token:U,admin:Z,canWrite:X,refused:H,onRemoved:Y,only:W}){let B=(d)=>!W||W===d,[T,R]=X1.useState(0),M=f0(U,`/-/${Q}/twins`,T),A=f0(U,`/-/${Q}/checks`,T),[O,w]=X1.useState(0),P=f0(U,`/-/${Q}/clock`,O),[V,S]=X1.useState([]),[C,D]=X1.useState(null),[N,v]=X1.useState(null),[u,h]=X1.useState(""),[k,b]=X1.useState("gated"),[E,m]=X1.useState(!1),e=(d,t,y)=>{if(S((p)=>[{ok:d,text:t,at:new Date().toISOString(),n:++gJ,...y?.length?{acts:y}:{}},...p].slice(0,6)),!d)c0(t,"error")},Q1=async(d,t,y)=>{let p=await W0(U,t,y).catch(()=>null);if(!p)return e(!1,`${d}: the World did not answer`),!1;if(!p.ok){H(p);let q1=Q2(await L3(p));return e(!1,`${d}: ${q1.text}`,q1.acts),!1}return e(!0,`${d}: done.`),R((q1)=>q1+1),!0},J1=async(d)=>{if(d.preventDefault(),!N)return;m(!0);let t=N.root??{},y=await Q1(u.trim()?`Connect ${c1(N.twin)} to ${u.trim()}`:`Disconnect ${c1(N.twin)}`,`/-/${Q}/twins/${N.twin}/root`,{method:"PUT",body:JSON.stringify(u.trim()?{...t,url:u.trim(),deploy:k}:null)});if(m(!1),y)v(null)},x=async()=>{if(!await u4({title:`Rotate the tokens of ${Q}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let d=await W0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(d.ok)D(await d.json()),e(!0,"Rotated: the new tokens are shown once, below.");else e(!1,`Rotate: ${await h5(d)}`)},g=async()=>{if(!await u4({title:`Remove ${Q}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:Q}))return;let d=await W0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((t)=>t);if(d instanceof Error){e(!1,`Remove: the host did not answer (${d.message})`);return}if(d.ok)Y();else e(!1,`Remove: ${await h5(d)}`)},c=M.state==="ok"?M.data.twins:[],a={gated:"gated: a person deploys an approved changeset",auto:"auto: a push deploys at once",hold:"hold: nothing deploys"};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(V6,{log:V,name:Q},void 0,!1,void 0,this),B("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),X?F.jsxDEV(SV,{name:Q,token:U},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"This session reads the World: its keys are managed by whoever holds its token."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B("services")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Real services"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:[c.some((d)=>d.root?.url)?null:"Every vendor here is a stand-in. ","Connect a vendor to its real service to read the real state into this World; its real credential is sealed in the Vault, and an approved changeset deploys there by its policy."]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:M,what:"the vendors"},void 0,!1,void 0,this),M.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Real services",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last read from it"},void 0,!1,void 0,this),X?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:c.map((d)=>{let t=d.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:d.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/${d.twin}`,title:`Its log and stored state · ${d.position??0} entries`,onClick:(y)=>{y.preventDefault(),A0([...Q.split("/"),d.twin])},children:c1(d.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:t?.url?F.jsxDEV("code",{children:t.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:t?.url?a[t.deploy??""]??t.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:d.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",d.refresh.failed.count??1,": ",d.refresh.failed.reason??""]},void 0,!0,void 0,this):t?.url?rF(d.refresh?.observedAt??d.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(t?.url??""),b(t?.deploy==="auto"||t?.deploy==="hold"?t.deploy:"gated"),v(d)},children:t?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!t?.url,title:t?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void u4({title:`Read ${c1(d.twin)} now?`,body:`The real ${c1(d.twin)}'s current state is read into this World. Nothing is written to ${c1(d.twin)}.`,action:"Read from it"}).then((y)=>{if(y)Q1(`Read from ${c1(d.twin)}`,`/-/${Q}/twins/${d.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},d.twin,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,B("clock")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Clock"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"The instant every vendor here stamps from. Set it and move it forward to see what happens later: renewals, expiries, scheduled sends."},void 0,!1,void 0,this),F.jsxDEV(FV,{name:Q,token:U,clock:P,canWrite:X,onChanged:()=>w((d)=>d+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B("checks")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Checks"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"JavaScript the World runs over every change before it is performed (a changeset's Verify runs them too)."},void 0,!1,void 0,this),F.jsxDEV(v2,{load:A,what:"the checks"},void 0,!1,void 0,this),A.state==="ok"?A.data.checks.length===0?F.jsxDEV("p",{className:"mode",children:"No checks: every change is performed as it comes."},void 0,!1,void 0,this):F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Checks",children:F.jsxDEV("tbody",{children:A.data.checks.map((d)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:d},void 0,!1,void 0,this)},void 0,!1,void 0,this)},d,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,Z&&!W?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),C?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:C.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:C.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void x(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void g(),children:"Remove world"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"Deletes this World and everything in it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(R5,{open:Boolean(N),onClose:()=>{if(!E)v(null)},title:`Connect ${N?c1(N.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(null),disabled:E,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:E,children:E?"Saving…":u.trim()?"Connect":"Disconnect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"connect-root",className:"stack",onSubmit:(d)=>void J1(d),children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real service's API address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"rootUrl",value:u,onChange:(d)=>h(d.target.value),placeholder:"https://api.openai.com",autoFocus:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Empty disconnects it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"rootDeploy",value:k,onChange:(d)=>b(d.target.value==="auto"?"auto":d.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((d)=>F.jsxDEV("option",{value:d,children:a[d]},d,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function OO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(dv,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this),F.jsxDEV(mA,{},void 0,!1,void 0,this),F.jsxDEV(xA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wO=E0(O8(),1);Wq();IO.createRoot(l8).render(wO.jsxDEV(OO,{},void 0,!1,void 0,this));
246
+ `)),M=R.reduce((A,O)=>A.concat(...O),[]);return[R,M]}return[[],[]]},[Q]);return z1.useEffect(()=>{let T=U?.target??ET,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let M=(P)=>{if(H.current=P.ctrlKey||P.metaKey||P.shiftKey||P.altKey,(!H.current||H.current&&!R)&&xK(P))return!1;let V=xT(P.code,B);if(Y.current.add(P[V]),hT(W,Y.current,!1)){let j=P.composedPath?.()?.[0]||P.target,f=j?.nodeName==="BUTTON"||j?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!f))P.preventDefault();K(!0)}},A=(P)=>{let N=xT(P.code,B);if(hT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(P[N]);if(P.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),K(!1)};return T?.addEventListener("keydown",M),T?.addEventListener("keyup",A),window.addEventListener("blur",O),window.addEventListener("contextmenu",O),()=>{T?.removeEventListener("keydown",M),T?.removeEventListener("keyup",A),window.removeEventListener("blur",O),window.removeEventListener("contextmenu",O)}}},[Q,K]),Z}function hT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function xT(Q,U){return U.includes(Q)?"code":"key"}var pS=()=>{let Q=x0();return z1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,Z)=>{let{panZoom:K}=Q.getState();return K?K.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[K,H,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??K,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,K]=Q.getState().transform;return{x:U,y:Z,zoom:K}},setCenter:async(U,Z,K)=>{return Q.getState().setCenter(U,Z,K)},fitBounds:async(U,Z)=>{let{width:K,height:H,minZoom:Y,maxZoom:W,panZoom:B}=Q.getState(),T=hJ(U,K,H,Y,W,Z?.padding??0.1);if(!B)return!1;return await B.setViewport(T,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:K,snapGrid:H,snapToGrid:Y,domNode:W}=Q.getState();if(!W)return U;let{x:B,y:T}=W.getBoundingClientRect(),R={x:U.x-B,y:U.y-T},M=Z.snapGrid??H,A=Z.snapToGrid??Y;return M9(R,K,A,M)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),W=g8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function KR(Q,U){let Z=[],K=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")K.set(Y.id,[Y]);else{let W=K.get(Y.id);if(W)W.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let W=K.get(Y.id);if(!W){Z.push(Y);continue}if(W[0].type==="remove")continue;if(W[0].type==="replace"){Z.push({...W[0].item});continue}let B={...Y};for(let T of W)cS(T,B);Z.push(B)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function cS(Q,U){switch(Q.type){case"select":{U.selected=Q.selected;break}case"position":{if(typeof Q.position<"u")U.position=Q.position;if(typeof Q.dragging<"u")U.dragging=Q.dragging;break}case"dimensions":{if(typeof Q.dimensions<"u"){if(U.measured={...Q.dimensions},Q.setAttributes){if(Q.setAttributes===!0||Q.setAttributes==="width")U.width=Q.dimensions.width;if(Q.setAttributes===!0||Q.setAttributes==="height")U.height=Q.dimensions.height}}if(typeof Q.resizing==="boolean")U.resizing=Q.resizing;break}}}function HR(Q,U){return KR(Q,U)}function lS(Q,U){return KR(Q,U)}function l8(Q,U){return{id:Q,type:"select",selected:U}}function R9(Q,U=new Set,Z=!1){let K=[];for(let[H,Y]of Q){let W=U.has(H);if(!(Y.selected===void 0&&!W)&&Y.selected!==W){if(Z)Y.selected=W;K.push(l8(Y.id,W))}}return K}function mT({items:Q=[],lookup:U}){let Z=[],K=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let W=U.get(Y.id),B=W?.internals?.userNode??W;if(B!==void 0&&B!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(B===void 0)Z.push({item:Y,type:"add",index:H})}for(let[H]of U)if(K.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function gT(Q){return{id:Q.id,type:"remove"}}var iS=kK("React Flow","https://reactflow.dev/");function dS(Q,U,Z={}){return JT(Q,U,{...Z,onError:Z.onError??iS})}var pT=(Q)=>lM(Q),rS=(Q)=>fK(Q);function YR(Q){return z1.forwardRef(Q)}var zR=typeof window<"u"?z1.useLayoutEffect:z1.useEffect;function cT(Q){let[U,Z]=z1.useState(BigInt(0)),[K]=z1.useState(()=>aS(()=>Z((H)=>H+BigInt(1))));return zR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function aS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var WR=z1.createContext(null);function sS({children:Q}){let U=x0(),Z=z1.useCallback((B)=>{let{nodes:T=[],setNodes:R,hasDefaultNodes:M,onNodesChange:A,nodeLookup:O,fitViewQueued:P,onNodesChangeMiddlewareMap:N}=U.getState(),V=T;for(let f of B)V=typeof f==="function"?f(V):f;let j=mT({items:V,lookup:O});for(let f of N.values())j=f(j);if(M)R(V);if(j.length>0)A?.(j);else if(P)window.requestAnimationFrame(()=>{let{fitViewQueued:f,nodes:u,setNodes:C}=U.getState();if(f)C(u)})},[]),K=cT(Z),H=z1.useCallback((B)=>{let{edges:T=[],setEdges:R,hasDefaultEdges:M,onEdgesChange:A,edgeLookup:O}=U.getState(),P=T;for(let N of B)P=typeof N==="function"?N(P):N;if(M)R(P);else if(A)A(mT({items:P,lookup:O}))},[]),Y=cT(H),W=z1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return H1.jsx(WR.Provider,{value:W,children:Q})}function tS(){let Q=z1.useContext(WR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var oS=(Q)=>!!Q.panZoom;function gJ(){let Q=pS(),U=x0(),Z=tS(),K=H0(oS),H=z1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},B=(A)=>{Z.edgeQueue.push(A)},T=(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState(),N=pT(A)?A:O.get(A.id),V=N.parentId?uK(N.position,N.measured,N.parentId,O,P):N.position,j={...N,position:V,width:N.measured?.width??N.width,height:N.measured?.height??N.height};return L9(j)},R=(A,O,P={replace:!1})=>{W((N)=>N.map((V)=>{if(V.id===A){let j=typeof O==="function"?O(V):O;return P.replace&&pT(j)?j:{...V,...j}}return V}))},M=(A,O,P={replace:!1})=>{B((N)=>N.map((V)=>{if(V.id===A){let j=typeof O==="function"?O(V):O;return P.replace&&rS(j)?j:{...V,...j}}return V}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((O)=>({...O}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:W,setEdges:B,addNodes:(A)=>{let O=Array.isArray(A)?A:[A];Z.nodeQueue.push((P)=>[...P,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];Z.edgeQueue.push((P)=>[...P,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:P}=U.getState(),[N,V,j]=P;return{nodes:A.map((f)=>({...f})),edges:O.map((f)=>({...f})),viewport:{x:N,y:V,zoom:j}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:P,edges:N,onNodesDelete:V,onEdgesDelete:j,triggerNodeChanges:f,triggerEdgeChanges:u,onDelete:C,onBeforeDelete:v}=U.getState(),{nodes:D,edges:h}=await rM({nodesToRemove:A,edgesToRemove:O,nodes:P,edges:N,onBeforeDelete:v}),E=h.length>0,b=D.length>0;if(E){let k=h.map(gT);j?.(h),u(k)}if(b){let k=D.map(gT);V?.(D),f(k)}if(b||E)C?.({nodes:D,edges:h});return{deletedNodes:D,deletedEdges:h}},getIntersectingNodes:(A,O=!0,P)=>{let N=yK(A),V=N?A:T(A),j=P!==void 0;if(!V)return[];return(P||U.getState().nodes).filter((f)=>{let u=U.getState().nodeLookup.get(f.id);if(u&&!N&&(f.id===A.id||!u.internals.positionAbsolute))return!1;let C=L9(j?f:u),v=EJ(C,V);return O&&v>0||v>=C.width*C.height||v>=V.width*V.height})},isNodeIntersecting:(A,O,P=!0)=>{let V=yK(A)?A:T(A);if(!V)return!1;let j=EJ(V,O);return P&&j>0||j>=O.width*O.height||j>=V.width*V.height},updateNode:R,updateNodeData:(A,O,P={replace:!1})=>{R(A,(N)=>{let V=typeof O==="function"?O(N):O;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},updateEdge:M,updateEdgeData:(A,O,P={replace:!1})=>{M(A,(N)=>{let V=typeof O==="function"?O(N):O;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState();return jK(A,{nodeLookup:O,nodeOrigin:P})},getHandleConnections:({type:A,id:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??tM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),Z.nodeQueue.push((P)=>[...P]),O.promise}}},[]);return z1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var lT=(Q)=>Q.selected,nS=typeof window<"u"?window:void 0;function eS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=x0(),{deleteElements:K}=gJ(),H=mJ(Q,{actInsideInputWithModifier:!1}),Y=mJ(U,{target:nS});z1.useEffect(()=>{if(H){let{edges:W,nodes:B}=Z.getState();K({nodes:B.filter(lT),edges:W.filter(lT)}),Z.setState({nodesSelectionActive:!1})}},[H]),z1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function _j(Q){let U=x0();z1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=dq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",n2.error004());U.setState({width:K.width||500,height:K.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let K=new ResizeObserver(()=>Z());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),K&&Q.current)K.unobserve(Q.current)}}},[])}var GU={position:"absolute",width:"100%",height:"100%",top:0,left:0},Jj=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function $j({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=v3.Free,zoomOnDoubleClick:B=!0,panOnDrag:T=!0,defaultViewport:R,translateExtent:M,minZoom:A,maxZoom:O,zoomActivationKeyCode:P,preventScrolling:N=!0,children:V,noWheelClassName:j,noPanClassName:f,onViewportChange:u,isControlledViewport:C,paneClickDistance:v,selectionOnDrag:D}){let h=x0(),E=z1.useRef(null),{userSelectionActive:b,lib:k,connectionInProgress:x}=H0(Jj,h0),$1=mJ(P),Q1=z1.useRef();_j(E);let J1=z1.useCallback((m)=>{if(u?.({x:m[0],y:m[1],zoom:m[2]}),!C)h.setState({transform:m})},[u,C]);return z1.useEffect(()=>{if(E.current){Q1.current=TT({domNode:E.current,minZoom:A,maxZoom:O,translateExtent:M,viewport:R,onDraggingChange:(a)=>h.setState((i)=>i.paneDragging===a?i:{paneDragging:a}),onPanZoomStart:(a,i)=>{let{onViewportChangeStart:o,onMoveStart:y}=h.getState();y?.(a,i),o?.(i)},onPanZoom:(a,i)=>{let{onViewportChange:o,onMove:y}=h.getState();y?.(a,i),o?.(i)},onPanZoomEnd:(a,i)=>{let{onViewportChangeEnd:o,onMoveEnd:y}=h.getState();y?.(a,i),o?.(i)}});let{x:m,y:p,zoom:c}=Q1.current.getViewport();return h.setState({panZoom:Q1.current,transform:[m,p,c],domNode:E.current.closest(".react-flow")}),()=>{Q1.current?.destroy()}}},[]),z1.useEffect(()=>{Q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:B,panOnDrag:T,zoomActivationKeyPressed:$1,preventScrolling:N,noPanClassName:f,userSelectionActive:b,noWheelClassName:j,lib:k,onTransformChange:J1,connectionInProgress:x,selectionOnDrag:D,paneClickDistance:v})},[Q,U,Z,K,H,Y,W,B,T,$1,N,f,b,j,k,J1,x,D,v]),H1.jsx("div",{className:"react-flow__renderer",ref:E,style:GU,children:V})}var Qj=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function qj(){let{userSelectionActive:Q,userSelectionRect:U}=H0(Qj,h0);if(!(Q&&U))return null;return H1.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:U.width,height:U.height,transform:`translate(${U.x}px, ${U.y}px)`}})}var aK=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},Uj=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Gj({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=x8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:B,onSelectionEnd:T,onPaneClick:R,onPaneContextMenu:M,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:P,onPaneMouseLeave:N,children:V}){let j=z1.useRef(0),f=x0(),{userSelectionActive:u,elementsSelectable:C,dragging:v,panBy:D,autoPanSpeed:h}=H0(Uj,h0),E=C&&(Q||u),b=z1.useRef(null),k=z1.useRef(),x=z1.useRef(new Set),$1=z1.useRef(new Set),Q1=z1.useRef(!1),J1=z1.useRef(!1),m=z1.useRef({x:0,y:0}),p=z1.useRef(!1),c=(U1)=>{if(J1.current||Q1.current||f.getState().connection.inProgress){J1.current=!1,Q1.current=!1;return}R?.(U1),f.getState().resetSelectedElements(),f.setState({nodesSelectionActive:!1})},a=(U1)=>{if(Array.isArray(K)&&K?.includes(2)){U1.preventDefault();return}M?.(U1)},i=A?(U1)=>A(U1):void 0,o=(U1)=>{if(J1.current)U1.stopPropagation(),J1.current=!1},y=(U1)=>{if(U1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:P1,transform:j1}=f.getState();if(k.current=P1?.getBoundingClientRect(),!k.current)return;let A1=U1.target===b.current;if(!A1&&!!U1.target.closest(".nokey")||!Q||!(W&&A1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),J1.current=!1;let{x:g1,y:h1}=l5(U1.nativeEvent,k.current),M1=M9({x:g1,y:h1},j1);if(f.setState({userSelectionRect:{width:0,height:0,startX:M1.x,startY:M1.y,x:g1,y:h1}}),!A1)U1.stopPropagation(),U1.preventDefault()};function g(U1,P1){let{userSelectionRect:j1}=f.getState();if(!j1)return;let{transform:A1,nodeLookup:k1,edgeLookup:D1,connectionLookup:g1,triggerNodeChanges:h1,triggerEdgeChanges:M1,defaultEdgeOptions:r1}=f.getState(),u1={x:j1.startX,y:j1.startY},{x:D0,y:o1}=g8(u1,A1),X2={startX:u1.x,startY:u1.y,x:U1<D0?U1:D0,y:P1<o1?P1:o1,width:Math.abs(U1-D0),height:Math.abs(P1-o1)},K2=x.current,N2=$1.current;x.current=new Set(pq(k1,X2,A1,Z===x8.Partial,!0).map((C2)=>C2.id)),$1.current=new Set;let A2=r1?.selectable??!0;for(let C2 of x.current){let M2=g1.get(C2);if(!M2)continue;for(let{edgeId:H2}of M2.values()){let _2=D1.get(H2);if(_2&&(_2.selectable??A2))$1.current.add(H2)}}if(!bK(K2,x.current)){let C2=R9(k1,x.current,!0);h1(C2)}if(!bK(N2,$1.current)){let C2=R9(D1,$1.current);M1(C2)}f.setState({userSelectionRect:X2,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!k.current)return;let[U1,P1]=cq(m.current,k.current,h);D({x:U1,y:P1}).then((j1)=>{if(!J1.current||!j1){j.current=requestAnimationFrame(q1);return}let{x:A1,y:k1}=m.current;g(A1,k1),j.current=requestAnimationFrame(q1)})}let t=()=>{cancelAnimationFrame(j.current),j.current=0,p.current=!1};z1.useEffect(()=>{return()=>t()},[]);let W1=(U1)=>{let{userSelectionRect:P1,transform:j1,resetSelectedElements:A1}=f.getState();if(!k.current||!P1)return;let{x:k1,y:D1}=l5(U1.nativeEvent,k.current);m.current={x:k1,y:D1};let g1=g8({x:P1.startX,y:P1.startY},j1);if(!J1.current){let h1=U?0:Y;if(Math.hypot(k1-g1.x,D1-g1.y)<=h1)return;A1(),B?.(U1)}if(J1.current=!0,!p.current)q1(),p.current=!0;g(k1,D1)},T1=(U1)=>{if(!E){if(U1.target===b.current&&f.getState().connection.inProgress)Q1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!u&&U1.target===b.current&&f.getState().userSelectionRect)c?.(U1);if(f.setState({userSelectionActive:!1,userSelectionRect:null}),J1.current)T?.(U1),f.setState({nodesSelectionActive:x.current.size>0});t()},O1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),t()},B1=K===!0||Array.isArray(K)&&K.includes(0);return H1.jsxs("div",{className:d0(["react-flow__pane",{draggable:B1,dragging:v,selection:Q}]),onClick:E?void 0:aK(c,b),onContextMenu:aK(a,b),onWheel:aK(i,b),onPointerEnter:E?void 0:O,onPointerMove:E?W1:P,onPointerUp:T1,onPointerCancel:E?O1:void 0,onPointerDownCapture:E?y:void 0,onClickCapture:E?o:void 0,onPointerLeave:N,ref:b,style:GU,children:[V,H1.jsx(qj,{})]})}function tK({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:B,onError:T}=U.getState(),R=B.get(Q);if(!R){T?.("012",n2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(Z||R.selected&&W)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function BR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let B=x0(),[T,R]=z1.useState(!1),M=z1.useRef();return z1.useEffect(()=>{if(U)return;return M.current=HT({getStoreItems:()=>B.getState(),onNodeMouseDown:(A)=>{tK({id:A,store:B,nodeRef:Q})},onDragStart:()=>{R(!0)},onDragStop:()=>{R(!1)}}),()=>{M.current?.destroy(),M.current=void 0}},[U,B,Q]),z1.useEffect(()=>{if(U||!Q.current||!M.current)return;M.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,K,U,Y,Q,H,W]),T}var Zj=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function LR(){let Q=x0();return z1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:B,updateNodePositions:T,nodeLookup:R,nodeOrigin:M}=Q.getState(),A=new Map,O=Zj(W),P=H?Y[0]:5,N=H?Y[1]:5,V=Z.direction.x*P*Z.factor,j=Z.direction.y*N*Z.factor;for(let[,f]of R){if(!O(f))continue;let u={x:f.internals.positionAbsolute.x+V,y:f.internals.positionAbsolute.y+j};if(H)u=A9(u,Y);let{position:C,positionAbsolute:v}=vK({nodeId:f.id,nextPosition:u,nodeLookup:R,nodeExtent:K,nodeOrigin:M,onError:B});f.position=C,f.internals.positionAbsolute=v,A.set(f.id,f)}T(A)},[])}var oK=z1.createContext(null),Fj=oK.Provider;oK.Consumer;var nK=()=>{return z1.useContext(oK)},Xj=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),AR=z1.createContext(null);function Kj({children:Q}){let U=H0(Xj,h0);return H1.jsx(AR.Provider,{value:U,children:Q})}function Hj(){let Q=z1.useContext(AR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Yj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},zj=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=K,{fromHandle:B,toHandle:T,isValid:R}=W;if(!B&&!H)return Yj;let M=T?.nodeId===Q&&T?.id===U&&T?.type===Z;return{connectingFrom:B?.nodeId===Q&&B?.id===U&&B?.type===Z,connectingTo:M,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===D6.Strict?B?.type!==Z:Q!==B?.nodeId||U!==B?.id,connectionInProcess:!!B,clickConnectionInProcess:!!H,valid:M&&R}};function Wj({type:Q="source",position:U=b1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:B,children:T,className:R,onMouseDown:M,onTouchStart:A,...O},P){let N=W||null,V=Q==="target",j=x0(),f=nK(),{connectOnClick:u,noPanClassName:C,rfId:v}=Hj(),{connectingFrom:D,connectingTo:h,clickConnecting:E,isPossibleEndHandle:b,connectionInProcess:k,clickConnectionInProcess:x,valid:$1}=H0(zj(f,N,Q),h0);if(!f)j.getState().onError?.("010",n2.error010());let Q1=(p)=>{let{defaultEdgeOptions:c,onConnect:a,hasDefaultEdges:i}=j.getState(),o={...c,...p};if(i){let{edges:y,setEdges:g,onError:q1}=j.getState();g(dS(o,y,{onError:q1}))}a?.(o),B?.(o)},J1=(p)=>{if(!f)return;let c=mK(p.nativeEvent);if(H&&(c&&p.button===0||!c)){let a=j.getState();eq.onPointerDown(p.nativeEvent,{handleDomNode:p.currentTarget,autoPanOnConnect:a.autoPanOnConnect,connectionMode:a.connectionMode,connectionRadius:a.connectionRadius,domNode:a.domNode,nodeLookup:a.nodeLookup,lib:a.lib,isTarget:V,handleId:N,nodeId:f,flowId:a.rfId,panBy:a.panBy,cancelConnection:a.cancelConnection,onConnectStart:a.onConnectStart,onConnectEnd:(...i)=>j.getState().onConnectEnd?.(...i),updateConnection:a.updateConnection,onConnect:Q1,isValidConnection:Z||((...i)=>j.getState().isValidConnection?.(...i)??!0),getTransform:()=>j.getState().transform,getFromHandle:()=>j.getState().connection.fromHandle,autoPanSpeed:a.autoPanSpeed,dragThreshold:a.connectionDragThreshold})}if(c)M?.(p);else A?.(p)},m=(p)=>{let{onClickConnectStart:c,onClickConnectEnd:a,connectionClickStartHandle:i,connectionMode:o,isValidConnection:y,lib:g,rfId:q1,nodeLookup:t,connection:W1}=j.getState();if(!f||!i&&!H)return;if(!i){c?.(p.nativeEvent,{nodeId:f,handleId:N,handleType:Q}),j.setState({connectionClickStartHandle:{nodeId:f,type:Q,id:N}});return}let T1=hK(p.target),O1=Z||y,{connection:B1,isValid:U1}=eq.isValid(p.nativeEvent,{handle:{nodeId:f,id:N,type:Q},connectionMode:o,fromNodeId:i.nodeId,fromHandleId:i.id||null,fromType:i.type,isValidConnection:O1,flowId:q1,doc:T1,lib:g,nodeLookup:t});if(U1&&B1)Q1(B1);let P1=structuredClone(W1);delete P1.inProgress,P1.toPosition=P1.toHandle?P1.toHandle.position:null,a?.(p,P1),j.setState({connectionClickStartHandle:null})};return H1.jsx("div",{"data-handleid":N,"data-nodeid":f,"data-handlepos":U,"data-id":`${v}-${f}-${N}-${Q}`,className:d0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",C,R,{source:!V,target:V,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:E,connectingfrom:D,connectingto:h,valid:$1,connectionindicator:K&&(!k||b)&&(k||x?Y:H)}]),onMouseDown:J1,onTouchStart:J1,onClick:u?m:void 0,ref:P,...O,children:T})}var QU=z1.memo(YR(Wj));function Bj({data:Q,isConnectable:U,sourcePosition:Z=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[Q?.label,H1.jsx(QU,{type:"source",position:Z,isConnectable:U})]})}function Lj({data:Q,isConnectable:U,targetPosition:Z=b1.Top,sourcePosition:K=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label,H1.jsx(QU,{type:"source",position:K,isConnectable:U})]})}function Aj(){return null}function Mj({data:Q,isConnectable:U,targetPosition:Z=b1.Top}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var qU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},iT={input:Bj,default:Lj,output:Mj,group:Aj};function Tj(Q){if(Q.internals.handleBounds===void 0)return{width:Q.width??Q.initialWidth??Q.style?.width,height:Q.height??Q.initialHeight??Q.style?.height};return{width:Q.width??Q.style?.width,height:Q.height??Q.style?.height}}var Rj=(Q)=>{let{width:U,height:Z,x:K,y:H}=c8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:c5(U)?U:null,height:c5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${H}px)`}};function Oj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=x0(),{width:H,height:Y,transformString:W,userSelectionActive:B}=H0(Rj,h0),T=LR(),R=z1.useRef(null);z1.useEffect(()=>{if(!Z)R.current?.focus({preventScroll:!0})},[Z]);let M=!B&&H!==null&&Y!==null;if(BR({nodeRef:R,disabled:!M}),!M)return null;let A=Q?(P)=>{let N=K.getState().nodes.filter((V)=>V.selected);Q(P,N)}:void 0,O=(P)=>{if(Object.prototype.hasOwnProperty.call(qU,P.key))P.preventDefault(),T({direction:qU[P.key],factor:P.shiftKey?4:1})};return H1.jsx("div",{className:d0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:H1.jsx("div",{ref:R,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:O,style:{width:H,height:Y}})})}var dT=typeof window<"u"?window:void 0,Ij=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function MR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:B,deleteKeyCode:T,selectionKeyCode:R,selectionOnDrag:M,selectionMode:A,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:N,panActivationKeyCode:V,zoomActivationKeyCode:j,elementsSelectable:f,zoomOnScroll:u,zoomOnPinch:C,panOnScroll:v,panOnScrollSpeed:D,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:b,autoPanOnSelection:k,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,preventScrolling:m,onSelectionContextMenu:p,noWheelClassName:c,noPanClassName:a,disableKeyboardA11y:i,onViewportChange:o,isControlledViewport:y}){let{nodesSelectionActive:g,userSelectionActive:q1}=H0(Ij,h0),t=mJ(R,{target:dT}),W1=mJ(V,{target:dT}),T1=W1||b,O1=W1||v,B1=M&&T1!==!0,U1=t||q1||B1;return eS({deleteKeyCode:T,multiSelectionKeyCode:N}),H1.jsx($j,{onPaneContextMenu:Y,elementsSelectable:f,zoomOnScroll:u,zoomOnPinch:C,panOnScroll:O1,panActivationKeyPressed:W1,panOnScrollSpeed:D,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:!t&&T1,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,zoomActivationKeyCode:j,preventScrolling:m,noWheelClassName:c,noPanClassName:a,onViewportChange:o,isControlledViewport:y,paneClickDistance:B,selectionOnDrag:B1,children:H1.jsxs(Gj,{onSelectionStart:O,onSelectionEnd:P,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:T1,autoPanOnSelection:k,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:t,paneClickDistance:B,selectionOnDrag:B1,children:[Q,g&&H1.jsx(Oj,{onSelectionContextMenu:p,noPanClassName:a,disableKeyboardA11y:i})]})})}MR.displayName="FlowRenderer";var wj=z1.memo(MR),Pj=(Q)=>(U)=>{return Q?pq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function Nj(Q){return H0(z1.useCallback(Pj(Q),[Q]),h0)}var Cj=(Q)=>Q.updateNodeInternals;function fj(){let Q=H0(Cj),[U]=z1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let K=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");K.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(K)})});return z1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Sj({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let H=x0(),Y=z1.useRef(null),W=z1.useRef(null),B=z1.useRef(Q.sourcePosition),T=z1.useRef(Q.targetPosition),R=z1.useRef(U),M=Z&&!!Q.internals.handleBounds;return z1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!M||W.current!==Y.current)){if(W.current)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[M,Q.hidden]),z1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),z1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=B.current!==Q.sourcePosition,P=T.current!==Q.targetPosition;if(A||O||P)R.current=U,B.current=Q.sourcePosition,T.current=Q.targetPosition,H.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:Y.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),Y}function jj({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:B,elementsSelectable:T,nodesConnectable:R,nodesFocusable:M,resizeObserver:A,noDragClassName:O,noPanClassName:P,disableKeyboardA11y:N,rfId:V,nodeTypes:j,nodeClickDistance:f,onError:u}){let{node:C,internals:v,isParent:D}=H0((U1)=>{let P1=U1.nodeLookup.get(Q),j1=U1.parentLookup.has(Q);return{node:P1,internals:P1.internals,isParent:j1}},h0),h=C.type||"default",E=j?.[h]||iT[h];if(E===void 0)u?.("003",n2.error003(h)),h="default",E=j?.default||iT.default;let b=!!(C.draggable||B&&typeof C.draggable>"u"),k=!!(C.selectable||T&&typeof C.selectable>"u"),x=!!(C.connectable||R&&typeof C.connectable>"u"),$1=!!(C.focusable||M&&typeof C.focusable>"u"),Q1=x0(),J1=DK(C),m=Sj({node:C,nodeType:h,hasDimensions:J1,resizeObserver:A}),p=BR({nodeRef:m,disabled:C.hidden||!b,noDragClassName:O,handleSelector:C.dragHandle,nodeId:Q,isSelectable:k,nodeClickDistance:f}),c=LR();if(C.hidden)return null;let a=i5(C),i=Tj(C),o=k||b||U||Z||K||H,y=Z?(U1)=>Z(U1,{...v.userNode}):void 0,g=K?(U1)=>K(U1,{...v.userNode}):void 0,q1=H?(U1)=>H(U1,{...v.userNode}):void 0,t=Y?(U1)=>Y(U1,{...v.userNode}):void 0,W1=W?(U1)=>W(U1,{...v.userNode}):void 0,T1=(U1)=>{let{selectNodesOnDrag:P1,nodeDragThreshold:j1}=Q1.getState();if(k&&(!P1||!b||j1>0))tK({id:Q,store:Q1,nodeRef:m});if(U)U(U1,{...v.userNode})},O1=(U1)=>{if(xK(U1.nativeEvent)||N)return;if(PK.includes(U1.key)&&k){let P1=U1.key==="Escape";tK({id:Q,store:Q1,unselect:P1,nodeRef:m})}else if(b&&C.selected&&Object.prototype.hasOwnProperty.call(qU,U1.key)){U1.preventDefault();let{ariaLabelConfig:P1}=Q1.getState();Q1.setState({ariaLiveMessage:P1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),c({direction:qU[U1.key],factor:U1.shiftKey?4:1})}},B1=()=>{if(N||!m.current?.matches(":focus-visible"))return;let{transform:U1,width:P1,height:j1,autoPanOnNodeFocus:A1,setCenter:k1}=Q1.getState();if(!A1)return;if(!(pq(new Map([[Q,C]]),{x:0,y:0,width:P1,height:j1},U1,!0).length>0))k1(C.position.x+a.width/2,C.position.y+a.height/2,{zoom:U1[2]})};return H1.jsx("div",{className:d0(["react-flow__node",`react-flow__node-${h}`,{[P]:b},C.className,{selected:C.selected,selectable:k,parent:D,draggable:b,dragging:p}]),ref:m,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:J1?"visible":"hidden",...C.style,...i},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:y,onMouseMove:g,onMouseLeave:q1,onContextMenu:t,onClick:T1,onDoubleClick:W1,onKeyDown:$1?O1:void 0,tabIndex:$1?0:void 0,onFocus:$1?B1:void 0,role:C.ariaRole??($1?"group":void 0),"aria-roledescription":"node","aria-describedby":N?void 0:`${ZR}-${V}`,"aria-label":C.ariaLabel,...C.domAttributes,children:H1.jsx(Fj,{value:Q,children:H1.jsx(E,{id:Q,data:C.data,type:h,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:C.selected??!1,selectable:k,draggable:b,deletable:C.deletable??!0,isConnectable:x,sourcePosition:C.sourcePosition,targetPosition:C.targetPosition,dragging:p,dragHandle:C.dragHandle,zIndex:v.z,parentId:C.parentId,...a})})})}var vj=z1.memo(jj),Vj=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function TR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:H}=H0(Vj,h0),Y=Nj(Q.onlyRenderVisibleElements),W=fj();return H1.jsx("div",{className:"react-flow__nodes",style:GU,children:Y.map((B)=>{return H1.jsx(vj,{id:B,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:W,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:H},B)})})}TR.displayName="NodeRenderer";var yj=z1.memo(TR);function kj(Q){return H0(z1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let K=[];if(Z.width&&Z.height)for(let H of Z.edges){let Y=Z.nodeLookup.get(H.source),W=Z.nodeLookup.get(H.target);if(Y&&W&&_T({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(H.id)}return K},[Q]),h0)}var Dj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return H1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},uj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return H1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},rT={[z9.Arrow]:Dj,[z9.ArrowClosed]:uj};function bj(Q){let U=x0();return z1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(rT,Q))return U.getState().onError?.("009",n2.error009(Q)),null;return rT[Q]},[Q])}var Ej=({id:Q,type:U,color:Z,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:B="auto-start-reverse"})=>{let T=bj(U);if(!T)return null;return H1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:B,refX:"0",refY:"0",children:H1.jsx(T,{color:Z,strokeWidth:W})})},RR=({defaultColor:Q,rfId:U})=>{let Z=H0((Y)=>Y.edges),K=H0((Y)=>Y.defaultEdgeOptions),H=z1.useMemo(()=>{return QT(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!H.length)return null;return H1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:H1.jsx("defs",{children:H.map((Y)=>H1.jsx(Ej,{id:Y.id,type:Y.type,color:Y.color,width:Y.width,height:Y.height,markerUnits:Y.markerUnits,strokeWidth:Y.strokeWidth,orient:Y.orient},Y.id))})})};RR.displayName="MarkerDefinitions";var hj=z1.memo(RR);function OR({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:B=2,children:T,className:R,...M}){let[A,O]=z1.useState({x:1,y:0,width:0,height:0}),P=d0(["react-flow__edge-textwrapper",R]),N=z1.useRef(null);if(z1.useEffect(()=>{if(N.current){let V=N.current.getBBox();O({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return H1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:P,visibility:A.width?"visible":"hidden",...M,children:[H&&H1.jsx("rect",{width:A.width+2*W[0],x:-W[0],y:-W[1],height:A.height+2*W[1],className:"react-flow__edge-textbg",style:Y,rx:B,ry:B}),H1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:N,style:K,children:Z}),T]})}OR.displayName="EdgeText";var xj=z1.memo(OR);function ZU({path:Q,labelX:U,labelY:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T,interactionWidth:R=20,...M}){return H1.jsxs(H1.Fragment,{children:[H1.jsx("path",{...M,d:Q,fill:"none",className:d0(["react-flow__edge-path",M.className])}),R?H1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,K&&c5(U)&&c5(Z)?H1.jsx(xj,{x:U,y:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T}):null]})}function aT({pos:Q,x1:U,y1:Z,x2:K,y2:H}){if(Q===b1.Left||Q===b1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+H)]}function IR({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top}){let[W,B]=aT({pos:Z,x1:Q,y1:U,x2:K,y2:H}),[T,R]=aT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[M,A,O,P]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:W,sourceControlY:B,targetControlX:T,targetControlY:R});return[`M${Q},${U} C${W},${B} ${T},${R} ${K},${H}`,M,A,O,P]}function wR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W,targetPosition:B,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,interactionWidth:f})=>{let[u,C,v]=IR({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B}),D=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:D,path:u,labelX:C,labelY:v,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,interactionWidth:f})})}var mj=wR({isInternal:!1}),PR=wR({isInternal:!0});mj.displayName="SimpleBezierEdge";PR.displayName="SimpleBezierEdgeInternal";function NR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,sourcePosition:P=b1.Bottom,targetPosition:N=b1.Top,markerEnd:V,markerStart:j,pathOptions:f,interactionWidth:u})=>{let[C,v,D]=xJ({sourceX:Z,sourceY:K,sourcePosition:P,targetX:H,targetY:Y,targetPosition:N,borderRadius:f?.borderRadius,offset:f?.offset,stepPosition:f?.stepPosition}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:C,labelX:v,labelY:D,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:V,markerStart:j,interactionWidth:u})})}var CR=NR({isInternal:!1}),fR=NR({isInternal:!0});CR.displayName="SmoothStepEdge";fR.displayName="SmoothStepEdgeInternal";function SR(Q){return z1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return H1.jsx(CR,{...Z,id:K,pathOptions:z1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var gj=SR({isInternal:!1}),jR=SR({isInternal:!0});gj.displayName="StepEdge";jR.displayName="StepEdgeInternal";function vR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:V})=>{let[j,f,u]=sq({sourceX:Z,sourceY:K,targetX:H,targetY:Y}),C=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:C,path:j,labelX:f,labelY:u,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:V})})}var pj=vR({isInternal:!1}),VR=vR({isInternal:!0});pj.displayName="StraightEdge";VR.displayName="StraightEdgeInternal";function yR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W=b1.Bottom,targetPosition:B=b1.Top,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,pathOptions:f,interactionWidth:u})=>{let[C,v,D]=aq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B,curvature:f?.curvature}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:C,labelX:v,labelY:D,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,interactionWidth:u})})}var cj=yR({isInternal:!1}),kR=yR({isInternal:!0});cj.displayName="BezierEdge";kR.displayName="BezierEdgeInternal";var sT={default:kR,straight:VR,step:jR,smoothstep:fR,simplebezier:PR},tT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},lj=(Q,U,Z)=>{if(Z===b1.Left)return Q-U;if(Z===b1.Right)return Q+U;return Q},ij=(Q,U,Z)=>{if(Z===b1.Top)return Q-U;if(Z===b1.Bottom)return Q+U;return Q},oT="react-flow__edgeupdater";function nT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:B}){return H1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:d0([oT,`${oT}-${B}`]),cx:lj(U,K,Q),cy:ij(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function dj({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:H,targetX:Y,targetY:W,sourcePosition:B,targetPosition:T,onReconnect:R,onReconnectStart:M,onReconnectEnd:A,setReconnecting:O,setUpdateHover:P}){let N=x0(),V=(v,D)=>{if(v.button!==0)return;let{autoPanOnConnect:h,domNode:E,connectionMode:b,connectionRadius:k,lib:x,onConnectStart:$1,cancelConnection:Q1,nodeLookup:J1,rfId:m,panBy:p,updateConnection:c}=N.getState(),a=D.type==="target",i=(g,q1)=>{O(!1),A?.(g,Z,D.type,q1)},o=(g)=>R?.(Z,g),y=(g,q1)=>{O(!0),M?.(v,Z,D.type),$1?.(g,q1)};eq.onPointerDown(v.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:k,domNode:E,handleId:D.id,nodeId:D.nodeId,nodeLookup:J1,isTarget:a,edgeUpdaterType:D.type,lib:x,flowId:m,cancelConnection:Q1,panBy:p,isValidConnection:(...g)=>N.getState().isValidConnection?.(...g)??!0,onConnect:o,onConnectStart:y,onConnectEnd:(...g)=>N.getState().onConnectEnd?.(...g),onReconnectEnd:i,updateConnection:c,getTransform:()=>N.getState().transform,getFromHandle:()=>N.getState().connection.fromHandle,dragThreshold:N.getState().connectionDragThreshold,handleDomNode:v.currentTarget})},j=(v)=>V(v,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),f=(v)=>V(v,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),u=()=>P(!0),C=()=>P(!1);return H1.jsxs(H1.Fragment,{children:[(Q===!0||Q==="source")&&H1.jsx(nT,{position:B,centerX:K,centerY:H,radius:U,onMouseDown:j,onMouseEnter:u,onMouseOut:C,type:"source"}),(Q===!0||Q==="target")&&H1.jsx(nT,{position:T,centerX:Y,centerY:W,radius:U,onMouseDown:f,onMouseEnter:u,onMouseOut:C,type:"target"})]})}function rj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,rfId:N,edgeTypes:V,noPanClassName:j,onError:f,disableKeyboardA11y:u}){let C=H0((k1)=>k1.edgeLookup.get(Q)),v=H0((k1)=>k1.defaultEdgeOptions);C=v?{...v,...C}:C;let D=C.type||"default",h=V?.[D]||sT[D];if(h===void 0)f?.("011",n2.error011(D)),D="default",h=V?.default||sT.default;let E=!!(C.focusable||U&&typeof C.focusable>"u"),b=typeof A<"u"&&(C.reconnectable||Z&&typeof C.reconnectable>"u"),k=!!(C.selectable||K&&typeof C.selectable>"u"),x=z1.useRef(null),[$1,Q1]=z1.useState(!1),[J1,m]=z1.useState(!1),p=x0(),{zIndex:c=C.zIndex,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1}=H0(z1.useCallback((k1)=>{let D1=k1.nodeLookup.get(C.source),g1=k1.nodeLookup.get(C.target);if(!D1||!g1)return tT;let h1=$T({id:Q,sourceNode:D1,targetNode:g1,sourceHandle:C.sourceHandle||null,targetHandle:C.targetHandle||null,connectionMode:k1.connectionMode,onError:f}),M1=eM({selected:C.selected,zIndex:C.zIndex,sourceNode:D1,targetNode:g1,elevateOnSelect:k1.elevateEdgesOnSelect,zIndexMode:k1.zIndexMode});return{...h1||tT,zIndex:M1}},[C.source,C.target,C.sourceHandle,C.targetHandle,C.selected,C.zIndex,f]),h0),t=z1.useMemo(()=>C.markerStart?`url('#${tq(C.markerStart,N)}')`:void 0,[C.markerStart,N]),W1=z1.useMemo(()=>C.markerEnd?`url('#${tq(C.markerEnd,N)}')`:void 0,[C.markerEnd,N]);if(C.hidden||a===null||i===null||o===null||y===null)return null;let T1=(k1)=>{let{addSelectedEdges:D1,unselectNodesAndEdges:g1,multiSelectionActive:h1}=p.getState();if(k)if(p.setState({nodesSelectionActive:!1}),C.selected&&h1)g1({nodes:[],edges:[C]}),x.current?.blur();else D1([Q]);if(H)H(k1,C)},O1=Y?(k1)=>{Y(k1,{...C})}:void 0,B1=W?(k1)=>{W(k1,{...C})}:void 0,U1=B?(k1)=>{B(k1,{...C})}:void 0,P1=T?(k1)=>{T(k1,{...C})}:void 0,j1=R?(k1)=>{R(k1,{...C})}:void 0,A1=(k1)=>{if(!u&&PK.includes(k1.key)&&k){let{unselectNodesAndEdges:D1,addSelectedEdges:g1}=p.getState();if(k1.key==="Escape")x.current?.blur(),D1({edges:[C]});else g1([Q])}};return H1.jsx("svg",{style:{zIndex:c},children:H1.jsxs("g",{className:d0(["react-flow__edge",`react-flow__edge-${D}`,C.className,j,{selected:C.selected,animated:C.animated,inactive:!k&&!H,updating:$1,selectable:k}]),onClick:T1,onDoubleClick:O1,onContextMenu:B1,onMouseEnter:U1,onMouseMove:P1,onMouseLeave:j1,onKeyDown:E?A1:void 0,tabIndex:E?0:void 0,role:C.ariaRole??(E?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":C.ariaLabel===null?void 0:C.ariaLabel||`Edge from ${C.source} to ${C.target}`,"aria-describedby":E?`${FR}-${N}`:void 0,ref:x,...C.domAttributes,children:[!J1&&H1.jsx(h,{id:Q,source:C.source,target:C.target,type:C.type,selected:C.selected,animated:C.animated,selectable:k,deletable:C.deletable??!0,label:C.label,labelStyle:C.labelStyle,labelShowBg:C.labelShowBg,labelBgStyle:C.labelBgStyle,labelBgPadding:C.labelBgPadding,labelBgBorderRadius:C.labelBgBorderRadius,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1,data:C.data,style:C.style,sourceHandleId:C.sourceHandle,targetHandleId:C.targetHandle,markerStart:t,markerEnd:W1,pathOptions:"pathOptions"in C?C.pathOptions:void 0,interactionWidth:C.interactionWidth}),b&&H1.jsx(dj,{edge:C,isReconnectable:b,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1,setUpdateHover:Q1,setReconnecting:m})]})})}var aj=z1.memo(rj),sj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function DR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:B,onEdgeMouseMove:T,onEdgeMouseLeave:R,onEdgeClick:M,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,disableKeyboardA11y:V}){let{edgesFocusable:j,edgesReconnectable:f,elementsSelectable:u,onError:C}=H0(sj,h0),v=kj(U);return H1.jsxs("div",{className:"react-flow__edges",children:[H1.jsx(hj,{defaultColor:Q,rfId:Z}),v.map((D)=>{return H1.jsx(aj,{id:D,edgesFocusable:j,edgesReconnectable:f,elementsSelectable:u,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,onClick:M,reconnectRadius:A,onDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,rfId:Z,onError:C,edgeTypes:K,disableKeyboardA11y:V},D)})]})}DR.displayName="EdgeRenderer";var tj=z1.memo(DR),eT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function oj({children:Q}){let U=x0(),Z=z1.useRef(null),[K]=z1.useState(()=>U.getState().transform);return zR(()=>{let H=null,Y=()=>{let W=U.getState().transform;if(H&&W[0]===H[0]&&W[1]===H[1]&&W[2]===H[2])return;if(H=W,Z.current)Z.current.style.transform=eT(W)};return Y(),U.subscribe(Y)},[U]),H1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:eT(K)},children:Q})}function nj(Q){let U=gJ(),Z=z1.useRef(!1);z1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var ej=(Q)=>Q.panZoom?.syncViewport;function _v(Q){let U=H0(ej),Z=x0();return z1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function _R(Q){return Q.connection.inProgress?{...Q.connection,to:M9(Q.connection.to,Q.transform)}:{...Q.connection}}function Jv(Q){if(Q)return(Z)=>{let K=_R(Z);return Q(K)};return _R}function $v(Q){let U=Jv(Q);return H0(U,h0)}var Qv=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function qv({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:H,width:Y,height:W,isValid:B,inProgress:T}=H0(Qv,h0);if(!(Y&&H&&T))return null;return H1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:H1.jsx("g",{className:d0(["react-flow__connection",EK(B)]),children:H1.jsx(uR,{style:U,type:Z,CustomComponent:K,isValid:B})})})}var uR=({style:Q,type:U=r4.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:B,fromPosition:T,to:R,toNode:M,toHandle:A,toPosition:O,pointer:P}=$v();if(!H)return;if(Z)return H1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:B,fromX:Y.x,fromY:Y.y,toX:R.x,toY:R.y,fromPosition:T,toPosition:O,connectionStatus:EK(K),toNode:M,toHandle:A,pointer:P});let N="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:T,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case r4.Bezier:[N]=aq(V);break;case r4.SimpleBezier:[N]=IR(V);break;case r4.Step:[N]=xJ({...V,borderRadius:0});break;case r4.SmoothStep:[N]=xJ(V);break;default:[N]=sq(V)}return H1.jsx("path",{d:N,fill:"none",className:"react-flow__connection-path",style:Q})};uR.displayName="ConnectionLine";var Uv={};function JR(Q=Uv){let U=z1.useRef(Q),Z=x0();z1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of K)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",n2.error002());break}U.current=Q}},[Q])}function Gv(){let Q=x0(),U=z1.useRef(!1);z1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",n2.error013("react"));U.current=!0}},[])}function bR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:P,connectionLineType:N,connectionLineStyle:V,connectionLineComponent:j,connectionLineContainerStyle:f,selectionKeyCode:u,selectionOnDrag:C,selectionMode:v,multiSelectionKeyCode:D,panActivationKeyCode:h,zoomActivationKeyCode:E,deleteKeyCode:b,onlyRenderVisibleElements:k,elementsSelectable:x,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,preventScrolling:p,defaultMarkerColor:c,zoomOnScroll:a,zoomOnPinch:i,panOnScroll:o,panOnScrollSpeed:y,panOnScrollMode:g,zoomOnDoubleClick:q1,panOnDrag:t,autoPanOnSelection:W1,onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:B1,onPaneMouseLeave:U1,onPaneScroll:P1,onPaneContextMenu:j1,paneClickDistance:A1,nodeClickDistance:k1,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,viewport:H2,onViewportChange:_2,nodesDraggable:z4}){return JR(Q),JR(U),Gv(),nj(Z),_v(H2),H1.jsx(wj,{onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:B1,onPaneMouseLeave:U1,onPaneContextMenu:j1,onPaneScroll:P1,paneClickDistance:A1,deleteKeyCode:b,selectionKeyCode:u,selectionOnDrag:C,selectionMode:v,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:D,panActivationKeyCode:h,zoomActivationKeyCode:E,elementsSelectable:x,zoomOnScroll:a,zoomOnPinch:i,zoomOnDoubleClick:q1,panOnScroll:o,panOnScrollSpeed:y,panOnScrollMode:g,panOnDrag:t,autoPanOnSelection:W1,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,onSelectionContextMenu:A,preventScrolling:p,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,onViewportChange:_2,isControlledViewport:!!H2,children:H1.jsxs(oj,{children:[H1.jsx(tj,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,onlyRenderVisibleElements:k,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,defaultMarkerColor:c,noPanClassName:N2,disableKeyboardA11y:A2,rfId:M2}),H1.jsx(qv,{style:V,type:N,component:j,containerStyle:f}),H1.jsx("div",{className:"react-flow__edgelabel-renderer"}),H1.jsx(yj,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,nodeClickDistance:k1,onlyRenderVisibleElements:k,noPanClassName:N2,noDragClassName:X2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,nodesDraggable:z4}),H1.jsx("div",{className:"react-flow__viewport-portal"})]})})}bR.displayName="GraphView";var Zv=z1.memo(bR),Fv=kK("React Flow","https://reactflow.dev/"),$R=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T=0.5,maxZoom:R=2,nodeOrigin:M,nodeExtent:A,zIndexMode:O="basic"}={})=>{let P=new Map,N=new Map,V=new Map,j=new Map,f=K??U??[],u=Z??Q??[],C=M??[0,0],v=A??B9;dK(V,j,f);let{nodesInitialized:D}=oq(u,P,N,{nodeOrigin:C,nodeExtent:v,zIndexMode:O}),h=[0,0,1];if(W&&H&&Y){let E=c8(P,{filter:($1)=>!!(($1.width||$1.initialWidth)&&($1.height||$1.initialHeight))}),{x:b,y:k,zoom:x}=hJ(E,H,Y,T,R,B?.padding??0.1);h=[b,k,x]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:u,nodesInitialized:D,nodeLookup:P,parentLookup:N,edges:f,edgeLookup:j,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:T,maxZoom:R,translateExtent:B9,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:D6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:W??!1,fitViewOptions:B,fitViewResolver:null,connection:{...CK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Fv,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:NK,zIndexMode:O,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},Xv=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O})=>VT((P,N)=>{async function V(){let{nodeLookup:j,panZoom:f,fitViewOptions:u,fitViewResolver:C,width:v,height:D,minZoom:h,maxZoom:E}=N();if(!f)return;await dM({nodes:j,width:v,height:D,panZoom:f,minZoom:h,maxZoom:E},u),C?.resolve(!0),P({fitViewResolver:null})}return{...$R({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,defaultNodes:Z,defaultEdges:K,zIndexMode:O}),setNodes:(j)=>{let{nodeLookup:f,parentLookup:u,nodeOrigin:C,nodeExtent:v,elevateNodesOnSelect:D,fitViewQueued:h,zIndexMode:E,nodesSelectionActive:b}=N(),{nodesInitialized:k,hasSelectedNodes:x}=oq(j,f,u,{nodeOrigin:C,nodeExtent:v,elevateNodesOnSelect:D,checkEquality:!0,zIndexMode:E}),$1=b&&x;if(h&&k)V(),P({nodes:j,nodesInitialized:k,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:$1});else P({nodes:j,nodesInitialized:k,nodesSelectionActive:$1})},setEdges:(j)=>{let{connectionLookup:f,edgeLookup:u}=N();dK(f,u,j),P({edges:j})},setDefaultNodesAndEdges:(j,f)=>{if(j){let{setNodes:u}=N();u(j),P({hasDefaultNodes:!0})}if(f){let{setEdges:u}=N();u(f),P({hasDefaultEdges:!0})}},updateNodeInternals:(j)=>{let{triggerNodeChanges:f,nodeLookup:u,parentLookup:C,domNode:v,nodeOrigin:D,nodeExtent:h,debug:E,fitViewQueued:b,zIndexMode:k}=N(),{changes:x,updatedInternals:$1}=FT(j,u,C,v,D,h,k);if(!$1)return;if(GT(u,C,{nodeOrigin:D,nodeExtent:h,zIndexMode:k}),b)V(),P({fitViewQueued:!1,fitViewOptions:void 0});else P({});if(x?.length>0){if(E)console.log("React Flow: trigger node changes",x);f?.(x)}},updateNodePositions:(j,f=!1)=>{let u=[],C=[],{nodeLookup:v,triggerNodeChanges:D,connection:h,updateConnection:E,onNodesChangeMiddlewareMap:b}=N();for(let[k,x]of j){let $1=v.get(k),Q1=!!($1?.expandParent&&$1?.parentId&&x?.position),J1={id:k,type:"position",position:Q1?{x:Math.max(0,x.position.x),y:Math.max(0,x.position.y)}:x.position,dragging:f};if($1&&h.inProgress&&h.fromNode.id===$1.id){let m=u6($1,h.fromHandle,b1.Left,!0);E({...h,from:m})}if(Q1&&$1.parentId)u.push({id:k,parentId:$1.parentId,rect:{...x.internals.positionAbsolute,width:x.measured.width??0,height:x.measured.height??0}});C.push(J1)}if(u.length>0){let{parentLookup:k,nodeOrigin:x}=N(),$1=nq(u,v,k,x);C.push(...$1)}for(let k of b.values())C=k(C);D(C)},triggerNodeChanges:(j)=>{let{onNodesChange:f,setNodes:u,nodes:C,hasDefaultNodes:v,debug:D}=N();if(j?.length){if(v){let h=HR(j,C);u(h)}if(D)console.log("React Flow: trigger node changes",j);f?.(j)}},triggerEdgeChanges:(j)=>{let{onEdgesChange:f,setEdges:u,edges:C,hasDefaultEdges:v,debug:D}=N();if(j?.length){if(v){let h=lS(j,C);u(h)}if(D)console.log("React Flow: trigger edge changes",j);f?.(j)}},addSelectedNodes:(j)=>{let{multiSelectionActive:f,edgeLookup:u,nodeLookup:C,triggerNodeChanges:v,triggerEdgeChanges:D}=N();if(f){let h=j.map((E)=>l8(E,!0));v(h);return}v(R9(C,new Set([...j]),!0)),D(R9(u))},addSelectedEdges:(j)=>{let{multiSelectionActive:f,edgeLookup:u,nodeLookup:C,triggerNodeChanges:v,triggerEdgeChanges:D}=N();if(f){let h=j.map((E)=>l8(E,!0));D(h);return}D(R9(u,new Set([...j]))),v(R9(C,new Set,!0))},unselectNodesAndEdges:({nodes:j,edges:f}={})=>{let{edges:u,nodes:C,nodeLookup:v,triggerNodeChanges:D,triggerEdgeChanges:h}=N(),E=j?j:C,b=f?f:u,k=[];for(let $1 of E){if(!$1.selected)continue;let Q1=v.get($1.id);if(Q1)Q1.selected=!1;k.push(l8($1.id,!1))}let x=[];for(let $1 of b){if(!$1.selected)continue;x.push(l8($1.id,!1))}D(k),h(x)},setMinZoom:(j)=>{let{panZoom:f,maxZoom:u}=N();f?.setScaleExtent([j,u]),P({minZoom:j})},setMaxZoom:(j)=>{let{panZoom:f,minZoom:u}=N();f?.setScaleExtent([u,j]),P({maxZoom:j})},setTranslateExtent:(j)=>{N().panZoom?.setTranslateExtent(j),P({translateExtent:j})},resetSelectedElements:()=>{let{edges:j,nodes:f,triggerNodeChanges:u,triggerEdgeChanges:C,elementsSelectable:v}=N();if(!v)return;let D=f.reduce((E,b)=>b.selected?[...E,l8(b.id,!1)]:E,[]),h=j.reduce((E,b)=>b.selected?[...E,l8(b.id,!1)]:E,[]);u(D),C(h)},setNodeExtent:(j)=>{let{nodes:f,nodeLookup:u,parentLookup:C,nodeOrigin:v,elevateNodesOnSelect:D,nodeExtent:h,zIndexMode:E}=N();if(j[0][0]===h[0][0]&&j[0][1]===h[0][1]&&j[1][0]===h[1][0]&&j[1][1]===h[1][1])return;oq(f,u,C,{nodeOrigin:v,nodeExtent:j,elevateNodesOnSelect:D,checkEquality:!1,zIndexMode:E}),P({nodeExtent:j})},panBy:(j)=>{let{transform:f,width:u,height:C,panZoom:v,translateExtent:D}=N();return XT({delta:j,panZoom:v,transform:f,translateExtent:D,width:u,height:C})},setCenter:async(j,f,u)=>{let{width:C,height:v,maxZoom:D,panZoom:h}=N();if(!h)return!1;let E=typeof u?.zoom<"u"?u.zoom:D;return await h.setViewport({x:C/2-j*E,y:v/2-f*E,zoom:E},{duration:u?.duration,ease:u?.ease,interpolate:u?.interpolate}),!0},cancelConnection:()=>{P({connection:{...CK}})},updateConnection:(j)=>{P({connection:j})},reset:()=>P({...$R()})}},Object.is);function eK({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:B,initialFitViewOptions:T,fitView:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O,children:P}){let[N]=z1.useState(()=>Xv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:R,minZoom:W,maxZoom:B,fitViewOptions:T,nodeOrigin:M,nodeExtent:A,zIndexMode:O}));return H1.jsx(PS,{value:N,children:H1.jsx(sS,{children:H1.jsx(Kj,{children:P})})})}function Kv({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:H,width:Y,height:W,fitView:B,fitViewOptions:T,minZoom:R,maxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:P}){if(z1.useContext(UU))return H1.jsx(H1.Fragment,{children:Q});return H1.jsx(eK,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:B,initialFitViewOptions:T,initialMinZoom:R,initialMaxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:P,children:Q})}var Hv={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Yv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:B,onEdgeClick:T,onInit:R,onMove:M,onMoveStart:A,onMoveEnd:O,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:j,onClickConnectEnd:f,onNodeMouseEnter:u,onNodeMouseMove:C,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:h,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:k,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onSelectionChange:J1,onSelectionDragStart:m,onSelectionDrag:p,onSelectionDragStop:c,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onBeforeDelete:y,connectionMode:g,connectionLineType:q1=r4.Bezier,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,deleteKeyCode:O1="Backspace",selectionKeyCode:B1="Shift",selectionOnDrag:U1=!1,selectionMode:P1=x8.Full,panActivationKeyCode:j1="Space",multiSelectionKeyCode:A1=T9()?"Meta":"Control",zoomActivationKeyCode:k1=T9()?"Meta":"Control",snapToGrid:D1,snapGrid:g1,onlyRenderVisibleElements:h1=!1,selectNodesOnDrag:M1,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,nodeOrigin:X2=XR,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2=!0,defaultViewport:C2=ES,minZoom:M2=0.5,maxZoom:H2=2,translateExtent:_2=B9,preventScrolling:z4=!0,nodeExtent:m2,defaultMarkerColor:f5="#b1b1b7",zoomOnScroll:S5=!0,zoomOnPinch:r5=!0,panOnScroll:o4=!1,panOnScrollSpeed:G1=0.5,panOnScrollMode:I=v3.Free,zoomOnDoubleClick:l=!0,panOnDrag:F1=!0,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:y1,onPaneContextMenu:v1,paneClickDistance:p1=1,nodeClickDistance:S0=0,children:w0,onReconnect:n4,onReconnectStart:j5,onReconnectEnd:T0,onEdgeContextMenu:n8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:BU,reconnectRadius:N9=10,onNodesChange:dJ,onEdgesChange:e8,noDragClassName:_5="nodrag",noWheelClassName:rJ="nowheel",noPanClassName:_7="nopan",fitView:C9,fitViewOptions:J7,connectOnClick:aJ,attributionPosition:sJ,proOptions:E3,defaultEdgeOptions:tJ,elevateNodesOnSelect:oJ=!0,elevateEdgesOnSelect:nJ=!1,disableKeyboardA11y:f9=!1,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanOnSelection:h3=!0,autoPanSpeed:e4,connectionRadius:_$,isValidConnection:m6,onError:$7,style:S9,id:x3,nodeDragThreshold:m3,connectionDragThreshold:j9,viewport:LU,onViewportChange:AU,width:J$,height:v9,colorMode:V9="light",debug:$$,onScroll:y9,ariaLabelConfig:Q$,zIndexMode:q$="basic",...U$},k9){let g3=x3||"1",g6=gS(V9),MU=z1.useCallback((D9)=>{D9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),y9?.(D9)},[y9]);return H1.jsx("div",{"data-testid":"rf__wrapper",...U$,onScroll:MU,style:{...S9,...Hv},ref:k9,className:d0(["react-flow",H,g6]),id:x3,role:"application",children:H1.jsxs(Kv,{nodes:Q,edges:U,width:J$,height:v9,fitView:C9,fitViewOptions:J7,minZoom:M2,maxZoom:H2,nodeOrigin:X2,nodeExtent:m2,zIndexMode:q$,children:[H1.jsx(mS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:j,onClickConnectEnd:f,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2,elevateNodesOnSelect:oJ,elevateEdgesOnSelect:nJ,minZoom:M2,maxZoom:H2,nodeExtent:m2,onNodesChange:dJ,onEdgesChange:e8,snapToGrid:D1,snapGrid:g1,connectionMode:g,translateExtent:_2,connectOnClick:aJ,defaultEdgeOptions:tJ,fitView:C9,fitViewOptions:J7,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:k,onSelectionDrag:p,onSelectionDragStart:m,onSelectionDragStop:c,onMove:M,onMoveStart:A,onMoveEnd:O,noPanClassName:_7,nodeOrigin:X2,rfId:g3,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanSpeed:e4,onError:$7,connectionRadius:_$,isValidConnection:m6,selectNodesOnDrag:M1,nodeDragThreshold:m3,connectionDragThreshold:j9,onBeforeDelete:y,debug:$$,ariaLabelConfig:Q$,zIndexMode:q$}),H1.jsx(Zv,{onInit:R,onNodeClick:B,onEdgeClick:T,onNodeMouseEnter:u,onNodeMouseMove:C,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:W,connectionLineType:q1,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,selectionKeyCode:B1,selectionOnDrag:U1,selectionMode:P1,deleteKeyCode:O1,multiSelectionKeyCode:A1,panActivationKeyCode:j1,zoomActivationKeyCode:k1,onlyRenderVisibleElements:h1,defaultViewport:C2,translateExtent:_2,minZoom:M2,maxZoom:H2,preventScrolling:z4,zoomOnScroll:S5,zoomOnPinch:r5,zoomOnDoubleClick:l,panOnScroll:o4,panOnScrollSpeed:G1,panOnScrollMode:I,panOnDrag:F1,autoPanOnSelection:h3,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:y1,onPaneContextMenu:v1,paneClickDistance:p1,nodeClickDistance:S0,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onReconnect:n4,onReconnectStart:j5,onReconnectEnd:T0,onEdgeContextMenu:n8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:BU,reconnectRadius:N9,defaultMarkerColor:f5,noDragClassName:_5,noWheelClassName:rJ,noPanClassName:_7,rfId:g3,disableKeyboardA11y:f9,nodeExtent:m2,viewport:LU,onViewportChange:AU,nodesDraggable:r1}),H1.jsx(bS,{onSelectionChange:J1}),w0,H1.jsx(VS,{proOptions:E3,position:sJ}),H1.jsx(vS,{rfId:g3,disableKeyboardA11y:f9})]})})}var ER=YR(Yv);function hR(Q){let[U,Z]=z1.useState(Q),K=z1.useCallback((H)=>Z((Y)=>HR(H,Y)),[]);return[U,Z,K]}var Vg=n2.error014();function zv({dimensions:Q,lineWidth:U,variant:Z,className:K}){return H1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:d0(["react-flow__background-pattern",Z,K])})}function Wv({radius:Q,className:U}){return H1.jsx("circle",{cx:Q,cy:Q,r:Q,className:d0(["react-flow__background-pattern","dots",U])})}var a4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(a4||(a4={}));var Bv={[a4.Dots]:1,[a4.Lines]:1,[a4.Cross]:6},Lv=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function xR({id:Q,variant:U=a4.Dots,gap:Z=20,size:K,lineWidth:H=1,offset:Y=0,color:W,bgColor:B,style:T,className:R,patternClassName:M}){let A=z1.useRef(null),{transform:O,patternId:P}=H0(Lv,h0),N=K||Bv[U],V=U===a4.Dots,j=U===a4.Cross,f=Array.isArray(Z)?Z:[Z,Z],u=[f[0]*O[2]||1,f[1]*O[2]||1],C=N*O[2],v=Array.isArray(Y)?Y:[Y,Y],D=j?[C,C]:u,h=[v[0]*O[2]+D[0]/2,v[1]*O[2]+D[1]/2],E=`${P}${Q?Q:""}`;return H1.jsxs("svg",{className:d0(["react-flow__background",R]),style:{...T,...GU,"--xy-background-color-props":B,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[H1.jsx("pattern",{id:E,x:O[0]%u[0],y:O[1]%u[1],width:u[0],height:u[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:V?H1.jsx(Wv,{radius:C/2,className:M}):H1.jsx(zv,{dimensions:D,lineWidth:H,variant:U,className:M})}),H1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}xR.displayName="Background";var mR=z1.memo(xR);function Av(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:H1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Mv(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:H1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Tv(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:H1.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Rv(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Ov(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function $U({children:Q,className:U,...Z}){return H1.jsx("button",{type:"button",className:d0(["react-flow__controls-button",U]),...Z,children:Q})}var Iv=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function gR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:B,onInteractiveChange:T,className:R,children:M,position:A="bottom-left",orientation:O="vertical","aria-label":P}){let N=x0(),{isInteractive:V,minZoomReached:j,maxZoomReached:f,ariaLabelConfig:u}=H0(Iv,h0),{zoomIn:C,zoomOut:v,fitView:D}=gJ(),h=()=>{C(),Y?.()},E=()=>{v(),W?.()},b=()=>{D(H),B?.()},k=()=>{N.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),T?.(!V)};return H1.jsxs(s4,{className:d0(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":P??u["controls.ariaLabel"],children:[U&&H1.jsxs(H1.Fragment,{children:[H1.jsx($U,{onClick:h,className:"react-flow__controls-zoomin",title:u["controls.zoomIn.ariaLabel"],"aria-label":u["controls.zoomIn.ariaLabel"],disabled:f,children:H1.jsx(Av,{})}),H1.jsx($U,{onClick:E,className:"react-flow__controls-zoomout",title:u["controls.zoomOut.ariaLabel"],"aria-label":u["controls.zoomOut.ariaLabel"],disabled:j,children:H1.jsx(Mv,{})})]}),Z&&H1.jsx($U,{className:"react-flow__controls-fitview",onClick:b,title:u["controls.fitView.ariaLabel"],"aria-label":u["controls.fitView.ariaLabel"],children:H1.jsx(Tv,{})}),K&&H1.jsx($U,{className:"react-flow__controls-interactive",onClick:k,title:u["controls.interactive.ariaLabel"],"aria-label":u["controls.interactive.ariaLabel"],children:V?H1.jsx(Ov,{}):H1.jsx(Rv,{})}),M]})}gR.displayName="Controls";var pR=z1.memo(gR);function wv({id:Q,x:U,y:Z,width:K,height:H,style:Y,color:W,strokeColor:B,strokeWidth:T,className:R,borderRadius:M,shapeRendering:A,selected:O,onClick:P}){let{background:N,backgroundColor:V}=Y||{},j=W||N||V;return H1.jsx("rect",{className:d0(["react-flow__minimap-node",{selected:O},R]),x:U,y:Z,rx:M,ry:M,width:K,height:H,style:{fill:j,stroke:B,strokeWidth:T},shapeRendering:A,onClick:P?(f)=>P(f,Q):void 0})}var Pv=z1.memo(wv),Nv=(Q)=>Q.nodes.map((U)=>U.id),sK=(Q)=>Q instanceof Function?Q:()=>Q;function Cv({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=Pv,onClick:W}){let B=H0(Nv,h0),T=sK(U),R=sK(Q),M=sK(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return H1.jsx(H1.Fragment,{children:B.map((O)=>H1.jsx(Sv,{id:O,nodeColorFunc:T,nodeStrokeColorFunc:R,nodeClassNameFunc:M,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},O))})}function fv({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:B,onClick:T}){let{node:R,x:M,y:A,width:O,height:P}=H0((N)=>{let V=N.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let j=V.internals.userNode,{x:f,y:u}=V.internals.positionAbsolute,{width:C,height:v}=i5(j);return{node:j,x:f,y:u,width:C,height:v}},h0);if(!R||R.hidden||!DK(R))return null;return H1.jsx(B,{x:M,y:A,width:O,height:P,style:R.style,selected:!!R.selected,className:K(R),color:U(R),borderRadius:H,strokeColor:Z(R),strokeWidth:Y,shapeRendering:W,onClick:T,id:R.id})}var Sv=z1.memo(fv),jv=z1.memo(Cv),vv=200,Vv=150,yv=(Q)=>!Q.hidden,kv=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?VK(c8(Q.nodeLookup,{filter:yv}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},QR=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,Dv=(Q,U)=>QR(Q.viewBB,U.viewBB)&&QR(Q.boundingRect,U.boundingRect)&&Q.rfId===U.rfId&&Q.panZoom===U.panZoom&&Q.translateExtent===U.translateExtent&&Q.flowWidth===U.flowWidth&&Q.flowHeight===U.flowHeight&&Q.ariaLabelConfig===U.ariaLabelConfig,uv="react-flow__minimap-desc";function cR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:B,bgColor:T,maskColor:R,maskStrokeColor:M,maskStrokeWidth:A,position:O="bottom-right",onClick:P,onNodeClick:N,pannable:V=!1,zoomable:j=!1,ariaLabel:f,inversePan:u,zoomStep:C=1,offsetScale:v=5}){let D=x0(),h=z1.useRef(null),{boundingRect:E,panZoom:b,viewBB:k,rfId:x,translateExtent:$1,flowWidth:Q1,flowHeight:J1,ariaLabelConfig:m}=H0(kv,Dv),p=Q?.width??vv,c=Q?.height??Vv,a=E.width/p,i=E.height/c,o=Math.max(a,i),y=o*p,g=o*c,q1=v*o,t=E.x-(y-E.width)/2-q1,W1=E.y-(g-E.height)/2-q1,T1=y+q1*2,O1=g+q1*2,B1=`${uv}-${x}`,U1=z1.useRef(0),P1=z1.useRef();U1.current=o,z1.useEffect(()=>{let g1=D.getState().panZoom;if(h.current&&g1)return P1.current=LT({domNode:h.current,panZoom:g1,getTransform:()=>D.getState().transform,getViewScale:()=>U1.current}),()=>{P1.current?.destroy()}},[b]),z1.useEffect(()=>{P1.current?.update({translateExtent:$1,width:Q1,height:J1,inversePan:u,pannable:V,zoomStep:C,zoomable:j})},[V,j,u,C,$1,Q1,J1]);let j1=P?(g1)=>{let[h1,M1]=P1.current?.pointer(g1)||[0,0];P(g1,{x:h1,y:M1})}:void 0,A1=z1.useCallback((g1,h1)=>{let M1=D.getState().nodeLookup.get(h1).internals.userNode;N?.(g1,M1)},[N]),k1=N?A1:void 0,D1=f??m["minimap.ariaLabel"];return H1.jsx(s4,{position:O,style:{...Q,"--xy-minimap-background-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-background-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-stroke-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*o:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof W==="number"?W:void 0},className:d0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:H1.jsxs("svg",{width:p,height:c,viewBox:`${t} ${W1} ${T1} ${O1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":B1,ref:h,onClick:j1,children:[D1&&H1.jsx("title",{id:B1,children:D1}),H1.jsx(jv,{onClick:k1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:B}),H1.jsx("path",{className:"react-flow__minimap-mask",d:`M${t-q1},${W1-q1}h${T1+q1*2}v${O1+q1*2}h${-T1-q1*2}z
247
+ M${k.x},${k.y}h${k.width}v${k.height}h${-k.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}cR.displayName="MiniMap";var lR=z1.memo(cR),bv=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,Ev={[V3.Line]:"right",[V3.Handle]:"bottom-right"};function hv({nodeId:Q,position:U,variant:Z=V3.Handle,className:K,style:H=void 0,children:Y,color:W,minWidth:B=10,minHeight:T=10,maxWidth:R=Number.MAX_VALUE,maxHeight:M=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:O,autoScale:P=!0,shouldResize:N,onResizeStart:V,onResize:j,onResizeEnd:f}){let u=nK(),C=typeof Q==="string"?Q:u,v=x0(),D=z1.useRef(null),h=Z===V3.Handle,E=H0(z1.useCallback(bv(h&&P),[h,P]),h0),b=z1.useRef(null),k=U??Ev[Z];z1.useEffect(()=>{if(!D.current||!C)return;if(!b.current)b.current=wT({domNode:D.current,nodeId:C,getStoreItems:()=>{let{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,domNode:c}=v.getState();return{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,paneDomNode:c}},onChange:($1,Q1)=>{let{triggerNodeChanges:J1,nodeLookup:m,parentLookup:p,nodeOrigin:c}=v.getState(),a=[],i={x:$1.x,y:$1.y},o=m.get(C);if(o&&o.expandParent&&o.parentId){let y=o.origin??c,g=$1.width??o.measured.width??0,q1=$1.height??o.measured.height??0,t={id:o.id,parentId:o.parentId,rect:{width:g,height:q1,...uK({x:$1.x??o.position.x,y:$1.y??o.position.y},{width:g,height:q1},o.parentId,m,y)}},W1=nq([t],m,p,c);a.push(...W1),i.x=$1.x?Math.max(y[0]*g,$1.x):void 0,i.y=$1.y?Math.max(y[1]*q1,$1.y):void 0}if(i.x!==void 0&&i.y!==void 0){let y={id:C,type:"position",position:{...i}};a.push(y)}if($1.width!==void 0&&$1.height!==void 0){let g={id:C,type:"dimensions",resizing:!0,setAttributes:!O?!0:O==="horizontal"?"width":"height",dimensions:{width:$1.width,height:$1.height}};a.push(g)}for(let y of Q1){let g={...y,type:"position"};a.push(g)}J1(a)},onEnd:({width:$1,height:Q1})=>{let J1={id:C,type:"dimensions",resizing:!1,dimensions:{width:$1,height:Q1}};v.getState().triggerNodeChanges([J1])}});return b.current.update({controlPosition:k,boundaries:{minWidth:B,minHeight:T,maxWidth:R,maxHeight:M},keepAspectRatio:A,resizeDirection:O,onResizeStart:V,onResize:j,onResizeEnd:f,shouldResize:N}),()=>{b.current?.destroy()}},[k,B,T,R,M,A,V,j,f,N]);let x=k.split("-");return H1.jsx("div",{className:d0(["react-flow__resize-control","nodrag",...x,Z,K]),ref:D,style:{...H,scale:E,...W&&{[h?"backgroundColor":"borderColor"]:W}},children:Y})}var qR=z1.memo(hv);function iR({nodeId:Q,isVisible:U=!0,handleClassName:Z,handleStyle:K,lineClassName:H,lineStyle:Y,color:W,minWidth:B=10,minHeight:T=10,maxWidth:R=Number.MAX_VALUE,maxHeight:M=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:O=!0,shouldResize:P,onResizeStart:N,onResize:V,onResizeEnd:j}){if(!U)return null;return H1.jsxs(H1.Fragment,{children:[OT.map((f)=>H1.jsx(qR,{className:H,style:Y,nodeId:Q,position:f,variant:V3.Line,color:W,minWidth:B,minHeight:T,maxWidth:R,maxHeight:M,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:V,onResizeEnd:j},f)),RT.map((f)=>H1.jsx(qR,{className:Z,style:K,nodeId:Q,position:f,color:W,minWidth:B,minHeight:T,maxWidth:R,maxHeight:M,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:V,onResizeEnd:j},f))]})}var xv=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function mv({children:Q}){let U=H0(xv);if(!U)return null;return UR.createPortal(Q,U)}var gv=(Q,U)=>Q?.internals.positionAbsolute.x!==U?.internals.positionAbsolute.x||Q?.internals.positionAbsolute.y!==U?.internals.positionAbsolute.y||Q?.measured.width!==U?.measured.width||Q?.measured.height!==U?.measured.height||Q?.selected!==U?.selected||Q?.internals.z!==U?.internals.z,pv=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(gv(K,U.get(Z)))return!1;return!0},cv=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function _H({nodeId:Q,children:U,className:Z,style:K,isVisible:H,position:Y=b1.Top,offset:W=10,align:B="center",...T}){let R=nK(),M=z1.useCallback((D)=>{return(Array.isArray(Q)?Q:[Q||R||""]).reduce((b,k)=>{let x=D.nodeLookup.get(k);if(x)b.set(x.id,x);return b},new Map)},[Q,R]),A=H0(M,pv),{x:O,y:P,zoom:N,selectedNodesCount:V}=H0(cv,h0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let f=c8(A),u=Array.from(A.values()),C=Math.max(...u.map((D)=>D.internals.z+1)),v={position:"absolute",transform:qT(f,{x:O,y:P,zoom:N},Y,W,B),zIndex:C,...K};return H1.jsx(mv,{children:H1.jsx("div",{style:v,className:d0(["react-flow__node-toolbar",Z]),...T,"data-id":u.reduce((D,h)=>`${D}${h.id} `,"").trim(),children:U})})}function FU(Q={}){let U=(K,H)=>Q.tools?`${H} (\`${K}\`)`:`\`${K}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let K=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${K} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
+ `)}var dR={"git-commit-horizontal":[["rect",{x:"9",y:"9",width:"6",height:"6"}],["path",{d:"M3 12h6M15 12h6"}]],"arrow-down-to-line":[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],"arrow-up-from-line":[["path",{d:"m18 9-6-6-6 6"}],["path",{d:"M12 3v14"}],["path",{d:"M5 21h14"}]],"git-branch":[["rect",{x:"4",y:"3",width:"4",height:"4"}],["rect",{x:"4",y:"17",width:"4",height:"4"}],["rect",{x:"16",y:"5",width:"4",height:"4"}],["path",{d:"M6 7v10M18 9v2a4 4 0 0 1-4 4H6"}]],monitor:[["rect",{x:"3",y:"4",width:"18",height:"13"}],["path",{d:"M8 21h8M12 17v4"}]],vault:[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"6.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 7.9 2.7 2.7"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 10.6 2.7-2.7"}],["rect",{x:"6.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 16.1 2.7-2.7"}],["rect",{x:"15.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 13.4 2.7 2.7"}],["circle",{cx:"12",cy:"12",r:"2"}]],settings:[["circle",{cx:"12",cy:"12",r:"3"}],["circle",{cx:"12",cy:"12",r:"7"}],["path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"}]],history:[["path",{d:"M3 12a9 9 0 1 0 3-6.7"}],["path",{d:"M3 4v5h5"}],["path",{d:"M12 7v5l3 3"}]],activity:[["path",{d:"M2 12h4l3-8 6 16 3-8h4"}]],"file-diff":[["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"}],["path",{d:"M9 10h6"}],["path",{d:"M12 13V7"}],["path",{d:"M9 17h6"}]],"square-plus":[["rect",{x:"4",y:"4",width:"16",height:"16"}],["path",{d:"M12 8v8M8 12h8"}]],"square-minus":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["path",{d:"M8 12h8"}]],"square-dot":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"10.8",y:"10.8",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],cloud:[["path",{d:"M7 19a5 5 0 0 1-.5-10A6 6 0 0 1 18 8a4.5 4.5 0 0 1 .5 11z"}]],"refresh-cw":[["path",{d:"M20 12a8 8 0 0 1-14.3 4.9M4 12a8 8 0 0 1 14.3-4.9"}],["path",{d:"M19 3v5h-5M5 21v-5h5"}]],clock:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M12 7v5l3 3"}]],"key-round":[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],plug:[["path",{d:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0zM12 18v3"}]],"list-checks":[["path",{d:"M11 6h9M11 12h9M11 18h9"}],["path",{d:"M3 6l1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17"}]],palette:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}],["rect",{x:"12.3",y:"5.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"16.3",y:"9.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"5.3",y:"11.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"7.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],check:[["path",{d:"M4 12l5 5L20 6"}]],plus:[["path",{d:"M12 4v16M4 12h16"}]],"chevron-down":[["path",{d:"M5 9l7 7 7-7"}]],"external-link":[["path",{d:"M14 4h6v6M20 4l-9 9"}],["path",{d:"M18 14v6H4V6h6"}]],"table-2":[["path",{d:"M3 9h18"}],["path",{d:"M9 3v18"}],["rect",{x:"3",y:"3",width:"18",height:"18"}]],"scroll-text":[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]],"layout-grid":[["rect",{x:"4",y:"4",width:"7",height:"7"}],["rect",{x:"13",y:"4",width:"7",height:"7"}],["rect",{x:"4",y:"13",width:"7",height:"7"}],["rect",{x:"13",y:"13",width:"7",height:"7"}]],globe:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"}]],"arrow-left":[["path",{d:"M20 12H5M11 6l-6 6 6 6"}]],link:[["path",{d:"M9 15l6-6"}],["path",{d:"M11 6l2-2a4.2 4.2 0 0 1 6 6l-2 2M13 18l-2 2a4.2 4.2 0 0 1-6-6l2-2"}]],user:[["circle",{cx:"12",cy:"8",r:"4"}],["path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"}]],"log-out":[["path",{d:"M10 4H4v16h6M9 12h11M16 8l4 4-4 4"}]]};var F=p0(f8(),1),KU="volter.console.token",t8=document.getElementById("root"),t1=t8.dataset.base??"/-/console",B0=window.location.origin,h6=(t8.dataset.worlds??B0).replace(/\/+$/,""),JO=(t8.dataset.names??"").split(",").filter((Q)=>Q!==""),b6=t8.dataset.worldOrigin==="1",s8=window.fetch.bind(window),E6="(session)",$O="(pass)",pJ=(Q)=>{try{if(Q&&!b6)sessionStorage.setItem(KU,Q);else sessionStorage.removeItem(KU);localStorage.removeItem(KU)}catch{}},QO="volter.console.portal",qO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(QO,new URL(Q).origin)}catch{}},lv=()=>{return o8.get("token")??""},x2=()=>{try{let Q=sessionStorage.getItem(QO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},iv=()=>{let Q=lv();if(b6){if(pJ(""),o8.get("pass"))return $O;let U=new URLSearchParams(window.location.search).has("signin");if(U)try{window.history.replaceState(null,"",window.location.pathname+window.location.hash)}catch{}return Q||(U?"":E6)}if(Q)return pJ(Q),Q;try{return sessionStorage.getItem(KU)??""}catch{return""}};function F2(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],W=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),W.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),W.push("approve");return{text:`Not ready to deploy: ${S8(Y)}.`,acts:W}}let Z=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(Z)return{text:`No credential is sealed for ${d1(Z[1])}: seal one in Settings › Vault.`,acts:["vault"]};if(/has no origin/i.test(U))return{text:"This World has no remote: name one in Settings › Remote.",acts:["remote"]};let K=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(K){let Y=K[1].split(/,\s*/).filter(Boolean).map(d1);return{text:`${S8(Y)} ${Y.length===1?"is":"are"} not connected to ${Y.length===1?"its":"their"} real service: Settings › Real services.`,acts:["settings"]}}if(/opening a seal is/i.test(U))return{text:"A key cannot seal a credential: open the World as yourself.",acts:[]};if(/a key manages no keys/i.test(U))return{text:"A key cannot manage keys: open the World as yourself.",acts:[]};if(/^PUT origin:/i.test(U))return{text:"That is not a World's address: https://<host>/<org>/<world>",acts:[]};if(/^clock: \{/i.test(U))return{text:"Pick a date and time.",acts:[]};if(/^advance: \{/i.test(U))return{text:"Advance by a number and a unit: 90m, 12h, 3d.",acts:[]};if(/^branches: \{/i.test(U))return{text:"That branch could not be made: pick now, or an instant before it.",acts:[]};if(/^approve: \{/i.test(U))return{text:"Name who approves.",acts:[]};if(/a browser deploys only what it names/i.test(U))return{text:"A deploy is confirmed by its name: use Deploy again.",acts:[]};if(/^no such door/i.test(U))return{text:"This World does not answer that here.",acts:[]};return{text:U.replace(/\s*[—–-]+\s*(?:run\s+)?`[^`]*`/g,"").replace(/\s*[—–-]+\s*(?:PUT|POST|GET|DELETE)\s+\/-\/\S+(?:\s*\{[^}]*\})?/g,"").replace(/\s*\(\s*`[^`]*`\s*\)/g,"").replace(/`(?:volter|printf|curl|npm|bun)[^`]*`/g,"").replace(/:\s*\{[^}]*\}/g,"").replace(/\(\s*\)/g,"").replace(/\s*;\s*(?=[;.]|$)/g,"").replace(/\s+([,.;:])/g,"$1").trim()||Q,acts:[]}}var C5=async(Q)=>F2(await N3(Q)).text,dv={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function UO({name:Q,acts:U}){let Z=U.map((K)=>dv[K]).filter((K)=>Boolean(K));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([K,H])=>F.jsxDEV(K1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${t1}/${Q}/~/${K}`,onClick:(Y)=>{Y.preventDefault(),M0([...Q.split("/"),"~",...K.split("/")])},children:H},void 0,!1,void 0,this)]},K,!0,void 0,this))},void 0,!1,void 0,this)}async function z0(Q,U,Z={}){return s8(`${B0}${U}`,{...Z,headers:{...Z.headers??{},...Q===E6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function f0(Q,U,Z=0){let K=xA((H)=>z0(Q,H),U,Z,Q);return K.state==="error"?{...K,error:F2(K.error).text}:K}var w9=(Q)=>{let U=new Date(Q),Z=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},rR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),GO=(Q)=>Q.operation==="observed"?`observed${Q.provenance==="placeholder"?" (default data)":" (vendor)"}`:Q.receipt?`${Q.receipt.status??""} ${Q.receipt.externalId??""} ${Q.receipt.reason??""}`.trim():Q.provenance==="placeholder"?"default data":"unpushed",rv=(Q)=>{let U=/^[0-9a-f]{2}-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/.exec(Q??"");return U?{trace:U[1],span:U[2]}:null},UH="volter.console.snapshots",D3=()=>{try{return JSON.parse(sessionStorage.getItem(UH)??"{}")}catch{return{}}},ZO=new Map,GH=(Q)=>{if(b6){if(Q.token||Q.readToken)ZO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(UH,JSON.stringify({...D3(),[Q.name]:Q}))}catch{}},ZH=(Q)=>ZO.get(Q)?.readToken||D3()[Q]?.readToken||"",HU=(Q)=>{try{let U=D3();delete U[Q],sessionStorage.setItem(UH,JSON.stringify(U))}catch{}},o8=new URLSearchParams(window.location.hash.slice(1)),O9=o8.get("close")??"";function P9(Q){if(typeof Q!=="string")return null;let U;try{U=new URL(Q)}catch{return null}return(U.protocol==="http:"||U.protocol==="https:")&&U.origin===Q.replace(/\/+$/,"")?U:null}function FH(Q){let U=P9(Q);if(!U)return null;let Z=new URL(B0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let K=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!K.test(U.hostname))return null;let H=U.hostname.replace(K,"");return H===Z.hostname||K.test(Z.hostname)&&H===Z.hostname.replace(K,"")?U.origin:null}function av(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:FH(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...K?{parentOrigin:K}:{}}}{let Q=o8.get("snapshot");if(Q){let U=av(Q);if(U&&!D3()[U.name])GH(U)}}var FO="volter.console.home",XO=(Q)=>{let U=P9(Q);if(!U)return null;let Z=new URL(B0).hostname,K=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===K?U.origin:null};{let Q=XO(o8.get("home"));if(Q)try{sessionStorage.setItem(FO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>o8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var Y4=()=>{try{return XO(sessionStorage.getItem(FO))??""}catch{return""}};function XH(Q,U,Z,K){let H=new URLSearchParams({token:U,home:Y4()||B0}),Y=D3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var qH=t8.dataset.route==="memory"?"":null;function d8(){return(qH??window.location.pathname.slice(t1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var aR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,k3=(Q,U)=>Q&&U&&aR.test(Q)&&aR.test(U)?`${Q}/${U}`:"";function M0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(qH!==null)qH=U;else window.history.pushState(null,"",`${t1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function KO(Q,U){let Z=FH(D3()[Q]?.origin);if(Z&&Z!==B0){XH(Z,ZH(Q),Q,`${t1}/${U.map(encodeURIComponent).join("/")}`);return}M0(U)}async function sR(){let[Q,U]=d8(),Z=k3(Q,U),K=Z?[Z]:JO;if(K.length===0){let H=await s8(`${B0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,W,...B]=H.split("/");return B.length===0&&k3(Y,W)===H});for(let H of K){let Y=await s8(`${B0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),B=P9(W.origin)?.origin;if(Y.status===409&&B&&B!==B0)return window.location.replace(`${B}${t1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:E6}}return null}function sv(){let[Q,U]=K1.useState(tF),Z=(K)=>()=>{try{if(K==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",K)}catch{}Lq(K),U(K)};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Appearance",children:["system","light","dark"].map((K)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===K,onClick:Z(K),children:K==="system"?"System":K==="light"?"Light":"Dark"},K,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tv(){let[Q,U]=K1.useState(iv()),[Z,K]=K1.useState(!1),[H,Y]=K1.useState(!1),[W,B]=K1.useState(""),[T,R]=K1.useState(null),[M,A]=K1.useState(null),[O,P]=K1.useState(d8());K1.useEffect(()=>{let g=()=>P(d8());return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)},[]),K1.useEffect(()=>{let[g,q1]=d8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=D3()[O9];if(!O9||!Q||!W1||!T1||!O1?.made||O1.parent!==`${W1}/${T1}`||k3(...O9.split("/"))!==O9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}z0(Q,`/-/${W1}/${T1}/branches/${O9}`,{method:"DELETE"}).catch(()=>null).then(()=>HU(O9))},[Q]);let N=K1.useCallback(async(g)=>{if(A(null),!g){let T1=await sR();if(T1==="moved")return;if(T1){if(K(!0),T1.token!==E6)pJ(T1.token);U(T1.token);return}R(null),Y(!0);return}if(b6&&g===E6){let T1=await sR();if(T1==="moved")return;if(T1)K(!0)}if(b6&&g===$O){let[T1,O1]=d8(),B1=k3(T1,O1),[U1,P1]=B1?B1.split("/"):[],j1=U1&&P1?await s8(`${B0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-pass":o8.get("pass")??""}}).catch(()=>null):null;if(!j1){A(`${B0} did not answer: no session was opened`),R(null);return}if(!j1.ok){A(`${await C5(j1)}. Open it again from the platform.`),R(null);return}qO((await j1.json().catch(()=>({}))).issuer),U(E6);return}if(b6&&g!==E6){let[T1,O1]=d8(),B1=k3(T1,O1),[U1,P1]=B1?B1.split("/"):[],j1=U1&&P1?await s8(`${B0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-token":g}}).catch(()=>null):null;if(!j1){A(`${B0} did not answer: no session was opened`),R(null);return}if(!j1.ok){let A1=await C5(j1);A(j1.status===401||j1.status===403?`That token does not open ${U1}/${P1}.`:j1.status===409?`${U1}/${P1}'s session lives at another origin: ${A1}`:`The World could not open a session (${j1.status}): ${A1}`),R(null);return}U(E6);return}let q1=b6?new Response(null,{status:404}):await z0(g,"/-/worlds");if(q1.ok){let{worlds:T1}=await q1.json();R({kind:"admin",worlds:T1});return}if(q1.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),R(null);return}if(q1.status>=500){let T1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${T1.error?`: ${T1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),R(null);return}let t=JO;if(t.length===0){let T1=await s8(`${B0}/-/ping`);if(!T1.ok){A(`${B0} does not answer as a host`),R(null);return}if(t=(await T1.json()).worlds??[],t.length===0){A(`${B0} does not list its Worlds: open a World at its own address, ${B0}${t1}/<org>/<world>`),R(null);return}}let W1=[];for(let T1 of t){let O1=await z0(g,`/-/${T1}/twins`);if(O1.ok){let B1=await O1.json();W1.push({name:T1,base:`${h6}/${T1}`,twins:(B1.twins??[]).map((U1)=>({vendor:U1.twin,protocol:U1.protocol??null,root:U1.root??null}))})}}if(W1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),R(null);return}R({kind:"world",worlds:W1})},[]);K1.useEffect(()=>{N(Q)},[Q,N]);let V=(g)=>T?.kind==="admin"?T.worlds.find((q1)=>q1.name===g)?.token??Q:Q,[j,f]=K1.useState("");if(!Q||!T&&!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(FJ,{href:`${t1}/`},void 0,!1,void 0,this),Q&&!T&&!M||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(g)=>{g.preventDefault(),pJ(W.trim()),U(W.trim())},className:"stack",children:[F.jsxDEV("h2",{children:"Open a World"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"A World's token opens that World. A host's admin token opens every World it serves."},void 0,!1,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Token"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"token",type:"password",value:W,onChange:(g)=>B(g.target.value),autoFocus:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let u=()=>{if(Z){window.location.reload();return}if(b6){let[g,q1]=d8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=()=>window.location.replace(x2()?`${x2()}/`:`${B0}${t1}/${W1&&T1?`${W1}/${T1}`:""}?signin`);if(setTimeout(O1,2000),W1&&T1)s8(`${B0}/-/${W1}/${T1}/session/end`,{method:"POST"}).catch(()=>null).then(O1);else O1();return}if(T)for(let g of T.worlds)navigator.sendBeacon(`${g.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${g.name}/session/end`);pJ(""),U(""),B(""),R(null),M0([])};if(M||!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(FJ,{href:`${t1}/`},void 0,!1,void 0,this),F.jsxDEV("h2",{children:"Could not open it"},void 0,!1,void 0,this),F.jsxDEV("p",{role:"alert",children:M??"nothing answered"},void 0,!1,void 0,this),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/`,children:["Back to ",new URL(x2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:u,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let[C,v,D,h,E,b,k]=O,x=D==="~",$1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,J1=x||!D||!$1.test(D)?void 0:D,m=E&&$1.test(E)?b!==void 0&&h!=="changes"&&h!=="screens"?k3(E,b)||void 0:E:void 0,p=h==="changes"&&E==="changesets"&&b&&$1.test(b)?b:h==="screens"&&b&&k&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(k)?`${b}:${k}`:void 0,c=k3(C,v),a=c?D3()[c]??null:null,i=(g)=>ZH(g)||V(g),o=a?T.kind==="admin"?T.worlds.find((g)=>g.name===a.parent)?.token??null:T.worlds.some((g)=>g.name===a.parent)?Q:null:null,y=async(g)=>{let q1=FH(g.parentOrigin);if(q1&&q1!==B0){HU(g.name),window.location.assign(`${q1}${t1}/${g.parent}#close=${encodeURIComponent(g.name)}`);return}if(g.made)await z0(V(g.parent),`/-/${g.parent}/branches/${g.name}`,{method:"DELETE"}).catch(()=>null),HU(g.name);M0(g.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(lA,{},void 0,!1,void 0,this):null,F.jsxDEV(FJ,{href:`${Y4()&&Y4()!==B0?Y4():""}${t1}/`,onClick:(g)=>{if(Y4()&&Y4()!==B0)return;g.preventDefault(),M0([])}},void 0,!1,void 0,this),F.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[c?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("span",{children:c.split("/")[0]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${c}`,className:"crumb-world",onClick:(g)=>{g.preventDefault(),M0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1?F.jsxDEV("span",{children:[" / ",J1]},void 0,!0,void 0,this):null,x&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),x2()?F.jsxDEV("a",{href:`${x2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(x2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(x2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?null:F.jsxDEV("span",{className:"mode",children:Z?"on this machine":j?`signed in as ${j}`:T.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:u,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(_V,{name:c,token:i(c),twin:J1,tab:x?h??"overview":"overview",arg:x?m:void 0,...x&&p?{sub:p}:{},admin:a?null:T.kind==="admin"?Q:null,snapshot:a,parentToken:o,who:{local:Z,person:j||null,admin:T.kind==="admin"},onSignOut:u,onReturn:y,opens:(g)=>!!D3()[g]||T.kind==="admin"&&T.worlds.some((q1)=>q1.name===g),onRemoved:()=>{N(Q),M0([])},onWho:f,worlds:T.worlds.map((g)=>g.name)},c,!1,void 0,this):F.jsxDEV(ov,{mode:T,admin:T.kind==="admin"?Q:null,reload:()=>N(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ov({mode:Q,admin:U,reload:Z}){let[K,H]=K1.useState(""),[Y,W]=K1.useState(""),[B,T]=K1.useState(""),[R,M]=K1.useState(null),A=async(E)=>{if(!await c4({title:`Rotate the tokens of ${E}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let b=await z0(U,`/-/worlds/${E}/rotate`,{method:"POST"}),k=await b.json().catch(()=>({}));M(b.ok?`rotated ${E}: the new tokens are shown once — token ${k.token} · read token ${k.readToken}`:k.error?F2(k.error).text:`answered ${b.status}`),await Z()},O=async(E)=>{let b=await z0(U,`/-/worlds/${E}`,{method:"DELETE"}),k=await b.json().catch(()=>({}));M(b.ok?`removed ${E}`:k.error?F2(k.error).text:`answered ${b.status}`),await Z()},[P,N]=K1.useState(!1),[V,j]=K1.useState(!1),[f,u]=K1.useState(""),C=async(E)=>{E.preventDefault(),M(null),N(!0);try{let b=await z0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:B.split(",").map((x)=>x.trim()).filter(Boolean)})}),k=await b.json();if(!b.ok){M(k.error?F2(k.error).text:`the host answered ${b.status}`);return}M(`provisioned ${k.name}`),W(""),T(""),j(!1),await Z()}finally{N(!1)}},v=f.trim().toLowerCase(),D=Q.worlds.filter((E)=>!v||E.name.toLowerCase().includes(v)||E.twins.some((b)=>b.vendor.includes(v))),h=[...new Set(D.map((E)=>E.name.split("/")[0]))];return F.jsxDEV("section",{className:"home-window","aria-labelledby":"worlds",children:[F.jsxDEV("div",{className:"home-head",children:[F.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[E0(Q.worlds.length,"World")," ",U?"this host serves":"this key opens"]},void 0,!0,void 0,this),U?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{M(null),j(!0)},children:[F.jsxDEV(Q0,{name:"plus",size:16},void 0,!1,void 0,this),"New World"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"home-find",children:F.jsxDEV("input",{type:"search",placeholder:"Filter by World or vendor","aria-label":"Filter Worlds",value:f,onChange:(E)=>u(E.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:R},void 0,!1,void 0,this):null,h.map((E)=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:E},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:D.filter((b)=>b.name.split("/")[0]===E).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${t1}/${b.name}`,onClick:(k)=>{k.preventDefault(),M0(b.name.split("/"))},children:[F.jsxDEV(Q0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:b.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:b.base},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"home-vendors",children:b.twins.map((k)=>F.jsxDEV("span",{title:d1(k.vendor),children:F.jsxDEV(s0,{vendor:k.vendor},void 0,!1,void 0,this)},k.vendor,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?F.jsxDEV("details",{className:"menu home-more",children:[F.jsxDEV("summary",{"aria-label":`More for ${b.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(k)=>{k.currentTarget.closest("details")?.removeAttribute("open"),A(b.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(k)=>{k.currentTarget.closest("details")?.removeAttribute("open"),c4({title:`Remove ${b.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:b.name}).then((x)=>{if(x)O(b.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},b.name,!0,void 0,this))},void 0,!1,void 0,this)]},E,!0,void 0,this)),D.length===0?F.jsxDEV("p",{className:"mode home-note",children:v?`No World matches ${f}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(P5,{open:V,onClose:()=>{if(!P)j(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>j(!1),disabled:P,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:P,children:P?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:C,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:K,onChange:(E)=>H(E.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"world",value:Y,onChange:(E)=>W(E.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Vendors"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"vendors",value:B,onChange:(E)=>T(E.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"status",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var nv=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],ev=(Q,U)=>{let Z=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&Z?`${h6}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},tR={verify:"verified",use:"used",issue:"issued",revoke:"revoked",rotate:"rotated",seed:"seeded",upsert:"saved",set:"set",start:"started",finish:"finished",fail:"failed",schedule:"scheduled",deliver:"delivered",like:"liked",follow:"followed",reply:"replied",create:"created",update:"updated",delete:"deleted",record:"recorded",remove:"removed",add:"added",send:"sent",post:"posted",postmessage:"posted",cancel:"canceled",close:"closed",open:"opened",publish:"published",upload:"uploaded",invite:"invited",archive:"archived",merge:"merged",refund:"refunded",capture:"captured",confirm:"confirmed",pay:"paid"};function d5(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),K=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${K.charAt(0).toUpperCase()}${K.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),B=Y?`${H} seeded`:tR[Z]?`${H} ${tR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,T=Q.fields??{},R=["title","name","email","text","subject","summary","description"].map((A)=>T[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,M=R===null?null:R.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,O,P)=>`${O==="!"?"@":O}${P}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:B,label:M===null?null:M.length>80?`${M.slice(0,79)}…`:M}}var u3=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id;function _V({name:Q,token:U,twin:Z,tab:K,arg:H,sub:Y,admin:W,snapshot:B,parentToken:T,who:R,onSignOut:M,onReturn:A,opens:O,onRemoved:P,onWho:N,worlds:V=[]}){let[j,f]=K1.useState("pending"),[u,C]=K1.useState(null),[v,D]=K1.useState(0),[h,E]=K1.useState(null);K1.useEffect(()=>{let B1=!0;return C(null),z0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let P1=await U1.json().catch(()=>({}));if(qO(P1.issuer),P1.who)N?.(P1.who);E(typeof P1.signsAs==="string"?P1.signsAs:null);let j1=P9(P1.origin)?.origin;if(U1.status===409&&j1&&j1!==B0){XH(j1,U,Q);return}if(!B1)return;if(f(!U1.ok?"unknown":P1.scope==="read"?"read":P1.scope==="write"?"write":"unknown"),!U1.ok)C(P1.error?F2(P1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(B1)f("unknown"),C(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{B1=!1}},[Q,U,v]);let b=u?{state:"error",error:u}:j==="pending"?{state:"pending"}:{state:"ok",scope:j},k=j==="write",x=(B1)=>{if(B1.status!==403)return;B1.clone().json().then((U1)=>{if(/read token|opens only reads|write access|reads only/i.test(U1?.error??""))f("read")},()=>null)},[$1,Q1]=K1.useState(0);K1.useEffect(()=>{let B1=setInterval(()=>{if(!document.hidden)Q1((U1)=>U1+1)},5000);return()=>clearInterval(B1)},[]);let[J1,m]=K1.useState(0),p=f0(U,`/-/${Q}/clock`,$1+J1),c=f0(U,`/-/${Q}/twins`),a=f0(U,`/-/${Q}/branches`,J1),i=f0(U,`/-/${Q}/map`,Math.floor($1/2)),o=!(a.state==="error"&&(a.status===404||a.status===405)),y=nv.includes(K)?K:"overview",g=c.state==="ok"?c.data.twins.map((B1)=>B1.twin):[];if(Z&&c.state==="ok"&&!g.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(Q9,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${t1}/${Q}`,onClick:(B1)=>{B1.preventDefault(),M0(Q.split("/"))},children:["Open ",Q]},void 0,!0,void 0,this),children:F.jsxDEV("p",{children:["No vendor of this World is called ",Z,". Its changesets are under Changes › History."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);let q1=y==="vendors"&&H?H:void 0,t=()=>{f("pending"),D((B1)=>B1+1)};if(y==="canvas"||y==="vendors"&&!q1||K==="screens"&&!H)return F.jsxDEV(jV,{name:Q,token:U,twins:c,session:b,retry:t,snapshot:B,back:()=>M0(Q.split("/")),canWrite:k&&!B},void 0,!1,void 0,this);let T1=K==="settings"?{kind:"settings",tab:((B1)=>HO.find(([U1])=>U1===B1)?.[0]??"account")(H)}:K==="remote"?{kind:"settings",tab:"remote"}:K==="vault"?{kind:"settings",tab:"vault"}:K==="branches"?{kind:"branches",...H?{open:H}:{}}:null,O1=Z?"vendor":K==="screens"&&H?"screen":y==="vendors"&&q1?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(KV,{name:Q,token:U,view:O1,win:T1,who:R,snapshot:B,onReturn:A,onSignOut:M,worlds:V,session:b,retry:t,...O1==="vendor"?{arg:Z??q1}:O1==="events"||O1==="trace"||O1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:i,branches:o?a:null,clock:p,canWrite:k&&!B,refused:x,signsAs:h,opens:O,tick:$1,admin:W,onRemoved:P,onClock:()=>m((B1)=>B1+1),scope:B?"read":j},void 0,!1,void 0,this)}function Q0({name:Q,size:U=20}){return F.jsxDEV("svg",{className:"icon",viewBox:"0 0 24 24",width:U,height:U,fill:"none",stroke:"currentColor",strokeWidth:U<=16?1.75:1.5,strokeLinecap:"square",strokeLinejoin:"miter","aria-hidden":"true",children:(dR[Q]??[]).map(([Z,K],H)=>K1.default.createElement(Z,{key:H,...K}))},void 0,!1,void 0,this)}function zU(Q){let U=(Z)=>{let K=(Z.operation??Z.op).toLowerCase();return K.includes(".")?K.slice(K.lastIndexOf(".")+1):K};if(Q.some((Z)=>/^(delete|remove|archive|revoke)/.test(U(Z))||Z.fields?.deleted===!0))return{icon:"square-minus",word:"removed",tone:"removed"};if(/^(create|add|insert|issue|send|post|upload|invite|record|seed)/.test(U(Q[0])))return{icon:"square-plus",word:"made",tone:"added"};return{icon:"square-dot",word:"changed",tone:"changed"}}var HO=[["account","Account","user"],["changesets","Changesets","git-commit-horizontal"],["remote","Remote","cloud"],["access","Access","key-round"],["services","Real services","plug"],["vault","Vault","vault"],["checks","Checks","list-checks"],["clock","Clock","clock"],["appearance","Appearance","palette"]],JV=(Q,U)=>{let Z=U.split("/").pop()??U,K=Q.split("/").pop()??"";return Z.startsWith(`${K}-`)?Z.slice(K.length+1):Z},r8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function YO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],K=d5(Z),H=zU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,B={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===Z.subject.type&&A.subject.id===Z.subject.id&&A.occurredAt<=W)Object.assign(B,A.fields??{})}let T={...B};for(let A of Q.writes)Object.assign(T,A.fields??{});let R=H.tone==="added"&&Object.keys(B).length===0,M=[...new Set([...Object.keys(B),...Object.keys(T)])].filter((A)=>!PO(B[A],T[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??u3(Z)}: its changes`,children:[F.jsxDEV("div",{className:"ws-diff-head",children:[F.jsxDEV("span",{className:`ws-kind ${H.tone}`,title:H.word,children:F.jsxDEV(Q0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(s0,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??u3(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[d1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:u3(Z)},void 0,!1,void 0,this)," · ",H.word," here"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ol",{className:"ws-writes",children:Q.writes.map((A)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:d5(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",cJ(A)]},void 0,!0,void 0,this)]},A.id,!0,void 0,this))},void 0,!1,void 0,this),U===null?F.jsxDEV("p",{className:"mode pad",children:"Reading its history…"},void 0,!1,void 0,this):M.length===0?F.jsxDEV("p",{className:"mode pad",children:"No field holds a new value."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"ws-fields","aria-label":"Fields before and after",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Field"},void 0,!1,void 0,this),R?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:M.map((A)=>F.jsxDEV("tr",{children:[F.jsxDEV("th",{scope:"row",children:F.jsxDEV("code",{children:A},void 0,!1,void 0,this)},void 0,!1,void 0,this),R?null:F.jsxDEV("td",{className:A in B?"was":"none",children:A in B?F.jsxDEV(b3,{v:B[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:A in T?"now":"none",children:A in T?F.jsxDEV(b3,{v:T[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},A,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function zO({records:Q,selected:U,onPick:Z,label:K}){let[H,Y]=K1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),W=(R)=>{Y(R);try{localStorage.setItem("volter.console.records",R?"tree":"path")}catch{}},B=(R,M)=>{let A=R.writes[R.writes.length-1],O=d5(A),P=zU(R.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===R.key?"on":"",M?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===R.key,onClick:()=>Z(R.key),children:[M?null:F.jsxDEV(s0,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??u3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[r8(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${E0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${P.tone}`,title:P.word,"aria-label":P.word,children:F.jsxDEV(Q0,{name:P.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R.key,!1,void 0,this)},T=[...new Set(Q.map((R)=>R.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>W(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>W(!0),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"ws-list","aria-label":K,children:H?T.map((R)=>{let M=Q.filter((A)=>A.twin===R);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(s0,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(R)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:M.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:M.map((A)=>B(A,!0))},void 0,!1,void 0,this)]},R,!0,void 0,this)}):Q.map((R)=>B(R,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $V({name:Q,token:U,branches:Z,opens:K,refused:H,onChanged:Y}){let[W,B]=K1.useState(""),[T,R]=K1.useState(!1),M=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:M,running:!0}],O=Z?.state==="ok"?Z.data.branches:[],P=W.trim().toLowerCase(),N=(j)=>!P||j.toLowerCase().includes(P),V=(j)=>{j.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"The branch served here",children:[F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("b",{children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(Q0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover ws-branch-menu",children:[F.jsxDEV("div",{className:"ws-branch-find",children:[F.jsxDEV("input",{type:"search",placeholder:"Filter","aria-label":"Filter branches",value:W,onChange:(j)=>B(j.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(j)=>{V(j),R(!0)},disabled:!Z,children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"This World"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-branch-list",children:A.filter((j)=>N(j.name)).map((j)=>F.jsxDEV("li",{className:j.name===M?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:j.name===M?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:j.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:j.name===M?"served here":j.running?"running":"stopped"},void 0,!1,void 0,this)]},j.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),O.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:O.filter((j)=>N(j.name)).map((j)=>{let f=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:JV(Q,j.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:j.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(I0,{iso:j.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u=j.expiresAt?`Goes away ${new Date(j.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(j.name)?F.jsxDEV("a",{href:`${t1}/${j.name}`,title:u,onClick:(C)=>{C.preventDefault(),V(C),KO(j.name,j.name.split("/"))},children:f},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${u}. Its tokens went to whoever made it; it opens from their page.`,children:f},void 0,!1,void 0,this)},j.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches`,onClick:(j)=>{j.preventDefault(),V(j),M0([...Q.split("/"),"~","branches"])},children:"Manage branches…"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(LO,{name:Q,token:U,open:T,onClose:()=>R(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function WO({name:Q,view:U,changes:Z,changesets:K}){let H=(Y)=>(W)=>{W.preventDefault(),M0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",Z?F.jsxDEV("span",{className:"count",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",K?F.jsxDEV("span",{className:"count",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function QV({name:Q,token:U,sets:Z,sub:K,signsAs:H,canWrite:Y,rooted:W,refused:B,onChanged:T,changes:R,withScreens:M,required:A}){let[O,P]=K1.useState(null),[N,V]=K1.useState(!1),j=Z.state==="ok"?[...Z.data.changesets].sort((b,k)=>k.createdAt.localeCompare(b.createdAt)):[],f=j.find((b)=>b.name===K)??j[0],u=K1.useMemo(()=>{let b=new Map;for(let k of f?IO(f):[]){let x=`${k.twin}:${k.entry.subject.type}:${k.entry.subject.id}`,$1=b.get(x)??{key:x,twin:k.twin,writes:[]};$1.writes.push(k.entry),b.set(x,$1)}return[...b.values()]},[f]),C=u.find((b)=>b.key===O)??u[0],v=f0(U,C?`/-/${Q}/log/${C.twin}`:null),D={added:0,removed:0,changed:0};for(let b of u)D[zU(b.writes).tone]=(D[zU(b.writes).tone]??0)+1;let h=f?WU(f):null,E=f?wO(f,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(WO,{name:Q,view:"history",changes:R,changesets:j.length},void 0,!1,void 0,this),F.jsxDEV(b2,{load:Z,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:j.map((b)=>{let k=f?.name===b.name,x=WU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/changes/changesets/${b.name}`,className:k?"on":void 0,"aria-current":k?"true":void 0,onClick:($1)=>{$1.preventDefault(),P(null),M0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:QH(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?YU(b.cutBy):"unrecorded")," • ",F.jsxDEV(I0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(Q0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},b.name,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-pane-right",children:[Z.state==="ok"&&!f?F.jsxDEV(Q9,{title:"No changesets yet",children:F.jsxDEV("p",{children:"Cut one from Changes: the cut box is at its foot."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,f&&h&&E?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-commit-head",children:[F.jsxDEV("div",{className:"ws-commit-title",children:[F.jsxDEV("h3",{children:QH(f)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",E0(u.length,"changed record"),D.added?F.jsxDEV("span",{className:"plus",children:[" +",D.added]},void 0,!0,void 0,this):null,D.removed?F.jsxDEV("span",{className:"minus",children:[" −",D.removed]},void 0,!0,void 0,this):null,D.changed?F.jsxDEV("span",{className:"dot",children:[" •",D.changed]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode ws-commit-meta",children:[F.jsxDEV("code",{children:f.name},void 0,!1,void 0,this)," · ",F.jsxDEV(I0,{iso:f.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",f.owner??(f.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(f.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",f.cutBy?f.pushedBy&&f.applied===null&&f.cutBy==="machine"?"the machine it was cut on":YU(f.cutBy):"unrecorded"],...f.pushedBy?[["Pushed by",YU(f.pushedBy)]]:[]].map(([b,k])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",k]},b,!0,void 0,this))},void 0,!1,void 0,this),f.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:f.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${h.tone}`,children:h.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.label},void 0,!1,void 0,this),"Review…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-two inner",children:[F.jsxDEV("div",{className:"ws-files",children:F.jsxDEV(zO,{records:u,...C?{selected:C.key}:{},onPick:P,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:C?F.jsxDEV(YO,{record:C,history:v.state==="ok"?v.data.entries:v.state==="error"?[]:null},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"It changes nothing."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(P5,{open:N,onClose:()=>V(!1),title:`Review: ${QH(f)}`,wide:!0,children:[F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:W,refused:B,onChanged:T,part:"head",required:A},`h:${f.name}`,!1,void 0,this),F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:W,refused:B,onChanged:T,part:"review",required:A},`r:${f.name}`,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function qV({name:Q,token:U,vendors:Z,vendor:K,tick:H}){let[Y,W]=K1.useState(oR*4),[B,T]=K1.useState(""),[R,M]=K1.useState(null),A=f0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?IV(A.data.entries):[],P=[...new Set(O.map((D)=>d5(D.entry).what))].sort(),N=O.filter((D)=>!B||d5(D.entry).what===B),V=N.find((D)=>I9(D)===R)??N[0],j=(D)=>(h)=>{h.preventDefault(),M(null),M0([...Q.split("/"),"~","events",...D?[D]:[]])},f=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,u=V?rv(V.entry.traceparent):null,C=V?nR(V):null,v=V?MV(V.entry):[];return F.jsxDEV("div",{className:"ws-events",children:[F.jsxDEV("div",{className:"ws-filterbar",children:[F.jsxDEV("nav",{className:"ws-seg","aria-label":"Vendor",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:j(),children:"All"},void 0,!1,void 0,this),Z.map((D)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/events/${D}`,className:K===D?"on":void 0,"aria-current":K===D?"page":void 0,onClick:j(D),children:[F.jsxDEV(s0,{vendor:D},void 0,!1,void 0,this),d1(D)]},D,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:B,onChange:(D)=>{T(D.target.value),M(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),P.map((D)=>F.jsxDEV("option",{value:D,children:D},D,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[F.jsxDEV(b2,{load:A,what:"the events",lines:6},void 0,!1,void 0,this),F.jsxDEV("table",{className:"ws-grid","aria-label":"Events",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Time"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"What"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Record"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"By"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Receipt"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:N.map((D)=>{let h=d5(D.entry),E=nR(D),b=V&&I9(D)===I9(V);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>M(I9(D)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(I0,{iso:D.entry.occurredAt,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:D.twin},void 0,!1,void 0,this),d1(D.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:h.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:h.label?`“${h.label}”`:F.jsxDEV("code",{children:u3(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:cJ(D.entry,D.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E?F.jsxDEV("span",{className:E.bad?"badge cs-bad":E.status==="deployed"?"badge cs-done":"badge",children:E.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:GO(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},I9(D),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-detail",children:V?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-event-line",children:[F.jsxDEV("span",{className:"badge",children:MO(V.entry)},void 0,!1,void 0,this),C?F.jsxDEV("span",{className:C.bad?"badge cs-bad":"badge cs-good",children:C.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",u3(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",cJ(V.entry,V.caller)]},void 0,!0,void 0,this),u?F.jsxDEV("a",{href:`${t1}/${Q}/~/trace/${u.trace}`,onClick:(D)=>{D.preventDefault(),M0([...Q.split("/"),"~","trace",u.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),f!==void 0?F.jsxDEV(RV,{body:f},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"No request body: the World or the vendor wrote it."},void 0,!1,void 0,this),v.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:v.map(([D,h])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:D},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},D,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{role:"region","aria-label":"What it wrote",children:[F.jsxDEV("h4",{children:"Written"},void 0,!1,void 0,this),F.jsxDEV(RO,{fields:V.entry.fields},void 0,!1,void 0,this),F.jsxDEV("h4",{children:V.copies.length?"Receipts":"Receipt"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:V.copies.length?V.copies.map((D)=>D.entry.receipt?.status??"landed copy").join(" · "):OV(V.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[V?`${N.indexOf(V)+1} of ${N.length}`:N.length," events",K?` at ${d1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((D)=>D+oR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UV({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),H=f0(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-AO(A,O)):[],[W,B]=K1.useState(null),T=Y[0]?Date.parse(Y[0].entry.occurredAt):0,R=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-T):1,M=[...new Set(Y.map((A)=>A.twin))];return F.jsxDEV("div",{className:"ws-sheet ws-trace",children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),M0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(Q0,{name:"arrow-left",size:16},void 0,!1,void 0,this)," Events"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("h2",{children:[Y[0]?`${d5(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:Z.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!K?F.jsxDEV("p",{role:"alert",children:[Z?`${Z} is not a trace id`:"No trace named",": a W3C trace id is 32 hex characters."]},void 0,!0,void 0,this):F.jsxDEV(b2,{load:H,what:"the trace"},void 0,!1,void 0,this),Y.length?F.jsxDEV("p",{className:"ws-trace-meta",children:["Started ",F.jsxDEV("b",{children:F.jsxDEV(I0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[R," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:M.map(d1).join(", ")},void 0,!1,void 0,this)," · Writes ",F.jsxDEV("b",{children:Y.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.state==="ok"&&Y.length===0?F.jsxDEV(Q9,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(R/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let O=Date.parse(A.entry.occurredAt)-T,P=I9(A),N=d5(A.entry);return F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("div",{className:W===P?"ws-span on":"ws-span",role:"row",onClick:()=>B(W===P?null:P),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(s0,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[N.what,N.label?` “${N.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${O/R*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${O/R*100}%`},children:["+",O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W===P?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:MO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",u3(A.entry)]},void 0,!0,void 0,this)," · ",cJ(A.entry,A.caller)," · ",GO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(RO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},P,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function GV({name:Q,token:U,vendor:Z,withScreens:K,tick:H}){let Y=f0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((v)=>v.deleted!==!0):[],B=[...new Set(W.map((v)=>v.type))].map((v)=>({type:v,count:W.filter((D)=>D.type===v).length})).sort((v,D)=>Number(v.type.startsWith("_"))-Number(D.type.startsWith("_"))||r8(v.type).localeCompare(r8(D.type))),[T,R]=K1.useState(null),[M,A]=K1.useState(null),O=B.some((v)=>v.type===T)?T:B[0]?.type,P=W.filter((v)=>v.type===O),N=P.find((v)=>v.id===M)??P[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],j=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),f=(v)=>!j.has(v)&&P.some((D)=>D[v]!==void 0&&D[v]!==null&&typeof D[v]!=="object"),u=[...new Set(P.flatMap((v)=>Object.keys(v)))],C=[...V.filter(f),...u.filter((v)=>!V.includes(v)&&f(v))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${d1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:Z},void 0,!1,void 0,this),d1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:Y,what:"what it stores",lines:4},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Stores"},void 0,!1,void 0,this),B.map((v)=>F.jsxDEV("a",{href:`#${v.type}`,className:O===v.type?"on":void 0,"aria-current":O===v.type?"true":void 0,onClick:(D)=>{D.preventDefault(),R(v.type),A(null)},children:[F.jsxDEV(Q0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:r8(v.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:v.count},void 0,!1,void 0,this)]},v.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/events/${Z}`,onClick:(v)=>{v.preventDefault(),M0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(Q0,{name:"activity",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K?F.jsxDEV("a",{href:`${t1}/${Q}/~/screens/${Z}`,onClick:(v)=>{v.preventDefault(),M0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(Q0,{name:"monitor",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[Y.state==="ok"&&B.length===0?F.jsxDEV(Q9,{title:`${d1(Z)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,P.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${r8(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),C.map((v)=>F.jsxDEV("th",{children:v},v,!1,void 0,this)),F.jsxDEV("th",{children:"updated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:P.map((v)=>F.jsxDEV("tr",{className:N?.id===v.id?"on":void 0,"aria-selected":N?.id===v.id,onClick:()=>A(v.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:v.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),C.map((D)=>F.jsxDEV("td",{className:"ws-cell-clip",children:v[D]===void 0||v[D]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(v[D])},D,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof v.updatedAt==="string"?F.jsxDEV(I0,{iso:v.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},v.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("aside",{className:"ws-record","aria-label":"The selected record",children:N?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:r8(N.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:N.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(N).filter(([v])=>v!=="type"&&v!=="id").map(([v,D])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(b3,{v:D},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},v,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:N?`${P.indexOf(N)+1} of ${E0(P.length,r8(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZV({name:Q,vendor:U,url:Z,mapError:K,holding:H,session:Y,retry:W}){return F.jsxDEV("div",{className:"ws-screen",children:[F.jsxDEV("div",{className:"ws-screen-bar",children:[F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:H},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/vendors/${U}`,onClick:(B)=>{B.preventDefault(),M0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(Q0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),Z?F.jsxDEV("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(Q0,{name:"external-link",size:16},void 0,!1,void 0,this),"New tab"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Y.state==="ok"&&Y.scope==="read"?F.jsxDEV("p",{className:"mode ws-screens-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,K?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",K]},void 0,!0,void 0,this):Y.state==="pending"||Z===void 0?F.jsxDEV("p",{className:"mode ws-screens-note",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Y.state==="error"?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not open its screens: ",Y.error," ",F.jsxDEV("button",{type:"button",onClick:W,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z===null?F.jsxDEV("p",{className:"mode ws-screens-note",children:[d1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${d1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function FV({name:Q,token:U,who:Z,scope:K}){let[H,Y]=K1.useState(0),W=f0(U,`/-/${Q}/twins`),B=f0(U,`/-/${Q}/rules`,H),T=B.state==="ok"?B.data.changesets:null,[R,M]=K1.useState(null),[A,O]=K1.useState(null),[P,N]=K1.useState(!1),[V,j]=K1.useState([]),f=R??T?.approvals??1,u=A??T?.summary??"required",C=T!==null&&(f!==(T.approvals??1)||u!==(T.summary??"required")),v=(x,$1)=>{if(j((Q1)=>[{ok:x,text:$1,at:new Date().toISOString(),n:++lJ},...Q1].slice(0,3)),!x)i0($1,"error")},D=async(x)=>{x.preventDefault(),N(!0);try{let $1=await z0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:f,summary:u}})});if(!$1.ok){v(!1,`Save: ${await C5($1)}`);return}v(!0,`Saved: ${f===0?"no approval":E0(f,"approval")} before a deploy; a summary ${u==="required"?"required":"generated when none is given"}.`),M(null),O(null),Y((Q1)=>Q1+1)}finally{N(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},E=Z.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:Z.person},void 0,!1,void 0,this),Z.local?", signed in on this machine":""]},void 0,!0,void 0,this):Z.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this machine"},void 0,!1,void 0,this),": no one is signed in here, so no person owns them until they are pushed by one"]},void 0,!0,void 0,this):Z.admin?F.jsxDEV(F.Fragment,{children:F.jsxDEV("b",{children:"the host's admin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this token"},void 0,!1,void 0,this),", a service"]},void 0,!0,void 0,this),b=W.state==="ok"?W.data.twins.filter((x)=>x.root?.url):[],k=K!=="write"?"This session reads the World; it changes no rules":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Changesets"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"This World's rules, kept with it and shared by everyone who works in it. A person or the World's token changes them; a key never does, so an agent cannot relax the review its own changes go through."},void 0,!1,void 0,this),F.jsxDEV(b2,{load:B,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(x)=>void D(x),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",E,". An agent's or an app's key cuts as itself, for the person it was made for; a World's token cuts as a service."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"A cut's summary"},void 0,!1,void 0,this),F.jsxDEV("fieldset",{className:"choice",disabled:Boolean(k)||T===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:u==="required",onChange:()=>O("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:u==="generated",onChange:()=>O("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this),"Verified: replayed in a throwaway World, the World's checks passing"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("label",{className:"ws-rule-row",children:[F.jsxDEV("span",{children:"Approved by"},void 0,!1,void 0,this),F.jsxDEV("select",{value:f,onChange:(x)=>M(Number(x.target.value)),disabled:Boolean(k)||T===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((x)=>F.jsxDEV("option",{value:x,children:x===0?"no one: verified is enough":x===1?"1 person":`${x} different people`},x,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),W.state==="ok"&&b.length===0?F.jsxDEV("p",{className:"mode",children:"No vendor here is connected to its real service, so nothing deploys from this World."},void 0,!1,void 0,this):null,b.length?F.jsxDEV("ul",{className:"ws-rule-list",children:b.map((x)=>F.jsxDEV("li",{children:[F.jsxDEV(s0,{vendor:x.twin},void 0,!1,void 0,this),d1(x.twin),": ",h[x.root.deploy??"gated"]??"gated"]},x.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/services`,onClick:(x)=>{x.preventDefault(),M0([...Q.split("/"),"~","settings","services"])},children:"Real services"},void 0,!1,void 0,this)," sets each vendor's deploy policy."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(x6,{log:V,name:Q},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(k)||P||!C,title:k??void 0,children:P?"Saving…":"Save"},void 0,!1,void 0,this),C?F.jsxDEV("button",{type:"button",onClick:()=>{M(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,k?F.jsxDEV("span",{className:"mode",children:[k,"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function XV({who:Q,scope:U,snapshot:Z,portal:K,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[W,B]=Z?["A snapshot",`of ${Z.parent}, read only`]:Q.local&&Q.person?[Q.person,"Signed in on this machine: this World is served here, and acts as you"]:Q.local?["This machine","Served here, with no one signed in: what you do is recorded as this machine"]:Q.person?[Q.person,K?`Signed in through ${new URL(K).host}`:"Signed in"]:Q.admin?["The host's admin","Opened with the host admin token: every World it serves"]:["A link or key","Opened with a token for this World"];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Account"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-account",children:[F.jsxDEV("span",{className:"ws-account-face","aria-hidden":"true",children:F.jsxDEV(Q0,{name:Q.person?"user":Q.local?"monitor":Z?"clock":"key-round",size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:W},void 0,!1,void 0,this),F.jsxDEV("small",{children:B},void 0,!1,void 0,this),F.jsxDEV("small",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.local||Z?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(Q0,{name:"log-out",size:16},void 0,!1,void 0,this),Q.person?"Sign out":Q.admin?"Sign out of the host":"Use another token"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${K}/`,children:new URL(K).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function KV({name:Q,token:U,view:Z,sub:K,arg:H,win:Y,who:W,snapshot:B,onReturn:T,onSignOut:R,worlds:M,session:A,retry:O,twins:P,map:N,branches:V,clock:j,canWrite:f,refused:u,signsAs:C,opens:v,tick:D,admin:h,onRemoved:E,onClock:b,scope:k}){let x=NO(Q,U,D,u),[$1,Q1]=K1.useState(0),J1=$1*1e5+Math.floor(D/2),m=f0(U,`/-/${Q}/diff`,J1),p=f0(U,`/-/${Q}/changesets`,J1),c=f0(U,`/-/${Q}/rules`,J1),[a,i]=K1.useState(null),o=(M1)=>(r1)=>{r1?.preventDefault(),M0([...Q.split("/"),"~",...M1])},y=P.state==="ok"?P.data.twins.map((M1)=>M1.twin):[],g=new Map((N.state==="ok"?N.data.twins:[]).flatMap((M1)=>{let r1=ev(Q,M1);return r1?[[M1.twin,r1]]:[]})),q1=[...g.keys()],t=N.state==="ok"?N.data.twins.filter((M1)=>M1.root).map((M1)=>M1.twin):[],W1=(M1)=>N.state==="ok"?(N.data.twins.find((r1)=>r1.twin===M1)?.resources??[]).reduce((r1,u1)=>r1+u1.count,0):0,T1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],O1=K1.useMemo(()=>{if(m.state!=="ok")return[];let M1=new Map;for(let r1 of m.data.changes){let u1=`${r1.twin}:${r1.entry.subject.type}:${r1.entry.subject.id}`,D0=M1.get(u1)??{key:u1,twin:r1.twin,writes:[]};D0.writes.push(r1.entry),M1.set(u1,D0)}return[...M1.values()]},[m]),B1=O1.find((M1)=>M1.key===a)??O1[0],U1=f0(U,Z==="changes"&&B1?`/-/${Q}/log/${B1.twin}`:null,J1),P1=m.state==="ok"?m.data.changes.length:0,j1=x.waiting.length,A1=x.there,k1=x.origin.state==="ok"?x.origin.data.origin:null,D1=!f?"This session reads the World; it changes nothing":!A1?"No remote: name one in Settings › Remote":null,g1=(M1,r1,u1,D0,o1,X2)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/${D0}`,className:M1?"on":void 0,"aria-current":M1?"page":void 0,onClick:o1,children:[r1,F.jsxDEV("span",{children:u1},void 0,!1,void 0,this),X2?F.jsxDEV("span",{className:"count",children:X2},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),h1=(M1)=>{M1.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("div",{className:"ws",children:[F.jsxDEV("div",{className:"ws-bar",role:"toolbar","aria-label":`${Q} toolbar`,children:[F.jsxDEV("div",{className:"ws-left",children:[F.jsxDEV(FJ,{href:`${t1}/${Q}`,onClick:(M1)=>{M1.preventDefault(),o(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(Q0,{name:"globe",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("b",{children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(Q0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover menu-list ws-world-menu",children:[W.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),M.map((M1)=>F.jsxDEV("a",{href:`${t1}/${M1}`,className:M1===Q?"on":void 0,onClick:(r1)=>{r1.preventDefault(),h1(r1),M0(M1.split("/"))},children:[M1===Q?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"globe",size:16},void 0,!1,void 0,this),M1]},M1,!0,void 0,this)),F.jsxDEV("a",{href:`${Y4()&&Y4()!==B0?Y4():""}${t1}/`,onClick:(M1)=>{if(Y4()&&Y4()!==B0)return;M1.preventDefault(),h1(M1),M0([])},children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",x2()?` on ${new URL(x2()).host}`:""]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Connect an app"},void 0,!1,void 0,this),x2()?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key made on the platform; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[h6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU({platform:x2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!W.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key from Settings › Access; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[h6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Run it in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-menu-text mode",children:["Or point an SDK at ",F.jsxDEV("code",{children:[h6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",F.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/settings`,onClick:(M1)=>{h1(M1),o(["settings"])(M1)},children:[F.jsxDEV(Q0,{name:"settings",size:16},void 0,!1,void 0,this),"Settings…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV($V,{name:Q,token:U,branches:V,opens:v,refused:u,onChanged:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-where",title:"Where this is",children:[F.jsxDEV("span",{children:Q},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("span",{children:T1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),k1?F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",k1.namespace,j1?F.jsxDEV("b",{children:[" ↑",j1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["remote"]),children:"no remote"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:j.state==="ok"?F.jsxDEV(F.Fragment,{children:[j.data.frozen?"stopped at ":"",F.jsxDEV(I0,{iso:j.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.pull(),disabled:Boolean(D1)||x.busy!==null,title:D1??`Fetch what ${A1} has and move this branch onto it`,children:[F.jsxDEV(Q0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),x.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.push(),disabled:Boolean(D1)||x.busy!==null||j1===0,title:D1??(j1?`Push ${E0(j1,"changeset")} to ${A1}`:`Every changeset is at ${A1}`),children:[F.jsxDEV(Q0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),x.busy==="Push"?"Pushing…":"Push",j1?F.jsxDEV("span",{className:"ws-btn-count",children:j1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn icon-only","aria-label":"Settings",title:"Settings",onClick:()=>o(["settings"])(),children:F.jsxDEV(Q0,{name:"settings",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(Q0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:B.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(I0,{iso:B.at},void 0,!1,void 0,this),": a read-only snapshot",B.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(I0,{iso:B.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void T(B),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,x.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(x6,{log:x.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[y.length?F.jsxDEV("a",{href:`${t1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${S8(y.map(d1))}`,children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Board"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-screens-marks",children:[y.slice(0,3).map((M1)=>F.jsxDEV(s0,{vendor:M1},M1,!1,void 0,this)),y.length>3?F.jsxDEV("span",{className:"more",children:["+",y.length-3]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{className:"side-group",children:"Workspace"},void 0,!1,void 0,this),g1(Z==="changes"||Z==="history",F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),O1.length?String(O1.length):void 0),g1(Z==="events"&&!H||Z==="trace",F.jsxDEV(Q0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",o(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),y.map((M1)=>F.jsxDEV(K1.default.Fragment,{children:g1(Z==="vendor"&&H===M1,F.jsxDEV(s0,{vendor:M1},void 0,!1,void 0,this),d1(M1),`vendors/${M1}`,o(["vendors",M1]),W1(M1)?String(W1(M1)):void 0)},M1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),g1(!1,F.jsxDEV(Q0,{name:"cloud",size:16},void 0,!1,void 0,this),A1?"origin":"Name a remote…","remote",o(["remote"]),j1?`↑${j1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[Z==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(WO,{name:Q,view:"changes",changes:O1.length,changesets:p.state==="ok"?p.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:m.state==="ok"?`${E0(O1.length,"record")} · ${E0(P1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:m,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(zO,{records:O1,...B1?{selected:B1.key}:{},onPick:i,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[m.state==="ok"&&!B1?F.jsxDEV(Q9,{title:"No changes on this branch",action:j1>0&&A1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(D1)||x.busy!==null,onClick:()=>void x.push(),children:["Push ",E0(j1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",m.data.base.at?F.jsxDEV(I0,{iso:m.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:m.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,B1?F.jsxDEV(YO,{record:B1,history:U1.state==="ok"?U1.data.entries:U1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(kV,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(Q0,{name:W.person?"user":W.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:W.person??(W.local?"This machine":W.admin?"The host's admin":"A token"),account:`${t1}/${Q}/~/settings/account`,branch:T1},name:Q,token:U,changes:P1,canWrite:f,refused:u,onCut:()=>{Q1((M1)=>M1+1),i(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(QV,{name:Q,token:U,sets:p,changes:O1.length,withScreens:q1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:C,canWrite:f,rooted:t,refused:u,onChanged:()=>Q1((M1)=>M1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(qV,{name:Q,token:U,vendors:y,...H&&y.includes(H)?{vendor:H}:{},tick:D},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(UV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(GV,{name:Q,token:U,vendor:H,withScreens:q1.includes(H),tick:D},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(ZV,{name:Q,vendor:H,url:N.state==="ok"?g.get(H)??null:void 0,...N.state==="error"?{mapError:N.error}:{},holding:YV(N.state==="ok"?N.data.twins.find((M1)=>M1.twin===H)?.resources??[]:[]),session:A,retry:O},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(P5,{open:Y?.kind==="settings",onClose:()=>o(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:HO.map(([M1,r1,u1])=>F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/${M1}`,className:Y.tab===M1?"on":void 0,"aria-current":Y.tab===M1?"page":void 0,onClick:o(["settings",M1]),children:[F.jsxDEV(Q0,{name:u1,size:16},void 0,!1,void 0,this),r1]},M1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[k==="read"?F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"badge read-only",children:"Read only"},void 0,!1,void 0,this)," This session reads the World; it changes nothing."]},void 0,!0,void 0,this):null,Y.tab==="account"?F.jsxDEV(XV,{who:W,scope:k,snapshot:B,portal:x2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(FV,{name:Q,token:U,who:W,scope:k},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(uV,{name:Q,token:U,canWrite:f,tick:D,refused:u},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(EV,{name:Q,token:U,admin:h,canWrite:f,refused:u,onRemoved:E,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(bV,{name:Q,token:U,canWrite:f,refused:u},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(sv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV(P5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(BV,{name:Q,token:U,canWrite:f,branches:V,opens:v,...Y.open?{open:Y.open}:{},onChanged:b,refused:u},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JH({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>i0("Copied the prompt: paste it into your coding agent"),()=>i0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var KH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,HV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),YV=(Q,U=4)=>{let Z=[...Q].filter((K)=>K.count>0).sort((K,H)=>H.count-K.count);return Z.length?Z.slice(0,U).map((K)=>E0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},BO=F.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:F.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this);function zV({name:Q,token:U,clock:Z,canWrite:K,onChanged:H,refused:Y,open:W}){let[B,T]=K1.useState(!1),[R,M]=K1.useState(""),[A,O]=K1.useState(""),[P,N]=K1.useState(null),[V,j]=K1.useState(!1),f=Z.state==="ok"?Z.data:null,u=async(h,E,b)=>{j(!0),N(null);try{let k=await z0(U,`/-/${Q}/${E}`,{method:E==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!k.ok){Y(k),N({ok:!1,text:await C5(k)});return}let x=await k.json();N({ok:!0,text:`${h} — the World is at ${new Date(x.at).toLocaleString()}`}),T(!1),H()}catch(k){N({ok:!1,text:`the World did not answer: ${k instanceof Error?k.message:String(k)}`})}finally{j(!1)}},C=(h)=>{h.preventDefault();let E=new Date(R);if(Number.isNaN(E.getTime())){N({ok:!1,text:"Pick a date and time."});return}if(f&&E.getTime()<Date.parse(f.at)){N({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(f.at).toLocaleString()}.`});return}u("Clock set","clock",{at:E.toISOString()})},v=(h,E)=>{u(`Advanced ${E}`,"clock/advance",{by:h})},D=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${f?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):f.frozen?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",F.jsxDEV("strong",{children:F.jsxDEV(I0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:["World time ",F.jsxDEV("strong",{children:F.jsxDEV(I0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"· real time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&f?F.jsxDEV("details",{className:W?"clock-more inline":"clock-more",open:W||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:W?void 0:"popover",children:[F.jsxDEV("p",{className:"mode",children:"Move this World's clock forward to see what happens later: renewals, expiries, scheduled sends. Like a test clock, it only moves forward; to look back, the branch picker’s Manage branches… views an earlier moment."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"clock-controls",children:[F.jsxDEV("button",{type:"button","aria-expanded":B,onClick:()=>{T(!B),M(w9(rR(f.at))),N(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),D.map(([h,E])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${E}`,disabled:V||!f.frozen,title:f.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>v(h,E),children:E},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){N({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}v(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>O(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!f.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V||!f.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!f.frozen?F.jsxDEV("p",{className:"mode",children:"The World runs on real time. Set a time to start simulating; then advance it."},void 0,!1,void 0,this):null,B?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:C,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:w9(rR(f.at)),onChange:(h)=>M(h.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>T(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,P?F.jsxDEV("p",{role:P.ok?"status":"alert",children:P.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function WV({name:Q,token:U,clock:Z,refused:K}){let[H,Y]=K1.useState(!1),[W,B]=K1.useState(""),[T,R]=K1.useState(null),[M,A]=K1.useState(!1),O=Z.state==="ok"?Z.data.at:new Date().toISOString(),P=K1.useRef(null);return K1.useEffect(()=>{if(!H)return;let V=(f)=>{if(f.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),P.current?.querySelector("button")?.focus()},j=(f)=>{if(!P.current?.contains(f.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",j),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",j)}},[H]),F.jsxDEV("div",{className:"as-of",ref:P,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),B(w9(O)),R(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(V)=>{V.preventDefault(),R(null);let j=new Date(W);if(Number.isNaN(j.getTime())){R("Pick a date and time.");return}if(j.getTime()>Date.parse(O)){R(`That is after the World's present (${new Date(O).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let f=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:j.toISOString()},ttl:3600})});if(!f.ok){K(f),R(await C5(f));return}let u=await f.json();GH({name:u.name,parent:Q,token:u.token,readToken:u.readToken,at:j.toISOString(),expiresAt:u.expiresAt??null,parentOrigin:B0,made:!0});let C=P9(u.origin)?.origin;if(C&&C!==B0){XH(C,u.readToken,u.name,`${t1}/${u.name}`);return}M0(u.name.split("/"))}catch(f){R(`the World did not answer: ${f instanceof Error?f.message:String(f)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:W,max:w9(O),onChange:(V)=>B(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:M,children:M?"Opening…":"Open snapshot"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Opens a read-only copy of this World as it was then; the copy goes away within the hour."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,T?F.jsxDEV("p",{role:"alert",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function LO({name:Q,token:U,open:Z,onClose:K,onMade:H,refused:Y}){let W=(E)=>E.split("/").pop()??E,[B,T]=K1.useState(!1),[R,M]=K1.useState(null),[A,O]=K1.useState(""),[P,N]=K1.useState("now"),[V,j]=K1.useState(""),[f,u]=K1.useState("24"),[C,v]=K1.useState(!0);K1.useEffect(()=>{if(Z)M(null),j(w9(new Date().toISOString()))},[Z]);let D=async(E)=>{E.preventDefault(),M(null);let b=P==="at"?new Date(V):null;if(b&&Number.isNaN(b.getTime())){M("Pick a date and time, or make it as of now.");return}if(b&&b.getTime()>Date.now()){M("A branch is made as of now or a moment before it.");return}T(!0);let k=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(f)*3600),...b?{at:{instant:b.toISOString()}}:C?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(T(!1),!k){M(`${B0} did not answer`);return}if(!k.ok){Y(k),M(await C5(k));return}let x=await k.json();GH({name:x.name,parent:Q,token:x.token??"",readToken:x.readToken,at:(b??new Date).toISOString(),expiresAt:x.expiresAt??null,parentOrigin:B0,...x.origin?{origin:x.origin}:{}}),K(),O(""),i0(`Made ${W(x.name)}`),H()};return F.jsxDEV(P5,{open:Z,onClose:()=>{if(!B)K()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>K(),disabled:B,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:B,children:B?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(E)=>void D(E),className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Label ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"branchLabel",value:A,onChange:(E)=>O(E.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9\\-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="now",onChange:()=>N("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:C,onChange:(E)=>v(E.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="at",onChange:()=>N("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:w9(new Date().toISOString()),onChange:(E)=>j(E.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"branchLife",value:f,onChange:(E)=>u(E.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function BV({name:Q,token:U,canWrite:Z,branches:K,opens:H,open:Y,onChanged:W,refused:B,snapshotOf:T}){let R=f0(U,`/-/${Q}/clock`),M=(u)=>u.split("/").pop()??u,[A,O]=K1.useState(!1),P=(u)=>(C)=>{C.preventDefault(),M0([...Q.split("/"),"~","branches",...u?u.split("/"):[]])};if(!K)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let N=K.state==="ok"?K.data.branches:[],V=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:M(Q),running:!0}],j=K.state==="ok"?K.data.checkedOut??M(Q):M(Q),f=async(u)=>{if(!await c4({title:`Remove the branch ${M(u)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let C=await z0(U,`/-/${Q}/branches/${u}`,{method:"DELETE"}).catch((v)=>v);if(C instanceof Error){i0(`Remove ${M(u)}: the World did not answer (${C.message})`,"error");return}if(!C.ok){B(C),i0(`Remove ${M(u)}: ${await C5(C)}`,"error");return}HU(u),i0(`Removed ${M(u)}`),W(),M0([...Q.split("/"),"~","branches"])};if(Y){let u=Y.includes("/")?N.find((v)=>v.name===Y):void 0,C=Y.includes("/")?void 0:V.find((v)=>v.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches`,onClick:P(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"&&!u&&!C?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,u?F.jsxDEV(LV,{name:Q,b:u,canWrite:Z,opens:H(u.name),remove:()=>void f(u.name)},void 0,!1,void 0,this):null,C&&!u?F.jsxDEV(AV,{name:Q,token:U,b:C,served:C.name===j,canWrite:Z,canServe:K.state==="ok"&&Boolean(K.data.canServe)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}return F.jsxDEV("div",{"aria-labelledby":"branches",children:[F.jsxDEV("div",{className:"branches-head",children:[F.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",F.jsxDEV("b",{children:j},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),Z?F.jsxDEV("div",{className:"head-actions",children:[T?null:F.jsxDEV(WV,{name:Q,token:U,clock:R,refused:B},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>O(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:[V.map((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:u.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.name===j?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):u.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${u.name}`,!0,void 0,this)),N.map((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:M(u.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:M(u.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.at?.instant?F.jsxDEV(I0,{iso:u.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(I0,{iso:u.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.expiresAt?F.jsxDEV(I0,{iso:u.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},u.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(LO,{name:Q,token:U,open:A,onClose:()=>O(!1),onMade:W,refused:B},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LV({name:Q,b:U,canWrite:Z,opens:K,remove:H}){let Y=(T)=>T.split("/").pop()??T,W=ZH(U.name),B=f0(W,W?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[BO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[K?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>KO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,Z?F.jsxDEV("button",{type:"button",className:"danger-button",onClick:H,children:"Remove…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:U.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Y(U.from??Q)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.at?.instant?F.jsxDEV(I0,{iso:U.at.instant},void 0,!1,void 0,this):"live: it keeps its parent's time"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(I0,{iso:U.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Goes away"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.expiresAt?F.jsxDEV(I0,{iso:U.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!K?F.jsxDEV("p",{className:"mode",children:"Its tokens were handed to whoever made it: it opens, and shows its own changes, in their tab."},void 0,!1,void 0,this):null,B.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),B.data.changes.length===0?F.jsxDEV("p",{className:"mode",children:"Nothing written on it since it branched."},void 0,!1,void 0,this):F.jsxDEV(yV,{changes:B.data.changes,idPrefix:`branch-${Y(U.name)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function AV({name:Q,token:U,b:Z,served:K,canWrite:H,canServe:Y}){let[W,B]=K1.useState(!1),[T,R]=K1.useState(null),M=async()=>{B(!0),R(null);let A=await z0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}B(!1),R(A?await C5(A):`${B0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[BO," ",Z.name," ",K?F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:H&&Y&&!K?F.jsxDEV("button",{type:"button",className:"primary",disabled:W,onClick:()=>void M(),children:W?"Switching…":"Serve here"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:Z.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Kind"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:"one of this World's own branches"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"State"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Z.running?"running":"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${t1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),M0([...Q.split("/"),"~","changes"])},children:"Changes"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):Y?F.jsxDEV("p",{className:"mode",children:["“Serve here” stops this one's twins and serves ",Z.name," in its place."]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode",children:"This host serves one of the World's own branches at a time, and does not switch them from this page."},void 0,!1,void 0,this),T?F.jsxDEV("p",{role:"alert",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var oR=50,I9=(Q)=>`${Q.twin}:${Q.position}`,AO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,YU=(Q)=>{if(!Q)return"someone";if(Q.startsWith("key:")){let[U,Z]=Q.slice(4).split(" for:");return Z?`${U}, for ${Z}`:U||"a key"}if(Q.startsWith("person:"))return Q.slice(7);return Q==="machine"?"this machine":Q==="person"?"a session with no name":Q==="token:read"?"the read-only token":Q==="token"?"the World's token":Q},cJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${YU(Z)}`;if(Z.startsWith("person:")&&Z.length>7)return`by ${Z.slice(7)}`;if(Z==="machine")return"by this machine";if(Z==="person")return"by a session with no name";if(Z==="key")return"by a key";if(Z==="token:read")return"by the read-only token";if(Z==="token")return"by the World's token";return Q.actor?.kind==="system"?"by the vendor":Q.actor?.id?`by ${Q.actor.id}`:"by an app"},MO=(Q)=>Q.operation??Q.op;function MV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...R)=>R.map((M)=>Z[M]??U[M]).find((M)=>typeof M==="number"),H=[],Y=K("prompt_tokens","input_tokens"),W=K("completion_tokens","output_tokens"),B=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(B!==void 0)H.push(["tokens in all",B.toLocaleString()]);let T=K("cost_usd","cost");if(T!==void 0)H.push(["cost",`$${T<0.01?T.toPrecision(2):T.toFixed(2)}`]);return H}function TO({text:Q,at:U=280}){if(Q.length<=U)return F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this);return F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:[F.jsxDEV("span",{className:"text",children:[Q.slice(0,U),"…"]},void 0,!0,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:["show all ",Q.length.toLocaleString()," characters"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function b3({v:Q}){if(typeof Q==="string")return F.jsxDEV(TO,{text:Q},void 0,!1,void 0,this);if(Q===null||typeof Q!=="object")return F.jsxDEV("code",{children:String(Q)},void 0,!1,void 0,this);let U=JSON.stringify(Q,null,2);return U.length<=160?F.jsxDEV("code",{children:JSON.stringify(Q)},void 0,!1,void 0,this):F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:F.jsxDEV("code",{children:[JSON.stringify(Q).slice(0,120),"…"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("pre",{children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var TV=(Q)=>typeof Q==="string"?Q:Array.isArray(Q)?Q.map((U)=>U&&typeof U==="object"&&typeof U.text==="string"?U.text:"").filter(Boolean).join(`
249
+ `):JSON.stringify(Q??"");function RV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(b3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,K=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[K.length?F.jsxDEV("dl",{className:"fields",children:K.map(([H,Y])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(b3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,Z?F.jsxDEV("ol",{className:"messages",children:Z.map((H,Y)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"role",children:typeof H.role==="string"?H.role:"message"},void 0,!1,void 0,this),F.jsxDEV(TO,{text:TV(H.content)},void 0,!1,void 0,this)]},Y,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function RO({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return F.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return F.jsxDEV("dl",{className:"fields",children:U.map(([Z,K])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(b3,{v:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var OV=(Q)=>Q.receipt?`${Q.receipt.status??""}${Q.receipt.externalId?` · ${Q.receipt.externalId}`:""}${Q.receipt.reason?` · ${Q.receipt.reason}`:""}`:Q.operation==="observed"?"observed from the vendor":Q.provenance==="placeholder"?"default data":"none: it has not left this World";function IV(Q){let U=new Map,Z=[],K=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){K.push(Y);continue}let W={...Y,copies:[]};if(Z.push(W),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,W);if(!H.has(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`))H.set(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`,W)}for(let Y of K){let W=Y.entry.landsId?U.get(`${Y.twin}:${Y.entry.landsId}`):Y.entry.aliasOf?H.get(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.aliasOf}`):void 0;if(W)W.copies.push(Y);else Z.push({...Y,copies:[]})}return Z.sort(AO)}var $H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function nR(Q){let U=[Q.entry.receipt,...Q.copies.map((H)=>H.entry.receipt)].filter((H)=>Boolean(H?.status));if(U.length===0)return null;let Z=U.find((H)=>H.status==="failed"||H.status==="refused"),K=[...U].sort((H,Y)=>($H[Y.status]??0)-($H[H.status]??0))[0];return Z&&!($H[K.status]>=5)?{status:Z.status,bad:!0}:{status:K.status,bad:!1}}var H4=1280,t4=820,XU=160,K4=72,wV=72,e0=(Q)=>`${Q.vendor}:${Q.id}`,i8=(Q)=>`${Q.vendor}:section:${Q.section.id}`,a8=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),OO=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${h6}/${Q}/${U.vendor}${U.at.screen}`:null,PV=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(e0(Z))||a8(Z).some((K)=>Q.include.includes(K))):U.filter((Z)=>!(Q.hidden??[]).includes(e0(Z)));function NV({data:Q}){let{frame:U,url:Z,active:K,picked:H,boards:Y,addTo:W,remove:B,compare:T}=Q,R=e0(U),M=Y.filter((A)=>A.include&&!A.include.includes(R)&&!a8(U).some((O)=>A.include.includes(O)));return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:U.title},void 0,!1,void 0,this),U.changes?F.jsxDEV("button",{type:"button",className:"frame-changed nodrag",onClick:()=>T(R),title:`${E0(U.changes,"change")} here, not in a changeset: compare before and now`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),U.changes]},void 0,!0,void 0,this):null,H&&M.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(A)=>{if(A.target.value)W(A.target.value,R)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),M.map((A)=>F.jsxDEV("option",{value:A.id,children:A.name},A.id,!1,void 0,this))]},void 0,!0,void 0,this):null,H&&B?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>B.act(R),title:B.label,"aria-label":B.label,children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame on":H?"frame picked":"frame",style:{width:H4,height:t4},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move · double-click to use",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[d1(U.vendor)," · ",U.kind]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"frame-url",children:U.url.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),Z?F.jsxDEV("a",{className:"nodrag",href:Z,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${U.title} in a new tab`,children:"↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame-body nodrag nopan nowheel":"frame-body",children:Z?F.jsxDEV("iframe",{title:U.title,src:Z,loading:"lazy",style:{pointerEvents:K?"auto":"none"}},void 0,!1,void 0,this):F.jsxDEV("div",{className:"frame-none",children:[F.jsxDEV("p",{children:F.jsxDEV("strong",{children:U.unseen==="sites-not-routed"?`This World shows ${U.title} only at its own local address.`:`${d1(U.vendor)}'s twin draws no page for this ${U.kind} yet.`},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:U.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function CV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(iR,{isVisible:Q.picked&&Q.editable,minWidth:480,minHeight:360,color:"var(--accent)",onResizeEnd:Q.resized},void 0,!1,void 0,this),F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",offset:6,className:"section-tag",children:[F.jsxDEV("button",{type:"button",className:Q.picked?"nodrag on":"nodrag",onClick:()=>Q.pick(Q.key),onDoubleClick:()=>{if(Q.editable)Q.rename(Q.key)},title:Q.editable?"Double-click to rename":void 0,children:[Q.vendor?F.jsxDEV(s0,{vendor:Q.vendor},void 0,!1,void 0,this):null,F.jsxDEV("span",{children:Q.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.picked&&Q.editable?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>Q.remove(Q.key),"aria-label":`Remove the section ${Q.name}`,title:"Remove the section (its frames stay)",children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:Q.picked?"section-box on":"section-box"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eR({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*t4/H4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:H4,height:t4,transform:`scale(${420/H4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function fV({name:Q,token:U,frame:Z,onClose:K,reads:H}){let[Y,W]=K1.useState({state:"opening"}),B=f0(U,`/-/${Q}/board/changes?frame=${encodeURIComponent(e0(Z))}`,H);K1.useEffect(()=>{if(!Z.since){W({state:"none",why:"Nothing here has changed since the World was last cut."});return}if(!Z.at||!("site"in Z.at)){W({state:"none",why:`A ${d1(Z.vendor)} page as it was needs a signed-in copy of the World; its changes are listed below.`});return}let R=new Date(Date.parse(Z.since)-1).toISOString(),M=null,A=!1,O=setTimeout(()=>void(async()=>{let P=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:R},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!P?.ok){W({state:"none",why:`The World made no copy of itself as it was then${P?`: ${await C5(P)}`:""}.`});return}let N=await P.json();if(M=N.name,A){z0(U,`/-/${Q}/branches/${N.name}`,{method:"DELETE"}).catch(()=>null);return}let V=P9(N.origin);if(!V){W({state:"none",why:"This World shows sites only at its own local address."});return}let j=new URL(Z.url);W({state:"ok",url:`${V.protocol}//${j.hostname}.${V.host}${j.pathname}${j.search}`,at:R})})(),500);return()=>{if(A=!0,clearTimeout(O),M)z0(U,`/-/${Q}/branches/${M}`,{method:"DELETE"}).catch(()=>null)}},[Q,U,Z.vendor,Z.id,Z.since]);let T=OO(Q,Z);return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${Z.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(s0,{vendor:Z.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:Z.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[E0(Z.changes,"change")," not yet cut",Z.since?`, since ${$9(Z.since)}`:""]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:K,"aria-label":"Close the comparison",children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"compare-sides",children:[F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:["Before",Y.state==="ok"?` · as of ${$9(Y.at)}`:""]},void 0,!0,void 0,this),Y.state==="ok"?F.jsxDEV(eR,{url:Y.url,title:`${Z.title} before`},void 0,!1,void 0,this):Y.state==="opening"?F.jsxDEV("p",{className:"mode compare-note",role:"status",children:"Opening the World as it was…"},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:Y.why},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:"Now"},void 0,!1,void 0,this),T?F.jsxDEV(eR,{url:T,title:`${Z.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:[d1(Z.vendor),"'s twin draws no page for this ",Z.kind," yet."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",B.error]},void 0,!0,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(B.state==="ok"?B.data.acts:[]).map((R)=>{let M=R.entries[0],A=d5({...M,service:Z.vendor,id:"",occurredAt:R.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:$9(R.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:A.what},void 0,!1,void 0,this),A.label?` · ${A.label}`:"",R.writes>1?F.jsxDEV("span",{className:"mode",children:[" and ",E0(R.writes-1,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:[R.entries.map((O,P)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:O.operation??O.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[O.subject.type," ",u3(O)]},void 0,!0,void 0,this)]},P,!0,void 0,this)),R.writes>R.entries.length?F.jsxDEV("li",{className:"mode",children:["and ",E0(R.writes-R.entries.length,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${R.at}:${M.subject.type}:${M.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),B.state==="ok"&&B.data.total>B.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",E0(B.data.total-B.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,F.jsxDEV("a",{className:"compare-all",href:`${t1}/${Q}/~/changes`,onClick:(R)=>{R.preventDefault(),M0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var SV={screen:NV,section:CV};function jV(Q){return F.jsxDEV(eK,{children:F.jsxDEV(vV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function vV({name:Q,token:U,session:Z,retry:K,snapshot:H,back:Y,canWrite:W}){let B=K1.useRef(null),T=K1.useRef(0),R=K1.useRef(Promise.resolve()),M=K1.useRef(0),[,A]=K1.useState(0),[O,P]=K1.useState({state:"loading"}),[N,V]=K1.useState(null),[j,f]=K1.useState(0),u=K1.useRef(0),C=K1.useRef(0),v=K1.useCallback(async()=>{let G1=M.current,I=++u.current,l=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),F1=l?.ok?await l.json().catch(()=>null):null;if(I<C.current)return;if(C.current=I,!F1?.frames||!F1.boards||!F1.version){let I1=l?`the World answered ${l.status}`:"the World did not answer";P((R1)=>R1.state==="ok"?R1:{state:"error",status:l?.status??0,error:I1}),V(I1);return}if(V(null),f((I1)=>I1+1),G1===M.current&&T.current===0)B.current={boards:F1.boards,version:F1.version};P({state:"ok",data:F1})},[U,Q]);K1.useEffect(()=>{v();let G1=setInterval(()=>{if(!document.hidden)v()},1e4);return()=>clearInterval(G1)},[v]);let D=O.state==="ok"?O.data.frames:[],h=B.current?.boards??[{id:"everything",name:"Everything"}],[E,b]=K1.useState("everything"),k=h.find((G1)=>G1.id===E)??h[0],x=W&&!H,$1=K1.useCallback((G1)=>{if(!B.current)return i0("The board is being read again: make that change once it shows","error"),Promise.resolve();B.current={...B.current,boards:G1(B.current.boards)},T.current+=1,M.current+=1,A((l)=>l+1);let I=R.current.then(async()=>{let l=B.current;if(!l)return;try{let F1=await z0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:l.boards,version:l.version}),signal:AbortSignal.timeout(15000)}),I1=await F1.json().catch(()=>null);if(F1.ok&&I1?.boards&&I1.version)B.current={boards:T.current>1&&B.current?B.current.boards:I1.boards,version:I1.version};else if(F1.status===409&&I1?.boards&&I1.version)B.current={boards:I1.boards,version:I1.version},i0("Someone else changed the board first: it is shown as they left it","error");else throw Error(I1?.error??`the World answered ${F1.status}`)}catch(F1){i0(`The board was not kept: ${F1 instanceof Error?F1.message:String(F1)}`,"error"),B.current=null;let I1=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),R1=I1?.ok?await I1.json().catch(()=>null):null;if(R1?.boards&&R1.version)B.current={boards:R1.boards,version:R1.version}}}).finally(()=>{if(T.current-=1,M.current+=1,A((l)=>l+1),T.current===0&&!B.current)v()});return R.current=I,I},[U,Q,v]),Q1=(G1,I)=>{$1((l)=>l.map((F1)=>F1.id===G1?I(F1):F1))},J1=PV(k,D),m=D.filter((G1)=>G1.changes&&!J1.includes(G1)).reduce((G1,I)=>G1+I.changes,0),[p,c]=K1.useState(null),[a,i]=K1.useState(null),[o,y]=K1.useState(null),g=gJ(),q1=h.filter((G1)=>G1.include),t=(G1,I)=>Q1(G1,(l)=>({...l,include:[...l.include??[],I]})),W1={label:k.include?"Take it off this board":"Hide it",act:(G1)=>{i(null),Q1(k.id,(I)=>I.include?{...I,include:I.include.filter((l)=>l!==G1)}:{...I,hidden:[...I.hidden??[],G1]})}},T1=(G1)=>({x:G1.position.x,y:G1.position.y,w:G1.width??G1.measured?.width??H4,h:G1.height??G1.measured?.height??t4}),O1=(G1,I)=>{let l=T1(G1),F1=l.x+l.w/2,I1=l.y+l.h/2;return I.filter((R1)=>R1.type==="section").map((R1,N1)=>({s:R1,i:N1})).filter(({s:R1})=>{let N1=T1(R1);return F1>=N1.x&&F1<=N1.x+N1.w&&I1>=N1.y&&I1<=N1.y+N1.h}).sort((R1,N1)=>T1(R1.s).w*T1(R1.s).h-T1(N1.s).w*T1(N1.s).h||N1.i-R1.i)[0]?.s},B1=K1.useCallback(()=>{let G1=new Map;for(let C1 of J1){let y1=k.placed?.[e0(C1)];if(y1)G1.set(e0(C1),y1)}let I=Math.max(-XU,...[...G1.values()].map((C1)=>C1.y+t4)),l=[...new Set(J1.map(i8))];for(let C1 of l){let y1=J1.filter((w0)=>i8(w0)===C1),v1=y1.filter((w0)=>G1.has(e0(w0))).map((w0)=>G1.get(e0(w0))),p1=v1.length?Math.max(...v1.map((w0)=>w0.x))+H4+XU:0,S0=v1.length?Math.min(...v1.map((w0)=>w0.y)):I+XU+K4*2+wV;for(let w0 of y1)if(!G1.has(e0(w0)))G1.set(e0(w0),{x:p1,y:S0}),p1+=H4+XU;I=Math.max(I,S0+t4)}let F1=k.sections??{},I1=(C1,y1,v1,p1,S0)=>({id:`sec:${C1}`,type:"section",position:{x:y1.x,y:y1.y},width:y1.w,height:y1.h,zIndex:0,draggable:x,data:{key:C1,name:v1,vendor:p1,named:S0}}),R1=[];for(let C1 of l){let y1=J1.find((T0)=>i8(T0)===C1),v1=a8(y1).find((T0)=>F1[T0])??C1,p1=F1[v1];if(p1?.gone)continue;let S0=J1.filter((T0)=>i8(T0)===C1).map((T0)=>G1.get(e0(T0))),w0={x:Math.min(...S0.map((T0)=>T0.x))-K4,y:Math.min(...S0.map((T0)=>T0.y))-K4,w:0,h:0};w0.w=Math.max(...S0.map((T0)=>T0.x))+H4+K4-w0.x,w0.h=Math.max(...S0.map((T0)=>T0.y))+t4+K4-w0.y;let n4=J1.filter((T0)=>i8(T0)===C1&&!k.placed?.[e0(T0)]).map((T0)=>G1.get(e0(T0))),j5=p1?{...p1}:w0;if(p1)for(let T0 of n4)j5.w=Math.max(j5.w,T0.x+H4+K4-j5.x),j5.h=Math.max(j5.h,T0.y+t4+K4-j5.y);R1.push(I1(v1,j5,p1?.name??`${d1(y1.vendor)} · ${y1.section.title}`,y1.vendor,Boolean(p1?.name)))}for(let[C1,y1]of Object.entries(F1))if(C1.startsWith("user:")&&!y1.gone)R1.push(I1(C1,y1,y1.name??"Section",null,!0));let N1=J1.map((C1)=>({id:e0(C1),type:"screen",zIndex:1,width:H4,height:t4,dragHandle:".frame-bar",draggable:x,position:G1.get(e0(C1)),data:{world:Q,frame:C1,url:OO(Q,C1)}}));return[...R1,...N1]},[JSON.stringify(J1),JSON.stringify(k),Q,x]),[U1,P1,j1]=hR([]),A1=K1.useRef("");K1.useEffect(()=>{let G1=B1();if(P1(G1),G1.length&&A1.current!==k.id)A1.current=k.id,requestAnimationFrame(()=>{g.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[B1,P1]);let k1=(G1,I=[],l={})=>{let F1=Object.fromEntries(I.map((R1)=>{let N1=g.getNode(`sec:${R1}`);if(!N1)return[R1,void 0];let C1=T1(N1),y1=N1.data,v1=l[R1]??(y1.named?y1.name:void 0);return[R1,{x:Math.round(C1.x),y:Math.round(C1.y),w:Math.round(C1.w),h:Math.round(C1.h),...v1?{name:v1.slice(0,80)}:{}}]}).filter(([,R1])=>R1!==void 0)),I1=Object.fromEntries(Object.entries(G1).map(([R1,N1])=>[R1,{x:Math.round(N1.x),y:Math.round(N1.y)}]));Q1(k.id,(R1)=>({...R1,placed:{...R1.placed??{},...I1},sections:{...R1.sections??{},...F1}}))},D1=K1.useRef(null),g1=(G1,I)=>{if(I.type!=="section"){D1.current=null;return}let l=g.getNodes(),F1=T1(I),I1=(R1)=>{let N1=T1(R1);if(R1.type==="screen"){let C1=N1.x+N1.w/2,y1=N1.y+N1.h/2;return C1>=F1.x&&C1<=F1.x+F1.w&&y1>=F1.y&&y1<=F1.y+F1.h}return R1.id!==I.id&&N1.x>=F1.x&&N1.y>=F1.y&&N1.x+N1.w<=F1.x+F1.w&&N1.y+N1.h<=F1.y+F1.h};D1.current={id:I.id,from:{...I.position},members:l.filter(I1).map((R1)=>({id:R1.id,x:R1.position.x,y:R1.position.y}))}},h1=(G1,I)=>{let l=D1.current;if(!l||l.id!==I.id)return;let F1=I.position.x-l.from.x,I1=I.position.y-l.from.y,R1=new Map(l.members.map((N1)=>[N1.id,N1]));P1((N1)=>N1.map((C1)=>{let y1=R1.get(C1.id);return y1?{...C1,position:{x:y1.x+F1,y:y1.y+I1}}:C1}))},M1=(G1,I)=>{let l=D1.current;D1.current=null;let F1=I.position.x-(l?.from.x??I.position.x),I1=I.position.y-(l?.from.y??I.position.y),R1=I.type==="screen"?[{id:I.id,x:I.position.x,y:I.position.y}]:(l?.members??[]).map((N1)=>({...N1,x:N1.x+F1,y:N1.y+I1}));requestAnimationFrame(()=>{let N1=g.getNodes(),C1=new Map(R1.filter((p1)=>!p1.id.startsWith("sec:")).map((p1)=>[p1.id,{x:p1.x,y:p1.y}])),y1=new Set([...I.type==="section"?[I.data.key]:[],...R1.filter((p1)=>p1.id.startsWith("sec:")).map((p1)=>p1.id.slice(4))]),v1=new Set(N1.filter((p1)=>C1.has(p1.id)).flatMap((p1)=>a8(p1.data.frame)));for(let p1 of N1){if(p1.type==="screen"&&a8(p1.data.frame).some((S0)=>v1.has(S0))&&!C1.has(p1.id))C1.set(p1.id,{x:p1.position.x,y:p1.position.y});if(p1.type==="section"&&v1.has(p1.data.key))y1.add(p1.data.key)}k1(Object.fromEntries(C1),[...y1])})},r1=(G1)=>Object.fromEntries(g.getNodes().filter((I)=>I.type==="screen"&&a8(I.data.frame).includes(G1)).map((I)=>[I.id,{x:I.position.x,y:I.position.y}])),u1=(G1)=>{let l=g.getNode(`sec:${G1}`)?.data?.name??"Section",F1=window.prompt("Name this section",l)?.trim();if(!F1)return;P1((I1)=>I1.map((R1)=>R1.id===`sec:${G1}`?{...R1,data:{...R1.data,name:F1.slice(0,80),named:!0}}:R1)),requestAnimationFrame(()=>k1(r1(G1),[G1],{[G1]:F1}))},D0=(G1)=>{i(null);let I=g.getNode(`sec:${G1}`);Q1(k.id,(l)=>{let F1=Object.fromEntries(Object.entries(l.sections??{}).filter(([I1])=>I1!==G1));return{...l,sections:G1.startsWith("user:")?F1:{...F1,[G1]:{...I?{x:Math.round(I.position.x),y:Math.round(I.position.y),w:Math.round(T1(I).w),h:Math.round(T1(I).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},o1=()=>{let G1=a?g.getNode(a):void 0,I=g.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),l=G1?.type==="screen"?{x:G1.position.x-K4,y:G1.position.y-K4,w:H4+K4*2,h:t4+K4*2}:{x:I.x-900,y:I.y-600,w:1800,h:1200},F1=`user:${Date.now().toString(36)}`,I1=Object.keys(k.sections??{}).filter((R1)=>R1.startsWith("user:")).length+1;i(`sec:${F1}`),Q1(k.id,(R1)=>({...R1,sections:{...R1.sections??{},[F1]:{x:Math.round(l.x),y:Math.round(l.y),w:Math.round(l.w),h:Math.round(l.h),name:`Section ${I1}`}}}))},X2=U1.map((G1)=>G1.type==="section"?{...G1,data:{...G1.data,picked:a===G1.id,editable:x,pick:(I)=>i(`sec:${I}`),rename:u1,remove:D0,resized:()=>requestAnimationFrame(()=>{let I=G1.data.key;k1(r1(I),[I])})}}:{...G1,data:{...G1.data,active:p===G1.id,picked:a===G1.id,boards:x?q1:[],addTo:t,remove:!x||k.include&&!k.include.includes(G1.id)?null:W1,compare:(I)=>{i(I),y(I)}}});K1.useEffect(()=>{let G1=(I)=>{if(I.target?.closest("input, textarea, select, [contenteditable]"))return;if(I.key==="Escape"){if(p)c(null);else i(null);return}if(!x||p)return;if((I.key==="Delete"||I.key==="Backspace")&&a){if(I.preventDefault(),a.startsWith("sec:"))D0(a.slice(4));else if(!k.include||k.include.includes(a))W1.act(a);else i0("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(I.key==="S"&&I.shiftKey&&!I.metaKey&&!I.ctrlKey)I.preventDefault(),o1()};return document.addEventListener("keydown",G1),()=>document.removeEventListener("keydown",G1)});let K2=(G1)=>{i(G1);let I=g.getNode(G1);if(!I)return;let l=T1(I);g.fitBounds({x:l.x,y:l.y,width:l.w,height:l.h},{padding:0.15,duration:400})},N2=()=>{let G1=`board-${Date.now().toString(36)}`;b(G1),$1((I)=>[...I,{id:G1,name:`Board ${I.length}`,include:[]}])},A2=()=>{let G1=window.prompt("Name this board",k.name)?.trim();if(G1)Q1(k.id,(I)=>({...I,name:G1.slice(0,80)}))},C2=()=>{let G1=k.id;b("everything"),$1((I)=>I.filter((l)=>l.id!==G1))},M2=[...new Map(D.map((G1)=>[i8(G1),G1])).values()],H2=k.include?[...M2.filter((G1)=>!a8(G1).some((I)=>k.include.includes(I))).map((G1)=>({key:i8(G1),label:`${d1(G1.vendor)} · ${G1.section.title} (all)`})),...D.filter((G1)=>!J1.includes(G1)).map((G1)=>({key:e0(G1),label:G1.title}))]:[],_2=k.include?[]:D.filter((G1)=>!J1.includes(G1)),z4=U1.filter((G1)=>G1.type==="section"),m2=U1.filter((G1)=>G1.type==="screen"),f5=new Map(m2.map((G1)=>[G1.id,O1(G1,U1)?.id??null])),S5=(G1)=>{let I=G1.data.frame;return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:a===G1.id?"on":void 0,onClick:()=>K2(G1.id),onDoubleClick:()=>c(G1.id),children:[F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.title},void 0,!1,void 0,this),I.changes?F.jsxDEV("span",{className:"layer-changed",title:`${E0(I.changes,"change")}, not in a changeset: its mark on the board compares before and now`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),I.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},G1.id,!1,void 0,this)},r5=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,o4=Z.state==="ok"&&O.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",children:F.jsxDEV(ER,{nodes:o4?X2:[],onNodesChange:j1,nodeTypes:SV,onNodeDragStart:g1,onNodeDrag:h1,onNodeDragStop:M1,onNodeClick:(G1,I)=>{if(I.id!==p)i(I.id)},onNodeDoubleClick:(G1,I)=>{if(I.type==="screen")i(I.id),c(I.id)},onPaneClick:()=>{c(null),i(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:r5?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(mR,{variant:a4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(s4,{position:"top-left",className:"float layers",children:[F.jsxDEV("div",{className:"float-head",children:[F.jsxDEV("button",{type:"button",className:"back",onClick:Y,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"float-title",children:[F.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],H?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"board-tabs",role:"tablist","aria-label":"Boards",children:[h.map((G1)=>F.jsxDEV("button",{type:"button",role:"tab","aria-selected":G1.id===k.id,className:G1.id===k.id?"on":void 0,onClick:()=>{i(null),c(null),b(G1.id)},onDoubleClick:x&&G1.id===k.id&&G1.include?A2:void 0,children:G1.name},G1.id,!1,void 0,this)),x?F.jsxDEV("button",{type:"button",className:"ghost",onClick:N2,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k.include&&x?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:A2,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:C2,children:"Delete board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("ul",{className:"layer-list","aria-label":"Layers",children:[z4.map((G1)=>{let I=G1.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:a===G1.id?"layer-section on":"layer-section",onClick:()=>K2(G1.id),onDoubleClick:()=>{if(x)u1(I.key)},children:[I.vendor?F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:m2.filter((l)=>f5.get(l.id)===G1.id).map(S5)},void 0,!1,void 0,this)]},G1.id,!0,void 0,this)}),m2.filter((G1)=>!f5.get(G1.id)).map(S5)]},void 0,!0,void 0,this),k.include&&!J1.length?F.jsxDEV("p",{className:"mode pad-s",children:"An empty board: add frames from Everything, or below."},void 0,!1,void 0,this):null,H2.length&&x?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(G1)=>{let I=G1.target.value;if(I)Q1(k.id,(l)=>({...l,include:[...l.include??[],I]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),H2.map((G1)=>F.jsxDEV("option",{value:G1.key,children:G1.label},G1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,_2.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",_2.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:_2.map((G1)=>F.jsxDEV("li",{children:x?F.jsxDEV("button",{type:"button",onClick:()=>Q1(k.id,(I)=>({...I,hidden:(I.hidden??[]).filter((l)=>l!==e0(G1))})),children:[F.jsxDEV("span",{children:G1.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"pad-s",children:G1.title},void 0,!1,void 0,this)},e0(G1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>b("everything"),children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),E0(m,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(b2,{load:O,what:"the board"},void 0,!1,void 0,this),N&&O.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",N,"): it shows what was last read."]},void 0,!0,void 0,this):null,Z.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Z.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",Z.error," ",F.jsxDEV("button",{type:"button",onClick:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),p?F.jsxDEV(s4,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",J1.find((G1)=>e0(G1)===p)?.title??p]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>c(null),children:["Done ",F.jsxDEV("kbd",{children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(s4,{position:"top-center",className:"float hint mode",children:"Scroll to pan · pinch or ⌘ scroll to zoom · double-click a frame to use it"},void 0,!1,void 0,this),x?F.jsxDEV(s4,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:o1,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Section"},void 0,!1,void 0,this),F.jsxDEV("kbd",{children:"⇧S"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,o&&J1.some((G1)=>e0(G1)===o)?F.jsxDEV(s4,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(fV,{name:Q,token:U,frame:J1.find((G1)=>e0(G1)===o),onClose:()=>y(null),reads:j},o,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(pR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(lR,{pannable:!0,zoomable:!0,nodeBorderRadius:8,position:"bottom-right"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var IO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),VV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function WU(Q){let U=Q.actions.filter(VV).length,Z=Q.actions.length-U,K=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((T)=>T.status==="deployed"),...K.filter((T)=>T.status==="confirmed")].map((T)=>T.actionId)).size,W=new Set([...H.filter((T)=>T.status==="refused"||T.status==="failed"),...K.filter((T)=>T.status==="failed")].map((T)=>T.actionId)).size,B={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...B};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...B};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...B};if(K.some((T)=>T.status==="replayed")&&K.every((T)=>T.status==="replayed"||T.status==="skipped"))return{label:"Pushed",tone:"good",...B};return{label:"Not sent",tone:"plain",...B}}var QH=(Q)=>Q.message??Q.narration?.split(`
250
+ `)[0]?.replace(/ setting .*$/,"")??Q.name;function wO(Q,U=1){let Z=Q.currentHash??Q.contentHash,K=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===Z).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===Z?Q.verification:null;if(H&&!H.passed)return{label:"Checks failed",tone:"bad"};if(K>0&&K<U)return{label:`Approved by ${K} of ${U}`,tone:"plain"};if(K>0)return{label:`Approved by ${K}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function _O({name:Q,token:U,signsAs:Z,c:K,canWrite:H,rooted:Y,refused:W,onChanged:B,part:T,required:R}){let M=T==="head",A=T==="review",[O,P]=K1.useState(null),[N,V]=K1.useState(!1),[j,f]=K1.useState(""),[u,C]=K1.useState(""),[v,D]=K1.useState(null),h=f0(U,`/-/${Q}/origin`),E=WU(K),b=wO(K,R),k=IO(K),x=[...new Set(k.map((t)=>t.twin))],$1=x.some((t)=>Y.includes(t)),Q1=(t)=>t===(K.currentHash??K.contentHash),J1=K.applied?.receipts??[],m=(K.deployed??[]).filter((t)=>t.status!=="landed"),p=J1.filter((t)=>t.status==="confirmed").length,c=m.filter((t)=>t.status==="deployed"),a=async(t,W1,T1,O1)=>{P(t),D(null);try{let B1=await z0(U,W1,{method:"POST",...T1===void 0?{}:{body:JSON.stringify(T1)}});if(!B1.ok)return W(B1),D({what:t,...F2(await N3(B1))}),!1;if(O1)i0(O1);return B(),!0}catch(B1){return D({what:t,text:`the World did not answer (${B1 instanceof Error?B1.message:String(B1)})`,acts:[]}),!1}finally{P(null)}},i=()=>{a("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(t)=>{if(t.preventDefault(),await a("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...j.trim()?{note:j.trim()}:{},...Z===null&&u.trim()?{as:u.trim()}:{}},"Approved"))V(!1),f("")},y=async()=>{let t=x.filter((W1)=>Y.includes(W1));if(!await c4({title:`Deploy ${K.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",K.actions.length," change",K.actions.length===1?"":"s"," against the real account",t.length===1?"":"s"," behind ",S8(t.map(d1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;P("Deploy"),D(null);try{let W1=await z0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!W1.ok){W(W1),D({what:"Deploy",...F2(await N3(W1))});return}let T1=await z0(U,`/-/${Q}/changesets/${K.name}`),O1=T1.ok?await T1.json():null;if(!O1){i0("Deploy: sent; reading its receipts failed","info"),B();return}let B1=WU(O1);i0(`Deploy: ${B1.performed} of ${B1.total} change${B1.total===1?"":"s"} performed at the vendor${B1.failed?`; ${B1.failed} refused or failed`:""}`,B1.failed?"error":B1.performed?"ok":"info"),B()}catch(W1){D({what:"Deploy",text:`the World did not answer (${W1 instanceof Error?W1.message:String(W1)})`,acts:[]})}finally{P(null)}},g=!H?"This session reads the World; it changes nothing":E.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?KH(h.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[M?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"changeset-title",children:[K.message??K.name," ",F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:K.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(I0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",S8(x.map(d1))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[F.jsxDEV("button",{type:"button",onClick:i,disabled:Boolean(g)||O!==null,title:g??"Replay it in a throwaway World and run the World's checks",children:O==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(g)||O!==null,title:g??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),$1?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void y(),disabled:Boolean(g)||O!==null,title:g??"Perform it against the real accounts behind this World",children:O==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[g,"."]},void 0,!0,void 0,this):null,v?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:v.what},void 0,!1,void 0,this),": ",v.text]},void 0,!0,void 0,this),v.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:i,disabled:O!==null,children:"Verify"},void 0,!1,void 0,this):null,v.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:O!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(UO,{name:Q,acts:v.acts},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null,A?F.jsxDEV(F.Fragment,{children:[K.narration?F.jsxDEV("p",{className:"narration",children:K.narration},void 0,!1,void 0,this):null,F.jsxDEV("h4",{children:"Where it went"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"block where",children:[E.performed>0?F.jsxDEV("p",{className:"pad",children:[E.performed>=E.total?"Deployed":"Partly deployed",": ",E.performed," of ",E.total," change",E.total===1?"":"s",E.own?` (and ${E.own} of the World's own, which stay in it)`:""," performed at ",S8([...new Set([...c.map((t)=>t.service),...J1.filter((t)=>t.status==="confirmed").map((t)=>t.service)].map(d1))]),c.length?` (${c.length} from here`:" (",c.length&&p?", ":"",p?`${p} by the remote`:"",")."]},void 0,!0,void 0,this):E.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",q1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:q1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(I0,{iso:K.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,": every change was replayed there. No vendor has performed any of it."]},void 0,!0,void 0,this):E.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",K.applied?.outcome==="refused"?" A push was refused (below); Push sends it again.":F.jsxDEV(F.Fragment,{children:[" Push sends it to the remote World",$1?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,E.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[E.failed," change",E.failed===1?" was":"s were"," refused or failed at the vendor",[...m.filter((t)=>t.reason&&(t.status==="refused"||t.status==="failed")).map((t)=>t.reason),...J1.filter((t)=>t.status==="failed"&&t.error).map((t)=>t.error)].slice(0,3).map((t)=>`: ${F2(t).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((t,W1)=>F.jsxDEV("li",{className:"mode",children:F2(t).text},W1,!1,void 0,this))},void 0,!1,void 0,this):null,m.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:m.map((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="refused"||t.status==="failed"?"badge cs-bad":t.status==="deployed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",t.status==="deployed"?t.url?F.jsxDEV("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:t.externalId??t.url},void 0,!1,void 0,this):t.externalId?F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this):null:null,t.reason?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${t.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the remote"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:J1.map((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="failed"?"badge cs-bad":t.status==="confirmed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",F.jsxDEV("span",{className:"mode",children:t.status==="replayed"?"replayed at the remote World":t.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),t.status==="confirmed"&&t.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t.error?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.error).text]},void 0,!0,void 0,this):null]},`r:${t.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!$1&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:["No vendor it changes is connected to its real service here, so it does not deploy from this World. ",F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/services`,onClick:(t)=>{t.preventDefault(),M0([...Q.split("/"),"~","settings","services"])},children:"Connect a vendor in Settings › Real services"},void 0,!1,void 0,this)," to deploy."]},void 0,!0,void 0,this):null,F.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!K.verification?F.jsxDEV("p",{className:"mode",children:"Not verified yet. Verify replays it in a throwaway World and runs this World's checks over the result."},void 0,!1,void 0,this):F.jsxDEV("div",{className:Q1(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(I0,{iso:K.verification.at},void 0,!1,void 0,this),Q1(K.verification.contentHash)?null:F.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.verification.results.length?F.jsxDEV("ul",{className:"checks",children:K.verification.results.map((t)=>F.jsxDEV("li",{children:[t.passed?"✓":"✗"," ",F.jsxDEV("code",{children:t.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:d1(t.service)},void 0,!1,void 0,this)]},t.id,!0,void 0,this))},void 0,!1,void 0,this):null,K.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:K.verification.refusals.map((t,W1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:t.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[d1(t.service),": ",t.reason]},void 0,!0,void 0,this)]},W1,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("h4",{children:"Approvals"},void 0,!1,void 0,this),K.approvals.length===0?F.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"approvals",children:K.approvals.map((t,W1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:t.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this),Q1(t.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),t.note?F.jsxDEV("div",{className:"mode",children:["“",t.note,"”"]},void 0,!0,void 0,this):null]},W1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(P5,{open:N,onClose:()=>{if(!O)V(!1)},title:`Approve ${K.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:O!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:O!==null,children:O==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(t)=>void o(t),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.jsxDEV("b",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,". A later change to it shows your approval as for an earlier version."]},void 0,!0,void 0,this),Z===null?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:u,onChange:(t)=>C(t.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"This World was opened with its token, which names no person: the approval records the name you give."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Note ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("textarea",{name:"approveNote",value:j,onChange:(t)=>f(t.target.value),rows:3,maxLength:500},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var PO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function yV({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((K)=>K.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((K)=>{let H=Q.filter((W)=>W.twin===K).map((W)=>W.entry),Y=[...new Set(H.map((W)=>`${W.subject.type}:${W.subject.id}`))];return F.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${K}`,children:[F.jsxDEV("h3",{id:`${U}-${K}`,className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:K},void 0,!1,void 0,this),d1(K)," ",F.jsxDEV("span",{className:"mode",children:["· ",E0(Y.length,"record"),", ",E0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let B=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),T=B[B.length-1],R=d5(T),M={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:T.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",R.label?F.jsxDEV("span",{className:"label",children:["“",R.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:u3(T)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.map((A)=>{let O=A.fields??{},P=Object.entries(O).filter(([V,j])=>!(V in M)||!PO(M[V],j)),N=M;return M={...M,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:d5(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",cJ(A)]},void 0,!0,void 0,this),P.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${d5(A).what} set`,children:P.map(([V,j])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in N?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(b3,{v:N[V]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(b3,{v:j},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(b3,{v:j},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V,!0,void 0,this))},void 0,!1,void 0,this)]},A.id,!0,void 0,this)})]},W,!0,void 0,this)})},void 0,!1,void 0,this)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function kV({name:Q,token:U,changes:Z,canWrite:K,refused:H,onCut:Y,pinned:W,generated:B,inputRef:T,author:R}){let[M,A]=K1.useState(""),[O,P]=K1.useState(!1),[N,V]=K1.useState([]),j=(u,C,v)=>{V((D)=>[{ok:u,text:C,at:new Date().toISOString(),n:++lJ,...v?.length?{acts:v}:{}},...D].slice(0,4))},f=async(u)=>{u.preventDefault(),P(!0);try{let C=await z0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(M.trim()?{message:M.trim()}:{})});if(!C.ok){H(C);let D=F2(await N3(C));j(!1,`Cut a changeset: ${D.text}`,D.acts);return}let v=await C.json();j(!0,`Cut ${v.name??"a changeset"}: ${E0(v.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(C){j(!1,`Cut a changeset: the World did not answer (${C instanceof Error?C.message:String(C)})`)}finally{P(!1)}};if(W){let u=!K?"This session reads the World; it changes nothing":Z===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(C)=>void f(C),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(C)=>{C.preventDefault(),M0(R.account.slice(t1.length+1).split("/"))},children:R.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:T,name:"changesetMessage","aria-label":"Summary",value:M,onChange:(C)=>A(C.target.value),placeholder:Z===0?"Nothing to cut":B?"Summary (optional)":"Summary (required)",required:!B,maxLength:200,disabled:Boolean(u),title:u??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(u)||O,title:u??void 0,children:O?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",E0(Z,"change"),R?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:R.branch},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!K||Z===0)return F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(u)=>void f(u),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",Z===1?"this change":`these ${Z} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:M,onChange:(u)=>A(u.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:Z===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:O||Z===0,children:O?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DV({name:Q,token:U}){let[Z,K]=K1.useState(0),H=f0(U,`/-/${Q}/keys`,Z),[Y,W]=K1.useState(!1),[B,T]=K1.useState(""),[R,M]=K1.useState("write"),[A,O]=K1.useState(!1),[P,N]=K1.useState(null),[V,j]=K1.useState(null),[f,u]=K1.useState(null),C=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=E?await E.json().catch(()=>({})):{error:`${B0} did not answer`};if(!E?.ok||!b.key){i0(b.error?F2(b.error).text:"refused","error");return}u(`${window.location.origin}${t1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),K((k)=>k+1)},v=async(h)=>{h.preventDefault(),O(!0),N(null);let E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:B.trim(),scope:R})}).catch(()=>null);O(!1);let b=E?await E.json().catch(()=>({})):{error:`${B0} did not answer`};if(!E?.ok||!b.key){N(b.error?F2(b.error).text:"refused");return}W(!1),j({key:b.key,name:B.trim()}),T(""),K((k)=>k+1)},D=async(h)=>{if(!await c4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await z0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(E.ok)i0(`Revoked ${h.name}`);else i0(await C5(E),"error");K((b)=>b+1)};return F.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[F.jsxDEV("div",{className:"keys-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"What an app, a script or a CI job holds to reach this World: each named for what holds it and revoked alone. People open the World as themselves; keys are for software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):F.jsxDEV("div",{className:"head-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>void C(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{N(null),W(!0)},children:"Make a key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:H,what:"the keys",retry:()=>K((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:$9(h.createdAt),children:sF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?sF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(cA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void D(h)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},h.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(P5,{open:Y,onClose:()=>{if(!A)W(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>W(!1),disabled:A,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"make-key",disabled:A||!B.trim(),children:A?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"make-key",onSubmit:v,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:B,onChange:(h)=>T(h.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:R,onChange:(h)=>M(h.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P?F.jsxDEV("p",{role:"alert",children:P},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(P5,{open:Boolean(V),onClose:()=>j(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>j(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Copy it now: it is shown this once. Put it where the app reads its secrets."},void 0,!1,void 0,this),V?F.jsxDEV(oF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(P5,{open:Boolean(f),onClose:()=>u(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>u(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),f?F.jsxDEV(oF,{label:"Link",value:f,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var lJ=0;function x6({log:Q,name:U}){if(Q.length===0)return null;return F.jsxDEV("ul",{className:"narration-log",role:"status","aria-live":"polite",children:Q.map((Z)=>F.jsxDEV("li",{className:Z.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(I0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(UO,{name:U,acts:Z.acts},void 0,!1,void 0,this):null]},Z.n,!0,void 0,this))},void 0,!1,void 0,this)}function NO(Q,U,Z,K){let[H,Y]=K1.useState(0),W=H*1e5+Math.floor(Z/2),B=f0(U,`/-/${Q}/origin`,W),T=f0(U,`/-/${Q}/diff`,W),R=f0(U,`/-/${Q}/changesets`,W),[M,A]=K1.useState([]),[O,P]=K1.useState(null),N=(D,h,E)=>{if(A((b)=>[{ok:D,text:h,at:new Date().toISOString(),n:++lJ,...E?.length?{acts:E}:{}},...b].slice(0,8)),!D)i0(h,"error")},V=async(D,h,E)=>{P(D);try{let b=await z0(U,`/-/${Q}/${h}`,E);if(!b.ok){K(b);let k=F2(await N3(b));return N(!1,`${D}: ${k.text}`,k.acts),null}return await b.json()}catch(b){return N(!1,`${D}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{P(null),Y((b)=>b+1)}},j=B.state==="ok"&&B.data.origin?KH(B.data.origin):null,f=T.state==="ok"?T.data.changes.length:null,u=R.state==="ok"&&j?HV(R.data.changesets.filter((D)=>!D.pushedBy)).sort((D,h)=>D.createdAt.localeCompare(h.createdAt)):[];return{origin:B,diff:T,sets:R,there:j,changes:f,waiting:u,log:M,busy:O,say:N,send:V,push:async()=>{let D=await V("Push","origin/push",{method:"POST"});if(!D)return;if(D.pushed.length===0){N(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of D.pushed){let E=h.receipts??[],b=E.filter((J1)=>J1.status==="replayed").length,k=E.filter((J1)=>J1.status==="confirmed").length,x=E.filter((J1)=>J1.status==="failed").length,$1=h.outcome==="applied"&&x===0;if(h.outcome==="refused"){N(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((J1)=>F2(J1).text).join("; ")}`:""}.`);continue}let Q1=[`${b} of ${E0(E.length,"change")} replayed there`,...k?[`${k} performed at the vendor by the remote`]:[],...x?[`${x} failed`]:[]];N($1,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${j??"the remote"}: ${Q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((J1)=>F2(J1).text).join("; ")})`:""}.`)}},pull:async()=>{let D=await V("Pull","origin/pull",{method:"POST"});if(!D)return;let h=Object.entries(D.appended).filter(([,b])=>b>0),E=D.rebased.flatMap((b)=>b.conflicts.map((k)=>`${d1(b.twin)} ${k.subject.type}:${k.subject.id} ${k.field}`));N(E.length===0,`Pulled from ${j??"the remote"}: ${h.length?h.map(([b,k])=>`${E0(k,"entry")} at ${d1(b)}`).join(", "):"nothing new"}${E.length?`; conflicts at ${E.join(", ")}`:""}.`)}}}function uV({name:Q,token:U,canWrite:Z,tick:K,refused:H}){let{origin:Y,there:W,changes:B,log:T,busy:R,say:M,send:A,push:O,pull:P}=NO(Q,U,K,H),[N,V]=K1.useState(""),[j,f]=K1.useState(""),[u,C]=K1.useState(!1),v=async(h)=>{h.preventDefault();let E=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:N.trim(),token:j.trim()})});if(E){let b=Object.values(E.appended??{}).reduce((k,x)=>k+x,0);M(!0,`The remote is ${KH(E.origin)}: its history came in (${E0(b,"entry")}).`),f(""),C(!1)}},D=!Z?"This session reads the World; it changes nothing":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"block remote",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{children:"Origin"},void 0,!1,void 0,this),Z?F.jsxDEV("button",{type:"button",onClick:()=>{V(W??""),C(!u)},"aria-expanded":u,children:W?"Change the remote…":"Name a remote…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"pad",children:[Y.state==="ok"?W?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:W},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(I0,{iso:Y.data.origin.fetchedAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("p",{children:"No remote — this World keeps its default data. Name one to push its changesets to a shared World and pull what others pushed there."},void 0,!1,void 0,this):F.jsxDEV(b2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),u?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void v(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:N,onChange:(h)=>V(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:j,onChange:(h)=>f(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:R!==null,children:R==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>C(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(x6,{log:T,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bV({name:Q,token:U,canWrite:Z,refused:K}){let[H,Y]=K1.useState(0),W=f0(U,`/-/${Q}/twins`,H),B=f0(U,`/-/${Q}/links`,H),T=f0(U,`/-/${Q}/requests?hours=24`,H),[R,M]=K1.useState({}),[A,O]=K1.useState(null),[P,N]=K1.useState(""),[V,j]=K1.useState(!1),[f,u]=K1.useState([]),C=(k,x,$1)=>{if(u((Q1)=>[{ok:k,text:x,at:new Date().toISOString(),n:++lJ,...$1?.length?{acts:$1}:{}},...Q1].slice(0,6)),!k)i0(x,"error")},v=B.state==="ok"?Object.keys(B.data.links).sort():[];K1.useEffect(()=>{let k=!0;return Promise.all(v.map(async(x)=>{let $1=await z0(U,`/-/${Q}/twins/${x}/credential`).catch(()=>null),Q1=$1?.ok?await $1.json():null;return[x,Q1?.credential??null]})).then((x)=>{if(k)M(Object.fromEntries(x))}),()=>{k=!1}},[Q,U,v.join(","),H]);let D=async(k)=>{if(k.preventDefault(),!A||!P)return;j(!0);let x=await z0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:P,headers:{"content-type":"text/plain"}}).catch(()=>null);if(j(!1),!x){C(!1,`Seal ${A.vendor}: ${B0} did not answer`);return}if(!x.ok){K(x);let Q1=F2(await N3(x));C(!1,`Seal ${d1(A.vendor)}: ${Q1.text}`,Q1.acts);return}let $1=await x.json().catch(()=>({}));C(!0,`Sealed a credential for ${d1(A.vendor)}${$1.fingerprint?` (${$1.fingerprint})`:""}: it opens for ${$1.boundTo??A.to} only, and is never shown again.`),N(""),O(null),Y((Q1)=>Q1+1)},h=async(k)=>{if(!await c4({title:`Remove the link ${k}?`,body:`Requests to ${h6}/${Q}/${k}/… stop being forwarded to ${B.state==="ok"?B.data.links[k]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let x=await z0(U,`/-/${Q}/links/${k}`,{method:"DELETE"}).catch(()=>null);if(!x?.ok){if(x)K(x);C(!1,`Remove ${k}: ${x?await C5(x):"the World did not answer"}`);return}C(!0,`Removed the link ${k}.`),Y(($1)=>$1+1)},E=(k)=>k?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge rooted",children:"sealed"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[k.fingerprint?F.jsxDEV("code",{children:k.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(I0,{iso:k.placedAt},void 0,!1,void 0,this),k.sealedBy?` · by ${k.sealedBy==="vault"?"the vault":"the host's key"}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this),b=W.state==="ok"?W.data.twins:[];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"lede",children:"A real vendor's credential lives in one place, sealed: beside this World, bound to where it goes. It is never readable back; this page says only that one is sealed, when, by what, and for where."},void 0,!1,void 0,this),F.jsxDEV(x6,{log:f,name:Q},void 0,!1,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"creds-head",children:[F.jsxDEV("div",{className:"block-head",children:F.jsxDEV("h3",{id:"creds-head",children:"Vendors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:W,what:"the vendors"},void 0,!1,void 0,this),W.state==="ok"?F.jsxDEV("table",{className:"dense","aria-label":"Credentials by vendor",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Bound to"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:b.map((k)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:k.twin},void 0,!1,void 0,this),d1(k.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E(k.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k.credential?.boundTo?F.jsxDEV("code",{children:k.credential.boundTo},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k.root?.url?F.jsxDEV("code",{children:k.root.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"none: a stand-in"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!k.root?.url,title:k.root?.url?`Seal ${d1(k.twin)}'s real credential for ${k.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{N(""),O({vendor:k.twin,to:k.root.url})},children:k.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},k.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&b.every((k)=>!k.root?.url)?F.jsxDEV("p",{className:"mode pad",children:"No vendor here has a real service behind it, so none holds a credential. Connect one in Settings › Real services; its credential is sealed here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"links-head",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{id:"links-head",children:"Links"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"a vendor with no twin, forwarded with its sealed credential"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:B,what:"the links"},void 0,!1,void 0,this),T.state==="ok"&&(T.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[T.data.journalFailures," request ",T.data.journalFailures===1?"line was":"lines were"," not kept by this World's server since it started (its links, and the twins it runs in its own process): those requests are missing from what this page counts."]},void 0,!0,void 0,this):null,B.state==="ok"&&v.length===0?F.jsxDEV("p",{className:"mode pad",children:["No links. A link forwards requests for a vendor with no twin here, at ",F.jsxDEV("code",{children:[h6,"/",Q,"/<link>/…"]},void 0,!0,void 0,this),", to that vendor's real API with the credential sealed for it."]},void 0,!0,void 0,this):null,v.length?F.jsxDEV("table",{className:"dense","aria-label":"Links",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Link"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Origin"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:"Requests, 24h"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:v.map((k)=>{let x=B.state==="ok"?B.data.links[k].origin:"",$1=T.state==="ok"?T.data.twins.find((Q1)=>Q1.twin===k):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:k},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:x},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:$1?F.jsxDEV("span",{title:Object.entries($1.byStatus).map(([Q1,J1])=>`${Q1}: ${J1}`).join(" · "),children:$1.requests},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:[E(R[k]??null),R[k]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[k].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{N(""),O({vendor:k,to:x})},children:R[k]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(k),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},k,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(P5,{open:Boolean(A),onClose:()=>{if(!V)O(null)},title:`Seal ${A?d1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>O(null),disabled:V,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:V||!P,children:V?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(k)=>void D(k),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:P,onChange:(k)=>N(k.target.value),autoComplete:"off",required:!0,autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function EV({name:Q,token:U,admin:Z,canWrite:K,refused:H,onRemoved:Y,only:W}){let B=(i)=>!W||W===i,[T,R]=K1.useState(0),M=f0(U,`/-/${Q}/twins`,T),A=f0(U,`/-/${Q}/checks`,T),[O,P]=K1.useState(0),N=f0(U,`/-/${Q}/clock`,O),[V,j]=K1.useState([]),[f,u]=K1.useState(null),[C,v]=K1.useState(null),[D,h]=K1.useState(""),[E,b]=K1.useState("gated"),[k,x]=K1.useState(!1),$1=(i,o,y)=>{if(j((g)=>[{ok:i,text:o,at:new Date().toISOString(),n:++lJ,...y?.length?{acts:y}:{}},...g].slice(0,6)),!i)i0(o,"error")},Q1=async(i,o,y)=>{let g=await z0(U,o,y).catch(()=>null);if(!g)return $1(!1,`${i}: the World did not answer`),!1;if(!g.ok){H(g);let q1=F2(await N3(g));return $1(!1,`${i}: ${q1.text}`,q1.acts),!1}return $1(!0,`${i}: done.`),R((q1)=>q1+1),!0},J1=async(i)=>{if(i.preventDefault(),!C)return;x(!0);let o=C.root??{},y=await Q1(D.trim()?`Connect ${d1(C.twin)} to ${D.trim()}`:`Disconnect ${d1(C.twin)}`,`/-/${Q}/twins/${C.twin}/root`,{method:"PUT",body:JSON.stringify(D.trim()?{...o,url:D.trim(),deploy:E}:null)});if(x(!1),y)v(null)},m=async()=>{if(!await c4({title:`Rotate the tokens of ${Q}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let i=await z0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(i.ok)u(await i.json()),$1(!0,"Rotated: the new tokens are shown once, below.");else $1(!1,`Rotate: ${await C5(i)}`)},p=async()=>{if(!await c4({title:`Remove ${Q}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:Q}))return;let i=await z0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(i instanceof Error){$1(!1,`Remove: the host did not answer (${i.message})`);return}if(i.ok)Y();else $1(!1,`Remove: ${await C5(i)}`)},c=M.state==="ok"?M.data.twins:[],a={gated:"gated: a person deploys an approved changeset",auto:"auto: a push deploys at once",hold:"hold: nothing deploys"};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(x6,{log:V,name:Q},void 0,!1,void 0,this),B("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),K?F.jsxDEV(DV,{name:Q,token:U},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"This session reads the World: its keys are managed by whoever holds its token."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B("services")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Real services"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:[c.some((i)=>i.root?.url)?null:"Every vendor here is a stand-in. ","Connect a vendor to its real service to read the real state into this World; its real credential is sealed in the Vault, and an approved changeset deploys there by its policy."]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:M,what:"the vendors"},void 0,!1,void 0,this),M.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Real services",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last read from it"},void 0,!1,void 0,this),K?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:c.map((i)=>{let o=i.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:i.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/${i.twin}`,title:`Its log and stored state · ${i.position??0} entries`,onClick:(y)=>{y.preventDefault(),M0([...Q.split("/"),i.twin])},children:d1(i.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:o?.url?F.jsxDEV("code",{children:o.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:o?.url?a[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:i.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",i.refresh.failed.count??1,": ",i.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?$9(i.refresh?.observedAt??i.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(o?.url??""),b(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),v(i)},children:o?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!o?.url,title:o?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void c4({title:`Read ${d1(i.twin)} now?`,body:`The real ${d1(i.twin)}'s current state is read into this World. Nothing is written to ${d1(i.twin)}.`,action:"Read from it"}).then((y)=>{if(y)Q1(`Read from ${d1(i.twin)}`,`/-/${Q}/twins/${i.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},i.twin,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,B("clock")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Clock"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"The instant every vendor here stamps from. Set it and move it forward to see what happens later: renewals, expiries, scheduled sends."},void 0,!1,void 0,this),F.jsxDEV(zV,{name:Q,token:U,clock:N,canWrite:K,onChanged:()=>P((i)=>i+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B("checks")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Checks"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"JavaScript the World runs over every change before it is performed (a changeset's Verify runs them too)."},void 0,!1,void 0,this),F.jsxDEV(b2,{load:A,what:"the checks"},void 0,!1,void 0,this),A.state==="ok"?A.data.checks.length===0?F.jsxDEV("p",{className:"mode",children:"No checks: every change is performed as it comes."},void 0,!1,void 0,this):F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Checks",children:F.jsxDEV("tbody",{children:A.data.checks.map((i)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)},i,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,Z&&!W?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),f?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:f.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:f.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void m(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void p(),children:"Remove world"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"Deletes this World and everything in it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(P5,{open:Boolean(C),onClose:()=>{if(!k)v(null)},title:`Connect ${C?d1(C.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(null),disabled:k,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:k,children:k?"Saving…":D.trim()?"Connect":"Disconnect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"connect-root",className:"stack",onSubmit:(i)=>void J1(i),children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real service's API address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"rootUrl",value:D,onChange:(i)=>h(i.target.value),placeholder:"https://api.openai.com",autoFocus:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Empty disconnects it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"rootDeploy",value:E,onChange:(i)=>b(i.target.value==="auto"?"auto":i.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((i)=>F.jsxDEV("option",{value:i,children:a[i]},i,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function CO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(tv,{},void 0,!1,void 0,this),F.jsxDEV(pA,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this),F.jsxDEV(mA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var SO=p0(f8(),1);Lq();fO.createRoot(t8).render(SO.jsxDEV(CO,{},void 0,!1,void 0,this));