@volter/world-console 3.0.18 → 3.0.20

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,4 +1,4 @@
1
- var ZN=Object.create;var{getPrototypeOf:FN,defineProperty:VA,getOwnPropertyNames:XN}=Object;var KN=Object.prototype.hasOwnProperty;function HN(Q){return this[Q]}var YN,zN,s0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?YN??=new WeakMap:zN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?ZN(FN(Q)):{};let W=U||!Q||!Q.__esModule?VA(Z,"default",{value:Q,enumerable:!0}):Z;for(let L of XN(Q))if(!KN.call(W,L))VA(W,L,{get:HN.bind(Q,L),enumerable:!0});if(K)H.set(Q,W);return W};var o4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var yA=o4((WN)=>{(function(){function Q(){if(v=!1,u){var g=WN.unstable_now();s=g;var p=!0;try{_:{y=!1,N&&(N=!1,x(b),b=-1),C=!0;var c=S;try{J:{Y(g);for(V=Z(R);V!==null&&!(V.expirationTime>g&&L());){var l=V.callback;if(typeof l==="function"){V.callback=null,S=V.priorityLevel;var o=l(V.expirationTime<=g);if(g=WN.unstable_now(),typeof o==="function"){V.callback=o,Y(g),p=!0;break J}V===Z(R)&&K(R),Y(g)}else K(R);V=Z(R)}if(V!==null)p=!0;else{var k=Z(w);k!==null&&M(W,k.startTime-g),p=!1}}break _}finally{V=null,S=c,C=!1}p=void 0}}finally{p?U1():u=!1}}}function U(g,p){var c=g.length;g.push(p);_:for(;0<c;){var l=c-1>>>1,o=g[l];if(0<H(o,p))g[l]=p,g[c]=o,c=l;else break _}}function Z(g){return g.length===0?null:g[0]}function K(g){if(g.length===0)return null;var p=g[0],c=g.pop();if(c!==p){g[0]=c;_:for(var l=0,o=g.length,k=o>>>1;l<k;){var t=2*(l+1)-1,_1=g[t],a=t+1,H1=g[a];if(0>H(_1,c))a<o&&0>H(H1,_1)?(g[l]=H1,g[a]=c,l=a):(g[l]=_1,g[t]=c,l=t);else if(a<o&&0>H(H1,c))g[l]=H1,g[a]=c,l=a;else break _}}return p}function H(g,p){var c=g.sortIndex-p.sortIndex;return c!==0?c:g.id-p.id}function Y(g){for(var p=Z(w);p!==null;){if(p.callback===null)K(w);else if(p.startTime<=g)K(w),p.sortIndex=p.expirationTime,U(R,p);else break;p=Z(w)}}function W(g){if(N=!1,Y(g),!y)if(Z(R)!==null)y=!0,u||(u=!0,U1());else{var p=Z(w);p!==null&&M(W,p.startTime-g)}}function L(){return v?!0:WN.unstable_now()-s<m?!1:!0}function M(g,p){b=D(function(){g(WN.unstable_now())},p)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),WN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var O=performance;WN.unstable_now=function(){return O.now()}}else{var T=Date,A=T.now();WN.unstable_now=function(){return T.now()-A}}var R=[],w=[],P=1,V=null,S=3,C=!1,y=!1,N=!1,v=!1,D=typeof setTimeout==="function"?setTimeout:null,x=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,u=!1,b=-1,m=5,s=-1;if(typeof E==="function")var U1=function(){E(Q)};else if(typeof MessageChannel<"u"){var Q1=new MessageChannel,h=Q1.port2;Q1.port1.onmessage=Q,U1=function(){h.postMessage(null)}}else U1=function(){D(Q,0)};WN.unstable_IdlePriority=5,WN.unstable_ImmediatePriority=1,WN.unstable_LowPriority=4,WN.unstable_NormalPriority=3,WN.unstable_Profiling=null,WN.unstable_UserBlockingPriority=2,WN.unstable_cancelCallback=function(g){g.callback=null},WN.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},WN.unstable_getCurrentPriorityLevel=function(){return S},WN.unstable_next=function(g){switch(S){case 1:case 2:case 3:var p=3;break;default:p=S}var c=S;S=p;try{return g()}finally{S=c}},WN.unstable_requestPaint=function(){v=!0},WN.unstable_runWithPriority=function(g,p){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var c=S;S=g;try{return p()}finally{S=c}},WN.unstable_scheduleCallback=function(g,p,c){var l=WN.unstable_now();switch(typeof c==="object"&&c!==null?(c=c.delay,c=typeof c==="number"&&0<c?l+c:l):c=l,g){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=c+o,g={id:P++,callback:p,priorityLevel:g,startTime:c,expirationTime:o,sortIndex:-1},c>l?(g.sortIndex=c,U(w,g),Z(R)===null&&g===Z(w)&&(N?(x(b),b=-1):N=!0,M(W,c-l))):(g.sortIndex=o,U(R,g),y||C||(y=!0,u||(u=!0,U1()))),g},WN.unstable_shouldYield=L,WN.unstable_wrapCallback=function(g){var p=S;return function(){var c=S;S=p;try{return g.apply(this,arguments)}finally{S=c}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var B4=o4((LN,Bq)=>{(function(){function Q(j,q1){Object.defineProperty(K.prototype,j,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",q1[0],q1[1])}})}function U(j){if(j===null||typeof j!=="object")return null;return j=f1&&j[f1]||j["@@iterator"],typeof j==="function"?j:null}function Z(j,q1){j=(j=j.constructor)&&(j.displayName||j.name)||"ReactClass";var I1=j+"."+q1;z1[I1]||(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.",q1,j),z1[I1]=!0)}function K(j,q1,I1){this.props=j,this.context=q1,this.refs=c1,this.updater=I1||C1}function H(){}function Y(j,q1,I1){this.props=j,this.context=q1,this.refs=c1,this.updater=I1||C1}function W(){}function L(j){return""+j}function M(j){try{L(j);var q1=!1}catch(y1){q1=!0}if(q1){q1=console;var I1=q1.error,P1=typeof Symbol==="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return I1.call(q1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P1),L(j)}}function O(j){if(j==null)return null;if(typeof j==="function")return j.$$typeof===e1?null:j.displayName||j.name||null;if(typeof j==="string")return j;switch(j){case o:return"Fragment";case t:return"Profiler";case k:return"StrictMode";case O1:return"Suspense";case L1:return"SuspenseList";case R1: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 l:return"Portal";case a:return j.displayName||"Context";case _1:return(j._context.displayName||"Context")+".Consumer";case H1:var q1=j.render;return j=j.displayName,j||(j=q1.displayName||q1.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case T1:return q1=j.displayName||null,q1!==null?q1:O(j.type)||"Memo";case G1:q1=j._payload,j=j._init;try{return O(j(q1))}catch(I1){}}return null}function T(j){if(j===o)return"<>";if(typeof j==="object"&&j!==null&&j.$$typeof===G1)return"<...>";try{var q1=O(j);return q1?"<"+q1+">":"<...>"}catch(I1){return"<...>"}}function A(){var j=k1.A;return j===null?null:j.getOwner()}function R(){return Error("react-stack-top-frame")}function w(j){if(g0.call(j,"key")){var q1=Object.getOwnPropertyDescriptor(j,"key").get;if(q1&&q1.isReactWarning)return!1}return j.key!==void 0}function P(j,q1){function I1(){t0||(t0=!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)",q1))}I1.isReactWarning=!0,Object.defineProperty(j,"key",{get:I1,configurable:!0})}function V(){var j=O(this.type);return u2[j]||(u2[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,q1,I1,P1,y1,i1){var r1=I1.ref;return j={$$typeof:c,type:j,key:q1,props:I1,_owner:P1},(r1!==void 0?r1: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:i1}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function C(j,q1){return q1=S(j.type,q1,j.props,j._owner,j._debugStack,j._debugTask),j._store&&(q1._store.validated=j._store.validated),q1}function y(j){N(j)?j._store&&(j._store.validated=1):typeof j==="object"&&j!==null&&j.$$typeof===G1&&(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===c}function v(j){var q1={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(I1){return q1[I1]})}function D(j,q1){return typeof j==="object"&&j!==null&&j.key!=null?(M(j.key),v(""+j.key)):q1.toString(36)}function x(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(q1){j.status==="pending"&&(j.status="fulfilled",j.value=q1)},function(q1){j.status==="pending"&&(j.status="rejected",j.reason=q1)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function E(j,q1,I1,P1,y1){var i1=typeof j;if(i1==="undefined"||i1==="boolean")j=null;var r1=!1;if(j===null)r1=!0;else switch(i1){case"bigint":case"string":case"number":r1=!0;break;case"object":switch(j.$$typeof){case c:case l:r1=!0;break;case G1:return r1=j._init,E(r1(j._payload),q1,I1,P1,y1)}}if(r1){r1=j,y1=y1(r1);var F0=P1===""?"."+D(r1,0):P1;return A1(y1)?(I1="",F0!=null&&(I1=F0.replace(G2,"$&/")+"/"),E(y1,q1,I1,"",function(K2){return K2})):y1!=null&&(N(y1)&&(y1.key!=null&&(r1&&r1.key===y1.key||M(y1.key)),I1=C(y1,I1+(y1.key==null||r1&&r1.key===y1.key?"":(""+y1.key).replace(G2,"$&/")+"/")+F0),P1!==""&&r1!=null&&N(r1)&&r1.key==null&&r1._store&&!r1._store.validated&&(I1._store.validated=2),y1=I1),q1.push(y1)),1}if(r1=0,F0=P1===""?".":P1+":",A1(j))for(var x1=0;x1<j.length;x1++)P1=j[x1],i1=F0+D(P1,x1),r1+=E(P1,q1,I1,i1,y1);else if(x1=U(j),typeof x1==="function")for(x1===j.entries&&(T2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),T2=!0),j=x1.call(j),x1=0;!(P1=j.next()).done;)P1=P1.value,i1=F0+D(P1,x1++),r1+=E(P1,q1,I1,i1,y1);else if(i1==="object"){if(typeof j.then==="function")return E(x(j),q1,I1,P1,y1);throw q1=String(j),Error("Objects are not valid as a React child (found: "+(q1==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":q1)+"). If you meant to render a collection of children, use an array instead.")}return r1}function u(j,q1,I1){if(j==null)return j;var P1=[],y1=0;return E(j,P1,"","",function(i1){return q1.call(I1,i1,y1++)}),P1}function b(j){if(j._status===-1){var q1=j._ioInfo;q1!=null&&(q1.start=q1.end=performance.now()),q1=j._result;var I1=q1();if(I1.then(function(y1){if(j._status===0||j._status===-1){j._status=1,j._result=y1;var i1=j._ioInfo;i1!=null&&(i1.end=performance.now()),I1.status===void 0&&(I1.status="fulfilled",I1.value=y1)}},function(y1){if(j._status===0||j._status===-1){j._status=2,j._result=y1;var i1=j._ioInfo;i1!=null&&(i1.end=performance.now()),I1.status===void 0&&(I1.status="rejected",I1.reason=y1)}}),q1=j._ioInfo,q1!=null){q1.value=I1;var P1=I1.displayName;typeof P1==="string"&&(q1.name=P1)}j._status===-1&&(j._status=0,j._result=I1)}if(j._status===1)return q1=j._result,q1===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var ZN=Object.create;var{getPrototypeOf:FN,defineProperty:VA,getOwnPropertyNames:XN}=Object;var KN=Object.prototype.hasOwnProperty;function HN(Q){return this[Q]}var YN,zN,t0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?YN??=new WeakMap:zN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?ZN(FN(Q)):{};let W=U||!Q||!Q.__esModule?VA(Z,"default",{value:Q,enumerable:!0}):Z;for(let L of XN(Q))if(!KN.call(W,L))VA(W,L,{get:HN.bind(Q,L),enumerable:!0});if(K)H.set(Q,W);return W};var _3=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var yA=_3((WN)=>{(function(){function Q(){if(j=!1,u){var g=WN.unstable_now();s=g;var p=!0;try{_:{y=!1,N&&(N=!1,x(b),b=-1),C=!0;var c=S;try{J:{Y(g);for(V=Z(R);V!==null&&!(V.expirationTime>g&&L());){var l=V.callback;if(typeof l==="function"){V.callback=null,S=V.priorityLevel;var o=l(V.expirationTime<=g);if(g=WN.unstable_now(),typeof o==="function"){V.callback=o,Y(g),p=!0;break J}V===Z(R)&&K(R),Y(g)}else K(R);V=Z(R)}if(V!==null)p=!0;else{var k=Z(I);k!==null&&M(W,k.startTime-g),p=!1}}break _}finally{V=null,S=c,C=!1}p=void 0}}finally{p?U1():u=!1}}}function U(g,p){var c=g.length;g.push(p);_:for(;0<c;){var l=c-1>>>1,o=g[l];if(0<H(o,p))g[l]=p,g[c]=o,c=l;else break _}}function Z(g){return g.length===0?null:g[0]}function K(g){if(g.length===0)return null;var p=g[0],c=g.pop();if(c!==p){g[0]=c;_:for(var l=0,o=g.length,k=o>>>1;l<k;){var t=2*(l+1)-1,_1=g[t],a=t+1,H1=g[a];if(0>H(_1,c))a<o&&0>H(H1,_1)?(g[l]=H1,g[a]=c,l=a):(g[l]=_1,g[t]=c,l=t);else if(a<o&&0>H(H1,c))g[l]=H1,g[a]=c,l=a;else break _}}return p}function H(g,p){var c=g.sortIndex-p.sortIndex;return c!==0?c:g.id-p.id}function Y(g){for(var p=Z(I);p!==null;){if(p.callback===null)K(I);else if(p.startTime<=g)K(I),p.sortIndex=p.expirationTime,U(R,p);else break;p=Z(I)}}function W(g){if(N=!1,Y(g),!y)if(Z(R)!==null)y=!0,u||(u=!0,U1());else{var p=Z(I);p!==null&&M(W,p.startTime-g)}}function L(){return j?!0:WN.unstable_now()-s<m?!1:!0}function M(g,p){b=D(function(){g(WN.unstable_now())},p)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),WN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var O=performance;WN.unstable_now=function(){return O.now()}}else{var T=Date,A=T.now();WN.unstable_now=function(){return T.now()-A}}var R=[],I=[],P=1,V=null,S=3,C=!1,y=!1,N=!1,j=!1,D=typeof setTimeout==="function"?setTimeout:null,x=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,u=!1,b=-1,m=5,s=-1;if(typeof E==="function")var U1=function(){E(Q)};else if(typeof MessageChannel<"u"){var Q1=new MessageChannel,h=Q1.port2;Q1.port1.onmessage=Q,U1=function(){h.postMessage(null)}}else U1=function(){D(Q,0)};WN.unstable_IdlePriority=5,WN.unstable_ImmediatePriority=1,WN.unstable_LowPriority=4,WN.unstable_NormalPriority=3,WN.unstable_Profiling=null,WN.unstable_UserBlockingPriority=2,WN.unstable_cancelCallback=function(g){g.callback=null},WN.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},WN.unstable_getCurrentPriorityLevel=function(){return S},WN.unstable_next=function(g){switch(S){case 1:case 2:case 3:var p=3;break;default:p=S}var c=S;S=p;try{return g()}finally{S=c}},WN.unstable_requestPaint=function(){j=!0},WN.unstable_runWithPriority=function(g,p){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var c=S;S=g;try{return p()}finally{S=c}},WN.unstable_scheduleCallback=function(g,p,c){var l=WN.unstable_now();switch(typeof c==="object"&&c!==null?(c=c.delay,c=typeof c==="number"&&0<c?l+c:l):c=l,g){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=c+o,g={id:P++,callback:p,priorityLevel:g,startTime:c,expirationTime:o,sortIndex:-1},c>l?(g.sortIndex=c,U(I,g),Z(R)===null&&g===Z(I)&&(N?(x(b),b=-1):N=!0,M(W,c-l))):(g.sortIndex=o,U(R,g),y||C||(y=!0,u||(u=!0,U1()))),g},WN.unstable_shouldYield=L,WN.unstable_wrapCallback=function(g){var p=S;return function(){var c=S;S=p;try{return g.apply(this,arguments)}finally{S=c}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var M4=_3((LN,Bq)=>{(function(){function Q(v,q1){Object.defineProperty(K.prototype,v,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",q1[0],q1[1])}})}function U(v){if(v===null||typeof v!=="object")return null;return v=S1&&v[S1]||v["@@iterator"],typeof v==="function"?v:null}function Z(v,q1){v=(v=v.constructor)&&(v.displayName||v.name)||"ReactClass";var w1=v+"."+q1;W1[w1]||(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.",q1,v),W1[w1]=!0)}function K(v,q1,w1){this.props=v,this.context=q1,this.refs=p1,this.updater=w1||f1}function H(){}function Y(v,q1,w1){this.props=v,this.context=q1,this.refs=p1,this.updater=w1||f1}function W(){}function L(v){return""+v}function M(v){try{L(v);var q1=!1}catch(k1){q1=!0}if(q1){q1=console;var w1=q1.error,P1=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return w1.call(q1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P1),L(v)}}function O(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===J0?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case o:return"Fragment";case t:return"Profiler";case k:return"StrictMode";case O1:return"Suspense";case B1:return"SuspenseList";case R1:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case l:return"Portal";case a:return v.displayName||"Context";case _1:return(v._context.displayName||"Context")+".Consumer";case H1:var q1=v.render;return v=v.displayName,v||(v=q1.displayName||q1.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case T1:return q1=v.displayName||null,q1!==null?q1:O(v.type)||"Memo";case G1:q1=v._payload,v=v._init;try{return O(v(q1))}catch(w1){}}return null}function T(v){if(v===o)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===G1)return"<...>";try{var q1=O(v);return q1?"<"+q1+">":"<...>"}catch(w1){return"<...>"}}function A(){var v=D1.A;return v===null?null:v.getOwner()}function R(){return Error("react-stack-top-frame")}function I(v){if(p0.call(v,"key")){var q1=Object.getOwnPropertyDescriptor(v,"key").get;if(q1&&q1.isReactWarning)return!1}return v.key!==void 0}function P(v,q1){function w1(){o0||(o0=!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)",q1))}w1.isReactWarning=!0,Object.defineProperty(v,"key",{get:w1,configurable:!0})}function V(){var v=O(this.type);return S2[v]||(S2[v]=!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.")),v=this.props.ref,v!==void 0?v:null}function S(v,q1,w1,P1,k1,r1){var l1=w1.ref;return v={$$typeof:c,type:v,key:q1,props:w1,_owner:P1},(l1!==void 0?l1:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:V}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k1}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function C(v,q1){return q1=S(v.type,q1,v.props,v._owner,v._debugStack,v._debugTask),v._store&&(q1._store.validated=v._store.validated),q1}function y(v){N(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===G1&&(v._payload.status==="fulfilled"?N(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function N(v){return typeof v==="object"&&v!==null&&v.$$typeof===c}function j(v){var q1={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(w1){return q1[w1]})}function D(v,q1){return typeof v==="object"&&v!==null&&v.key!=null?(M(v.key),j(""+v.key)):q1.toString(36)}function x(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status==="string"?v.then(W,W):(v.status="pending",v.then(function(q1){v.status==="pending"&&(v.status="fulfilled",v.value=q1)},function(q1){v.status==="pending"&&(v.status="rejected",v.reason=q1)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function E(v,q1,w1,P1,k1){var r1=typeof v;if(r1==="undefined"||r1==="boolean")v=null;var l1=!1;if(v===null)l1=!0;else switch(r1){case"bigint":case"string":case"number":l1=!0;break;case"object":switch(v.$$typeof){case c:case l:l1=!0;break;case G1:return l1=v._init,E(l1(v._payload),q1,w1,P1,k1)}}if(l1){l1=v,k1=k1(l1);var W0=P1===""?"."+D(l1,0):P1;return A1(k1)?(w1="",W0!=null&&(w1=W0.replace(F2,"$&/")+"/"),E(k1,q1,w1,"",function(X2){return X2})):k1!=null&&(N(k1)&&(k1.key!=null&&(l1&&l1.key===k1.key||M(k1.key)),w1=C(k1,w1+(k1.key==null||l1&&l1.key===k1.key?"":(""+k1.key).replace(F2,"$&/")+"/")+W0),P1!==""&&l1!=null&&N(l1)&&l1.key==null&&l1._store&&!l1._store.validated&&(w1._store.validated=2),k1=w1),q1.push(k1)),1}if(l1=0,W0=P1===""?".":P1+":",A1(v))for(var E1=0;E1<v.length;E1++)P1=v[E1],r1=W0+D(P1,E1),l1+=E(P1,q1,w1,r1,k1);else if(E1=U(v),typeof E1==="function")for(E1===v.entries&&(O2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),O2=!0),v=E1.call(v),E1=0;!(P1=v.next()).done;)P1=P1.value,r1=W0+D(P1,E1++),l1+=E(P1,q1,w1,r1,k1);else if(r1==="object"){if(typeof v.then==="function")return E(x(v),q1,w1,P1,k1);throw q1=String(v),Error("Objects are not valid as a React child (found: "+(q1==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":q1)+"). If you meant to render a collection of children, use an array instead.")}return l1}function u(v,q1,w1){if(v==null)return v;var P1=[],k1=0;return E(v,P1,"","",function(r1){return q1.call(w1,r1,k1++)}),P1}function b(v){if(v._status===-1){var q1=v._ioInfo;q1!=null&&(q1.start=q1.end=performance.now()),q1=v._result;var w1=q1();if(w1.then(function(k1){if(v._status===0||v._status===-1){v._status=1,v._result=k1;var r1=v._ioInfo;r1!=null&&(r1.end=performance.now()),w1.status===void 0&&(w1.status="fulfilled",w1.value=k1)}},function(k1){if(v._status===0||v._status===-1){v._status=2,v._result=k1;var r1=v._ioInfo;r1!=null&&(r1.end=performance.now()),w1.status===void 0&&(w1.status="rejected",w1.reason=k1)}}),q1=v._ioInfo,q1!=null){q1.value=w1;var P1=w1.displayName;typeof P1==="string"&&(q1.name=P1)}v._status===-1&&(v._status=0,v._result=w1)}if(v._status===1)return q1=v._result,q1===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'))
@@ -6,71 +6,71 @@ Your code should look like:
6
6
  Did you accidentally put curly braces around the import?`,q1),"default"in q1||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'))`,q1),q1.default;throw j._result}function m(){var j=k1.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'))`,q1),q1.default;throw v._result}function m(){var v=D1.H;return v===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 s(){k1.asyncTransitions--}function U1(j){if(X5===null)try{var q1=("require"+Math.random()).slice(0,7);X5=(Bq&&Bq[q1]).call(Bq,"timers").setImmediate}catch(I1){X5=function(P1){I4===!1&&(I4=!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=P1,y1.port2.postMessage(void 0)}}return X5(j)}function Q1(j){return 1<j.length&&typeof AggregateError==="function"?AggregateError(j):j[0]}function h(j,q1){q1!==x5-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. "),x5=q1}function g(j,q1,I1){var P1=k1.actQueue;if(P1!==null)if(P1.length!==0)try{p(P1),U1(function(){return g(j,q1,I1)});return}catch(y1){k1.thrownErrors.push(y1)}else k1.actQueue=null;0<k1.thrownErrors.length?(P1=Q1(k1.thrownErrors),k1.thrownErrors.length=0,I1(P1)):q1(j)}function p(j){if(!R5){R5=!0;var q1=0;try{for(;q1<j.length;q1++){var I1=j[q1];do{k1.didUsePromise=!1;var P1=I1(!1);if(P1!==null){if(k1.didUsePromise){j[q1]=I1,j.splice(0,q1);return}I1=P1}else break}while(1)}j.length=0}catch(y1){j.splice(0,q1+1),k1.thrownErrors.push(y1)}finally{R5=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),_1=Symbol.for("react.consumer"),a=Symbol.for("react.context"),H1=Symbol.for("react.forward_ref"),O1=Symbol.for("react.suspense"),L1=Symbol.for("react.suspense_list"),T1=Symbol.for("react.memo"),G1=Symbol.for("react.lazy"),R1=Symbol.for("react.activity"),f1=Symbol.iterator,z1={},C1={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,c1={};Object.freeze(c1),K.prototype.isReactComponent={},K.prototype.setState=function(j,q1){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,q1,"setState")},K.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};var D1={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(O5 in D1)D1.hasOwnProperty(O5)&&Q(O5,D1[O5]);H.prototype=K.prototype,D1=Y.prototype=new H,D1.constructor=Y,b1(D1,K.prototype),D1.isPureReactComponent=!0;var A1=Array.isArray,e1=Symbol.for("react.client.reference"),k1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},g0=Object.prototype.hasOwnProperty,_0=console.createTask?console.createTask:function(){return null};D1={react_stack_bottom_frame:function(j){return j()}};var t0,C2,u2={},b2=D1.react_stack_bottom_frame.bind(D1,R)(),f2=_0(T(R)),T2=!1,G2=/\/+/g,R2=typeof reportError==="function"?reportError:function(j){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var q1=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(q1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",j);return}console.error(j)},I4=!1,X5=null,x5=0,q4=!1,R5=!1,G3=typeof queueMicrotask==="function"?function(j){queueMicrotask(function(){return queueMicrotask(j)})}:U1;D1=Object.freeze({__proto__:null,c:function(j){return m().useMemoCache(j)}});var O5={map:u,forEach:function(j,q1,I1){u(j,function(){q1.apply(this,arguments)},I1)},count:function(j){var q1=0;return u(j,function(){q1++}),q1},toArray:function(j){return u(j,function(q1){return q1})||[]},only:function(j){if(!N(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};LN.Activity=R1,LN.Children=O5,LN.Component=K,LN.Fragment=o,LN.Profiler=t,LN.PureComponent=Y,LN.StrictMode=k,LN.Suspense=O1,LN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k1,LN.__COMPILER_RUNTIME=D1,LN.act=function(j){var q1=k1.actQueue,I1=x5;x5++;var P1=k1.actQueue=q1!==null?q1:[],y1=!1;try{var i1=j()}catch(x1){k1.thrownErrors.push(x1)}if(0<k1.thrownErrors.length)throw h(q1,I1),j=Q1(k1.thrownErrors),k1.thrownErrors.length=0,j;if(i1!==null&&typeof i1==="object"&&typeof i1.then==="function"){var r1=i1;return G3(function(){y1||q4||(q4=!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(x1,K2){y1=!0,r1.then(function(E2){if(h(q1,I1),I1===0){try{p(P1),U1(function(){return g(E2,x1,K2)})}catch(B1){k1.thrownErrors.push(B1)}if(0<k1.thrownErrors.length){var $1=Q1(k1.thrownErrors);k1.thrownErrors.length=0,K2($1)}}else x1(E2)},function(E2){h(q1,I1),0<k1.thrownErrors.length?(E2=Q1(k1.thrownErrors),k1.thrownErrors.length=0,K2(E2)):K2(E2)})}}}var F0=i1;if(h(q1,I1),I1===0&&(p(P1),P1.length!==0&&G3(function(){y1||q4||(q4=!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(() => ...)"))}),k1.actQueue=null),0<k1.thrownErrors.length)throw j=Q1(k1.thrownErrors),k1.thrownErrors.length=0,j;return{then:function(x1,K2){y1=!0,I1===0?(k1.actQueue=P1,U1(function(){return g(F0,x1,K2)})):x1(F0)}}},LN.cache=function(j){return function(){return j.apply(null,arguments)}},LN.cacheSignal=function(){return null},LN.captureOwnerStack=function(){var j=k1.getCurrentStack;return j===null?null:j()},LN.cloneElement=function(j,q1,I1){if(j===null||j===void 0)throw Error("The argument must be a React element, but you passed "+j+".");var P1=b1({},j.props),y1=j.key,i1=j._owner;if(q1!=null){var r1;_:{if(g0.call(q1,"ref")&&(r1=Object.getOwnPropertyDescriptor(q1,"ref").get)&&r1.isReactWarning){r1=!1;break _}r1=q1.ref!==void 0}r1&&(i1=A()),w(q1)&&(M(q1.key),y1=""+q1.key);for(F0 in q1)!g0.call(q1,F0)||F0==="key"||F0==="__self"||F0==="__source"||F0==="ref"&&q1.ref===void 0||(P1[F0]=q1[F0])}var F0=arguments.length-2;if(F0===1)P1.children=I1;else if(1<F0){r1=Array(F0);for(var x1=0;x1<F0;x1++)r1[x1]=arguments[x1+2];P1.children=r1}P1=S(j.type,y1,P1,i1,j._debugStack,j._debugTask);for(y1=2;y1<arguments.length;y1++)y(arguments[y1]);return P1},LN.createContext=function(j){return j={$$typeof:a,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:_1,_context:j},j._currentRenderer=null,j._currentRenderer2=null,j},LN.createElement=function(j,q1,I1){for(var P1=2;P1<arguments.length;P1++)y(arguments[P1]);P1={};var y1=null;if(q1!=null)for(x1 in C2||!("__self"in q1)||"key"in q1||(C2=!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(q1)&&(M(q1.key),y1=""+q1.key),q1)g0.call(q1,x1)&&x1!=="key"&&x1!=="__self"&&x1!=="__source"&&(P1[x1]=q1[x1]);var i1=arguments.length-2;if(i1===1)P1.children=I1;else if(1<i1){for(var r1=Array(i1),F0=0;F0<i1;F0++)r1[F0]=arguments[F0+2];Object.freeze&&Object.freeze(r1),P1.children=r1}if(j&&j.defaultProps)for(x1 in i1=j.defaultProps,i1)P1[x1]===void 0&&(P1[x1]=i1[x1]);y1&&P(P1,typeof j==="function"?j.displayName||j.name||"Unknown":j);var x1=1e4>k1.recentlyCreatedOwnerStacks++;return S(j,y1,P1,A(),x1?Error("react-stack-top-frame"):b2,x1?_0(T(j)):f2)},LN.createRef=function(){var j={current:null};return Object.seal(j),j},LN.forwardRef=function(j){j!=null&&j.$$typeof===T1?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 q1={$$typeof:H1,render:j},I1;return Object.defineProperty(q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return I1},set:function(P1){I1=P1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:P1}),j.displayName=P1)}}),q1},LN.isValidElement=N,LN.lazy=function(j){j={_status:-1,_result:j};var q1={$$typeof:G1,_payload:j,_init:b},I1={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=I1,q1._debugInfo=[{awaited:I1}],q1},LN.memo=function(j,q1){j==null&&console.error("memo: The first argument must be a component. Instead received: %s",j===null?"null":typeof j),q1={$$typeof:T1,type:j,compare:q1===void 0?null:q1};var I1;return Object.defineProperty(q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return I1},set:function(P1){I1=P1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:P1}),j.displayName=P1)}}),q1},LN.startTransition=function(j){var q1=k1.T,I1={};I1._updatedFibers=new Set,k1.T=I1;try{var P1=j(),y1=k1.S;y1!==null&&y1(I1,P1),typeof P1==="object"&&P1!==null&&typeof P1.then==="function"&&(k1.asyncTransitions++,P1.then(s,s),P1.then(W,R2))}catch(i1){R2(i1)}finally{q1===null&&I1._updatedFibers&&(j=I1._updatedFibers.size,I1._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.")),q1!==null&&I1.types!==null&&(q1.types!==null&&q1.types!==I1.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."),q1.types=I1.types),k1.T=q1}},LN.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},LN.use=function(j){return m().use(j)},LN.useActionState=function(j,q1,I1){return m().useActionState(j,q1,I1)},LN.useCallback=function(j,q1){return m().useCallback(j,q1)},LN.useContext=function(j){var q1=m();return j.$$typeof===_1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),q1.useContext(j)},LN.useDebugValue=function(j,q1){return m().useDebugValue(j,q1)},LN.useDeferredValue=function(j,q1){return m().useDeferredValue(j,q1)},LN.useEffect=function(j,q1){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,q1)},LN.useEffectEvent=function(j){return m().useEffectEvent(j)},LN.useId=function(){return m().useId()},LN.useImperativeHandle=function(j,q1,I1){return m().useImperativeHandle(j,q1,I1)},LN.useInsertionEffect=function(j,q1){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,q1)},LN.useLayoutEffect=function(j,q1){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,q1)},LN.useMemo=function(j,q1){return m().useMemo(j,q1)},LN.useOptimistic=function(j,q1){return m().useOptimistic(j,q1)},LN.useReducer=function(j,q1,I1){return m().useReducer(j,q1,I1)},LN.useRef=function(j){return m().useRef(j)},LN.useState=function(j){return m().useState(j)},LN.useSyncExternalStore=function(j,q1,I1){return m().useSyncExternalStore(j,q1,I1)},LN.useTransition=function(){return m().useTransition()},LN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var kA=o4((BN)=>{var lF=s0(B4());(function(){function Q(){}function U(T){return""+T}function Z(T,A,R){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:M,key:w==null?null:""+w,children:T,containerInfo:A,implementation:R}}function K(T,A){if(T==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function Y(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function W(){var T=O.H;return T===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.`),v}function s(){D1.asyncTransitions--}function U1(v){if(K5===null)try{var q1=("require"+Math.random()).slice(0,7);K5=(Bq&&Bq[q1]).call(Bq,"timers").setImmediate}catch(w1){K5=function(P1){P4===!1&&(P4=!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 k1=new MessageChannel;k1.port1.onmessage=P1,k1.port2.postMessage(void 0)}}return K5(v)}function Q1(v){return 1<v.length&&typeof AggregateError==="function"?AggregateError(v):v[0]}function h(v,q1){q1!==E5-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. "),E5=q1}function g(v,q1,w1){var P1=D1.actQueue;if(P1!==null)if(P1.length!==0)try{p(P1),U1(function(){return g(v,q1,w1)});return}catch(k1){D1.thrownErrors.push(k1)}else D1.actQueue=null;0<D1.thrownErrors.length?(P1=Q1(D1.thrownErrors),D1.thrownErrors.length=0,w1(P1)):q1(v)}function p(v){if(!U4){U4=!0;var q1=0;try{for(;q1<v.length;q1++){var w1=v[q1];do{D1.didUsePromise=!1;var P1=w1(!1);if(P1!==null){if(D1.didUsePromise){v[q1]=w1,v.splice(0,q1);return}w1=P1}else break}while(1)}v.length=0}catch(k1){v.splice(0,q1+1),D1.thrownErrors.push(k1)}finally{U4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),_1=Symbol.for("react.consumer"),a=Symbol.for("react.context"),H1=Symbol.for("react.forward_ref"),O1=Symbol.for("react.suspense"),B1=Symbol.for("react.suspense_list"),T1=Symbol.for("react.memo"),G1=Symbol.for("react.lazy"),R1=Symbol.for("react.activity"),S1=Symbol.iterator,W1={},f1={isMounted:function(){return!1},enqueueForceUpdate:function(v){Z(v,"forceUpdate")},enqueueReplaceState:function(v){Z(v,"replaceState")},enqueueSetState:function(v){Z(v,"setState")}},b1=Object.assign,p1={};Object.freeze(p1),K.prototype.isReactComponent={},K.prototype.setState=function(v,q1){if(typeof v!=="object"&&typeof v!=="function"&&v!=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,v,q1,"setState")},K.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};var u1={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(x5 in u1)u1.hasOwnProperty(x5)&&Q(x5,u1[x5]);H.prototype=K.prototype,u1=Y.prototype=new H,u1.constructor=Y,b1(u1,K.prototype),u1.isPureReactComponent=!0;var A1=Array.isArray,J0=Symbol.for("react.client.reference"),D1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},p0=Object.prototype.hasOwnProperty,Q0=console.createTask?console.createTask:function(){return null};u1={react_stack_bottom_frame:function(v){return v()}};var o0,R2,S2={},j2=u1.react_stack_bottom_frame.bind(u1,R)(),v2=Q0(T(R)),O2=!1,F2=/\/+/g,I2=typeof reportError==="function"?reportError:function(v){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var q1=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v==="object"&&v!==null&&typeof v.message==="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(q1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",v);return}console.error(v)},P4=!1,K5=null,E5=0,h5=!1,U4=!1,G4=typeof queueMicrotask==="function"?function(v){queueMicrotask(function(){return queueMicrotask(v)})}:U1;u1=Object.freeze({__proto__:null,c:function(v){return m().useMemoCache(v)}});var x5={map:u,forEach:function(v,q1,w1){u(v,function(){q1.apply(this,arguments)},w1)},count:function(v){var q1=0;return u(v,function(){q1++}),q1},toArray:function(v){return u(v,function(q1){return q1})||[]},only:function(v){if(!N(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};LN.Activity=R1,LN.Children=x5,LN.Component=K,LN.Fragment=o,LN.Profiler=t,LN.PureComponent=Y,LN.StrictMode=k,LN.Suspense=O1,LN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D1,LN.__COMPILER_RUNTIME=u1,LN.act=function(v){var q1=D1.actQueue,w1=E5;E5++;var P1=D1.actQueue=q1!==null?q1:[],k1=!1;try{var r1=v()}catch(E1){D1.thrownErrors.push(E1)}if(0<D1.thrownErrors.length)throw h(q1,w1),v=Q1(D1.thrownErrors),D1.thrownErrors.length=0,v;if(r1!==null&&typeof r1==="object"&&typeof r1.then==="function"){var l1=r1;return G4(function(){k1||h5||(h5=!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,X2){k1=!0,l1.then(function(E2){if(h(q1,w1),w1===0){try{p(P1),U1(function(){return g(E2,E1,X2)})}catch($1){D1.thrownErrors.push($1)}if(0<D1.thrownErrors.length){var m5=Q1(D1.thrownErrors);D1.thrownErrors.length=0,X2(m5)}}else E1(E2)},function(E2){h(q1,w1),0<D1.thrownErrors.length?(E2=Q1(D1.thrownErrors),D1.thrownErrors.length=0,X2(E2)):X2(E2)})}}}var W0=r1;if(h(q1,w1),w1===0&&(p(P1),P1.length!==0&&G4(function(){k1||h5||(h5=!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(() => ...)"))}),D1.actQueue=null),0<D1.thrownErrors.length)throw v=Q1(D1.thrownErrors),D1.thrownErrors.length=0,v;return{then:function(E1,X2){k1=!0,w1===0?(D1.actQueue=P1,U1(function(){return g(W0,E1,X2)})):E1(W0)}}},LN.cache=function(v){return function(){return v.apply(null,arguments)}},LN.cacheSignal=function(){return null},LN.captureOwnerStack=function(){var v=D1.getCurrentStack;return v===null?null:v()},LN.cloneElement=function(v,q1,w1){if(v===null||v===void 0)throw Error("The argument must be a React element, but you passed "+v+".");var P1=b1({},v.props),k1=v.key,r1=v._owner;if(q1!=null){var l1;_:{if(p0.call(q1,"ref")&&(l1=Object.getOwnPropertyDescriptor(q1,"ref").get)&&l1.isReactWarning){l1=!1;break _}l1=q1.ref!==void 0}l1&&(r1=A()),I(q1)&&(M(q1.key),k1=""+q1.key);for(W0 in q1)!p0.call(q1,W0)||W0==="key"||W0==="__self"||W0==="__source"||W0==="ref"&&q1.ref===void 0||(P1[W0]=q1[W0])}var W0=arguments.length-2;if(W0===1)P1.children=w1;else if(1<W0){l1=Array(W0);for(var E1=0;E1<W0;E1++)l1[E1]=arguments[E1+2];P1.children=l1}P1=S(v.type,k1,P1,r1,v._debugStack,v._debugTask);for(k1=2;k1<arguments.length;k1++)y(arguments[k1]);return P1},LN.createContext=function(v){return v={$$typeof:a,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:_1,_context:v},v._currentRenderer=null,v._currentRenderer2=null,v},LN.createElement=function(v,q1,w1){for(var P1=2;P1<arguments.length;P1++)y(arguments[P1]);P1={};var k1=null;if(q1!=null)for(E1 in R2||!("__self"in q1)||"key"in q1||(R2=!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")),I(q1)&&(M(q1.key),k1=""+q1.key),q1)p0.call(q1,E1)&&E1!=="key"&&E1!=="__self"&&E1!=="__source"&&(P1[E1]=q1[E1]);var r1=arguments.length-2;if(r1===1)P1.children=w1;else if(1<r1){for(var l1=Array(r1),W0=0;W0<r1;W0++)l1[W0]=arguments[W0+2];Object.freeze&&Object.freeze(l1),P1.children=l1}if(v&&v.defaultProps)for(E1 in r1=v.defaultProps,r1)P1[E1]===void 0&&(P1[E1]=r1[E1]);k1&&P(P1,typeof v==="function"?v.displayName||v.name||"Unknown":v);var E1=1e4>D1.recentlyCreatedOwnerStacks++;return S(v,k1,P1,A(),E1?Error("react-stack-top-frame"):j2,E1?Q0(T(v)):v2)},LN.createRef=function(){var v={current:null};return Object.seal(v),v},LN.forwardRef=function(v){v!=null&&v.$$typeof===T1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof v!=="function"?console.error("forwardRef requires a render function but was given %s.",v===null?"null":typeof v):v.length!==0&&v.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",v.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),v!=null&&v.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var q1={$$typeof:H1,render:v},w1;return Object.defineProperty(q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return w1},set:function(P1){w1=P1,v.name||v.displayName||(Object.defineProperty(v,"name",{value:P1}),v.displayName=P1)}}),q1},LN.isValidElement=N,LN.lazy=function(v){v={_status:-1,_result:v};var q1={$$typeof:G1,_payload:v,_init:b},w1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return v._ioInfo=w1,q1._debugInfo=[{awaited:w1}],q1},LN.memo=function(v,q1){v==null&&console.error("memo: The first argument must be a component. Instead received: %s",v===null?"null":typeof v),q1={$$typeof:T1,type:v,compare:q1===void 0?null:q1};var w1;return Object.defineProperty(q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return w1},set:function(P1){w1=P1,v.name||v.displayName||(Object.defineProperty(v,"name",{value:P1}),v.displayName=P1)}}),q1},LN.startTransition=function(v){var q1=D1.T,w1={};w1._updatedFibers=new Set,D1.T=w1;try{var P1=v(),k1=D1.S;k1!==null&&k1(w1,P1),typeof P1==="object"&&P1!==null&&typeof P1.then==="function"&&(D1.asyncTransitions++,P1.then(s,s),P1.then(W,I2))}catch(r1){I2(r1)}finally{q1===null&&w1._updatedFibers&&(v=w1._updatedFibers.size,w1._updatedFibers.clear(),10<v&&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.")),q1!==null&&w1.types!==null&&(q1.types!==null&&q1.types!==w1.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."),q1.types=w1.types),D1.T=q1}},LN.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},LN.use=function(v){return m().use(v)},LN.useActionState=function(v,q1,w1){return m().useActionState(v,q1,w1)},LN.useCallback=function(v,q1){return m().useCallback(v,q1)},LN.useContext=function(v){var q1=m();return v.$$typeof===_1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),q1.useContext(v)},LN.useDebugValue=function(v,q1){return m().useDebugValue(v,q1)},LN.useDeferredValue=function(v,q1){return m().useDeferredValue(v,q1)},LN.useEffect=function(v,q1){return v==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(v,q1)},LN.useEffectEvent=function(v){return m().useEffectEvent(v)},LN.useId=function(){return m().useId()},LN.useImperativeHandle=function(v,q1,w1){return m().useImperativeHandle(v,q1,w1)},LN.useInsertionEffect=function(v,q1){return v==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(v,q1)},LN.useLayoutEffect=function(v,q1){return v==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(v,q1)},LN.useMemo=function(v,q1){return m().useMemo(v,q1)},LN.useOptimistic=function(v,q1){return m().useOptimistic(v,q1)},LN.useReducer=function(v,q1,w1){return m().useReducer(v,q1,w1)},LN.useRef=function(v){return m().useRef(v)},LN.useState=function(v){return m().useState(v)},LN.useSyncExternalStore=function(v,q1,w1){return m().useSyncExternalStore(v,q1,w1)},LN.useTransition=function(){return m().useTransition()},LN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var kA=_3((BN)=>{var lF=t0(M4());(function(){function Q(){}function U(T){return""+T}function Z(T,A,R){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(I);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&&I[Symbol.toStringTag]||I.constructor.name||"Object"),U(I)),{$$typeof:M,key:I==null?null:""+I,children:T,containerInfo:A,implementation:R}}function K(T,A){if(T==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function Y(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function W(){var T=O.H;return T===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.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var L={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},M=Symbol.for("react.portal"),O=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"),BN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,BN.createPortal=function(T,A){var R=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(T,A,null,R)},BN.flushSync=function(T){var A=O.T,R=L.p;try{if(O.T=null,L.p=2,T)return T()}finally{O.T=A,L.p=R,L.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.")}},BN.preconnect=function(T,A){typeof T==="string"&&T?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(T)),typeof T==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,L.d.C(T,A))},BN.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T));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 T==="string"&&L.d.D(T)},BN.preinit=function(T,A){if(typeof T==="string"&&T?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(T)),typeof T==="string"&&A&&typeof A.as==="string"){var R=A.as,w=K(R,A.crossOrigin),P=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;R==="style"?L.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:w,integrity:P,fetchPriority:V}):R==="script"&&L.d.X(T,{crossOrigin:w,integrity:P,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},BN.preinitModule=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(R+=" The `as` option encountered was "+Y(A.as)+"."),R)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",R);else switch(R=A&&typeof A.as==="string"?A.as:"script",R){case"script":break;default:R=Y(R),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)',R,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")R=K(A.as,A.crossOrigin),L.d.M(T,{crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&L.d.M(T)},BN.preload=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(R+=" The `as` option encountered was "+H(A.as)+"."),R&&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',R),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){R=A.as;var w=K(R,A.crossOrigin);L.d.L(T,R,{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})}},BN.preloadModule=function(T,A){var R="";typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(R+=" The `as` option encountered was "+H(A.as)+"."),R&&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',R),typeof T==="string"&&(A?(R=K(A.as,A.crossOrigin),L.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0})):L.d.m(T))},BN.requestFormReset=function(T){L.d.r(T)},BN.unstable_batchedUpdates=function(T,A){return T(A)},BN.useFormState=function(T,A,R){return W().useFormState(T,A,R)},BN.useFormStatus=function(){return W().useHostTransitionStatus()},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 iF=o4((Xk,DA)=>{var AN=s0(kA());DA.exports=AN});var uA=o4((MN)=>{var I0=s0(yA()),F9=s0(B4()),dF=s0(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=O2(_)?_.slice():Y0({},_);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=O2(_)?_.slice():Y0({},_);return q+1===J.length?(X[$[q]]=X[G],O2(X)?X.splice(G,1):delete X[G]):X[G]=K(_[G],J,$,q+1),X}function H(_,J,$){var q=J[$],G=O2(_)?_.slice():Y0({},_);if($+1===J.length)return O2(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 L(){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 M(){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 O(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function R(_,J,$,q){return new tO(_,J,$,q)}function w(_,J){_.context===A6&&(KZ(_.current,2,J,_,null,null),T7())}function P(_,J){if(c5!==null){var $=J.staleFamilies;J=J.updatedFamilies,G_(),EH(_.current,J,$),T7()}}function V(_){c5=_}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 y(_){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 D(_){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 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,B=G.child;B;){if(B===$){z=!0,$=G,q=X;break}if(B===q){z=!0,q=G,$=X;break}B=B.sibling}if(!z){for(B=X.child;B;){if(B===$){z=!0,$=X,q=G;break}if(B===q){z=!0,q=X,$=G;break}B=B.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 x(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=x(_),J!==null)return J;_=_.sibling}return null}function E(_){if(_===null||typeof _!=="object")return null;return _=lW&&_[lW]||_["@@iterator"],typeof _==="function"?_:null}function u(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Aw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case C7:return"Fragment";case BZ:return"Profiler";case KQ: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 N7:return"Portal";case m4:return _.displayName||"Context";case AZ:return(_._context.displayName||"Context")+".Consumer";case B_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case HQ:return J=_.displayName||null,J!==null?J:u(_.type)||"Memo";case v5:J=_._payload,_=_._init;try{return u(_(J))}catch($){}}return null}function b(_){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 u(J);case 8:return J===KQ?"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 s(_){return{current:_}}function U1(_,J){0>B3?console.error("Unexpected pop."):(J!==IZ[B3]&&console.error("Unexpected Fiber popped."),_.current=OZ[B3],OZ[B3]=null,IZ[B3]=null,B3--)}function Q1(_,J,$){B3++,OZ[B3]=_.current,IZ[B3]=$,_.current=J}function h(_){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){Q1(H6,J,_),Q1(A_,_,_),Q1(K6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?WW(J):j3:j3;break;default:if($=J.tagName,J=J.namespaceURI)J=WW(J),J=LW(J,$);else switch($){case"svg":J=G9;break;case"math":J=Xq;break;default:J=j3}}$=$.toLowerCase(),$=u9(null,$),$={context:J,ancestorInfo:$},U1(K6,_),Q1(K6,$,_)}function p(_){U1(K6,_),U1(A_,_),U1(H6,_)}function c(){return h(K6.current)}function l(_){_.memoizedState!==null&&Q1(YQ,_,_);var J=h(K6.current),$=_.type,q=LW(J.context,$);$=u9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(Q1(A_,_,_),Q1(K6,q,_))}function o(_){A_.current===_&&(U1(K6,_),U1(A_,_)),YQ.current===_&&(U1(YQ,_),FJ._currentValue=y8)}function k(){}function t(){if(M_===0){iW=console.log,dW=console.info,rW=console.warn,aW=console.error,sW=console.group,tW=console.groupCollapsed,oW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}M_++}function _1(){if(M_--,M_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y0({},_,{value:iW}),info:Y0({},_,{value:dW}),warn:Y0({},_,{value:rW}),error:Y0({},_,{value:aW}),group:Y0({},_,{value:sW}),groupCollapsed:Y0({},_,{value:tW}),groupEnd:Y0({},_,{value:oW})})}0>M_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function a(_){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.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var L={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},M=Symbol.for("react.portal"),O=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"),BN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,BN.createPortal=function(T,A){var R=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(T,A,null,R)},BN.flushSync=function(T){var A=O.T,R=L.p;try{if(O.T=null,L.p=2,T)return T()}finally{O.T=A,L.p=R,L.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.")}},BN.preconnect=function(T,A){typeof T==="string"&&T?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(T)),typeof T==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,L.d.C(T,A))},BN.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T));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 T==="string"&&L.d.D(T)},BN.preinit=function(T,A){if(typeof T==="string"&&T?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(T)),typeof T==="string"&&A&&typeof A.as==="string"){var R=A.as,I=K(R,A.crossOrigin),P=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;R==="style"?L.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:I,integrity:P,fetchPriority:V}):R==="script"&&L.d.X(T,{crossOrigin:I,integrity:P,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},BN.preinitModule=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(R+=" The `as` option encountered was "+Y(A.as)+"."),R)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",R);else switch(R=A&&typeof A.as==="string"?A.as:"script",R){case"script":break;default:R=Y(R),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)',R,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")R=K(A.as,A.crossOrigin),L.d.M(T,{crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&L.d.M(T)},BN.preload=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(R+=" The `as` option encountered was "+H(A.as)+"."),R&&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',R),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){R=A.as;var I=K(R,A.crossOrigin);L.d.L(T,R,{crossOrigin:I,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})}},BN.preloadModule=function(T,A){var R="";typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(R+=" The `as` option encountered was "+H(A.as)+"."),R&&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',R),typeof T==="string"&&(A?(R=K(A.as,A.crossOrigin),L.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0})):L.d.m(T))},BN.requestFormReset=function(T){L.d.r(T)},BN.unstable_batchedUpdates=function(T,A){return T(A)},BN.useFormState=function(T,A,R){return W().useFormState(T,A,R)},BN.useFormStatus=function(){return W().useHostTransitionStatus()},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 iF=_3((Xk,DA)=>{var AN=t0(kA());DA.exports=AN});var uA=_3((MN)=>{var w0=t0(yA()),F9=t0(M4()),dF=t0(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=w2(_)?_.slice():Y0({},_);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=w2(_)?_.slice():Y0({},_);return q+1===J.length?(X[$[q]]=X[G],w2(X)?X.splice(G,1):delete X[G]):X[G]=K(_[G],J,$,q+1),X}function H(_,J,$){var q=J[$],G=w2(_)?_.slice():Y0({},_);if($+1===J.length)return w2(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 L(){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 M(){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 O(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function R(_,J,$,q){return new tO(_,J,$,q)}function I(_,J){_.context===T6&&(KZ(_.current,2,J,_,null,null),T7())}function P(_,J){if(l5!==null){var $=J.staleFamilies;J=J.updatedFamilies,G_(),EH(_.current,J,$),T7()}}function V(_){l5=_}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 y(_){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 j(_){if(C(_)!==_)throw Error("Unable to find node on an unmounted component.")}function D(_){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 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 j(G),_;if(X===q)return j(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,B=G.child;B;){if(B===$){z=!0,$=G,q=X;break}if(B===q){z=!0,q=G,$=X;break}B=B.sibling}if(!z){for(B=X.child;B;){if(B===$){z=!0,$=X,q=G;break}if(B===q){z=!0,q=X,$=G;break}B=B.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 x(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=x(_),J!==null)return J;_=_.sibling}return null}function E(_){if(_===null||typeof _!=="object")return null;return _=lW&&_[lW]||_["@@iterator"],typeof _==="function"?_:null}function u(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Aw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case C7:return"Fragment";case BZ:return"Profiler";case KQ: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 N7:return"Portal";case c4:return _.displayName||"Context";case AZ:return(_._context.displayName||"Context")+".Consumer";case B_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case HQ:return J=_.displayName||null,J!==null?J:u(_.type)||"Memo";case f5:J=_._payload,_=_._init;try{return u(_(J))}catch($){}}return null}function b(_){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 u(J);case 8:return J===KQ?"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 s(_){return{current:_}}function U1(_,J){0>M3?console.error("Unexpected pop."):(J!==IZ[M3]&&console.error("Unexpected Fiber popped."),_.current=OZ[M3],OZ[M3]=null,IZ[M3]=null,M3--)}function Q1(_,J,$){M3++,OZ[M3]=_.current,IZ[M3]=$,_.current=J}function h(_){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){Q1(z6,J,_),Q1(A_,_,_),Q1(Y6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?WW(J):y3:y3;break;default:if($=J.tagName,J=J.namespaceURI)J=WW(J),J=LW(J,$);else switch($){case"svg":J=G9;break;case"math":J=Xq;break;default:J=y3}}$=$.toLowerCase(),$=u9(null,$),$={context:J,ancestorInfo:$},U1(Y6,_),Q1(Y6,$,_)}function p(_){U1(Y6,_),U1(A_,_),U1(z6,_)}function c(){return h(Y6.current)}function l(_){_.memoizedState!==null&&Q1(YQ,_,_);var J=h(Y6.current),$=_.type,q=LW(J.context,$);$=u9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(Q1(A_,_,_),Q1(Y6,q,_))}function o(_){A_.current===_&&(U1(Y6,_),U1(A_,_)),YQ.current===_&&(U1(YQ,_),FJ._currentValue=D8)}function k(){}function t(){if(M_===0){iW=console.log,dW=console.info,rW=console.warn,aW=console.error,sW=console.group,tW=console.groupCollapsed,oW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}M_++}function _1(){if(M_--,M_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y0({},_,{value:iW}),info:Y0({},_,{value:dW}),warn:Y0({},_,{value:rW}),error:Y0({},_,{value:aW}),group:Y0({},_,{value:sW}),groupCollapsed:Y0({},_,{value:tW}),groupEnd:Y0({},_,{value:oW})})}0>M_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function a(_){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
20
  `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function H1(_){if(wZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);wZ=J&&J[1]||"",nW=-1<$.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+wZ+_+nW}function O1(_,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,t();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(N1){var Z1=N1}Reflect.construct(_,[],d)}else{try{d.call()}catch(N1){Z1=N1}_.call(d.prototype)}}else{try{throw Error()}catch(N1){Z1=N1}(d=_())&&typeof d.catch==="function"&&d.catch(function(){})}}catch(N1){if(N1&&Z1&&typeof N1.stack==="string")return[N1.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(),B=z[0],I=z[1];if(B&&I){var f=B.split(`
23
- `),e=I.split(`
22
+ `+wZ+_+nW}function O1(_,J){if(!_||PZ)return"";var $=NZ.get(_);if($!==void 0)return $;PZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=z1.H,z1.H=null,t();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(N1){var Z1=N1}Reflect.construct(_,[],d)}else{try{d.call()}catch(N1){Z1=N1}_.call(d.prototype)}}else{try{throw Error()}catch(N1){Z1=N1}(d=_())&&typeof d.catch==="function"&&d.catch(function(){})}}catch(N1){if(N1&&Z1&&typeof N1.stack==="string")return[N1.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(),B=z[0],w=z[1];if(B&&w){var f=B.split(`
23
+ `),e=w.split(`
24
24
  `);for(z=X=0;X<f.length&&!f[X].includes("DetermineComponentFrameRoot");)X++;for(;z<e.length&&!e[z].includes("DetermineComponentFrameRoot");)z++;if(X===f.length||z===e.length)for(X=f.length-1,z=e.length-1;1<=X&&0<=z&&f[X]!==e[z];)z--;for(;1<=X&&0<=z;X--,z--)if(f[X]!==e[z]){if(X!==1||z!==1)do if(X--,z--,0>z||f[X]!==e[z]){var J1=`
25
- `+f[X].replace(" at new "," at ");return _.displayName&&J1.includes("<anonymous>")&&(J1=J1.replace("<anonymous>",_.displayName)),typeof _==="function"&&NZ.set(_,J1),J1}while(1<=X&&0<=z);break}}}finally{PZ=!1,Y1.H=q,_1(),Error.prepareStackTrace=$}return f=(f=_?_.displayName||_.name:"")?H1(f):"",typeof _==="function"&&NZ.set(_,f),f}function L1(_,J){switch(_.tag){case 26:case 27:case 5:return H1(_.type);case 16:return H1("Lazy");case 13:return _.child!==J&&J!==null?H1("Suspense Fallback"):H1("Suspense");case 19:return H1("SuspenseList");case 0:case 15:return O1(_.type,!1);case 11:return O1(_.type.render,!1);case 1:return O1(_.type,!0);case 31:return H1("Activity");default:return""}}function T1(_){try{var J="",$=null;do{J+=L1(_,$);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:B,env:I,debugLocation:f}=X;if(f!=null){var e=a(f),J1=e.lastIndexOf(`
25
+ `+f[X].replace(" at new "," at ");return _.displayName&&J1.includes("<anonymous>")&&(J1=J1.replace("<anonymous>",_.displayName)),typeof _==="function"&&NZ.set(_,J1),J1}while(1<=X&&0<=z);break}}}finally{PZ=!1,z1.H=q,_1(),Error.prepareStackTrace=$}return f=(f=_?_.displayName||_.name:"")?H1(f):"",typeof _==="function"&&NZ.set(_,f),f}function B1(_,J){switch(_.tag){case 26:case 27:case 5:return H1(_.type);case 16:return H1("Lazy");case 13:return _.child!==J&&J!==null?H1("Suspense Fallback"):H1("Suspense");case 19:return H1("SuspenseList");case 0:case 15:return O1(_.type,!1);case 11:return O1(_.type.render,!1);case 1:return O1(_.type,!0);case 31:return H1("Activity");default:return""}}function T1(_){try{var J="",$=null;do{J+=B1(_,$);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:B,env:w,debugLocation:f}=X;if(f!=null){var e=a(f),J1=e.lastIndexOf(`
26
26
  `),d=J1===-1?e:e.slice(J1+1);if(d.indexOf(B)!==-1){var Z1=`
27
- `+d;break _}}Z1=H1(B+(I?" ["+I+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(N1){return`
27
+ `+d;break _}}Z1=H1(B+(w?" ["+w+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(N1){return`
28
28
  Error generating stack: `+N1.message+`
29
- `+N1.stack}}function G1(_){return(_=_?_.displayName||_.name:"")?H1(_):""}function R1(){if(j5===null)return null;var _=j5._debugOwner;return _!=null?b(_):null}function f1(){if(j5===null)return"";var _=j5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=H1(_.type);break;case 13:J+=H1("Suspense");break;case 19:J+=H1("SuspenseList");break;case 31:J+=H1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=G1(_.type));break;case 11:_._debugOwner||J!==""||(J+=G1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=a(q);G!==""&&(J+=`
29
+ `+N1.stack}}function G1(_){return(_=_?_.displayName||_.name:"")?H1(_):""}function R1(){if(S5===null)return null;var _=S5._debugOwner;return _!=null?b(_):null}function S1(){if(S5===null)return"";var _=S5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=H1(_.type);break;case 13:J+=H1("Suspense");break;case 19:J+=H1("SuspenseList");break;case 31:J+=H1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=G1(_.type));break;case 11:_._debugOwner||J!==""||(J+=G1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=a(q);G!==""&&(J+=`
30
30
  `+G)}}else if(_.debugStack!=null){var X=_.debugStack;(_=_.owner)&&X&&(J+=`
31
31
  `+a(X))}else break;var z=J}catch(B){z=`
32
32
  Error generating stack: `+B.message+`
33
- `+B.stack}return z}function z1(_,J,$,q,G,X,z){var B=j5;C1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,X,z)):J($,q,G,X,z)}finally{C1(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function C1(_){Y1.getCurrentStack=_===null?null:f1,g4=!1,j5=_}function b1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function c1(_){try{return D1(_),!1}catch(J){return!0}}function D1(_){return""+_}function A1(_,J){if(c1(_))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(_)),D1(_)}function e1(_,J){if(c1(_))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(_)),D1(_)}function k1(_){if(c1(_))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(_)),D1(_)}function g0(_){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{S7=J.inject(_),i2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function _0(_){if(typeof Pw==="function"&&Nw(_),i2&&typeof i2.setStrictMode==="function")try{i2.setStrictMode(S7,_)}catch(J){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",J))}}function t0(_){return _>>>=0,_===0?32:31-(Cw(_)/fw|0)|0}function C2(_){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 u2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,X=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var B=q&134217727;return B!==0?(q=B&~X,q!==0?G=C2(q):(z&=B,z!==0?G=C2(z):$||($=B&~_,$!==0&&(G=C2($))))):(B=q&~X,B!==0?G=C2(B):z!==0?G=C2(z):$||($=q&~_,$!==0&&(G=C2($)))),G===0?0:J!==0&&J!==G&&(J&X)===0&&(X=G&-G,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:G}function b2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function f2(_,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 T2(){var _=LQ;return LQ<<=1,(LQ&62914560)===0&&(LQ=4194304),_}function G2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function R2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function I4(_,J,$,q,G,X){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:B,expirationTimes:I,hiddenUpdates:f}=_;for($=z&~$;0<$;){var e=31-e2($),J1=1<<e;B[e]=0,I[e]=-1;var d=f[e];if(d!==null)for(f[e]=null,e=0;e<d.length;e++){var Z1=d[e];Z1!==null&&(Z1.lane&=-536870913)}$&=~J1}q!==0&&X5(_,q,0),X!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=X&~(z&~J))}function X5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-e2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function x5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-e2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function q4(_,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 G3(_,J,$){if(c4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-e2($),G=1<<q;_[q].add(J),$&=~G}}function O5(_,J){if(c4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-e2(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 j(_){return _&=-_,V5!==0&&V5<_?X4!==0&&X4<_?(_&134217727)!==0?l4:BQ:X4:V5}function q1(){var _=C0.p;if(_!==0)return _;return _=window.event,_===void 0?l4:EW(_.type)}function I1(_,J){var $=C0.p;try{return C0.p=_,J()}finally{C0.p=$}}function P1(_){delete _[g2],delete _[_5],delete _[jZ],delete _[Sw],delete _[vw]}function y1(_){var J=_[g2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[z6]||$[g2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=wW(_);_!==null;){if($=_[g2])return $;_=wW(_)}return J}_=$,$=_.parentNode}return null}function i1(_){if(_=_[g2]||_[z6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function r1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function F0(_){var J=_[eW];return J||(J=_[eW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function x1(_){_[T_]=!0}function K2(_,J){E2(_,J),E2(_+"Capture",J)}function E2(_,J){K8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),K8[_]=J;var $=_.toLowerCase();VZ[$]=_,_==="onDoubleClick"&&(VZ.ondblclick=_);for(_=0;_<J.length;_++)_L.add(J[_])}function $1(_,J){jw[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 B1(_){if(F4.call($L,_))return!0;if(F4.call(JL,_))return!1;if(Vw.test(_))return $L[_]=!0;return JL[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function v1(_,J,$){if(B1(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 A1($,J),_===""+$?$:_}}function V1(_,J,$){if(B1(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}}A1($,J),_.setAttribute(J,""+$)}}function Q0(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}A1($,J),_.setAttribute(J,""+$)}}function u1(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}A1(q,$),_.setAttributeNS(J,$,""+q)}}function m1(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return k1(_),_;default:return""}}function J0(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function T0(_,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){k1(z),$=""+z,X.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){k1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function Z2(_){if(!_._valueTracker){var J=J0(_)?"checked":"value";_._valueTracker=T0(_,J,""+_[J])}}function K0(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=J0(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function S2(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function w0(_){return _.replace(yw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function Z7(_,J){J.checked===void 0||J.defaultChecked===void 0||qL||(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",R1()||"A component",J.type),qL=!0),J.value===void 0||J.defaultValue===void 0||QL||(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",R1()||"A component",J.type),QL=!0)}function K5(_,J,$,q,G,X,z,B){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(A1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+m1(J)}else _.value!==""+m1(J)&&(_.value=""+m1(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?F7(_,z,m1(J)):$!=null?F7(_,z,m1($)):q!=null&&_.removeAttribute("value"),G==null&&X!=null&&(_.defaultChecked=!!X),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(A1(B,"name"),_.name=""+m1(B)):_.removeAttribute("name")}function V0(_,J,$,q,G,X,z,B){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(A1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){Z2(_);return}$=$!=null?""+m1($):"",J=J!=null?""+m1(J):$,B||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=B?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(A1(z,"name"),_.name=z),Z2(_)}function F7(_,J,$){J==="number"&&S2(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function sJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?F9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||GL||(GL=!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||ZL||(ZL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||UL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),UL=!0)}function tJ(){var _=R1();return _?`
33
+ `+B.stack}return z}function W1(_,J,$,q,G,X,z){var B=S5;f1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,X,z)):J($,q,G,X,z)}finally{f1(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function f1(_){z1.getCurrentStack=_===null?null:S1,l4=!1,S5=_}function b1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function p1(_){try{return u1(_),!1}catch(J){return!0}}function u1(_){return""+_}function A1(_,J){if(p1(_))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(_)),u1(_)}function J0(_,J){if(p1(_))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(_)),u1(_)}function D1(_){if(p1(_))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(_)),u1(_)}function p0(_){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{S7=J.inject(_),d2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function Q0(_){if(typeof Pw==="function"&&Nw(_),d2&&typeof d2.setStrictMode==="function")try{d2.setStrictMode(S7,_)}catch(J){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",J))}}function o0(_){return _>>>=0,_===0?32:31-(Cw(_)/fw|0)|0}function R2(_){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 S2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,X=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var B=q&134217727;return B!==0?(q=B&~X,q!==0?G=R2(q):(z&=B,z!==0?G=R2(z):$||($=B&~_,$!==0&&(G=R2($))))):(B=q&~X,B!==0?G=R2(B):z!==0?G=R2(z):$||($=q&~_,$!==0&&(G=R2($)))),G===0?0:J!==0&&J!==G&&(J&X)===0&&(X=G&-G,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:G}function j2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function v2(_,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 O2(){var _=LQ;return LQ<<=1,(LQ&62914560)===0&&(LQ=4194304),_}function F2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function I2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function P4(_,J,$,q,G,X){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:B,expirationTimes:w,hiddenUpdates:f}=_;for($=z&~$;0<$;){var e=31-_5($),J1=1<<e;B[e]=0,w[e]=-1;var d=f[e];if(d!==null)for(f[e]=null,e=0;e<d.length;e++){var Z1=d[e];Z1!==null&&(Z1.lane&=-536870913)}$&=~J1}q!==0&&K5(_,q,0),X!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=X&~(z&~J))}function K5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-_5(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function E5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-_5($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function h5(_,J){var $=J&-J;return $=($&42)!==0?1:U4($),($&(_.suspendedLanes|J))!==0?0:$}function U4(_){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 G4(_,J,$){if(d4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-_5($),G=1<<q;_[q].add(J),$&=~G}}function x5(_,J){if(d4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-_5(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 v(_){return _&=-_,j5!==0&&j5<_?H4!==0&&H4<_?(_&134217727)!==0?r4:BQ:H4:j5}function q1(){var _=f0.p;if(_!==0)return _;return _=window.event,_===void 0?r4:EW(_.type)}function w1(_,J){var $=f0.p;try{return f0.p=_,J()}finally{f0.p=$}}function P1(_){delete _[p2],delete _[J5],delete _[vZ],delete _[Sw],delete _[jw]}function k1(_){var J=_[p2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[L6]||$[p2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=wW(_);_!==null;){if($=_[p2])return $;_=wW(_)}return J}_=$,$=_.parentNode}return null}function r1(_){if(_=_[p2]||_[L6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function l1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function W0(_){var J=_[eW];return J||(J=_[eW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function E1(_){_[T_]=!0}function X2(_,J){E2(_,J),E2(_+"Capture",J)}function E2(_,J){Y8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),Y8[_]=J;var $=_.toLowerCase();VZ[$]=_,_==="onDoubleClick"&&(VZ.ondblclick=_);for(_=0;_<J.length;_++)_L.add(J[_])}function m5(_,J){vw[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 $1(_){if(K4.call($L,_))return!0;if(K4.call(JL,_))return!1;if(Vw.test(_))return $L[_]=!0;return JL[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function Y1(_,J,$){if($1(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 A1($,J),_===""+$?$:_}}function C1(_,J,$){if($1(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}}A1($,J),_.setAttribute(J,""+$)}}function v1(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}A1($,J),_.setAttribute(J,""+$)}}function a1(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}A1(q,$),_.setAttributeNS(J,$,""+q)}}function y1(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return D1(_),_;default:return""}}function i1(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function o1(_,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){D1(z),$=""+z,X.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){D1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function X0(_){if(!_._valueTracker){var J=i1(_)?"checked":"value";_._valueTracker=o1(_,J,""+_[J])}}function n0(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=i1(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function $0(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function R0(_){return _.replace(yw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function N0(_,J){J.checked===void 0||J.defaultChecked===void 0||qL||(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",R1()||"A component",J.type),qL=!0),J.value===void 0||J.defaultValue===void 0||QL||(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",R1()||"A component",J.type),QL=!0)}function N4(_,J,$,q,G,X,z,B){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(A1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+y1(J)}else _.value!==""+y1(J)&&(_.value=""+y1(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?j0(_,z,y1(J)):$!=null?j0(_,z,y1($)):q!=null&&_.removeAttribute("value"),G==null&&X!=null&&(_.defaultChecked=!!X),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(A1(B,"name"),_.name=""+y1(B)):_.removeAttribute("name")}function h2(_,J,$,q,G,X,z,B){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(A1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){X0(_);return}$=$!=null?""+y1($):"",J=J!=null?""+y1(J):$,B||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=B?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(A1(z,"name"),_.name=z),X0(_)}function j0(_,J,$){J==="number"&&$0(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function sJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?F9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||GL||(GL=!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||ZL||(ZL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||UL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),UL=!0)}function tJ(){var _=R1();return _?`
34
34
 
35
- Check the render method of \``+_+"`.":""}function r3(_,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{$=""+m1($),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 oJ(_,J){for(_=0;_<XL.length;_++){var $=XL[_];if(J[$]!=null){var q=O2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,tJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,tJ())}}J.value===void 0||J.defaultValue===void 0||FL||(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"),FL=!0)}function nJ(_,J){J.value===void 0||J.defaultValue===void 0||KL||(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",R1()||"A component"),KL=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function eJ(_,J,$){if(J!=null&&(J=""+m1(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+m1($):""}function j9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(O2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=m1(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),Z2(_)}function _$(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?_$(_.children[0],J):_}function o2(_){return" "+" ".repeat(_)}function a3(_){return"+ "+" ".repeat(_)}function Z3(_){return"- "+" ".repeat(_)}function J$(_){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 a6(_,J){return HL.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function X7(_,J,$){var q=120-2*$;if(J===null)return a3($)+a6(_,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)),a3($)+a6(_,q)+`
37
- `+Z3($)+a6(J,q)+`
38
- `}return o2($)+a6(_,q)+`
39
- `}function V9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function s3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(O2(_))return"[...]";if(_.$$typeof===x4)return(J=u(_.type))?"<"+J+">":"<...>";var $=V9(_);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=s3(_[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 t3(_,J){return typeof _!=="string"||HL.test(_)?"{"+s3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function y9(_,J,$){var q=120-$.length-_.length,G=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var z=t3(J[X],120-$.length-X.length-1);q-=X.length+z.length+2,G.push(X+"="+z)}return G.length===0?$+"<"+_+`>
35
+ Check the render method of \``+_+"`.":""}function s3(_,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{$=""+y1($),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 oJ(_,J){for(_=0;_<XL.length;_++){var $=XL[_];if(J[$]!=null){var q=w2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,tJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,tJ())}}J.value===void 0||J.defaultValue===void 0||FL||(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"),FL=!0)}function nJ(_,J){J.value===void 0||J.defaultValue===void 0||KL||(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",R1()||"A component"),KL=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function eJ(_,J,$){if(J!=null&&(J=""+y1(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+y1($):""}function v9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(w2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=y1(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),X0(_)}function _$(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?_$(_.children[0],J):_}function n2(_){return" "+" ".repeat(_)}function t3(_){return"+ "+" ".repeat(_)}function X3(_){return"- "+" ".repeat(_)}function J$(_){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 t6(_,J){return HL.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function X7(_,J,$){var q=120-2*$;if(J===null)return t3($)+t6(_,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)),t3($)+t6(_,q)+`
37
+ `+X3($)+t6(J,q)+`
38
+ `}return n2($)+t6(_,q)+`
39
+ `}function V9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function o3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(w2(_))return"[...]";if(_.$$typeof===p4)return(J=u(_.type))?"<"+J+">":"<...>";var $=V9(_);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=o3(_[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 n3(_,J){return typeof _!=="string"||HL.test(_)?"{"+o3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function y9(_,J,$){var q=120-$.length-_.length,G=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var z=n3(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 BU(_,J,$){var q="",G=Y0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete G[X];var z=120-2*$-X.length-2,B=s3(_[X],z);J.hasOwnProperty(X)?(z=s3(J[X],z),q+=a3($)+X+": "+B+`
46
- `,q+=Z3($)+X+": "+z+`
47
- `):q+=a3($)+X+": "+B+`
48
- `}for(var I in G)G.hasOwnProperty(I)&&(_=s3(G[I],120-2*$-I.length-2),q+=Z3($)+I+": "+_+`
49
- `);return q}function AU(_,J,$,q){var G="",X=new Map;for(f in $)$.hasOwnProperty(f)&&X.set(f.toLowerCase(),f);if(X.size===1&&X.has("children"))G+=y9(_,J,o2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var B=120-2*(q+1)-z.length-1,I=X.get(z.toLowerCase());if(I!==void 0){X.delete(z.toLowerCase());var f=J[z];I=$[I];var e=t3(f,B);B=t3(I,B),typeof f==="object"&&f!==null&&typeof I==="object"&&I!==null&&V9(f)==="Object"&&V9(I)==="Object"&&(2<Object.keys(f).length||2<Object.keys(I).length||-1<e.indexOf("...")||-1<B.indexOf("..."))?G+=o2(q+1)+z+`={{
50
- `+BU(f,I,q+2)+o2(q+1)+`}}
51
- `:(G+=a3(q+1)+z+"="+e+`
52
- `,G+=Z3(q+1)+z+"="+B+`
53
- `)}else G+=o2(q+1)+z+"="+t3(J[z],B)+`
54
- `}X.forEach(function(J1){if(J1!=="children"){var d=120-2*(q+1)-J1.length-1;G+=Z3(q+1)+J1+"="+t3($[J1],d)+`
55
- `}}),G=G===""?o2(q)+"<"+_+`>
56
- `:o2(q)+"<"+_+`
57
- `+G+o2(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+=X7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+X7(""+J,null,q+1):G+X7(""+J,void 0,q+1);return G}function $$(_,J){var $=J$(_);if($===null){$="";for(_=_.child;_;)$+=$$(_,J),_=_.sibling;return $}return o2(J)+"<"+$+`>
59
- `}function k9(_,J){var $=_$(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return o2(J)+`...
60
- `+k9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var X=q[G].name;typeof X==="string"&&($+=o2(J)+"<"+X+`>
61
- `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=X7(G,_.serverProps,J),J++;else if(X=J$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-X.length-2,B="";for(f in G)if(G.hasOwnProperty(f)&&f!=="children"){var I=t3(G[f],15);if(z-=f.length+I.length+2,0>z){B+=" ...";break}B+=" "+f+"="+I}q=o2(q)+"<"+X+B+`>
62
- `,J++}else _.serverProps===null?(q=y9(X,G,a3(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 f="";G=_.fiber.child;for(X=0;G&&X<_.children.length;)z=_.children[X],z.fiber===G?(f+=k9(z,J),X++):f+=$$(G,J),G=G.sibling;G&&0<_.children.length&&(f+=o2(J)+`...
63
- `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)X=G[_],f=typeof X==="string"?f+(Z3(J)+a6(X,120-2*J)+`
64
- `):f+y9(X.type,X.props,Z3(J));return $+q+f}function D9(_){try{return`
65
-
66
- `+k9(_,0)}catch(J){return""}}function Q$(_,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?D9(G).replaceAll(/^[+-]/gm,">"):""}function u9(_,J){var $=Y0({},_||zL),q={tag:J};if(YL.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Dw.indexOf(J)!==-1&&($.pTagInButtonScope=null),kw.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 uw.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 U$(_,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 G$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function b9(_,J){J=J||zL;var $=J.current;if(J=($=q$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:U$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,AQ[J])return!1;AQ[J]=!0;var G=(J=j5)?G$(J.return,q):null,X=J!==null&&G!==null?Q$(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
45
+ `}function BU(_,J,$){var q="",G=Y0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete G[X];var z=120-2*$-X.length-2,B=o3(_[X],z);J.hasOwnProperty(X)?(z=o3(J[X],z),q+=t3($)+X+": "+B+`
46
+ `,q+=X3($)+X+": "+z+`
47
+ `):q+=t3($)+X+": "+B+`
48
+ `}for(var w in G)G.hasOwnProperty(w)&&(_=o3(G[w],120-2*$-w.length-2),q+=X3($)+w+": "+_+`
49
+ `);return q}function AU(_,J,$,q){var G="",X=new Map;for(f in $)$.hasOwnProperty(f)&&X.set(f.toLowerCase(),f);if(X.size===1&&X.has("children"))G+=y9(_,J,n2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var B=120-2*(q+1)-z.length-1,w=X.get(z.toLowerCase());if(w!==void 0){X.delete(z.toLowerCase());var f=J[z];w=$[w];var e=n3(f,B);B=n3(w,B),typeof f==="object"&&f!==null&&typeof w==="object"&&w!==null&&V9(f)==="Object"&&V9(w)==="Object"&&(2<Object.keys(f).length||2<Object.keys(w).length||-1<e.indexOf("...")||-1<B.indexOf("..."))?G+=n2(q+1)+z+`={{
50
+ `+BU(f,w,q+2)+n2(q+1)+`}}
51
+ `:(G+=t3(q+1)+z+"="+e+`
52
+ `,G+=X3(q+1)+z+"="+B+`
53
+ `)}else G+=n2(q+1)+z+"="+n3(J[z],B)+`
54
+ `}X.forEach(function(J1){if(J1!=="children"){var d=120-2*(q+1)-J1.length-1;G+=X3(q+1)+J1+"="+n3($[J1],d)+`
55
+ `}}),G=G===""?n2(q)+"<"+_+`>
56
+ `:n2(q)+"<"+_+`
57
+ `+G+n2(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+=X7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+X7(""+J,null,q+1):G+X7(""+J,void 0,q+1);return G}function $$(_,J){var $=J$(_);if($===null){$="";for(_=_.child;_;)$+=$$(_,J),_=_.sibling;return $}return n2(J)+"<"+$+`>
59
+ `}function k9(_,J){var $=_$(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return n2(J)+`...
60
+ `+k9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var X=q[G].name;typeof X==="string"&&($+=n2(J)+"<"+X+`>
61
+ `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=X7(G,_.serverProps,J),J++;else if(X=J$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-X.length-2,B="";for(f in G)if(G.hasOwnProperty(f)&&f!=="children"){var w=n3(G[f],15);if(z-=f.length+w.length+2,0>z){B+=" ...";break}B+=" "+f+"="+w}q=n2(q)+"<"+X+B+`>
62
+ `,J++}else _.serverProps===null?(q=y9(X,G,t3(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 f="";G=_.fiber.child;for(X=0;G&&X<_.children.length;)z=_.children[X],z.fiber===G?(f+=k9(z,J),X++):f+=$$(G,J),G=G.sibling;G&&0<_.children.length&&(f+=n2(J)+`...
63
+ `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)X=G[_],f=typeof X==="string"?f+(X3(J)+t6(X,120-2*J)+`
64
+ `):f+y9(X.type,X.props,X3(J));return $+q+f}function D9(_){try{return`
65
+
66
+ `+k9(_,0)}catch(J){return""}}function Q$(_,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?D9(G).replaceAll(/^[+-]/gm,">"):""}function u9(_,J){var $=Y0({},_||zL),q={tag:J};if(YL.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Dw.indexOf(J)!==-1&&($.pTagInButtonScope=null),kw.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 uw.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 U$(_,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 G$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function b9(_,J){J=J||zL;var $=J.current;if(J=($=q$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:U$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,AQ[J])return!1;AQ[J]=!0;var G=(J=S5)?G$(J.return,q):null,X=J!==null&&G!==null?Q$(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
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||z1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,q,z)})),!1}function o3(_,J,$){if($||q$("#text",J,!1))return!0;if($="#text|"+J,AQ[$])return!1;AQ[$]=!0;var q=($=j5)?G$($,J):null;return $=$!==null&&q!==null?Q$(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
68
+ This will cause a hydration error.%s`,z,q,X),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||W1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,q,z)})),!1}function e3(_,J,$){if($||q$("#text",J,!1))return!0;if($="#text|"+J,AQ[$])return!1;AQ[$]=!0;var q=($=S5)?G$($,J):null;return $=$!==null&&q!==null?Q$(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 s6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function MU(_){return _.replace(hw,function(J,$){return $.toUpperCase()})}function E9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?v7.hasOwnProperty(J)&&v7[J]||(v7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,MU(J.replace(Ew,"ms-")))):bw.test(J)?v7.hasOwnProperty(J)&&v7[J]||(v7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!BL.test($)||kZ.hasOwnProperty($)&&kZ[$]||(kZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(BL,""))),typeof $==="number"&&(isNaN($)?AL||(AL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||ML||(ML=!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||TL.has(J)?J==="float"?_.cssFloat=$:(e1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function YH(_,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 B in J)if(J.hasOwnProperty(B)&&(!$||$[B]!==J[B]))for(G=yZ[B]||[B],X=0;X<G.length;X++)q[G[X]]=B;B={};for(var I in J)for(G=yZ[I]||[I],X=0;X<G.length;X++)B[G[X]]=I;I={};for(var f in q)if(G=q[f],(X=B[f])&&G!==X&&(z=G+","+X,!I[z])){I[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 J1 in $)!$.hasOwnProperty(J1)||J!=null&&J.hasOwnProperty(J1)||(J1.indexOf("--")===0?_.setProperty(J1,""):J1==="float"?_.cssFloat="":_[J1]="");for(var d in J)f=J[d],J.hasOwnProperty(d)&&$[d]!==f&&E9(_,d,f)}else for(q in J)J.hasOwnProperty(q)&&E9(_,q,J[q])}function h9(_){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 zH(_){return xw.get(_)||_}function yO(_,J){if(F4.call(V7,J)&&V7[J])return!0;if(gw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=RL.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),V7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),V7[J]=!0}if(mw.test(J)){if(_=J.toLowerCase(),_=RL.hasOwnProperty(_)?_:null,_==null)return V7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),V7[J]=!0)}return!0}function kO(_,J){var $=[],q;for(q in J)yO(_,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 DO(_,J,$,q){if(F4.call(J5,J)&&J5[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."),J5[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),J5[J]=!0;if(IL.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),J5[J]=!0}else if(IL.test(J))return pw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),J5[J]=!0;if(cw.test(J)||lw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),J5[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),J5[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 $),J5[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),J5[J]=!0;if(TQ.hasOwnProperty(G)){if(G=TQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),J5[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),J5[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),J5[J]=!0}case"function":case"symbol":return J5[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,$),J5[J]=!0}}return!0}function uO(_,J,$){var q=[],G;for(G in J)DO(_,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 x9(_){return iw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function F3(){}function TU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function WH(_){var J=i1(_);if(J&&(_=J.stateNode)){var $=_[_5]||null;_:switch(_=J.stateNode,J.type){case"input":if(K5(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;A1(J,"name"),$=$.querySelectorAll('input[name="'+w0(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[_5]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");K5(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&&K0(q)}break _;case"textarea":eJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&r3(_,!!$.multiple,J,!1)}}}function LH(_,J,$){if(DZ)return _(J,$);DZ=!0;try{var q=_(J);return q}finally{if(DZ=!1,y7!==null||k7!==null){if(T7(),y7&&(J=y7,_=k7,k7=y7=null,WH(J),_))for(J=0;J<_.length;J++)WH(_[J])}}}function m9(_,J){var $=_.stateNode;if($===null)return null;var q=$[_5]||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(RQ)return RQ;var _,J=bZ,$=J.length,q,G="value"in W6?W6.value:W6.textContent,X=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[X-q];q++);return RQ=G.slice(_,1<q?1-q:void 0)}function Z$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function F$(){return!0}function AH(){return!1}function H5(_){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 B in _)_.hasOwnProperty(B)&&($=_[B],this[B]=$?$(X):X[B]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?F$:AH,this.isPropagationStopped=AH,this}return Y0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=F$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=F$)},persist:function(){},isPersistent:F$}),J}function bO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=qP[_])?!!J[_]:!1}function RU(){return bO}function MH(_,J){switch(_){case"keyup":return BP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==CL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function EO(_,J){switch(_){case"compositionend":return TH(J);case"keypress":if(J.which!==SL)return null;return jL=!0,vL;case"textInput":return _=J.data,_===vL&&jL?null:_;default:return null}}function hO(_,J){if(D7)return _==="compositionend"||!mZ&&MH(_,J)?(_=BH(),RQ=bZ=W6=null,D7=!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 fL&&J.locale!=="ko"?null:J.data;default:return null}}function RH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!MP[_.type]:J==="textarea"?!0:!1}function xO(_){if(!i4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function OH(_,J,$,q){y7?k7?k7.push(q):k7=[q]:y7=q,J=_Q(J,"onChange"),0<J.length&&($=new OQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function mO(_){QW(_,0)}function X$(_){var J=r1(_);if(K0(J))return _}function IH(_,J){if(_==="change")return J}function wH(){N_&&(N_.detachEvent("onpropertychange",PH),C_=N_=null)}function PH(_){if(_.propertyName==="value"&&X$(C_)){var J=[];OH(J,C_,_,TU(_)),LH(mO,J)}}function gO(_,J,$){_==="focusin"?(wH(),N_=J,C_=$,N_.attachEvent("onpropertychange",PH)):_==="focusout"&&wH()}function pO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return X$(C_)}function cO(_,J){if(_==="click")return X$(J)}function lO(_,J){if(_==="input"||_==="change")return X$(J)}function iO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function g9(_,J){if($5(_,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(!F4.call(J,G)||!$5(_[G],J[G]))return!1}return!0}function NH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function CH(_,J){var $=NH(_);_=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}$=NH($)}}function fH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?fH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function SH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=S2(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=S2(_.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 vH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;pZ||u7==null||u7!==S2(q)||(q=u7,("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}),f_&&g9(f_,q)||(f_=q,q=_Q(gZ,"onSelect"),0<q.length&&(J=new OQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=u7)))}function t6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function o6(_){if(cZ[_])return cZ[_];if(!b7[_])return _;var J=b7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in yL)return cZ[_]=J[$];return _}function U4(_,J){EL.set(_,J),K2(J,[_])}function dO(_){for(var J=wQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(O2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==wQ&&J!==aZ)return dZ;J=aZ}else return dZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==wQ&&J!==rZ)return dZ;J=rZ}}return J}function IU(_,J,$,q){for(var G in _)F4.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===x4){var X=u(J.type)||"…",z=J.key;J=J.props;var B=Object.keys(J),I=B.length;if(z==null&&I===0){J="<"+X+" />";break}if(3>q||I===1&&B[0]==="children"&&z==null){J="<"+X+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+X]),z!==null&&w4("key",z,$,q+1,G),_=!1;for(var f in J)f==="children"?J.children!=null&&(!O2(J.children)||0<J.children.length)&&(_=!0):F4.call(J,f)&&f[0]!=="_"&&w4(f,J[f],$,q+1,G);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(f=dO(J),f===rZ||f===wQ){J=JSON.stringify(J);break}else if(f===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"&&(f=Object.getPrototypeOf(J))&&typeof f.constructor==="function"&&(X=f.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===NP?"…":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([PQ+"  ".repeat(q)+z,"…"]),G=!1);for(var X in J)if(X in _){var z=_[X],B=J[X];if(z!==B){if(q===0&&X==="children")G="  ".repeat(q)+X,$.push([PQ+G,"…"],[NQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof B==="object"&&z!==null&&B!==null&&z.$$typeof===B.$$typeof)if(B.$$typeof===x4){if(z.type===B.type&&z.key===B.key){z=u(B.type)||"…",G="  ".repeat(q)+X,z="<"+z+" … />",$.push([PQ+G,z],[NQ+G,z]),G=!1;continue}}else{var I=Object.prototype.toString.call(z),f=Object.prototype.toString.call(B);if(I===f&&(f==="[object Object]"||f==="[object Array]")){I=[mL+"  ".repeat(q)+X,f==="[object Array]"?"Array":""],$.push(I),f=$.length,jH(z,B,$,q+1)?f===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof B==="function"&&z.name===B.name&&z.length===B.length&&(I=Function.prototype.toString.call(z),f=Function.prototype.toString.call(B),I===f)){z=B.name===""?"() => {}":B.name+"() {}",$.push([mL+"  ".repeat(q)+X,z+" Referentially unequal function closure. Consider memoization."]);continue}}w4(X,z,$,q,PQ),w4(X,B,$,q,NQ)}G=!1}}else $.push([NQ+"  ".repeat(q)+X,"…"]),G=!1;return G}function I5(_){W0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function P4(_,J,$,q){h0&&(B6.start=J,B6.end=$,A3.color="warning",A3.tooltipText=q,A3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,B6)):performance.measure(q,B6))}function K$(_,J,$){P4(_,J,$,"Reconnect")}function H$(_,J,$,q,G){var X=m(_);if(X!==null&&h0){var{alternate:z,actualDuration:B}=_;if(z===null||z.child!==_.child)for(var I=_.child;I!==null;I=I.sibling)B-=I.actualDuration;q=0.5>B?q?"tertiary-light":"primary-light":10>B?q?"tertiary":"primary":100>B?q?"tertiary-dark":"primary-dark":"error";var f=_.memoizedProps;B=_._debugTask,f!==null&&z!==null&&z.memoizedProps!==f?(I=[CP],f=jH(z.memoizedProps,f,I,0),1<I.length&&(f&&!L6&&(z.lanes&G)===0&&100<_.actualDuration?(L6=!0,I[0]=fP,A3.color="warning",A3.tooltipText=gL):(A3.color=q,A3.tooltipText=X),A3.properties=I,B6.start=J,B6.end=$,B!=null?B.run(performance.measure.bind(performance,"​"+X,B6)):performance.measure("​"+X,B6))):B!=null?B.run(console.timeStamp.bind(console,X,J,$,g5,void 0,q)):console.timeStamp(X,J,$,g5,void 0,q)}}function wU(_,J,$,q){if(h0){var G=m(_);if(G!==null){for(var X=null,z=[],B=0;B<q.length;B++){var I=q[B];X==null&&I.source!==null&&(X=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&&w4("key",_.key,z,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,z,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:g5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},X?X.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function N4(_,J,$,q,G){if(G!==null){if(h0){var X=m(_);if(X!==null){q=[];for(var z=0;z<G.length;z++){var B=G[z].value;q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_.key!==null&&w4("key",_.key,q,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:g5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+X,J)):performance.measure("​"+X,J)}}}else X=m(_),X!==null&&h0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,g5,void 0,G)):console.timeStamp(X,J,$,g5,void 0,G))}function rO(_,J,$,q){if(h0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,W0,z0,G)):console.timeStamp($,_,J,W0,z0,G)}}function VH(_,J,$,q){!h0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,W0,z0,$)):console.timeStamp("Prewarm",_,J,W0,z0,$))}function yH(_,J,$,q){!h0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,W0,z0,$)):console.timeStamp("Suspended",_,J,W0,z0,$))}function aO(_,J,$,q,G,X){if(h0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var B=q[z].value;$.push(["Recoverable Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:W0,trackGroup:z0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function PU(_,J,$,q){!h0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,W0,z0,"error")):console.timeStamp("Errored",_,J,W0,z0,"error"))}function sO(_,J,$,q){!h0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,W0,z0,"secondary-light")):console.timeStamp($,_,J,W0,z0,"secondary-light"))}function kH(_,J,$,q,G){if(h0&&!(J<=_)){for(var X=[],z=0;z<$.length;z++){var B=$[z].value;X.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"error",track:W0,trackGroup:z0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:X}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function p9(_,J,$){!h0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,W0,z0,"secondary-dark")):console.timeStamp("Animating",_,J,W0,z0,"secondary-dark"))}function Y$(){for(var _=E7,J=sZ=E7=0;J<_;){var $=p5[J];p5[J++]=null;var q=p5[J];p5[J++]=null;var G=p5[J];p5[J++]=null;var X=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}X!==0&&DH($,G,X)}}function z$(_,J,$,q){p5[E7++]=_,p5[E7++]=J,p5[E7++]=$,p5[E7++]=q,sZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function NU(_,J,$,q){return z$(_,J,$,q),W$(_)}function l2(_,J){return z$(_,null,null,J),W$(_)}function DH(_,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&S_||(G=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,G&&J!==null&&(G=31-e2($),_=X.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),X):null}function W$(_){if(JJ>pP)throw C8=JJ=0,$J=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.");C8>cP&&(C8=0,$J=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&&tz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&tz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function n6(_){if(c5===null)return _;var J=c5(_);return J===void 0?_:J.current}function CU(_){if(c5===null)return _;var J=c5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=n6(_.render),_.render!==J)?(J={$$typeof:B_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function uH(_,J){if(c5===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===v5&&(q=!0);break;case 11:G===B_?q=!0:G===v5&&(q=!0);break;case 14:case 15:G===HQ?q=!0:G===v5&&(q=!0);break;default:return!1}return q&&(_=c5($),_!==void 0&&_===c5(J))?!0:!1}function bH(_){c5!==null&&typeof WeakSet==="function"&&(h7===null&&(h7=new WeakSet),h7.add(_))}function EH(_,J,$){do{var q=_,G=q.alternate,X=q.child,z=q.sibling,B=q.tag;q=q.type;var I=null;switch(B){case 0:case 15:case 1:I=q;break;case 11:I=q.render}if(c5===null)throw Error("Expected resolveFamily to be set during hot reload.");var f=!1;if(q=!1,I!==null&&(I=c5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(B===1?q=!0:f=!0))),h7!==null&&(h7.has(_)||G!==null&&h7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||f)G=l2(_,2),G!==null&&o0(G,_,2);if(X===null||q||EH(X,J,$),z===null)break;_=z}while(1)}function tO(_,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,pL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function X3(_,J){var $=_.alternate;switch($===null?($=R(_.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=n6(_.type);break;case 1:$.type=n6(_.type);break;case 11:$.type=CU(_.type)}return $}function hH(_,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,B=_;if(typeof _==="function")fU(_)&&(z=1),B=n6(B);else if(typeof _==="string")z=c(),z=Uw(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case RZ:return J=R(31,$,J,G),J.elementType=RZ,J.lanes=X,J;case C7:return e6($.children,G,X,J);case KQ:z=8,G|=d2,G|=K4;break;case BZ: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=R(12,_,J,q|q0),J.elementType=BZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case MZ:return J=R(13,$,J,G),J.elementType=MZ,J.lanes=X,J;case TZ:return J=R(19,$,J,G),J.elementType=TZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case m4:z=10;break _;case AZ:z=9;break _;case B_:z=11,B=CU(B);break _;case HQ:z=14;break _;case v5:z=16,B=null;break _}if(B="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)B+=" 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":O2(_)?$="array":_!==void 0&&_.$$typeof===x4?($="<"+(u(_.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?b(q):null)&&(B+=`
71
+ This will cause a hydration error.%s`,J,$),!1}function o6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function MU(_){return _.replace(hw,function(J,$){return $.toUpperCase()})}function E9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?j7.hasOwnProperty(J)&&j7[J]||(j7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,MU(J.replace(Ew,"ms-")))):bw.test(J)?j7.hasOwnProperty(J)&&j7[J]||(j7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!BL.test($)||kZ.hasOwnProperty($)&&kZ[$]||(kZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(BL,""))),typeof $==="number"&&(isNaN($)?AL||(AL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||ML||(ML=!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||TL.has(J)?J==="float"?_.cssFloat=$:(J0($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function YH(_,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 B in J)if(J.hasOwnProperty(B)&&(!$||$[B]!==J[B]))for(G=yZ[B]||[B],X=0;X<G.length;X++)q[G[X]]=B;B={};for(var w in J)for(G=yZ[w]||[w],X=0;X<G.length;X++)B[G[X]]=w;w={};for(var f in q)if(G=q[f],(X=B[f])&&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 J1 in $)!$.hasOwnProperty(J1)||J!=null&&J.hasOwnProperty(J1)||(J1.indexOf("--")===0?_.setProperty(J1,""):J1==="float"?_.cssFloat="":_[J1]="");for(var d in J)f=J[d],J.hasOwnProperty(d)&&$[d]!==f&&E9(_,d,f)}else for(q in J)J.hasOwnProperty(q)&&E9(_,q,J[q])}function h9(_){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 zH(_){return xw.get(_)||_}function yO(_,J){if(K4.call(V7,J)&&V7[J])return!0;if(gw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=RL.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),V7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),V7[J]=!0}if(mw.test(J)){if(_=J.toLowerCase(),_=RL.hasOwnProperty(_)?_:null,_==null)return V7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),V7[J]=!0)}return!0}function kO(_,J){var $=[],q;for(q in J)yO(_,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 DO(_,J,$,q){if(K4.call($5,J)&&$5[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."),$5[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),$5[J]=!0;if(IL.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),$5[J]=!0}else if(IL.test(J))return pw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),$5[J]=!0;if(cw.test(J)||lw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),$5[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),$5[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 $),$5[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),$5[J]=!0;if(TQ.hasOwnProperty(G)){if(G=TQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),$5[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),$5[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),$5[J]=!0}case"function":case"symbol":return $5[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,$),$5[J]=!0}}return!0}function uO(_,J,$){var q=[],G;for(G in J)DO(_,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 x9(_){return iw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function K3(){}function TU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function WH(_){var J=r1(_);if(J&&(_=J.stateNode)){var $=_[J5]||null;_:switch(_=J.stateNode,J.type){case"input":if(N4(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;A1(J,"name"),$=$.querySelectorAll('input[name="'+R0(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[J5]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");N4(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&&n0(q)}break _;case"textarea":eJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&s3(_,!!$.multiple,J,!1)}}}function LH(_,J,$){if(DZ)return _(J,$);DZ=!0;try{var q=_(J);return q}finally{if(DZ=!1,y7!==null||k7!==null){if(T7(),y7&&(J=y7,_=k7,k7=y7=null,WH(J),_))for(J=0;J<_.length;J++)WH(_[J])}}}function m9(_,J){var $=_.stateNode;if($===null)return null;var q=$[J5]||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(RQ)return RQ;var _,J=bZ,$=J.length,q,G="value"in B6?B6.value:B6.textContent,X=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[X-q];q++);return RQ=G.slice(_,1<q?1-q:void 0)}function Z$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function F$(){return!0}function AH(){return!1}function H5(_){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 B in _)_.hasOwnProperty(B)&&($=_[B],this[B]=$?$(X):X[B]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?F$:AH,this.isPropagationStopped=AH,this}return Y0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=F$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=F$)},persist:function(){},isPersistent:F$}),J}function bO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=qP[_])?!!J[_]:!1}function RU(){return bO}function MH(_,J){switch(_){case"keyup":return BP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==CL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function EO(_,J){switch(_){case"compositionend":return TH(J);case"keypress":if(J.which!==SL)return null;return vL=!0,jL;case"textInput":return _=J.data,_===jL&&vL?null:_;default:return null}}function hO(_,J){if(D7)return _==="compositionend"||!mZ&&MH(_,J)?(_=BH(),RQ=bZ=B6=null,D7=!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 fL&&J.locale!=="ko"?null:J.data;default:return null}}function RH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!MP[_.type]:J==="textarea"?!0:!1}function xO(_){if(!a4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function OH(_,J,$,q){y7?k7?k7.push(q):k7=[q]:y7=q,J=_Q(J,"onChange"),0<J.length&&($=new OQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function mO(_){QW(_,0)}function X$(_){var J=l1(_);if(n0(J))return _}function IH(_,J){if(_==="change")return J}function wH(){N_&&(N_.detachEvent("onpropertychange",PH),C_=N_=null)}function PH(_){if(_.propertyName==="value"&&X$(C_)){var J=[];OH(J,C_,_,TU(_)),LH(mO,J)}}function gO(_,J,$){_==="focusin"?(wH(),N_=J,C_=$,N_.attachEvent("onpropertychange",PH)):_==="focusout"&&wH()}function pO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return X$(C_)}function cO(_,J){if(_==="click")return X$(J)}function lO(_,J){if(_==="input"||_==="change")return X$(J)}function iO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function g9(_,J){if(Q5(_,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(!K4.call(J,G)||!Q5(_[G],J[G]))return!1}return!0}function NH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function CH(_,J){var $=NH(_);_=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}$=NH($)}}function fH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?fH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function SH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=$0(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=$0(_.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 jH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;pZ||u7==null||u7!==$0(q)||(q=u7,("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}),f_&&g9(f_,q)||(f_=q,q=_Q(gZ,"onSelect"),0<q.length&&(J=new OQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=u7)))}function n6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function e6(_){if(cZ[_])return cZ[_];if(!b7[_])return _;var J=b7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in yL)return cZ[_]=J[$];return _}function Z4(_,J){EL.set(_,J),X2(J,[_])}function dO(_){for(var J=wQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(w2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==wQ&&J!==aZ)return dZ;J=aZ}else return dZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==wQ&&J!==rZ)return dZ;J=rZ}}return J}function IU(_,J,$,q){for(var G in _)K4.call(_,G)&&G[0]!=="_"&&C4(G,_[G],J,$,q)}function C4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===p4){var X=u(J.type)||"…",z=J.key;J=J.props;var B=Object.keys(J),w=B.length;if(z==null&&w===0){J="<"+X+" />";break}if(3>q||w===1&&B[0]==="children"&&z==null){J="<"+X+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+X]),z!==null&&C4("key",z,$,q+1,G),_=!1;for(var f in J)f==="children"?J.children!=null&&(!w2(J.children)||0<J.children.length)&&(_=!0):K4.call(J,f)&&f[0]!=="_"&&C4(f,J[f],$,q+1,G);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(f=dO(J),f===rZ||f===wQ){J=JSON.stringify(J);break}else if(f===aZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],C4(X[0],X[1],$,q+1,G);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,C4(_,J.value,$,q,G),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,C4(_,J.reason,$,q,G),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}X==="Object"&&(f=Object.getPrototypeOf(J))&&typeof f.constructor==="function"&&(X=f.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===NP?"…":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 vH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([PQ+"  ".repeat(q)+z,"…"]),G=!1);for(var X in J)if(X in _){var z=_[X],B=J[X];if(z!==B){if(q===0&&X==="children")G="  ".repeat(q)+X,$.push([PQ+G,"…"],[NQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof B==="object"&&z!==null&&B!==null&&z.$$typeof===B.$$typeof)if(B.$$typeof===p4){if(z.type===B.type&&z.key===B.key){z=u(B.type)||"…",G="  ".repeat(q)+X,z="<"+z+" … />",$.push([PQ+G,z],[NQ+G,z]),G=!1;continue}}else{var w=Object.prototype.toString.call(z),f=Object.prototype.toString.call(B);if(w===f&&(f==="[object Object]"||f==="[object Array]")){w=[mL+"  ".repeat(q)+X,f==="[object Array]"?"Array":""],$.push(w),f=$.length,vH(z,B,$,q+1)?f===$.length&&(w[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof B==="function"&&z.name===B.name&&z.length===B.length&&(w=Function.prototype.toString.call(z),f=Function.prototype.toString.call(B),w===f)){z=B.name===""?"() => {}":B.name+"() {}",$.push([mL+"  ".repeat(q)+X,z+" Referentially unequal function closure. Consider memoization."]);continue}}C4(X,z,$,q,PQ),C4(X,B,$,q,NQ)}G=!1}}else $.push([NQ+"  ".repeat(q)+X,"…"]),G=!1;return G}function R5(_){L0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function f4(_,J,$,q){x0&&(M6.start=J,M6.end=$,T3.color="warning",T3.tooltipText=q,T3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,M6)):performance.measure(q,M6))}function K$(_,J,$){f4(_,J,$,"Reconnect")}function H$(_,J,$,q,G){var X=m(_);if(X!==null&&x0){var{alternate:z,actualDuration:B}=_;if(z===null||z.child!==_.child)for(var w=_.child;w!==null;w=w.sibling)B-=w.actualDuration;q=0.5>B?q?"tertiary-light":"primary-light":10>B?q?"tertiary":"primary":100>B?q?"tertiary-dark":"primary-dark":"error";var f=_.memoizedProps;B=_._debugTask,f!==null&&z!==null&&z.memoizedProps!==f?(w=[CP],f=vH(z.memoizedProps,f,w,0),1<w.length&&(f&&!A6&&(z.lanes&G)===0&&100<_.actualDuration?(A6=!0,w[0]=fP,T3.color="warning",T3.tooltipText=gL):(T3.color=q,T3.tooltipText=X),T3.properties=w,M6.start=J,M6.end=$,B!=null?B.run(performance.measure.bind(performance,"​"+X,M6)):performance.measure("​"+X,M6))):B!=null?B.run(console.timeStamp.bind(console,X,J,$,p5,void 0,q)):console.timeStamp(X,J,$,p5,void 0,q)}}function wU(_,J,$,q){if(x0){var G=m(_);if(G!==null){for(var X=null,z=[],B=0;B<q.length;B++){var w=q[B];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&&C4("key",_.key,z,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,z,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:p5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},X?X.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function S4(_,J,$,q,G){if(G!==null){if(x0){var X=m(_);if(X!==null){q=[];for(var z=0;z<G.length;z++){var B=G[z].value;q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_.key!==null&&C4("key",_.key,q,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:p5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+X,J)):performance.measure("​"+X,J)}}}else X=m(_),X!==null&&x0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,p5,void 0,G)):console.timeStamp(X,J,$,p5,void 0,G))}function rO(_,J,$,q){if(x0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,L0,z0,G)):console.timeStamp($,_,J,L0,z0,G)}}function VH(_,J,$,q){!x0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,L0,z0,$)):console.timeStamp("Prewarm",_,J,L0,z0,$))}function yH(_,J,$,q){!x0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,L0,z0,$)):console.timeStamp("Suspended",_,J,L0,z0,$))}function aO(_,J,$,q,G,X){if(x0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var B=q[z].value;$.push(["Recoverable Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:L0,trackGroup:z0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function PU(_,J,$,q){!x0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,L0,z0,"error")):console.timeStamp("Errored",_,J,L0,z0,"error"))}function sO(_,J,$,q){!x0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,L0,z0,"secondary-light")):console.timeStamp($,_,J,L0,z0,"secondary-light"))}function kH(_,J,$,q,G){if(x0&&!(J<=_)){for(var X=[],z=0;z<$.length;z++){var B=$[z].value;X.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"error",track:L0,trackGroup:z0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:X}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function p9(_,J,$){!x0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,L0,z0,"secondary-dark")):console.timeStamp("Animating",_,J,L0,z0,"secondary-dark"))}function Y$(){for(var _=E7,J=sZ=E7=0;J<_;){var $=c5[J];c5[J++]=null;var q=c5[J];c5[J++]=null;var G=c5[J];c5[J++]=null;var X=c5[J];if(c5[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&&DH($,G,X)}}function z$(_,J,$,q){c5[E7++]=_,c5[E7++]=J,c5[E7++]=$,c5[E7++]=q,sZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function NU(_,J,$,q){return z$(_,J,$,q),W$(_)}function i2(_,J){return z$(_,null,null,J),W$(_)}function DH(_,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&S_||(G=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,G&&J!==null&&(G=31-_5($),_=X.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),X):null}function W$(_){if(JJ>pP)throw S8=JJ=0,$J=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.");S8>cP&&(S8=0,$J=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&&tz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&tz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function _8(_){if(l5===null)return _;var J=l5(_);return J===void 0?_:J.current}function CU(_){if(l5===null)return _;var J=l5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=_8(_.render),_.render!==J)?(J={$$typeof:B_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function uH(_,J){if(l5===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===f5&&(q=!0);break;case 11:G===B_?q=!0:G===f5&&(q=!0);break;case 14:case 15:G===HQ?q=!0:G===f5&&(q=!0);break;default:return!1}return q&&(_=l5($),_!==void 0&&_===l5(J))?!0:!1}function bH(_){l5!==null&&typeof WeakSet==="function"&&(h7===null&&(h7=new WeakSet),h7.add(_))}function EH(_,J,$){do{var q=_,G=q.alternate,X=q.child,z=q.sibling,B=q.tag;q=q.type;var w=null;switch(B){case 0:case 15:case 1:w=q;break;case 11:w=q.render}if(l5===null)throw Error("Expected resolveFamily to be set during hot reload.");var f=!1;if(q=!1,w!==null&&(w=l5(w),w!==void 0&&($.has(w)?q=!0:J.has(w)&&(B===1?q=!0:f=!0))),h7!==null&&(h7.has(_)||G!==null&&h7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||f)G=i2(_,2),G!==null&&e0(G,_,2);if(X===null||q||EH(X,J,$),z===null)break;_=z}while(1)}function tO(_,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,pL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function H3(_,J){var $=_.alternate;switch($===null?($=R(_.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=_8(_.type);break;case 1:$.type=_8(_.type);break;case 11:$.type=CU(_.type)}return $}function hH(_,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,B=_;if(typeof _==="function")fU(_)&&(z=1),B=_8(B);else if(typeof _==="string")z=c(),z=Uw(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case RZ:return J=R(31,$,J,G),J.elementType=RZ,J.lanes=X,J;case C7:return J8($.children,G,X,J);case KQ:z=8,G|=r2,G|=Y4;break;case BZ: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=R(12,_,J,q|U0),J.elementType=BZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case MZ:return J=R(13,$,J,G),J.elementType=MZ,J.lanes=X,J;case TZ:return J=R(19,$,J,G),J.elementType=TZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case c4:z=10;break _;case AZ:z=9;break _;case B_:z=11,B=CU(B);break _;case HQ:z=14;break _;case f5:z=16,B=null;break _}if(B="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)B+=" 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":w2(_)?$="array":_!==void 0&&_.$$typeof===p4?($="<"+(u(_.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?b(q):null)&&(B+=`
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: "+($+"."+B)),B=null}return J=R(z,$,J,G),J.elementType=_,J.type=B,J.lanes=X,J._debugOwner=q,J}function L$(_,J,$){return J=SU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function e6(_,J,$,q){return _=R(7,_,q,J),_.lanes=$,_}function vU(_,J,$){return _=R(6,_,null,J),_.lanes=$,_}function xH(_){var J=R(18,null,null,a1);return J.stateNode=_,J}function jU(_,J,$){return J=R(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function w5(_,J){if(typeof _==="object"&&_!==null){var $=tZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:T1(J)},tZ.set(_,J),J}return{value:_,source:J,stack:T1(J)}}function K3(_,J){n3(),x7[m7++]=v_,x7[m7++]=CQ,CQ=_,v_=J}function mH(_,J,$){n3(),l5[i5++]=T3,l5[i5++]=R3,l5[i5++]=Y8,Y8=_;var q=T3;_=R3;var G=32-e2(q)-1;q&=~(1<<G),$+=1;var X=32-e2(J)+G;if(30<X){var z=G-G%5;X=(q&(1<<z)-1).toString(32),q>>=z,G-=z,T3=1<<32-e2(J)+G|$<<G|q,R3=X+_}else T3=1<<X|$<<G|q,R3=_}function VU(_){n3(),_.return!==null&&(K3(_,1),mH(_,1,0))}function yU(_){for(;_===CQ;)CQ=x7[--m7],x7[m7]=null,v_=x7[--m7],x7[m7]=null;for(;_===Y8;)Y8=l5[--i5],l5[i5]=null,R3=l5[--i5],l5[i5]=null,T3=l5[--i5],l5[i5]=null}function gH(){return n3(),Y8!==null?{id:T3,overflow:R3}:null}function pH(_,J){n3(),l5[i5++]=T3,l5[i5++]=R3,l5[i5++]=Y8,T3=J.id,R3=J.overflow,Y8=_}function n3(){B0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function _8(_,J){if(_.return===null){if(y5===null)y5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(y5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");y5.distanceFromLeaf>J&&(y5.distanceFromLeaf=J)}return y5}var $=_8(_.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 cH(){B0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function B$(_,J){d4||(_=_8(_,0),_.serverProps=null,J!==null&&(J=OW(J),_.serverTail.push(J)))}function e3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=y5;throw q!==null&&(y5=null,$=D9(q)),c9(w5(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: "+($+"."+B)),B=null}return J=R(z,$,J,G),J.elementType=_,J.type=B,J.lanes=X,J._debugOwner=q,J}function L$(_,J,$){return J=SU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function J8(_,J,$,q){return _=R(7,_,q,J),_.lanes=$,_}function jU(_,J,$){return _=R(6,_,null,J),_.lanes=$,_}function xH(_){var J=R(18,null,null,s1);return J.stateNode=_,J}function vU(_,J,$){return J=R(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function O5(_,J){if(typeof _==="object"&&_!==null){var $=tZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:T1(J)},tZ.set(_,J),J}return{value:_,source:J,stack:T1(J)}}function Y3(_,J){_6(),x7[m7++]=j_,x7[m7++]=CQ,CQ=_,j_=J}function mH(_,J,$){_6(),i5[d5++]=O3,i5[d5++]=I3,i5[d5++]=W8,W8=_;var q=O3;_=I3;var G=32-_5(q)-1;q&=~(1<<G),$+=1;var X=32-_5(J)+G;if(30<X){var z=G-G%5;X=(q&(1<<z)-1).toString(32),q>>=z,G-=z,O3=1<<32-_5(J)+G|$<<G|q,I3=X+_}else O3=1<<X|$<<G|q,I3=_}function VU(_){_6(),_.return!==null&&(Y3(_,1),mH(_,1,0))}function yU(_){for(;_===CQ;)CQ=x7[--m7],x7[m7]=null,j_=x7[--m7],x7[m7]=null;for(;_===W8;)W8=i5[--d5],i5[d5]=null,I3=i5[--d5],i5[d5]=null,O3=i5[--d5],i5[d5]=null}function gH(){return _6(),W8!==null?{id:O3,overflow:I3}:null}function pH(_,J){_6(),i5[d5++]=O3,i5[d5++]=I3,i5[d5++]=W8,O3=J.id,I3=J.overflow,W8=_}function _6(){A0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $8(_,J){if(_.return===null){if(v5===null)v5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(v5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");v5.distanceFromLeaf>J&&(v5.distanceFromLeaf=J)}return v5}var $=$8(_.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 cH(){A0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function B$(_,J){s4||(_=$8(_,0),_.serverProps=null,J!==null&&(J=OW(J),_.serverTail.push(J)))}function J6(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=v5;throw q!==null&&(v5=null,$=D9(q)),c9(O5(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`+$),_)),oZ}function lH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[g2]=_,J[_5]=q,nG($,q),$){case"dialog":A0("cancel",J),A0("close",J);break;case"iframe":case"object":case"embed":A0("load",J);break;case"video":case"audio":for($=0;$<QJ.length;$++)A0(QJ[$],J);break;case"source":A0("error",J);break;case"img":case"image":case"link":A0("error",J),A0("load",J);break;case"details":A0("toggle",J);break;case"input":$1("input",q),A0("invalid",J),Z7(J,q),V0(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":sJ(J,q);break;case"select":$1("select",q),A0("invalid",J),oJ(J,q);break;case"textarea":$1("textarea",q),A0("invalid",J),nJ(J,q),j9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||ZW(J.textContent,$)?(q.popover!=null&&(A0("beforetoggle",J),A0("toggle",J)),q.onScroll!=null&&A0("scroll",J),q.onScrollEnd!=null&&A0("scrollend",J),q.onClick!=null&&(J.onclick=F3),J=!0):J=!1,J||e3(_,!0)}function iH(_){for(p2=_.return;p2;)switch(p2.tag){case 5:case 31:case 13:d5=!1;return;case 27:case 3:d5=!0;return;default:p2=p2.return}}function K7(_){if(_!==p2)return!1;if(!B0)return iH(_),B0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||QZ(_.type,_.memoizedProps);$=!$}if($&&x0){for($=x0;$;){var q=_8(_,0),G=OW($);q.serverTail.push(G),$=G.type==="Suspense"?ZZ($):S5($.nextSibling)}e3(_)}if(iH(_),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.");x0=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.");x0=ZZ(_)}else J===27?(J=x0,X6(_.type)?(_=mF,mF=null,x0=_):x0=J):x0=p2?S5(_.stateNode.nextSibling):null;return!0}function J8(){x0=p2=null,d4=B0=!1}function kU(){var _=M6;return _!==null&&(G5===null?G5=_:G5.push.apply(G5,_),M6=null),_}function c9(_){M6===null?M6=[_]:M6.push(_)}function DU(){var _=y5;if(_!==null){y5=null;for(var J=D9(_);0<_.children.length;)_=_.children[0];z1(_.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 lH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[p2]=_,J[J5]=q,nG($,q),$){case"dialog":M0("cancel",J),M0("close",J);break;case"iframe":case"object":case"embed":M0("load",J);break;case"video":case"audio":for($=0;$<QJ.length;$++)M0(QJ[$],J);break;case"source":M0("error",J);break;case"img":case"image":case"link":M0("error",J),M0("load",J);break;case"details":M0("toggle",J);break;case"input":m5("input",q),M0("invalid",J),N0(J,q),h2(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":sJ(J,q);break;case"select":m5("select",q),M0("invalid",J),oJ(J,q);break;case"textarea":m5("textarea",q),M0("invalid",J),nJ(J,q),v9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||ZW(J.textContent,$)?(q.popover!=null&&(M0("beforetoggle",J),M0("toggle",J)),q.onScroll!=null&&M0("scroll",J),q.onScrollEnd!=null&&M0("scrollend",J),q.onClick!=null&&(J.onclick=K3),J=!0):J=!1,J||J6(_,!0)}function iH(_){for(c2=_.return;c2;)switch(c2.tag){case 5:case 31:case 13:r5=!1;return;case 27:case 3:r5=!0;return;default:c2=c2.return}}function K7(_){if(_!==c2)return!1;if(!A0)return iH(_),A0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||QZ(_.type,_.memoizedProps);$=!$}if($&&m0){for($=m0;$;){var q=$8(_,0),G=OW($);q.serverTail.push(G),$=G.type==="Suspense"?ZZ($):C5($.nextSibling)}J6(_)}if(iH(_),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.");m0=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.");m0=ZZ(_)}else J===27?(J=m0,H6(_.type)?(_=mF,mF=null,m0=_):m0=J):m0=c2?C5(_.stateNode.nextSibling):null;return!0}function Q8(){m0=c2=null,s4=A0=!1}function kU(){var _=R6;return _!==null&&(Z5===null?Z5=_:Z5.push.apply(Z5,_),R6=null),_}function c9(_){R6===null?R6=[_]:R6.push(_)}function DU(){var _=v5;if(_!==null){v5=null;for(var J=D9(_);0<_.children.length;)_=_.children[0];W1(_.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,29 +90,29 @@ https://react.dev/link/hydration-mismatch`+$),_)),oZ}function lH(_){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 A$(){g7=fQ=null,p7=!1}function _6(_,J,$){Q1(nZ,J._currentValue,_),J._currentValue=$,Q1(eZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==lL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=lL}function H3(_,J){_._currentValue=nZ.current;var $=eZ.current;U1(eZ,J),_._currentRenderer=$,U1(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 B=X;X=G;for(var I=0;I<J.length;I++)if(B.context===J[I]){X.lanes|=$,B=X.alternate,B!==null&&(B.lanes|=$),uU(X.return,$,_),q||(z=null);break _}X=B.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 H7(_,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 B=G.type;$5(G.pendingProps.value,z.value)||(_!==null?_.push(B):_=[B])}}else if(G===YQ.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(FJ):_=[FJ])}G=G.return}_!==null&&bU(J,_,$,q),J.flags|=262144}function M$(_){for(_=_.firstContext;_!==null;){if(!$5(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function $8(_){fQ=_,g7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function p0(_){return p7&&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()."),dH(fQ,_)}function T$(_,J){return fQ===null&&$8(_),dH(_,J)}function dH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},g7===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().");g7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else g7=g7.next=J;return $}function EU(){return{controller:new jP,data:new Map,refCount:0}}function Q8(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function l9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&VP(yP,function(){_.controller.abort()})}function C4(_,J,$){if((_&127)!==0)0>r4&&(r4=Y2(),V_=SQ(J),_F=J,$!=null&&(JF=m($)),(R0&(w2|u5))!==k2&&(n0=!0,O6=j_),_=H_(),J=K_(),_!==c7||J!==y_?c7=-1.1:J!==null&&(O6=j_),W8=_,y_=J);else if((_&4194048)!==0&&0>r5&&(r5=Y2(),k_=SQ(J),iL=J,$!=null&&(dL=m($)),0>w3)){if(_=H_(),J=K_(),_!==w6||J!==L8)w6=-1.1;I6=_,L8=J}}function oO(_){if(0>r4){r4=Y2(),V_=_._debugTask!=null?_._debugTask:null,(R0&(w2|u5))!==k2&&(O6=j_);var J=H_(),$=K_();J!==c7||$!==y_?c7=-1.1:$!==null&&(O6=j_),W8=J,y_=$}if(0>r5&&(r5=Y2(),k_=_._debugTask!=null?_._debugTask:null,0>w3)){if(_=H_(),J=K_(),_!==w6||J!==L8)w6=-1.1;I6=_,L8=J}}function Y3(){var _=z8;return z8=0,_}function R$(_){var J=z8;return z8=_,J}function i9(_){var J=z8;return z8+=_,J}function O$(){d1=p1=-1.1}function P5(){var _=p1;return p1=-1.1,_}function N5(_){0<=_&&(p1=_)}function f4(){var _=r0;return r0=-0,_}function S4(_){0<=_&&(r0=_)}function v4(){var _=c0;return c0=null,_}function j4(){var _=n0;return n0=!1,_}function hU(_){Q5=Y2(),0>_.actualStartTime&&(_.actualStartTime=Q5)}function xU(_){if(0<=Q5){var J=Y2()-Q5;_.actualDuration+=J,_.selfBaseDuration=J,Q5=-1}}function rH(_){if(0<=Q5){var J=Y2()-Q5;_.actualDuration+=J,Q5=-1}}function V4(){if(0<=Q5){var _=Y2(),J=_-Q5;Q5=-1,z8+=J,r0+=J,d1=_}}function aH(_){c0===null&&(c0=[]),c0.push(_),I3===null&&(I3=[]),I3.push(_)}function y4(){Q5=Y2(),0>p1&&(p1=Q5)}function d9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function nO(_,J){if(u_===null){var $=u_=[];QF=0,B8=aG(),l7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return QF++,J.then(sH,sH),J}function sH(){if(--QF===0&&(-1<r5||(w3=-1.1),u_!==null)){l7!==null&&(l7.status="fulfilled");var _=u_;u_=null,B8=0,l7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function eO(_,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 _=A8.current;return _!==null?_:u0.pooledCache}function I$(_,J){J===null?Q1(A8,A8.current,_):Q1(A8,J.pool,_)}function tH(){var _=mU();return _===null?null:{parent:H2._currentValue,pool:_}}function oH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function nH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function eH(_,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(F3,F3),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,JY(_),_;default:if(typeof J.status==="string")J.then(F3,F3);else{if(_=u0,_!==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,JY(_),_}throw T8=J,p_=!0,i7}}function J6(_){try{return bP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw T8=J,p_=!0,i7;throw J}}function _Y(){if(T8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=T8;return T8=null,p_=!1,_}function JY(_){if(_===i7||_===bQ)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 h2(_){var J=U0;return _!=null&&(U0=J===null?_:J.concat(_)),J}function gU(){var _=U0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function w$(_,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=L$(_,$.mode,0),J._debugInfo=U0,J.return=$),z1(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 P$(_){var J=c_;return c_+=1,d7===null&&(d7=oH()),eH(d7,_,J)}function r9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function $Y(_,J){if(J.$$typeof===Lw)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 A$(){g7=fQ=null,p7=!1}function $6(_,J,$){Q1(nZ,J._currentValue,_),J._currentValue=$,Q1(eZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==lL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=lL}function z3(_,J){_._currentValue=nZ.current;var $=eZ.current;U1(eZ,J),_._currentRenderer=$,U1(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 B=X;X=G;for(var w=0;w<J.length;w++)if(B.context===J[w]){X.lanes|=$,B=X.alternate,B!==null&&(B.lanes|=$),uU(X.return,$,_),q||(z=null);break _}X=B.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 H7(_,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 B=G.type;Q5(G.pendingProps.value,z.value)||(_!==null?_.push(B):_=[B])}}else if(G===YQ.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(FJ):_=[FJ])}G=G.return}_!==null&&bU(J,_,$,q),J.flags|=262144}function M$(_){for(_=_.firstContext;_!==null;){if(!Q5(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function q8(_){fQ=_,g7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function c0(_){return p7&&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()."),dH(fQ,_)}function T$(_,J){return fQ===null&&q8(_),dH(_,J)}function dH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},g7===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().");g7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else g7=g7.next=J;return $}function EU(){return{controller:new vP,data:new Map,refCount:0}}function U8(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function l9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&VP(yP,function(){_.controller.abort()})}function j4(_,J,$){if((_&127)!==0)0>t4&&(t4=z2(),V_=SQ(J),_F=J,$!=null&&(JF=m($)),(O0&(N2|k5))!==u2&&(_2=!0,w6=v_),_=H_(),J=K_(),_!==c7||J!==y_?c7=-1.1:J!==null&&(w6=v_),B8=_,y_=J);else if((_&4194048)!==0&&0>a5&&(a5=z2(),k_=SQ(J),iL=J,$!=null&&(dL=m($)),0>N3)){if(_=H_(),J=K_(),_!==N6||J!==A8)N6=-1.1;P6=_,A8=J}}function oO(_){if(0>t4){t4=z2(),V_=_._debugTask!=null?_._debugTask:null,(O0&(N2|k5))!==u2&&(w6=v_);var J=H_(),$=K_();J!==c7||$!==y_?c7=-1.1:$!==null&&(w6=v_),B8=J,y_=$}if(0>a5&&(a5=z2(),k_=_._debugTask!=null?_._debugTask:null,0>N3)){if(_=H_(),J=K_(),_!==N6||J!==A8)N6=-1.1;P6=_,A8=J}}function W3(){var _=L8;return L8=0,_}function R$(_){var J=L8;return L8=_,J}function i9(_){var J=L8;return L8+=_,J}function O$(){d1=g1=-1.1}function I5(){var _=g1;return g1=-1.1,_}function w5(_){0<=_&&(g1=_)}function v4(){var _=a0;return a0=-0,_}function V4(_){0<=_&&(a0=_)}function y4(){var _=l0;return l0=null,_}function k4(){var _=_2;return _2=!1,_}function hU(_){q5=z2(),0>_.actualStartTime&&(_.actualStartTime=q5)}function xU(_){if(0<=q5){var J=z2()-q5;_.actualDuration+=J,_.selfBaseDuration=J,q5=-1}}function rH(_){if(0<=q5){var J=z2()-q5;_.actualDuration+=J,q5=-1}}function D4(){if(0<=q5){var _=z2(),J=_-q5;q5=-1,L8+=J,a0+=J,d1=_}}function aH(_){l0===null&&(l0=[]),l0.push(_),P3===null&&(P3=[]),P3.push(_)}function u4(){q5=z2(),0>g1&&(g1=q5)}function d9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function nO(_,J){if(u_===null){var $=u_=[];QF=0,M8=aG(),l7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return QF++,J.then(sH,sH),J}function sH(){if(--QF===0&&(-1<a5||(N3=-1.1),u_!==null)){l7!==null&&(l7.status="fulfilled");var _=u_;u_=null,M8=0,l7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function eO(_,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 _=T8.current;return _!==null?_:b0.pooledCache}function I$(_,J){J===null?Q1(T8,T8.current,_):Q1(T8,J.pool,_)}function tH(){var _=mU();return _===null?null:{parent:Y2._currentValue,pool:_}}function oH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function nH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function eH(_,J,$){z1.actQueue!==null&&(z1.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(K3,K3),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,JY(_),_;default:if(typeof J.status==="string")J.then(K3,K3);else{if(_=b0,_!==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,JY(_),_}throw O8=J,p_=!0,i7}}function Q6(_){try{return bP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw O8=J,p_=!0,i7;throw J}}function _Y(){if(O8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=O8;return O8=null,p_=!1,_}function JY(_){if(_===i7||_===bQ)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 x2(_){var J=G0;return _!=null&&(G0=J===null?_:J.concat(_)),J}function gU(){var _=G0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function w$(_,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=L$(_,$.mode,0),J._debugInfo=G0,J.return=$),W1(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 P$(_){var J=c_;return c_+=1,d7===null&&(d7=oH()),eH(d7,_,J)}function r9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function $Y(_,J){if(J.$$typeof===Lw)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
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 N$(_,J){var $=gU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_,J){var $=m(_)||"Component";YB[$]||(YB[$]=!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
98
  <%s>{%s}</%s>`,J,J,$,J,$))}function C$(_,J){var $=gU();$!==null?$.run(QY.bind(null,_,J)):QY(_,J)}function qY(_,J){var $=m(_)||"Component";zB[$]||(zB[$]=!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 f$(_,J){var $=gU();$!==null?$.run(qY.bind(null,_,J)):qY(_,J)}function UY(_){function J(i,r){if(_){var n=i.deletions;n===null?(i.deletions=[r],i.flags|=16):n.push(r)}}function $(i,r){if(!_)return null;for(;r!==null;)J(i,r),r=r.sibling;return null}function q(i){for(var r=new Map;i!==null;)i.key!==null?r.set(i.key,i):r.set(i.index,i),i=i.sibling;return r}function G(i,r){return i=X3(i,r),i.index=0,i.sibling=null,i}function X(i,r,n){if(i.index=n,!_)return i.flags|=1048576,r;if(n=i.alternate,n!==null)return n=n.index,n<r?(i.flags|=67108866,r):n;return i.flags|=67108866,r}function z(i){return _&&i.alternate===null&&(i.flags|=67108866),i}function B(i,r,n,M1){if(r===null||r.tag!==6)return r=vU(n,i.mode,M1),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=U0,r;return r=G(r,n),r.return=i,r._debugInfo=U0,r}function I(i,r,n,M1){var S1=n.type;if(S1===C7)return r=e(i,r,n.props.children,M1,n.key),w$(n,r,i),r;if(r!==null&&(r.elementType===S1||uH(r,n)||typeof S1==="object"&&S1!==null&&S1.$$typeof===v5&&J6(S1)===r.type))return r=G(r,n.props),r9(r,n),r.return=i,r._debugOwner=n._owner,r._debugInfo=U0,r;return r=L$(n,i.mode,M1),r9(r,n),r.return=i,r._debugInfo=U0,r}function f(i,r,n,M1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==n.containerInfo||r.stateNode.implementation!==n.implementation)return r=jU(n,i.mode,M1),r.return=i,r._debugInfo=U0,r;return r=G(r,n.children||[]),r.return=i,r._debugInfo=U0,r}function e(i,r,n,M1,S1){if(r===null||r.tag!==7)return r=e6(n,i.mode,M1,S1),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=U0,r;return r=G(r,n),r.return=i,r._debugInfo=U0,r}function J1(i,r,n){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=vU(""+r,i.mode,n),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=U0,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case x4:return n=L$(r,i.mode,n),r9(n,r),n.return=i,i=h2(r._debugInfo),n._debugInfo=U0,U0=i,n;case N7:return r=jU(r,i.mode,n),r.return=i,r._debugInfo=U0,r;case v5:var M1=h2(r._debugInfo);return r=J6(r),i=J1(i,r,n),U0=M1,i}if(O2(r)||E(r))return n=e6(r,i.mode,n,null),n.return=i,n._debugOwner=i,n._debugTask=i._debugTask,i=h2(r._debugInfo),n._debugInfo=U0,U0=i,n;if(typeof r.then==="function")return M1=h2(r._debugInfo),i=J1(i,P$(r),n),U0=M1,i;if(r.$$typeof===m4)return J1(i,T$(i,r),n);N$(i,r)}return typeof r==="function"&&C$(i,r),typeof r==="symbol"&&f$(i,r),null}function d(i,r,n,M1){var S1=r!==null?r.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1!==null?null:B(i,r,""+n,M1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case x4:return n.key===S1?(S1=h2(n._debugInfo),i=I(i,r,n,M1),U0=S1,i):null;case N7:return n.key===S1?f(i,r,n,M1):null;case v5:return S1=h2(n._debugInfo),n=J6(n),i=d(i,r,n,M1),U0=S1,i}if(O2(n)||E(n)){if(S1!==null)return null;return S1=h2(n._debugInfo),i=e(i,r,n,M1,null),U0=S1,i}if(typeof n.then==="function")return S1=h2(n._debugInfo),i=d(i,r,P$(n),M1),U0=S1,i;if(n.$$typeof===m4)return d(i,r,T$(i,n),M1);N$(i,n)}return typeof n==="function"&&C$(i,n),typeof n==="symbol"&&f$(i,n),null}function Z1(i,r,n,M1,S1){if(typeof M1==="string"&&M1!==""||typeof M1==="number"||typeof M1==="bigint")return i=i.get(n)||null,B(r,i,""+M1,S1);if(typeof M1==="object"&&M1!==null){switch(M1.$$typeof){case x4:return n=i.get(M1.key===null?n:M1.key)||null,i=h2(M1._debugInfo),r=I(r,n,M1,S1),U0=i,r;case N7:return i=i.get(M1.key===null?n:M1.key)||null,f(r,i,M1,S1);case v5:var o1=h2(M1._debugInfo);return M1=J6(M1),r=Z1(i,r,n,M1,S1),U0=o1,r}if(O2(M1)||E(M1))return n=i.get(n)||null,i=h2(M1._debugInfo),r=e(r,n,M1,S1,null),U0=i,r;if(typeof M1.then==="function")return o1=h2(M1._debugInfo),r=Z1(i,r,n,P$(M1),S1),U0=o1,r;if(M1.$$typeof===m4)return Z1(i,r,n,T$(r,M1),S1);N$(r,M1)}return typeof M1==="function"&&C$(r,M1),typeof M1==="symbol"&&f$(r,M1),null}function N1(i,r,n,M1){if(typeof n!=="object"||n===null)return M1;switch(n.$$typeof){case x4:case N7:T(i,r,n);var S1=n.key;if(typeof S1!=="string")break;if(M1===null){M1=new Set,M1.add(S1);break}if(!M1.has(S1)){M1.add(S1);break}z1(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.",S1)});break;case v5:n=J6(n),N1(i,r,n,M1)}return M1}function j1(i,r,n,M1){for(var S1=null,o1=null,g1=null,h1=r,$0=r=0,m0=null;h1!==null&&$0<n.length;$0++){h1.index>$0?(m0=h1,h1=null):m0=h1.sibling;var X2=d(i,h1,n[$0],M1);if(X2===null){h1===null&&(h1=m0);break}S1=N1(i,X2,n[$0],S1),_&&h1&&X2.alternate===null&&J(i,h1),r=X(X2,r,$0),g1===null?o1=X2:g1.sibling=X2,g1=X2,h1=m0}if($0===n.length)return $(i,h1),B0&&K3(i,$0),o1;if(h1===null){for(;$0<n.length;$0++)h1=J1(i,n[$0],M1),h1!==null&&(S1=N1(i,h1,n[$0],S1),r=X(h1,r,$0),g1===null?o1=h1:g1.sibling=h1,g1=h1);return B0&&K3(i,$0),o1}for(h1=q(h1);$0<n.length;$0++)m0=Z1(h1,i,$0,n[$0],M1),m0!==null&&(S1=N1(i,m0,n[$0],S1),_&&m0.alternate!==null&&h1.delete(m0.key===null?$0:m0.key),r=X(m0,r,$0),g1===null?o1=m0:g1.sibling=m0,g1=m0);return _&&h1.forEach(function(y3){return J(i,y3)}),B0&&K3(i,$0),o1}function E0(i,r,n,M1){if(n==null)throw Error("An iterable object provided no iterator.");for(var S1=null,o1=null,g1=r,h1=r=0,$0=null,m0=null,X2=n.next();g1!==null&&!X2.done;h1++,X2=n.next()){g1.index>h1?($0=g1,g1=null):$0=g1.sibling;var y3=d(i,g1,X2.value,M1);if(y3===null){g1===null&&(g1=$0);break}m0=N1(i,y3,X2.value,m0),_&&g1&&y3.alternate===null&&J(i,g1),r=X(y3,r,h1),o1===null?S1=y3:o1.sibling=y3,o1=y3,g1=$0}if(X2.done)return $(i,g1),B0&&K3(i,h1),S1;if(g1===null){for(;!X2.done;h1++,X2=n.next())g1=J1(i,X2.value,M1),g1!==null&&(m0=N1(i,g1,X2.value,m0),r=X(g1,r,h1),o1===null?S1=g1:o1.sibling=g1,o1=g1);return B0&&K3(i,h1),S1}for(g1=q(g1);!X2.done;h1++,X2=n.next())$0=Z1(g1,i,h1,X2.value,M1),$0!==null&&(m0=N1(i,$0,X2.value,m0),_&&$0.alternate!==null&&g1.delete($0.key===null?h1:$0.key),r=X($0,r,h1),o1===null?S1=$0:o1.sibling=$0,o1=$0);return _&&g1.forEach(function(GN){return J(i,GN)}),B0&&K3(i,h1),S1}function M0(i,r,n,M1){if(typeof n==="object"&&n!==null&&n.type===C7&&n.key===null&&(w$(n,null,i),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case x4:var S1=h2(n._debugInfo);_:{for(var o1=n.key;r!==null;){if(r.key===o1){if(o1=n.type,o1===C7){if(r.tag===7){$(i,r.sibling),M1=G(r,n.props.children),M1.return=i,M1._debugOwner=n._owner,M1._debugInfo=U0,w$(n,M1,i),i=M1;break _}}else if(r.elementType===o1||uH(r,n)||typeof o1==="object"&&o1!==null&&o1.$$typeof===v5&&J6(o1)===r.type){$(i,r.sibling),M1=G(r,n.props),r9(M1,n),M1.return=i,M1._debugOwner=n._owner,M1._debugInfo=U0,i=M1;break _}$(i,r);break}else J(i,r);r=r.sibling}n.type===C7?(M1=e6(n.props.children,i.mode,M1,n.key),M1.return=i,M1._debugOwner=i,M1._debugTask=i._debugTask,M1._debugInfo=U0,w$(n,M1,i),i=M1):(M1=L$(n,i.mode,M1),r9(M1,n),M1.return=i,M1._debugInfo=U0,i=M1)}return i=z(i),U0=S1,i;case N7:_:{S1=n;for(n=S1.key;r!==null;){if(r.key===n)if(r.tag===4&&r.stateNode.containerInfo===S1.containerInfo&&r.stateNode.implementation===S1.implementation){$(i,r.sibling),M1=G(r,S1.children||[]),M1.return=i,i=M1;break _}else{$(i,r);break}else J(i,r);r=r.sibling}M1=jU(S1,i.mode,M1),M1.return=i,i=M1}return z(i);case v5:return S1=h2(n._debugInfo),n=J6(n),i=M0(i,r,n,M1),U0=S1,i}if(O2(n))return S1=h2(n._debugInfo),i=j1(i,r,n,M1),U0=S1,i;if(E(n)){if(S1=h2(n._debugInfo),o1=E(n),typeof o1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var g1=o1.call(n);if(g1===n){if(i.tag!==0||Object.prototype.toString.call(i.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(g1)!=="[object Generator]")KB||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."),KB=!0}else n.entries!==o1||ZF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZF=!0);return i=E0(i,r,g1,M1),U0=S1,i}if(typeof n.then==="function")return S1=h2(n._debugInfo),i=M0(i,r,P$(n),M1),U0=S1,i;if(n.$$typeof===m4)return M0(i,r,T$(i,n),M1);N$(i,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1=""+n,r!==null&&r.tag===6?($(i,r.sibling),M1=G(r,S1),M1.return=i,i=M1):($(i,r),M1=vU(S1,i.mode,M1),M1.return=i,M1._debugOwner=i,M1._debugTask=i._debugTask,M1._debugInfo=U0,i=M1),z(i);return typeof n==="function"&&C$(i,n),typeof n==="symbol"&&f$(i,n),$(i,r)}return function(i,r,n,M1){var S1=U0;U0=null;try{c_=0;var o1=M0(i,r,n,M1);return d7=null,o1}catch(m0){if(m0===i7||m0===bQ)throw m0;var g1=R(29,m0,null,i.mode);g1.lanes=M1,g1.return=i;var h1=g1._debugInfo=U0;if(g1._debugOwner=i._debugOwner,g1._debugTask=i._debugTask,h1!=null){for(var $0=h1.length-1;0<=$0;$0--)if(typeof h1[$0].stack==="string"){g1._debugOwner=h1[$0],g1._debugTask=h1[$0].debugTask;break}}return g1}finally{U0=S1}}}function GY(_,J){var $=O2(_);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 $6(_){return{lane:_,tag:LB,payload:null,callback:null,next:null}}function Q6(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,XF===q&&!MB){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 f$(_,J){var $=gU();$!==null?$.run(qY.bind(null,_,J)):qY(_,J)}function UY(_){function J(i,r){if(_){var n=i.deletions;n===null?(i.deletions=[r],i.flags|=16):n.push(r)}}function $(i,r){if(!_)return null;for(;r!==null;)J(i,r),r=r.sibling;return null}function q(i){for(var r=new Map;i!==null;)i.key!==null?r.set(i.key,i):r.set(i.index,i),i=i.sibling;return r}function G(i,r){return i=H3(i,r),i.index=0,i.sibling=null,i}function X(i,r,n){if(i.index=n,!_)return i.flags|=1048576,r;if(n=i.alternate,n!==null)return n=n.index,n<r?(i.flags|=67108866,r):n;return i.flags|=67108866,r}function z(i){return _&&i.alternate===null&&(i.flags|=67108866),i}function B(i,r,n,M1){if(r===null||r.tag!==6)return r=jU(n,i.mode,M1),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=G0,r;return r=G(r,n),r.return=i,r._debugInfo=G0,r}function w(i,r,n,M1){var j1=n.type;if(j1===C7)return r=e(i,r,n.props.children,M1,n.key),w$(n,r,i),r;if(r!==null&&(r.elementType===j1||uH(r,n)||typeof j1==="object"&&j1!==null&&j1.$$typeof===f5&&Q6(j1)===r.type))return r=G(r,n.props),r9(r,n),r.return=i,r._debugOwner=n._owner,r._debugInfo=G0,r;return r=L$(n,i.mode,M1),r9(r,n),r.return=i,r._debugInfo=G0,r}function f(i,r,n,M1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==n.containerInfo||r.stateNode.implementation!==n.implementation)return r=vU(n,i.mode,M1),r.return=i,r._debugInfo=G0,r;return r=G(r,n.children||[]),r.return=i,r._debugInfo=G0,r}function e(i,r,n,M1,j1){if(r===null||r.tag!==7)return r=J8(n,i.mode,M1,j1),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=G0,r;return r=G(r,n),r.return=i,r._debugInfo=G0,r}function J1(i,r,n){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=jU(""+r,i.mode,n),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=G0,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case p4:return n=L$(r,i.mode,n),r9(n,r),n.return=i,i=x2(r._debugInfo),n._debugInfo=G0,G0=i,n;case N7:return r=vU(r,i.mode,n),r.return=i,r._debugInfo=G0,r;case f5:var M1=x2(r._debugInfo);return r=Q6(r),i=J1(i,r,n),G0=M1,i}if(w2(r)||E(r))return n=J8(r,i.mode,n,null),n.return=i,n._debugOwner=i,n._debugTask=i._debugTask,i=x2(r._debugInfo),n._debugInfo=G0,G0=i,n;if(typeof r.then==="function")return M1=x2(r._debugInfo),i=J1(i,P$(r),n),G0=M1,i;if(r.$$typeof===c4)return J1(i,T$(i,r),n);N$(i,r)}return typeof r==="function"&&C$(i,r),typeof r==="symbol"&&f$(i,r),null}function d(i,r,n,M1){var j1=r!==null?r.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return j1!==null?null:B(i,r,""+n,M1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case p4:return n.key===j1?(j1=x2(n._debugInfo),i=w(i,r,n,M1),G0=j1,i):null;case N7:return n.key===j1?f(i,r,n,M1):null;case f5:return j1=x2(n._debugInfo),n=Q6(n),i=d(i,r,n,M1),G0=j1,i}if(w2(n)||E(n)){if(j1!==null)return null;return j1=x2(n._debugInfo),i=e(i,r,n,M1,null),G0=j1,i}if(typeof n.then==="function")return j1=x2(n._debugInfo),i=d(i,r,P$(n),M1),G0=j1,i;if(n.$$typeof===c4)return d(i,r,T$(i,n),M1);N$(i,n)}return typeof n==="function"&&C$(i,n),typeof n==="symbol"&&f$(i,n),null}function Z1(i,r,n,M1,j1){if(typeof M1==="string"&&M1!==""||typeof M1==="number"||typeof M1==="bigint")return i=i.get(n)||null,B(r,i,""+M1,j1);if(typeof M1==="object"&&M1!==null){switch(M1.$$typeof){case p4:return n=i.get(M1.key===null?n:M1.key)||null,i=x2(M1._debugInfo),r=w(r,n,M1,j1),G0=i,r;case N7:return i=i.get(M1.key===null?n:M1.key)||null,f(r,i,M1,j1);case f5:var e1=x2(M1._debugInfo);return M1=Q6(M1),r=Z1(i,r,n,M1,j1),G0=e1,r}if(w2(M1)||E(M1))return n=i.get(n)||null,i=x2(M1._debugInfo),r=e(r,n,M1,j1,null),G0=i,r;if(typeof M1.then==="function")return e1=x2(M1._debugInfo),r=Z1(i,r,n,P$(M1),j1),G0=e1,r;if(M1.$$typeof===c4)return Z1(i,r,n,T$(r,M1),j1);N$(r,M1)}return typeof M1==="function"&&C$(r,M1),typeof M1==="symbol"&&f$(r,M1),null}function N1(i,r,n,M1){if(typeof n!=="object"||n===null)return M1;switch(n.$$typeof){case p4:case N7:T(i,r,n);var j1=n.key;if(typeof j1!=="string")break;if(M1===null){M1=new Set,M1.add(j1);break}if(!M1.has(j1)){M1.add(j1);break}W1(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 f5:n=Q6(n),N1(i,r,n,M1)}return M1}function V1(i,r,n,M1){for(var j1=null,e1=null,m1=null,x1=r,q0=r=0,g0=null;x1!==null&&q0<n.length;q0++){x1.index>q0?(g0=x1,x1=null):g0=x1.sibling;var H2=d(i,x1,n[q0],M1);if(H2===null){x1===null&&(x1=g0);break}j1=N1(i,H2,n[q0],j1),_&&x1&&H2.alternate===null&&J(i,x1),r=X(H2,r,q0),m1===null?e1=H2:m1.sibling=H2,m1=H2,x1=g0}if(q0===n.length)return $(i,x1),A0&&Y3(i,q0),e1;if(x1===null){for(;q0<n.length;q0++)x1=J1(i,n[q0],M1),x1!==null&&(j1=N1(i,x1,n[q0],j1),r=X(x1,r,q0),m1===null?e1=x1:m1.sibling=x1,m1=x1);return A0&&Y3(i,q0),e1}for(x1=q(x1);q0<n.length;q0++)g0=Z1(x1,i,q0,n[q0],M1),g0!==null&&(j1=N1(i,g0,n[q0],j1),_&&g0.alternate!==null&&x1.delete(g0.key===null?q0:g0.key),r=X(g0,r,q0),m1===null?e1=g0:m1.sibling=g0,m1=g0);return _&&x1.forEach(function(D3){return J(i,D3)}),A0&&Y3(i,q0),e1}function h0(i,r,n,M1){if(n==null)throw Error("An iterable object provided no iterator.");for(var j1=null,e1=null,m1=r,x1=r=0,q0=null,g0=null,H2=n.next();m1!==null&&!H2.done;x1++,H2=n.next()){m1.index>x1?(q0=m1,m1=null):q0=m1.sibling;var D3=d(i,m1,H2.value,M1);if(D3===null){m1===null&&(m1=q0);break}g0=N1(i,D3,H2.value,g0),_&&m1&&D3.alternate===null&&J(i,m1),r=X(D3,r,x1),e1===null?j1=D3:e1.sibling=D3,e1=D3,m1=q0}if(H2.done)return $(i,m1),A0&&Y3(i,x1),j1;if(m1===null){for(;!H2.done;x1++,H2=n.next())m1=J1(i,H2.value,M1),m1!==null&&(g0=N1(i,m1,H2.value,g0),r=X(m1,r,x1),e1===null?j1=m1:e1.sibling=m1,e1=m1);return A0&&Y3(i,x1),j1}for(m1=q(m1);!H2.done;x1++,H2=n.next())q0=Z1(m1,i,x1,H2.value,M1),q0!==null&&(g0=N1(i,q0,H2.value,g0),_&&q0.alternate!==null&&m1.delete(q0.key===null?x1:q0.key),r=X(q0,r,x1),e1===null?j1=q0:e1.sibling=q0,e1=q0);return _&&m1.forEach(function(GN){return J(i,GN)}),A0&&Y3(i,x1),j1}function T0(i,r,n,M1){if(typeof n==="object"&&n!==null&&n.type===C7&&n.key===null&&(w$(n,null,i),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case p4:var j1=x2(n._debugInfo);_:{for(var e1=n.key;r!==null;){if(r.key===e1){if(e1=n.type,e1===C7){if(r.tag===7){$(i,r.sibling),M1=G(r,n.props.children),M1.return=i,M1._debugOwner=n._owner,M1._debugInfo=G0,w$(n,M1,i),i=M1;break _}}else if(r.elementType===e1||uH(r,n)||typeof e1==="object"&&e1!==null&&e1.$$typeof===f5&&Q6(e1)===r.type){$(i,r.sibling),M1=G(r,n.props),r9(M1,n),M1.return=i,M1._debugOwner=n._owner,M1._debugInfo=G0,i=M1;break _}$(i,r);break}else J(i,r);r=r.sibling}n.type===C7?(M1=J8(n.props.children,i.mode,M1,n.key),M1.return=i,M1._debugOwner=i,M1._debugTask=i._debugTask,M1._debugInfo=G0,w$(n,M1,i),i=M1):(M1=L$(n,i.mode,M1),r9(M1,n),M1.return=i,M1._debugInfo=G0,i=M1)}return i=z(i),G0=j1,i;case N7:_:{j1=n;for(n=j1.key;r!==null;){if(r.key===n)if(r.tag===4&&r.stateNode.containerInfo===j1.containerInfo&&r.stateNode.implementation===j1.implementation){$(i,r.sibling),M1=G(r,j1.children||[]),M1.return=i,i=M1;break _}else{$(i,r);break}else J(i,r);r=r.sibling}M1=vU(j1,i.mode,M1),M1.return=i,i=M1}return z(i);case f5:return j1=x2(n._debugInfo),n=Q6(n),i=T0(i,r,n,M1),G0=j1,i}if(w2(n))return j1=x2(n._debugInfo),i=V1(i,r,n,M1),G0=j1,i;if(E(n)){if(j1=x2(n._debugInfo),e1=E(n),typeof e1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var m1=e1.call(n);if(m1===n){if(i.tag!==0||Object.prototype.toString.call(i.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(m1)!=="[object Generator]")KB||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."),KB=!0}else n.entries!==e1||ZF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZF=!0);return i=h0(i,r,m1,M1),G0=j1,i}if(typeof n.then==="function")return j1=x2(n._debugInfo),i=T0(i,r,P$(n),M1),G0=j1,i;if(n.$$typeof===c4)return T0(i,r,T$(i,n),M1);N$(i,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return j1=""+n,r!==null&&r.tag===6?($(i,r.sibling),M1=G(r,j1),M1.return=i,i=M1):($(i,r),M1=jU(j1,i.mode,M1),M1.return=i,M1._debugOwner=i,M1._debugTask=i._debugTask,M1._debugInfo=G0,i=M1),z(i);return typeof n==="function"&&C$(i,n),typeof n==="symbol"&&f$(i,n),$(i,r)}return function(i,r,n,M1){var j1=G0;G0=null;try{c_=0;var e1=T0(i,r,n,M1);return d7=null,e1}catch(g0){if(g0===i7||g0===bQ)throw g0;var m1=R(29,g0,null,i.mode);m1.lanes=M1,m1.return=i;var x1=m1._debugInfo=G0;if(m1._debugOwner=i._debugOwner,m1._debugTask=i._debugTask,x1!=null){for(var q0=x1.length-1;0<=q0;q0--)if(typeof x1[q0].stack==="string"){m1._debugOwner=x1[q0],m1._debugTask=x1[q0].debugTask;break}}return m1}finally{G0=j1}}}function GY(_,J){var $=w2(_);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 q6(_){return{lane:_,tag:LB,payload:null,callback:null,next:null}}function U6(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,XF===q&&!MB){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.
101
101
 
102
- Please update the following component: %s`,G),MB=!0}if((R0&w2)!==k2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=W$(_),DH(_,null,$),J;return z$(_,q,J,$),W$(_)}function a9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,x5(_,$)}}function S$(_,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 s9(){if(KF){var _=l7;if(_!==null)throw _}}function t9(_,J,$,q){KF=!1;var G=_.updateQueue;P6=!1,XF=G.shared;var{firstBaseUpdate:X,lastBaseUpdate:z}=G,B=G.shared.pending;if(B!==null){G.shared.pending=null;var I=B,f=I.next;I.next=null,z===null?X=f:z.next=f,z=I;var e=_.alternate;e!==null&&(e=e.updateQueue,B=e.lastBaseUpdate,B!==z&&(B===null?e.firstBaseUpdate=f:B.next=f,e.lastBaseUpdate=I))}if(X!==null){var J1=G.baseState;z=0,e=f=I=null,B=X;do{var d=B.lane&-536870913,Z1=d!==B.lane;if(Z1?(G0&d)===d:(q&d)===d){d!==0&&d===B8&&(KF=!0),e!==null&&(e=e.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});_:{d=_;var N1=B,j1=J,E0=$;switch(N1.tag){case BB:if(N1=N1.payload,typeof N1==="function"){p7=!0;var M0=N1.call(E0,J1,j1);if(d.mode&d2){_0(!0);try{N1.call(E0,J1,j1)}finally{_0(!1)}}p7=!1,J1=M0;break _}J1=N1;break _;case FF:d.flags=d.flags&-65537|128;case LB:if(M0=N1.payload,typeof M0==="function"){if(p7=!0,N1=M0.call(E0,J1,j1),d.mode&d2){_0(!0);try{M0.call(E0,J1,j1)}finally{_0(!1)}}p7=!1}else N1=M0;if(N1===null||N1===void 0)break _;J1=Y0({},J1,N1);break _;case AB:P6=!0}}d=B.callback,d!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[d]:Z1.push(d))}else Z1={lane:d,tag:B.tag,payload:B.payload,callback:B.callback,next:null},e===null?(f=e=Z1,I=J1):e=e.next=Z1,z|=d;if(B=B.next,B===null)if(B=G.shared.pending,B===null)break;else Z1=B,B=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);e===null&&(I=J1),G.baseState=I,G.firstBaseUpdate=f,G.lastBaseUpdate=e,X===null&&(G.shared.lanes=0),f6|=z,_.lanes=z,_.memoizedState=J1}XF=null}function ZY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function _I(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)ZY($[_],J)}function FY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)ZY($[_],J)}function XY(_,J){var $=t4;Q1(hQ,$,_),Q1(r7,J,_),t4=$|J.baseLanes}function lU(_){Q1(hQ,t4,_),Q1(r7,r7.current,_)}function iU(_){t4=hQ.current,U1(r7,_),U1(hQ,_)}function q6(_){var J=_.alternate;Q1(F2,F2.current&a7,_),Q1(k5,_,_),a5===null&&(J===null||r7.current!==null?a5=_:J.memoizedState!==null&&(a5=_))}function dU(_){Q1(F2,F2.current,_),Q1(k5,_,_),a5===null&&(a5=_)}function KY(_){_.tag===22?(Q1(F2,F2.current,_),Q1(k5,_,_),a5===null&&(a5=_)):U6(_)}function U6(_){Q1(F2,F2.current,_),Q1(k5,k5.current,_)}function C5(_){U1(k5,_),a5===_&&(a5=null),U1(F2,_)}function v$(_){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 H0(){var _=X1;t5===null?t5=[_]:t5.push(_)}function w1(){var _=X1;if(t5!==null&&(f3++,t5[f3]!==_)){var J=m(t1);if(!TB.has(J)&&(TB.add(J),t5!==null)){for(var $="",q=0;q<=f3;q++){var G=t5[q],X=q===f3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=X+`
102
+ Please update the following component: %s`,G),MB=!0}if((O0&N2)!==u2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=W$(_),DH(_,null,$),J;return z$(_,q,J,$),W$(_)}function a9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,E5(_,$)}}function S$(_,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 s9(){if(KF){var _=l7;if(_!==null)throw _}}function t9(_,J,$,q){KF=!1;var G=_.updateQueue;C6=!1,XF=G.shared;var{firstBaseUpdate:X,lastBaseUpdate:z}=G,B=G.shared.pending;if(B!==null){G.shared.pending=null;var w=B,f=w.next;w.next=null,z===null?X=f:z.next=f,z=w;var e=_.alternate;e!==null&&(e=e.updateQueue,B=e.lastBaseUpdate,B!==z&&(B===null?e.firstBaseUpdate=f:B.next=f,e.lastBaseUpdate=w))}if(X!==null){var J1=G.baseState;z=0,e=f=w=null,B=X;do{var d=B.lane&-536870913,Z1=d!==B.lane;if(Z1?(Z0&d)===d:(q&d)===d){d!==0&&d===M8&&(KF=!0),e!==null&&(e=e.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});_:{d=_;var N1=B,V1=J,h0=$;switch(N1.tag){case BB:if(N1=N1.payload,typeof N1==="function"){p7=!0;var T0=N1.call(h0,J1,V1);if(d.mode&r2){Q0(!0);try{N1.call(h0,J1,V1)}finally{Q0(!1)}}p7=!1,J1=T0;break _}J1=N1;break _;case FF:d.flags=d.flags&-65537|128;case LB:if(T0=N1.payload,typeof T0==="function"){if(p7=!0,N1=T0.call(h0,J1,V1),d.mode&r2){Q0(!0);try{T0.call(h0,J1,V1)}finally{Q0(!1)}}p7=!1}else N1=T0;if(N1===null||N1===void 0)break _;J1=Y0({},J1,N1);break _;case AB:C6=!0}}d=B.callback,d!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[d]:Z1.push(d))}else Z1={lane:d,tag:B.tag,payload:B.payload,callback:B.callback,next:null},e===null?(f=e=Z1,w=J1):e=e.next=Z1,z|=d;if(B=B.next,B===null)if(B=G.shared.pending,B===null)break;else Z1=B,B=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);e===null&&(w=J1),G.baseState=w,G.firstBaseUpdate=f,G.lastBaseUpdate=e,X===null&&(G.shared.lanes=0),j6|=z,_.lanes=z,_.memoizedState=J1}XF=null}function ZY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function _I(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)ZY($[_],J)}function FY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)ZY($[_],J)}function XY(_,J){var $=e4;Q1(hQ,$,_),Q1(r7,J,_),e4=$|J.baseLanes}function lU(_){Q1(hQ,e4,_),Q1(r7,r7.current,_)}function iU(_){e4=hQ.current,U1(r7,_),U1(hQ,_)}function G6(_){var J=_.alternate;Q1(K2,K2.current&a7,_),Q1(V5,_,_),s5===null&&(J===null||r7.current!==null?s5=_:J.memoizedState!==null&&(s5=_))}function dU(_){Q1(K2,K2.current,_),Q1(V5,_,_),s5===null&&(s5=_)}function KY(_){_.tag===22?(Q1(K2,K2.current,_),Q1(V5,_,_),s5===null&&(s5=_)):Z6(_)}function Z6(_){Q1(K2,K2.current,_),Q1(V5,V5.current,_)}function P5(_){U1(V5,_),s5===_&&(s5=null),U1(K2,_)}function j$(_){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 H0(){var _=X1;o5===null?o5=[_]:o5.push(_)}function I1(){var _=X1;if(o5!==null&&(j3++,o5[j3]!==_)){var J=m(n1);if(!TB.has(J)&&(TB.add(J),o5!==null)){for(var $="",q=0;q<=j3;q++){var G=o5[q],X=q===j3?_: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 Y7(_){_===void 0||_===null||O2(_)||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 _=m(t1);OB.has(_)||(OB.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function $2(){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 Y7(_){_===void 0||_===null||w2(_)||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 v$(){var _=m(n1);OB.has(_)||(OB.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function q2(){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
112
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function rU(_,J){if(d_)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`,X1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!$5(_[$],J[$]))return!1;return!0}function aU(_,J,$,q,G,X){if(N3=X,t1=J,t5=_!==null?_._debugHookTypes:null,f3=-1,d_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=m(t1),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:t5!==null?IB:YF,O8=X=(J.mode&d2)!==a1;var z=qF($,q,G);if(O8=!1,t7&&(z=sU(J,$,q,G)),X){_0(!0);try{z=sU(J,$,q,G)}finally{_0(!1)}}return HY(_,J),z}function HY(_,J){J._debugHookTypes=t5,J.dependencies===null?C3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:C3}):J.dependencies._debugThenableState=C3,Y1.H=r_;var $=D0!==null&&D0.next!==null;if(N3=0,t5=X1=z2=D0=t1=null,f3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),mQ=!1,i_=0,C3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||W2||(_=_.dependencies,_!==null&&M$(_)&&(W2=!0)),p_?(p_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",RB.has(J)||HF.has(J)||(RB.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){t1=_;var G=0;do{if(t7&&(C3=null),i_=0,t7=!1,G>=hP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,d_=!1,z2=D0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}f3=-1,Y1.H=wB,X=qF(J,$,q)}while(t7);return X}function JI(){var _=Y1.H,J=_.useState()[0];return J=typeof J.then==="function"?o9(J):J,_=_.useState()[0],(D0!==null?D0.memoizedState:null)!==_&&(t1.flags|=1024),J}function tU(){var _=gQ!==0;return gQ=0,_}function oU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&K4)!==a1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function nU(_){if(mQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}mQ=!1}N3=0,t5=z2=D0=t1=null,f3=-1,X1=null,t7=!1,i_=gQ=0,C3=null}function n2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return z2===null?t1.memoizedState=z2=_:z2=z2.next=_,z2}function S0(){if(D0===null){var _=t1.alternate;_=_!==null?_.memoizedState:null}else _=D0.next;var J=z2===null?t1.memoizedState:z2.next;if(J!==null)z2=J,D0=_;else{if(_===null){if(t1.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.")}D0=_,_={memoizedState:D0.memoizedState,baseState:D0.baseState,baseQueue:D0.baseQueue,queue:D0.queue,next:null},z2===null?t1.memoizedState=z2=_:z2=z2.next=_}return z2}function V$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function o9(_){var J=i_;return i_+=1,C3===null&&(C3=oH()),_=eH(C3,_,J),J=t1,(z2===null?J.memoizedState:z2.next)===null&&(J=J.alternate,Y1.H=J!==null&&J.memoizedState!==null?zF:YF),_}function G6(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return o9(_);if(_.$$typeof===m4)return p0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function q8(_){var J=null,$=t1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=t1.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$(),t1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||d_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=Bw;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 G4(_,J){return typeof J==="function"?J(_):J}function eU(_,J,$){var q=n2();if($!==void 0){var G=$(J);if(O8){_0(!0);try{$(J)}finally{_0(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=GI.bind(null,t1,_),[q.memoizedState,_]}function z7(_){var J=S0();return _G(J,D0,_)}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 B=z=null,I=null,f=J,e=!1;do{var J1=f.lane&-536870913;if(J1!==f.lane?(G0&J1)===J1:(N3&J1)===J1){var d=f.revertLane;if(d===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),J1===B8&&(e=!0);else if((N3&d)===d){f=f.next,d===B8&&(e=!0);continue}else J1={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(B=I=J1,z=X):I=I.next=J1,t1.lanes|=d,f6|=d;J1=f.action,O8&&$(X,J1),X=f.hasEagerState?f.eagerState:$(X,J1)}else d={lane:J1,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(B=I=d,z=X):I=I.next=d,t1.lanes|=J1,f6|=J1;f=f.next}while(f!==null&&f!==J);if(I===null?z=X:I.next=B,!$5(X,_.memoizedState)&&(W2=!0,e&&($=l7,$!==null)))throw $;_.memoizedState=X,_.baseState=z,_.baseQueue=I,q.lastRenderedState=X}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function n9(_){var J=S0(),$=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);$5(X,J.memoizedState)||(W2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function JG(_,J,$){var q=t1,G=n2();if(B0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();s7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),s7=!0)}else{if(X=J(),s7||($=J(),$5(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s7=!0)),u0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(G0&127)!==0||YY(q,J,X)}return G.memoizedState=X,$={value:X,getSnapshot:J},G.queue=$,u$(WY.bind(null,q,$,_),[_]),q.flags|=2048,L7(s5|U5,{destroy:void 0},zY.bind(null,q,$,X,J),null),X}function y$(_,J,$){var q=t1,G=S0(),X=B0;if(X){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!s7){var z=J();$5($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s7=!0)}if(z=!$5((D0||G).memoizedState,$))G.memoizedState=$,W2=!0;G=G.queue;var B=WY.bind(null,q,G,_);if(Y5(2048,U5,B,[_]),G.getSnapshot!==J||z||z2!==null&&z2.memoizedState.tag&s5){if(q.flags|=2048,L7(s5|U5,{destroy:void 0},zY.bind(null,q,G,$,J),null),u0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(N3&127)!==0||YY(q,J,$)}return $}function YY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=t1.updateQueue,J===null?(J=V$(),t1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function zY(_,J,$,q){J.value=$,J.getSnapshot=q,LY(J)&&BY(_)}function WY(_,J,$){return $(function(){LY(J)&&(C4(2,"updateSyncExternalStore()",_),BY(_))})}function LY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!$5(_,$)}catch(q){return!0}}function BY(_){var J=l2(_,2);J!==null&&o0(J,_,2)}function $G(_){var J=n2();if(typeof _==="function"){var $=_;if(_=$(),O8){_0(!0);try{$()}finally{_0(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:G4,lastRenderedState:_},J}function QG(_){_=$G(_);var J=_.queue,$=uY.bind(null,t1,J);return J.dispatch=$,[_.memoizedState,$]}function qG(_){var J=n2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=MG.bind(null,t1,!0,$),$.dispatch=J,[_,J]}function AY(_,J){var $=S0();return MY($,D0,_,J)}function MY(_,J,$,q){return _.baseState=$,_G(_,D0,typeof q==="function"?q:G4)}function TY(_,J){var $=S0();if(D0!==null)return MY($,D0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function $I(_,J,$,q,G){if(g$(_))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,RY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function RY(_,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 B=$(G,q),I=Y1.S;I!==null&&I(z,B),OY(_,J,B)}catch(f){UG(_,J,f)}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),OY(_,J,z)}catch(f){UG(_,J,f)}}function OY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(Y1.asyncTransitions++,$.then(m$,m$),$.then(function(q){IY(_,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.")):IY(_,J,$)}function IY(_,J,$){J.status="fulfilled",J.value=$,wY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,RY(_,$)))}function UG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,wY(J),J=J.next;while(J!==q)}_.action=null}function wY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function PY(_,J){return J}function W7(_,J){if(B0){var $=u0.formState;if($!==null){_:{var q=t1;if(B0){if(x0){J:{var G=x0;for(var X=d5;G.nodeType!==8;){if(!X){G=null;break J}if(G=S5(G.nextSibling),G===null){G=null;break J}}X=G.data,G=X===bF||X===FA?G:null}if(G){x0=S5(G.nextSibling),q=G.data===bF;break _}}e3(q)}q=!1}q&&(J=$[0])}}return $=n2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PY,lastRenderedState:J},$.queue=q,$=uY.bind(null,t1,q),q.dispatch=$,q=$G(!1),X=MG.bind(null,t1,!1,q.queue),q=n2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=$I.bind(null,t1,G,X,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function k$(_){var J=S0();return NY(J,D0,_)}function NY(_,J,$){if(J=_G(_,J,PY)[0],_=z7(G4)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=o9(J)}catch(z){if(z===i7)throw bQ;throw z}else q=J;J=S0();var G=J.queue,X=G.dispatch;return $!==J.memoizedState&&(t1.flags|=2048,L7(s5|U5,{destroy:void 0},QI.bind(null,G,$),null)),[q,X,_]}function QI(_,J){_.action=J}function D$(_){var J=S0(),$=D0;if($!==null)return NY(J,$,_);S0(),J=J.memoizedState,$=S0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function L7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=t1.updateQueue,J===null&&(J=V$(),t1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function GG(_){var J=n2();return _={current:_},J.memoizedState=_}function U8(_,J,$,q){var G=n2();t1.flags|=_,G.memoizedState=L7(s5|J,{destroy:void 0},$,q===void 0?null:q)}function Y5(_,J,$,q){var G=S0();q=q===void 0?null:q;var X=G.memoizedState.inst;D0!==null&&q!==null&&rU(q,D0.memoizedState.deps)?G.memoizedState=L7(J,X,$,q):(t1.flags|=_,G.memoizedState=L7(s5|J,X,$,q))}function u$(_,J){(t1.mode&K4)!==a1?U8(276826112,U5,_,J):U8(8390656,U5,_,J)}function qI(_){t1.flags|=4;var J=t1.updateQueue;if(J===null)J=V$(),t1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function ZG(_){var J=n2(),$={impl:_};return J.memoizedState=$,function(){if((R0&w2)!==k2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function b$(_){var J=S0().memoizedState;return qI({ref:J,nextImpl:_}),function(){if((R0&w2)!==k2)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(t1.mode&K4)!==a1&&($|=134217728),U8($,D5,_,J)}function CY(_,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;(t1.mode&K4)!==a1&&(q|=134217728),U8(q,D5,CY.bind(null,J,_),$)}function E$(_,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,Y5(4,D5,CY.bind(null,J,_),$)}function KG(_,J){return n2().memoizedState=[_,J===void 0?null:J],_}function h$(_,J){var $=S0();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 $=n2();J=J===void 0?null:J;var q=_();if(O8){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function x$(_,J){var $=S0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];if(q=_(),O8){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function YG(_,J){var $=n2();return zG($,_,J)}function fY(_,J){var $=S0();return vY($,D0.memoizedState,_,J)}function SY(_,J){var $=S0();return D0===null?zG($,_,J):vY($,D0.memoizedState,_,J)}function zG(_,J,$){if($===void 0||(N3&1073741824)!==0&&(G0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=jz(),t1.lanes|=_,f6|=_,$}function vY(_,J,$,q){if($5($,J))return $;if(r7.current!==null)return _=zG(_,$,q),$5(_,J)||(W2=!0),_;if((N3&42)===0||(N3&1073741824)!==0&&(G0&261930)===0)return W2=!0,_.memoizedState=$;return _=jz(),t1.lanes|=_,f6|=_,J}function m$(){Y1.asyncTransitions--}function jY(_,J,$,q,G){var X=C0.p;C0.p=X!==0&&X<X4?X:X4;var z=Y1.T,B={};B._updatedFibers=new Set,Y1.T=B,MG(_,!1,J,$);try{var I=G(),f=Y1.S;if(f!==null&&f(B,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){Y1.asyncTransitions++,I.then(m$,m$);var e=eO(I,q);e9(_,J,e,f5(_))}else e9(_,J,q,f5(_))}catch(J1){e9(_,J,{then:function(){},status:"rejected",reason:J1},f5(_))}finally{C0.p=X,z!==null&&B.types!==null&&(z.types!==null&&z.types!==B.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=B.types),Y1.T=z,z===null&&B._updatedFibers&&(_=B._updatedFibers.size,B._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;oO(_),jY(_,G,J,y8,$===null?O:function(){return yY(_),$(q)})}function VY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:y8,baseState:y8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:G4,lastRenderedState:y8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:G4,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function yY(_){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),e9(_,J.next.queue,{},f5(_))}function LG(){var _=$G(!1);return _=jY.bind(null,t1,_.queue,!0,!1),n2().memoizedState=_,[!1,_]}function kY(){var _=z7(G4)[0],J=S0().memoizedState;return[typeof _==="boolean"?_:o9(_),J]}function DY(){var _=n9(G4)[0],J=S0().memoizedState;return[typeof _==="boolean"?_:o9(_),J]}function G8(){return p0(FJ)}function BG(){var _=n2(),J=u0.identifierPrefix;if(B0){var $=R3,q=T3;$=(q&~(1<<32-e2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=gQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=EP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function AG(){return n2().memoizedState=UI.bind(null,t1)}function UI(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=f5($),G=$6(q),X=Q6($,G,q);X!==null&&(C4(q,"refresh()",_),o0(X,$,q),a9(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 GI(_,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=f5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};g$(_)?bY(J,G):(G=NU(_,J,G,q),G!==null&&(C4(q,"dispatch()",_),o0(G,_,q),EY(G,J,q)))}function uY(_,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=f5(_),e9(_,J,$,q)&&C4(q,"setState()",_)}function e9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(g$(_))bY(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=Y4;try{var B=J.lastRenderedState,I=X(B,$);if(G.hasEagerState=!0,G.eagerState=I,$5(I,B))return z$(_,J,G,0),u0===null&&Y$(),!1}catch(f){}finally{Y1.H=z}}if($=NU(_,J,G,q),$!==null)return o0($,_,q),EY($,J,q),!0}return!1}function MG(_,J,$,q){if(Y1.T===null&&B8===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},g$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=NU(_,$,q,2),J!==null&&(C4(2,"setOptimistic()",_),o0(J,_,2))}function g$(_){var J=_.alternate;return _===t1||J!==null&&J===t1}function bY(_,J){t7=mQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function EY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,x5(_,$)}}function TG(_){if(_!==null&&typeof _!=="function"){var J=String(_);DB.has(J)||(DB.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&d2){_0(!0);try{X=$(q,G)}finally{_0(!1)}}X===void 0&&(J=u(J)||"Component",jB.has(J)||(jB.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:Y0({},G,X),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function hY(_,J,$,q,G,X,z){var B=_.stateNode;if(typeof B.shouldComponentUpdate==="function"){if($=B.shouldComponentUpdate(q,X,z),_.mode&d2){_0(!0);try{$=B.shouldComponentUpdate(q,X,z)}finally{_0(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",u(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!g9($,q)||!g9(G,X):!0}function xY(_,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",NB.has(_)||(NB.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 Z8(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=Y0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function mY(_){iZ(_),console.warn(`%s
115
+ Incoming: %s`,X1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!Q5(_[$],J[$]))return!1;return!0}function aU(_,J,$,q,G,X){if(f3=X,n1=J,o5=_!==null?_._debugHookTypes:null,j3=-1,d_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=m(n1),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,z1.H=_!==null&&_.memoizedState!==null?zF:o5!==null?IB:YF,w8=X=(J.mode&r2)!==s1;var z=qF($,q,G);if(w8=!1,t7&&(z=sU(J,$,q,G)),X){Q0(!0);try{z=sU(J,$,q,G)}finally{Q0(!1)}}return HY(_,J),z}function HY(_,J){J._debugHookTypes=o5,J.dependencies===null?S3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:S3}):J.dependencies._debugThenableState=S3,z1.H=r_;var $=u0!==null&&u0.next!==null;if(f3=0,o5=X1=W2=u0=n1=null,j3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),mQ=!1,i_=0,S3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||L2||(_=_.dependencies,_!==null&&M$(_)&&(L2=!0)),p_?(p_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",RB.has(J)||HF.has(J)||(RB.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){n1=_;var G=0;do{if(t7&&(S3=null),i_=0,t7=!1,G>=hP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,d_=!1,W2=u0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}j3=-1,z1.H=wB,X=qF(J,$,q)}while(t7);return X}function JI(){var _=z1.H,J=_.useState()[0];return J=typeof J.then==="function"?o9(J):J,_=_.useState()[0],(u0!==null?u0.memoizedState:null)!==_&&(n1.flags|=1024),J}function tU(){var _=gQ!==0;return gQ=0,_}function oU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&Y4)!==s1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function nU(_){if(mQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}mQ=!1}f3=0,o5=W2=u0=n1=null,j3=-1,X1=null,t7=!1,i_=gQ=0,S3=null}function e2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return W2===null?n1.memoizedState=W2=_:W2=W2.next=_,W2}function v0(){if(u0===null){var _=n1.alternate;_=_!==null?_.memoizedState:null}else _=u0.next;var J=W2===null?n1.memoizedState:W2.next;if(J!==null)W2=J,u0=_;else{if(_===null){if(n1.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.")}u0=_,_={memoizedState:u0.memoizedState,baseState:u0.baseState,baseQueue:u0.baseQueue,queue:u0.queue,next:null},W2===null?n1.memoizedState=W2=_:W2=W2.next=_}return W2}function V$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function o9(_){var J=i_;return i_+=1,S3===null&&(S3=oH()),_=eH(S3,_,J),J=n1,(W2===null?J.memoizedState:W2.next)===null&&(J=J.alternate,z1.H=J!==null&&J.memoizedState!==null?zF:YF),_}function F6(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return o9(_);if(_.$$typeof===c4)return c0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function G8(_){var J=null,$=n1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=n1.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$(),n1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||d_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=Bw;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 F4(_,J){return typeof J==="function"?J(_):J}function eU(_,J,$){var q=e2();if($!==void 0){var G=$(J);if(w8){Q0(!0);try{$(J)}finally{Q0(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=GI.bind(null,n1,_),[q.memoizedState,_]}function z7(_){var J=v0();return _G(J,u0,_)}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 B=z=null,w=null,f=J,e=!1;do{var J1=f.lane&-536870913;if(J1!==f.lane?(Z0&J1)===J1:(f3&J1)===J1){var d=f.revertLane;if(d===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),J1===M8&&(e=!0);else if((f3&d)===d){f=f.next,d===M8&&(e=!0);continue}else J1={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},w===null?(B=w=J1,z=X):w=w.next=J1,n1.lanes|=d,j6|=d;J1=f.action,w8&&$(X,J1),X=f.hasEagerState?f.eagerState:$(X,J1)}else d={lane:J1,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},w===null?(B=w=d,z=X):w=w.next=d,n1.lanes|=J1,j6|=J1;f=f.next}while(f!==null&&f!==J);if(w===null?z=X:w.next=B,!Q5(X,_.memoizedState)&&(L2=!0,e&&($=l7,$!==null)))throw $;_.memoizedState=X,_.baseState=z,_.baseQueue=w,q.lastRenderedState=X}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function n9(_){var J=v0(),$=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);Q5(X,J.memoizedState)||(L2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function JG(_,J,$){var q=n1,G=e2();if(A0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();s7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),s7=!0)}else{if(X=J(),s7||($=J(),Q5(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s7=!0)),b0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Z0&127)!==0||YY(q,J,X)}return G.memoizedState=X,$={value:X,getSnapshot:J},G.queue=$,u$(WY.bind(null,q,$,_),[_]),q.flags|=2048,L7(t5|G5,{destroy:void 0},zY.bind(null,q,$,X,J),null),X}function y$(_,J,$){var q=n1,G=v0(),X=A0;if(X){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!s7){var z=J();Q5($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s7=!0)}if(z=!Q5((u0||G).memoizedState,$))G.memoizedState=$,L2=!0;G=G.queue;var B=WY.bind(null,q,G,_);if(Y5(2048,G5,B,[_]),G.getSnapshot!==J||z||W2!==null&&W2.memoizedState.tag&t5){if(q.flags|=2048,L7(t5|G5,{destroy:void 0},zY.bind(null,q,G,$,J),null),b0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(f3&127)!==0||YY(q,J,$)}return $}function YY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=n1.updateQueue,J===null?(J=V$(),n1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function zY(_,J,$,q){J.value=$,J.getSnapshot=q,LY(J)&&BY(_)}function WY(_,J,$){return $(function(){LY(J)&&(j4(2,"updateSyncExternalStore()",_),BY(_))})}function LY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!Q5(_,$)}catch(q){return!0}}function BY(_){var J=i2(_,2);J!==null&&e0(J,_,2)}function $G(_){var J=e2();if(typeof _==="function"){var $=_;if(_=$(),w8){Q0(!0);try{$()}finally{Q0(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:F4,lastRenderedState:_},J}function QG(_){_=$G(_);var J=_.queue,$=uY.bind(null,n1,J);return J.dispatch=$,[_.memoizedState,$]}function qG(_){var J=e2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=MG.bind(null,n1,!0,$),$.dispatch=J,[_,J]}function AY(_,J){var $=v0();return MY($,u0,_,J)}function MY(_,J,$,q){return _.baseState=$,_G(_,u0,typeof q==="function"?q:F4)}function TY(_,J){var $=v0();if(u0!==null)return MY($,u0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function $I(_,J,$,q,G){if(g$(_))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)}};z1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,RY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function RY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var X=z1.T,z={};z._updatedFibers=new Set,z1.T=z;try{var B=$(G,q),w=z1.S;w!==null&&w(z,B),OY(_,J,B)}catch(f){UG(_,J,f)}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),z1.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),OY(_,J,z)}catch(f){UG(_,J,f)}}function OY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(z1.asyncTransitions++,$.then(m$,m$),$.then(function(q){IY(_,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.")):IY(_,J,$)}function IY(_,J,$){J.status="fulfilled",J.value=$,wY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,RY(_,$)))}function UG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,wY(J),J=J.next;while(J!==q)}_.action=null}function wY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function PY(_,J){return J}function W7(_,J){if(A0){var $=b0.formState;if($!==null){_:{var q=n1;if(A0){if(m0){J:{var G=m0;for(var X=r5;G.nodeType!==8;){if(!X){G=null;break J}if(G=C5(G.nextSibling),G===null){G=null;break J}}X=G.data,G=X===bF||X===FA?G:null}if(G){m0=C5(G.nextSibling),q=G.data===bF;break _}}J6(q)}q=!1}q&&(J=$[0])}}return $=e2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PY,lastRenderedState:J},$.queue=q,$=uY.bind(null,n1,q),q.dispatch=$,q=$G(!1),X=MG.bind(null,n1,!1,q.queue),q=e2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=$I.bind(null,n1,G,X,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function k$(_){var J=v0();return NY(J,u0,_)}function NY(_,J,$){if(J=_G(_,J,PY)[0],_=z7(F4)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=o9(J)}catch(z){if(z===i7)throw bQ;throw z}else q=J;J=v0();var G=J.queue,X=G.dispatch;return $!==J.memoizedState&&(n1.flags|=2048,L7(t5|G5,{destroy:void 0},QI.bind(null,G,$),null)),[q,X,_]}function QI(_,J){_.action=J}function D$(_){var J=v0(),$=u0;if($!==null)return NY(J,$,_);v0(),J=J.memoizedState,$=v0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function L7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=n1.updateQueue,J===null&&(J=V$(),n1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function GG(_){var J=e2();return _={current:_},J.memoizedState=_}function Z8(_,J,$,q){var G=e2();n1.flags|=_,G.memoizedState=L7(t5|J,{destroy:void 0},$,q===void 0?null:q)}function Y5(_,J,$,q){var G=v0();q=q===void 0?null:q;var X=G.memoizedState.inst;u0!==null&&q!==null&&rU(q,u0.memoizedState.deps)?G.memoizedState=L7(J,X,$,q):(n1.flags|=_,G.memoizedState=L7(t5|J,X,$,q))}function u$(_,J){(n1.mode&Y4)!==s1?Z8(276826112,G5,_,J):Z8(8390656,G5,_,J)}function qI(_){n1.flags|=4;var J=n1.updateQueue;if(J===null)J=V$(),n1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function ZG(_){var J=e2(),$={impl:_};return J.memoizedState=$,function(){if((O0&N2)!==u2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function b$(_){var J=v0().memoizedState;return qI({ref:J,nextImpl:_}),function(){if((O0&N2)!==u2)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(n1.mode&Y4)!==s1&&($|=134217728),Z8($,y5,_,J)}function CY(_,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;(n1.mode&Y4)!==s1&&(q|=134217728),Z8(q,y5,CY.bind(null,J,_),$)}function E$(_,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,Y5(4,y5,CY.bind(null,J,_),$)}function KG(_,J){return e2().memoizedState=[_,J===void 0?null:J],_}function h$(_,J){var $=v0();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 $=e2();J=J===void 0?null:J;var q=_();if(w8){Q0(!0);try{_()}finally{Q0(!1)}}return $.memoizedState=[q,J],q}function x$(_,J){var $=v0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];if(q=_(),w8){Q0(!0);try{_()}finally{Q0(!1)}}return $.memoizedState=[q,J],q}function YG(_,J){var $=e2();return zG($,_,J)}function fY(_,J){var $=v0();return jY($,u0.memoizedState,_,J)}function SY(_,J){var $=v0();return u0===null?zG($,_,J):jY($,u0.memoizedState,_,J)}function zG(_,J,$){if($===void 0||(f3&1073741824)!==0&&(Z0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=vz(),n1.lanes|=_,j6|=_,$}function jY(_,J,$,q){if(Q5($,J))return $;if(r7.current!==null)return _=zG(_,$,q),Q5(_,J)||(L2=!0),_;if((f3&42)===0||(f3&1073741824)!==0&&(Z0&261930)===0)return L2=!0,_.memoizedState=$;return _=vz(),n1.lanes|=_,j6|=_,J}function m$(){z1.asyncTransitions--}function vY(_,J,$,q,G){var X=f0.p;f0.p=X!==0&&X<H4?X:H4;var z=z1.T,B={};B._updatedFibers=new Set,z1.T=B,MG(_,!1,J,$);try{var w=G(),f=z1.S;if(f!==null&&f(B,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){z1.asyncTransitions++,w.then(m$,m$);var e=eO(w,q);e9(_,J,e,N5(_))}else e9(_,J,q,N5(_))}catch(J1){e9(_,J,{then:function(){},status:"rejected",reason:J1},N5(_))}finally{f0.p=X,z!==null&&B.types!==null&&(z.types!==null&&z.types!==B.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=B.types),z1.T=z,z===null&&B._updatedFibers&&(_=B._updatedFibers.size,B._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;oO(_),vY(_,G,J,D8,$===null?O:function(){return yY(_),$(q)})}function VY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:D8,baseState:D8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:F4,lastRenderedState:D8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:F4,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function yY(_){z1.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),e9(_,J.next.queue,{},N5(_))}function LG(){var _=$G(!1);return _=vY.bind(null,n1,_.queue,!0,!1),e2().memoizedState=_,[!1,_]}function kY(){var _=z7(F4)[0],J=v0().memoizedState;return[typeof _==="boolean"?_:o9(_),J]}function DY(){var _=n9(F4)[0],J=v0().memoizedState;return[typeof _==="boolean"?_:o9(_),J]}function F8(){return c0(FJ)}function BG(){var _=e2(),J=b0.identifierPrefix;if(A0){var $=I3,q=O3;$=(q&~(1<<32-_5(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=gQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=EP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function AG(){return e2().memoizedState=UI.bind(null,n1)}function UI(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=N5($),G=q6(q),X=U6($,G,q);X!==null&&(j4(q,"refresh()",_),e0(X,$,q),a9(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 GI(_,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=N5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};g$(_)?bY(J,G):(G=NU(_,J,G,q),G!==null&&(j4(q,"dispatch()",_),e0(G,_,q),EY(G,J,q)))}function uY(_,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=N5(_),e9(_,J,$,q)&&j4(q,"setState()",_)}function e9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(g$(_))bY(J,G);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var z=z1.H;z1.H=W4;try{var B=J.lastRenderedState,w=X(B,$);if(G.hasEagerState=!0,G.eagerState=w,Q5(w,B))return z$(_,J,G,0),b0===null&&Y$(),!1}catch(f){}finally{z1.H=z}}if($=NU(_,J,G,q),$!==null)return e0($,_,q),EY($,J,q),!0}return!1}function MG(_,J,$,q){if(z1.T===null&&M8===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},g$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=NU(_,$,q,2),J!==null&&(j4(2,"setOptimistic()",_),e0(J,_,2))}function g$(_){var J=_.alternate;return _===n1||J!==null&&J===n1}function bY(_,J){t7=mQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function EY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,E5(_,$)}}function TG(_){if(_!==null&&typeof _!=="function"){var J=String(_);DB.has(J)||(DB.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&r2){Q0(!0);try{X=$(q,G)}finally{Q0(!1)}}X===void 0&&(J=u(J)||"Component",vB.has(J)||(vB.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:Y0({},G,X),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function hY(_,J,$,q,G,X,z){var B=_.stateNode;if(typeof B.shouldComponentUpdate==="function"){if($=B.shouldComponentUpdate(q,X,z),_.mode&r2){Q0(!0);try{$=B.shouldComponentUpdate(q,X,z)}finally{Q0(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",u(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!g9($,q)||!g9(G,X):!0}function xY(_,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",NB.has(_)||(NB.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 X8(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=Y0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function mY(_){iZ(_),console.warn(`%s
116
116
 
117
117
  %s
118
118
  `,o7?"An error occurred in the <"+o7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
@@ -126,18 +126,18 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
126
126
  %s
127
127
 
128
128
  %s
129
- `,_,J,$)}function pY(_){iZ(_)}function p$(_,J){try{o7=J.source?m(J.source):null,LF=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 cY(_,J,$){try{o7=$.source?m($.source):null,LF=m(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 $=$6($),$.tag=FF,$.payload={element:null},$.callback=function(){z1(J.source,p$,_,J)},$}function IG(_){return _=$6(_),_.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(){bH($),z1(q.source,cY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){bH($),z1(q.source,cY,J,$,q),typeof G!=="function"&&(v6===null?v6=new Set([this]):v6.add(this)),kP(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 ZI(_,J,$,q,G){if($.flags|=32768,c4&&Z_(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&H7(J,$,G,!0),B0&&(d4=!0),$=k5.current,$!==null){switch($.tag){case 31:case 13:return a5===null?o$():$.alternate===null&&a0===v3&&(a0=lQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===EQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),lG(_,q,G)),!1;case 22:return $.flags|=65536,q===EQ?$.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),o$(),!1}if(B0)return d4=!0,J=k5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==oZ&&c9(w5(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&&c9(w5(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=w5(q,$),G=OG(_.stateNode,q,G),S$(_,G),a0!==N6&&(a0=I8)),!1;var X=w5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(e_===null?e_=[X]:e_.push(X),a0!==N6&&(a0=I8),J===null)return!0;q=w5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=OG($.stateNode,q,_),S$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(v6===null||!v6.has(X))))return $.flags|=65536,G&=-G,$.lanes|=G,G=IG(G),wG(G,_,$,q),S$($,G),!1}$=$.return}while($!==null);return!1}function x2(_,J,$,q){J.child=_===null?WB(J,null,$,q):R8(J,_.child,$,q)}function lY(_,J,$,q,G){$=$.render;var X=J.ref;if("ref"in q){var z={};for(var B in q)B!=="ref"&&(z[B]=q[B])}else z=q;if($8(J),q=aU(_,J,$,z,X,G),B=tU(),_!==null&&!W2)return oU(_,J,G),z3(_,J,G);return B0&&B&&VU(J),J.flags|=1,x2(_,J,q,G),J.child}function iY(_,J,$,q,G){if(_===null){var X=$.type;if(typeof X==="function"&&!fU(X)&&X.defaultProps===void 0&&$.compare===null)return $=n6(X),J.tag=15,J.type=$,NG(J,X),dY(_,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?$:g9,$(z,q)&&_.ref===J.ref)return z3(_,J,G)}return J.flags|=1,_=X3(X,q),_.ref=J.ref,_.return=J,J.child=_}function dY(_,J,$,q,G){if(_!==null){var X=_.memoizedProps;if(g9(X,q)&&_.ref===J.ref&&J.type===_.type)if(W2=!1,J.pendingProps=q=X,VG(_,G))(_.flags&131072)!==0&&(W2=!0);else return J.lanes=_.lanes,z3(_,J,G)}return PG(_,J,$,q,G)}function rY(_,J,$,q){var G=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:S_,_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 aY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&I$(J,X!==null?X.cachePool:null),X!==null?XY(J,X):lU(J),KY(J);else return q=J.lanes=536870912,aY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(I$(J,X.cachePool),XY(J,X),U6(J),J.memoizedState=null):(_!==null&&I$(J,null),lU(J),U6(J));return x2(_,J,G,$),J.child}function __(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:S_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function aY(_,J,$,q,G){var X=mU();return X=X===null?null:{parent:H2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&I$(J,null),lU(J),KY(J),_!==null&&H7(_,J,q,!0),J.childLanes=G,null}function c$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,_,J,$)}function pY(_){iZ(_)}function p$(_,J){try{o7=J.source?m(J.source):null,LF=null;var $=J.value;if(z1.actQueue!==null)z1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function cY(_,J,$){try{o7=$.source?m($.source):null,LF=m(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 $=q6($),$.tag=FF,$.payload={element:null},$.callback=function(){W1(J.source,p$,_,J)},$}function IG(_){return _=q6(_),_.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(){bH($),W1(q.source,cY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){bH($),W1(q.source,cY,J,$,q),typeof G!=="function"&&(V6===null?V6=new Set([this]):V6.add(this)),kP(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 ZI(_,J,$,q,G){if($.flags|=32768,d4&&Z_(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&H7(J,$,G,!0),A0&&(s4=!0),$=V5.current,$!==null){switch($.tag){case 31:case 13:return s5===null?o$():$.alternate===null&&s0===V3&&(s0=lQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===EQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),lG(_,q,G)),!1;case 22:return $.flags|=65536,q===EQ?$.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),o$(),!1}if(A0)return s4=!0,J=V5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==oZ&&c9(O5(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&&c9(O5(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=O5(q,$),G=OG(_.stateNode,q,G),S$(_,G),s0!==f6&&(s0=P8)),!1;var X=O5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(e_===null?e_=[X]:e_.push(X),s0!==f6&&(s0=P8),J===null)return!0;q=O5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=OG($.stateNode,q,_),S$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(V6===null||!V6.has(X))))return $.flags|=65536,G&=-G,$.lanes|=G,G=IG(G),wG(G,_,$,q),S$($,G),!1}$=$.return}while($!==null);return!1}function m2(_,J,$,q){J.child=_===null?WB(J,null,$,q):I8(J,_.child,$,q)}function lY(_,J,$,q,G){$=$.render;var X=J.ref;if("ref"in q){var z={};for(var B in q)B!=="ref"&&(z[B]=q[B])}else z=q;if(q8(J),q=aU(_,J,$,z,X,G),B=tU(),_!==null&&!L2)return oU(_,J,G),L3(_,J,G);return A0&&B&&VU(J),J.flags|=1,m2(_,J,q,G),J.child}function iY(_,J,$,q,G){if(_===null){var X=$.type;if(typeof X==="function"&&!fU(X)&&X.defaultProps===void 0&&$.compare===null)return $=_8(X),J.tag=15,J.type=$,NG(J,X),dY(_,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?$:g9,$(z,q)&&_.ref===J.ref)return L3(_,J,G)}return J.flags|=1,_=H3(X,q),_.ref=J.ref,_.return=J,J.child=_}function dY(_,J,$,q,G){if(_!==null){var X=_.memoizedProps;if(g9(X,q)&&_.ref===J.ref&&J.type===_.type)if(L2=!1,J.pendingProps=q=X,VG(_,G))(_.flags&131072)!==0&&(L2=!0);else return J.lanes=_.lanes,L3(_,J,G)}return PG(_,J,$,q,G)}function rY(_,J,$,q){var G=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:S_,_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 aY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&I$(J,X!==null?X.cachePool:null),X!==null?XY(J,X):lU(J),KY(J);else return q=J.lanes=536870912,aY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(I$(J,X.cachePool),XY(J,X),Z6(J),J.memoizedState=null):(_!==null&&I$(J,null),lU(J),Z6(J));return m2(_,J,G,$),J.child}function __(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:S_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function aY(_,J,$,q,G){var X=mU();return X=X===null?null:{parent:Y2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&I$(J,null),lU(J),KY(J),_!==null&&H7(_,J,q,!0),J.childLanes=G,null}function c$(_,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=i$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function sY(_,J,$){return R8(J,_.child,null,$),_=c$(J,J.pendingProps),_.flags|=2,C5(J),J.memoizedState=null,_}function FI(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(B0){if(q.mode==="hidden")return _=c$(J,q),J.lanes=536870912,__(null,_);if(dU(J),(_=x0)?($=RW(_,d5),$=$!==null&&$.data===S8?$:null,$!==null&&(q={dehydrated:$,treeContext:gH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=xH($),q.return=J,J.child=q,p2=J,x0=null)):$=null,$===null)throw B$(J,_),e3(J);return J.lanes=536870912,null}return c$(J,q)}var X=_.memoizedState;if(X!==null){var z=X.dehydrated;if(dU(J),G)if(J.flags&256)J.flags&=-257,J=sY(_,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(cH(),($&536870912)!==0&&t$(J),W2||H7(_,J,$,!1),G=($&_.childLanes)!==0,W2||G){if(q=u0,q!==null&&(z=q4(q,$),z!==0&&z!==X.retryLane))throw X.retryLane=z,l2(_,z),o0(q,_,z),BF;o$(),J=sY(_,J,$)}else _=X.treeContext,x0=S5(z.nextSibling),p2=J,B0=!0,M6=null,d4=!1,y5=null,d5=!1,_!==null&&pH(J,_),J=c$(J,q),J.flags|=4096;return J}return X=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&t$(J),_=X3(X,q),_.ref=J.ref,J.child=_,_.return=J,_}function l$(_,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=u($)||"Unknown";uB[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),uB[X]=!0)}if(J.mode&d2&&H4.recordLegacyContextWarning(J,null),_===null&&(NG(J,J.type),$.contextTypes&&(X=u($)||"Unknown",EB[X]||(EB[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)))),$8(J),$=aU(_,J,$,q,void 0,G),q=tU(),_!==null&&!W2)return oU(_,J,G),z3(_,J,G);return B0&&q&&VU(J),J.flags|=1,x2(_,J,$,G),J.child}function tY(_,J,$,q,G,X){if($8(J),f3=-1,d_=_!==null&&_.type!==J.type,J.updateQueue=null,$=sU(J,q,$,G),HY(_,J),q=tU(),_!==null&&!W2)return oU(_,J,X),z3(_,J,X);return B0&&q&&VU(J),J.flags|=1,x2(_,J,$,X),J.child}function oY(_,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 B=G&-G;if(J.lanes|=B,z=u0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=IG(B),wG(B,z,J,w5(X,J)),S$(J,B)}if($8(J),J.stateNode===null){if(z=A6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==m4)&&!kB.has($)&&(kB.add($),B=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",u($)||"Component",B)),typeof X==="object"&&X!==null&&(z=p0(X)),X=new $(q,z),J.mode&d2){_0(!0);try{X=new $(q,z)}finally{_0(!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=PB,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=u($)||"Component",CB.has(z)||(CB.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 I=B=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?B="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps==="function"&&(B="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate==="function"&&(I="UNSAFE_componentWillUpdate"),z!==null||B!==null||I!==null){X=u($)||"Component";var f=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";SB.has(X)||(SB.add(X),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=i$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function sY(_,J,$){return I8(J,_.child,null,$),_=c$(J,J.pendingProps),_.flags|=2,P5(J),J.memoizedState=null,_}function FI(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(A0){if(q.mode==="hidden")return _=c$(J,q),J.lanes=536870912,__(null,_);if(dU(J),(_=m0)?($=RW(_,r5),$=$!==null&&$.data===v8?$:null,$!==null&&(q={dehydrated:$,treeContext:gH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=xH($),q.return=J,J.child=q,c2=J,m0=null)):$=null,$===null)throw B$(J,_),J6(J);return J.lanes=536870912,null}return c$(J,q)}var X=_.memoizedState;if(X!==null){var z=X.dehydrated;if(dU(J),G)if(J.flags&256)J.flags&=-257,J=sY(_,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(cH(),($&536870912)!==0&&t$(J),L2||H7(_,J,$,!1),G=($&_.childLanes)!==0,L2||G){if(q=b0,q!==null&&(z=h5(q,$),z!==0&&z!==X.retryLane))throw X.retryLane=z,i2(_,z),e0(q,_,z),BF;o$(),J=sY(_,J,$)}else _=X.treeContext,m0=C5(z.nextSibling),c2=J,A0=!0,R6=null,s4=!1,v5=null,r5=!1,_!==null&&pH(J,_),J=c$(J,q),J.flags|=4096;return J}return X=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&t$(J),_=H3(X,q),_.ref=J.ref,J.child=_,_.return=J,_}function l$(_,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=u($)||"Unknown";uB[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),uB[X]=!0)}if(J.mode&r2&&z4.recordLegacyContextWarning(J,null),_===null&&(NG(J,J.type),$.contextTypes&&(X=u($)||"Unknown",EB[X]||(EB[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)))),q8(J),$=aU(_,J,$,q,void 0,G),q=tU(),_!==null&&!L2)return oU(_,J,G),L3(_,J,G);return A0&&q&&VU(J),J.flags|=1,m2(_,J,$,G),J.child}function tY(_,J,$,q,G,X){if(q8(J),j3=-1,d_=_!==null&&_.type!==J.type,J.updateQueue=null,$=sU(J,q,$,G),HY(_,J),q=tU(),_!==null&&!L2)return oU(_,J,X),L3(_,J,X);return A0&&q&&VU(J),J.flags|=1,m2(_,J,$,X),J.child}function oY(_,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 B=G&-G;if(J.lanes|=B,z=b0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=IG(B),wG(B,z,J,O5(X,J)),S$(J,B)}if(q8(J),J.stateNode===null){if(z=T6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==c4)&&!kB.has($)&&(kB.add($),B=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",u($)||"Component",B)),typeof X==="object"&&X!==null&&(z=c0(X)),X=new $(q,z),J.mode&r2){Q0(!0);try{X=new $(q,z)}finally{Q0(!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=PB,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=u($)||"Component",CB.has(z)||(CB.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=B=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?B="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps==="function"&&(B="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0?w="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate==="function"&&(w="UNSAFE_componentWillUpdate"),z!==null||B!==null||w!==null){X=u($)||"Component";var f=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";SB.has(X)||(SB.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
136
  https://react.dev/link/unsafe-component-lifecycles`,X,f,z!==null?`
137
137
  `+z:"",B!==null?`
138
- `+B:"",I!==null?`
139
- `+I:""))}}X=J.stateNode,z=u($)||"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&&!yB.has($)&&(yB.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&&!VB.has($)&&(VB.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.",u($)||"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),B=X.props!==q,X.props!==void 0&&B&&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"||fB.has($)||(fB.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",u($))),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),(B=X.state)&&(typeof B!=="object"||O2(B))&&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?p0(z):A6,X.state===q&&(z=u($)||"Component",vB.has(z)||(vB.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&d2&&H4.recordLegacyContextWarning(J,X),H4.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.",m(J)||"Component"),WF.enqueueReplaceState(X,X.state,null)),t9(J,q,X,G),s9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&K4)!==a1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var e=J.memoizedProps;B=Z8($,e),X.props=B;var J1=X.context;I=$.contextType,z=A6,typeof I==="object"&&I!==null&&(z=p0(I)),f=$.getDerivedStateFromProps,I=typeof f==="function"||typeof X.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,I||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(e||J1!==z)&&xY(J,X,q,z),P6=!1;var d=J.memoizedState;X.state=d,t9(J,q,X,G),s9(),J1=J.memoizedState,e||d!==J1||P6?(typeof f==="function"&&(RG(J,$,f,q),J1=J.memoizedState),(B=P6||hY(J,$,B,q,d,J1,z))?(I||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&K4)!==a1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&K4)!==a1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=J1),X.props=q,X.state=J1,X.context=z,X=B):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&K4)!==a1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,cU(_,J),z=J.memoizedProps,I=Z8($,z),X.props=I,f=J.pendingProps,d=X.context,J1=$.contextType,B=A6,typeof J1==="object"&&J1!==null&&(B=p0(J1)),e=$.getDerivedStateFromProps,(J1=typeof e==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(z!==f||d!==B)&&xY(J,X,q,B),P6=!1,d=J.memoizedState,X.state=d,t9(J,q,X,G),s9();var Z1=J.memoizedState;z!==f||d!==Z1||P6||_!==null&&_.dependencies!==null&&M$(_.dependencies)?(typeof e==="function"&&(RG(J,$,e,q),Z1=J.memoizedState),(I=P6||hY(J,$,I,q,d,Z1,B)||_!==null&&_.dependencies!==null&&M$(_.dependencies))?(J1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,Z1,B),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,Z1,B)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),X.props=q,X.state=Z1,X.context=B,X=I):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),X=!1)}if(B=X,l$(_,J),z=(J.flags&128)!==0,B||z){if(B=J.stateNode,C1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,Q5=-1;else if($=_B(B),J.mode&d2){_0(!0);try{_B(B)}finally{_0(!1)}}J.flags|=1,_!==null&&z?(J.child=R8(J,_.child,null,G),J.child=R8(J,null,$,G)):x2(_,J,$,G),J.memoizedState=B.state,_=J.child}else _=z3(_,J,G);return G=J.stateNode,X&&G.props!==q&&(n7||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"),n7=!0),_}function nY(_,J,$,q){return J8(),J.flags|=256,x2(_,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"&&(_=u(J)||"Unknown",hB[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),hB[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=u(J)||"Unknown",bB[J]||(console.error("%s: Function components do not support contextType.",J),bB[J]=!0))}function CG(_){return{baseLanes:_,cachePool:tH()}}function fG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=A5),_}function eY(_,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:(F2.current&l_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(B0){if(X?q6(J):U6(J),(_=x0)?($=RW(_,d5),$=$!==null&&$.data!==S8?$:null,$!==null&&(q={dehydrated:$,treeContext:gH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=xH($),q.return=J,J.child=q,p2=J,x0=null)):$=null,$===null)throw B$(J,_),e3(J);return GZ($)?J.lanes=32:J.lanes=536870912,null}var B=G.children;if(G=G.fallback,X){U6(J);var I=J.mode;return B=i$({mode:"hidden",children:B},I),G=e6(G,I,$,null),B.return=J,G.return=J,B.sibling=G,J.child=B,G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,__(null,G)}return q6(J),SG(J,B)}var f=_.memoizedState;if(f!==null){var e=f.dehydrated;if(e!==null){if(z)J.flags&256?(q6(J),J.flags&=-257,J=vG(_,J,$)):J.memoizedState!==null?(U6(J),J.child=_.child,J.flags|=128,J=null):(U6(J),B=G.fallback,I=J.mode,G=i$({mode:"visible",children:G.children},I),B=e6(B,I,$,null),B.flags|=2,G.return=J,B.return=J,G.sibling=B,J.child=G,R8(J,_.child,null,$),G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,J=__(null,G));else if(q6(J),cH(),($&536870912)!==0&&t$(J),GZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){B=q.dgst;var J1=q.msg;I=q.stck;var d=q.cstck}X=J1,q=B,G=I,e=d,B=X,I=e,B=B?Error(B):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),B.stack=G||"",B.digest=q,q=I===void 0?null:I,G={value:B,source:null,stack:q},typeof q==="string"&&tZ.set(B,G),c9(G),J=vG(_,J,$)}else if(W2||H7(_,J,$,!1),q=($&_.childLanes)!==0,W2||q){if(q=u0,q!==null&&(G=q4(q,$),G!==0&&G!==f.retryLane))throw f.retryLane=G,l2(_,G),o0(q,_,G),BF;UZ(e)||o$(),J=vG(_,J,$)}else UZ(e)?(J.flags|=192,J.child=_.child,J=null):(_=f.treeContext,x0=S5(e.nextSibling),p2=J,B0=!0,M6=null,d4=!1,y5=null,d5=!1,_!==null&&pH(J,_),J=SG(J,G.children),J.flags|=4096);return J}}if(X)return U6(J),B=G.fallback,I=J.mode,d=_.child,e=d.sibling,G=X3(d,{mode:"hidden",children:G.children}),G.subtreeFlags=d.subtreeFlags&65011712,e!==null?B=X3(e,B):(B=e6(B,I,$,null),B.flags|=2),B.return=J,G.return=J,G.sibling=B,J.child=G,__(null,G),G=J.child,B=_.child.memoizedState,B===null?B=CG($):(I=B.cachePool,I!==null?(d=H2._currentValue,I=I.parent!==d?{parent:d,pool:d}:I):I=tH(),B={baseLanes:B.baseLanes|$,cachePool:I}),G.memoizedState=B,G.childLanes=fG(_,q,$),J.memoizedState=AF,__(_.child,G);return f!==null&&($&62914560)===$&&($&_.lanes)!==0&&t$(J),q6(J),$=_.child,_=$.sibling,$=X3($,{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=i$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function i$(_,J){return _=R(22,_,null,J),_.lanes=0,_}function vG(_,J,$){return R8(J,_.child,null,$),_=SG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function _z(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),uU(_.return,J,$)}function jG(_,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 Jz(_,J,$){var q=J.pendingProps,G=q.revealOrder,X=q.tail,z=q.children,B=F2.current;if((q=(B&l_)!==0)?(B=B&a7|l_,J.flags|=128):B&=a7,Q1(F2,B,J),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!xB[B])if(xB[B]=!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(B=X==null?"null":X,!cQ[B])if(X==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")cQ[B]=!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"?(cQ[B]=!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"&&(cQ[B]=!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(O2(z)){for(B=0;B<z.length;B++)if(!GY(z[B],B))break _}else if(B=E(z),typeof B==="function"){if(B=B.call(z))for(var I=B.next(),f=0;!I.done;I=B.next()){if(!GY(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(x2(_,J,z,$),B0?(n3(),z=v_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&_z(_,$,J);else if(_.tag===19)_z(_,$,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&&v$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),jG(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&&v$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}jG(J,!0,$,null,X,z);break;case"together":jG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function z3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),Q5=-1,f6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(H7(_,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,$=X3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=X3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function VG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&M$(_)?!0:!1}function XI(_,J,$){switch(J.tag){case 3:g(J,J.stateNode.containerInfo),_6(J,H2,_.memoizedState.cache),J8();break;case 27:case 5:l(J);break;case 4:g(J,J.stateNode.containerInfo);break;case 10:_6(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 q6(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return eY(_,J,$);return q6(J),_=z3(_,J,$),_!==null?_.sibling:null}q6(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(H7(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return Jz(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),Q1(F2,F2.current,J),q)break;else return null;case 22:return J.lanes=0,rY(_,J,$,J.pendingProps);case 24:_6(J,H2,_.memoizedState.cache)}return z3(_,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)W2=!0;else{if(!VG(_,$)&&(J.flags&128)===0)return W2=!1,XI(_,J,$);W2=(_.flags&131072)!==0?!0:!1}else{if(W2=!1,q=B0)n3(),q=(J.flags&1048576)!==0;q&&(q=J.index,n3(),mH(J,v_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=J6(J.elementType),J.type=_,typeof _==="function")fU(_)?(q=Z8(_,q),J.tag=1,J.type=_=n6(_),J=oY(null,J,_,q,$)):(J.tag=0,NG(J,_),J.type=_=n6(_),J=PG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===B_){J.tag=11,J.type=_=CU(_),J=lY(null,J,_,q,$);break _}else if(G===HQ){J.tag=14,J=iY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===v5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=u(_)||_,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=Z8(q,J.pendingProps),oY(_,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 X=J.memoizedState;G=X.element,cU(_,J),t9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,_6(J,H2,q),q!==X.cache&&bU(J,[H2],$,!0),s9(),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=nY(_,J,q,$);break _}else if(q!==G){G=w5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),c9(G),J=nY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}x0=S5(_.firstChild),p2=J,B0=!0,M6=null,d4=!1,y5=null,d5=!0,$=WB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(J8(),q===G){J=z3(_,J,$);break _}x2(_,J,q,$)}J=J.child}return J;case 26:return l$(_,J),_===null?($=CW(J.type,null,J.pendingProps,null))?J.memoizedState=$:B0||($=J.type,_=J.pendingProps,q=h(H6.current),q=JQ(q).createElement($),q[g2]=J,q[_5]=_,m2(q,$,_),x1(q),J.stateNode=q):J.memoizedState=CW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return l(J),_===null&&B0&&(q=h(H6.current),G=c(),q=J.stateNode=PW(J.type,J.pendingProps,q,G,!1),d4||(G=YW(q,J.type,J.pendingProps,G),G!==null&&(_8(J,0).serverProps=G)),p2=J,d5=!0,G=x0,X6(J.type)?(mF=G,x0=S5(q.firstChild)):x0=G),x2(_,J,J.pendingProps.children,$),l$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&B0&&(X=c(),q=b9(J.type,X.ancestorInfo),G=x0,(z=!G)||(z=oI(G,J.type,J.pendingProps,d5),z!==null?(J.stateNode=z,d4||(X=YW(z,J.type,J.pendingProps,X),X!==null&&(_8(J,0).serverProps=X)),p2=J,x0=S5(z.firstChild),d5=!1,X=!0):X=!1,z=!X),z&&(q&&B$(J,G),e3(J))),l(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,JI,null,null,$),FJ._currentValue=G),l$(_,J),x2(_,J,q,$),J.child;case 6:return _===null&&B0&&($=J.pendingProps,_=c(),q=_.ancestorInfo.current,$=q!=null?o3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=x0,(q=!_)||(q=nI(_,J.pendingProps,d5),q!==null?(J.stateNode=q,p2=J,x0=null,q=!0):q=!1,q=!q),q&&($&&B$(J,_),e3(J))),null;case 13:return eY(_,J,$);case 4:return g(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=R8(J,null,q,$):x2(_,J,q,$),J.child;case 11:return lY(_,J,J.type,J.pendingProps,$);case 7:return x2(_,J,J.pendingProps,$),J.child;case 8:return x2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,x2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,X=G.value,"value"in G||mB||(mB=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),_6(J,q,X),x2(_,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."),$8(J),G=p0(G),q=qF(q,G,void 0),J.flags|=1,x2(_,J,q,$),J.child;case 14:return iY(_,J,J.type,J.pendingProps,$);case 15:return dY(_,J,J.type,J.pendingProps,$);case 19:return Jz(_,J,$);case 31:return FI(_,J,$);case 22:return rY(_,J,$,J.pendingProps);case 24:return $8(J),q=p0(H2),_===null?(G=mU(),G===null&&(G=u0,X=EU(),G.pooledCache=X,Q8(X),X!==null&&(G.pooledCacheLanes|=$),G=X),J.memoizedState={parent:q,cache:G},pU(J),_6(J,H2,G)):((_.lanes&$)!==0&&(cU(_,J),t9(J,null,null,$),s9()),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),_6(J,H2,q)):(q=X.cache,_6(J,H2,q),q!==G.cache&&bU(J,[H2],$,!0))),x2(_,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 W3(_){_.flags|=4}function kG(_,J,$,q,G){if(J=(_.mode&vP)!==a1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(Dz())_.flags|=8192;else throw T8=EQ,GF}else _.flags&=-16777217}function $z(_,J){if(J.type!=="stylesheet"||(J.state.loading&o5)!==V8)_.flags&=-16777217;else if(_.flags|=16777216,!VW(J))if(Dz())_.flags|=8192;else throw T8=EQ,GF}function d$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?T2():536870912,_.lanes|=J,N8|=J)}function J_(_,J){if(!B0)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 b0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&q0)!==a1){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&q0)!==a1){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 KI(_,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 b0(J),null;case 1:return b0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),H3(H2,J),p(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)K7(J)?(DU(),W3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,kU());return b0(J),null;case 26:var{type:G,memoizedState:X}=J;return _===null?(W3(J),X!==null?(b0(J),$z(J,X)):(b0(J),kG(J,G,null,q,$))):X?X!==_.memoizedState?(W3(J),b0(J),$z(J,X)):(b0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&W3(J),b0(J),kG(J,G,_,q,$)),null;case 27:if(o(J),$=h(H6.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&W3(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 b0(J),null}_=c(),K7(J)?lH(J,_):(_=PW(G,q,$,_,!0),J.stateNode=_,W3(J))}return b0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&W3(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 b0(J),null}var z=c();if(K7(J))lH(J,z);else{switch(X=h(H6.current),b9(G,z.ancestorInfo),z=z.context,X=JQ(X),z){case G9:X=X.createElementNS(j7,G);break;case Xq:X=X.createElementNS(MQ,G);break;default:switch(G){case"svg":X=X.createElementNS(j7,G);break;case"math":X=X.createElementNS(MQ,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]"||F4.call(KA,G)||(KA[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[g2]=J,X[_5]=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(m2(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&&W3(J)}}return b0(J),kG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&W3(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(_=h(H6.current),$=c(),K7(J)){if(_=J.stateNode,$=J.memoizedProps,G=!d4,q=null,X=p2,X!==null)switch(X.tag){case 3:G&&(G=IW(_,$,q),G!==null&&(_8(J,0).serverProps=G));break;case 27:case 5:q=X.memoizedProps,G&&(G=IW(_,$,q),G!==null&&(_8(J,0).serverProps=G))}_[g2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||ZW(_.nodeValue,$)?!0:!1,_||e3(J,!0)}else G=$.ancestorInfo.current,G!=null&&o3(q,G.tag,$.ancestorInfo.implicitRootScope),_=JQ(_).createTextNode(q),_[g2]=J,J.stateNode=_}return b0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=K7(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.");_[g2]=J,b0(J),(J.mode&q0)!==a1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else DU(),J8(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,b0(J),(J.mode&q0)!==a1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return C5(J),J;return C5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return b0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,X=K7(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[g2]=J,b0(J),(J.mode&q0)!==a1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else DU(),J8(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,b0(J),(J.mode&q0)!==a1&&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 C5(J),J;return C5(J),null}}if(C5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&q0)!==a1&&d9(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),d$(J,J.updateQueue),b0(J),(J.mode&q0)!==a1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return p(J),_===null&&tG(J.stateNode.containerInfo),b0(J),null;case 10:return H3(J.type,J),b0(J),null;case 19:if(U1(F2,J),q=J.memoizedState,q===null)return b0(J),null;if(G=(J.flags&128)!==0,X=q.rendering,X===null)if(G)J_(q,!1);else{if(a0!==v3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=v$(_),X!==null){J.flags|=128,J_(q,!1),_=X.updateQueue,J.updateQueue=_,d$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)hH($,_),$=$.sibling;return Q1(F2,F2.current&a7|l_,J),B0&&K3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&j2()>tQ&&(J.flags|=128,G=!0,J_(q,!1),J.lanes=4194304)}else{if(!G)if(_=v$(X),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,d$(J,_),J_(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!B0)return b0(J),null}else 2*j2()-q.renderingStartTime>tQ&&$!==536870912&&(J.flags|=128,G=!0,J_(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=j2(),_.sibling=null,$=F2.current,$=G?$&a7|l_:$&a7,Q1(F2,$,J),B0&&K3(J,q.treeForkCount),_;return b0(J),null;case 22:case 23:return C5(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&&(b0(J),J.subtreeFlags&6&&(J.flags|=8192)):b0(J),$=J.updateQueue,$!==null&&d$(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&&U1(A8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),H3(H2,J),b0(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 HI(_,J){switch(yU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 3:return H3(H2,J),p(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(C5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");J8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 13:if(C5(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.");J8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 19:return U1(F2,J),null;case 4:return p(J),null;case 10:return H3(J.type,J),null;case 22:case 23:return C5(J),iU(J),_!==null&&U1(A8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 24:return H3(H2,J),null;case 25:return null;default:return null}}function Qz(_,J){switch(yU(J),J.tag){case 3:H3(H2,J),p(J);break;case 26:case 27:case 5:o(J);break;case 4:p(J);break;case 31:J.memoizedState!==null&&C5(J);break;case 13:C5(J);break;case 19:U1(F2,J);break;case 10:H3(J.type,J);break;case 22:case 23:C5(J),iU(J),_!==null&&U1(A8,J);break;case 24:H3(H2,J)}}function k4(_){return(_.mode&q0)!==a1}function qz(_,J){k4(_)?(y4(),$_(J,_),V4()):$_(J,_)}function DG(_,J,$){k4(_)?(y4(),B7($,_,J),V4()):B7($,_,J)}function $_(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&q5)!==xQ&&(Q9=!0),q=z1(J,DP,$),(_&q5)!==xQ&&(Q9=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&D5)!==0?"useLayoutEffect":($.tag&q5)!==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
+ `+B:"",w!==null?`
139
+ `+w:""))}}X=J.stateNode,z=u($)||"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&&!yB.has($)&&(yB.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&&!VB.has($)&&(VB.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.",u($)||"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),B=X.props!==q,X.props!==void 0&&B&&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"||fB.has($)||(fB.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",u($))),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),(B=X.state)&&(typeof B!=="object"||w2(B))&&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?c0(z):T6,X.state===q&&(z=u($)||"Component",jB.has(z)||(jB.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&r2&&z4.recordLegacyContextWarning(J,X),z4.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.",m(J)||"Component"),WF.enqueueReplaceState(X,X.state,null)),t9(J,q,X,G),s9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&Y4)!==s1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var e=J.memoizedProps;B=X8($,e),X.props=B;var J1=X.context;w=$.contextType,z=T6,typeof w==="object"&&w!==null&&(z=c0(w)),f=$.getDerivedStateFromProps,w=typeof f==="function"||typeof X.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,w||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(e||J1!==z)&&xY(J,X,q,z),C6=!1;var d=J.memoizedState;X.state=d,t9(J,q,X,G),s9(),J1=J.memoizedState,e||d!==J1||C6?(typeof f==="function"&&(RG(J,$,f,q),J1=J.memoizedState),(B=C6||hY(J,$,B,q,d,J1,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&Y4)!==s1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&Y4)!==s1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=J1),X.props=q,X.state=J1,X.context=z,X=B):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&Y4)!==s1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,cU(_,J),z=J.memoizedProps,w=X8($,z),X.props=w,f=J.pendingProps,d=X.context,J1=$.contextType,B=T6,typeof J1==="object"&&J1!==null&&(B=c0(J1)),e=$.getDerivedStateFromProps,(J1=typeof e==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(z!==f||d!==B)&&xY(J,X,q,B),C6=!1,d=J.memoizedState,X.state=d,t9(J,q,X,G),s9();var Z1=J.memoizedState;z!==f||d!==Z1||C6||_!==null&&_.dependencies!==null&&M$(_.dependencies)?(typeof e==="function"&&(RG(J,$,e,q),Z1=J.memoizedState),(w=C6||hY(J,$,w,q,d,Z1,B)||_!==null&&_.dependencies!==null&&M$(_.dependencies))?(J1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,Z1,B),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,Z1,B)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),X.props=q,X.state=Z1,X.context=B,X=w):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),X=!1)}if(B=X,l$(_,J),z=(J.flags&128)!==0,B||z){if(B=J.stateNode,f1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,q5=-1;else if($=_B(B),J.mode&r2){Q0(!0);try{_B(B)}finally{Q0(!1)}}J.flags|=1,_!==null&&z?(J.child=I8(J,_.child,null,G),J.child=I8(J,null,$,G)):m2(_,J,$,G),J.memoizedState=B.state,_=J.child}else _=L3(_,J,G);return G=J.stateNode,X&&G.props!==q&&(n7||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"),n7=!0),_}function nY(_,J,$,q){return Q8(),J.flags|=256,m2(_,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"&&(_=u(J)||"Unknown",hB[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),hB[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=u(J)||"Unknown",bB[J]||(console.error("%s: Function components do not support contextType.",J),bB[J]=!0))}function CG(_){return{baseLanes:_,cachePool:tH()}}function fG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=A5),_}function eY(_,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:(K2.current&l_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(A0){if(X?G6(J):Z6(J),(_=m0)?($=RW(_,r5),$=$!==null&&$.data!==v8?$:null,$!==null&&(q={dehydrated:$,treeContext:gH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=xH($),q.return=J,J.child=q,c2=J,m0=null)):$=null,$===null)throw B$(J,_),J6(J);return GZ($)?J.lanes=32:J.lanes=536870912,null}var B=G.children;if(G=G.fallback,X){Z6(J);var w=J.mode;return B=i$({mode:"hidden",children:B},w),G=J8(G,w,$,null),B.return=J,G.return=J,B.sibling=G,J.child=B,G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,__(null,G)}return G6(J),SG(J,B)}var f=_.memoizedState;if(f!==null){var e=f.dehydrated;if(e!==null){if(z)J.flags&256?(G6(J),J.flags&=-257,J=jG(_,J,$)):J.memoizedState!==null?(Z6(J),J.child=_.child,J.flags|=128,J=null):(Z6(J),B=G.fallback,w=J.mode,G=i$({mode:"visible",children:G.children},w),B=J8(B,w,$,null),B.flags|=2,G.return=J,B.return=J,G.sibling=B,J.child=G,I8(J,_.child,null,$),G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,J=__(null,G));else if(G6(J),cH(),($&536870912)!==0&&t$(J),GZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){B=q.dgst;var J1=q.msg;w=q.stck;var d=q.cstck}X=J1,q=B,G=w,e=d,B=X,w=e,B=B?Error(B):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),B.stack=G||"",B.digest=q,q=w===void 0?null:w,G={value:B,source:null,stack:q},typeof q==="string"&&tZ.set(B,G),c9(G),J=jG(_,J,$)}else if(L2||H7(_,J,$,!1),q=($&_.childLanes)!==0,L2||q){if(q=b0,q!==null&&(G=h5(q,$),G!==0&&G!==f.retryLane))throw f.retryLane=G,i2(_,G),e0(q,_,G),BF;UZ(e)||o$(),J=jG(_,J,$)}else UZ(e)?(J.flags|=192,J.child=_.child,J=null):(_=f.treeContext,m0=C5(e.nextSibling),c2=J,A0=!0,R6=null,s4=!1,v5=null,r5=!1,_!==null&&pH(J,_),J=SG(J,G.children),J.flags|=4096);return J}}if(X)return Z6(J),B=G.fallback,w=J.mode,d=_.child,e=d.sibling,G=H3(d,{mode:"hidden",children:G.children}),G.subtreeFlags=d.subtreeFlags&65011712,e!==null?B=H3(e,B):(B=J8(B,w,$,null),B.flags|=2),B.return=J,G.return=J,G.sibling=B,J.child=G,__(null,G),G=J.child,B=_.child.memoizedState,B===null?B=CG($):(w=B.cachePool,w!==null?(d=Y2._currentValue,w=w.parent!==d?{parent:d,pool:d}:w):w=tH(),B={baseLanes:B.baseLanes|$,cachePool:w}),G.memoizedState=B,G.childLanes=fG(_,q,$),J.memoizedState=AF,__(_.child,G);return f!==null&&($&62914560)===$&&($&_.lanes)!==0&&t$(J),G6(J),$=_.child,_=$.sibling,$=H3($,{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=i$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function i$(_,J){return _=R(22,_,null,J),_.lanes=0,_}function jG(_,J,$){return I8(J,_.child,null,$),_=SG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function _z(_,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 Jz(_,J,$){var q=J.pendingProps,G=q.revealOrder,X=q.tail,z=q.children,B=K2.current;if((q=(B&l_)!==0)?(B=B&a7|l_,J.flags|=128):B&=a7,Q1(K2,B,J),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!xB[B])if(xB[B]=!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(B=X==null?"null":X,!cQ[B])if(X==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")cQ[B]=!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"?(cQ[B]=!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"&&(cQ[B]=!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(w2(z)){for(B=0;B<z.length;B++)if(!GY(z[B],B))break _}else if(B=E(z),typeof B==="function"){if(B=B.call(z))for(var w=B.next(),f=0;!w.done;w=B.next()){if(!GY(w.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(m2(_,J,z,$),A0?(_6(),z=j_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&_z(_,$,J);else if(_.tag===19)_z(_,$,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&&j$(_)===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&&j$(_)===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 L3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),q5=-1,j6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(H7(_,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,$=H3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=H3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function VG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&M$(_)?!0:!1}function XI(_,J,$){switch(J.tag){case 3:g(J,J.stateNode.containerInfo),$6(J,Y2,_.memoizedState.cache),Q8();break;case 27:case 5:l(J);break;case 4:g(J,J.stateNode.containerInfo);break;case 10:$6(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 G6(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return eY(_,J,$);return G6(J),_=L3(_,J,$),_!==null?_.sibling:null}G6(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(H7(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return Jz(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),Q1(K2,K2.current,J),q)break;else return null;case 22:return J.lanes=0,rY(_,J,$,J.pendingProps);case 24:$6(J,Y2,_.memoizedState.cache)}return L3(_,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)L2=!0;else{if(!VG(_,$)&&(J.flags&128)===0)return L2=!1,XI(_,J,$);L2=(_.flags&131072)!==0?!0:!1}else{if(L2=!1,q=A0)_6(),q=(J.flags&1048576)!==0;q&&(q=J.index,_6(),mH(J,j_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=Q6(J.elementType),J.type=_,typeof _==="function")fU(_)?(q=X8(_,q),J.tag=1,J.type=_=_8(_),J=oY(null,J,_,q,$)):(J.tag=0,NG(J,_),J.type=_=_8(_),J=PG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===B_){J.tag=11,J.type=_=CU(_),J=lY(null,J,_,q,$);break _}else if(G===HQ){J.tag=14,J=iY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===f5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=u(_)||_,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=X8(q,J.pendingProps),oY(_,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 X=J.memoizedState;G=X.element,cU(_,J),t9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,$6(J,Y2,q),q!==X.cache&&bU(J,[Y2],$,!0),s9(),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=nY(_,J,q,$);break _}else if(q!==G){G=O5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),c9(G),J=nY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}m0=C5(_.firstChild),c2=J,A0=!0,R6=null,s4=!1,v5=null,r5=!0,$=WB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(Q8(),q===G){J=L3(_,J,$);break _}m2(_,J,q,$)}J=J.child}return J;case 26:return l$(_,J),_===null?($=CW(J.type,null,J.pendingProps,null))?J.memoizedState=$:A0||($=J.type,_=J.pendingProps,q=h(z6.current),q=JQ(q).createElement($),q[p2]=J,q[J5]=_,g2(q,$,_),E1(q),J.stateNode=q):J.memoizedState=CW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return l(J),_===null&&A0&&(q=h(z6.current),G=c(),q=J.stateNode=PW(J.type,J.pendingProps,q,G,!1),s4||(G=YW(q,J.type,J.pendingProps,G),G!==null&&($8(J,0).serverProps=G)),c2=J,r5=!0,G=m0,H6(J.type)?(mF=G,m0=C5(q.firstChild)):m0=G),m2(_,J,J.pendingProps.children,$),l$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&A0&&(X=c(),q=b9(J.type,X.ancestorInfo),G=m0,(z=!G)||(z=oI(G,J.type,J.pendingProps,r5),z!==null?(J.stateNode=z,s4||(X=YW(z,J.type,J.pendingProps,X),X!==null&&($8(J,0).serverProps=X)),c2=J,m0=C5(z.firstChild),r5=!1,X=!0):X=!1,z=!X),z&&(q&&B$(J,G),J6(J))),l(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,JI,null,null,$),FJ._currentValue=G),l$(_,J),m2(_,J,q,$),J.child;case 6:return _===null&&A0&&($=J.pendingProps,_=c(),q=_.ancestorInfo.current,$=q!=null?e3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=m0,(q=!_)||(q=nI(_,J.pendingProps,r5),q!==null?(J.stateNode=q,c2=J,m0=null,q=!0):q=!1,q=!q),q&&($&&B$(J,_),J6(J))),null;case 13:return eY(_,J,$);case 4:return g(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=I8(J,null,q,$):m2(_,J,q,$),J.child;case 11:return lY(_,J,J.type,J.pendingProps,$);case 7:return m2(_,J,J.pendingProps,$),J.child;case 8:return m2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,m2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,X=G.value,"value"in G||mB||(mB=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),$6(J,q,X),m2(_,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."),q8(J),G=c0(G),q=qF(q,G,void 0),J.flags|=1,m2(_,J,q,$),J.child;case 14:return iY(_,J,J.type,J.pendingProps,$);case 15:return dY(_,J,J.type,J.pendingProps,$);case 19:return Jz(_,J,$);case 31:return FI(_,J,$);case 22:return rY(_,J,$,J.pendingProps);case 24:return q8(J),q=c0(Y2),_===null?(G=mU(),G===null&&(G=b0,X=EU(),G.pooledCache=X,U8(X),X!==null&&(G.pooledCacheLanes|=$),G=X),J.memoizedState={parent:q,cache:G},pU(J),$6(J,Y2,G)):((_.lanes&$)!==0&&(cU(_,J),t9(J,null,null,$),s9()),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),$6(J,Y2,q)):(q=X.cache,$6(J,Y2,q),q!==G.cache&&bU(J,[Y2],$,!0))),m2(_,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 B3(_){_.flags|=4}function kG(_,J,$,q,G){if(J=(_.mode&jP)!==s1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(Dz())_.flags|=8192;else throw O8=EQ,GF}else _.flags&=-16777217}function $z(_,J){if(J.type!=="stylesheet"||(J.state.loading&n5)!==k8)_.flags&=-16777217;else if(_.flags|=16777216,!VW(J))if(Dz())_.flags|=8192;else throw O8=EQ,GF}function d$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?O2():536870912,_.lanes|=J,f8|=J)}function J_(_,J){if(!A0)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 E0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&U0)!==s1){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&U0)!==s1){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 KI(_,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 E0(J),null;case 1:return E0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),z3(Y2,J),p(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)K7(J)?(DU(),B3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,kU());return E0(J),null;case 26:var{type:G,memoizedState:X}=J;return _===null?(B3(J),X!==null?(E0(J),$z(J,X)):(E0(J),kG(J,G,null,q,$))):X?X!==_.memoizedState?(B3(J),E0(J),$z(J,X)):(E0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&B3(J),E0(J),kG(J,G,_,q,$)),null;case 27:if(o(J),$=h(z6.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&B3(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 E0(J),null}_=c(),K7(J)?lH(J,_):(_=PW(G,q,$,_,!0),J.stateNode=_,B3(J))}return E0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&B3(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 E0(J),null}var z=c();if(K7(J))lH(J,z);else{switch(X=h(z6.current),b9(G,z.ancestorInfo),z=z.context,X=JQ(X),z){case G9:X=X.createElementNS(v7,G);break;case Xq:X=X.createElementNS(MQ,G);break;default:switch(G){case"svg":X=X.createElementNS(v7,G);break;case"math":X=X.createElementNS(MQ,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]"||K4.call(KA,G)||(KA[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[p2]=J,X[J5]=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(g2(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&&B3(J)}}return E0(J),kG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&B3(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(_=h(z6.current),$=c(),K7(J)){if(_=J.stateNode,$=J.memoizedProps,G=!s4,q=null,X=c2,X!==null)switch(X.tag){case 3:G&&(G=IW(_,$,q),G!==null&&($8(J,0).serverProps=G));break;case 27:case 5:q=X.memoizedProps,G&&(G=IW(_,$,q),G!==null&&($8(J,0).serverProps=G))}_[p2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||ZW(_.nodeValue,$)?!0:!1,_||J6(J,!0)}else G=$.ancestorInfo.current,G!=null&&e3(q,G.tag,$.ancestorInfo.implicitRootScope),_=JQ(_).createTextNode(q),_[p2]=J,J.stateNode=_}return E0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=K7(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.");_[p2]=J,E0(J),(J.mode&U0)!==s1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else DU(),Q8(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,E0(J),(J.mode&U0)!==s1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return P5(J),J;return P5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return E0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,X=K7(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[p2]=J,E0(J),(J.mode&U0)!==s1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else DU(),Q8(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,E0(J),(J.mode&U0)!==s1&&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 P5(J),J;return P5(J),null}}if(P5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&U0)!==s1&&d9(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),d$(J,J.updateQueue),E0(J),(J.mode&U0)!==s1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return p(J),_===null&&tG(J.stateNode.containerInfo),E0(J),null;case 10:return z3(J.type,J),E0(J),null;case 19:if(U1(K2,J),q=J.memoizedState,q===null)return E0(J),null;if(G=(J.flags&128)!==0,X=q.rendering,X===null)if(G)J_(q,!1);else{if(s0!==V3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=j$(_),X!==null){J.flags|=128,J_(q,!1),_=X.updateQueue,J.updateQueue=_,d$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)hH($,_),$=$.sibling;return Q1(K2,K2.current&a7|l_,J),A0&&Y3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&y2()>tQ&&(J.flags|=128,G=!0,J_(q,!1),J.lanes=4194304)}else{if(!G)if(_=j$(X),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,d$(J,_),J_(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!A0)return E0(J),null}else 2*y2()-q.renderingStartTime>tQ&&$!==536870912&&(J.flags|=128,G=!0,J_(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=y2(),_.sibling=null,$=K2.current,$=G?$&a7|l_:$&a7,Q1(K2,$,J),A0&&Y3(J,q.treeForkCount),_;return E0(J),null;case 22:case 23:return P5(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&&(E0(J),J.subtreeFlags&6&&(J.flags|=8192)):E0(J),$=J.updateQueue,$!==null&&d$(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&&U1(T8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),z3(Y2,J),E0(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 HI(_,J){switch(yU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&U0)!==s1&&d9(J),J):null;case 3:return z3(Y2,J),p(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(P5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Q8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&U0)!==s1&&d9(J),J):null;case 13:if(P5(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.");Q8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&U0)!==s1&&d9(J),J):null;case 19:return U1(K2,J),null;case 4:return p(J),null;case 10:return z3(J.type,J),null;case 22:case 23:return P5(J),iU(J),_!==null&&U1(T8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&U0)!==s1&&d9(J),J):null;case 24:return z3(Y2,J),null;case 25:return null;default:return null}}function Qz(_,J){switch(yU(J),J.tag){case 3:z3(Y2,J),p(J);break;case 26:case 27:case 5:o(J);break;case 4:p(J);break;case 31:J.memoizedState!==null&&P5(J);break;case 13:P5(J);break;case 19:U1(K2,J);break;case 10:z3(J.type,J);break;case 22:case 23:P5(J),iU(J),_!==null&&U1(T8,J);break;case 24:z3(Y2,J)}}function b4(_){return(_.mode&U0)!==s1}function qz(_,J){b4(_)?(u4(),$_(J,_),D4()):$_(J,_)}function DG(_,J,$){b4(_)?(u4(),B7($,_,J),D4()):B7($,_,J)}function $_(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&U5)!==xQ&&(Q9=!0),q=W1(J,DP,$),(_&U5)!==xQ&&(Q9=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&y5)!==0?"useLayoutEffect":($.tag&U5)!==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
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
 
@@ -150,11 +150,11 @@ It looks like you wrote `+X+`(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,z1(J,function(B,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,I)},X,z)}$=$.next}while($!==G)}}catch(B){N0(J,J.return,B)}}function B7(_,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,B=z.destroy;B!==void 0&&(z.destroy=void 0,(_&q5)!==xQ&&(Q9=!0),G=J,z1(G,uP,G,$,B),(_&q5)!==xQ&&(Q9=!1))}q=q.next}while(q!==X)}}catch(I){N0(J,J.return,I)}}function Uz(_,J){k4(_)?(y4(),$_(J,_),V4()):$_(J,_)}function uG(_,J,$){k4(_)?(y4(),B7($,_,J),V4()):B7($,_,J)}function Gz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||n7||($.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{z1(_,FY,J,$)}catch(q){N0(_,_.return,q)}}}function YI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function zI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||n7||(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=Z8(_.type,$),X=z1(_,YI,J,G,q);$=gB,X!==void 0||$.has(_.type)||($.add(_.type),z1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(z){N0(_,_.return,z)}}function Zz(_,J,$){$.props=Z8(_.type,_.memoizedProps),$.state=_.memoizedState,k4(_)?(y4(),z1(_,GB,_,J,$),V4()):z1(_,GB,_,J,$)}function WI(_){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(k4(_))try{y4(),_.refCleanup=J($)}finally{V4()}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 Q_(_,J){try{z1(_,WI,_)}catch($){N0(_,J,$)}}function D4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(k4(_))try{y4(),z1(_,q)}finally{V4(_)}else z1(_,q)}catch(G){N0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(k4(_))try{y4(),z1(_,$,null)}finally{V4(_)}else z1(_,$,null)}catch(G){N0(_,J,G)}else $.current=null}function Fz(_,J,$,q){var G=_.memoizedProps,X=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof G==="function"&&G(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(X,J,q,$)}function LI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Xz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{z1(_,xI,q,J,$,_)}catch(G){N0(_,_.return,G)}}function bG(_,J,$){try{z1(_,gI,_.stateNode,_.type,$,J,_)}catch(q){N0(_,_.return,q)}}function Kz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&X6(_.type)||_.tag===4}function EG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Kz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&X6(_.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?(AW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(AW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=F3));else if(q!==4&&(q===27&&X6(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(hG(_,J,$),_=_.sibling;_!==null;)hG(_,J,$),_=_.sibling}function r$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&X6(_.type)&&($=_.stateNode),_=_.child,_!==null))for(r$(_,J,$),_=_.sibling;_!==null;)r$(_,J,$),_=_.sibling}function BI(_){for(var J,$=_.return;$!==null;){if(Kz($)){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(_),r$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(BW($),J.flags&=-33),J=EG(_),r$(_,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 Hz(_){var{stateNode:J,memoizedProps:$}=_;try{z1(_,Qw,_.type,$,J,_)}catch(q){N0(_,_.return,q)}}function Yz(_,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 AI(_,J){if(_=_.containerInfo,EF=zq,_=SH(_),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(N1){$=null;break _}var z=0,B=-1,I=-1,f=0,e=0,J1=_,d=null;J:for(;;){for(var Z1;;){if(J1!==$||G!==0&&J1.nodeType!==3||(B=z+G),J1!==X||q!==0&&J1.nodeType!==3||(I=z+q),J1.nodeType===3&&(z+=J1.nodeValue.length),(Z1=J1.firstChild)===null)break;d=J1,J1=Z1}for(;;){if(J1===_)break J;if(d===$&&++f===G&&(B=z),d===X&&++e===q&&(I=z),(Z1=J1.nextSibling)!==null)break;J1=d,d=J1.parentNode}J1=Z1}$=B===-1||I===-1?null:{start:B,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;hF={focusedElem:_,selectionRange:$},zq=!1;for(y2=J;y2!==null;)if(J=y2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,y2=_;else for(;y2!==null;){switch(_=J=y2,$=_.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&&zI(_,$);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,y2=_;break}y2=J.return}}function zz(_,J,$){var q=P5(),G=f4(),X=v4(),z=j4(),B=$.flags;switch($.tag){case 0:case 11:case 15:u4(_,$),B&4&&qz($,D5|s5);break;case 1:if(u4(_,$),B&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||n7||(_.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")),k4($)?(y4(),z1($,UF,$,_),V4()):z1($,UF,$,_);else{var I=Z8($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||n7||(_.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")),k4($)?(y4(),z1($,QB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),V4()):z1($,QB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}B&64&&Gz($),B&512&&Q_($,$.return);break;case 3:if(J=Y3(),u4(_,$),B&64&&(B=$.updateQueue,B!==null)){if(I=null,$.child!==null)switch($.child.tag){case 27:case 5:I=$.child.stateNode;break;case 1:I=$.child.stateNode}try{z1($,FY,B,I)}catch(e){N0($,$.return,e)}}_.effectDuration+=R$(J);break;case 27:J===null&&B&4&&Hz($);case 26:case 5:if(u4(_,$),J===null){if(B&4)Xz($);else if(B&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{z1($,mI,I,_,J,$)}catch(e){N0($,$.return,e)}}}B&512&&Q_($,$.return);break;case 12:if(B&4){B=Y3(),u4(_,$),_=$.stateNode,_.effectDuration+=i9(B);try{z1($,Fz,$,J,T6,_.effectDuration)}catch(e){N0($,$.return,e)}}else u4(_,$);break;case 31:u4(_,$),B&4&&Bz(_,$);break;case 13:u4(_,$),B&4&&Az(_,$),B&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(B=CI.bind(null,$),eI(_,B))));break;case 22:if(B=$.memoizedState!==null||S3,!B){J=J!==null&&J.memoizedState!==null||L2,I=S3;var f=L2;S3=B,(L2=J)&&!f?(b4(_,$,($.subtreeFlags&8772)!==0),($.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&K$($,p1,d1)):u4(_,$),S3=I,L2=f}break;case 30:break;default:u4(_,$)}($.mode&q0)!==a1&&0<=p1&&0<=d1&&((n0||0.05<r0)&&N4($,p1,d1,r0,c0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<d1-p1&&(Yz($.return.alternate,$.return)||P4($,p1,d1,"Mount"))),N5(q),S4(G),c0=X,n0=z}function Wz(_){var J=_.alternate;J!==null&&(_.alternate=null,Wz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&P1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function L3(_,J,$){for($=$.child;$!==null;)Lz(_,J,$),$=$.sibling}function Lz(_,J,$){if(i2&&typeof i2.onCommitFiberUnmount==="function")try{i2.onCommitFiberUnmount(S7,$)}catch(f){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",f))}var q=P5(),G=f4(),X=v4(),z=j4();switch($.tag){case 26:L2||D4($,J),L3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:L2||D4($,J);var B=B2,I=L5;X6($.type)&&(B2=$.stateNode,L5=!1),L3(_,J,$),z1($,Y_,$.stateNode),B2=B,L5=I;break;case 5:L2||D4($,J);case 6:if(B=B2,I=L5,B2=null,L3(_,J,$),B2=B,L5=I,B2!==null)if(L5)try{z1($,lI,B2,$.stateNode)}catch(f){N0($,J,f)}else try{z1($,cI,B2,$.stateNode)}catch(f){N0($,J,f)}break;case 18:B2!==null&&(L5?(_=B2,MW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),P7(_)):MW(B2,$.stateNode));break;case 4:B=B2,I=L5,B2=$.stateNode.containerInfo,L5=!0,L3(_,J,$),B2=B,L5=I;break;case 0:case 11:case 14:case 15:B7(q5,$,J),L2||DG($,J,D5),L3(_,J,$);break;case 1:L2||(D4($,J),B=$.stateNode,typeof B.componentWillUnmount==="function"&&Zz($,J,B)),L3(_,J,$);break;case 21:L3(_,J,$);break;case 22:L2=(B=L2)||$.memoizedState!==null,L3(_,J,$),L2=B;break;default:L3(_,J,$)}($.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4($,p1,d1,r0,c0),N5(q),S4(G),c0=X,n0=z}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{z1(J,Jw,_)}catch($){N0(J,J.return,$)}}}function Az(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{z1(J,$w,_)}catch($){N0(J,J.return,$)}}function MI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new pB),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new pB),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function a$(_,J){var $=MI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),c4)if(e7!==null&&_9!==null)Z_(_9,e7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=fI.bind(null,_,q);q.then(G,G)}})}function z5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,X=J,z=$[q],B=P5(),I=X;_:for(;I!==null;){switch(I.tag){case 27:if(X6(I.type)){B2=I.stateNode,L5=!1;break _}break;case 5:B2=I.stateNode,L5=!1;break _;case 3:case 4:B2=I.stateNode.containerInfo,L5=!0;break _}I=I.return}if(B2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Lz(G,X,z),B2=null,L5=!1,(z.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(z,p1,d1,"Unmount"),N5(B),G=z,X=G.alternate,X!==null&&(X.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Mz(J,_),J=J.sibling}function Mz(_,J){var $=P5(),q=f4(),G=v4(),X=j4(),z=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:z5(J,_),W5(_),B&4&&(B7(q5|s5,_,_.return),$_(q5|s5,_),DG(_,_.return,D5|s5));break;case 1:if(z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),B&64&&S3&&(B=_.updateQueue,B!==null&&(z=B.callbacks,z!==null))){var I=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=I===null?z:I.concat(z)}break;case 26:if(I=z4,z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),B&4){var f=z!==null?z.memoizedState:null;if(B=_.memoizedState,z===null)if(B===null)if(_.stateNode===null){_:{B=_.type,z=_.memoizedProps,I=I.ownerDocument||I;J:switch(B){case"title":if(f=I.getElementsByTagName("title")[0],!f||f[T_]||f[g2]||f.namespaceURI===j7||f.hasAttribute("itemprop"))f=I.createElement(B),I.head.insertBefore(f,I.querySelector("head > title"));m2(f,B,z),f[g2]=_,x1(f),B=f;break _;case"link":var e=vW("link","href",I).get(B+(z.href||""));if(e){for(var J1=0;J1<e.length;J1++)if(f=e[J1],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)){e.splice(J1,1);break J}}f=I.createElement(B),m2(f,B,z),I.head.appendChild(f);break;case"meta":if(e=vW("meta","content",I).get(B+(z.content||""))){for(J1=0;J1<e.length;J1++)if(f=e[J1],A1(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)){e.splice(J1,1);break J}}f=I.createElement(B),m2(f,B,z),I.head.appendChild(f);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}f[g2]=_,x1(f),B=f}_.stateNode=B}else jW(I,_.type,_.stateNode);else _.stateNode=SW(I,B,_.memoizedProps);else f!==B?(f===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):f.count--,B===null?jW(I,_.type,_.stateNode):SW(I,B,_.memoizedProps)):B===null&&_.stateNode!==null&&bG(_,_.memoizedProps,z.memoizedProps)}break;case 27:z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),z!==null&&B&4&&bG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),_.flags&32){I=_.stateNode;try{z1(_,BW,I)}catch(j1){N0(_,_.return,j1)}}B&4&&_.stateNode!=null&&(I=_.memoizedProps,bG(_,I,z!==null?z.memoizedProps:I)),B&1024&&(MF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(z5(J,_),W5(_),B&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.");B=_.memoizedProps,z=z!==null?z.memoizedProps:B,I=_.stateNode;try{z1(_,pI,I,z,B)}catch(j1){N0(_,_.return,j1)}}break;case 3:if(I=Y3(),Kq=null,f=z4,z4=$Q(J.containerInfo),z5(J,_),z4=f,W5(_),B&4&&z!==null&&z.memoizedState.isDehydrated)try{z1(_,_w,J.containerInfo)}catch(j1){N0(_,_.return,j1)}MF&&(MF=!1,Tz(_)),J.effectDuration+=R$(I);break;case 4:B=z4,z4=$Q(_.stateNode.containerInfo),z5(J,_),W5(_),z4=B;break;case 12:B=Y3(),z5(J,_),W5(_),_.stateNode.effectDuration+=i9(B);break;case 31:z5(J,_),W5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 13:z5(J,_),W5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(sQ=j2()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 22:I=_.memoizedState!==null;var d=z!==null&&z.memoizedState!==null,Z1=S3,N1=L2;if(S3=Z1||I,L2=N1||d,z5(J,_),L2=N1,S3=Z1,d&&!I&&!Z1&&!N1&&(_.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&K$(_,p1,d1),W5(_),B&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~S_:J._visibility|S_,!I||z===null||d||S3||L2||(F8(_),(_.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(_,p1,d1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){d=z=J;try{f=d.stateNode,I?z1(d,dI,f):z1(d,sI,d.stateNode,d.memoizedProps)}catch(j1){N0(d,d.return,j1)}}}else if(J.tag===6){if(z===null){d=J;try{e=d.stateNode,I?z1(d,rI,e):z1(d,tI,e,d.memoizedProps)}catch(j1){N0(d,d.return,j1)}}}else if(J.tag===18){if(z===null){d=J;try{J1=d.stateNode,I?z1(d,iI,J1):z1(d,aI,d.stateNode)}catch(j1){N0(d,d.return,j1)}}}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}B&4&&(B=_.updateQueue,B!==null&&(z=B.retryQueue,z!==null&&(B.retryQueue=null,a$(_,z))));break;case 19:z5(J,_),W5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 30:break;case 21:break;default:z5(J,_),W5(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&((n0||0.05<r0)&&N4(_,p1,d1,r0,c0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<d1-p1&&(Yz(_.return.alternate,_.return)||P4(_,p1,d1,"Mount"))),N5($),S4(q),c0=G,n0=X}function W5(_){var J=_.flags;if(J&2){try{z1(_,BI,_)}catch($){N0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Tz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Tz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function u4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)zz(_,J.alternate,J),J=J.sibling}function Rz(_){var J=P5(),$=f4(),q=v4(),G=j4();switch(_.tag){case 0:case 11:case 14:case 15:DG(_,_.return,D5),F8(_);break;case 1:D4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Zz(_,_.return,X),F8(_);break;case 27:z1(_,Y_,_.stateNode);case 26:case 5:D4(_,_.return),F8(_);break;case 22:_.memoizedState===null&&F8(_);break;case 30:F8(_);break;default:F8(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(_,p1,d1,r0,c0),N5(J),S4($),c0=q,n0=G}function F8(_){for(_=_.child;_!==null;)Rz(_),_=_.sibling}function Oz(_,J,$,q){var G=P5(),X=f4(),z=v4(),B=j4(),I=$.flags;switch($.tag){case 0:case 11:case 15:b4(_,$,q),qz($,D5);break;case 1:if(b4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&z1($,UF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{z1($,_I,J,_)}catch(f){N0($,$.return,f)}}q&&I&64&&Gz($),Q_($,$.return);break;case 27:Hz($);case 26:case 5:b4(_,$,q),q&&J===null&&I&4&&Xz($),Q_($,$.return);break;case 12:if(q&&I&4){I=Y3(),b4(_,$,q),q=$.stateNode,q.effectDuration+=i9(I);try{z1($,Fz,$,J,T6,q.effectDuration)}catch(f){N0($,$.return,f)}}else b4(_,$,q);break;case 31:b4(_,$,q),q&&I&4&&Bz(_,$);break;case 13:b4(_,$,q),q&&I&4&&Az(_,$);break;case 22:$.memoizedState===null&&b4(_,$,q),Q_($,$.return);break;case 30:break;default:b4(_,$,q)}($.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4($,p1,d1,r0,c0),N5(G),S4(X),c0=z,n0=B}function b4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Oz(_,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&&Q8(_),$!=null&&l9($))}function mG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(Q8(J),_!=null&&l9(_))}function Z4(_,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;Iz(_,J,$,q,X!==null?X.actualStartTime:G),J=X}}function Iz(_,J,$,q,G){var X=P5(),z=f4(),B=v4(),I=j4(),f=L6,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&q0)!==a1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,G,I2,$),Z4(_,J,$,q,G),e&2048&&Uz(J,U5|s5);break;case 1:(J.mode&q0)!==a1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&H$(J,J.actualStartTime,G,I2,$)),Z4(_,J,$,q,G);break;case 3:var J1=Y3(),d=I2;I2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,Z4(_,J,$,q,G),I2=d,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(Q8(q),$!=null&&l9($))),_.passiveEffectDuration+=R$(J1);break;case 12:if(e&2048){e=Y3(),Z4(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=i9(e);try{z1(J,LI,J,J.alternate,T6,_.passiveEffectDuration)}catch(Z1){N0(J,J.return,Z1)}}else Z4(_,J,$,q,G);break;case 31:e=I2,J1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,J1!==null&&d===null?(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(I2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,G,J1)):I2=!0):I2=!1,Z4(_,J,$,q,G),I2=e;break;case 13:e=I2,J1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,J1===null||J1.dehydrated===null||d!==null&&d.dehydrated!==null?I2=!1:(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(I2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,G,J1)):I2=!0),Z4(_,J,$,q,G),I2=e;break;case 23:break;case 22:d=J.stateNode,J1=J.alternate,J.memoizedState!==null?d._visibility&M3?Z4(_,J,$,q,G):q_(_,J,$,q,G):d._visibility&M3?Z4(_,J,$,q,G):(d._visibility|=M3,A7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&q0)===a1||I2||(_=J.actualStartTime,0<=_&&0.05<G-_&&K$(J,_,G),0<=p1&&0<=d1&&0.05<d1-p1&&K$(J,p1,d1))),e&2048&&xG(J1,J);break;case 24:Z4(_,J,$,q,G),e&2048&&mG(J.alternate,J);break;default:Z4(_,J,$,q,G)}if((J.mode&q0)!==a1){if(_=!I2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&P4(J,$,G,"Mount");0<=p1&&0<=d1&&((n0||0.05<r0)&&N4(J,p1,d1,r0,c0),_&&0.05<d1-p1&&P4(J,p1,d1,"Mount"))}N5(X),S4(z),c0=B,n0=I,L6=f}function A7(_,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;wz(_,J,$,q,G,z!==null?z.actualStartTime:X),J=z}}function wz(_,J,$,q,G,X){var z=P5(),B=f4(),I=v4(),f=j4(),e=L6;G&&(J.mode&q0)!==a1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,X,I2,$);var J1=J.flags;switch(J.tag){case 0:case 11:case 15:A7(_,J,$,q,G,X),Uz(J,U5);break;case 23:break;case 22:var d=J.stateNode;J.memoizedState!==null?d._visibility&M3?A7(_,J,$,q,G,X):q_(_,J,$,q,X):(d._visibility|=M3,A7(_,J,$,q,G,X)),G&&J1&2048&&xG(J.alternate,J);break;case 24:A7(_,J,$,q,G,X),G&&J1&2048&&mG(J.alternate,J);break;default:A7(_,J,$,q,G,X)}(J.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(J,p1,d1,r0,c0),N5(z),S4(B),c0=I,n0=f,L6=e}function q_(_,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=_,B=$,I=q,f=J!==null?J.actualStartTime:G,e=L6;(X.mode&q0)!==a1&&0<X.actualStartTime&&(X.flags&1)!==0&&H$(X,X.actualStartTime,f,I2,B);var J1=X.flags;switch(X.tag){case 22:q_(z,X,B,I,f),J1&2048&&xG(X.alternate,X);break;case 24:q_(z,X,B,I,f),J1&2048&&mG(X.alternate,X);break;default:q_(z,X,B,I,f)}L6=e,X=J}}function M7(_,J,$){if(_.subtreeFlags&a_)for(_=_.child;_!==null;)Pz(_,J,$),_=_.sibling}function Pz(_,J,$){switch(_.tag){case 26:M7(_,J,$),_.flags&a_&&_.memoizedState!==null&&Gw($,z4,_.memoizedState,_.memoizedProps);break;case 5:M7(_,J,$);break;case 3:case 4:var q=z4;z4=$Q(_.stateNode.containerInfo),M7(_,J,$),z4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=a_,a_=16777216,M7(_,J,$),a_=q):M7(_,J,$));break;default:M7(_,J,$)}}function Nz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function U_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=P5();y2=q,Sz(q,_),(q.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(q,p1,d1,"Unmount"),N5(G)}Nz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Cz(_),_=_.sibling}function Cz(_){var J=P5(),$=f4(),q=v4(),G=j4();switch(_.tag){case 0:case 11:case 15:U_(_),_.flags&2048&&uG(_,_.return,U5|s5);break;case 3:var X=Y3();U_(_),_.stateNode.passiveEffectDuration+=R$(X);break;case 12:X=Y3(),U_(_),_.stateNode.passiveEffectDuration+=i9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&M3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~M3,s$(_),(_.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(_,p1,d1,"Disconnect")):U_(_);break;default:U_(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(_,p1,d1,r0,c0),N5(J),S4($),n0=G,c0=q}function s$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=P5();y2=q,Sz(q,_),(q.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(q,p1,d1,"Unmount"),N5(G)}Nz(_)}for(_=_.child;_!==null;)fz(_),_=_.sibling}function fz(_){var J=P5(),$=f4(),q=v4(),G=j4();switch(_.tag){case 0:case 11:case 15:uG(_,_.return,U5),s$(_);break;case 22:var X=_.stateNode;X._visibility&M3&&(X._visibility&=~M3,s$(_));break;default:s$(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(_,p1,d1,r0,c0),N5(J),S4($),n0=G,c0=q}function Sz(_,J){for(;y2!==null;){var $=y2,q=$,G=J,X=P5(),z=f4(),B=v4(),I=j4();switch(q.tag){case 0:case 11:case 15:uG(q,G,U5);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&Q8(G));break;case 24:l9(q.memoizedState.cache)}if((q.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(q,p1,d1,r0,c0),N5(X),S4(z),n0=I,c0=B,q=$.child,q!==null)q.return=$,y2=q;else _:for($=_;y2!==null;){if(q=y2,X=q.sibling,z=q.return,Wz(q),q===$){y2=null;break _}if(X!==null){X.return=z,y2=X;break _}y2=z}}}function TI(){mP.forEach(function(_){return _()})}function vz(){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 f5(_){if((R0&w2)!==k2&&G0!==0)return G0&-G0;var J=Y1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),aG()):q1()}function jz(){if(A5===0)if((G0&536870912)===0||B0){var _=WQ;WQ<<=1,(WQ&3932160)===0&&(WQ=262144),A5=_}else A5=536870912;return _=k5.current,_!==null&&(_.flags|=32),A5}function o0(_,J,$){if(Q9&&console.error("useInsertionEffect must not schedule updates."),vF&&(eQ=!0),_===u0&&(v0===w8||v0===P8)||_.cancelPendingCommit!==null)R7(_,0),Z6(_,G0,A5,!1);if(R2(_,$),(R0&w2)!==k2&&_===u0){if(g4)switch(J.tag){case 0:case 11:case 15:_=X0&&m(X0)||"Unknown",QA.has(_)||(QA.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&&G3(_,J,$),vI(J),_===u0&&((R0&w2)===k2&&(S6|=$),a0===N6&&Z6(_,G0,A5,!1)),E4(_)}function Vz(_,J,$){if((R0&(w2|u5))!==k2)throw Error("Should not already be working.");if(G0!==0&&X0!==null){var q=X0,G=j2();switch(sL){case o_:case w8:var X=D_;h0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,G,g5,void 0,"primary-light")):console.timeStamp("Suspended",X,G,g5,void 0,"primary-light"));break;case P8:X=D_,h0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,G,g5,void 0,"primary-light")):console.timeStamp("Action",X,G,g5,void 0,"primary-light"));break;default:h0&&(q=G-D_,3>q||console.timeStamp("Blocked",D_,G,g5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||b2(_,J))?OI(_,J):pG(_,J,!0);var z=$;do{if(X===v3){J9&&!$&&Z6(_,J,0,!1),J=v0,D_=Y2(),sL=J;break}else{if(q=j2(),G=_.current.alternate,z&&!RI(G)){I5(J),G=V2,X=q,!h0||X<=G||(Q2?Q2.run(console.timeStamp.bind(console,"Teared Render",G,X,W0,z0,"error")):console.timeStamp("Teared Render",G,X,W0,z0,"error")),X8(J,q),X=pG(_,J,!1),z=!1;continue}if(X===I8){if(z=J,_.errorRecoveryDisabledLanes&z)var B=0;else B=_.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){I5(J),PU(V2,q,J,Q2),X8(J,q),J=B;_:{q=_,X=z,z=e_;var I=q.current.memoizedState.isDehydrated;if(I&&(R7(q,B).flags|=256),B=pG(q,B,!1),B!==I8){if(OF&&!I){q.errorRecoveryDisabledLanes|=X,S6|=X,X=N6;break _}q=G5,G5=z,q!==null&&(G5===null?G5=q:G5.push.apply(G5,q))}X=B}if(z=!1,X!==I8)continue;else q=j2()}}if(X===t_){I5(J),PU(V2,q,J,Q2),X8(J,q),R7(_,0),Z6(_,J,0,!0);break}_:{switch($=_,X){case v3:case t_:throw Error("Root did not complete. This is a bug in React.");case N6:if((J&4194048)!==J)break;case iQ:I5(J),VH(V2,q,J,Q2),X8(J,q),G=J,(G&127)!==0?jQ=q:(G&4194048)!==0&&(VQ=q),Z6($,J,A5,!C6);break _;case I8:G5=null;break;case lQ:case cB:break;default:throw Error("Unknown root exit status.")}if(Y1.actQueue!==null)cG($,G,J,G5,_J,aQ,A5,S6,N8,X,null,null,V2,q);else{if((J&62914560)===J&&(z=sQ+dB-j2(),10<z)){if(Z6($,J,A5,!C6),u2($,0,!0)!==0)break _;W4=J,$.timeoutHandle=HA(yz.bind(null,$,G,G5,_J,aQ,J,A5,S6,N8,C6,X,"Throttled",V2,q),z);break _}yz($,G,G5,_J,aQ,J,A5,S6,N8,C6,X,null,V2,q)}}}break}while(1);E4(_)}function yz(_,J,$,q,G,X,z,B,I,f,e,J1,d,Z1){_.timeoutHandle=j8;var N1=J.subtreeFlags,j1=null;if(N1&8192||(N1&16785408)===16785408){if(j1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:F3},Pz(J,X,j1),N1=(X&62914560)===X?sQ-j2():(X&4194048)===X?iB-j2():0,N1=Zw(j1,N1),N1!==null){W4=X,_.cancelPendingCommit=N1(cG.bind(null,_,J,X,$,q,G,z,B,I,e,j1,j1.waitingForViewTransition?"Waiting for the previous Animation":0<j1.count?0<j1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":j1.imgCount===1?"Suspended on an Image":0<j1.imgCount?"Suspended on Images":null,d,Z1)),Z6(_,X,z,!f);return}}cG(_,J,X,$,q,G,z,B,I,e,j1,J1,d,Z1)}function RI(_){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(!$5(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 Z6(_,J,$,q){J&=~IF,J&=~S6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var X=31-e2(G),z=1<<X;q[X]=-1,G&=~z}$!==0&&X5(_,$,J)}function T7(){return(R0&(w2|u5))===k2?(F_(0,!1),!1):!0}function gG(){if(X0!==null){if(v0===B5)var _=X0.return;else _=X0,A$(),nU(_),d7=null,c_=0,_=X0;for(;_!==null;)Qz(_.alternate,_),_=_.return;X0=null}}function X8(_,J){(_&127)!==0&&(R6=J),(_&4194048)!==0&&(a4=J),(_&62914560)!==0&&(rL=J),(_&2080374784)!==0&&(aL=J)}function R7(_,J){h0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",z0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",z0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",z0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",z0,"primary-light"));var $=V2;if(V2=Y2(),G0!==0&&0<$){if(I5(G0),a0===lQ||a0===N6)VH($,V2,J,Q2);else{var q=V2,G=Q2;if(h0&&!(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,W0,z0,X)):console.timeStamp(z,$,q,W0,z0,X)}}X8(G0,V2)}if($=Q2,Q2=null,(J&127)!==0){Q2=V_,G=0<=r4&&r4<R6?R6:r4,q=0<=W8&&W8<R6?R6:W8,X=0<=q?q:0<=G?G:V2,0<=jQ?(I5(2),yH(jQ,X,J,$)):(yQ&127)!==0&&(I5(2),p9(R6,X,P3)),$=G;var B=q,I=y_,f=0<c7,e=O6===j_,J1=O6===vQ;if(G=V2,q=V_,X=_F,z=JF,h0){if(W0="Blocking",0<$?$>G&&($=G):$=G,0<B?B>$&&(B=$):B=$,I!==null&&$>B){var d=f?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+I,B,$,W0,z0,d)):console.timeStamp(f?"Consecutive":"Event: "+I,B,$,W0,z0,d)}G>$&&(B=e?"error":(J&738197653)===J?"tertiary-light":"primary-light",e=J1?"Promise Resolved":e?"Cascading Update":5<G-$?"Update Blocked":"Update",J1=[],z!=null&&J1.push(["Component name",z]),X!=null&&J1.push(["Method name",X]),$={start:$,end:G,detail:{devtools:{properties:J1,track:W0,trackGroup:z0,color:B}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}r4=-1.1,O6=0,JF=_F=null,jQ=-1.1,c7=W8,W8=-1.1,R6=Y2()}if((J&4194048)!==0&&(Q2=k_,G=0<=w3&&w3<a4?a4:w3,$=0<=r5&&r5<a4?a4:r5,q=0<=I6&&I6<a4?a4:I6,X=0<=q?q:0<=$?$:V2,0<=VQ?(I5(256),yH(VQ,X,J,Q2)):(yQ&4194048)!==0&&(I5(256),p9(a4,X,P3)),J1=q,B=L8,I=0<w6,f=$F===vQ,X=V2,q=k_,z=iL,e=dL,h0&&(W0="Transition",0<$?$>X&&($=X):$=X,0<G?G>$&&(G=$):G=$,0<J1?J1>G&&(J1=G):J1=G,G>J1&&B!==null&&(d=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+B,J1,G,W0,z0,d)):console.timeStamp(I?"Consecutive":"Event: "+B,J1,G,W0,z0,d)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,W0,z0,"primary-dark")):console.timeStamp("Action",G,$,W0,z0,"primary-dark")),X>$&&(G=f?"Promise Resolved":5<X-$?"Update Blocked":"Update",J1=[],e!=null&&J1.push(["Component name",e]),z!=null&&J1.push(["Method name",z]),$={start:$,end:X,detail:{devtools:{properties:J1,track:W0,trackGroup:z0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),r5=w3=-1.1,$F=0,VQ=-1.1,w6=I6,I6=-1.1,a4=Y2()),(J&62914560)!==0&&(yQ&62914560)!==0&&(I5(4194304),p9(rL,V2,P3)),(J&2080374784)!==0&&(yQ&2080374784)!==0&&(I5(268435456),p9(aL,V2,P3)),$=_.timeoutHandle,$!==j8&&(_.timeoutHandle=j8,eP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),W4=0,gG(),u0=_,X0=$=X3(_.current,null),G0=J,v0=B5,b5=null,C6=!1,J9=b2(_,J),OF=!1,a0=v3,N8=A5=IF=S6=f6=0,G5=e_=null,aQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-e2(q),X=1<<G,J|=_[G],q&=~X;return t4=J,Y$(),_=xL(),1000<_-hL&&(Y1.recentlyCreatedOwnerStacks=0,hL=_),H4.discardPendingWarnings(),$}function kz(_,J){t1=null,Y1.H=r_,Y1.getCurrentStack=null,g4=!1,j5=null,J===i7||J===bQ?(J=_Y(),v0=o_):J===GF?(J=_Y(),v0=lB):v0=J===BF?RF:J!==null&&typeof J==="object"&&typeof J.then==="function"?n_:dQ,b5=J;var $=X0;$===null?(a0=t_,p$(_,w5(J,_.current))):$.mode&q0&&xU($)}function Dz(){var _=k5.current;return _===null?!0:(G0&4194048)===G0?a5===null?!0:!1:(G0&62914560)===G0||(G0&536870912)!==0?_===a5:!1}function uz(){var _=Y1.H;return Y1.H=r_,_===null?r_:_}function bz(){var _=Y1.A;return Y1.A=xP,_}function t$(_){Q2===null&&(Q2=_._debugTask==null?null:_._debugTask)}function o$(){a0=N6,C6||(G0&4194048)!==G0&&k5.current!==null||(J9=!0),(f6&134217727)===0&&(S6&134217727)===0||u0===null||Z6(u0,G0,A5,!1)}function pG(_,J,$){var q=R0;R0|=w2;var G=uz(),X=bz();if(u0!==_||G0!==J){if(c4){var z=_.memoizedUpdaters;0<z.size&&(Z_(_,G0),z.clear()),O5(_,J)}_J=null,R7(_,J)}J=!1,z=a0;_:do try{if(v0!==B5&&X0!==null){var B=X0,I=b5;switch(v0){case RF:gG(),z=iQ;break _;case o_:case w8:case P8:case n_:k5.current===null&&(J=!0);var f=v0;if(v0=B5,b5=null,O7(_,B,I,f),$&&J9){z=v3;break _}break;default:f=v0,v0=B5,b5=null,O7(_,B,I,f)}}Ez(),z=a0;break}catch(e){kz(_,e)}while(1);return J&&_.shellSuspendCounter++,A$(),R0=q,Y1.H=G,Y1.A=X,X0===null&&(u0=null,G0=0,Y$()),z}function Ez(){for(;X0!==null;)hz(X0)}function OI(_,J){var $=R0;R0|=w2;var q=uz(),G=bz();if(u0!==_||G0!==J){if(c4){var X=_.memoizedUpdaters;0<X.size&&(Z_(_,G0),X.clear()),O5(_,J)}_J=null,tQ=j2()+rB,R7(_,J)}else J9=b2(_,J);_:do try{if(v0!==B5&&X0!==null)J:switch(J=X0,X=b5,v0){case dQ:v0=B5,b5=null,O7(_,J,X,dQ);break;case w8:case P8:if(nH(X)){v0=B5,b5=null,xz(J);break}J=function(){v0!==w8&&v0!==P8||u0!==_||(v0=rQ),E4(_)},X.then(J,J);break _;case o_:v0=rQ;break _;case lB:v0=TF;break _;case rQ:nH(X)?(v0=B5,b5=null,xz(J)):(v0=B5,b5=null,O7(_,J,X,rQ));break;case TF:var z=null;switch(X0.tag){case 26:z=X0.memoizedState;case 5:case 27:var B=X0;if(z?VW(z):B.stateNode.complete){v0=B5,b5=null;var I=B.sibling;if(I!==null)X0=I;else{var f=B.return;f!==null?(X0=f,n$(f)):X0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}v0=B5,b5=null,O7(_,J,X,TF);break;case n_:v0=B5,b5=null,O7(_,J,X,n_);break;case RF:gG(),a0=iQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y1.actQueue!==null?Ez():II();break}catch(e){kz(_,e)}while(1);if(A$(),Y1.H=q,Y1.A=G,R0=$,X0!==null)return v3;return u0=null,G0=0,Y$(),a0}function II(){for(;X0!==null&&!Rw();)hz(X0)}function hz(_){var J=_.alternate;(_.mode&q0)!==a1?(hU(_),J=z1(_,yG,J,_,t4),xU(_)):J=z1(_,yG,J,_,t4),_.memoizedProps=_.pendingProps,J===null?n$(_):X0=J}function xz(_){var J=z1(_,wI,_);_.memoizedProps=_.pendingProps,J===null?n$(_):X0=J}function wI(_){var J=_.alternate,$=(_.mode&q0)!==a1;switch($&&hU(_),_.tag){case 15:case 0:J=tY(J,_,_.pendingProps,_.type,void 0,G0);break;case 11:J=tY(J,_,_.pendingProps,_.type.render,_.ref,G0);break;case 5:nU(_);default:Qz(J,_),_=X0=hH(_,t4),J=yG(J,_,t4)}return $&&xU(_),J}function O7(_,J,$,q){A$(),nU(J),d7=null,c_=0;var G=J.return;try{if(ZI(_,G,J,$,G0)){a0=t_,p$(_,w5($,_.current)),X0=null;return}}catch(X){if(G!==null)throw X0=G,X;a0=t_,p$(_,w5($,_.current)),X0=null;return}if(J.flags&32768){if(B0||q===dQ)_=!0;else if(J9||(G0&536870912)!==0)_=!1;else if(C6=_=!0,q===w8||q===P8||q===o_||q===n_)q=k5.current,q!==null&&q.tag===13&&(q.flags|=16384);mz(J,_)}else n$(J)}function n$(_){var J=_;do{if((J.flags&32768)!==0){mz(J,C6);return}var $=J.alternate;if(_=J.return,hU(J),$=z1(J,KI,$,J,t4),(J.mode&q0)!==a1&&rH(J),$!==null){X0=$;return}if(J=J.sibling,J!==null){X0=J;return}X0=J=_}while(J!==null);a0===v3&&(a0=cB)}function mz(_,J){do{var $=HI(_.alternate,_);if($!==null){$.flags&=32767,X0=$;return}if((_.mode&q0)!==a1){rH(_),$=_.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)){X0=_;return}X0=_=$}while(_!==null);a0=iQ,X0=null}function cG(_,J,$,q,G,X,z,B,I,f,e,J1,d,Z1){_.cancelPendingCommit=null;do G_();while(A2!==j6);if(H4.flushLegacyContextWarning(),H4.flushPendingUnsafeLifecycleWarnings(),(R0&(w2|u5))!==k2)throw Error("Should not already be working.");if(I5($),f===I8?PU(d,Z1,$,Q2):q!==null?aO(d,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,Q2):rO(d,Z1,$,Q2),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,I4(_,$,X,z,B,I),_===u0&&(X0=u0=null,G0=0),$9=J,V6=_,W4=$,NF=X,fF=G,eB=q,CF=Z1,_A=J1,L4=oQ,JA=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,SI(f7,function(){return GJ=window.event,L4===oQ&&(L4=PF),iz(),null})):(_.callbackNode=null,_.callbackPriority=0),I3=null,T6=Y2(),J1!==null&&sO(Z1,T6,J1,Q2),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null,G=C0.p,C0.p=V5,z=R0,R0|=u5;try{AI(_,J,$)}finally{R0=z,C0.p=G,Y1.T=q}}A2=sB,gz(),pz(),cz()}}function gz(){if(A2===sB){A2=j6;var _=V6,J=$9,$=W4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null;var G=C0.p;C0.p=V5;var X=R0;R0|=u5;try{e7=$,_9=_,O$(),Mz(J,_),_9=e7=null,$=hF;var z=SH(_.containerInfo),B=$.focusedElem,I=$.selectionRange;if(z!==B&&B&&B.ownerDocument&&fH(B.ownerDocument.documentElement,B)){if(I!==null&&OU(B)){var{start:f,end:e}=I;if(e===void 0&&(e=f),"selectionStart"in B)B.selectionStart=f,B.selectionEnd=Math.min(e,B.value.length);else{var J1=B.ownerDocument||document,d=J1&&J1.defaultView||window;if(d.getSelection){var Z1=d.getSelection(),N1=B.textContent.length,j1=Math.min(I.start,N1),E0=I.end===void 0?j1:Math.min(I.end,N1);!Z1.extend&&j1>E0&&(z=E0,E0=j1,j1=z);var M0=CH(B,j1),i=CH(B,E0);if(M0&&i&&(Z1.rangeCount!==1||Z1.anchorNode!==M0.node||Z1.anchorOffset!==M0.offset||Z1.focusNode!==i.node||Z1.focusOffset!==i.offset)){var r=J1.createRange();r.setStart(M0.node,M0.offset),Z1.removeAllRanges(),j1>E0?(Z1.addRange(r),Z1.extend(i.node,i.offset)):(r.setEnd(i.node,i.offset),Z1.addRange(r))}}}}J1=[];for(Z1=B;Z1=Z1.parentNode;)Z1.nodeType===1&&J1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<J1.length;B++){var n=J1[B];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}zq=!!EF,hF=EF=null}finally{R0=X,C0.p=G,Y1.T=q}}_.current=J,A2=tB}}function pz(){if(A2===tB){A2=j6;var _=JA;if(_!==null){T6=Y2();var J=O3,$=T6;!h0||$<=J||(P3?P3.run(console.timeStamp.bind(console,_,J,$,W0,z0,"secondary-light")):console.timeStamp(_,J,$,W0,z0,"secondary-light"))}_=V6,J=$9,$=W4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=Y1.T,Y1.T=null;var G=C0.p;C0.p=V5;var X=R0;R0|=u5;try{e7=$,_9=_,O$(),zz(_,J.alternate,J),_9=e7=null}finally{R0=X,C0.p=G,Y1.T=q}}_=CF,J=_A,O3=Y2(),_=J===null?_:T6,J=O3,$=L4===wF,q=Q2,I3!==null?kH(_,J,I3,!1,q):!h0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,W0,z0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,W0,z0,$?"error":"secondary-dark")),A2=oB}}function cz(){if(A2===nB||A2===oB){if(A2===nB){var _=O3;O3=Y2();var J=O3,$=L4===wF;!h0||J<=_||(P3?P3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,W0,z0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,W0,z0,$?" error":"secondary-light")),L4!==wF&&(L4=aB)}A2=j6,Ow(),_=V6;var q=$9;J=W4,$=eB;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?A2=nQ:(A2=j6,$9=V6=null,lz(_,_.pendingLanes),C8=0,$J=null);var X=_.pendingLanes;if(X===0&&(v6=null),G||sz(_),X=j(J),q=q.stateNode,i2&&typeof i2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(X){case V5:var B=fZ;break;case X4:B=SZ;break;case l4:B=f7;break;case BQ:B=vZ;break;default:B=f7}i2.onCommitFiberRoot(S7,q,B,z)}catch(J1){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",J1))}if(c4&&_.memoizedUpdaters.clear(),TI(),$!==null){z=Y1.T,B=C0.p,C0.p=V5,Y1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var f=$[q],e=PI(f.stack);z1(f.source,I,f.value,e)}}finally{Y1.T=z,C0.p=B}}(W4&3)!==0&&G_(),E4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(DQ=!0,_===SF?JJ++:(JJ=0,SF=_)):JJ=0,G||X8(J,O3),F_(0,!1)}}function PI(_){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 lz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,l9(J)))}function G_(){return gz(),pz(),cz(),iz()}function iz(){if(A2!==nQ)return!1;var _=V6,J=NF;NF=0;var $=j(W4),q=l4===0||l4>$?l4:$;$=Y1.T;var G=C0.p;try{C0.p=q,Y1.T=null;var X=fF;fF=null,q=V6;var z=W4;if(A2=j6,$9=V6=null,W4=0,(R0&(w2|u5))!==k2)throw Error("Cannot flush passive effects while already rendering.");I5(z),vF=!0,eQ=!1;var B=0;if(I3=null,B=j2(),L4===aB)p9(O3,B,P3);else{var I=O3,f=B,e=L4===PF;!h0||f<=I||(Q2?Q2.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",I,f,W0,z0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",I,f,W0,z0,"secondary-light"))}I=R0,R0|=u5;var J1=q.current;O$(),Cz(J1);var d=q.current;J1=CF,O$(),Iz(q,d,z,X,J1),sz(q),R0=I;var Z1=j2();if(d=B,J1=Q2,I3!==null?kH(d,Z1,I3,!0,J1):!h0||Z1<=d||(J1?J1.run(console.timeStamp.bind(console,"Remaining Effects",d,Z1,W0,z0,"secondary-dark")):console.timeStamp("Remaining Effects",d,Z1,W0,z0,"secondary-dark")),X8(z,Z1),F_(0,!1),eQ?q===$J?C8++:(C8=0,$J=q):C8=0,eQ=vF=!1,i2&&typeof i2.onPostCommitFiberRoot==="function")try{i2.onPostCommitFiberRoot(S7,q)}catch(j1){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",j1))}var N1=q.current.stateNode;return N1.effectDuration=0,N1.passiveEffectDuration=0,!0}finally{C0.p=G,Y1.T=$,lz(_,J)}}function dz(_,J,$){J=w5($,J),aH(J),J=OG(_.stateNode,J,2),_=Q6(_,J,2),_!==null&&(R2(_,2),E4(_))}function N0(_,J,$){if(Q9=!1,_.tag===3)dz(_,_,$);else{for(;J!==null;){if(J.tag===3){dz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(v6===null||!v6.has(q))){_=w5($,_),aH(_),$=IG(2),q=Q6(J,$,2),q!==null&&(wG($,q,J,_),R2(q,2),E4(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,W1(J,function(B,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,w)},X,z)}$=$.next}while($!==G)}}catch(B){C0(J,J.return,B)}}function B7(_,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,B=z.destroy;B!==void 0&&(z.destroy=void 0,(_&U5)!==xQ&&(Q9=!0),G=J,W1(G,uP,G,$,B),(_&U5)!==xQ&&(Q9=!1))}q=q.next}while(q!==X)}}catch(w){C0(J,J.return,w)}}function Uz(_,J){b4(_)?(u4(),$_(J,_),D4()):$_(J,_)}function uG(_,J,$){b4(_)?(u4(),B7($,_,J),D4()):B7($,_,J)}function Gz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||n7||($.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{W1(_,FY,J,$)}catch(q){C0(_,_.return,q)}}}function YI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function zI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||n7||(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=X8(_.type,$),X=W1(_,YI,J,G,q);$=gB,X!==void 0||$.has(_.type)||($.add(_.type),W1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(z){C0(_,_.return,z)}}function Zz(_,J,$){$.props=X8(_.type,_.memoizedProps),$.state=_.memoizedState,b4(_)?(u4(),W1(_,GB,_,J,$),D4()):W1(_,GB,_,J,$)}function WI(_){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(b4(_))try{u4(),_.refCleanup=J($)}finally{D4()}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 Q_(_,J){try{W1(_,WI,_)}catch($){C0(_,J,$)}}function E4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(b4(_))try{u4(),W1(_,q)}finally{D4(_)}else W1(_,q)}catch(G){C0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(b4(_))try{u4(),W1(_,$,null)}finally{D4(_)}else W1(_,$,null)}catch(G){C0(_,J,G)}else $.current=null}function Fz(_,J,$,q){var G=_.memoizedProps,X=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof G==="function"&&G(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(X,J,q,$)}function LI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Xz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{W1(_,xI,q,J,$,_)}catch(G){C0(_,_.return,G)}}function bG(_,J,$){try{W1(_,gI,_.stateNode,_.type,$,J,_)}catch(q){C0(_,_.return,q)}}function Kz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&H6(_.type)||_.tag===4}function EG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Kz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&H6(_.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?(AW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(AW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=K3));else if(q!==4&&(q===27&&H6(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(hG(_,J,$),_=_.sibling;_!==null;)hG(_,J,$),_=_.sibling}function r$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&H6(_.type)&&($=_.stateNode),_=_.child,_!==null))for(r$(_,J,$),_=_.sibling;_!==null;)r$(_,J,$),_=_.sibling}function BI(_){for(var J,$=_.return;$!==null;){if(Kz($)){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(_),r$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(BW($),J.flags&=-33),J=EG(_),r$(_,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 Hz(_){var{stateNode:J,memoizedProps:$}=_;try{W1(_,Qw,_.type,$,J,_)}catch(q){C0(_,_.return,q)}}function Yz(_,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 AI(_,J){if(_=_.containerInfo,EF=zq,_=SH(_),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(N1){$=null;break _}var z=0,B=-1,w=-1,f=0,e=0,J1=_,d=null;J:for(;;){for(var Z1;;){if(J1!==$||G!==0&&J1.nodeType!==3||(B=z+G),J1!==X||q!==0&&J1.nodeType!==3||(w=z+q),J1.nodeType===3&&(z+=J1.nodeValue.length),(Z1=J1.firstChild)===null)break;d=J1,J1=Z1}for(;;){if(J1===_)break J;if(d===$&&++f===G&&(B=z),d===X&&++e===q&&(w=z),(Z1=J1.nextSibling)!==null)break;J1=d,d=J1.parentNode}J1=Z1}$=B===-1||w===-1?null:{start:B,end:w}}else $=null}$=$||{start:0,end:0}}else $=null;hF={focusedElem:_,selectionRange:$},zq=!1;for(D2=J;D2!==null;)if(J=D2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,D2=_;else for(;D2!==null;){switch(_=J=D2,$=_.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&&zI(_,$);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,D2=_;break}D2=J.return}}function zz(_,J,$){var q=I5(),G=v4(),X=y4(),z=k4(),B=$.flags;switch($.tag){case 0:case 11:case 15:h4(_,$),B&4&&qz($,y5|t5);break;case 1:if(h4(_,$),B&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||n7||(_.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")),b4($)?(u4(),W1($,UF,$,_),D4()):W1($,UF,$,_);else{var w=X8($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||n7||(_.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")),b4($)?(u4(),W1($,QB,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate),D4()):W1($,QB,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate)}B&64&&Gz($),B&512&&Q_($,$.return);break;case 3:if(J=W3(),h4(_,$),B&64&&(B=$.updateQueue,B!==null)){if(w=null,$.child!==null)switch($.child.tag){case 27:case 5:w=$.child.stateNode;break;case 1:w=$.child.stateNode}try{W1($,FY,B,w)}catch(e){C0($,$.return,e)}}_.effectDuration+=R$(J);break;case 27:J===null&&B&4&&Hz($);case 26:case 5:if(h4(_,$),J===null){if(B&4)Xz($);else if(B&64){_=$.type,J=$.memoizedProps,w=$.stateNode;try{W1($,mI,w,_,J,$)}catch(e){C0($,$.return,e)}}}B&512&&Q_($,$.return);break;case 12:if(B&4){B=W3(),h4(_,$),_=$.stateNode,_.effectDuration+=i9(B);try{W1($,Fz,$,J,O6,_.effectDuration)}catch(e){C0($,$.return,e)}}else h4(_,$);break;case 31:h4(_,$),B&4&&Bz(_,$);break;case 13:h4(_,$),B&4&&Az(_,$),B&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(B=CI.bind(null,$),eI(_,B))));break;case 22:if(B=$.memoizedState!==null||v3,!B){J=J!==null&&J.memoizedState!==null||B2,w=v3;var f=B2;v3=B,(B2=J)&&!f?(x4(_,$,($.subtreeFlags&8772)!==0),($.mode&U0)!==s1&&0<=g1&&0<=d1&&0.05<d1-g1&&K$($,g1,d1)):h4(_,$),v3=w,B2=f}break;case 30:break;default:h4(_,$)}($.mode&U0)!==s1&&0<=g1&&0<=d1&&((_2||0.05<a0)&&S4($,g1,d1,a0,l0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<d1-g1&&(Yz($.return.alternate,$.return)||f4($,g1,d1,"Mount"))),w5(q),V4(G),l0=X,_2=z}function Wz(_){var J=_.alternate;J!==null&&(_.alternate=null,Wz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&P1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function A3(_,J,$){for($=$.child;$!==null;)Lz(_,J,$),$=$.sibling}function Lz(_,J,$){if(d2&&typeof d2.onCommitFiberUnmount==="function")try{d2.onCommitFiberUnmount(S7,$)}catch(f){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",f))}var q=I5(),G=v4(),X=y4(),z=k4();switch($.tag){case 26:B2||E4($,J),A3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:B2||E4($,J);var B=A2,w=L5;H6($.type)&&(A2=$.stateNode,L5=!1),A3(_,J,$),W1($,Y_,$.stateNode),A2=B,L5=w;break;case 5:B2||E4($,J);case 6:if(B=A2,w=L5,A2=null,A3(_,J,$),A2=B,L5=w,A2!==null)if(L5)try{W1($,lI,A2,$.stateNode)}catch(f){C0($,J,f)}else try{W1($,cI,A2,$.stateNode)}catch(f){C0($,J,f)}break;case 18:A2!==null&&(L5?(_=A2,MW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),P7(_)):MW(A2,$.stateNode));break;case 4:B=A2,w=L5,A2=$.stateNode.containerInfo,L5=!0,A3(_,J,$),A2=B,L5=w;break;case 0:case 11:case 14:case 15:B7(U5,$,J),B2||DG($,J,y5),A3(_,J,$);break;case 1:B2||(E4($,J),B=$.stateNode,typeof B.componentWillUnmount==="function"&&Zz($,J,B)),A3(_,J,$);break;case 21:A3(_,J,$);break;case 22:B2=(B=B2)||$.memoizedState!==null,A3(_,J,$),B2=B;break;default:A3(_,J,$)}($.mode&U0)!==s1&&0<=g1&&0<=d1&&(_2||0.05<a0)&&S4($,g1,d1,a0,l0),w5(q),V4(G),l0=X,_2=z}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{W1(J,Jw,_)}catch($){C0(J,J.return,$)}}}function Az(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{W1(J,$w,_)}catch($){C0(J,J.return,$)}}function MI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new pB),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new pB),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function a$(_,J){var $=MI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),d4)if(e7!==null&&_9!==null)Z_(_9,e7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=fI.bind(null,_,q);q.then(G,G)}})}function z5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,X=J,z=$[q],B=I5(),w=X;_:for(;w!==null;){switch(w.tag){case 27:if(H6(w.type)){A2=w.stateNode,L5=!1;break _}break;case 5:A2=w.stateNode,L5=!1;break _;case 3:case 4:A2=w.stateNode.containerInfo,L5=!0;break _}w=w.return}if(A2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Lz(G,X,z),A2=null,L5=!1,(z.mode&U0)!==s1&&0<=g1&&0<=d1&&0.05<d1-g1&&f4(z,g1,d1,"Unmount"),w5(B),G=z,X=G.alternate,X!==null&&(X.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Mz(J,_),J=J.sibling}function Mz(_,J){var $=I5(),q=v4(),G=y4(),X=k4(),z=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:z5(J,_),W5(_),B&4&&(B7(U5|t5,_,_.return),$_(U5|t5,_),DG(_,_.return,y5|t5));break;case 1:if(z5(J,_),W5(_),B&512&&(B2||z===null||E4(z,z.return)),B&64&&v3&&(B=_.updateQueue,B!==null&&(z=B.callbacks,z!==null))){var w=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=w===null?z:w.concat(z)}break;case 26:if(w=L4,z5(J,_),W5(_),B&512&&(B2||z===null||E4(z,z.return)),B&4){var f=z!==null?z.memoizedState:null;if(B=_.memoizedState,z===null)if(B===null)if(_.stateNode===null){_:{B=_.type,z=_.memoizedProps,w=w.ownerDocument||w;J:switch(B){case"title":if(f=w.getElementsByTagName("title")[0],!f||f[T_]||f[p2]||f.namespaceURI===v7||f.hasAttribute("itemprop"))f=w.createElement(B),w.head.insertBefore(f,w.querySelector("head > title"));g2(f,B,z),f[p2]=_,E1(f),B=f;break _;case"link":var e=jW("link","href",w).get(B+(z.href||""));if(e){for(var J1=0;J1<e.length;J1++)if(f=e[J1],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)){e.splice(J1,1);break J}}f=w.createElement(B),g2(f,B,z),w.head.appendChild(f);break;case"meta":if(e=jW("meta","content",w).get(B+(z.content||""))){for(J1=0;J1<e.length;J1++)if(f=e[J1],A1(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)){e.splice(J1,1);break J}}f=w.createElement(B),g2(f,B,z),w.head.appendChild(f);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}f[p2]=_,E1(f),B=f}_.stateNode=B}else vW(w,_.type,_.stateNode);else _.stateNode=SW(w,B,_.memoizedProps);else f!==B?(f===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):f.count--,B===null?vW(w,_.type,_.stateNode):SW(w,B,_.memoizedProps)):B===null&&_.stateNode!==null&&bG(_,_.memoizedProps,z.memoizedProps)}break;case 27:z5(J,_),W5(_),B&512&&(B2||z===null||E4(z,z.return)),z!==null&&B&4&&bG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(z5(J,_),W5(_),B&512&&(B2||z===null||E4(z,z.return)),_.flags&32){w=_.stateNode;try{W1(_,BW,w)}catch(V1){C0(_,_.return,V1)}}B&4&&_.stateNode!=null&&(w=_.memoizedProps,bG(_,w,z!==null?z.memoizedProps:w)),B&1024&&(MF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(z5(J,_),W5(_),B&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.");B=_.memoizedProps,z=z!==null?z.memoizedProps:B,w=_.stateNode;try{W1(_,pI,w,z,B)}catch(V1){C0(_,_.return,V1)}}break;case 3:if(w=W3(),Kq=null,f=L4,L4=$Q(J.containerInfo),z5(J,_),L4=f,W5(_),B&4&&z!==null&&z.memoizedState.isDehydrated)try{W1(_,_w,J.containerInfo)}catch(V1){C0(_,_.return,V1)}MF&&(MF=!1,Tz(_)),J.effectDuration+=R$(w);break;case 4:B=L4,L4=$Q(_.stateNode.containerInfo),z5(J,_),W5(_),L4=B;break;case 12:B=W3(),z5(J,_),W5(_),_.stateNode.effectDuration+=i9(B);break;case 31:z5(J,_),W5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 13:z5(J,_),W5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(sQ=y2()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 22:w=_.memoizedState!==null;var d=z!==null&&z.memoizedState!==null,Z1=v3,N1=B2;if(v3=Z1||w,B2=N1||d,z5(J,_),B2=N1,v3=Z1,d&&!w&&!Z1&&!N1&&(_.mode&U0)!==s1&&0<=g1&&0<=d1&&0.05<d1-g1&&K$(_,g1,d1),W5(_),B&8192)_:for(J=_.stateNode,J._visibility=w?J._visibility&~S_:J._visibility|S_,!w||z===null||d||v3||B2||(K8(_),(_.mode&U0)!==s1&&0<=g1&&0<=d1&&0.05<d1-g1&&f4(_,g1,d1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){d=z=J;try{f=d.stateNode,w?W1(d,dI,f):W1(d,sI,d.stateNode,d.memoizedProps)}catch(V1){C0(d,d.return,V1)}}}else if(J.tag===6){if(z===null){d=J;try{e=d.stateNode,w?W1(d,rI,e):W1(d,tI,e,d.memoizedProps)}catch(V1){C0(d,d.return,V1)}}}else if(J.tag===18){if(z===null){d=J;try{J1=d.stateNode,w?W1(d,iI,J1):W1(d,aI,d.stateNode)}catch(V1){C0(d,d.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}B&4&&(B=_.updateQueue,B!==null&&(z=B.retryQueue,z!==null&&(B.retryQueue=null,a$(_,z))));break;case 19:z5(J,_),W5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 30:break;case 21:break;default:z5(J,_),W5(_)}(_.mode&U0)!==s1&&0<=g1&&0<=d1&&((_2||0.05<a0)&&S4(_,g1,d1,a0,l0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<d1-g1&&(Yz(_.return.alternate,_.return)||f4(_,g1,d1,"Mount"))),w5($),V4(q),l0=G,_2=X}function W5(_){var J=_.flags;if(J&2){try{W1(_,BI,_)}catch($){C0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Tz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Tz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function h4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)zz(_,J.alternate,J),J=J.sibling}function Rz(_){var J=I5(),$=v4(),q=y4(),G=k4();switch(_.tag){case 0:case 11:case 14:case 15:DG(_,_.return,y5),K8(_);break;case 1:E4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Zz(_,_.return,X),K8(_);break;case 27:W1(_,Y_,_.stateNode);case 26:case 5:E4(_,_.return),K8(_);break;case 22:_.memoizedState===null&&K8(_);break;case 30:K8(_);break;default:K8(_)}(_.mode&U0)!==s1&&0<=g1&&0<=d1&&(_2||0.05<a0)&&S4(_,g1,d1,a0,l0),w5(J),V4($),l0=q,_2=G}function K8(_){for(_=_.child;_!==null;)Rz(_),_=_.sibling}function Oz(_,J,$,q){var G=I5(),X=v4(),z=y4(),B=k4(),w=$.flags;switch($.tag){case 0:case 11:case 15:x4(_,$,q),qz($,y5);break;case 1:if(x4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&W1($,UF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{W1($,_I,J,_)}catch(f){C0($,$.return,f)}}q&&w&64&&Gz($),Q_($,$.return);break;case 27:Hz($);case 26:case 5:x4(_,$,q),q&&J===null&&w&4&&Xz($),Q_($,$.return);break;case 12:if(q&&w&4){w=W3(),x4(_,$,q),q=$.stateNode,q.effectDuration+=i9(w);try{W1($,Fz,$,J,O6,q.effectDuration)}catch(f){C0($,$.return,f)}}else x4(_,$,q);break;case 31:x4(_,$,q),q&&w&4&&Bz(_,$);break;case 13:x4(_,$,q),q&&w&4&&Az(_,$);break;case 22:$.memoizedState===null&&x4(_,$,q),Q_($,$.return);break;case 30:break;default:x4(_,$,q)}($.mode&U0)!==s1&&0<=g1&&0<=d1&&(_2||0.05<a0)&&S4($,g1,d1,a0,l0),w5(G),V4(X),l0=z,_2=B}function x4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Oz(_,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&&U8(_),$!=null&&l9($))}function mG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(U8(J),_!=null&&l9(_))}function X4(_,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;Iz(_,J,$,q,X!==null?X.actualStartTime:G),J=X}}function Iz(_,J,$,q,G){var X=I5(),z=v4(),B=y4(),w=k4(),f=A6,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&U0)!==s1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,G,P2,$),X4(_,J,$,q,G),e&2048&&Uz(J,G5|t5);break;case 1:(J.mode&U0)!==s1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&H$(J,J.actualStartTime,G,P2,$)),X4(_,J,$,q,G);break;case 3:var J1=W3(),d=P2;P2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,X4(_,J,$,q,G),P2=d,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(U8(q),$!=null&&l9($))),_.passiveEffectDuration+=R$(J1);break;case 12:if(e&2048){e=W3(),X4(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=i9(e);try{W1(J,LI,J,J.alternate,O6,_.passiveEffectDuration)}catch(Z1){C0(J,J.return,Z1)}}else X4(_,J,$,q,G);break;case 31:e=P2,J1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,J1!==null&&d===null?(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(P2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,G,J1)):P2=!0):P2=!1,X4(_,J,$,q,G),P2=e;break;case 13:e=P2,J1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,J1===null||J1.dehydrated===null||d!==null&&d.dehydrated!==null?P2=!1:(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(P2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,G,J1)):P2=!0),X4(_,J,$,q,G),P2=e;break;case 23:break;case 22:d=J.stateNode,J1=J.alternate,J.memoizedState!==null?d._visibility&R3?X4(_,J,$,q,G):q_(_,J,$,q,G):d._visibility&R3?X4(_,J,$,q,G):(d._visibility|=R3,A7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&U0)===s1||P2||(_=J.actualStartTime,0<=_&&0.05<G-_&&K$(J,_,G),0<=g1&&0<=d1&&0.05<d1-g1&&K$(J,g1,d1))),e&2048&&xG(J1,J);break;case 24:X4(_,J,$,q,G),e&2048&&mG(J.alternate,J);break;default:X4(_,J,$,q,G)}if((J.mode&U0)!==s1){if(_=!P2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&f4(J,$,G,"Mount");0<=g1&&0<=d1&&((_2||0.05<a0)&&S4(J,g1,d1,a0,l0),_&&0.05<d1-g1&&f4(J,g1,d1,"Mount"))}w5(X),V4(z),l0=B,_2=w,A6=f}function A7(_,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;wz(_,J,$,q,G,z!==null?z.actualStartTime:X),J=z}}function wz(_,J,$,q,G,X){var z=I5(),B=v4(),w=y4(),f=k4(),e=A6;G&&(J.mode&U0)!==s1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,X,P2,$);var J1=J.flags;switch(J.tag){case 0:case 11:case 15:A7(_,J,$,q,G,X),Uz(J,G5);break;case 23:break;case 22:var d=J.stateNode;J.memoizedState!==null?d._visibility&R3?A7(_,J,$,q,G,X):q_(_,J,$,q,X):(d._visibility|=R3,A7(_,J,$,q,G,X)),G&&J1&2048&&xG(J.alternate,J);break;case 24:A7(_,J,$,q,G,X),G&&J1&2048&&mG(J.alternate,J);break;default:A7(_,J,$,q,G,X)}(J.mode&U0)!==s1&&0<=g1&&0<=d1&&(_2||0.05<a0)&&S4(J,g1,d1,a0,l0),w5(z),V4(B),l0=w,_2=f,A6=e}function q_(_,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=_,B=$,w=q,f=J!==null?J.actualStartTime:G,e=A6;(X.mode&U0)!==s1&&0<X.actualStartTime&&(X.flags&1)!==0&&H$(X,X.actualStartTime,f,P2,B);var J1=X.flags;switch(X.tag){case 22:q_(z,X,B,w,f),J1&2048&&xG(X.alternate,X);break;case 24:q_(z,X,B,w,f),J1&2048&&mG(X.alternate,X);break;default:q_(z,X,B,w,f)}A6=e,X=J}}function M7(_,J,$){if(_.subtreeFlags&a_)for(_=_.child;_!==null;)Pz(_,J,$),_=_.sibling}function Pz(_,J,$){switch(_.tag){case 26:M7(_,J,$),_.flags&a_&&_.memoizedState!==null&&Gw($,L4,_.memoizedState,_.memoizedProps);break;case 5:M7(_,J,$);break;case 3:case 4:var q=L4;L4=$Q(_.stateNode.containerInfo),M7(_,J,$),L4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=a_,a_=16777216,M7(_,J,$),a_=q):M7(_,J,$));break;default:M7(_,J,$)}}function Nz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function U_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=I5();D2=q,Sz(q,_),(q.mode&U0)!==s1&&0<=g1&&0<=d1&&0.05<d1-g1&&f4(q,g1,d1,"Unmount"),w5(G)}Nz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Cz(_),_=_.sibling}function Cz(_){var J=I5(),$=v4(),q=y4(),G=k4();switch(_.tag){case 0:case 11:case 15:U_(_),_.flags&2048&&uG(_,_.return,G5|t5);break;case 3:var X=W3();U_(_),_.stateNode.passiveEffectDuration+=R$(X);break;case 12:X=W3(),U_(_),_.stateNode.passiveEffectDuration+=i9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&R3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~R3,s$(_),(_.mode&U0)!==s1&&0<=g1&&0<=d1&&0.05<d1-g1&&f4(_,g1,d1,"Disconnect")):U_(_);break;default:U_(_)}(_.mode&U0)!==s1&&0<=g1&&0<=d1&&(_2||0.05<a0)&&S4(_,g1,d1,a0,l0),w5(J),V4($),_2=G,l0=q}function s$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=I5();D2=q,Sz(q,_),(q.mode&U0)!==s1&&0<=g1&&0<=d1&&0.05<d1-g1&&f4(q,g1,d1,"Unmount"),w5(G)}Nz(_)}for(_=_.child;_!==null;)fz(_),_=_.sibling}function fz(_){var J=I5(),$=v4(),q=y4(),G=k4();switch(_.tag){case 0:case 11:case 15:uG(_,_.return,G5),s$(_);break;case 22:var X=_.stateNode;X._visibility&R3&&(X._visibility&=~R3,s$(_));break;default:s$(_)}(_.mode&U0)!==s1&&0<=g1&&0<=d1&&(_2||0.05<a0)&&S4(_,g1,d1,a0,l0),w5(J),V4($),_2=G,l0=q}function Sz(_,J){for(;D2!==null;){var $=D2,q=$,G=J,X=I5(),z=v4(),B=y4(),w=k4();switch(q.tag){case 0:case 11:case 15:uG(q,G,G5);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&U8(G));break;case 24:l9(q.memoizedState.cache)}if((q.mode&U0)!==s1&&0<=g1&&0<=d1&&(_2||0.05<a0)&&S4(q,g1,d1,a0,l0),w5(X),V4(z),_2=w,l0=B,q=$.child,q!==null)q.return=$,D2=q;else _:for($=_;D2!==null;){if(q=D2,X=q.sibling,z=q.return,Wz(q),q===$){D2=null;break _}if(X!==null){X.return=z,D2=X;break _}D2=z}}}function TI(){mP.forEach(function(_){return _()})}function jz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||z1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function N5(_){if((O0&N2)!==u2&&Z0!==0)return Z0&-Z0;var J=z1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),aG()):q1()}function vz(){if(A5===0)if((Z0&536870912)===0||A0){var _=WQ;WQ<<=1,(WQ&3932160)===0&&(WQ=262144),A5=_}else A5=536870912;return _=V5.current,_!==null&&(_.flags|=32),A5}function e0(_,J,$){if(Q9&&console.error("useInsertionEffect must not schedule updates."),jF&&(eQ=!0),_===b0&&(V0===N8||V0===C8)||_.cancelPendingCommit!==null)R7(_,0),X6(_,Z0,A5,!1);if(I2(_,$),(O0&N2)!==u2&&_===b0){if(l4)switch(J.tag){case 0:case 11:case 15:_=K0&&m(K0)||"Unknown",QA.has(_)||(QA.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 d4&&G4(_,J,$),jI(J),_===b0&&((O0&N2)===u2&&(v6|=$),s0===f6&&X6(_,Z0,A5,!1)),m4(_)}function Vz(_,J,$){if((O0&(N2|k5))!==u2)throw Error("Should not already be working.");if(Z0!==0&&K0!==null){var q=K0,G=y2();switch(sL){case o_:case N8:var X=D_;x0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,G,p5,void 0,"primary-light")):console.timeStamp("Suspended",X,G,p5,void 0,"primary-light"));break;case C8:X=D_,x0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,G,p5,void 0,"primary-light")):console.timeStamp("Action",X,G,p5,void 0,"primary-light"));break;default:x0&&(q=G-D_,3>q||console.timeStamp("Blocked",D_,G,p5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||j2(_,J))?OI(_,J):pG(_,J,!0);var z=$;do{if(X===V3){J9&&!$&&X6(_,J,0,!1),J=V0,D_=z2(),sL=J;break}else{if(q=y2(),G=_.current.alternate,z&&!RI(G)){R5(J),G=k2,X=q,!x0||X<=G||(U2?U2.run(console.timeStamp.bind(console,"Teared Render",G,X,L0,z0,"error")):console.timeStamp("Teared Render",G,X,L0,z0,"error")),H8(J,q),X=pG(_,J,!1),z=!1;continue}if(X===P8){if(z=J,_.errorRecoveryDisabledLanes&z)var B=0;else B=_.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){R5(J),PU(k2,q,J,U2),H8(J,q),J=B;_:{q=_,X=z,z=e_;var w=q.current.memoizedState.isDehydrated;if(w&&(R7(q,B).flags|=256),B=pG(q,B,!1),B!==P8){if(OF&&!w){q.errorRecoveryDisabledLanes|=X,v6|=X,X=f6;break _}q=Z5,Z5=z,q!==null&&(Z5===null?Z5=q:Z5.push.apply(Z5,q))}X=B}if(z=!1,X!==P8)continue;else q=y2()}}if(X===t_){R5(J),PU(k2,q,J,U2),H8(J,q),R7(_,0),X6(_,J,0,!0);break}_:{switch($=_,X){case V3:case t_:throw Error("Root did not complete. This is a bug in React.");case f6:if((J&4194048)!==J)break;case iQ:R5(J),VH(k2,q,J,U2),H8(J,q),G=J,(G&127)!==0?vQ=q:(G&4194048)!==0&&(VQ=q),X6($,J,A5,!S6);break _;case P8:Z5=null;break;case lQ:case cB:break;default:throw Error("Unknown root exit status.")}if(z1.actQueue!==null)cG($,G,J,Z5,_J,aQ,A5,v6,f8,X,null,null,k2,q);else{if((J&62914560)===J&&(z=sQ+dB-y2(),10<z)){if(X6($,J,A5,!S6),S2($,0,!0)!==0)break _;B4=J,$.timeoutHandle=HA(yz.bind(null,$,G,Z5,_J,aQ,J,A5,v6,f8,S6,X,"Throttled",k2,q),z);break _}yz($,G,Z5,_J,aQ,J,A5,v6,f8,S6,X,null,k2,q)}}}break}while(1);m4(_)}function yz(_,J,$,q,G,X,z,B,w,f,e,J1,d,Z1){_.timeoutHandle=y8;var N1=J.subtreeFlags,V1=null;if(N1&8192||(N1&16785408)===16785408){if(V1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:K3},Pz(J,X,V1),N1=(X&62914560)===X?sQ-y2():(X&4194048)===X?iB-y2():0,N1=Zw(V1,N1),N1!==null){B4=X,_.cancelPendingCommit=N1(cG.bind(null,_,J,X,$,q,G,z,B,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,d,Z1)),X6(_,X,z,!f);return}}cG(_,J,X,$,q,G,z,B,w,e,V1,J1,d,Z1)}function RI(_){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(!Q5(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 X6(_,J,$,q){J&=~IF,J&=~v6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var X=31-_5(G),z=1<<X;q[X]=-1,G&=~z}$!==0&&K5(_,$,J)}function T7(){return(O0&(N2|k5))===u2?(F_(0,!1),!1):!0}function gG(){if(K0!==null){if(V0===B5)var _=K0.return;else _=K0,A$(),nU(_),d7=null,c_=0,_=K0;for(;_!==null;)Qz(_.alternate,_),_=_.return;K0=null}}function H8(_,J){(_&127)!==0&&(I6=J),(_&4194048)!==0&&(o4=J),(_&62914560)!==0&&(rL=J),(_&2080374784)!==0&&(aL=J)}function R7(_,J){x0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",z0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",z0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",z0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",z0,"primary-light"));var $=k2;if(k2=z2(),Z0!==0&&0<$){if(R5(Z0),s0===lQ||s0===f6)VH($,k2,J,U2);else{var q=k2,G=U2;if(x0&&!(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,L0,z0,X)):console.timeStamp(z,$,q,L0,z0,X)}}H8(Z0,k2)}if($=U2,U2=null,(J&127)!==0){U2=V_,G=0<=t4&&t4<I6?I6:t4,q=0<=B8&&B8<I6?I6:B8,X=0<=q?q:0<=G?G:k2,0<=vQ?(R5(2),yH(vQ,X,J,$)):(yQ&127)!==0&&(R5(2),p9(I6,X,C3)),$=G;var B=q,w=y_,f=0<c7,e=w6===v_,J1=w6===jQ;if(G=k2,q=V_,X=_F,z=JF,x0){if(L0="Blocking",0<$?$>G&&($=G):$=G,0<B?B>$&&(B=$):B=$,w!==null&&$>B){var d=f?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+w,B,$,L0,z0,d)):console.timeStamp(f?"Consecutive":"Event: "+w,B,$,L0,z0,d)}G>$&&(B=e?"error":(J&738197653)===J?"tertiary-light":"primary-light",e=J1?"Promise Resolved":e?"Cascading Update":5<G-$?"Update Blocked":"Update",J1=[],z!=null&&J1.push(["Component name",z]),X!=null&&J1.push(["Method name",X]),$={start:$,end:G,detail:{devtools:{properties:J1,track:L0,trackGroup:z0,color:B}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}t4=-1.1,w6=0,JF=_F=null,vQ=-1.1,c7=B8,B8=-1.1,I6=z2()}if((J&4194048)!==0&&(U2=k_,G=0<=N3&&N3<o4?o4:N3,$=0<=a5&&a5<o4?o4:a5,q=0<=P6&&P6<o4?o4:P6,X=0<=q?q:0<=$?$:k2,0<=VQ?(R5(256),yH(VQ,X,J,U2)):(yQ&4194048)!==0&&(R5(256),p9(o4,X,C3)),J1=q,B=A8,w=0<N6,f=$F===jQ,X=k2,q=k_,z=iL,e=dL,x0&&(L0="Transition",0<$?$>X&&($=X):$=X,0<G?G>$&&(G=$):G=$,0<J1?J1>G&&(J1=G):J1=G,G>J1&&B!==null&&(d=w?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+B,J1,G,L0,z0,d)):console.timeStamp(w?"Consecutive":"Event: "+B,J1,G,L0,z0,d)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,L0,z0,"primary-dark")):console.timeStamp("Action",G,$,L0,z0,"primary-dark")),X>$&&(G=f?"Promise Resolved":5<X-$?"Update Blocked":"Update",J1=[],e!=null&&J1.push(["Component name",e]),z!=null&&J1.push(["Method name",z]),$={start:$,end:X,detail:{devtools:{properties:J1,track:L0,trackGroup:z0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),a5=N3=-1.1,$F=0,VQ=-1.1,N6=P6,P6=-1.1,o4=z2()),(J&62914560)!==0&&(yQ&62914560)!==0&&(R5(4194304),p9(rL,k2,C3)),(J&2080374784)!==0&&(yQ&2080374784)!==0&&(R5(268435456),p9(aL,k2,C3)),$=_.timeoutHandle,$!==y8&&(_.timeoutHandle=y8,eP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),B4=0,gG(),b0=_,K0=$=H3(_.current,null),Z0=J,V0=B5,D5=null,S6=!1,J9=j2(_,J),OF=!1,s0=V3,f8=A5=IF=v6=j6=0,Z5=e_=null,aQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-_5(q),X=1<<G,J|=_[G],q&=~X;return e4=J,Y$(),_=xL(),1000<_-hL&&(z1.recentlyCreatedOwnerStacks=0,hL=_),z4.discardPendingWarnings(),$}function kz(_,J){n1=null,z1.H=r_,z1.getCurrentStack=null,l4=!1,S5=null,J===i7||J===bQ?(J=_Y(),V0=o_):J===GF?(J=_Y(),V0=lB):V0=J===BF?RF:J!==null&&typeof J==="object"&&typeof J.then==="function"?n_:dQ,D5=J;var $=K0;$===null?(s0=t_,p$(_,O5(J,_.current))):$.mode&U0&&xU($)}function Dz(){var _=V5.current;return _===null?!0:(Z0&4194048)===Z0?s5===null?!0:!1:(Z0&62914560)===Z0||(Z0&536870912)!==0?_===s5:!1}function uz(){var _=z1.H;return z1.H=r_,_===null?r_:_}function bz(){var _=z1.A;return z1.A=xP,_}function t$(_){U2===null&&(U2=_._debugTask==null?null:_._debugTask)}function o$(){s0=f6,S6||(Z0&4194048)!==Z0&&V5.current!==null||(J9=!0),(j6&134217727)===0&&(v6&134217727)===0||b0===null||X6(b0,Z0,A5,!1)}function pG(_,J,$){var q=O0;O0|=N2;var G=uz(),X=bz();if(b0!==_||Z0!==J){if(d4){var z=_.memoizedUpdaters;0<z.size&&(Z_(_,Z0),z.clear()),x5(_,J)}_J=null,R7(_,J)}J=!1,z=s0;_:do try{if(V0!==B5&&K0!==null){var B=K0,w=D5;switch(V0){case RF:gG(),z=iQ;break _;case o_:case N8:case C8:case n_:V5.current===null&&(J=!0);var f=V0;if(V0=B5,D5=null,O7(_,B,w,f),$&&J9){z=V3;break _}break;default:f=V0,V0=B5,D5=null,O7(_,B,w,f)}}Ez(),z=s0;break}catch(e){kz(_,e)}while(1);return J&&_.shellSuspendCounter++,A$(),O0=q,z1.H=G,z1.A=X,K0===null&&(b0=null,Z0=0,Y$()),z}function Ez(){for(;K0!==null;)hz(K0)}function OI(_,J){var $=O0;O0|=N2;var q=uz(),G=bz();if(b0!==_||Z0!==J){if(d4){var X=_.memoizedUpdaters;0<X.size&&(Z_(_,Z0),X.clear()),x5(_,J)}_J=null,tQ=y2()+rB,R7(_,J)}else J9=j2(_,J);_:do try{if(V0!==B5&&K0!==null)J:switch(J=K0,X=D5,V0){case dQ:V0=B5,D5=null,O7(_,J,X,dQ);break;case N8:case C8:if(nH(X)){V0=B5,D5=null,xz(J);break}J=function(){V0!==N8&&V0!==C8||b0!==_||(V0=rQ),m4(_)},X.then(J,J);break _;case o_:V0=rQ;break _;case lB:V0=TF;break _;case rQ:nH(X)?(V0=B5,D5=null,xz(J)):(V0=B5,D5=null,O7(_,J,X,rQ));break;case TF:var z=null;switch(K0.tag){case 26:z=K0.memoizedState;case 5:case 27:var B=K0;if(z?VW(z):B.stateNode.complete){V0=B5,D5=null;var w=B.sibling;if(w!==null)K0=w;else{var f=B.return;f!==null?(K0=f,n$(f)):K0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}V0=B5,D5=null,O7(_,J,X,TF);break;case n_:V0=B5,D5=null,O7(_,J,X,n_);break;case RF:gG(),s0=iQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}z1.actQueue!==null?Ez():II();break}catch(e){kz(_,e)}while(1);if(A$(),z1.H=q,z1.A=G,O0=$,K0!==null)return V3;return b0=null,Z0=0,Y$(),s0}function II(){for(;K0!==null&&!Rw();)hz(K0)}function hz(_){var J=_.alternate;(_.mode&U0)!==s1?(hU(_),J=W1(_,yG,J,_,e4),xU(_)):J=W1(_,yG,J,_,e4),_.memoizedProps=_.pendingProps,J===null?n$(_):K0=J}function xz(_){var J=W1(_,wI,_);_.memoizedProps=_.pendingProps,J===null?n$(_):K0=J}function wI(_){var J=_.alternate,$=(_.mode&U0)!==s1;switch($&&hU(_),_.tag){case 15:case 0:J=tY(J,_,_.pendingProps,_.type,void 0,Z0);break;case 11:J=tY(J,_,_.pendingProps,_.type.render,_.ref,Z0);break;case 5:nU(_);default:Qz(J,_),_=K0=hH(_,e4),J=yG(J,_,e4)}return $&&xU(_),J}function O7(_,J,$,q){A$(),nU(J),d7=null,c_=0;var G=J.return;try{if(ZI(_,G,J,$,Z0)){s0=t_,p$(_,O5($,_.current)),K0=null;return}}catch(X){if(G!==null)throw K0=G,X;s0=t_,p$(_,O5($,_.current)),K0=null;return}if(J.flags&32768){if(A0||q===dQ)_=!0;else if(J9||(Z0&536870912)!==0)_=!1;else if(S6=_=!0,q===N8||q===C8||q===o_||q===n_)q=V5.current,q!==null&&q.tag===13&&(q.flags|=16384);mz(J,_)}else n$(J)}function n$(_){var J=_;do{if((J.flags&32768)!==0){mz(J,S6);return}var $=J.alternate;if(_=J.return,hU(J),$=W1(J,KI,$,J,e4),(J.mode&U0)!==s1&&rH(J),$!==null){K0=$;return}if(J=J.sibling,J!==null){K0=J;return}K0=J=_}while(J!==null);s0===V3&&(s0=cB)}function mz(_,J){do{var $=HI(_.alternate,_);if($!==null){$.flags&=32767,K0=$;return}if((_.mode&U0)!==s1){rH(_),$=_.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)){K0=_;return}K0=_=$}while(_!==null);s0=iQ,K0=null}function cG(_,J,$,q,G,X,z,B,w,f,e,J1,d,Z1){_.cancelPendingCommit=null;do G_();while(M2!==y6);if(z4.flushLegacyContextWarning(),z4.flushPendingUnsafeLifecycleWarnings(),(O0&(N2|k5))!==u2)throw Error("Should not already be working.");if(R5($),f===P8?PU(d,Z1,$,U2):q!==null?aO(d,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,U2):rO(d,Z1,$,U2),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,P4(_,$,X,z,B,w),_===b0&&(K0=b0=null,Z0=0),$9=J,k6=_,B4=$,NF=X,fF=G,eB=q,CF=Z1,_A=J1,A4=oQ,JA=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,SI(f7,function(){return GJ=window.event,A4===oQ&&(A4=PF),iz(),null})):(_.callbackNode=null,_.callbackPriority=0),P3=null,O6=z2(),J1!==null&&sO(Z1,O6,J1,U2),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=z1.T,z1.T=null,G=f0.p,f0.p=j5,z=O0,O0|=k5;try{AI(_,J,$)}finally{O0=z,f0.p=G,z1.T=q}}M2=sB,gz(),pz(),cz()}}function gz(){if(M2===sB){M2=y6;var _=k6,J=$9,$=B4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=z1.T,z1.T=null;var G=f0.p;f0.p=j5;var X=O0;O0|=k5;try{e7=$,_9=_,O$(),Mz(J,_),_9=e7=null,$=hF;var z=SH(_.containerInfo),B=$.focusedElem,w=$.selectionRange;if(z!==B&&B&&B.ownerDocument&&fH(B.ownerDocument.documentElement,B)){if(w!==null&&OU(B)){var{start:f,end:e}=w;if(e===void 0&&(e=f),"selectionStart"in B)B.selectionStart=f,B.selectionEnd=Math.min(e,B.value.length);else{var J1=B.ownerDocument||document,d=J1&&J1.defaultView||window;if(d.getSelection){var Z1=d.getSelection(),N1=B.textContent.length,V1=Math.min(w.start,N1),h0=w.end===void 0?V1:Math.min(w.end,N1);!Z1.extend&&V1>h0&&(z=h0,h0=V1,V1=z);var T0=CH(B,V1),i=CH(B,h0);if(T0&&i&&(Z1.rangeCount!==1||Z1.anchorNode!==T0.node||Z1.anchorOffset!==T0.offset||Z1.focusNode!==i.node||Z1.focusOffset!==i.offset)){var r=J1.createRange();r.setStart(T0.node,T0.offset),Z1.removeAllRanges(),V1>h0?(Z1.addRange(r),Z1.extend(i.node,i.offset)):(r.setEnd(i.node,i.offset),Z1.addRange(r))}}}}J1=[];for(Z1=B;Z1=Z1.parentNode;)Z1.nodeType===1&&J1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<J1.length;B++){var n=J1[B];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}zq=!!EF,hF=EF=null}finally{O0=X,f0.p=G,z1.T=q}}_.current=J,M2=tB}}function pz(){if(M2===tB){M2=y6;var _=JA;if(_!==null){O6=z2();var J=w3,$=O6;!x0||$<=J||(C3?C3.run(console.timeStamp.bind(console,_,J,$,L0,z0,"secondary-light")):console.timeStamp(_,J,$,L0,z0,"secondary-light"))}_=k6,J=$9,$=B4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=z1.T,z1.T=null;var G=f0.p;f0.p=j5;var X=O0;O0|=k5;try{e7=$,_9=_,O$(),zz(_,J.alternate,J),_9=e7=null}finally{O0=X,f0.p=G,z1.T=q}}_=CF,J=_A,w3=z2(),_=J===null?_:O6,J=w3,$=A4===wF,q=U2,P3!==null?kH(_,J,P3,!1,q):!x0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,L0,z0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,L0,z0,$?"error":"secondary-dark")),M2=oB}}function cz(){if(M2===nB||M2===oB){if(M2===nB){var _=w3;w3=z2();var J=w3,$=A4===wF;!x0||J<=_||(C3?C3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,L0,z0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,L0,z0,$?" error":"secondary-light")),A4!==wF&&(A4=aB)}M2=y6,Ow(),_=k6;var q=$9;J=B4,$=eB;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?M2=nQ:(M2=y6,$9=k6=null,lz(_,_.pendingLanes),S8=0,$J=null);var X=_.pendingLanes;if(X===0&&(V6=null),G||sz(_),X=v(J),q=q.stateNode,d2&&typeof d2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(X){case j5:var B=fZ;break;case H4:B=SZ;break;case r4:B=f7;break;case BQ:B=jZ;break;default:B=f7}d2.onCommitFiberRoot(S7,q,B,z)}catch(J1){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",J1))}if(d4&&_.memoizedUpdaters.clear(),TI(),$!==null){z=z1.T,B=f0.p,f0.p=j5,z1.T=null;try{var w=_.onRecoverableError;for(q=0;q<$.length;q++){var f=$[q],e=PI(f.stack);W1(f.source,w,f.value,e)}}finally{z1.T=z,f0.p=B}}(B4&3)!==0&&G_(),m4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(DQ=!0,_===SF?JJ++:(JJ=0,SF=_)):JJ=0,G||H8(J,w3),F_(0,!1)}}function PI(_){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 lz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,l9(J)))}function G_(){return gz(),pz(),cz(),iz()}function iz(){if(M2!==nQ)return!1;var _=k6,J=NF;NF=0;var $=v(B4),q=r4===0||r4>$?r4:$;$=z1.T;var G=f0.p;try{f0.p=q,z1.T=null;var X=fF;fF=null,q=k6;var z=B4;if(M2=y6,$9=k6=null,B4=0,(O0&(N2|k5))!==u2)throw Error("Cannot flush passive effects while already rendering.");R5(z),jF=!0,eQ=!1;var B=0;if(P3=null,B=y2(),A4===aB)p9(w3,B,C3);else{var w=w3,f=B,e=A4===PF;!x0||f<=w||(U2?U2.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",w,f,L0,z0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",w,f,L0,z0,"secondary-light"))}w=O0,O0|=k5;var J1=q.current;O$(),Cz(J1);var d=q.current;J1=CF,O$(),Iz(q,d,z,X,J1),sz(q),O0=w;var Z1=y2();if(d=B,J1=U2,P3!==null?kH(d,Z1,P3,!0,J1):!x0||Z1<=d||(J1?J1.run(console.timeStamp.bind(console,"Remaining Effects",d,Z1,L0,z0,"secondary-dark")):console.timeStamp("Remaining Effects",d,Z1,L0,z0,"secondary-dark")),H8(z,Z1),F_(0,!1),eQ?q===$J?S8++:(S8=0,$J=q):S8=0,eQ=jF=!1,d2&&typeof d2.onPostCommitFiberRoot==="function")try{d2.onPostCommitFiberRoot(S7,q)}catch(V1){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",V1))}var N1=q.current.stateNode;return N1.effectDuration=0,N1.passiveEffectDuration=0,!0}finally{f0.p=G,z1.T=$,lz(_,J)}}function dz(_,J,$){J=O5($,J),aH(J),J=OG(_.stateNode,J,2),_=U6(_,J,2),_!==null&&(I2(_,2),m4(_))}function C0(_,J,$){if(Q9=!1,_.tag===3)dz(_,_,$);else{for(;J!==null;){if(J.tag===3){dz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(V6===null||!V6.has(q))){_=O5($,_),aH(_),$=IG(2),q=U6(J,$,2),q!==null&&(wG($,q,J,_),I2(q,2),m4(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 lG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new gP;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=NI.bind(null,_,J,$),c4&&Z_(_,$),J.then(q,q))}function NI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>r4&&(R6=r4=Y2(),V_=SQ("Promise Resolved"),O6=vQ):($&4194048)!==0&&0>r5&&(a4=r5=Y2(),k_=SQ("Promise Resolved"),$F=vQ),vz()&&Y1.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 gP;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=NI.bind(null,_,J,$),d4&&Z_(_,$),J.then(q,q))}function NI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>t4&&(I6=t4=z2(),V_=SQ("Promise Resolved"),w6=jQ):($&4194048)!==0&&0>a5&&(o4=a5=z2(),k_=SQ("Promise Resolved"),$F=jQ),jz()&&z1.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`),u0===_&&(G0&$)===$&&(a0===N6||a0===lQ&&(G0&62914560)===G0&&j2()-sQ<dB?(R0&w2)===k2&&R7(_,0):IF|=$,N8===G0&&(N8=0)),E4(_)}function rz(_,J){J===0&&(J=T2()),_=l2(_,J),_!==null&&(R2(_,J),E4(_))}function CI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),rz(_,$)}function fI(_,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),rz(_,$)}function iG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,X=G.type===KQ;X=$||X,G.tag!==22?G.flags&67108864?X&&z1(G,az,q,G):iG(q,G,X):G.memoizedState===null&&(X&&G.flags&8192?z1(G,az,q,G):G.subtreeFlags&67108864&&z1(G,iG,q,G,X)),J=J.sibling}}function az(_,J){_0(!0);try{Rz(J),fz(J),Oz(_,J.alternate,J,!1),wz(_,J,0,null,!1,0)}finally{_0(!1)}}function sz(_){var J=!0;_.current.mode&(d2|K4)||(J=!1),iG(_,_.current,J)}function tz(_){if((R0&w2)===k2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",_q!==null){if(_q.has(J))return;_q.add(J)}else _q=new Set([J]);z1(_,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 Z_(_,J){c4&&_.memoizedUpdaters.forEach(function($){G3(_,$,J)})}function SI(_,J){var $=Y1.actQueue;return $!==null?($.push(J),lP):CZ(_,J)}function vI(_){vz()&&Y1.actQueue===null&&z1(_,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`),b0===_&&(Z0&$)===$&&(s0===f6||s0===lQ&&(Z0&62914560)===Z0&&y2()-sQ<dB?(O0&N2)===u2&&R7(_,0):IF|=$,f8===Z0&&(f8=0)),m4(_)}function rz(_,J){J===0&&(J=O2()),_=i2(_,J),_!==null&&(I2(_,J),m4(_))}function CI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),rz(_,$)}function fI(_,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),rz(_,$)}function iG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,X=G.type===KQ;X=$||X,G.tag!==22?G.flags&67108864?X&&W1(G,az,q,G):iG(q,G,X):G.memoizedState===null&&(X&&G.flags&8192?W1(G,az,q,G):G.subtreeFlags&67108864&&W1(G,iG,q,G,X)),J=J.sibling}}function az(_,J){Q0(!0);try{Rz(J),fz(J),Oz(_,J.alternate,J,!1),wz(_,J,0,null,!1,0)}finally{Q0(!1)}}function sz(_){var J=!0;_.current.mode&(r2|Y4)||(J=!1),iG(_,_.current,J)}function tz(_){if((O0&N2)===u2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",_q!==null){if(_q.has(J))return;_q.add(J)}else _q=new Set([J]);W1(_,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 Z_(_,J){d4&&_.memoizedUpdaters.forEach(function($){G4(_,$,J)})}function SI(_,J){var $=z1.actQueue;return $!==null?($.push(J),lP):CZ(_,J)}function jI(_){jz()&&z1.actQueue===null&&W1(_,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 E4(_){_!==q9&&_.next===null&&(q9===null?Jq=q9=_:q9=q9.next=_),$q=!0,Y1.actQueue!==null?VF||(VF=!0,_W()):jF||(jF=!0,_W())}function F_(_,J){if(!yF&&$q){yF=!0;do{var $=!1;for(var q=Jq;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var X=0;else{var{suspendedLanes:z,pingedLanes:B}=q;X=(1<<31-e2(42|_)+1)-1,X&=G&~(z&~B),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,ez(q,X))}else X=G0,X=u2(q,q===u0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==j8),(X&3)===0||b2(q,X)||($=!0,ez(q,X));q=q.next}}while($);yF=!1}}function jI(){GJ=window.event,dG()}function dG(){$q=VF=jF=!1;var _=0;y6!==0&&EI()&&(_=y6);for(var J=j2(),$=null,q=Jq;q!==null;){var G=q.next,X=oz(q,J);if(X===0)q.next=null,$===null?Jq=G:$.next=G,G===null&&(q9=$);else if($=q,_!==0||(X&3)!==0)$q=!0;q=G}A2!==j6&&A2!==nQ||F_(_,!1),y6!==0&&(y6=0)}function oz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,X=_.pendingLanes&-62914561;0<X;){var z=31-e2(X),B=1<<z,I=G[z];if(I===-1){if((B&$)===0||(B&q)!==0)G[z]=f2(B,J)}else I<=J&&(_.expiredLanes|=B);X&=~B}if(J=u0,$=G0,$=u2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==j8),q=_.callbackNode,$===0||_===J&&(v0===w8||v0===P8)||_.cancelPendingCommit!==null)return q!==null&&rG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||b2(_,$)){if(J=$&-$,J!==_.callbackPriority||Y1.actQueue!==null&&q!==kF)rG(q);else return J;switch(j($)){case V5:case X4:$=SZ;break;case l4:$=f7;break;case BQ:$=vZ;break;default:$=f7}return q=nz.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 nz(_,J){if(DQ=kQ=!1,GJ=window.event,A2!==j6&&A2!==nQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(L4===oQ&&(L4=PF),G_()&&_.callbackNode!==$)return null;var q=G0;if(q=u2(_,_===u0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==j8),q===0)return null;return Vz(_,q,J),oz(_,j2()),_.callbackNode!=null&&_.callbackNode===$?nz.bind(null,_):null}function ez(_,J){if(G_())return null;kQ=DQ,DQ=!1,Vz(_,J,!0)}function rG(_){_!==kF&&_!==null&&Tw(_)}function _W(){Y1.actQueue!==null&&Y1.actQueue.push(function(){return dG(),null}),_N(function(){(R0&(w2|u5))!==k2?CZ(fZ,jI):dG()})}function aG(){if(y6===0){var _=B8;_===0&&(_=zQ,zQ<<=1,(zQ&261888)===0&&(zQ=256)),y6=_}return y6}function JW(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return A1(_,"action"),x9(""+_)}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 VI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var X=JW((G[_5]||null).action),z=q.submitter;z&&(J=(J=z[_5]||null)?JW(J.formAction):z.getAttribute("formAction"),J!==null&&(X=J,z=null));var B=new OQ("action","action",null,q,G);_.push({event:B,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:X};Object.freeze(f),WG($,f,null,I)}}else typeof X==="function"&&(B.preventDefault(),I=z?$W(G,z):new FormData(G),f={pending:!0,data:I,method:G.method,action:X},Object.freeze(f),WG($,f,X,I))},currentTarget:G}]})}}function e$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){iZ(q)}_.currentTarget=null}function QW(_,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 B=q[z],I=B.instance,f=B.currentTarget;if(B=B.listener,I!==G&&X.isPropagationStopped())break _;I!==null?z1(I,e$,X,B,f):e$(X,B,f),G=I}else for(z=0;z<q.length;z++){if(B=q[z],I=B.instance,f=B.currentTarget,B=B.listener,I!==G&&X.isPropagationStopped())break _;I!==null?z1(I,e$,X,B,f):e$(X,B,f),G=I}}}}function A0(_,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[jZ];$===void 0&&($=J[jZ]=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(!_[Qq]){_[Qq]=!0,_L.forEach(function($){$!=="selectionchange"&&(DF.has($)||sG($,!1,_),sG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[Qq]||(J[Qq]=!0,sG("selectionchange",!1,J))}}function qW(_,J,$,q){switch(EW(J)){case V5:var G=Hw;break;case X4:G=Yw;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 B=q.stateNode.containerInfo;if(B===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(;B!==null;){if(z=y1(B),z===null)return;if(I=z.tag,I===5||I===6||I===26||I===27){q=X=z;continue _}B=B.parentNode}}q=q.return}LH(function(){var f=X,e=TU($),J1=[];_:{var d=EL.get(_);if(d!==void 0){var Z1=OQ,N1=_;switch(_){case"keypress":if(Z$($)===0)break _;case"keydown":case"keyup":Z1=GP;break;case"focusin":N1="focus",Z1=xZ;break;case"focusout":N1="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=wL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=aw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=XP;break;case kL:case DL:case uL:Z1=ow;break;case bL:Z1=HP;break;case"scroll":case"scrollend":Z1=dw;break;case"wheel":Z1=zP;break;case"copy":case"cut":case"paste":Z1=ew;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=NL;break;case"toggle":case"beforetoggle":Z1=LP}var j1=(J&4)!==0,E0=!j1&&(_==="scroll"||_==="scrollend"),M0=j1?d!==null?d+"Capture":null:d;j1=[];for(var i=f,r;i!==null;){var n=i;if(r=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||r===null||M0===null||(n=m9(i,M0),n!=null&&j1.push(X_(i,n,r))),E0)break;i=i.return}0<j1.length&&(d=new Z1(d,N1,null,$,e),J1.push({event:d,listeners:j1}))}}if((J&7)===0){_:{if(d=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",d&&$!==R_&&(N1=$.relatedTarget||$.fromElement)&&(y1(N1)||N1[z6]))break _;if(Z1||d){if(d=e.window===e?e:(d=e.ownerDocument)?d.defaultView||d.parentWindow:window,Z1){if(N1=$.relatedTarget||$.toElement,Z1=f,N1=N1?y1(N1):null,N1!==null&&(E0=C(N1),j1=N1.tag,N1!==E0||j1!==5&&j1!==27&&j1!==6))N1=null}else Z1=null,N1=f;if(Z1!==N1){if(j1=wL,n="onMouseLeave",M0="onMouseEnter",i="mouse",_==="pointerout"||_==="pointerover")j1=NL,n="onPointerLeave",M0="onPointerEnter",i="pointer";if(E0=Z1==null?d:r1(Z1),r=N1==null?d:r1(N1),d=new j1(n,i+"leave",Z1,$,e),d.target=E0,d.relatedTarget=r,n=null,y1(e)===f&&(j1=new j1(M0,i+"enter",N1,$,e),j1.target=r,j1.relatedTarget=E0,n=j1),E0=n,Z1&&N1)J:{j1=yI,M0=Z1,i=N1,r=0;for(n=M0;n;n=j1(n))r++;n=0;for(var M1=i;M1;M1=j1(M1))n++;for(;0<r-n;)M0=j1(M0),r--;for(;0<n-r;)i=j1(i),n--;for(;r--;){if(M0===i||i!==null&&M0===i.alternate){j1=M0;break J}M0=j1(M0),i=j1(i)}j1=null}else j1=null;Z1!==null&&UW(J1,d,Z1,j1,!1),N1!==null&&E0!==null&&UW(J1,E0,N1,j1,!0)}}}_:{if(d=f?r1(f):window,Z1=d.nodeName&&d.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&d.type==="file")var S1=IH;else if(RH(d))if(VL)S1=lO;else{S1=pO;var o1=gO}else Z1=d.nodeName,!Z1||Z1.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?f&&h9(f.elementType)&&(S1=IH):S1=cO;if(S1&&(S1=S1(_,f))){OH(J1,S1,$,e);break _}o1&&o1(_,d,f),_==="focusout"&&f&&d.type==="number"&&f.memoizedProps.value!=null&&F7(d,"number",d.value)}switch(o1=f?r1(f):window,_){case"focusin":if(RH(o1)||o1.contentEditable==="true")u7=o1,gZ=f,f_=null;break;case"focusout":f_=gZ=u7=null;break;case"mousedown":pZ=!0;break;case"contextmenu":case"mouseup":case"dragend":pZ=!1,vH(J1,$,e);break;case"selectionchange":if(TP)break;case"keydown":case"keyup":vH(J1,$,e)}var g1;if(mZ)_:{switch(_){case"compositionstart":var h1="onCompositionStart";break _;case"compositionend":h1="onCompositionEnd";break _;case"compositionupdate":h1="onCompositionUpdate";break _}h1=void 0}else D7?MH(_,$)&&(h1="onCompositionEnd"):_==="keydown"&&$.keyCode===CL&&(h1="onCompositionStart");if(h1&&(fL&&$.locale!=="ko"&&(D7||h1!=="onCompositionStart"?h1==="onCompositionEnd"&&D7&&(g1=BH()):(W6=e,bZ=("value"in W6)?W6.value:W6.textContent,D7=!0)),o1=_Q(f,h1),0<o1.length&&(h1=new PL(h1,_,null,$,e),J1.push({event:h1,listeners:o1}),g1?h1.data=g1:(g1=TH($),g1!==null&&(h1.data=g1)))),g1=AP?EO(_,$):hO(_,$))h1=_Q(f,"onBeforeInput"),0<h1.length&&(o1=new JP("onBeforeInput","beforeinput",null,$,e),J1.push({event:o1,listeners:h1}),o1.data=g1);VI(J1,_,f,$,e)}QW(J1,J)})}function X_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function _Q(_,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=m9(_,$),G!=null&&q.unshift(X_(_,G,X)),G=m9(_,J),G!=null&&q.push(X_(_,G,X))),_.tag===3)return q;_=_.return}return[]}function yI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function UW(_,J,$,q,G){for(var X=J._reactName,z=[];$!==null&&$!==q;){var B=$,I=B.alternate,f=B.stateNode;if(B=B.tag,I!==null&&I===q)break;B!==5&&B!==26&&B!==27||f===null||(I=f,G?(f=m9($,X),f!=null&&z.unshift(X_($,f,I))):G||(f=m9($,X),f!=null&&z.push(X_($,f,I)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function nG(_,J){kO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||OL||(OL=!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:K8,possibleRegistrationNames:VZ};h9(_)||typeof J.is==="string"||uO(_,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 v2(_,J,$,q){J!==$&&($=F6($),F6(J)!==$&&(q[_]=J))}function kI(_,J,$){J.forEach(function(q){$[FW(q)]=q==="style"?_Z(_):_.getAttribute(q)})}function h4(_,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 GW(_,J){return _=_.namespaceURI===MQ||_.namespaceURI===j7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function F6(_){return c1(_)&&(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(_)),D1(_)),(typeof _==="string"?_:""+_).replace(iP,`
176
- `).replace(dP,"")}function ZW(_,J){return J=F6(J),F6(_)===J?!0:!1}function k0(_,J,$,q,G,X){switch($){case"children":if(typeof q==="string")o3(q,J,!1),J==="body"||J==="textarea"&&q===""||s6(_,q);else if(typeof q==="number"||typeof q==="bigint")o3(""+q,J,!1),J!=="body"&&s6(_,""+q);break;case"className":Q0(_,"class",q);break;case"tabIndex":Q0(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":Q0(_,$,q);break;case"style":YH(_,q,X);break;case"data":if(J!=="object"){Q0(_,"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}A1(q,$),q=x9(""+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||Gq||(Gq=!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||Uq||(Uq=!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||GA||(GA=!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||Gq||(Gq=!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||Uq||(Uq=!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"&&k0(_,J,"name",G.name,G,null),k0(_,J,"formEncType",G.formEncType,G,null),k0(_,J,"formMethod",G.formMethod,G,null),k0(_,J,"formTarget",G.formTarget,G,null)):(k0(_,J,"encType",G.encType,G,null),k0(_,J,"method",G.method,G,null),k0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}A1(q,$),q=x9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&h4($,q),_.onclick=F3);break;case"onScroll":q!=null&&(typeof q!=="function"&&h4($,q),A0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&h4($,q),A0("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}A1(q,$),$=x9(""+q),_.setAttributeNS(f8,"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"?(A1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||Zq[$]||(Zq[$]=!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"?(A1(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?(A1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(A1(q,$),_.setAttribute($,q));break;case"popover":A0("beforetoggle",_),A0("toggle",_),V1(_,"popover",q);break;case"xlinkActuate":u1(_,f8,"xlink:actuate",q);break;case"xlinkArcrole":u1(_,f8,"xlink:arcrole",q);break;case"xlinkRole":u1(_,f8,"xlink:role",q);break;case"xlinkShow":u1(_,f8,"xlink:show",q);break;case"xlinkTitle":u1(_,f8,"xlink:title",q);break;case"xlinkType":u1(_,f8,"xlink:type",q);break;case"xmlBase":u1(_,uF,"xml:base",q);break;case"xmlLang":u1(_,uF,"xml:lang",q);break;case"xmlSpace":u1(_,uF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),V1(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":ZA||q==null||typeof q!=="object"||(ZA=!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"?($=zH($),V1(_,$,q)):K8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&h4($,q)}}function eG(_,J,$,q,G,X){switch($){case"style":YH(_,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"?s6(_,q):(typeof q==="number"||typeof q==="bigint")&&s6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&h4($,q),A0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&h4($,q),A0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&h4($,q),_.onclick=F3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(K8.hasOwnProperty($))q!=null&&typeof q!=="function"&&h4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),X=_[_5]||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($,""):V1(_,$,q)}}}function m2(_,J,$){switch(nG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":A0("error",_),A0("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:k0(_,J,X,z,$,null)}}G&&k0(_,J,"srcSet",$.srcSet,$,null),q&&k0(_,J,"src",$.src,$,null);return;case"input":$1("input",$),A0("invalid",_);var B=X=z=G=null,I=null,f=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":I=e;break;case"defaultChecked":f=e;break;case"value":X=e;break;case"defaultValue":B=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:k0(_,J,q,e,$,null)}}Z7(_,$),V0(_,X,B,I,f,z,G,!1);return;case"select":$1("select",$),A0("invalid",_),q=z=X=null;for(G in $)if($.hasOwnProperty(G)&&(B=$[G],B!=null))switch(G){case"value":X=B;break;case"defaultValue":z=B;break;case"multiple":q=B;default:k0(_,J,G,B,$,null)}oJ(_,$),J=X,$=z,_.multiple=!!q,J!=null?r3(_,!!q,J,!1):$!=null&&r3(_,!!q,$,!0);return;case"textarea":$1("textarea",$),A0("invalid",_),X=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(B=$[z],B!=null))switch(z){case"value":q=B;break;case"defaultValue":G=B;break;case"children":X=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:k0(_,J,z,B,$,null)}nJ(_,$),j9(_,q,G,X);return;case"option":sJ(_,$);for(I in $)if($.hasOwnProperty(I)&&(q=$[I],q!=null))switch(I){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:k0(_,J,I,q,$,null)}return;case"dialog":A0("beforetoggle",_),A0("toggle",_),A0("cancel",_),A0("close",_);break;case"iframe":case"object":A0("load",_);break;case"video":case"audio":for(q=0;q<QJ.length;q++)A0(QJ[q],_);break;case"image":A0("error",_),A0("load",_);break;case"details":A0("toggle",_);break;case"embed":case"source":case"link":A0("error",_),A0("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:k0(_,J,f,q,$,null)}return;default:if(h9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&eG(_,J,e,q,$,void 0));return}}for(B in $)$.hasOwnProperty(B)&&(q=$[B],q!=null&&k0(_,J,B,q,$,null))}function DI(_,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,B=null,I=null,f=null,e=null;for(Z1 in $){var J1=$[Z1];if($.hasOwnProperty(Z1)&&J1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":I=J1;default:q.hasOwnProperty(Z1)||k0(_,J,Z1,null,q,J1)}}for(var d in q){var Z1=q[d];if(J1=$[d],q.hasOwnProperty(d)&&(Z1!=null||J1!=null))switch(d){case"type":X=Z1;break;case"name":G=Z1;break;case"checked":f=Z1;break;case"defaultChecked":e=Z1;break;case"value":z=Z1;break;case"defaultValue":B=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!==J1&&k0(_,J,d,Z1,q,J1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||UA||(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"),UA=!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),K5(_,z,B,I,f,e,X,G);return;case"select":Z1=z=B=d=null;for(X in $)if(I=$[X],$.hasOwnProperty(X)&&I!=null)switch(X){case"value":break;case"multiple":Z1=I;default:q.hasOwnProperty(X)||k0(_,J,X,null,q,I)}for(G in q)if(X=q[G],I=$[G],q.hasOwnProperty(G)&&(X!=null||I!=null))switch(G){case"value":d=X;break;case"defaultValue":B=X;break;case"multiple":z=X;default:X!==I&&k0(_,J,G,X,q,I)}q=B,J=z,$=Z1,d!=null?r3(_,!!J,d,!1):!!$!==!!J&&(q!=null?r3(_,!!J,q,!0):r3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=d=null;for(B in $)if(G=$[B],$.hasOwnProperty(B)&&G!=null&&!q.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:k0(_,J,B,null,q,G)}for(z in q)if(G=q[z],X=$[z],q.hasOwnProperty(z)&&(G!=null||X!=null))switch(z){case"value":d=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&&k0(_,J,z,G,q,X)}eJ(_,d,Z1);return;case"option":for(var N1 in $)if(d=$[N1],$.hasOwnProperty(N1)&&d!=null&&!q.hasOwnProperty(N1))switch(N1){case"selected":_.selected=!1;break;default:k0(_,J,N1,null,q,d)}for(I in q)if(d=q[I],Z1=$[I],q.hasOwnProperty(I)&&d!==Z1&&(d!=null||Z1!=null))switch(I){case"selected":_.selected=d&&typeof d!=="function"&&typeof d!=="symbol";break;default:k0(_,J,I,d,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 j1 in $)d=$[j1],$.hasOwnProperty(j1)&&d!=null&&!q.hasOwnProperty(j1)&&k0(_,J,j1,null,q,d);for(f in q)if(d=q[f],Z1=$[f],q.hasOwnProperty(f)&&d!==Z1&&(d!=null||Z1!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:k0(_,J,f,d,q,Z1)}return;default:if(h9(J)){for(var E0 in $)d=$[E0],$.hasOwnProperty(E0)&&d!==void 0&&!q.hasOwnProperty(E0)&&eG(_,J,E0,void 0,q,d);for(e in q)d=q[e],Z1=$[e],!q.hasOwnProperty(e)||d===Z1||d===void 0&&Z1===void 0||eG(_,J,e,d,q,Z1);return}}for(var M0 in $)d=$[M0],$.hasOwnProperty(M0)&&d!=null&&!q.hasOwnProperty(M0)&&k0(_,J,M0,null,q,d);for(J1 in q)d=q[J1],Z1=$[J1],!q.hasOwnProperty(J1)||d===Z1||d==null&&Z1==null||k0(_,J,J1,d,q,Z1)}function FW(_){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 XW(_,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?(e1(z,X),q+=G+X+":"+(""+z).trim()):typeof z!=="number"||z===0||TL.has(X)?(e1(z,X),q+=G+X.replace(WL,"-$1").toLowerCase().replace(LL,"-ms-")+":"+(""+z).trim()):q+=G+X.replace(WL,"-$1").toLowerCase().replace(LL,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=F6(q),F6(J)!==q&&($.style=_Z(_)))}}function m5(_,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(A1(q,J),_===""+q)return}v2(J,_,q,X)}function KW(_,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}v2(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(A1(q,$),_===""+q)return}v2(J,_,q,X)}function HW(_,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)&&(A1(q,J),_===""+q))return}v2(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(A1(q,J),$=x9(""+q),_===$)return}v2(J,_,q,X)}function YW(_,J,$,q){for(var G={},X=new Set,z=_.attributes,B=0;B<z.length;B++)switch(z[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(z[B].name)}if(h9(J)){for(var I in $)if($.hasOwnProperty(I)){var f=$[I];if(f!=null){if(K8.hasOwnProperty(I))typeof f!=="function"&&h4(I,f);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof f!=="string"&&typeof f!=="number"||v2("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=GW(_,f),v2(I,z,f,G));continue;case"style":X.delete(I),XW(_,f,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":X.delete(I.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",I);continue;case"className":X.delete("class"),z=v1(_,"class",f),v2("className",z,f,G);continue;default:q.context===j3&&J!=="svg"&&J!=="math"?X.delete(I.toLowerCase()):X.delete(I),z=v1(_,I,f),v2(I,z,f,G)}}}}else for(f in $)if($.hasOwnProperty(f)&&(I=$[f],I!=null)){if(K8.hasOwnProperty(f))typeof I!=="function"&&h4(f,I);else if($.suppressHydrationWarning!==!0)switch(f){case"children":typeof I!=="string"&&typeof I!=="number"||v2("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=GW(_,I),z!==I&&(G[f]={__html:z}));continue;case"className":m5(_,f,"class",I,X,G);continue;case"tabIndex":m5(_,f,"tabindex",I,X,G);continue;case"style":X.delete(f),XW(_,I,G);continue;case"multiple":X.delete(f),v2(f,_.multiple,I,G);continue;case"muted":X.delete(f),v2(f,_.muted,I,G);continue;case"autoFocus":X.delete("autofocus"),v2(f,_.autofocus,I,G);continue;case"data":if(J!=="object"){X.delete(f),z=_.getAttribute("data"),v2(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,X,G);continue;case"action":case"formAction":if(z=_.getAttribute(f),typeof I==="function"){X.delete(f.toLowerCase()),f==="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===rP){X.delete(f.toLowerCase()),v2(f,"function",I,G);continue}$Z(_,f,f.toLowerCase(),I,X,G);continue;case"xlinkHref":$Z(_,f,"xlink:href",I,X,G);continue;case"contentEditable":JZ(_,f,"contenteditable",I,X,G);continue;case"spellCheck":JZ(_,f,"spellcheck",I,X,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JZ(_,f,f,I,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":KW(_,f,f.toLowerCase(),I,X,G);continue;case"capture":case"download":_:{B=_;var e=z=f,J1=G;if(X.delete(e),B=B.getAttribute(e),B===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&&B==="")break _;break;default:if(A1(I,z),B===""+I)break _}v2(z,B,I,J1)}continue;case"cols":case"rows":case"size":case"span":_:{if(B=_,e=z=f,J1=G,X.delete(e),B=B.getAttribute(e),B===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)&&(A1(I,z),B===""+I))break _}v2(z,B,I,J1)}continue;case"rowSpan":HW(_,f,"rowspan",I,X,G);continue;case"start":HW(_,f,f,I,X,G);continue;case"xHeight":m5(_,f,"x-height",I,X,G);continue;case"xlinkActuate":m5(_,f,"xlink:actuate",I,X,G);continue;case"xlinkArcrole":m5(_,f,"xlink:arcrole",I,X,G);continue;case"xlinkRole":m5(_,f,"xlink:role",I,X,G);continue;case"xlinkShow":m5(_,f,"xlink:show",I,X,G);continue;case"xlinkTitle":m5(_,f,"xlink:title",I,X,G);continue;case"xlinkType":m5(_,f,"xlink:type",I,X,G);continue;case"xmlBase":m5(_,f,"xml:base",I,X,G);continue;case"xmlLang":m5(_,f,"xml:lang",I,X,G);continue;case"xmlSpace":m5(_,f,"xml:space",I,X,G);continue;case"inert":I!==""||Zq[f]||(Zq[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)),KW(_,f,f,I,X,G);continue;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N"){B=zH(f),z=!1,q.context===j3&&J!=="svg"&&J!=="math"?X.delete(B.toLowerCase()):(e=f.toLowerCase(),e=TQ.hasOwnProperty(e)?TQ[e]||null:null,e!==null&&e!==f&&(z=!0,X.delete(e)),X.delete(B));_:if(e=_,J1=B,B=I,B1(J1))if(e.hasAttribute(J1))e=e.getAttribute(J1),A1(B,J1),B=e===""+B?B:e;else{switch(typeof B){case"function":case"symbol":break _;case"boolean":if(e=J1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}B=B===void 0?void 0:null}else B=void 0;z||v2(f,B,I,G)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&kI(_,X,G),Object.keys(G).length===0?null:G}function uI(_,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 zW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bI(){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,B=G.duration;if(X&&B&&zW(z)){z=0,B=G.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],f=I.startTime;if(f>B)break;var{transferSize:e,initiatorType:J1}=I;e&&zW(J1)&&(I=I.responseEnd,z+=e*(I<B?1:(B-f)/(I-f)))}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 JQ(_){return _.nodeType===9?_:_.ownerDocument}function WW(_){switch(_){case j7:return G9;case MQ:return Xq;default:return j3}}function LW(_,J){if(_===j3)switch(J){case"svg":return G9;case"math":return Xq;default:return j3}return _===G9&&J==="foreignObject"?j3:_}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 EI(){var _=window.event;if(_&&_.type==="popstate"){if(_===xF)return!1;return xF=_,!0}return xF=null,!1}function K_(){var _=window.event;return _&&_!==GJ?_.type:null}function H_(){var _=window.event;return _&&_!==GJ?_.timeStamp:-1.1}function hI(_){setTimeout(function(){throw _})}function xI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function mI(){}function gI(_,J,$,q){DI(_,J,$,q),_[_5]=q}function BW(_){s6(_,"")}function pI(_,J,$){_.nodeValue=$}function AW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[_5]||null;if(J!==null){var $=i1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,z1($,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,z1($,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 X6(_){return _==="head"}function cI(_,J){_.removeChild(J)}function lI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function MW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===UJ||$===Fq){if(q===0){_.removeChild(G),P7(J);return}q--}else if($===qJ||$===k6||$===v8||$===U9||$===S8)q++;else if($===sP)Y_(_.ownerDocument.documentElement);else if($===oP){$=_.ownerDocument.head,Y_($);for(var X=$.firstChild;X;){var{nextSibling:z,nodeName:B}=X;X[T_]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=z}}else $===tP&&Y_(_.ownerDocument.body);$=G}while($);P7(J)}function TW(_,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,$===UJ)if(_===0)break;else _--;else $!==qJ&&$!==k6&&$!==v8&&$!==U9||_++;$=q}while($)}function iI(_){TW(_,!0)}function dI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function rI(_){_.nodeValue=""}function aI(_){TW(_,!1)}function sI(_,J){J=J[nP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function tI(_,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($),P1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function oI(_,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"){A1(G.name,"name");var X=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[T_])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(_=S5(_.nextSibling),_===null)break}return null}function nI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=S5(_.nextSibling),_===null)return null}return _}function RW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=S5(_.nextSibling),_===null)return null}return _}function UZ(_){return _.data===k6||_.data===v8}function GZ(_){return _.data===U9||_.data===k6&&_.ownerDocument.readyState!==XA}function eI(_,J){var $=_.ownerDocument;if(_.data===v8)_._reactRetry=J;else if(_.data!==k6||$.readyState!==XA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function S5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===qJ||J===U9||J===k6||J===v8||J===S8||J===bF||J===FA)break;if(J===UJ||J===Fq)return null}}return _}function OW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var X=q[G];$[FW(X.name)]=X.name.toLowerCase()==="style"?_Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===S8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function IW(_,J,$){return $===null||$[aP]!==!0?(_.nodeValue===J?_=null:(J=F6(J),_=F6(_.nodeValue)===J?null:_.nodeValue),_):null}function ZZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===UJ||$===Fq){if(J===0)return S5(_.nextSibling);J--}else $!==qJ&&$!==U9&&$!==k6&&$!==v8&&$!==S8||J++}_=_.nextSibling}return null}function wW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===qJ||$===U9||$===k6||$===v8||$===S8){if(J===0)return _;J--}else $!==UJ&&$!==Fq||J++}_=_.previousSibling}return null}function _w(_){P7(_)}function Jw(_){P7(_)}function $w(_){P7(_)}function PW(_,J,$,q,G){switch(G&&b9(_,q.ancestorInfo),J=JQ($),_){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 Qw(_,J,$,q){if(!$[z6]&&i1($)){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]);m2($,_,J),$[g2]=q,$[_5]=J}function Y_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);P1(_)}function $Q(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function NW(_,J,$){var q=Z9;if(q&&typeof J==="string"&&J){var G=w0(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),LA.has(G)||(LA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),m2(J,"link",_),x1(J),q.head.appendChild(J)))}}function CW(_,J,$,q){var G=(G=H6.current)?$Q(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"?($=I7($.href),J=F0(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"){_=I7($.href);var X=F0(G).hoistableStyles,z=X.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:V8,preload:null}},X.set(_,z),(X=G.querySelector(z_(_)))&&!X._p&&(z.instance=X,z.state.loading=ZJ|o5),!n5.has(_))){var B={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};n5.set(_,B),X||qw(G,_,B,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`,m(_))})}function m4(_){_!==q9&&_.next===null&&(q9===null?Jq=q9=_:q9=q9.next=_),$q=!0,z1.actQueue!==null?VF||(VF=!0,_W()):vF||(vF=!0,_W())}function F_(_,J){if(!yF&&$q){yF=!0;do{var $=!1;for(var q=Jq;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var X=0;else{var{suspendedLanes:z,pingedLanes:B}=q;X=(1<<31-_5(42|_)+1)-1,X&=G&~(z&~B),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,ez(q,X))}else X=Z0,X=S2(q,q===b0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==y8),(X&3)===0||j2(q,X)||($=!0,ez(q,X));q=q.next}}while($);yF=!1}}function vI(){GJ=window.event,dG()}function dG(){$q=VF=vF=!1;var _=0;D6!==0&&EI()&&(_=D6);for(var J=y2(),$=null,q=Jq;q!==null;){var G=q.next,X=oz(q,J);if(X===0)q.next=null,$===null?Jq=G:$.next=G,G===null&&(q9=$);else if($=q,_!==0||(X&3)!==0)$q=!0;q=G}M2!==y6&&M2!==nQ||F_(_,!1),D6!==0&&(D6=0)}function oz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,X=_.pendingLanes&-62914561;0<X;){var z=31-_5(X),B=1<<z,w=G[z];if(w===-1){if((B&$)===0||(B&q)!==0)G[z]=v2(B,J)}else w<=J&&(_.expiredLanes|=B);X&=~B}if(J=b0,$=Z0,$=S2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==y8),q=_.callbackNode,$===0||_===J&&(V0===N8||V0===C8)||_.cancelPendingCommit!==null)return q!==null&&rG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||j2(_,$)){if(J=$&-$,J!==_.callbackPriority||z1.actQueue!==null&&q!==kF)rG(q);else return J;switch(v($)){case j5:case H4:$=SZ;break;case r4:$=f7;break;case BQ:$=jZ;break;default:$=f7}return q=nz.bind(null,_),z1.actQueue!==null?(z1.actQueue.push(q),$=kF):$=CZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&rG(q),_.callbackPriority=2,_.callbackNode=null,2}function nz(_,J){if(DQ=kQ=!1,GJ=window.event,M2!==y6&&M2!==nQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(A4===oQ&&(A4=PF),G_()&&_.callbackNode!==$)return null;var q=Z0;if(q=S2(_,_===b0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==y8),q===0)return null;return Vz(_,q,J),oz(_,y2()),_.callbackNode!=null&&_.callbackNode===$?nz.bind(null,_):null}function ez(_,J){if(G_())return null;kQ=DQ,DQ=!1,Vz(_,J,!0)}function rG(_){_!==kF&&_!==null&&Tw(_)}function _W(){z1.actQueue!==null&&z1.actQueue.push(function(){return dG(),null}),_N(function(){(O0&(N2|k5))!==u2?CZ(fZ,vI):dG()})}function aG(){if(D6===0){var _=M8;_===0&&(_=zQ,zQ<<=1,(zQ&261888)===0&&(zQ=256)),D6=_}return D6}function JW(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return A1(_,"action"),x9(""+_)}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 VI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var X=JW((G[J5]||null).action),z=q.submitter;z&&(J=(J=z[J5]||null)?JW(J.formAction):z.getAttribute("formAction"),J!==null&&(X=J,z=null));var B=new OQ("action","action",null,q,G);_.push({event:B,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(D6!==0){var w=z?$W(G,z):new FormData(G),f={pending:!0,data:w,method:G.method,action:X};Object.freeze(f),WG($,f,null,w)}}else typeof X==="function"&&(B.preventDefault(),w=z?$W(G,z):new FormData(G),f={pending:!0,data:w,method:G.method,action:X},Object.freeze(f),WG($,f,X,w))},currentTarget:G}]})}}function e$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){iZ(q)}_.currentTarget=null}function QW(_,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 B=q[z],w=B.instance,f=B.currentTarget;if(B=B.listener,w!==G&&X.isPropagationStopped())break _;w!==null?W1(w,e$,X,B,f):e$(X,B,f),G=w}else for(z=0;z<q.length;z++){if(B=q[z],w=B.instance,f=B.currentTarget,B=B.listener,w!==G&&X.isPropagationStopped())break _;w!==null?W1(w,e$,X,B,f):e$(X,B,f),G=w}}}}function M0(_,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(!_[Qq]){_[Qq]=!0,_L.forEach(function($){$!=="selectionchange"&&(DF.has($)||sG($,!1,_),sG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[Qq]||(J[Qq]=!0,sG("selectionchange",!1,J))}}function qW(_,J,$,q){switch(EW(J)){case j5:var G=Hw;break;case H4:G=Yw;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 B=q.stateNode.containerInfo;if(B===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(;B!==null;){if(z=k1(B),z===null)return;if(w=z.tag,w===5||w===6||w===26||w===27){q=X=z;continue _}B=B.parentNode}}q=q.return}LH(function(){var f=X,e=TU($),J1=[];_:{var d=EL.get(_);if(d!==void 0){var Z1=OQ,N1=_;switch(_){case"keypress":if(Z$($)===0)break _;case"keydown":case"keyup":Z1=GP;break;case"focusin":N1="focus",Z1=xZ;break;case"focusout":N1="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=wL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=aw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=XP;break;case kL:case DL:case uL:Z1=ow;break;case bL:Z1=HP;break;case"scroll":case"scrollend":Z1=dw;break;case"wheel":Z1=zP;break;case"copy":case"cut":case"paste":Z1=ew;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=NL;break;case"toggle":case"beforetoggle":Z1=LP}var V1=(J&4)!==0,h0=!V1&&(_==="scroll"||_==="scrollend"),T0=V1?d!==null?d+"Capture":null:d;V1=[];for(var i=f,r;i!==null;){var n=i;if(r=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||r===null||T0===null||(n=m9(i,T0),n!=null&&V1.push(X_(i,n,r))),h0)break;i=i.return}0<V1.length&&(d=new Z1(d,N1,null,$,e),J1.push({event:d,listeners:V1}))}}if((J&7)===0){_:{if(d=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",d&&$!==R_&&(N1=$.relatedTarget||$.fromElement)&&(k1(N1)||N1[L6]))break _;if(Z1||d){if(d=e.window===e?e:(d=e.ownerDocument)?d.defaultView||d.parentWindow:window,Z1){if(N1=$.relatedTarget||$.toElement,Z1=f,N1=N1?k1(N1):null,N1!==null&&(h0=C(N1),V1=N1.tag,N1!==h0||V1!==5&&V1!==27&&V1!==6))N1=null}else Z1=null,N1=f;if(Z1!==N1){if(V1=wL,n="onMouseLeave",T0="onMouseEnter",i="mouse",_==="pointerout"||_==="pointerover")V1=NL,n="onPointerLeave",T0="onPointerEnter",i="pointer";if(h0=Z1==null?d:l1(Z1),r=N1==null?d:l1(N1),d=new V1(n,i+"leave",Z1,$,e),d.target=h0,d.relatedTarget=r,n=null,k1(e)===f&&(V1=new V1(T0,i+"enter",N1,$,e),V1.target=r,V1.relatedTarget=h0,n=V1),h0=n,Z1&&N1)J:{V1=yI,T0=Z1,i=N1,r=0;for(n=T0;n;n=V1(n))r++;n=0;for(var M1=i;M1;M1=V1(M1))n++;for(;0<r-n;)T0=V1(T0),r--;for(;0<n-r;)i=V1(i),n--;for(;r--;){if(T0===i||i!==null&&T0===i.alternate){V1=T0;break J}T0=V1(T0),i=V1(i)}V1=null}else V1=null;Z1!==null&&UW(J1,d,Z1,V1,!1),N1!==null&&h0!==null&&UW(J1,h0,N1,V1,!0)}}}_:{if(d=f?l1(f):window,Z1=d.nodeName&&d.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&d.type==="file")var j1=IH;else if(RH(d))if(VL)j1=lO;else{j1=pO;var e1=gO}else Z1=d.nodeName,!Z1||Z1.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?f&&h9(f.elementType)&&(j1=IH):j1=cO;if(j1&&(j1=j1(_,f))){OH(J1,j1,$,e);break _}e1&&e1(_,d,f),_==="focusout"&&f&&d.type==="number"&&f.memoizedProps.value!=null&&j0(d,"number",d.value)}switch(e1=f?l1(f):window,_){case"focusin":if(RH(e1)||e1.contentEditable==="true")u7=e1,gZ=f,f_=null;break;case"focusout":f_=gZ=u7=null;break;case"mousedown":pZ=!0;break;case"contextmenu":case"mouseup":case"dragend":pZ=!1,jH(J1,$,e);break;case"selectionchange":if(TP)break;case"keydown":case"keyup":jH(J1,$,e)}var m1;if(mZ)_:{switch(_){case"compositionstart":var x1="onCompositionStart";break _;case"compositionend":x1="onCompositionEnd";break _;case"compositionupdate":x1="onCompositionUpdate";break _}x1=void 0}else D7?MH(_,$)&&(x1="onCompositionEnd"):_==="keydown"&&$.keyCode===CL&&(x1="onCompositionStart");if(x1&&(fL&&$.locale!=="ko"&&(D7||x1!=="onCompositionStart"?x1==="onCompositionEnd"&&D7&&(m1=BH()):(B6=e,bZ=("value"in B6)?B6.value:B6.textContent,D7=!0)),e1=_Q(f,x1),0<e1.length&&(x1=new PL(x1,_,null,$,e),J1.push({event:x1,listeners:e1}),m1?x1.data=m1:(m1=TH($),m1!==null&&(x1.data=m1)))),m1=AP?EO(_,$):hO(_,$))x1=_Q(f,"onBeforeInput"),0<x1.length&&(e1=new JP("onBeforeInput","beforeinput",null,$,e),J1.push({event:e1,listeners:x1}),e1.data=m1);VI(J1,_,f,$,e)}QW(J1,J)})}function X_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function _Q(_,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=m9(_,$),G!=null&&q.unshift(X_(_,G,X)),G=m9(_,J),G!=null&&q.push(X_(_,G,X))),_.tag===3)return q;_=_.return}return[]}function yI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function UW(_,J,$,q,G){for(var X=J._reactName,z=[];$!==null&&$!==q;){var B=$,w=B.alternate,f=B.stateNode;if(B=B.tag,w!==null&&w===q)break;B!==5&&B!==26&&B!==27||f===null||(w=f,G?(f=m9($,X),f!=null&&z.unshift(X_($,f,w))):G||(f=m9($,X),f!=null&&z.push(X_($,f,w)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function nG(_,J){kO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||OL||(OL=!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:Y8,possibleRegistrationNames:VZ};h9(_)||typeof J.is==="string"||uO(_,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 V2(_,J,$,q){J!==$&&($=K6($),K6(J)!==$&&(q[_]=J))}function kI(_,J,$){J.forEach(function(q){$[FW(q)]=q==="style"?_Z(_):_.getAttribute(q)})}function g4(_,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 GW(_,J){return _=_.namespaceURI===MQ||_.namespaceURI===v7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function K6(_){return p1(_)&&(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(_)),u1(_)),(typeof _==="string"?_:""+_).replace(iP,`
176
+ `).replace(dP,"")}function ZW(_,J){return J=K6(J),K6(_)===J?!0:!1}function D0(_,J,$,q,G,X){switch($){case"children":if(typeof q==="string")e3(q,J,!1),J==="body"||J==="textarea"&&q===""||o6(_,q);else if(typeof q==="number"||typeof q==="bigint")e3(""+q,J,!1),J!=="body"&&o6(_,""+q);break;case"className":v1(_,"class",q);break;case"tabIndex":v1(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":v1(_,$,q);break;case"style":YH(_,q,X);break;case"data":if(J!=="object"){v1(_,"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}A1(q,$),q=x9(""+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||Gq||(Gq=!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||Uq||(Uq=!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||GA||(GA=!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||Gq||(Gq=!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||Uq||(Uq=!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"&&D0(_,J,"name",G.name,G,null),D0(_,J,"formEncType",G.formEncType,G,null),D0(_,J,"formMethod",G.formMethod,G,null),D0(_,J,"formTarget",G.formTarget,G,null)):(D0(_,J,"encType",G.encType,G,null),D0(_,J,"method",G.method,G,null),D0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}A1(q,$),q=x9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&g4($,q),_.onclick=K3);break;case"onScroll":q!=null&&(typeof q!=="function"&&g4($,q),M0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&g4($,q),M0("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}A1(q,$),$=x9(""+q),_.setAttributeNS(j8,"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"?(A1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||Zq[$]||(Zq[$]=!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"?(A1(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?(A1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(A1(q,$),_.setAttribute($,q));break;case"popover":M0("beforetoggle",_),M0("toggle",_),C1(_,"popover",q);break;case"xlinkActuate":a1(_,j8,"xlink:actuate",q);break;case"xlinkArcrole":a1(_,j8,"xlink:arcrole",q);break;case"xlinkRole":a1(_,j8,"xlink:role",q);break;case"xlinkShow":a1(_,j8,"xlink:show",q);break;case"xlinkTitle":a1(_,j8,"xlink:title",q);break;case"xlinkType":a1(_,j8,"xlink:type",q);break;case"xmlBase":a1(_,uF,"xml:base",q);break;case"xmlLang":a1(_,uF,"xml:lang",q);break;case"xmlSpace":a1(_,uF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),C1(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":ZA||q==null||typeof q!=="object"||(ZA=!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"?($=zH($),C1(_,$,q)):Y8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&g4($,q)}}function eG(_,J,$,q,G,X){switch($){case"style":YH(_,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"?o6(_,q):(typeof q==="number"||typeof q==="bigint")&&o6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&g4($,q),M0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&g4($,q),M0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&g4($,q),_.onclick=K3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Y8.hasOwnProperty($))q!=null&&typeof q!=="function"&&g4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),X=_[J5]||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($,""):C1(_,$,q)}}}function g2(_,J,$){switch(nG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":M0("error",_),M0("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:D0(_,J,X,z,$,null)}}G&&D0(_,J,"srcSet",$.srcSet,$,null),q&&D0(_,J,"src",$.src,$,null);return;case"input":m5("input",$),M0("invalid",_);var B=X=z=G=null,w=null,f=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":f=e;break;case"value":X=e;break;case"defaultValue":B=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:D0(_,J,q,e,$,null)}}N0(_,$),h2(_,X,B,w,f,z,G,!1);return;case"select":m5("select",$),M0("invalid",_),q=z=X=null;for(G in $)if($.hasOwnProperty(G)&&(B=$[G],B!=null))switch(G){case"value":X=B;break;case"defaultValue":z=B;break;case"multiple":q=B;default:D0(_,J,G,B,$,null)}oJ(_,$),J=X,$=z,_.multiple=!!q,J!=null?s3(_,!!q,J,!1):$!=null&&s3(_,!!q,$,!0);return;case"textarea":m5("textarea",$),M0("invalid",_),X=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(B=$[z],B!=null))switch(z){case"value":q=B;break;case"defaultValue":G=B;break;case"children":X=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:D0(_,J,z,B,$,null)}nJ(_,$),v9(_,q,G,X);return;case"option":sJ(_,$);for(w in $)if($.hasOwnProperty(w)&&(q=$[w],q!=null))switch(w){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:D0(_,J,w,q,$,null)}return;case"dialog":M0("beforetoggle",_),M0("toggle",_),M0("cancel",_),M0("close",_);break;case"iframe":case"object":M0("load",_);break;case"video":case"audio":for(q=0;q<QJ.length;q++)M0(QJ[q],_);break;case"image":M0("error",_),M0("load",_);break;case"details":M0("toggle",_);break;case"embed":case"source":case"link":M0("error",_),M0("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:D0(_,J,f,q,$,null)}return;default:if(h9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&eG(_,J,e,q,$,void 0));return}}for(B in $)$.hasOwnProperty(B)&&(q=$[B],q!=null&&D0(_,J,B,q,$,null))}function DI(_,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,B=null,w=null,f=null,e=null;for(Z1 in $){var J1=$[Z1];if($.hasOwnProperty(Z1)&&J1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":w=J1;default:q.hasOwnProperty(Z1)||D0(_,J,Z1,null,q,J1)}}for(var d in q){var Z1=q[d];if(J1=$[d],q.hasOwnProperty(d)&&(Z1!=null||J1!=null))switch(d){case"type":X=Z1;break;case"name":G=Z1;break;case"checked":f=Z1;break;case"defaultChecked":e=Z1;break;case"value":z=Z1;break;case"defaultValue":B=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!==J1&&D0(_,J,d,Z1,q,J1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||UA||(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"),UA=!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),N4(_,z,B,w,f,e,X,G);return;case"select":Z1=z=B=d=null;for(X in $)if(w=$[X],$.hasOwnProperty(X)&&w!=null)switch(X){case"value":break;case"multiple":Z1=w;default:q.hasOwnProperty(X)||D0(_,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":d=X;break;case"defaultValue":B=X;break;case"multiple":z=X;default:X!==w&&D0(_,J,G,X,q,w)}q=B,J=z,$=Z1,d!=null?s3(_,!!J,d,!1):!!$!==!!J&&(q!=null?s3(_,!!J,q,!0):s3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=d=null;for(B in $)if(G=$[B],$.hasOwnProperty(B)&&G!=null&&!q.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:D0(_,J,B,null,q,G)}for(z in q)if(G=q[z],X=$[z],q.hasOwnProperty(z)&&(G!=null||X!=null))switch(z){case"value":d=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&&D0(_,J,z,G,q,X)}eJ(_,d,Z1);return;case"option":for(var N1 in $)if(d=$[N1],$.hasOwnProperty(N1)&&d!=null&&!q.hasOwnProperty(N1))switch(N1){case"selected":_.selected=!1;break;default:D0(_,J,N1,null,q,d)}for(w in q)if(d=q[w],Z1=$[w],q.hasOwnProperty(w)&&d!==Z1&&(d!=null||Z1!=null))switch(w){case"selected":_.selected=d&&typeof d!=="function"&&typeof d!=="symbol";break;default:D0(_,J,w,d,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 $)d=$[V1],$.hasOwnProperty(V1)&&d!=null&&!q.hasOwnProperty(V1)&&D0(_,J,V1,null,q,d);for(f in q)if(d=q[f],Z1=$[f],q.hasOwnProperty(f)&&d!==Z1&&(d!=null||Z1!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:D0(_,J,f,d,q,Z1)}return;default:if(h9(J)){for(var h0 in $)d=$[h0],$.hasOwnProperty(h0)&&d!==void 0&&!q.hasOwnProperty(h0)&&eG(_,J,h0,void 0,q,d);for(e in q)d=q[e],Z1=$[e],!q.hasOwnProperty(e)||d===Z1||d===void 0&&Z1===void 0||eG(_,J,e,d,q,Z1);return}}for(var T0 in $)d=$[T0],$.hasOwnProperty(T0)&&d!=null&&!q.hasOwnProperty(T0)&&D0(_,J,T0,null,q,d);for(J1 in q)d=q[J1],Z1=$[J1],!q.hasOwnProperty(J1)||d===Z1||d==null&&Z1==null||D0(_,J,J1,d,q,Z1)}function FW(_){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 XW(_,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?(J0(z,X),q+=G+X+":"+(""+z).trim()):typeof z!=="number"||z===0||TL.has(X)?(J0(z,X),q+=G+X.replace(WL,"-$1").toLowerCase().replace(LL,"-ms-")+":"+(""+z).trim()):q+=G+X.replace(WL,"-$1").toLowerCase().replace(LL,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=K6(q),K6(J)!==q&&($.style=_Z(_)))}}function g5(_,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(A1(q,J),_===""+q)return}V2(J,_,q,X)}function KW(_,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}V2(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(A1(q,$),_===""+q)return}V2(J,_,q,X)}function HW(_,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)&&(A1(q,J),_===""+q))return}V2(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(A1(q,J),$=x9(""+q),_===$)return}V2(J,_,q,X)}function YW(_,J,$,q){for(var G={},X=new Set,z=_.attributes,B=0;B<z.length;B++)switch(z[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(z[B].name)}if(h9(J)){for(var w in $)if($.hasOwnProperty(w)){var f=$[w];if(f!=null){if(Y8.hasOwnProperty(w))typeof f!=="function"&&g4(w,f);else if($.suppressHydrationWarning!==!0)switch(w){case"children":typeof f!=="string"&&typeof f!=="number"||V2("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=GW(_,f),V2(w,z,f,G));continue;case"style":X.delete(w),XW(_,f,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=Y1(_,"class",f),V2("className",z,f,G);continue;default:q.context===y3&&J!=="svg"&&J!=="math"?X.delete(w.toLowerCase()):X.delete(w),z=Y1(_,w,f),V2(w,z,f,G)}}}}else for(f in $)if($.hasOwnProperty(f)&&(w=$[f],w!=null)){if(Y8.hasOwnProperty(f))typeof w!=="function"&&g4(f,w);else if($.suppressHydrationWarning!==!0)switch(f){case"children":typeof w!=="string"&&typeof w!=="number"||V2("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=GW(_,w),z!==w&&(G[f]={__html:z}));continue;case"className":g5(_,f,"class",w,X,G);continue;case"tabIndex":g5(_,f,"tabindex",w,X,G);continue;case"style":X.delete(f),XW(_,w,G);continue;case"multiple":X.delete(f),V2(f,_.multiple,w,G);continue;case"muted":X.delete(f),V2(f,_.muted,w,G);continue;case"autoFocus":X.delete("autofocus"),V2(f,_.autofocus,w,G);continue;case"data":if(J!=="object"){X.delete(f),z=_.getAttribute("data"),V2(f,z,w,G);continue}case"src":case"href":if(!(w!==""||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,w,X,G);continue;case"action":case"formAction":if(z=_.getAttribute(f),typeof w==="function"){X.delete(f.toLowerCase()),f==="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===rP){X.delete(f.toLowerCase()),V2(f,"function",w,G);continue}$Z(_,f,f.toLowerCase(),w,X,G);continue;case"xlinkHref":$Z(_,f,"xlink:href",w,X,G);continue;case"contentEditable":JZ(_,f,"contenteditable",w,X,G);continue;case"spellCheck":JZ(_,f,"spellcheck",w,X,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JZ(_,f,f,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":KW(_,f,f.toLowerCase(),w,X,G);continue;case"capture":case"download":_:{B=_;var e=z=f,J1=G;if(X.delete(e),B=B.getAttribute(e),B===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&&B==="")break _;break;default:if(A1(w,z),B===""+w)break _}V2(z,B,w,J1)}continue;case"cols":case"rows":case"size":case"span":_:{if(B=_,e=z=f,J1=G,X.delete(e),B=B.getAttribute(e),B===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)&&(A1(w,z),B===""+w))break _}V2(z,B,w,J1)}continue;case"rowSpan":HW(_,f,"rowspan",w,X,G);continue;case"start":HW(_,f,f,w,X,G);continue;case"xHeight":g5(_,f,"x-height",w,X,G);continue;case"xlinkActuate":g5(_,f,"xlink:actuate",w,X,G);continue;case"xlinkArcrole":g5(_,f,"xlink:arcrole",w,X,G);continue;case"xlinkRole":g5(_,f,"xlink:role",w,X,G);continue;case"xlinkShow":g5(_,f,"xlink:show",w,X,G);continue;case"xlinkTitle":g5(_,f,"xlink:title",w,X,G);continue;case"xlinkType":g5(_,f,"xlink:type",w,X,G);continue;case"xmlBase":g5(_,f,"xml:base",w,X,G);continue;case"xmlLang":g5(_,f,"xml:lang",w,X,G);continue;case"xmlSpace":g5(_,f,"xml:space",w,X,G);continue;case"inert":w!==""||Zq[f]||(Zq[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)),KW(_,f,f,w,X,G);continue;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N"){B=zH(f),z=!1,q.context===y3&&J!=="svg"&&J!=="math"?X.delete(B.toLowerCase()):(e=f.toLowerCase(),e=TQ.hasOwnProperty(e)?TQ[e]||null:null,e!==null&&e!==f&&(z=!0,X.delete(e)),X.delete(B));_:if(e=_,J1=B,B=w,$1(J1))if(e.hasAttribute(J1))e=e.getAttribute(J1),A1(B,J1),B=e===""+B?B:e;else{switch(typeof B){case"function":case"symbol":break _;case"boolean":if(e=J1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}B=B===void 0?void 0:null}else B=void 0;z||V2(f,B,w,G)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&kI(_,X,G),Object.keys(G).length===0?null:G}function uI(_,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 zW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bI(){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,B=G.duration;if(X&&B&&zW(z)){z=0,B=G.responseEnd;for(q+=1;q<$.length;q++){var w=$[q],f=w.startTime;if(f>B)break;var{transferSize:e,initiatorType:J1}=w;e&&zW(J1)&&(w=w.responseEnd,z+=e*(w<B?1:(B-f)/(w-f)))}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 JQ(_){return _.nodeType===9?_:_.ownerDocument}function WW(_){switch(_){case v7:return G9;case MQ:return Xq;default:return y3}}function LW(_,J){if(_===y3)switch(J){case"svg":return G9;case"math":return Xq;default:return y3}return _===G9&&J==="foreignObject"?y3:_}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 EI(){var _=window.event;if(_&&_.type==="popstate"){if(_===xF)return!1;return xF=_,!0}return xF=null,!1}function K_(){var _=window.event;return _&&_!==GJ?_.type:null}function H_(){var _=window.event;return _&&_!==GJ?_.timeStamp:-1.1}function hI(_){setTimeout(function(){throw _})}function xI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function mI(){}function gI(_,J,$,q){DI(_,J,$,q),_[J5]=q}function BW(_){o6(_,"")}function pI(_,J,$){_.nodeValue=$}function AW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[J5]||null;if(J!==null){var $=r1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,W1($,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,W1($,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 H6(_){return _==="head"}function cI(_,J){_.removeChild(J)}function lI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function MW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===UJ||$===Fq){if(q===0){_.removeChild(G),P7(J);return}q--}else if($===qJ||$===u6||$===V8||$===U9||$===v8)q++;else if($===sP)Y_(_.ownerDocument.documentElement);else if($===oP){$=_.ownerDocument.head,Y_($);for(var X=$.firstChild;X;){var{nextSibling:z,nodeName:B}=X;X[T_]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=z}}else $===tP&&Y_(_.ownerDocument.body);$=G}while($);P7(J)}function TW(_,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,$===UJ)if(_===0)break;else _--;else $!==qJ&&$!==u6&&$!==V8&&$!==U9||_++;$=q}while($)}function iI(_){TW(_,!0)}function dI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function rI(_){_.nodeValue=""}function aI(_){TW(_,!1)}function sI(_,J){J=J[nP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function tI(_,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($),P1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function oI(_,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"){A1(G.name,"name");var X=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[T_])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(_=C5(_.nextSibling),_===null)break}return null}function nI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=C5(_.nextSibling),_===null)return null}return _}function RW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=C5(_.nextSibling),_===null)return null}return _}function UZ(_){return _.data===u6||_.data===V8}function GZ(_){return _.data===U9||_.data===u6&&_.ownerDocument.readyState!==XA}function eI(_,J){var $=_.ownerDocument;if(_.data===V8)_._reactRetry=J;else if(_.data!==u6||$.readyState!==XA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function C5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===qJ||J===U9||J===u6||J===V8||J===v8||J===bF||J===FA)break;if(J===UJ||J===Fq)return null}}return _}function OW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var X=q[G];$[FW(X.name)]=X.name.toLowerCase()==="style"?_Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===v8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function IW(_,J,$){return $===null||$[aP]!==!0?(_.nodeValue===J?_=null:(J=K6(J),_=K6(_.nodeValue)===J?null:_.nodeValue),_):null}function ZZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===UJ||$===Fq){if(J===0)return C5(_.nextSibling);J--}else $!==qJ&&$!==U9&&$!==u6&&$!==V8&&$!==v8||J++}_=_.nextSibling}return null}function wW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===qJ||$===U9||$===u6||$===V8||$===v8){if(J===0)return _;J--}else $!==UJ&&$!==Fq||J++}_=_.previousSibling}return null}function _w(_){P7(_)}function Jw(_){P7(_)}function $w(_){P7(_)}function PW(_,J,$,q,G){switch(G&&b9(_,q.ancestorInfo),J=JQ($),_){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 Qw(_,J,$,q){if(!$[L6]&&r1($)){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]);g2($,_,J),$[p2]=q,$[J5]=J}function Y_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);P1(_)}function $Q(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function NW(_,J,$){var q=Z9;if(q&&typeof J==="string"&&J){var G=R0(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),LA.has(G)||(LA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),g2(J,"link",_),E1(J),q.head.appendChild(J)))}}function CW(_,J,$,q){var G=(G=z6.current)?$Q(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"?($=I7($.href),J=W0(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"){_=I7($.href);var X=W0(G).hoistableStyles,z=X.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:k8,preload:null}},X.set(_,z),(X=G.querySelector(z_(_)))&&!X._p&&(z.instance=X,z.state.loading=ZJ|n5),!e5.has(_))){var B={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};e5.set(_,B),X||qw(G,_,B,z.state)}if(J&&q===null)throw $=`
177
177
 
178
178
  - `+QQ(J)+`
179
179
  + `+QQ($),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
181
  - `+QQ(J)+`
182
- + `+QQ($),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"?($=w7($),J=F0(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 QQ(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):F4.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):F4.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):F4.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function I7(_){return'href="'+w0(_)+'"'}function z_(_){return'link[rel="stylesheet"]['+_+"]"}function fW(_){return Y0({},_,{"data-precedence":_.precedence,precedence:null})}function qw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=ZJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=ZJ}),J.addEventListener("error",function(){return q.loading|=zA}),m2(J,"link",$),x1(J),_.head.appendChild(J))}function w7(_){return'[src="'+w0(_)+'"]'}function W_(_){return"script[async]"+_}function SW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+w0($.href)+'"]');if(q)return J.instance=q,x1(q),q;var G=Y0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),x1(q),m2(q,"style",G),qQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=I7($.href);var X=_.querySelector(z_(G));if(X)return J.state.loading|=o5,J.instance=X,x1(X),X;q=fW($),(G=n5.get(G))&&FZ(q,G),X=(_.ownerDocument||_).createElement("link"),x1(X);var z=X;return z._p=new Promise(function(B,I){z.onload=B,z.onerror=I}),m2(X,"link",q),J.state.loading|=o5,qQ(X,$.precedence,_),J.instance=X;case"script":if(X=w7($.src),G=_.querySelector(W_(X)))return J.instance=G,x1(G),G;if(q=$,G=n5.get(X))q=Y0({},$),XZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),x1(G),m2(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&o5)===V8&&(q=J.instance,J.state.loading|=o5,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 B=q[z];if(B.dataset.precedence===J)X=B;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 vW(_,J,$){if(Kq===null){var q=new Map,G=Kq=new Map;G.set($,q)}else G=Kq,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[T_]||X[g2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==j7){var z=X.getAttribute(J)||"";z=_+z;var B=q.get(z);B?B.push(X):q.set(z,[X])}}return q}function jW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function Uw(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===G9||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=uI($,"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&WA)===V8?!1:!0}function Gw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&o5)===V8){if($.instance===null){var G=I7(q.href),X=J.querySelector(z_(G));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=UQ.bind(_),J.then(_,_)),$.state.loading|=o5,$.instance=X,x1(X);return}X=J.ownerDocument||J,q=fW(q),(G=n5.get(G))&&FZ(q,G),X=X.createElement("link"),x1(X);var z=X;z._p=new Promise(function(B,I){z.onload=B,z.onerror=I}),m2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&WA)===V8&&(_.count++,$=UQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function Zw(_,J){return _.stylesheets&&_.count===0&&GQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend){var X=_.unsuspend;_.unsuspend=null,X()}},JN+J);0<_.imgBytes&&gF===0&&(gF=125*bI()*QN);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>gF?50:$N)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function UQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)GQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function GQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Hq=new Map,J.forEach(Fw,_),Hq=null,UQ.call(_))}function Fw(_,J){if(!(J.state.loading&o5)){var $=Hq.get(_);if($)var q=$.get(pF);else{$=new Map,Hq.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=UQ.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|=o5}}function Xw(_,J,$,q,G,X,z,B,I){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=j8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=G2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G2(0),this.hiddenUpdates=G2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=X,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 yW(_,J,$,q,G,X,z,B,I,f,e,J1){return _=new Xw(_,J,$,z,I,f,e,J1,B),J=SP,X===!0&&(J|=d2|K4),J|=q0,X=R(3,null,null,J),_.current=X,X.stateNode=_,J=EU(),Q8(J),_.pooledCache=J,Q8(J),X.memoizedState={element:q,isDehydrated:$,cache:J},pU(X),_}function kW(_){if(!_)return A6;return _=A6,_}function KZ(_,J,$,q,G,X){if(i2&&typeof i2.onScheduleFiberRoot==="function")try{i2.onScheduleFiberRoot(S7,q,$)}catch(z){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",z))}G=kW(G),q.context===null?q.context=G:q.pendingContext=G,g4&&j5!==null&&!TA&&(TA=!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.
182
+ + `+QQ($),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"?($=w7($),J=W0(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 QQ(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):K4.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):K4.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):K4.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function I7(_){return'href="'+R0(_)+'"'}function z_(_){return'link[rel="stylesheet"]['+_+"]"}function fW(_){return Y0({},_,{"data-precedence":_.precedence,precedence:null})}function qw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=ZJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=ZJ}),J.addEventListener("error",function(){return q.loading|=zA}),g2(J,"link",$),E1(J),_.head.appendChild(J))}function w7(_){return'[src="'+R0(_)+'"]'}function W_(_){return"script[async]"+_}function SW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+R0($.href)+'"]');if(q)return J.instance=q,E1(q),q;var G=Y0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),E1(q),g2(q,"style",G),qQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=I7($.href);var X=_.querySelector(z_(G));if(X)return J.state.loading|=n5,J.instance=X,E1(X),X;q=fW($),(G=e5.get(G))&&FZ(q,G),X=(_.ownerDocument||_).createElement("link"),E1(X);var z=X;return z._p=new Promise(function(B,w){z.onload=B,z.onerror=w}),g2(X,"link",q),J.state.loading|=n5,qQ(X,$.precedence,_),J.instance=X;case"script":if(X=w7($.src),G=_.querySelector(W_(X)))return J.instance=G,E1(G),G;if(q=$,G=e5.get(X))q=Y0({},$),XZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),E1(G),g2(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&n5)===k8&&(q=J.instance,J.state.loading|=n5,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 B=q[z];if(B.dataset.precedence===J)X=B;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 jW(_,J,$){if(Kq===null){var q=new Map,G=Kq=new Map;G.set($,q)}else G=Kq,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[T_]||X[p2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==v7){var z=X.getAttribute(J)||"";z=_+z;var B=q.get(z);B?B.push(X):q.set(z,[X])}}return q}function vW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function Uw(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===G9||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=uI($,"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&WA)===k8?!1:!0}function Gw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&n5)===k8){if($.instance===null){var G=I7(q.href),X=J.querySelector(z_(G));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=UQ.bind(_),J.then(_,_)),$.state.loading|=n5,$.instance=X,E1(X);return}X=J.ownerDocument||J,q=fW(q),(G=e5.get(G))&&FZ(q,G),X=X.createElement("link"),E1(X);var z=X;z._p=new Promise(function(B,w){z.onload=B,z.onerror=w}),g2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&WA)===k8&&(_.count++,$=UQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function Zw(_,J){return _.stylesheets&&_.count===0&&GQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend){var X=_.unsuspend;_.unsuspend=null,X()}},JN+J);0<_.imgBytes&&gF===0&&(gF=125*bI()*QN);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>gF?50:$N)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function UQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)GQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function GQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Hq=new Map,J.forEach(Fw,_),Hq=null,UQ.call(_))}function Fw(_,J){if(!(J.state.loading&n5)){var $=Hq.get(_);if($)var q=$.get(pF);else{$=new Map,Hq.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=UQ.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|=n5}}function Xw(_,J,$,q,G,X,z,B,w){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=y8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=F2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=F2(0),this.hiddenUpdates=F2(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 yW(_,J,$,q,G,X,z,B,w,f,e,J1){return _=new Xw(_,J,$,z,w,f,e,J1,B),J=SP,X===!0&&(J|=r2|Y4),J|=U0,X=R(3,null,null,J),_.current=X,X.stateNode=_,J=EU(),U8(J),_.pooledCache=J,U8(J),X.memoizedState={element:q,isDehydrated:$,cache:J},pU(X),_}function kW(_){if(!_)return T6;return _=T6,_}function KZ(_,J,$,q,G,X){if(d2&&typeof d2.onScheduleFiberRoot==="function")try{d2.onScheduleFiberRoot(S7,q,$)}catch(z){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",z))}G=kW(G),q.context===null?q.context=G:q.pendingContext=G,l4&&S5!==null&&!TA&&(TA=!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(j5)||"Unknown")),q=$6(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),$=Q6(_,q,J),$!==null&&(C4(J,"root.render()",null),o0($,_,J),a9($,_,J))}function DW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function HZ(_,J){DW(_,J),(_=_.alternate)&&DW(_,J)}function uW(_){if(_.tag===13||_.tag===31){var J=l2(_,67108864);J!==null&&o0(J,_,67108864),HZ(_,67108864)}}function bW(_){if(_.tag===13||_.tag===31){var J=f5(_);J=R5(J);var $=l2(_,J);$!==null&&o0($,_,J),HZ(_,J)}}function Kw(){return j5}function Hw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=C0.p;try{C0.p=V5,YZ(_,J,$,q)}finally{C0.p=X,Y1.T=G}}function Yw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=C0.p;try{C0.p=X4,YZ(_,J,$,q)}finally{C0.p=X,Y1.T=G}}function YZ(_,J,$,q){if(zq){var G=zZ(q);if(G===null)oG(_,J,q,Wq,$),hW(_,q);else if(zw(G,_,J,$,q))q.stopPropagation();else if(hW(_,q),J&4&&-1<UN.indexOf(_)){for(;G!==null;){var X=i1(G);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var z=C2(X.pendingLanes);if(z!==0){var B=X;B.pendingLanes|=2;for(B.entangledLanes|=2;z;){var I=1<<31-e2(z);B.entanglements[1]|=I,z&=~I}E4(X),(R0&(w2|u5))===k2&&(tQ=j2()+rB,F_(0,!1))}}break;case 31:case 13:B=l2(X,2),B!==null&&o0(B,X,2),T7(),HZ(X,2)}if(X=zZ(q),X===null&&oG(_,J,q,Wq,$),X===G)break;G=X}G!==null&&q.stopPropagation()}else oG(_,J,q,null,$)}}function zZ(_){return _=TU(_),WZ(_)}function WZ(_){if(Wq=null,_=y1(_),_!==null){var J=C(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=y(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 Wq=_,null}function EW(_){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 V5;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 X4;case"message":switch(Iw()){case fZ:return V5;case SZ:return X4;case f7:case ww:return l4;case vZ:return BQ;default:return l4}default:return l4}}function hW(_,J){switch(_){case"focusin":case"focusout":D6=null;break;case"dragenter":case"dragleave":u6=null;break;case"mouseover":case"mouseout":b6=null;break;case"pointerover":case"pointerout":XJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":KJ.delete(J.pointerId)}}function L_(_,J,$,q,G,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[G]},J!==null&&(J=i1(J),J!==null&&uW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function zw(_,J,$,q,G){switch(J){case"focusin":return D6=L_(D6,_,J,$,q,G),!0;case"dragenter":return u6=L_(u6,_,J,$,q,G),!0;case"mouseover":return b6=L_(b6,_,J,$,q,G),!0;case"pointerover":var X=G.pointerId;return XJ.set(X,L_(XJ.get(X)||null,_,J,$,q,G)),!0;case"gotpointercapture":return X=G.pointerId,KJ.set(X,L_(KJ.get(X)||null,_,J,$,q,G)),!0}return!1}function xW(_){var J=y1(_.target);if(J!==null){var $=C(J);if($!==null){if(J=$.tag,J===13){if(J=y($),J!==null){_.blockedOn=J,I1(_.priority,function(){bW($)});return}}else if(J===31){if(J=N($),J!==null){_.blockedOn=J,I1(_.priority,function(){bW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function ZQ(_){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;R_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),R_=G,$.target.dispatchEvent(q),R_===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."),R_=null}else return J=i1($),J!==null&&uW(J),_.blockedOn=$,!1;J.shift()}return!0}function mW(_,J,$){ZQ(_)&&$.delete(J)}function Ww(){cF=!1,D6!==null&&ZQ(D6)&&(D6=null),u6!==null&&ZQ(u6)&&(u6=null),b6!==null&&ZQ(b6)&&(b6=null),XJ.forEach(mW),KJ.forEach(mW)}function FQ(_,J){_.blockedOn===J&&(_.blockedOn=null,cF||(cF=!0,I0.unstable_scheduleCallback(I0.unstable_NormalPriority,Ww)))}function gW(_){Lq!==_&&(Lq=_,I0.unstable_scheduleCallback(I0.unstable_NormalPriority,function(){Lq===_&&(Lq=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=i1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),WG(X,$,q,G))}}))}function P7(_){function J(I){return FQ(I,_)}D6!==null&&FQ(D6,_),u6!==null&&FQ(u6,_),b6!==null&&FQ(b6,_),XJ.forEach(J),KJ.forEach(J);for(var $=0;$<E6.length;$++){var q=E6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<E6.length&&($=E6[0],$.blockedOn===null);)xW($),$.blockedOn===null&&E6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],X=$[q+1],z=G[_5]||null;if(typeof X==="function")z||gW($);else if(z){var B=null;if(X&&X.hasAttribute("formAction")){if(G=X,z=X[_5]||null)B=z.formAction;else if(WZ(G)!==null)continue}else B=z.action;typeof B==="function"?$[q+1]=B:($.splice(q,3),q-=3),gW($)}}}function pW(){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 LZ(_){this._internalRoot=_}function XQ(_){this._internalRoot=_}function cW(_){_[z6]&&(_._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 Y0=Object.assign,Lw=Symbol.for("react.element"),x4=Symbol.for("react.transitional.element"),N7=Symbol.for("react.portal"),C7=Symbol.for("react.fragment"),KQ=Symbol.for("react.strict_mode"),BZ=Symbol.for("react.profiler"),AZ=Symbol.for("react.consumer"),m4=Symbol.for("react.context"),B_=Symbol.for("react.forward_ref"),MZ=Symbol.for("react.suspense"),TZ=Symbol.for("react.suspense_list"),HQ=Symbol.for("react.memo"),v5=Symbol.for("react.lazy"),RZ=Symbol.for("react.activity"),Bw=Symbol.for("react.memo_cache_sentinel"),lW=Symbol.iterator,Aw=Symbol.for("react.client.reference"),O2=Array.isArray,Y1=F9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C0=dF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mw=Object.freeze({pending:!1,data:null,method:null,action:null}),OZ=[],IZ=[],B3=-1,K6=s(null),A_=s(null),H6=s(null),YQ=s(null),M_=0,iW,dW,rW,aW,sW,tW,oW;k.__reactDisabledLog=!0;var wZ,nW,PZ=!1,NZ=new(typeof WeakMap==="function"?WeakMap:Map),j5=null,g4=!1,F4=Object.prototype.hasOwnProperty,CZ=I0.unstable_scheduleCallback,Tw=I0.unstable_cancelCallback,Rw=I0.unstable_shouldYield,Ow=I0.unstable_requestPaint,j2=I0.unstable_now,Iw=I0.unstable_getCurrentPriorityLevel,fZ=I0.unstable_ImmediatePriority,SZ=I0.unstable_UserBlockingPriority,f7=I0.unstable_NormalPriority,ww=I0.unstable_LowPriority,vZ=I0.unstable_IdlePriority,Pw=I0.log,Nw=I0.unstable_setDisableYieldValue,S7=null,i2=null,p4=!1,c4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",e2=Math.clz32?Math.clz32:t0,Cw=Math.log,fw=Math.LN2,zQ=256,WQ=262144,LQ=4194304,V5=2,X4=8,l4=32,BQ=268435456,Y6=Math.random().toString(36).slice(2),g2="__reactFiber$"+Y6,_5="__reactProps$"+Y6,z6="__reactContainer$"+Y6,jZ="__reactEvents$"+Y6,Sw="__reactListeners$"+Y6,vw="__reactHandles$"+Y6,eW="__reactResources$"+Y6,T_="__reactMarker$"+Y6,_L=new Set,K8={},VZ={},jw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vw=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]*$"),JL={},$L={},yw=/[\n"\\]/g,QL=!1,qL=!1,UL=!1,GL=!1,ZL=!1,FL=!1,XL=["value","defaultValue"],KL=!1,HL=/["'&<>\n\t]|^\s|\s$/,kw="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(" "),YL="applet caption html table td th marquee object template foreignObject desc title".split(" "),Dw=YL.concat(["button"]),uw="dd dt li option optgroup p rp rt".split(" "),zL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},AQ={},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"]},WL=/([A-Z])/g,LL=/^ms-/,bw=/^(?:webkit|moz|o)[A-Z]/,Ew=/^-ms-/,hw=/-(.)/g,BL=/;\s*$/,v7={},kZ={},AL=!1,ML=!1,TL=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(" ")),MQ="http://www.w3.org/1998/Math/MathML",j7="http://www.w3.org/2000/svg",xw=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"]]),TQ={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"},RL={"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},V7={},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]*$"),OL=!1,J5={},IL=/^on./,pw=/^on[^A-Z]/,cw=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]*$"),lw=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]*$"),iw=/^[\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,R_=null,y7=null,k7=null,DZ=!1,i4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uZ=!1;if(i4)try{var O_={};Object.defineProperty(O_,"passive",{get:function(){uZ=!0}}),window.addEventListener("test",O_,O_),window.removeEventListener("test",O_,O_)}catch(_){uZ=!1}var W6=null,bZ=null,RQ=null,H8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OQ=H5(H8),I_=Y0({},H8,{view:0,detail:0}),dw=H5(I_),EZ,hZ,w_,IQ=Y0({},I_,{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 _!==w_&&(w_&&_.type==="mousemove"?(EZ=_.screenX-w_.screenX,hZ=_.screenY-w_.screenY):hZ=EZ=0,w_=_),EZ},movementY:function(_){return"movementY"in _?_.movementY:hZ}}),wL=H5(IQ),rw=Y0({},IQ,{dataTransfer:0}),aw=H5(rw),sw=Y0({},I_,{relatedTarget:0}),xZ=H5(sw),tw=Y0({},H8,{animationName:0,elapsedTime:0,pseudoElement:0}),ow=H5(tw),nw=Y0({},H8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),ew=H5(nw),_P=Y0({},H8,{data:0}),PL=H5(_P),JP=PL,$P={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QP={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"},qP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},UP=Y0({},I_,{key:function(_){if(_.key){var J=$P[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=Z$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?QP[_.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"?Z$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?Z$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),GP=H5(UP),ZP=Y0({},IQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NL=H5(ZP),FP=Y0({},I_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RU}),XP=H5(FP),KP=Y0({},H8,{propertyName:0,elapsedTime:0,pseudoElement:0}),HP=H5(KP),YP=Y0({},IQ,{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}),zP=H5(YP),WP=Y0({},H8,{newState:0,oldState:0}),LP=H5(WP),BP=[9,13,27,32],CL=229,mZ=i4&&"CompositionEvent"in window,P_=null;i4&&"documentMode"in document&&(P_=document.documentMode);var AP=i4&&"TextEvent"in window&&!P_,fL=i4&&(!mZ||P_&&8<P_&&11>=P_),SL=32,vL=String.fromCharCode(SL),jL=!1,D7=!1,MP={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},N_=null,C_=null,VL=!1;i4&&(VL=xO("input")&&(!document.documentMode||9<document.documentMode));var $5=typeof Object.is==="function"?Object.is:iO,TP=i4&&"documentMode"in document&&11>=document.documentMode,u7=null,gZ=null,f_=null,pZ=!1,b7={animationend:t6("Animation","AnimationEnd"),animationiteration:t6("Animation","AnimationIteration"),animationstart:t6("Animation","AnimationStart"),transitionrun:t6("Transition","TransitionRun"),transitionstart:t6("Transition","TransitionStart"),transitioncancel:t6("Transition","TransitionCancel"),transitionend:t6("Transition","TransitionEnd")},cZ={},yL={};i4&&(yL=document.createElement("div").style,("AnimationEvent"in window)||(delete b7.animationend.animation,delete b7.animationiteration.animation,delete b7.animationstart.animation),("TransitionEvent"in window)||delete b7.transitionend.transition);var kL=o6("animationend"),DL=o6("animationiteration"),uL=o6("animationstart"),RP=o6("transitionrun"),OP=o6("transitionstart"),IP=o6("transitioncancel"),bL=o6("transitionend"),EL=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 hL=0;if(typeof performance==="object"&&typeof performance.now==="function")var wP=performance,xL=function(){return wP.now()};else{var PP=Date;xL=function(){return PP.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(_)},NP="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.",wQ=0,dZ=1,rZ=2,aZ=3,PQ="– ",NQ="+ ",mL="  ",h0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",g5="Components ⚛",z0="Scheduler ⚛",W0="Blocking",L6=!1,A3={color:"primary",properties:null,tooltipText:"",track:g5},B6={start:-0,end:-0,detail:{devtools:A3}},CP=["Changed Props",""],gL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fP=["Changed Props",gL],S_=1,M3=2,p5=[],E7=0,sZ=0,A6={};Object.freeze(A6);var c5=null,h7=null,a1=0,SP=1,q0=2,d2=8,K4=16,vP=32,pL=!1;try{var cL=Object.preventExtensions({})}catch(_){pL=!0}var tZ=new WeakMap,x7=[],m7=0,CQ=null,v_=0,l5=[],i5=0,Y8=null,T3=1,R3="",p2=null,x0=null,B0=!1,d4=!1,y5=null,M6=null,d5=!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=s(null),eZ=s(null),lL={},fQ=null,g7=null,p7=!1,jP=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 $()})}},VP=I0.unstable_scheduleCallback,yP=I0.unstable_NormalPriority,H2={$$typeof:m4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Y2=I0.unstable_now,SQ=console.createTask?console.createTask:function(){return null},j_=1,vQ=2,V2=-0,T6=-0,O3=-0,I3=null,Q5=-1.1,z8=-0,r0=-0,p1=-1.1,d1=-1.1,c0=null,n0=!1,R6=-0,r4=-1.1,V_=null,O6=0,_F=null,JF=null,W8=-1.1,y_=null,c7=-1.1,jQ=-1.1,a4=-0,w3=-1.1,r5=-1.1,$F=0,k_=null,iL=null,dL=null,I6=-1.1,L8=null,w6=-1.1,VQ=-1.1,rL=-0,aL=-0,yQ=0,P3=null,sL=0,D_=-1.1,kQ=!1,DQ=!1,u_=null,QF=0,B8=0,l7=null,tL=Y1.S;Y1.S=function(_,J){if(iB=j2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>w3&&0>r5){w3=Y2();var $=H_(),q=K_();if($!==w6||q!==L8)w6=-1.1;I6=$,L8=q}nO(_,J)}tL!==null&&tL(_,J)};var A8=s(null),H4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},b_=[],E_=[],h_=[],x_=[],m_=[],g_=[],M8=new Set;H4.recordUnsafeLifecycleWarnings=function(_,J){M8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&b_.push(_),_.mode&d2&&typeof J.UNSAFE_componentWillMount==="function"&&E_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&h_.push(_),_.mode&d2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&x_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&m_.push(_),_.mode&d2&&typeof J.UNSAFE_componentWillUpdate==="function"&&g_.push(_))},H4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<b_.length&&(b_.forEach(function(B){_.add(m(B)||"Component"),M8.add(B.type)}),b_=[]);var J=new Set;0<E_.length&&(E_.forEach(function(B){J.add(m(B)||"Component"),M8.add(B.type)}),E_=[]);var $=new Set;0<h_.length&&(h_.forEach(function(B){$.add(m(B)||"Component"),M8.add(B.type)}),h_=[]);var q=new Set;0<x_.length&&(x_.forEach(function(B){q.add(m(B)||"Component"),M8.add(B.type)}),x_=[]);var G=new Set;0<m_.length&&(m_.forEach(function(B){G.add(m(B)||"Component"),M8.add(B.type)}),m_=[]);var X=new Set;if(0<g_.length&&(g_.forEach(function(B){X.add(m(B)||"Component"),M8.add(B.type)}),g_=[]),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.`,m(S5)||"Unknown")),q=q6(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),$=U6(_,q,J),$!==null&&(j4(J,"root.render()",null),e0($,_,J),a9($,_,J))}function DW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function HZ(_,J){DW(_,J),(_=_.alternate)&&DW(_,J)}function uW(_){if(_.tag===13||_.tag===31){var J=i2(_,67108864);J!==null&&e0(J,_,67108864),HZ(_,67108864)}}function bW(_){if(_.tag===13||_.tag===31){var J=N5(_);J=U4(J);var $=i2(_,J);$!==null&&e0($,_,J),HZ(_,J)}}function Kw(){return S5}function Hw(_,J,$,q){var G=z1.T;z1.T=null;var X=f0.p;try{f0.p=j5,YZ(_,J,$,q)}finally{f0.p=X,z1.T=G}}function Yw(_,J,$,q){var G=z1.T;z1.T=null;var X=f0.p;try{f0.p=H4,YZ(_,J,$,q)}finally{f0.p=X,z1.T=G}}function YZ(_,J,$,q){if(zq){var G=zZ(q);if(G===null)oG(_,J,q,Wq,$),hW(_,q);else if(zw(G,_,J,$,q))q.stopPropagation();else if(hW(_,q),J&4&&-1<UN.indexOf(_)){for(;G!==null;){var X=r1(G);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var z=R2(X.pendingLanes);if(z!==0){var B=X;B.pendingLanes|=2;for(B.entangledLanes|=2;z;){var w=1<<31-_5(z);B.entanglements[1]|=w,z&=~w}m4(X),(O0&(N2|k5))===u2&&(tQ=y2()+rB,F_(0,!1))}}break;case 31:case 13:B=i2(X,2),B!==null&&e0(B,X,2),T7(),HZ(X,2)}if(X=zZ(q),X===null&&oG(_,J,q,Wq,$),X===G)break;G=X}G!==null&&q.stopPropagation()}else oG(_,J,q,null,$)}}function zZ(_){return _=TU(_),WZ(_)}function WZ(_){if(Wq=null,_=k1(_),_!==null){var J=C(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=y(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 Wq=_,null}function EW(_){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 j5;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 H4;case"message":switch(Iw()){case fZ:return j5;case SZ:return H4;case f7:case ww:return r4;case jZ:return BQ;default:return r4}default:return r4}}function hW(_,J){switch(_){case"focusin":case"focusout":b6=null;break;case"dragenter":case"dragleave":E6=null;break;case"mouseover":case"mouseout":h6=null;break;case"pointerover":case"pointerout":XJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":KJ.delete(J.pointerId)}}function L_(_,J,$,q,G,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[G]},J!==null&&(J=r1(J),J!==null&&uW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function zw(_,J,$,q,G){switch(J){case"focusin":return b6=L_(b6,_,J,$,q,G),!0;case"dragenter":return E6=L_(E6,_,J,$,q,G),!0;case"mouseover":return h6=L_(h6,_,J,$,q,G),!0;case"pointerover":var X=G.pointerId;return XJ.set(X,L_(XJ.get(X)||null,_,J,$,q,G)),!0;case"gotpointercapture":return X=G.pointerId,KJ.set(X,L_(KJ.get(X)||null,_,J,$,q,G)),!0}return!1}function xW(_){var J=k1(_.target);if(J!==null){var $=C(J);if($!==null){if(J=$.tag,J===13){if(J=y($),J!==null){_.blockedOn=J,w1(_.priority,function(){bW($)});return}}else if(J===31){if(J=N($),J!==null){_.blockedOn=J,w1(_.priority,function(){bW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function ZQ(_){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;R_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),R_=G,$.target.dispatchEvent(q),R_===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."),R_=null}else return J=r1($),J!==null&&uW(J),_.blockedOn=$,!1;J.shift()}return!0}function mW(_,J,$){ZQ(_)&&$.delete(J)}function Ww(){cF=!1,b6!==null&&ZQ(b6)&&(b6=null),E6!==null&&ZQ(E6)&&(E6=null),h6!==null&&ZQ(h6)&&(h6=null),XJ.forEach(mW),KJ.forEach(mW)}function FQ(_,J){_.blockedOn===J&&(_.blockedOn=null,cF||(cF=!0,w0.unstable_scheduleCallback(w0.unstable_NormalPriority,Ww)))}function gW(_){Lq!==_&&(Lq=_,w0.unstable_scheduleCallback(w0.unstable_NormalPriority,function(){Lq===_&&(Lq=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=r1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),WG(X,$,q,G))}}))}function P7(_){function J(w){return FQ(w,_)}b6!==null&&FQ(b6,_),E6!==null&&FQ(E6,_),h6!==null&&FQ(h6,_),XJ.forEach(J),KJ.forEach(J);for(var $=0;$<x6.length;$++){var q=x6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<x6.length&&($=x6[0],$.blockedOn===null);)xW($),$.blockedOn===null&&x6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],X=$[q+1],z=G[J5]||null;if(typeof X==="function")z||gW($);else if(z){var B=null;if(X&&X.hasAttribute("formAction")){if(G=X,z=X[J5]||null)B=z.formAction;else if(WZ(G)!==null)continue}else B=z.action;typeof B==="function"?$[q+1]=B:($.splice(q,3),q-=3),gW($)}}}function pW(){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 LZ(_){this._internalRoot=_}function XQ(_){this._internalRoot=_}function cW(_){_[L6]&&(_._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 Y0=Object.assign,Lw=Symbol.for("react.element"),p4=Symbol.for("react.transitional.element"),N7=Symbol.for("react.portal"),C7=Symbol.for("react.fragment"),KQ=Symbol.for("react.strict_mode"),BZ=Symbol.for("react.profiler"),AZ=Symbol.for("react.consumer"),c4=Symbol.for("react.context"),B_=Symbol.for("react.forward_ref"),MZ=Symbol.for("react.suspense"),TZ=Symbol.for("react.suspense_list"),HQ=Symbol.for("react.memo"),f5=Symbol.for("react.lazy"),RZ=Symbol.for("react.activity"),Bw=Symbol.for("react.memo_cache_sentinel"),lW=Symbol.iterator,Aw=Symbol.for("react.client.reference"),w2=Array.isArray,z1=F9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,f0=dF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mw=Object.freeze({pending:!1,data:null,method:null,action:null}),OZ=[],IZ=[],M3=-1,Y6=s(null),A_=s(null),z6=s(null),YQ=s(null),M_=0,iW,dW,rW,aW,sW,tW,oW;k.__reactDisabledLog=!0;var wZ,nW,PZ=!1,NZ=new(typeof WeakMap==="function"?WeakMap:Map),S5=null,l4=!1,K4=Object.prototype.hasOwnProperty,CZ=w0.unstable_scheduleCallback,Tw=w0.unstable_cancelCallback,Rw=w0.unstable_shouldYield,Ow=w0.unstable_requestPaint,y2=w0.unstable_now,Iw=w0.unstable_getCurrentPriorityLevel,fZ=w0.unstable_ImmediatePriority,SZ=w0.unstable_UserBlockingPriority,f7=w0.unstable_NormalPriority,ww=w0.unstable_LowPriority,jZ=w0.unstable_IdlePriority,Pw=w0.log,Nw=w0.unstable_setDisableYieldValue,S7=null,d2=null,i4=!1,d4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",_5=Math.clz32?Math.clz32:o0,Cw=Math.log,fw=Math.LN2,zQ=256,WQ=262144,LQ=4194304,j5=2,H4=8,r4=32,BQ=268435456,W6=Math.random().toString(36).slice(2),p2="__reactFiber$"+W6,J5="__reactProps$"+W6,L6="__reactContainer$"+W6,vZ="__reactEvents$"+W6,Sw="__reactListeners$"+W6,jw="__reactHandles$"+W6,eW="__reactResources$"+W6,T_="__reactMarker$"+W6,_L=new Set,Y8={},VZ={},vw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vw=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]*$"),JL={},$L={},yw=/[\n"\\]/g,QL=!1,qL=!1,UL=!1,GL=!1,ZL=!1,FL=!1,XL=["value","defaultValue"],KL=!1,HL=/["'&<>\n\t]|^\s|\s$/,kw="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(" "),YL="applet caption html table td th marquee object template foreignObject desc title".split(" "),Dw=YL.concat(["button"]),uw="dd dt li option optgroup p rp rt".split(" "),zL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},AQ={},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"]},WL=/([A-Z])/g,LL=/^ms-/,bw=/^(?:webkit|moz|o)[A-Z]/,Ew=/^-ms-/,hw=/-(.)/g,BL=/;\s*$/,j7={},kZ={},AL=!1,ML=!1,TL=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(" ")),MQ="http://www.w3.org/1998/Math/MathML",v7="http://www.w3.org/2000/svg",xw=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"]]),TQ={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"},RL={"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},V7={},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]*$"),OL=!1,$5={},IL=/^on./,pw=/^on[^A-Z]/,cw=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]*$"),lw=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]*$"),iw=/^[\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,R_=null,y7=null,k7=null,DZ=!1,a4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uZ=!1;if(a4)try{var O_={};Object.defineProperty(O_,"passive",{get:function(){uZ=!0}}),window.addEventListener("test",O_,O_),window.removeEventListener("test",O_,O_)}catch(_){uZ=!1}var B6=null,bZ=null,RQ=null,z8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OQ=H5(z8),I_=Y0({},z8,{view:0,detail:0}),dw=H5(I_),EZ,hZ,w_,IQ=Y0({},I_,{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 _!==w_&&(w_&&_.type==="mousemove"?(EZ=_.screenX-w_.screenX,hZ=_.screenY-w_.screenY):hZ=EZ=0,w_=_),EZ},movementY:function(_){return"movementY"in _?_.movementY:hZ}}),wL=H5(IQ),rw=Y0({},IQ,{dataTransfer:0}),aw=H5(rw),sw=Y0({},I_,{relatedTarget:0}),xZ=H5(sw),tw=Y0({},z8,{animationName:0,elapsedTime:0,pseudoElement:0}),ow=H5(tw),nw=Y0({},z8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),ew=H5(nw),_P=Y0({},z8,{data:0}),PL=H5(_P),JP=PL,$P={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QP={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"},qP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},UP=Y0({},I_,{key:function(_){if(_.key){var J=$P[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=Z$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?QP[_.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"?Z$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?Z$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),GP=H5(UP),ZP=Y0({},IQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NL=H5(ZP),FP=Y0({},I_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RU}),XP=H5(FP),KP=Y0({},z8,{propertyName:0,elapsedTime:0,pseudoElement:0}),HP=H5(KP),YP=Y0({},IQ,{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}),zP=H5(YP),WP=Y0({},z8,{newState:0,oldState:0}),LP=H5(WP),BP=[9,13,27,32],CL=229,mZ=a4&&"CompositionEvent"in window,P_=null;a4&&"documentMode"in document&&(P_=document.documentMode);var AP=a4&&"TextEvent"in window&&!P_,fL=a4&&(!mZ||P_&&8<P_&&11>=P_),SL=32,jL=String.fromCharCode(SL),vL=!1,D7=!1,MP={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},N_=null,C_=null,VL=!1;a4&&(VL=xO("input")&&(!document.documentMode||9<document.documentMode));var Q5=typeof Object.is==="function"?Object.is:iO,TP=a4&&"documentMode"in document&&11>=document.documentMode,u7=null,gZ=null,f_=null,pZ=!1,b7={animationend:n6("Animation","AnimationEnd"),animationiteration:n6("Animation","AnimationIteration"),animationstart:n6("Animation","AnimationStart"),transitionrun:n6("Transition","TransitionRun"),transitionstart:n6("Transition","TransitionStart"),transitioncancel:n6("Transition","TransitionCancel"),transitionend:n6("Transition","TransitionEnd")},cZ={},yL={};a4&&(yL=document.createElement("div").style,("AnimationEvent"in window)||(delete b7.animationend.animation,delete b7.animationiteration.animation,delete b7.animationstart.animation),("TransitionEvent"in window)||delete b7.transitionend.transition);var kL=e6("animationend"),DL=e6("animationiteration"),uL=e6("animationstart"),RP=e6("transitionrun"),OP=e6("transitionstart"),IP=e6("transitioncancel"),bL=e6("transitionend"),EL=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 hL=0;if(typeof performance==="object"&&typeof performance.now==="function")var wP=performance,xL=function(){return wP.now()};else{var PP=Date;xL=function(){return PP.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(_)},NP="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.",wQ=0,dZ=1,rZ=2,aZ=3,PQ="– ",NQ="+ ",mL="  ",x0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",p5="Components ⚛",z0="Scheduler ⚛",L0="Blocking",A6=!1,T3={color:"primary",properties:null,tooltipText:"",track:p5},M6={start:-0,end:-0,detail:{devtools:T3}},CP=["Changed Props",""],gL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fP=["Changed Props",gL],S_=1,R3=2,c5=[],E7=0,sZ=0,T6={};Object.freeze(T6);var l5=null,h7=null,s1=0,SP=1,U0=2,r2=8,Y4=16,jP=32,pL=!1;try{var cL=Object.preventExtensions({})}catch(_){pL=!0}var tZ=new WeakMap,x7=[],m7=0,CQ=null,j_=0,i5=[],d5=0,W8=null,O3=1,I3="",c2=null,m0=null,A0=!1,s4=!1,v5=null,R6=null,r5=!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=s(null),eZ=s(null),lL={},fQ=null,g7=null,p7=!1,vP=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 $()})}},VP=w0.unstable_scheduleCallback,yP=w0.unstable_NormalPriority,Y2={$$typeof:c4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},z2=w0.unstable_now,SQ=console.createTask?console.createTask:function(){return null},v_=1,jQ=2,k2=-0,O6=-0,w3=-0,P3=null,q5=-1.1,L8=-0,a0=-0,g1=-1.1,d1=-1.1,l0=null,_2=!1,I6=-0,t4=-1.1,V_=null,w6=0,_F=null,JF=null,B8=-1.1,y_=null,c7=-1.1,vQ=-1.1,o4=-0,N3=-1.1,a5=-1.1,$F=0,k_=null,iL=null,dL=null,P6=-1.1,A8=null,N6=-1.1,VQ=-1.1,rL=-0,aL=-0,yQ=0,C3=null,sL=0,D_=-1.1,kQ=!1,DQ=!1,u_=null,QF=0,M8=0,l7=null,tL=z1.S;z1.S=function(_,J){if(iB=y2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>N3&&0>a5){N3=z2();var $=H_(),q=K_();if($!==N6||q!==A8)N6=-1.1;P6=$,A8=q}nO(_,J)}tL!==null&&tL(_,J)};var T8=s(null),z4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},b_=[],E_=[],h_=[],x_=[],m_=[],g_=[],R8=new Set;z4.recordUnsafeLifecycleWarnings=function(_,J){R8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&b_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillMount==="function"&&E_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&h_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&x_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&m_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillUpdate==="function"&&g_.push(_))},z4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<b_.length&&(b_.forEach(function(B){_.add(m(B)||"Component"),R8.add(B.type)}),b_=[]);var J=new Set;0<E_.length&&(E_.forEach(function(B){J.add(m(B)||"Component"),R8.add(B.type)}),E_=[]);var $=new Set;0<h_.length&&(h_.forEach(function(B){$.add(m(B)||"Component"),R8.add(B.type)}),h_=[]);var q=new Set;0<x_.length&&(x_.forEach(function(B){q.add(m(B)||"Component"),R8.add(B.type)}),x_=[]);var G=new Set;0<m_.length&&(m_.forEach(function(B){G.add(m(B)||"Component"),R8.add(B.type)}),m_=[]);var X=new Set;if(0<g_.length&&(g_.forEach(function(B){X.add(m(B)||"Component"),R8.add(B.type)}),g_=[]),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
 
@@ -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 uQ=new Map,oL=new Set;H4.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&d2&&($=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."):!oL.has(_.type)&&(q=uQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],uQ.set($,q)),q.push(_))},H4.flushLegacyContextWarning=function(){uQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),oL.add(G.type)});var q=A($);z1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,z))};var uQ=new Map,oL=new Set;z4.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&r2&&($=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."):!oL.has(_.type)&&(q=uQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],uQ.set($,q)),q.push(_))},z4.flushLegacyContextWarning=function(){uQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),oL.add(G.type)});var q=A($);W1(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)})}})},H4.discardPendingWarnings=function(){b_=[],E_=[],h_=[],x_=[],m_=[],g_=[],uQ=new Map};var nL={react_stack_bottom_frame:function(_,J,$){var q=g4;g4=!0;try{return _(J,$)}finally{g4=q}}},qF=nL.react_stack_bottom_frame.bind(nL),eL={react_stack_bottom_frame:function(_){var J=g4;g4=!0;try{return _.render()}finally{g4=J}}},_B=eL.react_stack_bottom_frame.bind(eL),JB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){N0(_,_.return,$)}}},UF=JB.react_stack_bottom_frame.bind(JB),$B={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(X){N0(_,_.return,X)}}},QB=$B.react_stack_bottom_frame.bind($B),qB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},kP=qB.react_stack_bottom_frame.bind(qB),UB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){N0(_,J,q)}}},GB=UB.react_stack_bottom_frame.bind(UB),ZB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},DP=ZB.react_stack_bottom_frame.bind(ZB),FB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){N0(_,J,q)}}},uP=FB.react_stack_bottom_frame.bind(FB),XB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},bP=XB.react_stack_bottom_frame.bind(XB),i7=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."),bQ=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."),EQ={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.')}},T8=null,p_=!1,d7=null,c_=0,U0=null,ZF,KB=ZF=!1,HB={},YB={},zB={};T=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(!HB[G]){HB[G]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(G=m(_))&&(X=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},z4.discardPendingWarnings=function(){b_=[],E_=[],h_=[],x_=[],m_=[],g_=[],uQ=new Map};var nL={react_stack_bottom_frame:function(_,J,$){var q=l4;l4=!0;try{return _(J,$)}finally{l4=q}}},qF=nL.react_stack_bottom_frame.bind(nL),eL={react_stack_bottom_frame:function(_){var J=l4;l4=!0;try{return _.render()}finally{l4=J}}},_B=eL.react_stack_bottom_frame.bind(eL),JB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){C0(_,_.return,$)}}},UF=JB.react_stack_bottom_frame.bind(JB),$B={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(X){C0(_,_.return,X)}}},QB=$B.react_stack_bottom_frame.bind($B),qB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},kP=qB.react_stack_bottom_frame.bind(qB),UB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){C0(_,J,q)}}},GB=UB.react_stack_bottom_frame.bind(UB),ZB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},DP=ZB.react_stack_bottom_frame.bind(ZB),FB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){C0(_,J,q)}}},uP=FB.react_stack_bottom_frame.bind(FB),XB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},bP=XB.react_stack_bottom_frame.bind(XB),i7=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."),bQ=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."),EQ={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.')}},O8=null,p_=!1,d7=null,c_=0,G0=null,ZF,KB=ZF=!1,HB={},YB={},zB={};T=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(!HB[G]){HB[G]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(G=m(_))&&(X=`
220
220
 
221
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+".")),z1(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 R8=UY(!0),WB=UY(!1),LB=0,BB=1,AB=2,FF=3,P6=!1,MB=!1,XF=null,KF=!1,r7=s(null),hQ=s(0),k5=s(null),a5=null,a7=1,l_=2,F2=s(0),xQ=0,s5=1,q5=2,D5=4,U5=8,s7,TB=new Set,RB=new Set,HF=new Set,OB=new Set,N3=0,t1=null,D0=null,z2=null,mQ=!1,t7=!1,O8=!1,gQ=0,i_=0,C3=null,EP=0,hP=25,X1=null,t5=null,f3=-1,d_=!1,r_={readContext:p0,use:G6,useCallback:$2,useContext:$2,useEffect:$2,useImperativeHandle:$2,useLayoutEffect:$2,useInsertionEffect:$2,useMemo:$2,useReducer:$2,useRef:$2,useState:$2,useDebugValue:$2,useDeferredValue:$2,useTransition:$2,useSyncExternalStore:$2,useId:$2,useHostTransitionStatus:$2,useFormState:$2,useActionState:$2,useOptimistic:$2,useMemoCache:$2,useCacheRefresh:$2};r_.useEffectEvent=$2;var YF=null,IB=null,zF=null,wB=null,s4=null,Y4=null,pQ=null;YF={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",H0(),Y7(J),KG(_,J)},useContext:function(_){return X1="useContext",H0(),p0(_)},useEffect:function(_,J){return X1="useEffect",H0(),Y7(J),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",H0(),Y7($),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",H0(),Y7(J),U8(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",H0(),Y7(J),FG(_,J)},useMemo:function(_,J){X1="useMemo",H0(),Y7(J);var $=Y1.H;Y1.H=s4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",H0();var q=Y1.H;Y1.H=s4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",H0(),GG(_)},useState:function(_){X1="useState",H0();var J=Y1.H;Y1.H=s4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",H0(),YG(_,J)},useTransition:function(){return X1="useTransition",H0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",H0(),JG(_,J,$)},useId:function(){return X1="useId",H0(),BG()},useFormState:function(_,J){return X1="useFormState",H0(),j$(),W7(_,J)},useActionState:function(_,J){return X1="useActionState",H0(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",H0(),qG(_)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",H0(),ZG(_)}},IB={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",w1(),KG(_,J)},useContext:function(_){return X1="useContext",w1(),p0(_)},useEffect:function(_,J){return X1="useEffect",w1(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",w1(),U8(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),FG(_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=s4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=s4;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=s4;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(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),JG(_,J,$)},useId:function(){return X1="useId",w1(),BG()},useActionState:function(_,J){return X1="useActionState",w1(),W7(_,J)},useFormState:function(_,J){return X1="useFormState",w1(),j$(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",w1(),qG(_)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",w1(),ZG(_)}},zF={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",w1(),h$(_,J)},useContext:function(_){return X1="useContext",w1(),p0(_)},useEffect:function(_,J){X1="useEffect",w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=Y4;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=Y4;try{return z7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),S0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=Y4;try{return z7(G4)}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(),y$(_,J,$)},useId:function(){return X1="useId",w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),k$(_)},useActionState:function(_){return X1="useActionState",w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),AY(_,J)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),b$(_)}},wB={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",w1(),h$(_,J)},useContext:function(_){return X1="useContext",w1(),p0(_)},useEffect:function(_,J){X1="useEffect",w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=pQ;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=pQ;try{return n9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),S0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=pQ;try{return n9(G4)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),SY(_,J)},useTransition:function(){return X1="useTransition",w1(),DY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),y$(_,J,$)},useId:function(){return X1="useId",w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),D$(_)},useActionState:function(_){return X1="useActionState",w1(),D$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),TY(_,J)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),b$(_)}},s4={readContext:function(_){return M(),p0(_)},use:function(_){return L(),G6(_)},useCallback:function(_,J){return X1="useCallback",L(),H0(),KG(_,J)},useContext:function(_){return X1="useContext",L(),H0(),p0(_)},useEffect:function(_,J){return X1="useEffect",L(),H0(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),H0(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",L(),H0(),U8(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),H0(),FG(_,J)},useMemo:function(_,J){X1="useMemo",L(),H0();var $=Y1.H;Y1.H=s4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),H0();var q=Y1.H;Y1.H=s4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",L(),H0(),GG(_)},useState:function(_){X1="useState",L(),H0();var J=Y1.H;Y1.H=s4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",L(),H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),H0(),YG(_,J)},useTransition:function(){return X1="useTransition",L(),H0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),H0(),JG(_,J,$)},useId:function(){return X1="useId",L(),H0(),BG()},useFormState:function(_,J){return X1="useFormState",L(),H0(),W7(_,J)},useActionState:function(_,J){return X1="useActionState",L(),H0(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",L(),H0(),qG(_)},useMemoCache:function(_){return L(),q8(_)},useHostTransitionStatus:G8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",L(),H0(),ZG(_)}},Y4={readContext:function(_){return M(),p0(_)},use:function(_){return L(),G6(_)},useCallback:function(_,J){return X1="useCallback",L(),w1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),w1(),p0(_)},useEffect:function(_,J){X1="useEffect",L(),w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",L(),w1();var $=Y1.H;Y1.H=Y4;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),w1();var q=Y1.H;Y1.H=Y4;try{return z7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",L(),w1(),S0().memoizedState},useState:function(){X1="useState",L(),w1();var _=Y1.H;Y1.H=Y4;try{return z7(G4)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),w1(),fY(_,J)},useTransition:function(){return X1="useTransition",L(),w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),w1(),y$(_,J,$)},useId:function(){return X1="useId",L(),w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",L(),w1(),k$(_)},useActionState:function(_){return X1="useActionState",L(),w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),w1(),AY(_,J)},useMemoCache:function(_){return L(),q8(_)},useHostTransitionStatus:G8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),w1(),b$(_)}},pQ={readContext:function(_){return M(),p0(_)},use:function(_){return L(),G6(_)},useCallback:function(_,J){return X1="useCallback",L(),w1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),w1(),p0(_)},useEffect:function(_,J){X1="useEffect",L(),w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",L(),w1();var $=Y1.H;Y1.H=Y4;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),w1();var q=Y1.H;Y1.H=Y4;try{return n9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",L(),w1(),S0().memoizedState},useState:function(){X1="useState",L(),w1();var _=Y1.H;Y1.H=Y4;try{return n9(G4)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),w1(),SY(_,J)},useTransition:function(){return X1="useTransition",L(),w1(),DY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),w1(),y$(_,J,$)},useId:function(){return X1="useId",L(),w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",L(),w1(),D$(_)},useActionState:function(_){return X1="useActionState",L(),w1(),D$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),w1(),TY(_,J)},useMemoCache:function(_){return L(),q8(_)},useHostTransitionStatus:G8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),w1(),b$(_)}};var PB={},NB=new Set,CB=new Set,fB=new Set,SB=new Set,vB=new Set,jB=new Set,VB=new Set,yB=new Set,kB=new Set,DB=new Set;Object.freeze(PB);var WF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=f5(_),G=$6(q);G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=Q6(_,G,q),J!==null&&(C4(q,"this.setState()",_),o0(J,_,q),a9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=f5(_),G=$6(q);G.tag=BB,G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=Q6(_,G,q),J!==null&&(C4(q,"this.replaceState()",_),o0(J,_,q),a9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=f5(_),q=$6($);q.tag=AB,J!==void 0&&J!==null&&(TG(J),q.callback=J),J=Q6(_,q,$),J!==null&&(C4($,"this.forceUpdate()",_),o0(J,_,$),a9(J,_,$))}},o7=null,LF=null,BF=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."),W2=!1,uB={},bB={},EB={},hB={},n7=!1,xB={},cQ={},AF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},mB=!1,gB=null;gB=new Set;var S3=!1,L2=!1,MF=!1,pB=typeof WeakSet==="function"?WeakSet:Set,y2=null,e7=null,_9=null,B2=null,L5=!1,z4=null,I2=!1,a_=8192,xP={getCacheForType:function(_){var J=p0(H2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return p0(H2).controller.signal},getOwner:function(){return j5}};if(typeof Symbol==="function"&&Symbol.for){var s_=Symbol.for;s_("selector.component"),s_("selector.has_pseudo_class"),s_("selector.role"),s_("selector.test_id"),s_("selector.text")}var mP=[],gP=typeof WeakMap==="function"?WeakMap:Map,k2=0,w2=2,u5=4,v3=0,t_=1,I8=2,lQ=3,N6=4,iQ=6,cB=5,R0=k2,u0=null,X0=null,G0=0,B5=0,dQ=1,w8=2,o_=3,lB=4,TF=5,n_=6,rQ=7,RF=8,P8=9,v0=B5,b5=null,C6=!1,J9=!1,OF=!1,t4=0,a0=v3,f6=0,S6=0,IF=0,A5=0,N8=0,e_=null,G5=null,aQ=!1,sQ=0,iB=0,dB=300,tQ=1/0,rB=500,_J=null,Q2=null,v6=null,oQ=0,wF=1,PF=2,aB=3,j6=0,sB=1,tB=2,oB=3,nB=4,nQ=5,A2=0,V6=null,$9=null,W4=0,NF=0,CF=-0,fF=null,eB=null,_A=null,L4=oQ,JA=null,pP=50,JJ=0,SF=null,vF=!1,eQ=!1,cP=50,C8=0,$J=null,Q9=!1,_q=null,$A=!1,QA=new Set,lP={},Jq=null,q9=null,jF=!1,VF=!1,$q=!1,yF=!1,y6=0,kF={};(function(){for(var _=0;_<lZ.length;_++){var J=lZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),U4($,"on"+J)}U4(kL,"onAnimationEnd"),U4(DL,"onAnimationIteration"),U4(uL,"onAnimationStart"),U4("dblclick","onDoubleClick"),U4("focusin","onFocus"),U4("focusout","onBlur"),U4(RP,"onTransitionRun"),U4(OP,"onTransitionStart"),U4(IP,"onTransitionCancel"),U4(bL,"onTransitionEnd")})(),E2("onMouseEnter",["mouseout","mouseover"]),E2("onMouseLeave",["mouseout","mouseover"]),E2("onPointerEnter",["pointerout","pointerover"]),E2("onPointerLeave",["pointerout","pointerover"]),K2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K2("onBeforeInput",["compositionend","keypress","textInput","paste"]),K2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var QJ="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(QJ)),Qq="_reactListening"+Math.random().toString(36).slice(2),qA=!1,UA=!1,qq=!1,GA=!1,Uq=!1,Gq=!1,ZA=!1,Zq={},iP=/\r\n?/g,dP=/\u0000|\uFFFD/g,f8="http://www.w3.org/1999/xlink",uF="http://www.w3.org/XML/1998/namespace",rP="javascript:throw new Error('React form unexpectedly submitted.')",aP="suppressHydrationWarning",S8="&",Fq="/&",qJ="$",UJ="/$",k6="$?",v8="$~",U9="$!",sP="html",tP="body",oP="head",bF="F!",FA="F",XA="loading",nP="style",j3=0,G9=1,Xq=2,EF=null,hF=null,KA={dialog:!0,webview:!0},xF=null,GJ=void 0,HA=typeof setTimeout==="function"?setTimeout:void 0,eP=typeof clearTimeout==="function"?clearTimeout:void 0,j8=-1,YA=typeof Promise==="function"?Promise:void 0,_N=typeof queueMicrotask==="function"?queueMicrotask:typeof YA<"u"?function(_){return YA.resolve(null).then(_).catch(hI)}:HA,mF=null,V8=0,ZJ=1,zA=2,WA=3,o5=4,n5=new Map,LA=new Set,V3=C0.d;C0.d={f:function(){var _=V3.f(),J=T7();return _||J},r:function(_){var J=i1(_);J!==null&&J.tag===5&&J.type==="form"?yY(J):V3.r(_)},D:function(_){V3.D(_),NW("dns-prefetch",_,null)},C:function(_,J){V3.C(_,J),NW("preconnect",_,J)},L:function(_,J,$){V3.L(_,J,$);var q=Z9;if(q&&_&&J){var G='link[rel="preload"][as="'+w0(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+w0($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+w0($.imageSizes)+'"]')):G+='[href="'+w0(_)+'"]':G+='[href="'+w0(_)+'"]';var X=G;switch(J){case"style":X=I7(_);break;case"script":X=w7(_)}n5.has(X)||(_=Y0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),n5.set(X,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(z_(X))||J==="script"&&q.querySelector(W_(X))||(J=q.createElement("link"),m2(J,"link",_),x1(J),q.head.appendChild(J)))}},m:function(_,J){V3.m(_,J);var $=Z9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+w0(q)+'"][href="'+w0(_)+'"]',X=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=w7(_)}if(!n5.has(X)&&(_=Y0({rel:"modulepreload",href:_},J),n5.set(X,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(W_(X)))return}q=$.createElement("link"),m2(q,"link",_),x1(q),$.head.appendChild(q)}}},X:function(_,J){V3.X(_,J);var $=Z9;if($&&_){var q=F0($).hoistableScripts,G=w7(_),X=q.get(G);X||(X=$.querySelector(W_(G)),X||(_=Y0({src:_,async:!0},J),(J=n5.get(G))&&XZ(_,J),X=$.createElement("script"),x1(X),m2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}},S:function(_,J,$){V3.S(_,J,$);var q=Z9;if(q&&_){var G=F0(q).hoistableStyles,X=I7(_);J=J||"default";var z=G.get(X);if(!z){var B={loading:V8,preload:null};if(z=q.querySelector(z_(X)))B.loading=ZJ|o5;else{_=Y0({rel:"stylesheet",href:_,"data-precedence":J},$),($=n5.get(X))&&FZ(_,$);var I=z=q.createElement("link");x1(I),m2(I,"link",_),I._p=new Promise(function(f,e){I.onload=f,I.onerror=e}),I.addEventListener("load",function(){B.loading|=ZJ}),I.addEventListener("error",function(){B.loading|=zA}),B.loading|=o5,qQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:B},G.set(X,z)}}},M:function(_,J){V3.M(_,J);var $=Z9;if($&&_){var q=F0($).hoistableScripts,G=w7(_),X=q.get(G);X||(X=$.querySelector(W_(G)),X||(_=Y0({src:_,async:!0,type:"module"},J),(J=n5.get(G))&&XZ(_,J),X=$.createElement("script"),x1(X),m2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}}};var Z9=typeof document>"u"?null:document,Kq=null,JN=60000,$N=800,QN=500,gF=0,pF=null,Hq=null,y8=Mw,FJ={$$typeof:m4,Provider:null,Consumer:null,_currentValue:y8,_currentValue2:y8,_threadCount:0},BA="%c%s%c",AA="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",MA="",Yq=" ",qN=Function.prototype.bind,TA=!1,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null,SA=null,vA=null;RA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=l2(_,2),$!==null&&o0($,_,2))},OA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=l2(_,2),$!==null&&o0($,_,2))},IA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=l2(_,2),$!==null&&o0($,_,2))},wA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=l2(_,2),J!==null&&o0(J,_,2)},PA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=l2(_,2),J!==null&&o0(J,_,2)},NA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=l2(_,2),J!==null&&o0(J,_,2)},CA=function(_){var J=l2(_,2);J!==null&&o0(J,_,2)},fA=function(_){var J=T2(),$=l2(_,J);$!==null&&o0($,_,J)},SA=function(_){W=_},vA=function(_){Y=_};var zq=!0,Wq=null,cF=!1,D6=null,u6=null,b6=null,XJ=new Map,KJ=new Map,E6=[],UN="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(" "),Lq=null;if(XQ.prototype.render=LZ.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=f5(q);KZ(q,G,$,J,null,null)},XQ.prototype.unmount=LZ.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;(R0&(w2|u5))!==k2&&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),T7(),J[z6]=null}},XQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=q1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<E6.length&&J!==0&&J<E6[$].priority;$++);E6.splice($,0,_),$===0&&xW(_)}},function(){var _=F9.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=m($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),W1(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 I8=UY(!0),WB=UY(!1),LB=0,BB=1,AB=2,FF=3,C6=!1,MB=!1,XF=null,KF=!1,r7=s(null),hQ=s(0),V5=s(null),s5=null,a7=1,l_=2,K2=s(0),xQ=0,t5=1,U5=2,y5=4,G5=8,s7,TB=new Set,RB=new Set,HF=new Set,OB=new Set,f3=0,n1=null,u0=null,W2=null,mQ=!1,t7=!1,w8=!1,gQ=0,i_=0,S3=null,EP=0,hP=25,X1=null,o5=null,j3=-1,d_=!1,r_={readContext:c0,use:F6,useCallback:q2,useContext:q2,useEffect:q2,useImperativeHandle:q2,useLayoutEffect:q2,useInsertionEffect:q2,useMemo:q2,useReducer:q2,useRef:q2,useState:q2,useDebugValue:q2,useDeferredValue:q2,useTransition:q2,useSyncExternalStore:q2,useId:q2,useHostTransitionStatus:q2,useFormState:q2,useActionState:q2,useOptimistic:q2,useMemoCache:q2,useCacheRefresh:q2};r_.useEffectEvent=q2;var YF=null,IB=null,zF=null,wB=null,n4=null,W4=null,pQ=null;YF={readContext:function(_){return c0(_)},use:F6,useCallback:function(_,J){return X1="useCallback",H0(),Y7(J),KG(_,J)},useContext:function(_){return X1="useContext",H0(),c0(_)},useEffect:function(_,J){return X1="useEffect",H0(),Y7(J),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",H0(),Y7($),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",H0(),Y7(J),Z8(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",H0(),Y7(J),FG(_,J)},useMemo:function(_,J){X1="useMemo",H0(),Y7(J);var $=z1.H;z1.H=n4;try{return HG(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",H0();var q=z1.H;z1.H=n4;try{return eU(_,J,$)}finally{z1.H=q}},useRef:function(_){return X1="useRef",H0(),GG(_)},useState:function(_){X1="useState",H0();var J=z1.H;z1.H=n4;try{return QG(_)}finally{z1.H=J}},useDebugValue:function(){X1="useDebugValue",H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",H0(),YG(_,J)},useTransition:function(){return X1="useTransition",H0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",H0(),JG(_,J,$)},useId:function(){return X1="useId",H0(),BG()},useFormState:function(_,J){return X1="useFormState",H0(),v$(),W7(_,J)},useActionState:function(_,J){return X1="useActionState",H0(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",H0(),qG(_)},useHostTransitionStatus:F8,useMemoCache:G8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",H0(),ZG(_)}},IB={readContext:function(_){return c0(_)},use:F6,useCallback:function(_,J){return X1="useCallback",I1(),KG(_,J)},useContext:function(_){return X1="useContext",I1(),c0(_)},useEffect:function(_,J){return X1="useEffect",I1(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",I1(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",I1(),Z8(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",I1(),FG(_,J)},useMemo:function(_,J){X1="useMemo",I1();var $=z1.H;z1.H=n4;try{return HG(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",I1();var q=z1.H;z1.H=n4;try{return eU(_,J,$)}finally{z1.H=q}},useRef:function(_){return X1="useRef",I1(),GG(_)},useState:function(_){X1="useState",I1();var J=z1.H;z1.H=n4;try{return QG(_)}finally{z1.H=J}},useDebugValue:function(){X1="useDebugValue",I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",I1(),YG(_,J)},useTransition:function(){return X1="useTransition",I1(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",I1(),JG(_,J,$)},useId:function(){return X1="useId",I1(),BG()},useActionState:function(_,J){return X1="useActionState",I1(),W7(_,J)},useFormState:function(_,J){return X1="useFormState",I1(),v$(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",I1(),qG(_)},useHostTransitionStatus:F8,useMemoCache:G8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",I1(),ZG(_)}},zF={readContext:function(_){return c0(_)},use:F6,useCallback:function(_,J){return X1="useCallback",I1(),h$(_,J)},useContext:function(_){return X1="useContext",I1(),c0(_)},useEffect:function(_,J){X1="useEffect",I1(),Y5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",I1(),Y5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",I1(),Y5(4,y5,_,J)},useMemo:function(_,J){X1="useMemo",I1();var $=z1.H;z1.H=W4;try{return x$(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",I1();var q=z1.H;z1.H=W4;try{return z7(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",I1(),v0().memoizedState},useState:function(){X1="useState",I1();var _=z1.H;z1.H=W4;try{return z7(F4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",I1(),fY(_,J)},useTransition:function(){return X1="useTransition",I1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",I1(),y$(_,J,$)},useId:function(){return X1="useId",I1(),v0().memoizedState},useFormState:function(_){return X1="useFormState",I1(),v$(),k$(_)},useActionState:function(_){return X1="useActionState",I1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",I1(),AY(_,J)},useHostTransitionStatus:F8,useMemoCache:G8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),v0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",I1(),b$(_)}},wB={readContext:function(_){return c0(_)},use:F6,useCallback:function(_,J){return X1="useCallback",I1(),h$(_,J)},useContext:function(_){return X1="useContext",I1(),c0(_)},useEffect:function(_,J){X1="useEffect",I1(),Y5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",I1(),Y5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",I1(),Y5(4,y5,_,J)},useMemo:function(_,J){X1="useMemo",I1();var $=z1.H;z1.H=pQ;try{return x$(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",I1();var q=z1.H;z1.H=pQ;try{return n9(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",I1(),v0().memoizedState},useState:function(){X1="useState",I1();var _=z1.H;z1.H=pQ;try{return n9(F4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",I1(),SY(_,J)},useTransition:function(){return X1="useTransition",I1(),DY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",I1(),y$(_,J,$)},useId:function(){return X1="useId",I1(),v0().memoizedState},useFormState:function(_){return X1="useFormState",I1(),v$(),D$(_)},useActionState:function(_){return X1="useActionState",I1(),D$(_)},useOptimistic:function(_,J){return X1="useOptimistic",I1(),TY(_,J)},useHostTransitionStatus:F8,useMemoCache:G8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),v0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",I1(),b$(_)}},n4={readContext:function(_){return M(),c0(_)},use:function(_){return L(),F6(_)},useCallback:function(_,J){return X1="useCallback",L(),H0(),KG(_,J)},useContext:function(_){return X1="useContext",L(),H0(),c0(_)},useEffect:function(_,J){return X1="useEffect",L(),H0(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),H0(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",L(),H0(),Z8(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),H0(),FG(_,J)},useMemo:function(_,J){X1="useMemo",L(),H0();var $=z1.H;z1.H=n4;try{return HG(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),H0();var q=z1.H;z1.H=n4;try{return eU(_,J,$)}finally{z1.H=q}},useRef:function(_){return X1="useRef",L(),H0(),GG(_)},useState:function(_){X1="useState",L(),H0();var J=z1.H;z1.H=n4;try{return QG(_)}finally{z1.H=J}},useDebugValue:function(){X1="useDebugValue",L(),H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),H0(),YG(_,J)},useTransition:function(){return X1="useTransition",L(),H0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),H0(),JG(_,J,$)},useId:function(){return X1="useId",L(),H0(),BG()},useFormState:function(_,J){return X1="useFormState",L(),H0(),W7(_,J)},useActionState:function(_,J){return X1="useActionState",L(),H0(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",L(),H0(),qG(_)},useMemoCache:function(_){return L(),G8(_)},useHostTransitionStatus:F8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",L(),H0(),ZG(_)}},W4={readContext:function(_){return M(),c0(_)},use:function(_){return L(),F6(_)},useCallback:function(_,J){return X1="useCallback",L(),I1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),I1(),c0(_)},useEffect:function(_,J){X1="useEffect",L(),I1(),Y5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),I1(),Y5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),I1(),Y5(4,y5,_,J)},useMemo:function(_,J){X1="useMemo",L(),I1();var $=z1.H;z1.H=W4;try{return x$(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),I1();var q=z1.H;z1.H=W4;try{return z7(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",L(),I1(),v0().memoizedState},useState:function(){X1="useState",L(),I1();var _=z1.H;z1.H=W4;try{return z7(F4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),I1(),fY(_,J)},useTransition:function(){return X1="useTransition",L(),I1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),I1(),y$(_,J,$)},useId:function(){return X1="useId",L(),I1(),v0().memoizedState},useFormState:function(_){return X1="useFormState",L(),I1(),k$(_)},useActionState:function(_){return X1="useActionState",L(),I1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),I1(),AY(_,J)},useMemoCache:function(_){return L(),G8(_)},useHostTransitionStatus:F8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),v0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),I1(),b$(_)}},pQ={readContext:function(_){return M(),c0(_)},use:function(_){return L(),F6(_)},useCallback:function(_,J){return X1="useCallback",L(),I1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),I1(),c0(_)},useEffect:function(_,J){X1="useEffect",L(),I1(),Y5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),I1(),Y5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),I1(),Y5(4,y5,_,J)},useMemo:function(_,J){X1="useMemo",L(),I1();var $=z1.H;z1.H=W4;try{return x$(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),I1();var q=z1.H;z1.H=W4;try{return n9(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",L(),I1(),v0().memoizedState},useState:function(){X1="useState",L(),I1();var _=z1.H;z1.H=W4;try{return n9(F4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),I1(),SY(_,J)},useTransition:function(){return X1="useTransition",L(),I1(),DY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),I1(),y$(_,J,$)},useId:function(){return X1="useId",L(),I1(),v0().memoizedState},useFormState:function(_){return X1="useFormState",L(),I1(),D$(_)},useActionState:function(_){return X1="useActionState",L(),I1(),D$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),I1(),TY(_,J)},useMemoCache:function(_){return L(),G8(_)},useHostTransitionStatus:F8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),v0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),I1(),b$(_)}};var PB={},NB=new Set,CB=new Set,fB=new Set,SB=new Set,jB=new Set,vB=new Set,VB=new Set,yB=new Set,kB=new Set,DB=new Set;Object.freeze(PB);var WF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=N5(_),G=q6(q);G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=U6(_,G,q),J!==null&&(j4(q,"this.setState()",_),e0(J,_,q),a9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=N5(_),G=q6(q);G.tag=BB,G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=U6(_,G,q),J!==null&&(j4(q,"this.replaceState()",_),e0(J,_,q),a9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=N5(_),q=q6($);q.tag=AB,J!==void 0&&J!==null&&(TG(J),q.callback=J),J=U6(_,q,$),J!==null&&(j4($,"this.forceUpdate()",_),e0(J,_,$),a9(J,_,$))}},o7=null,LF=null,BF=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."),L2=!1,uB={},bB={},EB={},hB={},n7=!1,xB={},cQ={},AF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},mB=!1,gB=null;gB=new Set;var v3=!1,B2=!1,MF=!1,pB=typeof WeakSet==="function"?WeakSet:Set,D2=null,e7=null,_9=null,A2=null,L5=!1,L4=null,P2=!1,a_=8192,xP={getCacheForType:function(_){var J=c0(Y2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return c0(Y2).controller.signal},getOwner:function(){return S5}};if(typeof Symbol==="function"&&Symbol.for){var s_=Symbol.for;s_("selector.component"),s_("selector.has_pseudo_class"),s_("selector.role"),s_("selector.test_id"),s_("selector.text")}var mP=[],gP=typeof WeakMap==="function"?WeakMap:Map,u2=0,N2=2,k5=4,V3=0,t_=1,P8=2,lQ=3,f6=4,iQ=6,cB=5,O0=u2,b0=null,K0=null,Z0=0,B5=0,dQ=1,N8=2,o_=3,lB=4,TF=5,n_=6,rQ=7,RF=8,C8=9,V0=B5,D5=null,S6=!1,J9=!1,OF=!1,e4=0,s0=V3,j6=0,v6=0,IF=0,A5=0,f8=0,e_=null,Z5=null,aQ=!1,sQ=0,iB=0,dB=300,tQ=1/0,rB=500,_J=null,U2=null,V6=null,oQ=0,wF=1,PF=2,aB=3,y6=0,sB=1,tB=2,oB=3,nB=4,nQ=5,M2=0,k6=null,$9=null,B4=0,NF=0,CF=-0,fF=null,eB=null,_A=null,A4=oQ,JA=null,pP=50,JJ=0,SF=null,jF=!1,eQ=!1,cP=50,S8=0,$J=null,Q9=!1,_q=null,$A=!1,QA=new Set,lP={},Jq=null,q9=null,vF=!1,VF=!1,$q=!1,yF=!1,D6=0,kF={};(function(){for(var _=0;_<lZ.length;_++){var J=lZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),Z4($,"on"+J)}Z4(kL,"onAnimationEnd"),Z4(DL,"onAnimationIteration"),Z4(uL,"onAnimationStart"),Z4("dblclick","onDoubleClick"),Z4("focusin","onFocus"),Z4("focusout","onBlur"),Z4(RP,"onTransitionRun"),Z4(OP,"onTransitionStart"),Z4(IP,"onTransitionCancel"),Z4(bL,"onTransitionEnd")})(),E2("onMouseEnter",["mouseout","mouseover"]),E2("onMouseLeave",["mouseout","mouseover"]),E2("onPointerEnter",["pointerout","pointerover"]),E2("onPointerLeave",["pointerout","pointerover"]),X2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),X2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),X2("onBeforeInput",["compositionend","keypress","textInput","paste"]),X2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),X2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),X2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var QJ="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(QJ)),Qq="_reactListening"+Math.random().toString(36).slice(2),qA=!1,UA=!1,qq=!1,GA=!1,Uq=!1,Gq=!1,ZA=!1,Zq={},iP=/\r\n?/g,dP=/\u0000|\uFFFD/g,j8="http://www.w3.org/1999/xlink",uF="http://www.w3.org/XML/1998/namespace",rP="javascript:throw new Error('React form unexpectedly submitted.')",aP="suppressHydrationWarning",v8="&",Fq="/&",qJ="$",UJ="/$",u6="$?",V8="$~",U9="$!",sP="html",tP="body",oP="head",bF="F!",FA="F",XA="loading",nP="style",y3=0,G9=1,Xq=2,EF=null,hF=null,KA={dialog:!0,webview:!0},xF=null,GJ=void 0,HA=typeof setTimeout==="function"?setTimeout:void 0,eP=typeof clearTimeout==="function"?clearTimeout:void 0,y8=-1,YA=typeof Promise==="function"?Promise:void 0,_N=typeof queueMicrotask==="function"?queueMicrotask:typeof YA<"u"?function(_){return YA.resolve(null).then(_).catch(hI)}:HA,mF=null,k8=0,ZJ=1,zA=2,WA=3,n5=4,e5=new Map,LA=new Set,k3=f0.d;f0.d={f:function(){var _=k3.f(),J=T7();return _||J},r:function(_){var J=r1(_);J!==null&&J.tag===5&&J.type==="form"?yY(J):k3.r(_)},D:function(_){k3.D(_),NW("dns-prefetch",_,null)},C:function(_,J){k3.C(_,J),NW("preconnect",_,J)},L:function(_,J,$){k3.L(_,J,$);var q=Z9;if(q&&_&&J){var G='link[rel="preload"][as="'+R0(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+R0($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+R0($.imageSizes)+'"]')):G+='[href="'+R0(_)+'"]':G+='[href="'+R0(_)+'"]';var X=G;switch(J){case"style":X=I7(_);break;case"script":X=w7(_)}e5.has(X)||(_=Y0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),e5.set(X,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(z_(X))||J==="script"&&q.querySelector(W_(X))||(J=q.createElement("link"),g2(J,"link",_),E1(J),q.head.appendChild(J)))}},m:function(_,J){k3.m(_,J);var $=Z9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+R0(q)+'"][href="'+R0(_)+'"]',X=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=w7(_)}if(!e5.has(X)&&(_=Y0({rel:"modulepreload",href:_},J),e5.set(X,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(W_(X)))return}q=$.createElement("link"),g2(q,"link",_),E1(q),$.head.appendChild(q)}}},X:function(_,J){k3.X(_,J);var $=Z9;if($&&_){var q=W0($).hoistableScripts,G=w7(_),X=q.get(G);X||(X=$.querySelector(W_(G)),X||(_=Y0({src:_,async:!0},J),(J=e5.get(G))&&XZ(_,J),X=$.createElement("script"),E1(X),g2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}},S:function(_,J,$){k3.S(_,J,$);var q=Z9;if(q&&_){var G=W0(q).hoistableStyles,X=I7(_);J=J||"default";var z=G.get(X);if(!z){var B={loading:k8,preload:null};if(z=q.querySelector(z_(X)))B.loading=ZJ|n5;else{_=Y0({rel:"stylesheet",href:_,"data-precedence":J},$),($=e5.get(X))&&FZ(_,$);var w=z=q.createElement("link");E1(w),g2(w,"link",_),w._p=new Promise(function(f,e){w.onload=f,w.onerror=e}),w.addEventListener("load",function(){B.loading|=ZJ}),w.addEventListener("error",function(){B.loading|=zA}),B.loading|=n5,qQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:B},G.set(X,z)}}},M:function(_,J){k3.M(_,J);var $=Z9;if($&&_){var q=W0($).hoistableScripts,G=w7(_),X=q.get(G);X||(X=$.querySelector(W_(G)),X||(_=Y0({src:_,async:!0,type:"module"},J),(J=e5.get(G))&&XZ(_,J),X=$.createElement("script"),E1(X),g2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}}};var Z9=typeof document>"u"?null:document,Kq=null,JN=60000,$N=800,QN=500,gF=0,pF=null,Hq=null,D8=Mw,FJ={$$typeof:c4,Provider:null,Consumer:null,_currentValue:D8,_currentValue2:D8,_threadCount:0},BA="%c%s%c",AA="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",MA="",Yq=" ",qN=Function.prototype.bind,TA=!1,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null,SA=null,jA=null;RA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=i2(_,2),$!==null&&e0($,_,2))},OA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=i2(_,2),$!==null&&e0($,_,2))},IA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=i2(_,2),$!==null&&e0($,_,2))},wA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=i2(_,2),J!==null&&e0(J,_,2)},PA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=i2(_,2),J!==null&&e0(J,_,2)},NA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=i2(_,2),J!==null&&e0(J,_,2)},CA=function(_){var J=i2(_,2);J!==null&&e0(J,_,2)},fA=function(_){var J=O2(),$=i2(_,J);$!==null&&e0($,_,J)},SA=function(_){W=_},jA=function(_){Y=_};var zq=!0,Wq=null,cF=!1,b6=null,E6=null,h6=null,XJ=new Map,KJ=new Map,x6=[],UN="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(" "),Lq=null;if(XQ.prototype.render=LZ.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=N5(q);KZ(q,G,$,J,null,null)},XQ.prototype.unmount=LZ.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;(O0&(N2|k5))!==u2&&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),T7(),J[L6]=null}},XQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=q1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<x6.length&&J!==0&&J<x6[$].priority;$++);x6.splice($,0,_),$===0&&xW(_)}},function(){var _=F9.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"),C0.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?x(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Y1,reconcilerVersion:"19.2.7"};return _.overrideHookState=RA,_.overrideHookStateDeletePath=OA,_.overrideHookStateRenamePath=IA,_.overrideProps=wA,_.overridePropsDeletePath=PA,_.overridePropsRenamePath=NA,_.scheduleUpdate=CA,_.scheduleRetry=fA,_.setErrorHandler=SA,_.setSuspenseHandler=vA,_.scheduleRefresh=P,_.scheduleRoot=w,_.setRefreshHandler=V,_.getCurrentFiber=Kw,g0(_)}()&&i4&&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")}MN.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");cW(_);var $=!1,q="",G=mY,X=gY,z=pY;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===x4&&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"),f0.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?x(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z1,reconcilerVersion:"19.2.7"};return _.overrideHookState=RA,_.overrideHookStateDeletePath=OA,_.overrideHookStateRenamePath=IA,_.overrideProps=wA,_.overridePropsDeletePath=PA,_.overridePropsRenamePath=NA,_.scheduleUpdate=CA,_.scheduleRetry=fA,_.setErrorHandler=SA,_.setSuspenseHandler=jA,_.scheduleRefresh=P,_.scheduleRoot=I,_.setRefreshHandler=V,_.getCurrentFiber=Kw,p0(_)}()&&a4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var vA=window.location.protocol;/^(https?|file):$/.test(vA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(vA==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}MN.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");cW(_);var $=!1,q="",G=mY,X=gY,z=pY;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===p4&&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&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=yW(_,1,!1,null,null,$,q,null,G,X,z,pW),_[z6]=J.current,tG(_),new LZ(J)},MN.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");cW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",X=mY,z=gY,B=pY,I=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&&(B=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=yW(_,1,!0,J,$!=null?$:null,q,G,I,X,z,B,pW),J.context=kW(null),$=J.current,q=f5($),q=R5(q),G=$6(q),G.callback=null,Q6($,G,q),C4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,R2(J,$),E4(J),_[z6]=J.current,tG(_),new XQ(J)},MN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var EA=o4((Ak,bA)=>{var TN=s0(uA());bA.exports=TN});var u8=o4((RN)=>{var D8=s0(B4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case x:return"SuspenseList";case b:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case v:var t=k.render;return k=k.displayName,k||(k=t.displayName||t.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return t=k.displayName||null,t!==null?t:Q(k.type)||"Memo";case u:t=k._payload,k=k._init;try{return Q(k(t))}catch(_1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var t=!1}catch(H1){t=!0}if(t){t=console;var _1=t.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _1.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===u)return"<...>";try{var t=Q(k);return t?"<"+t+">":"<...>"}catch(_1){return"<...>"}}function H(){var k=s.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(U1.call(k,"key")){var t=Object.getOwnPropertyDescriptor(k,"key").get;if(t&&t.isReactWarning)return!1}return k.key!==void 0}function L(k,t){function _1(){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)",t))}_1.isReactWarning=!0,Object.defineProperty(k,"key",{get:_1,configurable:!0})}function M(){var k=Q(this.type);return p[k]||(p[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function O(k,t,_1,a,H1,O1){var L1=_1.ref;return k={$$typeof:w,type:k,key:t,props:_1,_owner:a},(L1!==void 0?L1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,t,_1,a,H1,O1){var L1=t.children;if(L1!==void 0)if(a)if(Q1(L1)){for(a=0;a<L1.length;a++)A(L1[a]);Object.freeze&&Object.freeze(L1)}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(L1);if(U1.call(t,"key")){L1=Q(k);var T1=Object.keys(t).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[L1+a]||(T1=0<T1.length?"{"+T1.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=yW(_,1,!1,null,null,$,q,null,G,X,z,pW),_[L6]=J.current,tG(_),new LZ(J)},MN.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");cW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",X=mY,z=gY,B=pY,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&&(B=$.onRecoverableError),$.formState!==void 0&&(w=$.formState)),J=yW(_,1,!0,J,$!=null?$:null,q,G,w,X,z,B,pW),J.context=kW(null),$=J.current,q=N5($),q=U4(q),G=q6(q),G.callback=null,U6($,G,q),j4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,I2(J,$),m4(J),_[L6]=J.current,tG(_),new XQ(J)},MN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var EA=_3((Ak,bA)=>{var TN=t0(uA());bA.exports=TN});var E8=_3((RN)=>{var b8=t0(M4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case x:return"SuspenseList";case b:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case j:var t=k.render;return k=k.displayName,k||(k=t.displayName||t.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return t=k.displayName||null,t!==null?t:Q(k.type)||"Memo";case u:t=k._payload,k=k._init;try{return Q(k(t))}catch(_1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var t=!1}catch(H1){t=!0}if(t){t=console;var _1=t.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _1.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===u)return"<...>";try{var t=Q(k);return t?"<"+t+">":"<...>"}catch(_1){return"<...>"}}function H(){var k=s.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(U1.call(k,"key")){var t=Object.getOwnPropertyDescriptor(k,"key").get;if(t&&t.isReactWarning)return!1}return k.key!==void 0}function L(k,t){function _1(){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)",t))}_1.isReactWarning=!0,Object.defineProperty(k,"key",{get:_1,configurable:!0})}function M(){var k=Q(this.type);return p[k]||(p[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function O(k,t,_1,a,H1,O1){var B1=_1.ref;return k={$$typeof:I,type:k,key:t,props:_1,_owner:a},(B1!==void 0?B1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,t,_1,a,H1,O1){var B1=t.children;if(B1!==void 0)if(a)if(Q1(B1)){for(a=0;a<B1.length;a++)A(B1[a]);Object.freeze&&Object.freeze(B1)}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(B1);if(U1.call(t,"key")){B1=Q(k);var T1=Object.keys(t).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[B1+a]||(T1=0<T1.length?"{"+T1.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} />`,a,L1,T1,L1),o[L1+a]=!0)}if(L1=null,_1!==void 0&&(Z(_1),L1=""+_1),W(t)&&(Z(t.key),L1=""+t.key),"key"in t){_1={};for(var G1 in t)G1!=="key"&&(_1[G1]=t[G1])}else _1=t;return L1&&L(_1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,L1,_1,H(),H1,O1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===u&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$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"),y=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),s=D8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=Object.prototype.hasOwnProperty,Q1=Array.isArray,h=console.createTask?console.createTask:function(){return null};D8={react_stack_bottom_frame:function(k){return k()}};var g,p={},c=D8.react_stack_bottom_frame.bind(D8,Y)(),l=h(K(Y)),o={};RN.Fragment=V,RN.jsxDEV=function(k,t,_1,a){var H1=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,a,H1?Error("react-stack-top-frame"):c,H1?h(K(k)):l)}})()});var dA=o4((CN)=>{var h8=s0(B4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case x:return"SuspenseList";case b:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case v:var t=k.render;return k=k.displayName,k||(k=t.displayName||t.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return t=k.displayName||null,t!==null?t:Q(k.type)||"Memo";case u:t=k._payload,k=k._init;try{return Q(k(t))}catch(_1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var t=!1}catch(H1){t=!0}if(t){t=console;var _1=t.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _1.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===u)return"<...>";try{var t=Q(k);return t?"<"+t+">":"<...>"}catch(_1){return"<...>"}}function H(){var k=s.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(U1.call(k,"key")){var t=Object.getOwnPropertyDescriptor(k,"key").get;if(t&&t.isReactWarning)return!1}return k.key!==void 0}function L(k,t){function _1(){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)",t))}_1.isReactWarning=!0,Object.defineProperty(k,"key",{get:_1,configurable:!0})}function M(){var k=Q(this.type);return p[k]||(p[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function O(k,t,_1,a,H1,O1){var L1=_1.ref;return k={$$typeof:w,type:k,key:t,props:_1,_owner:a},(L1!==void 0?L1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,t,_1,a,H1,O1){var L1=t.children;if(L1!==void 0)if(a)if(Q1(L1)){for(a=0;a<L1.length;a++)A(L1[a]);Object.freeze&&Object.freeze(L1)}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(L1);if(U1.call(t,"key")){L1=Q(k);var T1=Object.keys(t).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[L1+a]||(T1=0<T1.length?"{"+T1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,a,B1,T1,B1),o[B1+a]=!0)}if(B1=null,_1!==void 0&&(Z(_1),B1=""+_1),W(t)&&(Z(t.key),B1=""+t.key),"key"in t){_1={};for(var G1 in t)G1!=="key"&&(_1[G1]=t[G1])}else _1=t;return B1&&L(_1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,B1,_1,H(),H1,O1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===u&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$typeof===I}var I=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"),y=Symbol.for("react.consumer"),N=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),s=b8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=Object.prototype.hasOwnProperty,Q1=Array.isArray,h=console.createTask?console.createTask:function(){return null};b8={react_stack_bottom_frame:function(k){return k()}};var g,p={},c=b8.react_stack_bottom_frame.bind(b8,Y)(),l=h(K(Y)),o={};RN.Fragment=V,RN.jsxDEV=function(k,t,_1,a){var H1=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,a,H1?Error("react-stack-top-frame"):c,H1?h(K(k)):l)}})()});var dA=_3((CN)=>{var m8=t0(M4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case x:return"SuspenseList";case b:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case j:var t=k.render;return k=k.displayName,k||(k=t.displayName||t.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return t=k.displayName||null,t!==null?t:Q(k.type)||"Memo";case u:t=k._payload,k=k._init;try{return Q(k(t))}catch(_1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var t=!1}catch(H1){t=!0}if(t){t=console;var _1=t.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _1.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===u)return"<...>";try{var t=Q(k);return t?"<"+t+">":"<...>"}catch(_1){return"<...>"}}function H(){var k=s.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(U1.call(k,"key")){var t=Object.getOwnPropertyDescriptor(k,"key").get;if(t&&t.isReactWarning)return!1}return k.key!==void 0}function L(k,t){function _1(){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)",t))}_1.isReactWarning=!0,Object.defineProperty(k,"key",{get:_1,configurable:!0})}function M(){var k=Q(this.type);return p[k]||(p[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function O(k,t,_1,a,H1,O1){var B1=_1.ref;return k={$$typeof:I,type:k,key:t,props:_1,_owner:a},(B1!==void 0?B1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,t,_1,a,H1,O1){var B1=t.children;if(B1!==void 0)if(a)if(Q1(B1)){for(a=0;a<B1.length;a++)A(B1[a]);Object.freeze&&Object.freeze(B1)}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(B1);if(U1.call(t,"key")){B1=Q(k);var T1=Object.keys(t).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[B1+a]||(T1=0<T1.length?"{"+T1.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} />`,a,L1,T1,L1),o[L1+a]=!0)}if(L1=null,_1!==void 0&&(Z(_1),L1=""+_1),W(t)&&(Z(t.key),L1=""+t.key),"key"in t){_1={};for(var G1 in t)G1!=="key"&&(_1[G1]=t[G1])}else _1=t;return L1&&L(_1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,L1,_1,H(),H1,O1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===u&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$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"),y=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),s=h8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=Object.prototype.hasOwnProperty,Q1=Array.isArray,h=console.createTask?console.createTask:function(){return null};h8={react_stack_bottom_frame:function(k){return k()}};var g,p={},c=h8.react_stack_bottom_frame.bind(h8,Y)(),l=h(K(Y)),o={};CN.Fragment=V,CN.jsx=function(k,t,_1){var a=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,!1,a?Error("react-stack-top-frame"):c,a?h(K(k)):l)},CN.jsxs=function(k,t,_1){var a=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,!0,a?Error("react-stack-top-frame"):c,a?h(K(k)):l)}})()});var NT=o4((IS)=>{var h5=s0(B4());(function(){function Q(R,w){return R===w&&(R!==0||1/R===1/w)||R!==R&&w!==w}function U(R,w){O||h5.startTransition===void 0||(O=!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(!T){var V=w();H(P,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}V=Y({inst:{value:P,getSnapshot:w}});var S=V[0].inst,C=V[1];return L(function(){S.value=P,S.getSnapshot=w,Z(S)&&C({inst:S})},[R,P,w]),W(function(){return Z(S)&&C({inst:S}),R(function(){Z(S)&&C({inst:S})})},[R]),M(P),P}function Z(R){var w=R.getSnapshot;R=R.value;try{var P=w();return!H(R,P)}catch(V){return!0}}function K(R,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=h5.useState,W=h5.useEffect,L=h5.useLayoutEffect,M=h5.useDebugValue,O=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;IS.useSyncExternalStore=h5.useSyncExternalStore!==void 0?h5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var CT=o4((wS)=>{var m3=s0(B4());(function(){function Q(M,O){return M===O&&(M!==0||1/M===1/O)||M!==M&&O!==O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=NT(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=m3.useRef,Y=m3.useEffect,W=m3.useMemo,L=m3.useDebugValue;wS.useSyncExternalStoreWithSelector=function(M,O,T,A,R){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(D){if(!C){if(C=!0,y=D,D=A(D),R!==void 0&&P.hasValue){var x=P.value;if(R(x,D))return N=x}return N=D}if(x=N,Z(y,D))return x;var E=A(D);if(R!==void 0&&R(x,E))return y=D,x;return y=D,N=E}var C=!1,y,N,v=T===void 0?null:T;return[function(){return S(O())},v===null?void 0:function(){return S(v())}]},[O,T,A,R]);var V=K(M,w[0],w[1]);return Y(function(){P.hasValue=!0,P.value=V},[V]),L(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var jO=s0(EA(),1);var D2=s0(B4(),1);var hA={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 l1=s0(u8(),1),ON="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function HJ({href:Q,onClick:U}){return l1.jsxDEV("h1",{children:l1.jsxDEV("a",{href:Q,onClick:U,children:[l1.jsxDEV("img",{src:ON,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),l1.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 k3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function mA(Q,U,Z=0,K=""){let[H,Y]=D2.useState({state:"loading"});return D2.useEffect(()=>{Y({state:"loading"})},[K,U]),D2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let L=await Q(U),M=L.ok?{state:"ok",data:await L.json()}:{state:"error",status:L.status,error:await k3(L)};if(W)Y(M)}catch(L){if(W)Y({state:"error",status:0,error:String(L)})}})(),()=>{W=!1}},[K,U,Z]),H}function r2({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return l1.jsxDEV(IN,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return l1.jsxDEV("div",{role:"alert",className:"error-state",children:[l1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?l1.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 IN({lines:Q=3,label:U="Loading…"}){return l1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>l1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function j0({iso:Q,time:U}){if(!Q)return l1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return l1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var b8=(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 l0(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 E8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,wN={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"},s1=(Q)=>wN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function q2({vendor:Q}){let U=hA[Q];return l1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?l1.jsxDEV("svg",{viewBox:"0 0 24 24",children:l1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):s1(Q).charAt(0)},void 0,!1,void 0,this)}var xA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},PN="volter.theme",tF=()=>{try{let Q=localStorage.getItem(PN);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Aq(Q=tF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function gA(){return D2.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 E5({open:Q,onClose:U,title:Z,children:K,footer:H,wide:Y}){let W=D2.useRef(null),L=D2.useId();return D2.useEffect(()=>{let M=W.current;if(!M)return;if(Q&&!M.open){M.showModal();let O=M.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(O?.focus(),O instanceof HTMLInputElement&&O.value&&/^(text|search|email|url)$/.test(O.type))O.select()}if(!Q&&M.open)M.close()},[Q]),l1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":L,onClose:U,onCancel:(M)=>{M.preventDefault(),U()},onMouseDown:(M)=>{if(M.target===W.current)U()},children:Q?l1.jsxDEV(l1.Fragment,{children:[l1.jsxDEV("div",{className:"dialog-head",children:[l1.jsxDEV("h2",{id:L,children:Z},void 0,!1,void 0,this),l1.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),l1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?l1.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 n4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(rF,{detail:{ask:Q,resolve:U}}))})}function pA(){let[Q,U]=D2.useState(null),[Z,K]=D2.useState("");D2.useEffect(()=>{let L=(M)=>{K(""),U(M.detail)};return window.addEventListener(rF,L),()=>window.removeEventListener(rF,L)},[]);let H=(L)=>{Q?.resolve(L),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return l1.jsxDEV(E5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:l1.jsxDEV(l1.Fragment,{children:[l1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),l1.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?l1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?l1.jsxDEV("div",{className:"typed-confirm",children:[l1.jsxDEV("p",{children:["Type ",l1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),l1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(L)=>K(L.target.value),onKeyDown:(L)=>{if(L.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 e0(Q,U="ok"){window.dispatchEvent(new CustomEvent(aF,{detail:{text:Q,kind:U}}))}function cA(){let[Q,U]=D2.useState([]);return D2.useEffect(()=>{let Z=0,K=(H)=>{let{text:Y,kind:W}=H.detail,L=++Z;if(U((M)=>[...M.slice(-3),{id:L,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((M)=>M.filter((O)=>O.id!==L)),4500)};return window.addEventListener(aF,K),()=>window.removeEventListener(aF,K)},[]),l1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>l1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[l1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),l1.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]=D2.useState(!1);return l1.jsxDEV("div",{className:"copy-field",children:[U?l1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,l1.jsxDEV("div",{className:"copy-row",children:[l1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),l1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),e0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>e0("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 lA({label:Q,items:U}){return l1.jsxDEV("details",{className:"menu row-menu",children:[l1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),l1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?l1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:xA,children:Z.label},Z.label,!1,void 0,this):l1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{xA(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 X9({title:Q,children:U,action:Z}){return l1.jsxDEV("div",{className:"empty-state",children:[l1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?l1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?l1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function iA(){return D2.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")NN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),l1.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 NN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var F1=s0(B4(),1);var K1=s0(dA(),1),W1=s0(B4(),1);function _2(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=_2(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var fN={value:()=>{}};function aA(){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 Mq(Z)}function Mq(Q){this._=Q}function SN(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}})}Mq.prototype=aA.prototype={constructor:Mq,on:function(Q,U){var Z=this._,K=SN(Q+"",Z),H,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((H=(Q=K[Y]).type)&&(H=vN(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]=rA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=rA(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 Mq(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 vN(Q,U){for(var Z=0,K=Q.length,H;Z<K;++Z)if((H=Q[Z]).name===U)return H.value}function rA(Q,U,Z){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=fN,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var x8=aA;function K9(Q){return function(){return this.matches(Q)}}function Tq(Q){return function(U){return U.matches(Q)}}var Rq="http://www.w3.org/1999/xhtml",nF={svg:"http://www.w3.org/2000/svg",xhtml:Rq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function e4(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 a2(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 jN(){}function h6(Q){return Q==null?jN:function(){return this.querySelector(Q)}}function _X(Q){if(typeof Q!=="function")Q=h6(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,L=K[H]=Array(W),M,O,T=0;T<W;++T)if((M=Y[T])&&(O=Q.call(M,M.__data__,T,Y))){if("__data__"in M)O.__data__=M.__data__;L[T]=O}return new U2(K,this._parents)}function JX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function VN(){return[]}function H9(Q){return Q==null?VN:function(){return this.querySelectorAll(Q)}}function yN(Q){return function(){return JX(Q.apply(this,arguments))}}function $X(Q){if(typeof Q==="function")Q=yN(Q);else Q=H9(Q);for(var U=this._groups,Z=U.length,K=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])K.push(Q.call(M,M.__data__,O,W)),H.push(M);return new U2(K,H)}var kN=Array.prototype.find;function DN(Q){return function(){return kN.call(this.children,Q)}}function uN(){return this.firstElementChild}function QX(Q){return this.select(Q==null?uN:DN(typeof Q==="function"?Q:Tq(Q)))}var bN=Array.prototype.filter;function EN(){return Array.from(this.children)}function hN(Q){return function(){return bN.call(this.children,Q)}}function qX(Q){return this.selectAll(Q==null?EN:hN(typeof Q==="function"?Q:Tq(Q)))}function UX(Q){if(typeof Q!=="function")Q=K9(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,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new U2(K,this._parents)}function YJ(Q){return Array(Q.length)}function GX(){return new U2(this._enter||this._groups.map(YJ),this._parents)}function zJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}zJ.prototype={constructor:zJ,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 xN(Q,U,Z,K,H,Y){var W=0,L,M=U.length,O=Y.length;for(;W<O;++W)if(L=U[W])L.__data__=Y[W],K[W]=L;else Z[W]=new zJ(Q,Y[W]);for(;W<M;++W)if(L=U[W])H[W]=L}function mN(Q,U,Z,K,H,Y,W){var L,M,O=new Map,T=U.length,A=Y.length,R=Array(T),w;for(L=0;L<T;++L)if(M=U[L])if(R[L]=w=W.call(M,M.__data__,L,U)+"",O.has(w))H[L]=M;else O.set(w,M);for(L=0;L<A;++L)if(w=W.call(Q,Y[L],L,Y)+"",M=O.get(w))K[L]=M,M.__data__=Y[L],O.delete(w);else Z[L]=new zJ(Q,Y[L]);for(L=0;L<T;++L)if((M=U[L])&&O.get(R[L])===M)H[L]=M}function gN(Q){return Q.__data__}function FX(Q,U){if(!arguments.length)return Array.from(this,gN);var Z=U?mN:xN,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=ZX(Q);for(var Y=H.length,W=Array(Y),L=Array(Y),M=Array(Y),O=0;O<Y;++O){var T=K[O],A=H[O],R=A.length,w=pN(Q.call(T,T&&T.__data__,O,K)),P=w.length,V=L[O]=Array(P),S=W[O]=Array(P),C=M[O]=Array(R);Z(T,A,V,S,C,w,U);for(var y=0,N=0,v,D;y<P;++y)if(v=V[y]){if(y>=N)N=y+1;while(!(D=S[N])&&++N<P);v._next=D||null}}return W=new U2(W,K),W._enter=L,W._exit=M,W}function pN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function XX(){return new U2(this._exit||this._groups.map(YJ),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),L=Array(H),M=0;M<W;++M)for(var O=Z[M],T=K[M],A=O.length,R=L[M]=Array(A),w,P=0;P<A;++P)if(w=O[P]||T[P])R[P]=w;for(;M<H;++M)L[M]=Z[M];return new U2(L,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=cN;function U(A,R){return A&&R?Q(A.__data__,R.__data__):!A-!R}for(var Z=this._groups,K=Z.length,H=Array(K),Y=0;Y<K;++Y){for(var W=Z[Y],L=W.length,M=H[Y]=Array(L),O,T=0;T<L;++T)if(O=W[T])M[T]=O;M.sort(U)}return new U2(H,this._parents).order()}function cN(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 LX(){return Array.from(this)}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;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,L;Y<W;++Y)if(L=H[Y])Q.call(L,L.__data__,Y,H);return this}function lN(Q){return function(){this.removeAttribute(Q)}}function iN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function dN(Q,U){return function(){this.setAttribute(Q,U)}}function rN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function aN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function sN(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=e4(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?iN:lN:typeof U==="function"?Z.local?sN:aN:Z.local?rN:dN)(Z,U))}function WJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function tN(Q){return function(){this.style.removeProperty(Q)}}function oN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function nN(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?tN:typeof U==="function"?nN:oN)(Q,U,Z==null?"":Z)):x6(this.node(),Q)}function x6(Q,U){return Q.style.getPropertyValue(U)||WJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function eN(Q){return function(){delete this[Q]}}function _C(Q,U){return function(){this[Q]=U}}function JC(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?eN:typeof U==="function"?JC:_C)(Q,U)):this.node()[Q]}function sA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new tA(Q)}function tA(Q){this._node=Q,this._names=sA(Q.getAttribute("class")||"")}tA.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 oA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.add(U[K])}function nA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.remove(U[K])}function $C(Q){return function(){oA(this,Q)}}function QC(Q){return function(){nA(this,Q)}}function qC(Q,U){return function(){(U.apply(this,arguments)?oA:nA)(this,Q)}}function PX(Q,U){var Z=sA(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"?qC:U?$C:QC)(Z,U))}function UC(){this.textContent=""}function GC(Q){return function(){this.textContent=Q}}function ZC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function NX(Q){return arguments.length?this.each(Q==null?UC:(typeof Q==="function"?ZC:GC)(Q)):this.node().textContent}function FC(){this.innerHTML=""}function XC(Q){return function(){this.innerHTML=Q}}function KC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function CX(Q){return arguments.length?this.each(Q==null?FC:(typeof Q==="function"?KC:XC)(Q)):this.node().innerHTML}function HC(){if(this.nextSibling)this.parentNode.appendChild(this)}function fX(){return this.each(HC)}function YC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SX(){return this.each(YC)}function zC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Rq&&U.documentElement.namespaceURI===Rq?U.createElement(Q):U.createElementNS(Z,Q)}}function WC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function LJ(Q){var U=e4(Q);return(U.local?WC:zC)(U)}function vX(Q){var U=typeof Q==="function"?Q:LJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function LC(){return null}function jX(Q,U){var Z=typeof Q==="function"?Q:LJ(Q),K=U==null?LC:typeof U==="function"?U:h6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function BC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function VX(){return this.each(BC)}function AC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function MC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function yX(Q){return this.select(Q?MC:AC)}function kX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function TC(Q){return function(U){Q.call(this,U,this.__data__)}}function RC(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 OC(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 IC(Q,U,Z){return function(){var K=this.__on,H,Y=TC(U);if(K){for(var W=0,L=K.length;W<L;++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=RC(Q+""),H,Y=K.length,W;if(arguments.length<2){var L=this.node().__on;if(L){for(var M=0,O=L.length,T;M<O;++M)for(H=0,T=L[M];H<Y;++H)if((W=K[H]).type===T.type&&W.name===T.name)return T.value}return}L=U?IC:OC;for(H=0;H<Y;++H)this.each(L(K[H],U,Z));return this}function eA(Q,U,Z){var K=WJ(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 wC(Q,U){return function(){return eA(this,Q,U)}}function PC(Q,U){return function(){return eA(this,Q,U.apply(this,arguments))}}function uX(Q,U){return this.each((typeof U==="function"?PC:wC)(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 U2(Q,U){this._groups=Q,this._parents=U}function _M(){return new U2([[document.documentElement]],EX)}function NC(){return this}U2.prototype=_M.prototype={constructor:U2,select:_X,selectAll:$X,selectChild:QX,selectChildren:qX,filter:UX,data:FX,enter:GX,exit:XX,join:KX,merge:HX,selection:NC,order:YX,sort:zX,call:WX,nodes:LX,node:BX,size:AX,empty:MX,each:TX,attr:RX,style:OX,property:IX,classed:PX,text:NX,html:CX,raise:fX,lower:SX,append:vX,insert:jX,remove:VX,clone:yX,datum:kX,on:DX,dispatch:uX,[Symbol.iterator]:bX};var D3=_M;function P2(Q){return typeof Q==="string"?new U2([[document.querySelector(Q)]],[document.documentElement]):new U2([[Q]],EX)}var JM={passive:!1},m8={capture:!0,passive:!1};function Oq(Q){Q.stopImmediatePropagation()}function u3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Y9(Q){var U=Q.document.documentElement,Z=P2(Q).on("dragstart.drag",u3,m8);if("onselectstart"in U)Z.on("selectstart.drag",u3,m8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function BJ(Q,U){var Z=Q.document.documentElement,K=P2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",u3,m8),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 AJ=(Q)=>()=>Q;function MJ(Q,{sourceEvent:U,subject:Z,target:K,identifier:H,active:Y,x:W,y:L,dx:M,dy:O,dispatch:T}){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:L,enumerable:!0,configurable:!0},dx:{value:M,enumerable:!0,configurable:!0},dy:{value:O,enumerable:!0,configurable:!0},_:{value:T}})}MJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function CC(Q){return!Q.ctrlKey&&!Q.button}function fC(){return this.parentNode}function SC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function vC(){return navigator.maxTouchPoints||"ontouchstart"in this}function TJ(){var Q=CC,U=fC,Z=SC,K=vC,H={},Y=x8("start","drag","end"),W=0,L,M,O,T,A=0;function R(v){v.on("mousedown.drag",w).filter(K).on("touchstart.drag",S).on("touchmove.drag",C,JM).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(v,D){if(T||!Q.call(this,v,D))return;var x=N(this,U.call(this,v,D),v,D,"mouse");if(!x)return;P2(v.view).on("mousemove.drag",P,m8).on("mouseup.drag",V,m8),Y9(v.view),Oq(v),O=!1,L=v.clientX,M=v.clientY,x("start",v)}function P(v){if(u3(v),!O){var D=v.clientX-L,x=v.clientY-M;O=D*D+x*x>A}H.mouse("drag",v)}function V(v){P2(v.view).on("mousemove.drag mouseup.drag",null),BJ(v.view,O),u3(v),H.mouse("end",v)}function S(v,D){if(!Q.call(this,v,D))return;var x=v.changedTouches,E=U.call(this,v,D),u=x.length,b,m;for(b=0;b<u;++b)if(m=N(this,E,v,D,x[b].identifier,x[b]))Oq(v),m("start",v,x[b])}function C(v){var D=v.changedTouches,x=D.length,E,u;for(E=0;E<x;++E)if(u=H[D[E].identifier])u3(v),u("drag",v,D[E])}function y(v){var D=v.changedTouches,x=D.length,E,u;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(E=0;E<x;++E)if(u=H[D[E].identifier])Oq(v),u("end",v,D[E])}function N(v,D,x,E,u,b){var m=Y.copy(),s=a2(b||x,D),U1,Q1,h;if((h=Z.call(v,new MJ("beforestart",{sourceEvent:x,target:R,identifier:u,active:W,x:s[0],y:s[1],dx:0,dy:0,dispatch:m}),E))==null)return;return U1=h.x-s[0]||0,Q1=h.y-s[1]||0,function g(p,c,l){var o=s,k;switch(p){case"start":H[u]=g,k=W++;break;case"end":delete H[u],--W;case"drag":s=a2(l||c,D),k=W;break}m.call(p,v,new MJ(p,{sourceEvent:c,subject:h,target:R,identifier:u,active:k,x:s[0]+U1,y:s[1]+Q1,dx:s[0]-o[0],dy:s[1]-o[1],dispatch:m}),E)}}return R.filter=function(v){return arguments.length?(Q=typeof v==="function"?v:AJ(!!v),R):Q},R.container=function(v){return arguments.length?(U=typeof v==="function"?v:AJ(v),R):U},R.subject=function(v){return arguments.length?(Z=typeof v==="function"?v:AJ(v),R):Z},R.touchable=function(v){return arguments.length?(K=typeof v==="function"?v:AJ(!!v),R):K},R.on=function(){var v=Y.on.apply(Y,arguments);return v===Y?R:v},R.clickDistance=function(v){return arguments.length?(A=(v=+v)*v,R):Math.sqrt(A)},R}function RJ(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 wJ(){}var OJ=0.7,Pq=1/OJ,z9="\\s*([+-]?\\d+)\\s*",IJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jC=/^#([0-9a-f]{3,8})$/,VC=new RegExp(`^rgb\\(${z9},${z9},${z9}\\)$`),yC=new RegExp(`^rgb\\(${_3},${_3},${_3}\\)$`),kC=new RegExp(`^rgba\\(${z9},${z9},${z9},${IJ}\\)$`),DC=new RegExp(`^rgba\\(${_3},${_3},${_3},${IJ}\\)$`),uC=new RegExp(`^hsl\\(${IJ},${_3},${_3}\\)$`),bC=new RegExp(`^hsla\\(${IJ},${_3},${_3},${IJ}\\)$`),$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};RJ(wJ,M4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:QM,formatHex:QM,formatHex8:EC,formatHsl:hC,formatRgb:qM,toString:qM});function QM(){return this.rgb().formatHex()}function EC(){return this.rgb().formatHex8()}function hC(){return KM(this).formatHsl()}function qM(){return this.rgb().formatRgb()}function M4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=jC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?UM(U):Z===3?new M5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Iq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Iq(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=VC.exec(Q))?new M5(U[1],U[2],U[3],1):(U=yC.exec(Q))?new M5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=kC.exec(Q))?Iq(U[1],U[2],U[3],U[4]):(U=DC.exec(Q))?Iq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=uC.exec(Q))?FM(U[1],U[2]/100,U[3]/100,1):(U=bC.exec(Q))?FM(U[1],U[2]/100,U[3]/100,U[4]):$M.hasOwnProperty(Q)?UM($M[Q]):Q==="transparent"?new M5(NaN,NaN,NaN,0):null}function UM(Q){return new M5(Q>>16&255,Q>>8&255,Q&255,1)}function Iq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new M5(Q,U,Z,K)}function xC(Q){if(!(Q instanceof wJ))Q=M4(Q);if(!Q)return new M5;return Q=Q.rgb(),new M5(Q.r,Q.g,Q.b,Q.opacity)}function W9(Q,U,Z,K){return arguments.length===1?xC(Q):new M5(Q,U,Z,K==null?1:K)}function M5(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}RJ(M5,W9,hX(wJ,{brighter(Q){return Q=Q==null?Pq:Math.pow(Pq,Q),new M5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?OJ:Math.pow(OJ,Q),new M5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new M5(p8(this.r),p8(this.g),p8(this.b),Nq(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:GM,formatHex:GM,formatHex8:mC,formatRgb:ZM,toString:ZM}));function GM(){return`#${g8(this.r)}${g8(this.g)}${g8(this.b)}`}function mC(){return`#${g8(this.r)}${g8(this.g)}${g8(this.b)}${g8((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZM(){let Q=Nq(this.opacity);return`${Q===1?"rgb(":"rgba("}${p8(this.r)}, ${p8(this.g)}, ${p8(this.b)}${Q===1?")":`, ${Q})`}`}function Nq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function p8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function g8(Q){return Q=p8(Q),(Q<16?"0":"")+Q.toString(16)}function FM(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 A4(Q,U,Z,K)}function KM(Q){if(Q instanceof A4)return new A4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof wJ))Q=M4(Q);if(!Q)return new A4;if(Q instanceof A4)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,L=Y-H,M=(Y+H)/2;if(L){if(U===Y)W=(Z-K)/L+(Z<K)*6;else if(Z===Y)W=(K-U)/L+2;else W=(U-Z)/L+4;L/=M<0.5?Y+H:2-Y-H,W*=60}else L=M>0&&M<1?0:W;return new A4(W,L,M,Q.opacity)}function HM(Q,U,Z,K){return arguments.length===1?KM(Q):new A4(Q,U,Z,K==null?1:K)}function A4(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}RJ(A4,HM,hX(wJ,{brighter(Q){return Q=Q==null?Pq:Math.pow(Pq,Q),new A4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?OJ:Math.pow(OJ,Q),new A4(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 M5(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 A4(XM(this.h),wq(this.s),wq(this.l),Nq(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=Nq(this.opacity);return`${Q===1?"hsl(":"hsla("}${XM(this.h)}, ${wq(this.s)*100}%, ${wq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function XM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function wq(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,L=K<U-1?Q[K+2]:2*Y-H;return mX((Z-K/U)*U,W,H,Y,L)}}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],L=Q[(K+2)%U];return mX((Z-K/U)*U,H,Y,W,L)}}var PJ=(Q)=>()=>Q;function gC(Q,U){return function(Z){return Q+Z*U}}function pC(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 YM(Q){return(Q=+Q)===1?Cq:function(U,Z){return Z-U?pC(U,Z,Q):PJ(isNaN(U)?Z:U)}}function Cq(Q,U){var Z=U-Q;return Z?gC(Q,Z):PJ(isNaN(Q)?U:Q)}var c8=function Q(U){var Z=YM(U);function K(H,Y){var W=Z((H=W9(H)).r,(Y=W9(Y)).r),L=Z(H.g,Y.g),M=Z(H.b,Y.b),O=Cq(H.opacity,Y.opacity);return function(T){return H.r=W(T),H.g=L(T),H.b=M(T),H.opacity=O(T),H+""}}return K.gamma=Q,K}(1);function zM(Q){return function(U){var Z=U.length,K=Array(Z),H=Array(Z),Y=Array(Z),W,L;for(W=0;W<Z;++W)L=W9(U[W]),K[W]=L.r||0,H[W]=L.g||0,Y[W]=L.b||0;return K=Q(K),H=Q(H),Y=Q(Y),L.opacity=1,function(M){return L.r=K(M),L.g=H(M),L.b=Y(M),L+""}}}var cC=zM(gX),lC=zM(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 WM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function LM(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]=J3(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(L){for(W=0;W<K;++W)Y[W]=H[W](L);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 s2(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]=J3(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 iC(Q){return function(){return Q}}function dC(Q){return function(U){return Q(U)+""}}function L9(Q,U){var Z=rX.lastIndex=dX.lastIndex=0,K,H,Y,W=-1,L=[],M=[];Q=Q+"",U=U+"";while((K=rX.exec(Q))&&(H=dX.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),L[W])L[W]+=Y;else L[++W]=Y;if((K=K[0])===(H=H[0]))if(L[W])L[W]+=H;else L[++W]=H;else L[++W]=null,M.push({i:W,x:s2(K,H)});Z=dX.lastIndex}if(Z<U.length)if(Y=U.slice(Z),L[W])L[W]+=Y;else L[++W]=Y;return L.length<2?M[0]?dC(M[0].x):iC(U):(U=M.length,function(O){for(var T=0,A;T<U;++T)L[(A=M[T]).i]=A.x(O);return L.join("")})}function J3(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?PJ(U):(Z==="number"?s2:Z==="string"?(K=M4(U))?(U=K,c8):L9:U instanceof M4?c8:U instanceof Date?lX:WM(U)?cX:Array.isArray(U)?LM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?iX:s2)(Q,U)}var BM=180/Math.PI,fq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sq(Q,U,Z,K,H,Y){var W,L,M;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(M=Q*Z+U*K)Z-=Q*M,K-=U*M;if(L=Math.sqrt(Z*Z+K*K))Z/=L,K/=L,M/=L;if(Q*K<U*Z)Q=-Q,U=-U,M=-M,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*BM,skewX:Math.atan(M)*BM,scaleX:W,scaleY:L}}var vq;function AM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?fq:Sq(U.a,U.b,U.c,U.d,U.e,U.f)}function MM(Q){if(Q==null)return fq;if(!vq)vq=document.createElementNS("http://www.w3.org/2000/svg","g");if(vq.setAttribute("transform",Q),!(Q=vq.transform.baseVal.consolidate()))return fq;return Q=Q.matrix,Sq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function TM(Q,U,Z,K){function H(O){return O.length?O.pop()+" ":""}function Y(O,T,A,R,w,P){if(O!==A||T!==R){var V=w.push("translate(",null,U,null,Z);P.push({i:V-4,x:s2(O,A)},{i:V-2,x:s2(T,R)})}else if(A||R)w.push("translate("+A+U+R+Z)}function W(O,T,A,R){if(O!==T){if(O-T>180)T+=360;else if(T-O>180)O+=360;R.push({i:A.push(H(A)+"rotate(",null,K)-2,x:s2(O,T)})}else if(T)A.push(H(A)+"rotate("+T+K)}function L(O,T,A,R){if(O!==T)R.push({i:A.push(H(A)+"skewX(",null,K)-2,x:s2(O,T)});else if(T)A.push(H(A)+"skewX("+T+K)}function M(O,T,A,R,w,P){if(O!==A||T!==R){var V=w.push(H(w)+"scale(",null,",",null,")");P.push({i:V-4,x:s2(O,A)},{i:V-2,x:s2(T,R)})}else if(A!==1||R!==1)w.push(H(w)+"scale("+A+","+R+")")}return function(O,T){var A=[],R=[];return O=Q(O),T=Q(T),Y(O.translateX,O.translateY,T.translateX,T.translateY,A,R),W(O.rotate,T.rotate,A,R),L(O.skewX,T.skewX,A,R),M(O.scaleX,O.scaleY,T.scaleX,T.scaleY,A,R),O=T=null,function(w){var P=-1,V=R.length,S;while(++P<V)A[(S=R[P]).i]=S.x(w);return A.join("")}}}var aX=TM(AM,"px, ","px)","deg)"),sX=TM(MM,", ",")",")");var rC=0.000000000001;function RM(Q){return((Q=Math.exp(Q))+1/Q)/2}function aC(Q){return((Q=Math.exp(Q))-1/Q)/2}function sC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var l8=function Q(U,Z,K){function H(Y,W){var L=Y[0],M=Y[1],O=Y[2],T=W[0],A=W[1],R=W[2],w=T-L,P=A-M,V=w*w+P*P,S,C;if(V<rC)C=Math.log(R/O)/U,S=function(E){return[L+E*w,M+E*P,O*Math.exp(U*E*C)]};else{var y=Math.sqrt(V),N=(R*R-O*O+K*V)/(2*O*Z*y),v=(R*R-O*O-K*V)/(2*R*Z*y),D=Math.log(Math.sqrt(N*N+1)-N),x=Math.log(Math.sqrt(v*v+1)-v);C=(x-D)/U,S=function(E){var u=E*C,b=RM(D),m=O/(Z*y)*(b*sC(U*u+D)-aC(D));return[L+m*w,M+m*P,O*b/RM(U*u+D)]}}return S.duration=C*1000*U/Math.SQRT2,S}return H.rho=function(Y){var W=Math.max(0.001,+Y),L=W*W,M=L*L;return Q(W,L,M)},H}(Math.SQRT2,2,4);var B9=0,CJ=0,NJ=0,IM=1000,jq,fJ,Vq=0,i8=0,yq=0,SJ=typeof performance==="object"&&performance.now?performance:Date,wM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function jJ(){return i8||(wM(tC),i8=SJ.now()+yq)}function tC(){i8=0}function vJ(){this._call=this._time=this._next=null}vJ.prototype=kq.prototype={constructor:vJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?jJ():+Z)+(U==null?0:+U),!this._next&&fJ!==this){if(fJ)fJ._next=this;else jq=this;fJ=this}this._call=Q,this._time=Z,tX()},stop:function(){if(this._call)this._call=null,this._time=1/0,tX()}};function kq(Q,U,Z){var K=new vJ;return K.restart(Q,U,Z),K}function PM(){jJ(),++B9;var Q=jq,U;while(Q){if((U=i8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--B9}function OM(){i8=(Vq=SJ.now())+yq,B9=CJ=0;try{PM()}finally{B9=0,nC(),i8=0}}function oC(){var Q=SJ.now(),U=Q-Vq;if(U>IM)yq-=U,Vq=Q}function nC(){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;fJ=Q,tX(K)}function tX(Q){if(B9)return;if(CJ)CJ=clearTimeout(CJ);var U=Q-i8;if(U>24){if(Q<1/0)CJ=setTimeout(OM,Q-SJ.now()-yq);if(NJ)NJ=clearInterval(NJ)}else{if(!NJ)Vq=SJ.now(),NJ=setInterval(oC,IM);B9=1,wM(OM)}}function VJ(Q,U,Z){var K=new vJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,Z),K}var eC=x8("start","end","cancel","interrupt"),_f=[],fM=0,NM=1,uq=2,Dq=3,CM=4,bq=5,yJ=6;function b3(Q,U,Z,K,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;Jf(Q,Z,{name:U,index:K,group:H,on:eC,tween:_f,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:fM})}function kJ(Q,U){var Z=N2(Q,U);if(Z.state>fM)throw Error("too late; already scheduled");return Z}function c2(Q,U){var Z=N2(Q,U);if(Z.state>Dq)throw Error("too late; already running");return Z}function N2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function Jf(Q,U,Z){var K=Q.__transition,H;K[U]=Z,Z.timer=kq(Y,0,Z.time);function Y(O){if(Z.state=NM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=O)W(O-Z.delay)}function W(O){var T,A,R,w;if(Z.state!==NM)return M();for(T in K){if(w=K[T],w.name!==Z.name)continue;if(w.state===Dq)return VJ(W);if(w.state===CM)w.state=yJ,w.timer.stop(),w.on.call("interrupt",Q,Q.__data__,w.index,w.group),delete K[T];else if(+T<U)w.state=yJ,w.timer.stop(),w.on.call("cancel",Q,Q.__data__,w.index,w.group),delete K[T]}if(VJ(function(){if(Z.state===Dq)Z.state=CM,Z.timer.restart(L,Z.delay,Z.time),L(O)}),Z.state=uq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==uq)return;Z.state=Dq,H=Array(R=Z.tween.length);for(T=0,A=-1;T<R;++T)if(w=Z.tween[T].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=w;H.length=A+1}function L(O){var T=O<Z.duration?Z.ease.call(null,O/Z.duration):(Z.timer.restart(M),Z.state=bq,1),A=-1,R=H.length;while(++A<R)H[A].call(Q,T);if(Z.state===bq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),M()}function M(){Z.state=yJ,Z.timer.stop(),delete K[U];for(var O in K)return;delete Q.__transition}}function m6(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>uq&&K.state<bq,K.state=yJ,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(){m6(this,Q)})}function $f(Q,U){var Z,K;return function(){var H=c2(this,Q),Y=H.tween;if(Y!==Z){K=Z=Y;for(var W=0,L=K.length;W<L;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}H.tween=K}}function Qf(Q,U,Z){var K,H;if(typeof Z!=="function")throw Error();return function(){var Y=c2(this,Q),W=Y.tween;if(W!==K){H=(K=W).slice();for(var L={name:U,value:Z},M=0,O=H.length;M<O;++M)if(H[M].name===U){H[M]=L;break}if(M===O)H.push(L)}Y.tween=H}}function nX(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=N2(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?$f:Qf)(Z,Q,U))}function A9(Q,U,Z){var K=Q._id;return Q.each(function(){var H=c2(this,K);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return N2(H,K).value[U]}}function DJ(Q,U){var Z;return(typeof U==="number"?s2:U instanceof M4?c8:(Z=M4(U))?(U=Z,c8):L9)(Q,U)}function qf(Q){return function(){this.removeAttribute(Q)}}function Uf(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function Gf(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 Zf(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 Ff(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function Xf(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function eX(Q,U){var Z=e4(Q),K=Z==="transform"?sX:DJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Xf:Ff)(Z,K,A9(this,"attr."+Q,U)):U==null?(Z.local?Uf:qf)(Z):(Z.local?Zf:Gf)(Z,K,U))}function Kf(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Hf(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function Yf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Hf(Q,Y);return Z}return H._value=U,H}function zf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Kf(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=e4(Q);return this.tween(Z,(K.local?Yf:zf)(K,U))}function Wf(Q,U){return function(){kJ(this,Q).delay=+U.apply(this,arguments)}}function Lf(Q,U){return U=+U,function(){kJ(this,Q).delay=U}}function JK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Wf:Lf)(U,Q)):N2(this.node(),U).delay}function Bf(Q,U){return function(){c2(this,Q).duration=+U.apply(this,arguments)}}function Af(Q,U){return U=+U,function(){c2(this,Q).duration=U}}function $K(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Bf:Af)(U,Q)):N2(this.node(),U).duration}function Mf(Q,U){if(typeof U!=="function")throw Error();return function(){c2(this,Q).ease=U}}function QK(Q){var U=this._id;return arguments.length?this.each(Mf(U,Q)):N2(this.node(),U).ease}function Tf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();c2(this,Q).ease=Z}}function qK(Q){if(typeof Q!=="function")throw Error();return this.each(Tf(this._id,Q))}function UK(Q){if(typeof Q!=="function")Q=K9(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,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new Z5(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),L=0;L<Y;++L)for(var M=U[L],O=Z[L],T=M.length,A=W[L]=Array(T),R,w=0;w<T;++w)if(R=M[w]||O[w])A[w]=R;for(;L<K;++L)W[L]=U[L];return new Z5(W,this._parents,this._name,this._id)}function Rf(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 Of(Q,U,Z){var K,H,Y=Rf(U)?kJ:c2;return function(){var W=Y(this,Q),L=W.on;if(L!==K)(H=(K=L).copy()).on(U,Z);W.on=H}}function ZK(Q,U){var Z=this._id;return arguments.length<2?N2(this.node(),Z).on.on(Q):this.each(Of(Z,Q,U))}function If(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",If(this._id))}function XK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=h6(Q);for(var K=this._groups,H=K.length,Y=Array(H),W=0;W<H;++W)for(var L=K[W],M=L.length,O=Y[W]=Array(M),T,A,R=0;R<M;++R)if((T=L[R])&&(A=Q.call(T,T.__data__,R,L))){if("__data__"in T)A.__data__=T.__data__;O[R]=A,b3(O[R],U,Z,R,O,N2(T,Z))}return new Z5(Y,this._parents,U,Z)}function KK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=H9(Q);for(var K=this._groups,H=K.length,Y=[],W=[],L=0;L<H;++L)for(var M=K[L],O=M.length,T,A=0;A<O;++A)if(T=M[A]){for(var R=Q.call(T,T.__data__,A,M),w,P=N2(T,Z),V=0,S=R.length;V<S;++V)if(w=R[V])b3(w,U,Z,V,R,P);Y.push(R),W.push(T)}return new Z5(Y,W,U,Z)}var wf=D3.prototype.constructor;function HK(){return new wf(this._groups,this._parents)}function Pf(Q,U){var Z,K,H;return function(){var Y=x6(this,Q),W=(this.style.removeProperty(Q),x6(this,Q));return Y===W?null:Y===Z&&W===K?H:H=U(Z=Y,K=W)}}function SM(Q){return function(){this.style.removeProperty(Q)}}function Nf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=x6(this,Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Cf(Q,U,Z){var K,H,Y;return function(){var W=x6(this,Q),L=Z(this),M=L+"";if(L==null)M=L=(this.style.removeProperty(Q),x6(this,Q));return W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function ff(Q,U){var Z,K,H,Y="style."+U,W="end."+Y,L;return function(){var M=c2(this,Q),O=M.on,T=M.value[Y]==null?L||(L=SM(U)):void 0;if(O!==Z||H!==T)(K=(Z=O).copy()).on(W,H=T);M.on=K}}function YK(Q,U,Z){var K=(Q+="")==="transform"?aX:DJ;return U==null?this.styleTween(Q,Pf(Q,K)).on("end.style."+Q,SM(Q)):typeof U==="function"?this.styleTween(Q,Cf(Q,K,A9(this,"style."+Q,U))).each(ff(this._id,Q)):this.styleTween(Q,Nf(Q,K,U),Z).on("end.style."+Q,null)}function Sf(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function vf(Q,U,Z){var K,H;function Y(){var W=U.apply(this,arguments);if(W!==H)K=(H=W)&&Sf(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,vf(Q,U,Z==null?"":Z))}function jf(Q){return function(){this.textContent=Q}}function Vf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function WK(Q){return this.tween("text",typeof Q==="function"?Vf(A9(this,"text",Q)):jf(Q==null?"":Q+""))}function yf(Q){return function(U){this.textContent=Q.call(this,U)}}function kf(Q){var U,Z;function K(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&yf(H);return U}return K._value=Q,K}function LK(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,kf(Q))}function BK(){var Q=this._name,U=this._id,Z=Eq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O]){var T=N2(M,U);b3(M,Q,Z,O,W,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new Z5(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 L={value:W},M={value:function(){if(--H===0)Y()}};if(Z.each(function(){var O=c2(this,K),T=O.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(L),U._.interrupt.push(L),U._.end.push(M);O.on=U}),H===0)Y()})}var Df=0;function Z5(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function vM(Q){return D3().transition(Q)}function Eq(){return++Df}var E3=D3.prototype;Z5.prototype=vM.prototype={constructor:Z5,select:XK,selectAll:KK,selectChild:E3.selectChild,selectChildren:E3.selectChildren,filter:UK,merge:GK,selection:HK,transition:BK,call:E3.call,nodes:E3.nodes,node:E3.node,size:E3.size,empty:E3.empty,each:E3.each,on:ZK,attr:eX,attrTween:_K,style:YK,styleTween:zK,text:WK,textTween:LK,remove:FK,tween:nX,delay:JK,duration:$K,ease:QK,easeVarying:qK,end:AK,[Symbol.iterator]:E3[Symbol.iterator]};function hq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var uf={time:null,delay:0,duration:250,ease:hq};function bf(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 Z5)U=Q._id,Q=Q._name;else U=Eq(),(Z=uf).time=jJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])b3(M,Q,U,O,W,Z||bf(M,U));return new Z5(K,this._parents,Q,U)}D3.prototype.interrupt=oX;D3.prototype.transition=MK;var uJ=(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 T4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}T4.prototype={constructor:T4,scale:function(Q){return Q===1?this:new T4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new T4(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 d8=new T4(1,0,0);bJ.prototype=T4.prototype;function bJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return d8;return Q.__zoom}function xq(Q){Q.stopImmediatePropagation()}function r8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Ef(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function hf(){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||d8}function xf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function mf(){return navigator.maxTouchPoints||"ontouchstart"in this}function gf(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 EJ(){var Q=Ef,U=hf,Z=gf,K=xf,H=mf,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],L=250,M=l8,O=x8("start","zoom","end"),T,A,R,w=500,P=150,V=0,S=10;function C(h){h.property("__zoom",jM).on("wheel.zoom",u,{passive:!1}).on("mousedown.zoom",b).on("dblclick.zoom",m).filter(H).on("touchstart.zoom",s).on("touchmove.zoom",U1).on("touchend.zoom touchcancel.zoom",Q1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(h,g,p,c){var l=h.selection?h.selection():h;if(l.property("__zoom",jM),h!==l)D(h,g,p,c);else l.interrupt().each(function(){x(this,arguments).event(c).start().zoom(null,typeof g==="function"?g.apply(this,arguments):g).end()})},C.scaleBy=function(h,g,p,c){C.scaleTo(h,function(){var l=this.__zoom.k,o=typeof g==="function"?g.apply(this,arguments):g;return l*o},p,c)},C.scaleTo=function(h,g,p,c){C.transform(h,function(){var l=U.apply(this,arguments),o=this.__zoom,k=p==null?v(l):typeof p==="function"?p.apply(this,arguments):p,t=o.invert(k),_1=typeof g==="function"?g.apply(this,arguments):g;return Z(N(y(o,_1),k,t),l,W)},p,c)},C.translateBy=function(h,g,p,c){C.transform(h,function(){return Z(this.__zoom.translate(typeof g==="function"?g.apply(this,arguments):g,typeof p==="function"?p.apply(this,arguments):p),U.apply(this,arguments),W)},null,c)},C.translateTo=function(h,g,p,c,l){C.transform(h,function(){var o=U.apply(this,arguments),k=this.__zoom,t=c==null?v(o):typeof c==="function"?c.apply(this,arguments):c;return Z(d8.translate(t[0],t[1]).scale(k.k).translate(typeof g==="function"?-g.apply(this,arguments):-g,typeof p==="function"?-p.apply(this,arguments):-p),o,W)},c,l)};function y(h,g){return g=Math.max(Y[0],Math.min(Y[1],g)),g===h.k?h:new T4(g,h.x,h.y)}function N(h,g,p){var c=g[0]-p[0]*h.k,l=g[1]-p[1]*h.k;return c===h.x&&l===h.y?h:new T4(h.k,c,l)}function v(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function D(h,g,p,c){h.on("start.zoom",function(){x(this,arguments).event(c).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(c).end()}).tween("zoom",function(){var l=this,o=arguments,k=x(l,o).event(c),t=U.apply(l,o),_1=p==null?v(t):typeof p==="function"?p.apply(l,o):p,a=Math.max(t[1][0]-t[0][0],t[1][1]-t[0][1]),H1=l.__zoom,O1=typeof g==="function"?g.apply(l,o):g,L1=M(H1.invert(_1).concat(a/H1.k),O1.invert(_1).concat(a/O1.k));return function(T1){if(T1===1)T1=O1;else{var G1=L1(T1),R1=a/G1[2];T1=new T4(R1,_1[0]-G1[0]*R1,_1[1]-G1[1]*R1)}k.zoom(null,T1)}})}function x(h,g,p){return!p&&h.__zooming||new E(h,g)}function E(h,g){this.that=h,this.args=g,this.active=0,this.sourceEvent=null,this.extent=U.apply(h,g),this.taps=0}E.prototype={event:function(h){if(h)this.sourceEvent=h;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(h,g){if(this.mouse&&h!=="mouse")this.mouse[1]=g.invert(this.mouse[0]);if(this.touch0&&h!=="touch")this.touch0[1]=g.invert(this.touch0[0]);if(this.touch1&&h!=="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(h){var g=P2(this.that).datum();O.call(h,this.that,new TK(h,{sourceEvent:this.sourceEvent,target:C,type:h,transform:this.that.__zoom,dispatch:O}),g)}};function u(h,...g){if(!Q.apply(this,arguments))return;var p=x(this,g).event(h),c=this.__zoom,l=Math.max(Y[0],Math.min(Y[1],c.k*Math.pow(2,K.apply(this,arguments)))),o=a2(h);if(p.wheel){if(p.mouse[0][0]!==o[0]||p.mouse[0][1]!==o[1])p.mouse[1]=c.invert(p.mouse[0]=o);clearTimeout(p.wheel)}else if(c.k===l)return;else p.mouse=[o,c.invert(o)],m6(this),p.start();r8(h),p.wheel=setTimeout(k,P),p.zoom("mouse",Z(N(y(c,l),p.mouse[0],p.mouse[1]),p.extent,W));function k(){p.wheel=null,p.end()}}function b(h,...g){if(R||!Q.apply(this,arguments))return;var p=h.currentTarget,c=x(this,g,!0).event(h),l=P2(h.view).on("mousemove.zoom",_1,!0).on("mouseup.zoom",a,!0),o=a2(h,p),k=h.clientX,t=h.clientY;Y9(h.view),xq(h),c.mouse=[o,this.__zoom.invert(o)],m6(this),c.start();function _1(H1){if(r8(H1),!c.moved){var O1=H1.clientX-k,L1=H1.clientY-t;c.moved=O1*O1+L1*L1>V}c.event(H1).zoom("mouse",Z(N(c.that.__zoom,c.mouse[0]=a2(H1,p),c.mouse[1]),c.extent,W))}function a(H1){l.on("mousemove.zoom mouseup.zoom",null),BJ(H1.view,c.moved),r8(H1),c.event(H1).end()}}function m(h,...g){if(!Q.apply(this,arguments))return;var p=this.__zoom,c=a2(h.changedTouches?h.changedTouches[0]:h,this),l=p.invert(c),o=p.k*(h.shiftKey?0.5:2),k=Z(N(y(p,o),c,l),U.apply(this,g),W);if(r8(h),L>0)P2(this).transition().duration(L).call(D,k,c,h);else P2(this).call(C.transform,k,c,h)}function s(h,...g){if(!Q.apply(this,arguments))return;var p=h.touches,c=p.length,l=x(this,g,h.changedTouches.length===c).event(h),o,k,t,_1;xq(h);for(k=0;k<c;++k)if(t=p[k],_1=a2(t,this),_1=[_1,this.__zoom.invert(_1),t.identifier],!l.touch0)l.touch0=_1,o=!0,l.taps=1+!!T;else if(!l.touch1&&l.touch0[2]!==_1[2])l.touch1=_1,l.taps=0;if(T)T=clearTimeout(T);if(o){if(l.taps<2)A=_1[0],T=setTimeout(function(){T=null},w);m6(this),l.start()}}function U1(h,...g){if(!this.__zooming)return;var p=x(this,g).event(h),c=h.changedTouches,l=c.length,o,k,t,_1;r8(h);for(o=0;o<l;++o)if(k=c[o],t=a2(k,this),p.touch0&&p.touch0[2]===k.identifier)p.touch0[0]=t;else if(p.touch1&&p.touch1[2]===k.identifier)p.touch1[0]=t;if(k=p.that.__zoom,p.touch1){var a=p.touch0[0],H1=p.touch0[1],O1=p.touch1[0],L1=p.touch1[1],T1=(T1=O1[0]-a[0])*T1+(T1=O1[1]-a[1])*T1,G1=(G1=L1[0]-H1[0])*G1+(G1=L1[1]-H1[1])*G1;k=y(k,Math.sqrt(T1/G1)),t=[(a[0]+O1[0])/2,(a[1]+O1[1])/2],_1=[(H1[0]+L1[0])/2,(H1[1]+L1[1])/2]}else if(p.touch0)t=p.touch0[0],_1=p.touch0[1];else return;p.zoom("touch",Z(N(k,t,_1),p.extent,W))}function Q1(h,...g){if(!this.__zooming)return;var p=x(this,g).event(h),c=h.changedTouches,l=c.length,o,k;if(xq(h),R)clearTimeout(R);R=setTimeout(function(){R=null},w);for(o=0;o<l;++o)if(k=c[o],p.touch0&&p.touch0[2]===k.identifier)delete p.touch0;else if(p.touch1&&p.touch1[2]===k.identifier)delete p.touch1;if(p.touch1&&!p.touch0)p.touch0=p.touch1,delete p.touch1;if(p.touch0)p.touch0[1]=this.__zoom.invert(p.touch0[0]);else if(p.end(),p.taps===2){if(k=a2(k,this),Math.hypot(A[0]-k[0],A[1]-k[1])<S){var t=P2(this).on("dblclick.zoom");if(t)t.apply(this,arguments)}}}return C.wheelDelta=function(h){return arguments.length?(K=typeof h==="function"?h:uJ(+h),C):K},C.filter=function(h){return arguments.length?(Q=typeof h==="function"?h:uJ(!!h),C):Q},C.touchable=function(h){return arguments.length?(H=typeof h==="function"?h:uJ(!!h),C):H},C.extent=function(h){return arguments.length?(U=typeof h==="function"?h:uJ([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),C):U},C.scaleExtent=function(h){return arguments.length?(Y[0]=+h[0],Y[1]=+h[1],C):[Y[0],Y[1]]},C.translateExtent=function(h){return arguments.length?(W[0][0]=+h[0][0],W[1][0]=+h[1][0],W[0][1]=+h[0][1],W[1][1]=+h[1][1],C):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},C.constrain=function(h){return arguments.length?(Z=h,C):Z},C.duration=function(h){return arguments.length?(L=+h,C):L},C.interpolate=function(h){return arguments.length?(M=h,C):M},C.on=function(){var h=O.on.apply(O,arguments);return h===O?C:h},C.clickDistance=function(h){return arguments.length?(V=(h=+h)*h,C):Math.sqrt(V)},C.tapDistance=function(h){return arguments.length?(S=+h,C):S},C}var F5={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.`},O9=[[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"},l6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(l6||(l6={}));var h3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(h3||(h3={}));var a8;(function(Q){Q.Partial="partial",Q.Full="full"})(a8||(a8={}));var CK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},$3;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})($3||($3={}));var T9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(T9||(T9={}));var E1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(E1||(E1={}));var VM={[E1.Left]:E1.Right,[E1.Right]:E1.Left,[E1.Top]:E1.Bottom,[E1.Bottom]:E1.Top},fK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),iM=(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 xJ=(Q,U=[0,0])=>{let{width:Z,height:K}=J4(Q),H=Q.origin??U,Y=Z*H[0],W=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},vK=(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",L=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)L=W?U.nodeLookup.get(Y):!SK(Y)?U.nodeLookup.get(Y.id):Y;if(!L)return H;return Z=!0,iq(H,pq(L,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?dq(K):{x:0,y:0,width:0,height:0}},n8=(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=iq(Z,pq(H)),K=!0}),K?dq(Z):{x:0,y:0,width:0,height:0}},cq=(Q,U,[Z,K,H]=[0,0,1],Y=!1,W=!1)=>{let L=(U.x-Z)/H,M=(U.y-K)/H,O=U.width/H,T=U.height/H,A=[];for(let R of Q.values()){let{measured:w,selectable:P=!0,hidden:V=!1}=R;if(W&&!P||V)continue;let S=w.width??R.width??R.initialWidth??0,C=w.height??R.height??R.initialHeight??0,{x:y,y:N}=R.internals.positionAbsolute,v=tM(L,M,O,T,y,N,S,C),D=S*C,x=Y&&v>0;if(!R.internals.handleBounds||x||v>=D||R.dragging)A.push(R)}return A},dM=(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 pf(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:L}=J4(H);Y=W>0&&L>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 rM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let L=pf(Q,W),M=n8(L),O=gJ(M,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(O,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function jK({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[0,0],nodeExtent:H,onError:Y}){let W=Z.get(Q),L=W.parentId?Z.get(W.parentId):void 0,{x:M,y:O}=L?L.internals.positionAbsolute:{x:0,y:0},T=W.origin??K,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!L)Y?.("005",F5.error005());else{let{width:w,height:P}=J4(L);if(w&&P)A=[[M,O],[M+w,O+P]]}else if(L&&o8(W.extent))A=[[W.extent[0][0]+M,W.extent[0][1]+O],[W.extent[1][0]+M,W.extent[1][1]+O]];let R=o8(A)?s8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",F5.error015());return{position:{x:R.x-M+(W.measured.width??0)*T[0],y:R.y-O+(W.measured.height??0)*T[1]},positionAbsolute:R}}async function aM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((R)=>R.id)),W=[];for(let R of Z){if(R.deletable===!1)continue;let w=Y.has(R.id),P=!w&&R.parentId&&W.find((V)=>V.id===R.parentId);if(w||P)W.push(R)}let L=new Set(U.map((R)=>R.id)),M=K.filter((R)=>R.deletable!==!1),T=dM(W,M);for(let R of M)if(L.has(R.id)&&!T.find((P)=>P.id===R.id))T.push(R);if(!H)return{edges:T,nodes:W};let A=await H({nodes:W,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:W}:{edges:[],nodes:[]};return A}var R9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),s8=(Q={x:0,y:0},U,Z)=>({x:R9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:R9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function sM(Q,U,Z){let{width:K,height:H}=J4(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return s8(Q,[[Y,W],[Y+K,W+H]],U)}var yM=(Q,U,Z)=>{if(Q<U)return R9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-R9(Math.abs(Q-Z),1,U)/U;return 0},lq=(Q,U,Z=15,K=40)=>{let H=yM(Q.x,K,U.width-K)*Z,Y=yM(Q.y,K,U.height-K)*Z;return[H,Y]},iq=(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}),dq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),I9=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:xJ(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}},pq=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:xJ(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)=>dq(iq(wK(Q),wK(U))),tM=(Q,U,Z,K,H,Y,W,L)=>{let M=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),O=Math.max(0,Math.min(U+K,Y+L)-Math.max(U,Y));return Math.ceil(M*O)},mJ=(Q,U)=>tM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),yK=(Q)=>e5(Q.width)&&e5(Q.height)&&e5(Q.x)&&e5(Q.y),e5=(Q)=>!isNaN(Q)&&isFinite(Q),kK=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},w9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},P9=({x:Q,y:U},[Z,K,H],Y=!1,W=[1,1])=>{let L={x:(Q-Z)/H,y:(U-K)/H};return Y?w9(L,W):L},t8=({x:Q,y:U},[Z,K,H])=>{return{x:Q*H+Z,y:U*H+K}};function M9(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 cf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=M9(Q,Z),H=M9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=M9(Q.top??Q.y??0,Z),H=M9(Q.bottom??Q.y??0,Z),Y=M9(Q.left??Q.x??0,U),W=M9(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 lf(Q,U,Z,K,H,Y){let{x:W,y:L}=t8(Q,[U,Z,K]),{x:M,y:O}=t8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),T=H-M,A=Y-O;return{left:Math.floor(W),top:Math.floor(L),right:Math.floor(T),bottom:Math.floor(A)}}var gJ=(Q,U,Z,K,H,Y)=>{let W=cf(Y,U,Z),L=(U-W.x)/Q.width,M=(Z-W.y)/Q.height,O=Math.min(L,M),T=R9(O,K,H),A=Q.x+Q.width/2,R=Q.y+Q.height/2,w=U/2-A*T,P=Z/2-R*T,V=lf(Q,w,P,T,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:T}},N9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function o8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function J4(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 L=W.origin||H;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*L[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*L[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 oM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function nM(Q){return{...NK,...Q||{}}}function df(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 kM=!1;function eM(Q){if(kM)return;kM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!df(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 hJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:H}){let{x:Y,y:W}=_4(Q),L=P9({x:Y-(H?.left??0),y:W-(H?.top??0)},K),{x:M,y:O}=Z?w9(L,U):L;return{xSnapped:M,ySnapped:O,...L}}var rq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),hK=(Q)=>Q?.getRootNode?.()||window?.document,rf=["INPUT","SELECT","TEXTAREA"];function xK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return rf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var mK=(Q)=>("clientX"in Q),_4=(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)}},DM=(Q,U,Z,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let L=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:H,position:W.getAttribute("data-handlepos"),x:(L.left-Z.left)/K,y:(L.top-Z.top)/K,...rq(W)}})};function aq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:L}){let M=Q*0.125+H*0.375+W*0.375+Z*0.125,O=U*0.125+Y*0.375+L*0.375+K*0.125,T=Math.abs(M-Q),A=Math.abs(O-U);return[M,O,T,A]}function mq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function uM({pos:Q,x1:U,y1:Z,x2:K,y2:H,c:Y}){switch(Q){case E1.Left:return[U-mq(U-K,Y),Z];case E1.Right:return[U+mq(K-U,Y),Z];case E1.Top:return[U,Z-mq(Z-H,Y)];case E1.Bottom:return[U,Z+mq(H-Z,Y)]}}function sq({sourceX:Q,sourceY:U,sourcePosition:Z=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,curvature:W=0.25}){let[L,M]=uM({pos:Z,x1:Q,y1:U,x2:K,y2:H,c:W}),[O,T]=uM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:W}),[A,R,w,P]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:L,sourceControlY:M,targetControlX:O,targetControlY:T});return[`M${Q},${U} C${L},${M} ${O},${T} ${K},${H}`,A,R,w,P]}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,L=K<U?K+W:K-W;return[Y,L,H,W]}function _T({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,L=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+L}function JT({sourceNode:Q,targetNode:U,width:Z,height:K,transform:H}){let Y=iq(pq(Q),pq(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 mJ(W,dq(Y))>0}var af=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,sf=(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",F5.error006()),U;let K=Z.getEdgeId||af,H;if(fK(Q))H={...Q};else H={...Q,id:K(Q)};if(sf(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function tq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[H,Y,W,L]=gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,H,Y,W,L]}var bM={[E1.Left]:{x:-1,y:0},[E1.Right]:{x:1,y:0},[E1.Top]:{x:0,y:-1},[E1.Bottom]:{x:0,y:1}},tf=({source:Q,sourcePosition:U=E1.Bottom,target:Z})=>{if(U===E1.Left||U===E1.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}},EM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function of({source:Q,sourcePosition:U=E1.Bottom,target:Z,targetPosition:K=E1.Top,center:H,offset:Y,stepPosition:W}){let L=bM[U],M=bM[K],O={x:Q.x+L.x*Y,y:Q.y+L.y*Y},T={x:Z.x+M.x*Y,y:Z.y+M.y*Y},A=tf({source:O,sourcePosition:U,target:T}),R=A.x!==0?"x":"y",w=A[R],P=[],V,S,C={x:0,y:0},y={x:0,y:0},[,,N,v]=gK({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(L[R]*M[R]===-1){if(R==="x")V=H.x??O.x+(T.x-O.x)*W,S=H.y??(O.y+T.y)/2;else V=H.x??(O.x+T.x)/2,S=H.y??O.y+(T.y-O.y)*W;let u=[{x:V,y:O.y},{x:V,y:T.y}],b=[{x:O.x,y:S},{x:T.x,y:S}];if(L[R]===w)P=R==="x"?u:b;else P=R==="x"?b:u}else{let u=[{x:O.x,y:T.y}],b=[{x:T.x,y:O.y}];if(R==="x")P=L.x===w?b:u;else P=L.y===w?u:b;if(U===K){let h=Math.abs(Q[R]-Z[R]);if(h<=Y){let g=Math.min(Y-1,Y-h);if(L[R]===w)C[R]=(O[R]>Q[R]?-1:1)*g;else y[R]=(T[R]>Z[R]?-1:1)*g}}if(U!==K){let h=R==="x"?"y":"x",g=L[R]===M[h],p=O[h]>T[h],c=O[h]<T[h];if(L[R]===1&&(!g&&p||g&&c)||L[R]!==1&&(!g&&c||g&&p))P=R==="x"?u:b}let m={x:O.x+C.x,y:O.y+C.y},s={x:T.x+y.x,y:T.y+y.y},U1=Math.max(Math.abs(m.x-P[0].x),Math.abs(s.x-P[0].x)),Q1=Math.max(Math.abs(m.y-P[0].y),Math.abs(s.y-P[0].y));if(U1>=Q1)V=(m.x+s.x)/2,S=P[0].y;else V=P[0].x,S=(m.y+s.y)/2}let D={x:O.x+C.x,y:O.y+C.y},x={x:T.x+y.x,y:T.y+y.y};return[[Q,...D.x!==P[0].x||D.y!==P[0].y?[D]:[],...P,...x.x!==P[P.length-1].x||x.y!==P[P.length-1].y?[x]:[],Z],V,S,N,v]}function nf(Q,U,Z,K){let H=Math.min(EM(Q,U)/2,EM(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 O=Q.x<Z.x?-1:1,T=Q.y<Z.y?1:-1;return`L ${Y+H*O},${W}Q ${Y},${W} ${Y},${W+H*T}`}let L=Q.x<Z.x?1:-1,M=Q.y<Z.y?-1:1;return`L ${Y},${W+H*M}Q ${Y},${W} ${Y+H*L},${W}`}function pJ({sourceX:Q,sourceY:U,sourcePosition:Z=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,borderRadius:W=5,centerX:L,centerY:M,offset:O=20,stepPosition:T=0.5}){let[A,R,w,P,V]=of({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:H},targetPosition:Y,center:{x:L,y:M},offset:O,stepPosition:T}),S=`M${A[0].x} ${A[0].y}`;for(let C=1;C<A.length-1;C++)S+=nf(A[C-1],A[C],A[C+1],W);return S+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[S,R,w,P,V]}function hM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function QT(Q){let{sourceNode:U,targetNode:Z}=Q;if(!hM(U)||!hM(Z))return null;let K=U.internals.handleBounds||xM(U.handles),H=Z.internals.handleBounds||xM(Z.handles),Y=mM(K?.source??[],Q.sourceHandle),W=mM(Q.connectionMode===l6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",F5.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let L=Y?.position||E1.Bottom,M=W?.position||E1.Top,O=i6(U,Y,L),T=i6(Z,W,M);return{sourceX:O.x,sourceY:O.y,targetX:T.x,targetY:T.y,sourcePosition:L,targetPosition:M}}function xM(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 i6(Q,U,Z=E1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:L}=U??J4(Q);if(K)return{x:H+W/2,y:Y+L/2};switch(U?.position??Z){case E1.Top:return{x:H+W/2,y:Y};case E1.Right:return{x:H+W,y:Y+L/2};case E1.Bottom:return{x:H+W/2,y:Y+L};case E1.Left:return{x:H,y:Y+L/2}}}function mM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function oq(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,L)=>{return[L.markerStart||K,L.markerEnd||H].forEach((M)=>{if(M&&typeof M==="object"){let O=oq(M,U);if(!Y.has(O))W.push({id:O,color:M.color||Z,...M}),Y.add(O)}}),W},[]).sort((W,L)=>W.id.localeCompare(L.id))}function UT(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],L=[-100*Y,-100];switch(Z){case E1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[0,-100*Y];break;case E1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,L[1]=0;break;case E1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${L[0]}%, ${L[1]}%)`}var GT=1000,ef=10,pK={nodeOrigin:[0,0],nodeExtent:O9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},_S={...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 ZT(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=xJ(H,K.nodeOrigin),W=o8(H.extent)?H.extent:K.nodeExtent,L=s8(Y,W,J4(H));H.internals.positionAbsolute=L}}function JS(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 nq(Q,U,Z,K={}){let H=cK(_S,K),Y={i:0},W=new Map(U),L=H?.elevateNodesOnSelect&&!lK(H.zIndexMode)?GT:0,M=Q.length>0,O=!1;U.clear(),Z.clear();for(let T of Q){let A=W.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let R=xJ(T,H.nodeOrigin),w=o8(T.extent)?T.extent:H.nodeExtent,P=s8(R,w,J4(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:P,handleBounds:JS(T,A),z:FT(T,L,H.zIndexMode),userNode:T}},U.set(T.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)M=!1;if(T.parentId)iK(A,U,Z,K,Y);O||=T.selected??!1}return{nodesInitialized:M,hasSelectedNodes:O}}function $S(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:L,zIndexMode:M}=cK(pK,K),O=Q.parentId,T=U.get(O);if(!T){console.warn(`Parent node ${O} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if($S(Q,Z),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&M==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*ef;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!lK(M)?GT:0,{x:R,y:w,z:P}=QS(Q,T,W,L,A,M),{positionAbsolute:V}=Q.internals,S=R!==V.x||w!==V.y;if(S||P!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:R,y:w}:V,z:P}})}function FT(Q,U,Z){let K=e5(Q.zIndex)?Q.zIndex:0;if(lK(Z))return K;return K+(Q.selected?U:0)}function QS(Q,U,Z,K,H,Y){let{x:W,y:L}=U.internals.positionAbsolute,M=J4(Q),O=xJ(Q,Z),T=o8(Q.extent)?s8(O,Q.extent,M):O,A=s8({x:W+T.x,y:L+T.y},K,M);if(Q.extent==="parent")A=sM(A,M,U);let R=FT(Q,H,Y),w=U.internals.z??0;return{x:A.x,y:A.y,z:w>=R?w+1:R}}function eq(Q,U,Z,K=[0,0]){let H=[],Y=new Map;for(let W of Q){let L=U.get(W.parentId);if(!L)continue;let M=Y.get(W.parentId)?.expandedRect??I9(L),O=VK(M,W.rect);Y.set(W.parentId,{expandedRect:O,parent:L})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:L},M)=>{let O=L.internals.positionAbsolute,T=J4(L),A=L.origin??K,R=W.x<O.x?Math.round(Math.abs(O.x-W.x)):0,w=W.y<O.y?Math.round(Math.abs(O.y-W.y)):0,P=Math.max(T.width,Math.round(W.width)),V=Math.max(T.height,Math.round(W.height)),S=(P-T.width)*A[0],C=(V-T.height)*A[1];if(R>0||w>0||S||C)H.push({id:M,type:"position",position:{x:L.position.x-R+S,y:L.position.y-w+C}}),Z.get(M)?.forEach((y)=>{if(!Q.some((N)=>N.id===y.id))H.push({id:y.id,type:"position",position:{x:y.position.x+R,y:y.position.y+w}})});if(T.width<W.width||T.height<W.height||R||w)H.push({id:M,type:"dimensions",setAttributes:!0,dimensions:{width:P+(R?A[0]*R-S:0),height:V+(w?A[1]*w-C:0)}})});return H}function XT(Q,U,Z,K,H,Y,W){let L=K?.querySelector(".xyflow__viewport"),M=!1;if(!L)return{changes:[],updatedInternals:M};let O=[],T=window.getComputedStyle(L),{m22:A}=new window.DOMMatrixReadOnly(T.transform),R=[];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}}),M=!0;continue}let V=rq(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 y=w.nodeElement.getBoundingClientRect(),N=o8(P.extent)?P.extent:Y,{positionAbsolute:v}=P.internals;if(P.parentId&&P.extent==="parent"){let x=U.get(P.parentId);if(x)v=sM(v,V,x)}else if(N)v=s8(v,N,V);let D={...P,measured:V,internals:{...P.internals,positionAbsolute:v,handleBounds:{source:DM("source",w.nodeElement,y,A,P.id),target:DM("target",w.nodeElement,y,A,P.id)}}};if(U.set(P.id,D),P.parentId)iK(D,U,Z,{nodeOrigin:H,zIndexMode:W});if(M=!0,S){if(O.push({id:P.id,type:"dimensions",dimensions:V}),P.expandParent&&P.parentId)R.push({id:P.id,parentId:P.parentId,rect:I9(D,H)})}}}if(R.length>0){let w=eq(R,U,Z,H);O.push(...w)}return{changes:O,updatedInternals:M}}async function KT({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 gM(Q,U,Z,K,H,Y){let W=H,L=K.get(W)||new Map;K.set(W,L.set(Z,U)),W=`${H}-${Q}`;let M=K.get(W)||new Map;if(K.set(W,M.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let O=K.get(W)||new Map;K.set(W,O.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:L=null}=K,M={edgeId:K.id,source:H,target:Y,sourceHandle:W,targetHandle:L},O=`${H}-${W}--${Y}-${L}`,T=`${Y}-${L}--${H}-${W}`;gM("source",M,T,Q,H,W),gM("target",M,O,Q,Y,L),U.set(K.id,K)}}function HT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return HT(Z,U)}function pM(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 qS(Q,U,Z,K){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!W.parentId||!HT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let L=Q.get(Y);if(L)H.set(Y,{id:Y,position:L.position||{x:0,y:0},distance:{x:Z.x-L.internals.positionAbsolute.x,y:Z.y-L.internals.positionAbsolute.y},extent:L.extent,parentId:L.parentId,origin:L.origin,expandParent:L.expandParent,internals:{positionAbsolute:L.internals.positionAbsolute||{x:0,y:0}},measured:{width:L.measured.width??0,height:L.measured.height??0}})}return H}function RK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let H=[];for(let[W,L]of U){let M=Z.get(W)?.internals.userNode;if(M)H.push({...M,position:L.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 US({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=w9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function YT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:H}){let Y={x:null,y:null},W=0,L=new Map,M=!1,O={x:0,y:0},T=null,A=!1,R=null,w=!1,P=!1,V=null;function S({noDragClassName:y,handleSelector:N,domNode:v,isSelectable:D,nodeId:x,nodeClickDistance:E=0}){R=P2(v);function u({x:U1,y:Q1}){let{nodeLookup:h,nodeExtent:g,snapGrid:p,snapToGrid:c,nodeOrigin:l,onNodeDrag:o,onSelectionDrag:k,onError:t,updateNodePositions:_1}=U();Y={x:U1,y:Q1};let a=!1,H1=L.size>1,O1=H1&&g?wK(n8(L)):null,L1=H1&&c?US({dragItems:L,snapGrid:p,x:U1,y:Q1}):null;for(let[T1,G1]of L){if(!h.has(T1))continue;let R1={x:U1-G1.distance.x,y:Q1-G1.distance.y};if(c)R1=L1?{x:Math.round(R1.x+L1.x),y:Math.round(R1.y+L1.y)}:w9(R1,p);let f1=null;if(H1&&g&&!G1.extent&&O1){let{positionAbsolute:b1}=G1.internals,c1=b1.x-O1.x+g[0][0],D1=b1.x+G1.measured.width-O1.x2+g[1][0],A1=b1.y-O1.y+g[0][1],e1=b1.y+G1.measured.height-O1.y2+g[1][1];f1=[[c1,A1],[D1,e1]]}let{position:z1,positionAbsolute:C1}=jK({nodeId:T1,nextPosition:R1,nodeLookup:h,nodeExtent:f1?f1:g,nodeOrigin:l,onError:t});a=a||G1.position.x!==z1.x||G1.position.y!==z1.y,G1.position=z1,G1.internals.positionAbsolute=C1}if(P=P||a,!a)return;if(_1(L,!0),V&&(K||o||!x&&k)){let[T1,G1]=RK({nodeId:x,dragItems:L,nodeLookup:h});if(K?.(V,L,T1,G1),o?.(V,T1,G1),!x)k?.(V,G1)}}async function b(){if(!T)return;let{transform:U1,panBy:Q1,autoPanSpeed:h,autoPanOnNodeDrag:g}=U();if(!g){M=!1,cancelAnimationFrame(W);return}let[p,c]=lq(O,T,h);if(p!==0||c!==0){if(Y.x=(Y.x??0)-p/U1[2],Y.y=(Y.y??0)-c/U1[2],await Q1({x:p,y:c}))u(Y)}W=requestAnimationFrame(b)}function m(U1){let{nodeLookup:Q1,multiSelectionActive:h,nodesDraggable:g,transform:p,snapGrid:c,snapToGrid:l,selectNodesOnDrag:o,onNodeDragStart:k,onSelectionDragStart:t,unselectNodesAndEdges:_1}=U();if(A=!0,(!o||!D)&&!h&&x){if(!Q1.get(x)?.selected)_1()}if(D&&o&&x)Q?.(x);let a=hJ(U1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:l,containerBounds:T});if(Y=a,L=qS(Q1,g,a,x),L.size>0&&(Z||k||!x&&t)){let[H1,O1]=RK({nodeId:x,dragItems:L,nodeLookup:Q1});if(Z?.(U1.sourceEvent,L,H1,O1),k?.(U1.sourceEvent,H1,O1),!x)t?.(U1.sourceEvent,O1)}}let s=TJ().clickDistance(E).on("start",(U1)=>{let{domNode:Q1,nodeDragThreshold:h,transform:g,snapGrid:p,snapToGrid:c}=U();if(T=Q1?.getBoundingClientRect()||null,w=!1,P=!1,V=U1.sourceEvent,h===0)m(U1);Y=hJ(U1.sourceEvent,{transform:g,snapGrid:p,snapToGrid:c,containerBounds:T}),O=_4(U1.sourceEvent,T)}).on("drag",(U1)=>{let{autoPanOnNodeDrag:Q1,transform:h,snapGrid:g,snapToGrid:p,nodeDragThreshold:c,nodeLookup:l}=U(),o=hJ(U1.sourceEvent,{transform:h,snapGrid:g,snapToGrid:p,containerBounds:T});if(V=U1.sourceEvent,U1.sourceEvent.type==="touchmove"&&U1.sourceEvent.touches.length>1||x&&!l.has(x))w=!0;if(w)return;if(!M&&Q1&&A)M=!0,b();if(!A){let k=_4(U1.sourceEvent,T),t=k.x-O.x,_1=k.y-O.y;if(Math.sqrt(t*t+_1*_1)>c)m(U1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&L&&A)O=_4(U1.sourceEvent,T),u(o)}).on("end",(U1)=>{if(!A||w){if(w&&L.size>0)U().updateNodePositions(L,!1);return}if(M=!1,A=!1,cancelAnimationFrame(W),L.size>0){let{nodeLookup:Q1,updateNodePositions:h,onNodeDragStop:g,onSelectionDragStop:p}=U();if(P)h(L,!1),P=!1;if(H||g||!x&&p){let[c,l]=RK({nodeId:x,dragItems:L,nodeLookup:Q1,dragging:!1});if(H?.(U1.sourceEvent,L,c,l),g?.(U1.sourceEvent,c,l),!x)p?.(U1.sourceEvent,l)}}}).filter((U1)=>{let Q1=U1.target;return!U1.button&&(!y||!pM(Q1,`.${y}`,v))&&(!N||pM(Q1,N,v))});R.call(s)}function C(){R?.on(".drag",null)}return{update:S,destroy:C}}function GS(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(mJ(H,I9(Y))>0)K.push(Y);return K}var ZS=250;function FS(Q,U,Z,K){let H=[],Y=1/0,W=GS(Q,Z,U+ZS);for(let L of W){let M=[...L.internals.handleBounds?.source??[],...L.internals.handleBounds?.target??[]];for(let O of M){if(K.nodeId===O.nodeId&&K.type===O.type&&K.id===O.id)continue;let{x:T,y:A}=i6(L,O,O.position,!0),R=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(R>U)continue;if(R<Y)H=[{...O,x:T,y:A}],Y=R;else if(R===Y)H.push({...O,x:T,y:A})}}if(!H.length)return null;if(H.length>1){let L=K.type==="source"?"target":"source";return H.find((M)=>M.type===L)??H[0]}return H[0]}function zT(Q,U,Z,K,H,Y=!1){let W=K.get(Q);if(!W)return null;let L=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],M=(Z?L?.find((O)=>O.id===Z):L?.[0])??null;return M&&Y?{...M,...i6(W,M,M.position,!0)}:M}function WT(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 XS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var LT=()=>!0;function KS(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:L,nodeLookup:M,lib:O,autoPanOnConnect:T,flowId:A,panBy:R,cancelConnection:w,onConnectStart:P,onConnect:V,onConnectEnd:S,isValidConnection:C=LT,onReconnectEnd:y,updateConnection:N,getTransform:v,getFromHandle:D,autoPanSpeed:x,dragThreshold:E=1,handleDomNode:u}){let b=hK(Q.target),m=0,s,{x:U1,y:Q1}=_4(Q),h=WT(Y,u),g=L?.getBoundingClientRect(),p=!1;if(!g||!h)return;let c=zT(H,h,K,M,U);if(!c)return;let l=_4(Q,g),o=!1,k=null,t=!1,_1=null;function a(){if(!T||!g)return;let[z1,C1]=lq(l,g,x);R({x:z1,y:C1}),m=requestAnimationFrame(a)}let H1={...c,nodeId:H,type:h,position:c.position},O1=M.get(H),T1={inProgress:!0,isValid:null,from:i6(O1,H1,E1.Left,!0),fromHandle:H1,fromPosition:H1.position,fromNode:O1,to:l,toHandle:null,toPosition:VM[H1.position],toNode:null,pointer:l};function G1(){p=!0,N(T1),P?.(Q,{nodeId:H,handleId:K,handleType:h})}if(E===0)G1();function R1(z1){if(!p){let{x:e1,y:k1}=_4(z1),g0=e1-U1,_0=k1-Q1;if(!(g0*g0+_0*_0>E*E))return;G1()}if(!D()||!H1){f1(z1);return}let C1=v();if(l=_4(z1,g),s=FS(P9(l,C1,!1,[1,1]),Z,M,H1),!o)a(),o=!0;let b1=BT(z1,{handle:s,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:W?"target":"source",isValidConnection:C,doc:b,lib:O,flowId:A,nodeLookup:M});_1=b1.handleDomNode,k=b1.connection,t=XS(!!s,b1.isValid);let c1=M.get(H),D1=c1?i6(c1,H1,E1.Left,!0):T1.from,A1={...T1,from:D1,isValid:t,to:b1.toHandle&&t?t8({x:b1.toHandle.x,y:b1.toHandle.y},C1):l,toHandle:b1.toHandle,toPosition:t&&b1.toHandle?b1.toHandle.position:VM[H1.position],toNode:b1.toHandle?M.get(b1.toHandle.nodeId):null,pointer:l};N(A1),T1=A1}function f1(z1){if("touches"in z1&&z1.touches.length>0)return;if(p){if((s||_1)&&k&&t)V?.(k);let{inProgress:C1,...b1}=T1,c1={...b1,toPosition:T1.toHandle?T1.toPosition:null};if(S?.(z1,c1),Y)y?.(z1,c1)}w(),cancelAnimationFrame(m),o=!1,t=!1,k=null,_1=null,b.removeEventListener("mousemove",R1),b.removeEventListener("mouseup",f1),b.removeEventListener("touchmove",R1),b.removeEventListener("touchend",f1)}b.addEventListener("mousemove",R1),b.addEventListener("mouseup",f1),b.addEventListener("touchmove",R1),b.addEventListener("touchend",f1)}function BT(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:H,fromType:Y,doc:W,lib:L,flowId:M,isValidConnection:O=LT,nodeLookup:T}){let A=Y==="target",R=U?W.querySelector(`.${L}-flow__handle[data-id="${M}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:w,y:P}=_4(Q),V=W.elementFromPoint(w,P),S=V?.classList.contains(`${L}-flow__handle`)?V:R,C={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let y=WT(void 0,S),N=S.getAttribute("data-nodeid"),v=S.getAttribute("data-handleid"),D=S.classList.contains("connectable"),x=S.classList.contains("connectableend");if(!N||!y)return C;let E={source:A?N:K,sourceHandle:A?v:H,target:A?K:N,targetHandle:A?H:v};C.connection=E;let b=D&&x&&(Z===l6.Strict?A&&y==="source"||!A&&y==="target":N!==K||v!==H);C.isValid=b&&O(E),C.toHandle=zT(N,y,v,T,Z,!0)}return C}var _U={onPointerDown:KS,isValid:BT};function AT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let H=P2(Q);function Y({translateExtent:L,width:M,height:O,zoomStep:T=1,pannable:A=!0,zoomable:R=!0,inversePan:w=!1}){let P=(N)=>{if(N.sourceEvent.type!=="wheel"||!U)return;let v=Z(),D=N.sourceEvent.ctrlKey&&N9()?10:1,x=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?0.05:N.sourceEvent.deltaMode?1:0.002)*T,E=v[2]*Math.pow(2,x*D);U.scaleTo(E)},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 D=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],x=[D[0]-V[0],D[1]-V[1]];V=D;let E=K()*Math.max(v[2],Math.log(v[2]))*(w?-1:1),u={x:v[0]-x[0]*E,y:v[1]-x[1]*E},b=[[0,0],[M,O]];U.setViewportConstrained({x:u.x,y:u.y,zoom:v[2]},b,L)},y=EJ().on("start",S).on("zoom",A?C:null).on("zoom.wheel",R?P:null);H.call(y,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:a2}}var JU=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),OK=({x:Q,y:U,zoom:Z})=>d8.translate(Q,U).scale(Z),c6=(Q,U)=>Q.target.closest(`.${U}`),MT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),HS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,IK=(Q,U=0,Z=HS,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(Z).on("end",K):Q},TT=(Q)=>{let U=Q.ctrlKey&&N9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function YS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:L,onPanZoom:M,onPanZoomEnd:O}){return(T)=>{if(c6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(T.ctrlKey&&W){let S=a2(T),C=TT(T),y=A*Math.pow(2,C);K.scaleTo(Z,y,S,T);return}let R=T.deltaMode===1?20:1,w=H===h3.Vertical?0:T.deltaX*R,P=H===h3.Horizontal?0:T.deltaY*R;if(!N9()&&T.shiftKey&&H!==h3.Vertical)w=T.deltaY*R,P=0;K.translateBy(Z,-(w/A)*Y,-(P/A)*Y,{internal:!0});let V=JU(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,L?.(T,V);else M?.(T,V);Q.panScrollTimeout=setTimeout(()=>{O?.(T,V),Q.isPanScrolling=!1},150)}}function zS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,H){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,L=c6(K,Q);if(K.ctrlKey&&Y&&L)K.preventDefault();if(W||L)return null;K.preventDefault(),Z.call(this,K,H)}}function WS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let H=JU(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 LS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&MT(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,JU(Y.transform))}}function BS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&MT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let L=JU(W.transform);Q.prevViewport=L,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,L)},Z?150:0)}}}function AS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:L,noWheelClassName:M,noPanClassName:O,lib:T,connectionInProgress:A}){return(R)=>{let w=U||Z,P=K&&R.ctrlKey,V=R.type==="wheel";if(R.button===1&&R.type==="mousedown"&&(c6(R,`${T}-flow__node`)||c6(R,`${T}-flow__edge`)||c6(R,`${T}-flow__selection`)||c6(R,`${T}-flow__nodesselection`)))return!0;if(!H&&!w&&!Y&&!W&&!K)return!1;if(L)return!1;if(A&&!V)return!1;if(c6(R,M)&&V)return!1;if(c6(R,O)&&(!V||Y&&V&&!U))return!1;if(!K&&R.ctrlKey&&V)return!1;if(!K&&R.type==="touchstart"&&R.touches?.length>1)return R.preventDefault(),!1;if(!w&&!Y&&!P&&V)return!1;if(!H&&(R.type==="mousedown"||R.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(R.button)&&R.type==="mousedown")return!1;let S=Array.isArray(H)&&H.includes(R.button)||!R.button||R.button<=1;return(!R.ctrlKey||V||Q)&&S}}function RT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:L,onDraggingChange:M}){let O={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},T=Q.getBoundingClientRect(),A=[[0,0],[T.width,T.height]];(typeof ResizeObserver<"u"?new ResizeObserver((Q1)=>{let h=Q1[0];if(h)A=[[0,0],[h.contentRect.width,h.contentRect.height]]}):null)?.observe(Q);let w=EJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(K),P=P2(Q).call(w);v({x:H.x,y:H.y,zoom:R9(H.zoom,U,Z)},[[0,0],[T.width,T.height]],K);let V=P.on("wheel.zoom"),S=P.on("dblclick.zoom");w.wheelDelta(TT);async function C(Q1,h){if(P)return new Promise((g)=>{w?.interpolate(h?.interpolate==="linear"?J3:l8).transform(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}function y({noWheelClassName:Q1,noPanClassName:h,onPaneContextMenu:g,userSelectionActive:p,panOnScroll:c,panOnDrag:l,panOnScrollMode:o,panOnScrollSpeed:k,preventScrolling:t,zoomOnPinch:_1,zoomOnScroll:a,zoomOnDoubleClick:H1,panActivationKeyPressed:O1=!1,zoomActivationKeyPressed:L1,lib:T1,onTransformChange:G1,connectionInProgress:R1,paneClickDistance:f1,selectionOnDrag:z1}){if(p&&!O.isZoomingOrPanning)N();let C1=c&&!L1&&!p;w.clickDistance(z1?1/0:!e5(f1)||f1<0?0:f1);let b1=C1?YS({zoomPanValues:O,noWheelClassName:Q1,d3Selection:P,d3Zoom:w,panOnScrollMode:o,panOnScrollSpeed:k,zoomOnPinch:_1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:L}):zS({noWheelClassName:Q1,preventScrolling:t,d3ZoomHandler:V});P.on("wheel.zoom",b1,{passive:!1});let c1=WS({zoomPanValues:O,onDraggingChange:M,onPanZoomStart:W});w.on("start",c1);let D1=LS({zoomPanValues:O,panOnDrag:l,onPaneContextMenu:!!g,onPanZoom:Y,onTransformChange:G1});w.on("zoom",D1);let A1=BS({zoomPanValues:O,panOnDrag:l,panOnScroll:c,onPaneContextMenu:g,onPanZoomEnd:L,onDraggingChange:M});w.on("end",A1);let e1=AS({panActivationKeyPressed:O1,zoomActivationKeyPressed:L1,panOnDrag:l,zoomOnScroll:a,panOnScroll:c,zoomOnDoubleClick:H1,zoomOnPinch:_1,userSelectionActive:p,noPanClassName:h,noWheelClassName:Q1,lib:T1,connectionInProgress:R1});if(w.filter(e1),H1)P.on("dblclick.zoom",S);else P.on("dblclick.zoom",null)}function N(){w.on("zoom",null)}async function v(Q1,h,g){let p=OK(Q1),c=w?.constrain()(p,h,g);if(c)await C(c);return c}async function D(Q1,h){let g=OK(Q1);return await C(g,h),g}function x(Q1){if(P){let h=OK(Q1),g=P.property("__zoom");if(g.k!==Q1.zoom||g.x!==Q1.x||g.y!==Q1.y)w?.transform(P,h,null,{sync:!0})}}function E(){let Q1=P?bJ(P.node()):{x:0,y:0,k:1};return{x:Q1.x,y:Q1.y,zoom:Q1.k}}async function u(Q1,h){if(P)return new Promise((g)=>{w?.interpolate(h?.interpolate==="linear"?J3:l8).scaleTo(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}async function b(Q1,h){if(P)return new Promise((g)=>{w?.interpolate(h?.interpolate==="linear"?J3:l8).scaleBy(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}function m(Q1){w?.scaleExtent(Q1)}function s(Q1){w?.translateExtent(Q1)}function U1(Q1){let h=!e5(Q1)||Q1<0?0:Q1;w?.clickDistance(h)}return{update:y,destroy:N,setViewport:D,setViewportConstrained:v,getViewport:E,scaleTo:u,scaleBy:b,setScaleExtent:m,setTranslateExtent:s,syncViewport:x,setClickDistance:U1}}var x3;(function(Q){Q.Line="line",Q.Handle="handle"})(x3||(x3={}));var OT=["top-left","top-right","bottom-left","bottom-right"],IT=["top","right","bottom","left"];function MS({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:H,affectsY:Y}){let W=Q-U,L=Z-K,M=[W>0?1:W<0?-1:0,L>0?1:L<0?-1:0];if(W&&H)M[0]=M[0]*-1;if(L&&Y)M[1]=M[1]*-1;return M}function cM(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 g6(Q,U){return Math.max(0,U-Q)}function p6(Q,U){return Math.max(0,Q-U)}function gq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function lM(Q,U){return Q?!U:U}function TS(Q,U,Z,K,H,Y,W,L){let{affectsX:M,affectsY:O}=U,{isHorizontal:T,isVertical:A}=U,R=T&&A,{xSnapped:w,ySnapped:P}=Z,{minWidth:V,maxWidth:S,minHeight:C,maxHeight:y}=K,{x:N,y:v,width:D,height:x,aspectRatio:E}=Q,u=Math.floor(T?w-Q.pointerX:0),b=Math.floor(A?P-Q.pointerY:0),m=D+(M?-u:u),s=x+(O?-b:b),U1=-Y[0]*D,Q1=-Y[1]*x,h=gq(m,V,S),g=gq(s,C,y);if(W){let l=0,o=0;if(M&&u<0)l=g6(N+u+U1,W[0][0]);else if(!M&&u>0)l=p6(N+m+U1,W[1][0]);if(O&&b<0)o=g6(v+b+Q1,W[0][1]);else if(!O&&b>0)o=p6(v+s+Q1,W[1][1]);h=Math.max(h,l),g=Math.max(g,o)}if(L){let l=0,o=0;if(M&&u>0)l=p6(N+u,L[0][0]);else if(!M&&u<0)l=g6(N+m,L[1][0]);if(O&&b>0)o=p6(v+b,L[0][1]);else if(!O&&b<0)o=g6(v+s,L[1][1]);h=Math.max(h,l),g=Math.max(g,o)}if(H){if(T){let l=gq(m/E,C,y)*E;if(h=Math.max(h,l),W){let o=0;if(!M&&!O||M&&!O&&R)o=p6(v+Q1+m/E,W[1][1])*E;else o=g6(v+Q1+(M?u:-u)/E,W[0][1])*E;h=Math.max(h,o)}if(L){let o=0;if(!M&&!O||M&&!O&&R)o=g6(v+m/E,L[1][1])*E;else o=p6(v+(M?u:-u)/E,L[0][1])*E;h=Math.max(h,o)}}if(A){let l=gq(s*E,V,S)/E;if(g=Math.max(g,l),W){let o=0;if(!M&&!O||O&&!M&&R)o=p6(N+s*E+U1,W[1][0])/E;else o=g6(N+(O?b:-b)*E+U1,W[0][0])/E;g=Math.max(g,o)}if(L){let o=0;if(!M&&!O||O&&!M&&R)o=g6(N+s*E,L[1][0])/E;else o=p6(N+(O?b:-b)*E,L[0][0])/E;g=Math.max(g,o)}}}if(b=b+(b<0?g:-g),u=u+(u<0?h:-h),H)if(R)if(m>s*E)b=(lM(M,O)?-u:u)/E;else u=(lM(M,O)?-b:b)*E;else if(T)b=u/E,O=M;else u=b*E,M=O;let p=M?N+u:N,c=O?v+b:v;return{width:D+(M?-u:u),height:x+(O?-b:b),x:Y[0]*u*(!M?1:-1)+p,y:Y[1]*b*(!O?1:-1)+c}}var wT={width:0,height:0,x:0,y:0},RS={...wT,pointerX:0,pointerY:0,aspectRatio:1};function OS(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,L=Z[0]*Y,M=Z[1]*W;return[[K-L,H-M],[K+Y-L,H+W-M]]}function PT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:H}){let Y=P2(Q),W={controlDirection:cM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function L({controlPosition:O,boundaries:T,keepAspectRatio:A,resizeDirection:R,onResizeStart:w,onResize:P,onResizeEnd:V,shouldResize:S}){let C={...wT},y={...RS};W={boundaries:T,resizeDirection:R,keepAspectRatio:A,controlDirection:cM(O)};let N=void 0,v=null,D=[],x=void 0,E=void 0,u=void 0,b=TJ().on("start",(m)=>{let{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,paneDomNode:p}=Z();if(N=s.get(U),!N)return;v=p?.getBoundingClientRect()??null;let{xSnapped:c,ySnapped:l}=hJ(m.sourceEvent,{transform:U1,snapGrid:Q1,snapToGrid:h,containerBounds:v});if(C={width:N.measured.width??0,height:N.measured.height??0,x:N.position.x??0,y:N.position.y??0},y={...C,pointerX:c,pointerY:l,aspectRatio:C.width/C.height},x=void 0,E=o8(N.extent)?N.extent:void 0,N.parentId&&(N.extent==="parent"||N.expandParent))x=s.get(N.parentId);if(x&&N.extent==="parent")E=[[0,0],[x.measured.width,x.measured.height]];D=[],u=void 0;for(let[o,k]of s)if(k.parentId===U){if(D.push({id:o,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let t=OS(k,N,k.origin??g);if(u)u=[[Math.min(t[0][0],u[0][0]),Math.min(t[0][1],u[0][1])],[Math.max(t[1][0],u[1][0]),Math.max(t[1][1],u[1][1])]];else u=t}}w?.(m,{...C})}).on("drag",(m)=>{let{transform:s,snapGrid:U1,snapToGrid:Q1,nodeOrigin:h}=Z(),g=hJ(m.sourceEvent,{transform:s,snapGrid:U1,snapToGrid:Q1,containerBounds:v}),p=[];if(!N)return;let{x:c,y:l,width:o,height:k}=C,t={},_1=N.origin??h,{width:a,height:H1,x:O1,y:L1}=TS(y,W.controlDirection,g,W.boundaries,W.keepAspectRatio,_1,E,u),T1=a!==o,G1=H1!==k,R1=O1!==c&&T1,f1=L1!==l&&G1;if(!R1&&!f1&&!T1&&!G1)return;let z1={prevValues:{...C},startX:y.x,startY:y.y,childNodes:D.map((D1)=>({...D1,position:{...D1.position}}))};if(R1||f1||_1[0]===1||_1[1]===1){if(t.x=R1?O1:C.x,t.y=f1?L1:C.y,C.x=t.x,C.y=t.y,D.length>0){let D1=O1-c,A1=L1-l;for(let e1 of D)e1.position={x:e1.position.x-D1+_1[0]*(a-o),y:e1.position.y-A1+_1[1]*(H1-k)},p.push(e1)}}if(T1||G1)t.width=T1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?a:C.width,t.height=G1&&(!W.resizeDirection||W.resizeDirection==="vertical")?H1:C.height,C.width=t.width,C.height=t.height;if(x&&N.expandParent){let D1=_1[0]*(t.width??0);if(t.x&&t.x<D1)C.x=D1,y.x=y.x-(t.x-D1);let A1=_1[1]*(t.height??0);if(t.y&&t.y<A1)C.y=A1,y.y=y.y-(t.y-A1)}let C1=MS({width:C.width,prevWidth:o,height:C.height,prevHeight:k,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),b1={...C,direction:C1};if(S?.(m,b1)===!1){C=z1.prevValues,y.x=z1.startX,y.y=z1.startY,D.forEach((D1,A1)=>{D1.position=z1.childNodes[A1].position});return}P?.(m,b1),K(t,p)}).on("end",(m)=>{V?.(m,{...C}),H?.({...C})});Y.call(b)}function M(){Y.on(".drag",null)}return{update:L,destroy:M}}var jT=s0(B4(),1),VT=s0(CT(),1);var fT=(Q)=>{let U,Z=new Set,K=(T,A)=>{let R=typeof T==="function"?T(U):T;if(!Object.is(R,U)){let w=U;U=(A!=null?A:typeof R!=="object"||R===null)?R:Object.assign({},U,R),Z.forEach((P)=>P(U,w))}},H=()=>U,M={setState:K,getState:H,getInitialState:()=>O,subscribe:(T)=>{return Z.add(T),()=>Z.delete(T)},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()}},O=U=Q(K,H,M);return M},ST=(Q)=>Q?fT(Q):fT;var{useDebugValue:PS}=jT.default,{useSyncExternalStoreWithSelector:NS}=VT.default,CS=(Q)=>Q;function rK(Q,U=CS,Z){let K=NS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return PS(K),K}var vT=(Q,U)=>{let Z=ST(Q),K=(H,Y=U)=>rK(Z,H,Y);return Object.assign(K,Z),K},yT=(Q,U)=>Q?vT(Q,U):vT;function i0(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 GR=s0(iF(),1),GU=W1.createContext(null),fS=GU.Provider,ZR=F5.error001("react");function L0(Q,U){let Z=W1.useContext(GU);if(Z===null)throw Error(ZR);return rK(Z,Q,U)}function d0(){let Q=W1.useContext(GU);if(Q===null)throw Error(ZR);return W1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var kT={display:"none"},SS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},FR="react-flow__node-desc",XR="react-flow__edge-desc",vS="react-flow__aria-live",jS=(Q)=>Q.ariaLiveMessage,VS=(Q)=>Q.ariaLabelConfig;function yS({rfId:Q}){let U=L0(jS);return K1.jsx("div",{id:`${vS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:SS,children:U})}function kS({rfId:Q,disableKeyboardA11y:U}){let Z=L0(VS);return K1.jsxs(K1.Fragment,{children:[K1.jsx("div",{id:`${FR}-${Q}`,style:kT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),K1.jsx("div",{id:`${XR}-${Q}`,style:kT,children:Z["edge.a11yDescription.default"]}),!U&&K1.jsx(yS,{rfId:Q})]})}var q3=W1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...H},Y)=>{let W=`${Q}`.split("-");return K1.jsx("div",{className:_2(["react-flow__panel",Z,...W]),style:K,ref:Y,...H,children:U})});q3.displayName="Panel";var DT="https://reactflow.dev/attribution";function DS({proOptions:Q,position:U="bottom-right"}){if(W1.useEffect(()=>{eM("react")},[]),Q?.hideAttribution)return null;return K1.jsx(q3,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${DT}`,children:K1.jsx("a",{href:DT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var uS=(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}},$U=(Q)=>Q.id;function bS(Q,U){return i0(Q.selectedNodes.map($U),U.selectedNodes.map($U))&&i0(Q.selectedEdges.map($U),U.selectedEdges.map($U))}function ES({onSelectionChange:Q}){let U=d0(),{selectedNodes:Z,selectedEdges:K}=L0(uS,bS);return W1.useEffect(()=>{let H={nodes:Z,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,K,Q]),null}var hS=(Q)=>!!Q.onSelectionChangeHandlers;function xS({onSelectionChange:Q}){let U=L0(hS);if(Q||U)return K1.jsx(ES,{onSelectionChange:Q});return null}var KR=[0,0],mS={x:0,y:0,zoom:1},gS=["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"],uT=[...gS,"rfId"],pS=(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}),bT={translateExtent:O9,nodeOrigin:KR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function cS(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:L,setDefaultNodesAndEdges:M}=L0(pS,i0),O=d0();W1.useEffect(()=>{return M(Q.defaultNodes,Q.defaultEdges),()=>{T.current=bT,L()}},[]);let T=W1.useRef(bT);return W1.useEffect(()=>{for(let A of uT){let R=Q[A],w=T.current[A];if(R===w)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(R);else if(A==="edges")Z(R);else if(A==="minZoom")K(R);else if(A==="maxZoom")H(R);else if(A==="translateExtent")Y(R);else if(A==="nodeExtent")W(R);else if(A==="ariaLabelConfig")O.setState({ariaLabelConfig:nM(R)});else if(A==="fitView")O.setState({fitViewQueued:R});else if(A==="fitViewOptions")O.setState({fitViewOptions:R});else O.setState({[A]:R})}T.current=Q},uT.map((A)=>Q[A])),null}function ET(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function lS(Q){let[U,Z]=W1.useState(Q==="system"?null:Q);return W1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=ET(),H=()=>Z(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:ET()?.matches?"dark":"light"}var hT=typeof document<"u"?document:null;function cJ(Q=null,U={target:hT,actInsideInputWithModifier:!0}){let[Z,K]=W1.useState(!1),H=W1.useRef(!1),Y=W1.useRef(new Set([])),[W,L]=W1.useMemo(()=>{if(Q!==null){let O=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
240
+ <%s key={someKey} {...props} />`,a,B1,T1,B1),o[B1+a]=!0)}if(B1=null,_1!==void 0&&(Z(_1),B1=""+_1),W(t)&&(Z(t.key),B1=""+t.key),"key"in t){_1={};for(var G1 in t)G1!=="key"&&(_1[G1]=t[G1])}else _1=t;return B1&&L(_1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,B1,_1,H(),H1,O1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===u&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$typeof===I}var I=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"),y=Symbol.for("react.consumer"),N=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),s=m8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=Object.prototype.hasOwnProperty,Q1=Array.isArray,h=console.createTask?console.createTask:function(){return null};m8={react_stack_bottom_frame:function(k){return k()}};var g,p={},c=m8.react_stack_bottom_frame.bind(m8,Y)(),l=h(K(Y)),o={};CN.Fragment=V,CN.jsx=function(k,t,_1){var a=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,!1,a?Error("react-stack-top-frame"):c,a?h(K(k)):l)},CN.jsxs=function(k,t,_1){var a=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,!0,a?Error("react-stack-top-frame"):c,a?h(K(k)):l)}})()});var NT=_3((IS)=>{var b5=t0(M4());(function(){function Q(R,I){return R===I&&(R!==0||1/R===1/I)||R!==R&&I!==I}function U(R,I){O||b5.startTransition===void 0||(O=!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=I();if(!T){var V=I();H(P,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}V=Y({inst:{value:P,getSnapshot:I}});var S=V[0].inst,C=V[1];return L(function(){S.value=P,S.getSnapshot=I,Z(S)&&C({inst:S})},[R,P,I]),W(function(){return Z(S)&&C({inst:S}),R(function(){Z(S)&&C({inst:S})})},[R]),M(P),P}function Z(R){var I=R.getSnapshot;R=R.value;try{var P=I();return!H(R,P)}catch(V){return!0}}function K(R,I){return I()}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=b5.useState,W=b5.useEffect,L=b5.useLayoutEffect,M=b5.useDebugValue,O=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;IS.useSyncExternalStore=b5.useSyncExternalStore!==void 0?b5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var CT=_3((wS)=>{var p3=t0(M4());(function(){function Q(M,O){return M===O&&(M!==0||1/M===1/O)||M!==M&&O!==O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=NT(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=p3.useRef,Y=p3.useEffect,W=p3.useMemo,L=p3.useDebugValue;wS.useSyncExternalStoreWithSelector=function(M,O,T,A,R){var I=H(null);if(I.current===null){var P={hasValue:!1,value:null};I.current=P}else P=I.current;I=W(function(){function S(D){if(!C){if(C=!0,y=D,D=A(D),R!==void 0&&P.hasValue){var x=P.value;if(R(x,D))return N=x}return N=D}if(x=N,Z(y,D))return x;var E=A(D);if(R!==void 0&&R(x,E))return y=D,x;return y=D,N=E}var C=!1,y,N,j=T===void 0?null:T;return[function(){return S(O())},j===null?void 0:function(){return S(j())}]},[O,T,A,R]);var V=K(M,I[0],I[1]);return Y(function(){P.hasValue=!0,P.value=V},[V]),L(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var vO=t0(EA(),1);var b2=t0(M4(),1);var hA={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=t0(E8(),1),ON="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function HJ({href:Q,onClick:U}){return c1.jsxDEV("h1",{children:c1.jsxDEV("a",{href:Q,onClick:U,children:[c1.jsxDEV("img",{src:ON,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 u3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function mA(Q,U,Z=0,K=""){let[H,Y]=b2.useState({state:"loading"});return b2.useEffect(()=>{Y({state:"loading"})},[K,U]),b2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let L=await Q(U),M=L.ok?{state:"ok",data:await L.json()}:{state:"error",status:L.status,error:await u3(L)};if(W)Y(M)}catch(L){if(W)Y({state:"error",status:0,error:String(L)})}})(),()=>{W=!1}},[K,U,Z]),H}function a2({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return c1.jsxDEV(IN,{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 IN({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 y0({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 h8=(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 i0(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 x8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,wN={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"},t1=(Q)=>wN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function G2({vendor:Q}){let U=hA[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):t1(Q).charAt(0)},void 0,!1,void 0,this)}var xA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},PN="volter.theme",tF=()=>{try{let Q=localStorage.getItem(PN);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Aq(Q=tF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function gA(){return b2.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 u5({open:Q,onClose:U,title:Z,children:K,footer:H,wide:Y}){let W=b2.useRef(null),L=b2.useId();return b2.useEffect(()=>{let M=W.current;if(!M)return;if(Q&&!M.open){M.showModal();let O=M.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(O?.focus(),O instanceof HTMLInputElement&&O.value&&/^(text|search|email|url)$/.test(O.type))O.select()}if(!Q&&M.open)M.close()},[Q]),c1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":L,onClose:U,onCancel:(M)=>{M.preventDefault(),U()},onMouseDown:(M)=>{if(M.target===W.current)U()},children:Q?c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("div",{className:"dialog-head",children:[c1.jsxDEV("h2",{id:L,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 J3(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(rF,{detail:{ask:Q,resolve:U}}))})}function pA(){let[Q,U]=b2.useState(null),[Z,K]=b2.useState("");b2.useEffect(()=>{let L=(M)=>{K(""),U(M.detail)};return window.addEventListener(rF,L),()=>window.removeEventListener(rF,L)},[]);let H=(L)=>{Q?.resolve(L),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return c1.jsxDEV(u5,{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:(L)=>K(L.target.value),onKeyDown:(L)=>{if(L.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 J2(Q,U="ok"){window.dispatchEvent(new CustomEvent(aF,{detail:{text:Q,kind:U}}))}function cA(){let[Q,U]=b2.useState([]);return b2.useEffect(()=>{let Z=0,K=(H)=>{let{text:Y,kind:W}=H.detail,L=++Z;if(U((M)=>[...M.slice(-3),{id:L,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((M)=>M.filter((O)=>O.id!==L)),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]=b2.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),J2(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>J2("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 lA({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:xA,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)=>{xA(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 X9({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 iA(){return b2.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")NN()};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 NN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var F1=t0(M4(),1);var K1=t0(dA(),1),L1=t0(M4(),1);function $2(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=$2(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var fN={value:()=>{}};function aA(){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 Mq(Z)}function Mq(Q){this._=Q}function SN(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}})}Mq.prototype=aA.prototype={constructor:Mq,on:function(Q,U){var Z=this._,K=SN(Q+"",Z),H,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((H=(Q=K[Y]).type)&&(H=jN(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]=rA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=rA(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 Mq(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 jN(Q,U){for(var Z=0,K=Q.length,H;Z<K;++Z)if((H=Q[Z]).name===U)return H.value}function rA(Q,U,Z){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=fN,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var g8=aA;function K9(Q){return function(){return this.matches(Q)}}function Tq(Q){return function(U){return U.matches(Q)}}var Rq="http://www.w3.org/1999/xhtml",nF={svg:"http://www.w3.org/2000/svg",xhtml:Rq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $3(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 s2(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 vN(){}function m6(Q){return Q==null?vN:function(){return this.querySelector(Q)}}function _X(Q){if(typeof Q!=="function")Q=m6(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,L=K[H]=Array(W),M,O,T=0;T<W;++T)if((M=Y[T])&&(O=Q.call(M,M.__data__,T,Y))){if("__data__"in M)O.__data__=M.__data__;L[T]=O}return new Z2(K,this._parents)}function JX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function VN(){return[]}function H9(Q){return Q==null?VN:function(){return this.querySelectorAll(Q)}}function yN(Q){return function(){return JX(Q.apply(this,arguments))}}function $X(Q){if(typeof Q==="function")Q=yN(Q);else Q=H9(Q);for(var U=this._groups,Z=U.length,K=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])K.push(Q.call(M,M.__data__,O,W)),H.push(M);return new Z2(K,H)}var kN=Array.prototype.find;function DN(Q){return function(){return kN.call(this.children,Q)}}function uN(){return this.firstElementChild}function QX(Q){return this.select(Q==null?uN:DN(typeof Q==="function"?Q:Tq(Q)))}var bN=Array.prototype.filter;function EN(){return Array.from(this.children)}function hN(Q){return function(){return bN.call(this.children,Q)}}function qX(Q){return this.selectAll(Q==null?EN:hN(typeof Q==="function"?Q:Tq(Q)))}function UX(Q){if(typeof Q!=="function")Q=K9(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,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new Z2(K,this._parents)}function YJ(Q){return Array(Q.length)}function GX(){return new Z2(this._enter||this._groups.map(YJ),this._parents)}function zJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}zJ.prototype={constructor:zJ,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 xN(Q,U,Z,K,H,Y){var W=0,L,M=U.length,O=Y.length;for(;W<O;++W)if(L=U[W])L.__data__=Y[W],K[W]=L;else Z[W]=new zJ(Q,Y[W]);for(;W<M;++W)if(L=U[W])H[W]=L}function mN(Q,U,Z,K,H,Y,W){var L,M,O=new Map,T=U.length,A=Y.length,R=Array(T),I;for(L=0;L<T;++L)if(M=U[L])if(R[L]=I=W.call(M,M.__data__,L,U)+"",O.has(I))H[L]=M;else O.set(I,M);for(L=0;L<A;++L)if(I=W.call(Q,Y[L],L,Y)+"",M=O.get(I))K[L]=M,M.__data__=Y[L],O.delete(I);else Z[L]=new zJ(Q,Y[L]);for(L=0;L<T;++L)if((M=U[L])&&O.get(R[L])===M)H[L]=M}function gN(Q){return Q.__data__}function FX(Q,U){if(!arguments.length)return Array.from(this,gN);var Z=U?mN:xN,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=ZX(Q);for(var Y=H.length,W=Array(Y),L=Array(Y),M=Array(Y),O=0;O<Y;++O){var T=K[O],A=H[O],R=A.length,I=pN(Q.call(T,T&&T.__data__,O,K)),P=I.length,V=L[O]=Array(P),S=W[O]=Array(P),C=M[O]=Array(R);Z(T,A,V,S,C,I,U);for(var y=0,N=0,j,D;y<P;++y)if(j=V[y]){if(y>=N)N=y+1;while(!(D=S[N])&&++N<P);j._next=D||null}}return W=new Z2(W,K),W._enter=L,W._exit=M,W}function pN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function XX(){return new Z2(this._exit||this._groups.map(YJ),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),L=Array(H),M=0;M<W;++M)for(var O=Z[M],T=K[M],A=O.length,R=L[M]=Array(A),I,P=0;P<A;++P)if(I=O[P]||T[P])R[P]=I;for(;M<H;++M)L[M]=Z[M];return new Z2(L,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=cN;function U(A,R){return A&&R?Q(A.__data__,R.__data__):!A-!R}for(var Z=this._groups,K=Z.length,H=Array(K),Y=0;Y<K;++Y){for(var W=Z[Y],L=W.length,M=H[Y]=Array(L),O,T=0;T<L;++T)if(O=W[T])M[T]=O;M.sort(U)}return new Z2(H,this._parents).order()}function cN(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 LX(){return Array.from(this)}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;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,L;Y<W;++Y)if(L=H[Y])Q.call(L,L.__data__,Y,H);return this}function lN(Q){return function(){this.removeAttribute(Q)}}function iN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function dN(Q,U){return function(){this.setAttribute(Q,U)}}function rN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function aN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function sN(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=$3(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?iN:lN:typeof U==="function"?Z.local?sN:aN:Z.local?rN:dN)(Z,U))}function WJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function tN(Q){return function(){this.style.removeProperty(Q)}}function oN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function nN(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?tN:typeof U==="function"?nN:oN)(Q,U,Z==null?"":Z)):g6(this.node(),Q)}function g6(Q,U){return Q.style.getPropertyValue(U)||WJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function eN(Q){return function(){delete this[Q]}}function _C(Q,U){return function(){this[Q]=U}}function JC(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?eN:typeof U==="function"?JC:_C)(Q,U)):this.node()[Q]}function sA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new tA(Q)}function tA(Q){this._node=Q,this._names=sA(Q.getAttribute("class")||"")}tA.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 oA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.add(U[K])}function nA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.remove(U[K])}function $C(Q){return function(){oA(this,Q)}}function QC(Q){return function(){nA(this,Q)}}function qC(Q,U){return function(){(U.apply(this,arguments)?oA:nA)(this,Q)}}function PX(Q,U){var Z=sA(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"?qC:U?$C:QC)(Z,U))}function UC(){this.textContent=""}function GC(Q){return function(){this.textContent=Q}}function ZC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function NX(Q){return arguments.length?this.each(Q==null?UC:(typeof Q==="function"?ZC:GC)(Q)):this.node().textContent}function FC(){this.innerHTML=""}function XC(Q){return function(){this.innerHTML=Q}}function KC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function CX(Q){return arguments.length?this.each(Q==null?FC:(typeof Q==="function"?KC:XC)(Q)):this.node().innerHTML}function HC(){if(this.nextSibling)this.parentNode.appendChild(this)}function fX(){return this.each(HC)}function YC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SX(){return this.each(YC)}function zC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Rq&&U.documentElement.namespaceURI===Rq?U.createElement(Q):U.createElementNS(Z,Q)}}function WC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function LJ(Q){var U=$3(Q);return(U.local?WC:zC)(U)}function jX(Q){var U=typeof Q==="function"?Q:LJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function LC(){return null}function vX(Q,U){var Z=typeof Q==="function"?Q:LJ(Q),K=U==null?LC:typeof U==="function"?U:m6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function BC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function VX(){return this.each(BC)}function AC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function MC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function yX(Q){return this.select(Q?MC:AC)}function kX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function TC(Q){return function(U){Q.call(this,U,this.__data__)}}function RC(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 OC(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 IC(Q,U,Z){return function(){var K=this.__on,H,Y=TC(U);if(K){for(var W=0,L=K.length;W<L;++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=RC(Q+""),H,Y=K.length,W;if(arguments.length<2){var L=this.node().__on;if(L){for(var M=0,O=L.length,T;M<O;++M)for(H=0,T=L[M];H<Y;++H)if((W=K[H]).type===T.type&&W.name===T.name)return T.value}return}L=U?IC:OC;for(H=0;H<Y;++H)this.each(L(K[H],U,Z));return this}function eA(Q,U,Z){var K=WJ(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 wC(Q,U){return function(){return eA(this,Q,U)}}function PC(Q,U){return function(){return eA(this,Q,U.apply(this,arguments))}}function uX(Q,U){return this.each((typeof U==="function"?PC:wC)(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 Z2(Q,U){this._groups=Q,this._parents=U}function _M(){return new Z2([[document.documentElement]],EX)}function NC(){return this}Z2.prototype=_M.prototype={constructor:Z2,select:_X,selectAll:$X,selectChild:QX,selectChildren:qX,filter:UX,data:FX,enter:GX,exit:XX,join:KX,merge:HX,selection:NC,order:YX,sort:zX,call:WX,nodes:LX,node:BX,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 b3=_M;function C2(Q){return typeof Q==="string"?new Z2([[document.querySelector(Q)]],[document.documentElement]):new Z2([[Q]],EX)}var JM={passive:!1},p8={capture:!0,passive:!1};function Oq(Q){Q.stopImmediatePropagation()}function E3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Y9(Q){var U=Q.document.documentElement,Z=C2(Q).on("dragstart.drag",E3,p8);if("onselectstart"in U)Z.on("selectstart.drag",E3,p8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function BJ(Q,U){var Z=Q.document.documentElement,K=C2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",E3,p8),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 AJ=(Q)=>()=>Q;function MJ(Q,{sourceEvent:U,subject:Z,target:K,identifier:H,active:Y,x:W,y:L,dx:M,dy:O,dispatch:T}){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:L,enumerable:!0,configurable:!0},dx:{value:M,enumerable:!0,configurable:!0},dy:{value:O,enumerable:!0,configurable:!0},_:{value:T}})}MJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function CC(Q){return!Q.ctrlKey&&!Q.button}function fC(){return this.parentNode}function SC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function jC(){return navigator.maxTouchPoints||"ontouchstart"in this}function TJ(){var Q=CC,U=fC,Z=SC,K=jC,H={},Y=g8("start","drag","end"),W=0,L,M,O,T,A=0;function R(j){j.on("mousedown.drag",I).filter(K).on("touchstart.drag",S).on("touchmove.drag",C,JM).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function I(j,D){if(T||!Q.call(this,j,D))return;var x=N(this,U.call(this,j,D),j,D,"mouse");if(!x)return;C2(j.view).on("mousemove.drag",P,p8).on("mouseup.drag",V,p8),Y9(j.view),Oq(j),O=!1,L=j.clientX,M=j.clientY,x("start",j)}function P(j){if(E3(j),!O){var D=j.clientX-L,x=j.clientY-M;O=D*D+x*x>A}H.mouse("drag",j)}function V(j){C2(j.view).on("mousemove.drag mouseup.drag",null),BJ(j.view,O),E3(j),H.mouse("end",j)}function S(j,D){if(!Q.call(this,j,D))return;var x=j.changedTouches,E=U.call(this,j,D),u=x.length,b,m;for(b=0;b<u;++b)if(m=N(this,E,j,D,x[b].identifier,x[b]))Oq(j),m("start",j,x[b])}function C(j){var D=j.changedTouches,x=D.length,E,u;for(E=0;E<x;++E)if(u=H[D[E].identifier])E3(j),u("drag",j,D[E])}function y(j){var D=j.changedTouches,x=D.length,E,u;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(E=0;E<x;++E)if(u=H[D[E].identifier])Oq(j),u("end",j,D[E])}function N(j,D,x,E,u,b){var m=Y.copy(),s=s2(b||x,D),U1,Q1,h;if((h=Z.call(j,new MJ("beforestart",{sourceEvent:x,target:R,identifier:u,active:W,x:s[0],y:s[1],dx:0,dy:0,dispatch:m}),E))==null)return;return U1=h.x-s[0]||0,Q1=h.y-s[1]||0,function g(p,c,l){var o=s,k;switch(p){case"start":H[u]=g,k=W++;break;case"end":delete H[u],--W;case"drag":s=s2(l||c,D),k=W;break}m.call(p,j,new MJ(p,{sourceEvent:c,subject:h,target:R,identifier:u,active:k,x:s[0]+U1,y:s[1]+Q1,dx:s[0]-o[0],dy:s[1]-o[1],dispatch:m}),E)}}return R.filter=function(j){return arguments.length?(Q=typeof j==="function"?j:AJ(!!j),R):Q},R.container=function(j){return arguments.length?(U=typeof j==="function"?j:AJ(j),R):U},R.subject=function(j){return arguments.length?(Z=typeof j==="function"?j:AJ(j),R):Z},R.touchable=function(j){return arguments.length?(K=typeof j==="function"?j:AJ(!!j),R):K},R.on=function(){var j=Y.on.apply(Y,arguments);return j===Y?R:j},R.clickDistance=function(j){return arguments.length?(A=(j=+j)*j,R):Math.sqrt(A)},R}function RJ(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 wJ(){}var OJ=0.7,Pq=1/OJ,z9="\\s*([+-]?\\d+)\\s*",IJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Q3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vC=/^#([0-9a-f]{3,8})$/,VC=new RegExp(`^rgb\\(${z9},${z9},${z9}\\)$`),yC=new RegExp(`^rgb\\(${Q3},${Q3},${Q3}\\)$`),kC=new RegExp(`^rgba\\(${z9},${z9},${z9},${IJ}\\)$`),DC=new RegExp(`^rgba\\(${Q3},${Q3},${Q3},${IJ}\\)$`),uC=new RegExp(`^hsl\\(${IJ},${Q3},${Q3}\\)$`),bC=new RegExp(`^hsla\\(${IJ},${Q3},${Q3},${IJ}\\)$`),$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};RJ(wJ,R4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:QM,formatHex:QM,formatHex8:EC,formatHsl:hC,formatRgb:qM,toString:qM});function QM(){return this.rgb().formatHex()}function EC(){return this.rgb().formatHex8()}function hC(){return KM(this).formatHsl()}function qM(){return this.rgb().formatRgb()}function R4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=vC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?UM(U):Z===3?new M5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Iq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Iq(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=VC.exec(Q))?new M5(U[1],U[2],U[3],1):(U=yC.exec(Q))?new M5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=kC.exec(Q))?Iq(U[1],U[2],U[3],U[4]):(U=DC.exec(Q))?Iq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=uC.exec(Q))?FM(U[1],U[2]/100,U[3]/100,1):(U=bC.exec(Q))?FM(U[1],U[2]/100,U[3]/100,U[4]):$M.hasOwnProperty(Q)?UM($M[Q]):Q==="transparent"?new M5(NaN,NaN,NaN,0):null}function UM(Q){return new M5(Q>>16&255,Q>>8&255,Q&255,1)}function Iq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new M5(Q,U,Z,K)}function xC(Q){if(!(Q instanceof wJ))Q=R4(Q);if(!Q)return new M5;return Q=Q.rgb(),new M5(Q.r,Q.g,Q.b,Q.opacity)}function W9(Q,U,Z,K){return arguments.length===1?xC(Q):new M5(Q,U,Z,K==null?1:K)}function M5(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}RJ(M5,W9,hX(wJ,{brighter(Q){return Q=Q==null?Pq:Math.pow(Pq,Q),new M5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?OJ:Math.pow(OJ,Q),new M5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new M5(l8(this.r),l8(this.g),l8(this.b),Nq(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:GM,formatHex:GM,formatHex8:mC,formatRgb:ZM,toString:ZM}));function GM(){return`#${c8(this.r)}${c8(this.g)}${c8(this.b)}`}function mC(){return`#${c8(this.r)}${c8(this.g)}${c8(this.b)}${c8((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZM(){let Q=Nq(this.opacity);return`${Q===1?"rgb(":"rgba("}${l8(this.r)}, ${l8(this.g)}, ${l8(this.b)}${Q===1?")":`, ${Q})`}`}function Nq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function l8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function c8(Q){return Q=l8(Q),(Q<16?"0":"")+Q.toString(16)}function FM(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 T4(Q,U,Z,K)}function KM(Q){if(Q instanceof T4)return new T4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof wJ))Q=R4(Q);if(!Q)return new T4;if(Q instanceof T4)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,L=Y-H,M=(Y+H)/2;if(L){if(U===Y)W=(Z-K)/L+(Z<K)*6;else if(Z===Y)W=(K-U)/L+2;else W=(U-Z)/L+4;L/=M<0.5?Y+H:2-Y-H,W*=60}else L=M>0&&M<1?0:W;return new T4(W,L,M,Q.opacity)}function HM(Q,U,Z,K){return arguments.length===1?KM(Q):new T4(Q,U,Z,K==null?1:K)}function T4(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}RJ(T4,HM,hX(wJ,{brighter(Q){return Q=Q==null?Pq:Math.pow(Pq,Q),new T4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?OJ:Math.pow(OJ,Q),new T4(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 M5(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 T4(XM(this.h),wq(this.s),wq(this.l),Nq(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=Nq(this.opacity);return`${Q===1?"hsl(":"hsla("}${XM(this.h)}, ${wq(this.s)*100}%, ${wq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function XM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function wq(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,L=K<U-1?Q[K+2]:2*Y-H;return mX((Z-K/U)*U,W,H,Y,L)}}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],L=Q[(K+2)%U];return mX((Z-K/U)*U,H,Y,W,L)}}var PJ=(Q)=>()=>Q;function gC(Q,U){return function(Z){return Q+Z*U}}function pC(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 YM(Q){return(Q=+Q)===1?Cq:function(U,Z){return Z-U?pC(U,Z,Q):PJ(isNaN(U)?Z:U)}}function Cq(Q,U){var Z=U-Q;return Z?gC(Q,Z):PJ(isNaN(Q)?U:Q)}var i8=function Q(U){var Z=YM(U);function K(H,Y){var W=Z((H=W9(H)).r,(Y=W9(Y)).r),L=Z(H.g,Y.g),M=Z(H.b,Y.b),O=Cq(H.opacity,Y.opacity);return function(T){return H.r=W(T),H.g=L(T),H.b=M(T),H.opacity=O(T),H+""}}return K.gamma=Q,K}(1);function zM(Q){return function(U){var Z=U.length,K=Array(Z),H=Array(Z),Y=Array(Z),W,L;for(W=0;W<Z;++W)L=W9(U[W]),K[W]=L.r||0,H[W]=L.g||0,Y[W]=L.b||0;return K=Q(K),H=Q(H),Y=Q(Y),L.opacity=1,function(M){return L.r=K(M),L.g=H(M),L.b=Y(M),L+""}}}var cC=zM(gX),lC=zM(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 WM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function LM(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]=q3(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(L){for(W=0;W<K;++W)Y[W]=H[W](L);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 t2(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]=q3(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 iC(Q){return function(){return Q}}function dC(Q){return function(U){return Q(U)+""}}function L9(Q,U){var Z=rX.lastIndex=dX.lastIndex=0,K,H,Y,W=-1,L=[],M=[];Q=Q+"",U=U+"";while((K=rX.exec(Q))&&(H=dX.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),L[W])L[W]+=Y;else L[++W]=Y;if((K=K[0])===(H=H[0]))if(L[W])L[W]+=H;else L[++W]=H;else L[++W]=null,M.push({i:W,x:t2(K,H)});Z=dX.lastIndex}if(Z<U.length)if(Y=U.slice(Z),L[W])L[W]+=Y;else L[++W]=Y;return L.length<2?M[0]?dC(M[0].x):iC(U):(U=M.length,function(O){for(var T=0,A;T<U;++T)L[(A=M[T]).i]=A.x(O);return L.join("")})}function q3(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?PJ(U):(Z==="number"?t2:Z==="string"?(K=R4(U))?(U=K,i8):L9:U instanceof R4?i8:U instanceof Date?lX:WM(U)?cX:Array.isArray(U)?LM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?iX:t2)(Q,U)}var BM=180/Math.PI,fq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sq(Q,U,Z,K,H,Y){var W,L,M;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(M=Q*Z+U*K)Z-=Q*M,K-=U*M;if(L=Math.sqrt(Z*Z+K*K))Z/=L,K/=L,M/=L;if(Q*K<U*Z)Q=-Q,U=-U,M=-M,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*BM,skewX:Math.atan(M)*BM,scaleX:W,scaleY:L}}var jq;function AM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?fq:Sq(U.a,U.b,U.c,U.d,U.e,U.f)}function MM(Q){if(Q==null)return fq;if(!jq)jq=document.createElementNS("http://www.w3.org/2000/svg","g");if(jq.setAttribute("transform",Q),!(Q=jq.transform.baseVal.consolidate()))return fq;return Q=Q.matrix,Sq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function TM(Q,U,Z,K){function H(O){return O.length?O.pop()+" ":""}function Y(O,T,A,R,I,P){if(O!==A||T!==R){var V=I.push("translate(",null,U,null,Z);P.push({i:V-4,x:t2(O,A)},{i:V-2,x:t2(T,R)})}else if(A||R)I.push("translate("+A+U+R+Z)}function W(O,T,A,R){if(O!==T){if(O-T>180)T+=360;else if(T-O>180)O+=360;R.push({i:A.push(H(A)+"rotate(",null,K)-2,x:t2(O,T)})}else if(T)A.push(H(A)+"rotate("+T+K)}function L(O,T,A,R){if(O!==T)R.push({i:A.push(H(A)+"skewX(",null,K)-2,x:t2(O,T)});else if(T)A.push(H(A)+"skewX("+T+K)}function M(O,T,A,R,I,P){if(O!==A||T!==R){var V=I.push(H(I)+"scale(",null,",",null,")");P.push({i:V-4,x:t2(O,A)},{i:V-2,x:t2(T,R)})}else if(A!==1||R!==1)I.push(H(I)+"scale("+A+","+R+")")}return function(O,T){var A=[],R=[];return O=Q(O),T=Q(T),Y(O.translateX,O.translateY,T.translateX,T.translateY,A,R),W(O.rotate,T.rotate,A,R),L(O.skewX,T.skewX,A,R),M(O.scaleX,O.scaleY,T.scaleX,T.scaleY,A,R),O=T=null,function(I){var P=-1,V=R.length,S;while(++P<V)A[(S=R[P]).i]=S.x(I);return A.join("")}}}var aX=TM(AM,"px, ","px)","deg)"),sX=TM(MM,", ",")",")");var rC=0.000000000001;function RM(Q){return((Q=Math.exp(Q))+1/Q)/2}function aC(Q){return((Q=Math.exp(Q))-1/Q)/2}function sC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var d8=function Q(U,Z,K){function H(Y,W){var L=Y[0],M=Y[1],O=Y[2],T=W[0],A=W[1],R=W[2],I=T-L,P=A-M,V=I*I+P*P,S,C;if(V<rC)C=Math.log(R/O)/U,S=function(E){return[L+E*I,M+E*P,O*Math.exp(U*E*C)]};else{var y=Math.sqrt(V),N=(R*R-O*O+K*V)/(2*O*Z*y),j=(R*R-O*O-K*V)/(2*R*Z*y),D=Math.log(Math.sqrt(N*N+1)-N),x=Math.log(Math.sqrt(j*j+1)-j);C=(x-D)/U,S=function(E){var u=E*C,b=RM(D),m=O/(Z*y)*(b*sC(U*u+D)-aC(D));return[L+m*I,M+m*P,O*b/RM(U*u+D)]}}return S.duration=C*1000*U/Math.SQRT2,S}return H.rho=function(Y){var W=Math.max(0.001,+Y),L=W*W,M=L*L;return Q(W,L,M)},H}(Math.SQRT2,2,4);var B9=0,CJ=0,NJ=0,IM=1000,vq,fJ,Vq=0,r8=0,yq=0,SJ=typeof performance==="object"&&performance.now?performance:Date,wM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function vJ(){return r8||(wM(tC),r8=SJ.now()+yq)}function tC(){r8=0}function jJ(){this._call=this._time=this._next=null}jJ.prototype=kq.prototype={constructor:jJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?vJ():+Z)+(U==null?0:+U),!this._next&&fJ!==this){if(fJ)fJ._next=this;else vq=this;fJ=this}this._call=Q,this._time=Z,tX()},stop:function(){if(this._call)this._call=null,this._time=1/0,tX()}};function kq(Q,U,Z){var K=new jJ;return K.restart(Q,U,Z),K}function PM(){vJ(),++B9;var Q=vq,U;while(Q){if((U=r8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--B9}function OM(){r8=(Vq=SJ.now())+yq,B9=CJ=0;try{PM()}finally{B9=0,nC(),r8=0}}function oC(){var Q=SJ.now(),U=Q-Vq;if(U>IM)yq-=U,Vq=Q}function nC(){var Q,U=vq,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:vq=Z;fJ=Q,tX(K)}function tX(Q){if(B9)return;if(CJ)CJ=clearTimeout(CJ);var U=Q-r8;if(U>24){if(Q<1/0)CJ=setTimeout(OM,Q-SJ.now()-yq);if(NJ)NJ=clearInterval(NJ)}else{if(!NJ)Vq=SJ.now(),NJ=setInterval(oC,IM);B9=1,wM(OM)}}function VJ(Q,U,Z){var K=new jJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,Z),K}var eC=g8("start","end","cancel","interrupt"),_f=[],fM=0,NM=1,uq=2,Dq=3,CM=4,bq=5,yJ=6;function h3(Q,U,Z,K,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;Jf(Q,Z,{name:U,index:K,group:H,on:eC,tween:_f,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:fM})}function kJ(Q,U){var Z=f2(Q,U);if(Z.state>fM)throw Error("too late; already scheduled");return Z}function l2(Q,U){var Z=f2(Q,U);if(Z.state>Dq)throw Error("too late; already running");return Z}function f2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function Jf(Q,U,Z){var K=Q.__transition,H;K[U]=Z,Z.timer=kq(Y,0,Z.time);function Y(O){if(Z.state=NM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=O)W(O-Z.delay)}function W(O){var T,A,R,I;if(Z.state!==NM)return M();for(T in K){if(I=K[T],I.name!==Z.name)continue;if(I.state===Dq)return VJ(W);if(I.state===CM)I.state=yJ,I.timer.stop(),I.on.call("interrupt",Q,Q.__data__,I.index,I.group),delete K[T];else if(+T<U)I.state=yJ,I.timer.stop(),I.on.call("cancel",Q,Q.__data__,I.index,I.group),delete K[T]}if(VJ(function(){if(Z.state===Dq)Z.state=CM,Z.timer.restart(L,Z.delay,Z.time),L(O)}),Z.state=uq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==uq)return;Z.state=Dq,H=Array(R=Z.tween.length);for(T=0,A=-1;T<R;++T)if(I=Z.tween[T].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=I;H.length=A+1}function L(O){var T=O<Z.duration?Z.ease.call(null,O/Z.duration):(Z.timer.restart(M),Z.state=bq,1),A=-1,R=H.length;while(++A<R)H[A].call(Q,T);if(Z.state===bq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),M()}function M(){Z.state=yJ,Z.timer.stop(),delete K[U];for(var O in K)return;delete Q.__transition}}function p6(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>uq&&K.state<bq,K.state=yJ,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(){p6(this,Q)})}function $f(Q,U){var Z,K;return function(){var H=l2(this,Q),Y=H.tween;if(Y!==Z){K=Z=Y;for(var W=0,L=K.length;W<L;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}H.tween=K}}function Qf(Q,U,Z){var K,H;if(typeof Z!=="function")throw Error();return function(){var Y=l2(this,Q),W=Y.tween;if(W!==K){H=(K=W).slice();for(var L={name:U,value:Z},M=0,O=H.length;M<O;++M)if(H[M].name===U){H[M]=L;break}if(M===O)H.push(L)}Y.tween=H}}function nX(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=f2(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?$f:Qf)(Z,Q,U))}function A9(Q,U,Z){var K=Q._id;return Q.each(function(){var H=l2(this,K);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return f2(H,K).value[U]}}function DJ(Q,U){var Z;return(typeof U==="number"?t2:U instanceof R4?i8:(Z=R4(U))?(U=Z,i8):L9)(Q,U)}function qf(Q){return function(){this.removeAttribute(Q)}}function Uf(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function Gf(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 Zf(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 Ff(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function Xf(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function eX(Q,U){var Z=$3(Q),K=Z==="transform"?sX:DJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Xf:Ff)(Z,K,A9(this,"attr."+Q,U)):U==null?(Z.local?Uf:qf)(Z):(Z.local?Zf:Gf)(Z,K,U))}function Kf(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Hf(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function Yf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Hf(Q,Y);return Z}return H._value=U,H}function zf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Kf(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=$3(Q);return this.tween(Z,(K.local?Yf:zf)(K,U))}function Wf(Q,U){return function(){kJ(this,Q).delay=+U.apply(this,arguments)}}function Lf(Q,U){return U=+U,function(){kJ(this,Q).delay=U}}function JK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Wf:Lf)(U,Q)):f2(this.node(),U).delay}function Bf(Q,U){return function(){l2(this,Q).duration=+U.apply(this,arguments)}}function Af(Q,U){return U=+U,function(){l2(this,Q).duration=U}}function $K(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Bf:Af)(U,Q)):f2(this.node(),U).duration}function Mf(Q,U){if(typeof U!=="function")throw Error();return function(){l2(this,Q).ease=U}}function QK(Q){var U=this._id;return arguments.length?this.each(Mf(U,Q)):f2(this.node(),U).ease}function Tf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();l2(this,Q).ease=Z}}function qK(Q){if(typeof Q!=="function")throw Error();return this.each(Tf(this._id,Q))}function UK(Q){if(typeof Q!=="function")Q=K9(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,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new F5(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),L=0;L<Y;++L)for(var M=U[L],O=Z[L],T=M.length,A=W[L]=Array(T),R,I=0;I<T;++I)if(R=M[I]||O[I])A[I]=R;for(;L<K;++L)W[L]=U[L];return new F5(W,this._parents,this._name,this._id)}function Rf(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 Of(Q,U,Z){var K,H,Y=Rf(U)?kJ:l2;return function(){var W=Y(this,Q),L=W.on;if(L!==K)(H=(K=L).copy()).on(U,Z);W.on=H}}function ZK(Q,U){var Z=this._id;return arguments.length<2?f2(this.node(),Z).on.on(Q):this.each(Of(Z,Q,U))}function If(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",If(this._id))}function XK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=m6(Q);for(var K=this._groups,H=K.length,Y=Array(H),W=0;W<H;++W)for(var L=K[W],M=L.length,O=Y[W]=Array(M),T,A,R=0;R<M;++R)if((T=L[R])&&(A=Q.call(T,T.__data__,R,L))){if("__data__"in T)A.__data__=T.__data__;O[R]=A,h3(O[R],U,Z,R,O,f2(T,Z))}return new F5(Y,this._parents,U,Z)}function KK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=H9(Q);for(var K=this._groups,H=K.length,Y=[],W=[],L=0;L<H;++L)for(var M=K[L],O=M.length,T,A=0;A<O;++A)if(T=M[A]){for(var R=Q.call(T,T.__data__,A,M),I,P=f2(T,Z),V=0,S=R.length;V<S;++V)if(I=R[V])h3(I,U,Z,V,R,P);Y.push(R),W.push(T)}return new F5(Y,W,U,Z)}var wf=b3.prototype.constructor;function HK(){return new wf(this._groups,this._parents)}function Pf(Q,U){var Z,K,H;return function(){var Y=g6(this,Q),W=(this.style.removeProperty(Q),g6(this,Q));return Y===W?null:Y===Z&&W===K?H:H=U(Z=Y,K=W)}}function SM(Q){return function(){this.style.removeProperty(Q)}}function Nf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=g6(this,Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Cf(Q,U,Z){var K,H,Y;return function(){var W=g6(this,Q),L=Z(this),M=L+"";if(L==null)M=L=(this.style.removeProperty(Q),g6(this,Q));return W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function ff(Q,U){var Z,K,H,Y="style."+U,W="end."+Y,L;return function(){var M=l2(this,Q),O=M.on,T=M.value[Y]==null?L||(L=SM(U)):void 0;if(O!==Z||H!==T)(K=(Z=O).copy()).on(W,H=T);M.on=K}}function YK(Q,U,Z){var K=(Q+="")==="transform"?aX:DJ;return U==null?this.styleTween(Q,Pf(Q,K)).on("end.style."+Q,SM(Q)):typeof U==="function"?this.styleTween(Q,Cf(Q,K,A9(this,"style."+Q,U))).each(ff(this._id,Q)):this.styleTween(Q,Nf(Q,K,U),Z).on("end.style."+Q,null)}function Sf(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function jf(Q,U,Z){var K,H;function Y(){var W=U.apply(this,arguments);if(W!==H)K=(H=W)&&Sf(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,jf(Q,U,Z==null?"":Z))}function vf(Q){return function(){this.textContent=Q}}function Vf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function WK(Q){return this.tween("text",typeof Q==="function"?Vf(A9(this,"text",Q)):vf(Q==null?"":Q+""))}function yf(Q){return function(U){this.textContent=Q.call(this,U)}}function kf(Q){var U,Z;function K(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&yf(H);return U}return K._value=Q,K}function LK(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,kf(Q))}function BK(){var Q=this._name,U=this._id,Z=Eq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O]){var T=f2(M,U);h3(M,Q,Z,O,W,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new F5(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 L={value:W},M={value:function(){if(--H===0)Y()}};if(Z.each(function(){var O=l2(this,K),T=O.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(L),U._.interrupt.push(L),U._.end.push(M);O.on=U}),H===0)Y()})}var Df=0;function F5(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function jM(Q){return b3().transition(Q)}function Eq(){return++Df}var x3=b3.prototype;F5.prototype=jM.prototype={constructor:F5,select:XK,selectAll:KK,selectChild:x3.selectChild,selectChildren:x3.selectChildren,filter:UK,merge:GK,selection:HK,transition:BK,call:x3.call,nodes:x3.nodes,node:x3.node,size:x3.size,empty:x3.empty,each:x3.each,on:ZK,attr:eX,attrTween:_K,style:YK,styleTween:zK,text:WK,textTween:LK,remove:FK,tween:nX,delay:JK,duration:$K,ease:QK,easeVarying:qK,end:AK,[Symbol.iterator]:x3[Symbol.iterator]};function hq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var uf={time:null,delay:0,duration:250,ease:hq};function bf(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 F5)U=Q._id,Q=Q._name;else U=Eq(),(Z=uf).time=vJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])h3(M,Q,U,O,W,Z||bf(M,U));return new F5(K,this._parents,Q,U)}b3.prototype.interrupt=oX;b3.prototype.transition=MK;var uJ=(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 O4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}O4.prototype={constructor:O4,scale:function(Q){return Q===1?this:new O4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new O4(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 a8=new O4(1,0,0);bJ.prototype=O4.prototype;function bJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return a8;return Q.__zoom}function xq(Q){Q.stopImmediatePropagation()}function s8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Ef(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function hf(){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 vM(){return this.__zoom||a8}function xf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function mf(){return navigator.maxTouchPoints||"ontouchstart"in this}function gf(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 EJ(){var Q=Ef,U=hf,Z=gf,K=xf,H=mf,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],L=250,M=d8,O=g8("start","zoom","end"),T,A,R,I=500,P=150,V=0,S=10;function C(h){h.property("__zoom",vM).on("wheel.zoom",u,{passive:!1}).on("mousedown.zoom",b).on("dblclick.zoom",m).filter(H).on("touchstart.zoom",s).on("touchmove.zoom",U1).on("touchend.zoom touchcancel.zoom",Q1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(h,g,p,c){var l=h.selection?h.selection():h;if(l.property("__zoom",vM),h!==l)D(h,g,p,c);else l.interrupt().each(function(){x(this,arguments).event(c).start().zoom(null,typeof g==="function"?g.apply(this,arguments):g).end()})},C.scaleBy=function(h,g,p,c){C.scaleTo(h,function(){var l=this.__zoom.k,o=typeof g==="function"?g.apply(this,arguments):g;return l*o},p,c)},C.scaleTo=function(h,g,p,c){C.transform(h,function(){var l=U.apply(this,arguments),o=this.__zoom,k=p==null?j(l):typeof p==="function"?p.apply(this,arguments):p,t=o.invert(k),_1=typeof g==="function"?g.apply(this,arguments):g;return Z(N(y(o,_1),k,t),l,W)},p,c)},C.translateBy=function(h,g,p,c){C.transform(h,function(){return Z(this.__zoom.translate(typeof g==="function"?g.apply(this,arguments):g,typeof p==="function"?p.apply(this,arguments):p),U.apply(this,arguments),W)},null,c)},C.translateTo=function(h,g,p,c,l){C.transform(h,function(){var o=U.apply(this,arguments),k=this.__zoom,t=c==null?j(o):typeof c==="function"?c.apply(this,arguments):c;return Z(a8.translate(t[0],t[1]).scale(k.k).translate(typeof g==="function"?-g.apply(this,arguments):-g,typeof p==="function"?-p.apply(this,arguments):-p),o,W)},c,l)};function y(h,g){return g=Math.max(Y[0],Math.min(Y[1],g)),g===h.k?h:new O4(g,h.x,h.y)}function N(h,g,p){var c=g[0]-p[0]*h.k,l=g[1]-p[1]*h.k;return c===h.x&&l===h.y?h:new O4(h.k,c,l)}function j(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function D(h,g,p,c){h.on("start.zoom",function(){x(this,arguments).event(c).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(c).end()}).tween("zoom",function(){var l=this,o=arguments,k=x(l,o).event(c),t=U.apply(l,o),_1=p==null?j(t):typeof p==="function"?p.apply(l,o):p,a=Math.max(t[1][0]-t[0][0],t[1][1]-t[0][1]),H1=l.__zoom,O1=typeof g==="function"?g.apply(l,o):g,B1=M(H1.invert(_1).concat(a/H1.k),O1.invert(_1).concat(a/O1.k));return function(T1){if(T1===1)T1=O1;else{var G1=B1(T1),R1=a/G1[2];T1=new O4(R1,_1[0]-G1[0]*R1,_1[1]-G1[1]*R1)}k.zoom(null,T1)}})}function x(h,g,p){return!p&&h.__zooming||new E(h,g)}function E(h,g){this.that=h,this.args=g,this.active=0,this.sourceEvent=null,this.extent=U.apply(h,g),this.taps=0}E.prototype={event:function(h){if(h)this.sourceEvent=h;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(h,g){if(this.mouse&&h!=="mouse")this.mouse[1]=g.invert(this.mouse[0]);if(this.touch0&&h!=="touch")this.touch0[1]=g.invert(this.touch0[0]);if(this.touch1&&h!=="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(h){var g=C2(this.that).datum();O.call(h,this.that,new TK(h,{sourceEvent:this.sourceEvent,target:C,type:h,transform:this.that.__zoom,dispatch:O}),g)}};function u(h,...g){if(!Q.apply(this,arguments))return;var p=x(this,g).event(h),c=this.__zoom,l=Math.max(Y[0],Math.min(Y[1],c.k*Math.pow(2,K.apply(this,arguments)))),o=s2(h);if(p.wheel){if(p.mouse[0][0]!==o[0]||p.mouse[0][1]!==o[1])p.mouse[1]=c.invert(p.mouse[0]=o);clearTimeout(p.wheel)}else if(c.k===l)return;else p.mouse=[o,c.invert(o)],p6(this),p.start();s8(h),p.wheel=setTimeout(k,P),p.zoom("mouse",Z(N(y(c,l),p.mouse[0],p.mouse[1]),p.extent,W));function k(){p.wheel=null,p.end()}}function b(h,...g){if(R||!Q.apply(this,arguments))return;var p=h.currentTarget,c=x(this,g,!0).event(h),l=C2(h.view).on("mousemove.zoom",_1,!0).on("mouseup.zoom",a,!0),o=s2(h,p),k=h.clientX,t=h.clientY;Y9(h.view),xq(h),c.mouse=[o,this.__zoom.invert(o)],p6(this),c.start();function _1(H1){if(s8(H1),!c.moved){var O1=H1.clientX-k,B1=H1.clientY-t;c.moved=O1*O1+B1*B1>V}c.event(H1).zoom("mouse",Z(N(c.that.__zoom,c.mouse[0]=s2(H1,p),c.mouse[1]),c.extent,W))}function a(H1){l.on("mousemove.zoom mouseup.zoom",null),BJ(H1.view,c.moved),s8(H1),c.event(H1).end()}}function m(h,...g){if(!Q.apply(this,arguments))return;var p=this.__zoom,c=s2(h.changedTouches?h.changedTouches[0]:h,this),l=p.invert(c),o=p.k*(h.shiftKey?0.5:2),k=Z(N(y(p,o),c,l),U.apply(this,g),W);if(s8(h),L>0)C2(this).transition().duration(L).call(D,k,c,h);else C2(this).call(C.transform,k,c,h)}function s(h,...g){if(!Q.apply(this,arguments))return;var p=h.touches,c=p.length,l=x(this,g,h.changedTouches.length===c).event(h),o,k,t,_1;xq(h);for(k=0;k<c;++k)if(t=p[k],_1=s2(t,this),_1=[_1,this.__zoom.invert(_1),t.identifier],!l.touch0)l.touch0=_1,o=!0,l.taps=1+!!T;else if(!l.touch1&&l.touch0[2]!==_1[2])l.touch1=_1,l.taps=0;if(T)T=clearTimeout(T);if(o){if(l.taps<2)A=_1[0],T=setTimeout(function(){T=null},I);p6(this),l.start()}}function U1(h,...g){if(!this.__zooming)return;var p=x(this,g).event(h),c=h.changedTouches,l=c.length,o,k,t,_1;s8(h);for(o=0;o<l;++o)if(k=c[o],t=s2(k,this),p.touch0&&p.touch0[2]===k.identifier)p.touch0[0]=t;else if(p.touch1&&p.touch1[2]===k.identifier)p.touch1[0]=t;if(k=p.that.__zoom,p.touch1){var a=p.touch0[0],H1=p.touch0[1],O1=p.touch1[0],B1=p.touch1[1],T1=(T1=O1[0]-a[0])*T1+(T1=O1[1]-a[1])*T1,G1=(G1=B1[0]-H1[0])*G1+(G1=B1[1]-H1[1])*G1;k=y(k,Math.sqrt(T1/G1)),t=[(a[0]+O1[0])/2,(a[1]+O1[1])/2],_1=[(H1[0]+B1[0])/2,(H1[1]+B1[1])/2]}else if(p.touch0)t=p.touch0[0],_1=p.touch0[1];else return;p.zoom("touch",Z(N(k,t,_1),p.extent,W))}function Q1(h,...g){if(!this.__zooming)return;var p=x(this,g).event(h),c=h.changedTouches,l=c.length,o,k;if(xq(h),R)clearTimeout(R);R=setTimeout(function(){R=null},I);for(o=0;o<l;++o)if(k=c[o],p.touch0&&p.touch0[2]===k.identifier)delete p.touch0;else if(p.touch1&&p.touch1[2]===k.identifier)delete p.touch1;if(p.touch1&&!p.touch0)p.touch0=p.touch1,delete p.touch1;if(p.touch0)p.touch0[1]=this.__zoom.invert(p.touch0[0]);else if(p.end(),p.taps===2){if(k=s2(k,this),Math.hypot(A[0]-k[0],A[1]-k[1])<S){var t=C2(this).on("dblclick.zoom");if(t)t.apply(this,arguments)}}}return C.wheelDelta=function(h){return arguments.length?(K=typeof h==="function"?h:uJ(+h),C):K},C.filter=function(h){return arguments.length?(Q=typeof h==="function"?h:uJ(!!h),C):Q},C.touchable=function(h){return arguments.length?(H=typeof h==="function"?h:uJ(!!h),C):H},C.extent=function(h){return arguments.length?(U=typeof h==="function"?h:uJ([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),C):U},C.scaleExtent=function(h){return arguments.length?(Y[0]=+h[0],Y[1]=+h[1],C):[Y[0],Y[1]]},C.translateExtent=function(h){return arguments.length?(W[0][0]=+h[0][0],W[1][0]=+h[1][0],W[0][1]=+h[0][1],W[1][1]=+h[1][1],C):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},C.constrain=function(h){return arguments.length?(Z=h,C):Z},C.duration=function(h){return arguments.length?(L=+h,C):L},C.interpolate=function(h){return arguments.length?(M=h,C):M},C.on=function(){var h=O.on.apply(O,arguments);return h===O?C:h},C.clickDistance=function(h){return arguments.length?(V=(h=+h)*h,C):Math.sqrt(V)},C.tapDistance=function(h){return arguments.length?(S=+h,C):S},C}var X5={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.`},O9=[[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 m3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(m3||(m3={}));var t8;(function(Q){Q.Partial="partial",Q.Full="full"})(t8||(t8={}));var CK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},U3;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(U3||(U3={}));var T9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(T9||(T9={}));var h1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(h1||(h1={}));var VM={[h1.Left]:h1.Right,[h1.Right]:h1.Left,[h1.Top]:h1.Bottom,[h1.Bottom]:h1.Top},fK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),iM=(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 xJ=(Q,U=[0,0])=>{let{width:Z,height:K}=$4(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",L=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)L=W?U.nodeLookup.get(Y):!SK(Y)?U.nodeLookup.get(Y.id):Y;if(!L)return H;return Z=!0,iq(H,pq(L,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?dq(K):{x:0,y:0,width:0,height:0}},_7=(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=iq(Z,pq(H)),K=!0}),K?dq(Z):{x:0,y:0,width:0,height:0}},cq=(Q,U,[Z,K,H]=[0,0,1],Y=!1,W=!1)=>{let L=(U.x-Z)/H,M=(U.y-K)/H,O=U.width/H,T=U.height/H,A=[];for(let R of Q.values()){let{measured:I,selectable:P=!0,hidden:V=!1}=R;if(W&&!P||V)continue;let S=I.width??R.width??R.initialWidth??0,C=I.height??R.height??R.initialHeight??0,{x:y,y:N}=R.internals.positionAbsolute,j=tM(L,M,O,T,y,N,S,C),D=S*C,x=Y&&j>0;if(!R.internals.handleBounds||x||j>=D||R.dragging)A.push(R)}return A},dM=(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 pf(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:L}=$4(H);Y=W>0&&L>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 rM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let L=pf(Q,W),M=_7(L),O=gJ(M,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(O,{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),L=W.parentId?Z.get(W.parentId):void 0,{x:M,y:O}=L?L.internals.positionAbsolute:{x:0,y:0},T=W.origin??K,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!L)Y?.("005",X5.error005());else{let{width:I,height:P}=$4(L);if(I&&P)A=[[M,O],[M+I,O+P]]}else if(L&&e8(W.extent))A=[[W.extent[0][0]+M,W.extent[0][1]+O],[W.extent[1][0]+M,W.extent[1][1]+O]];let R=e8(A)?o8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",X5.error015());return{position:{x:R.x-M+(W.measured.width??0)*T[0],y:R.y-O+(W.measured.height??0)*T[1]},positionAbsolute:R}}async function aM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((R)=>R.id)),W=[];for(let R of Z){if(R.deletable===!1)continue;let I=Y.has(R.id),P=!I&&R.parentId&&W.find((V)=>V.id===R.parentId);if(I||P)W.push(R)}let L=new Set(U.map((R)=>R.id)),M=K.filter((R)=>R.deletable!==!1),T=dM(W,M);for(let R of M)if(L.has(R.id)&&!T.find((P)=>P.id===R.id))T.push(R);if(!H)return{edges:T,nodes:W};let A=await H({nodes:W,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:W}:{edges:[],nodes:[]};return A}var R9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),o8=(Q={x:0,y:0},U,Z)=>({x:R9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:R9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function sM(Q,U,Z){let{width:K,height:H}=$4(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return o8(Q,[[Y,W],[Y+K,W+H]],U)}var yM=(Q,U,Z)=>{if(Q<U)return R9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-R9(Math.abs(Q-Z),1,U)/U;return 0},lq=(Q,U,Z=15,K=40)=>{let H=yM(Q.x,K,U.width-K)*Z,Y=yM(Q.y,K,U.height-K)*Z;return[H,Y]},iq=(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}),dq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),I9=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:xJ(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}},pq=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:xJ(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)=>dq(iq(wK(Q),wK(U))),tM=(Q,U,Z,K,H,Y,W,L)=>{let M=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),O=Math.max(0,Math.min(U+K,Y+L)-Math.max(U,Y));return Math.ceil(M*O)},mJ=(Q,U)=>tM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),yK=(Q)=>_4(Q.width)&&_4(Q.height)&&_4(Q.x)&&_4(Q.y),_4=(Q)=>!isNaN(Q)&&isFinite(Q),kK=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},w9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},P9=({x:Q,y:U},[Z,K,H],Y=!1,W=[1,1])=>{let L={x:(Q-Z)/H,y:(U-K)/H};return Y?w9(L,W):L},n8=({x:Q,y:U},[Z,K,H])=>{return{x:Q*H+Z,y:U*H+K}};function M9(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 cf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=M9(Q,Z),H=M9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=M9(Q.top??Q.y??0,Z),H=M9(Q.bottom??Q.y??0,Z),Y=M9(Q.left??Q.x??0,U),W=M9(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 lf(Q,U,Z,K,H,Y){let{x:W,y:L}=n8(Q,[U,Z,K]),{x:M,y:O}=n8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),T=H-M,A=Y-O;return{left:Math.floor(W),top:Math.floor(L),right:Math.floor(T),bottom:Math.floor(A)}}var gJ=(Q,U,Z,K,H,Y)=>{let W=cf(Y,U,Z),L=(U-W.x)/Q.width,M=(Z-W.y)/Q.height,O=Math.min(L,M),T=R9(O,K,H),A=Q.x+Q.width/2,R=Q.y+Q.height/2,I=U/2-A*T,P=Z/2-R*T,V=lf(Q,I,P,T,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:I-S.left+S.right,y:P-S.top+S.bottom,zoom:T}},N9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function e8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function $4(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 L=W.origin||H;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*L[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*L[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 oM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function nM(Q){return{...NK,...Q||{}}}function df(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 kM=!1;function eM(Q){if(kM)return;kM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!df(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 hJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:H}){let{x:Y,y:W}=J4(Q),L=P9({x:Y-(H?.left??0),y:W-(H?.top??0)},K),{x:M,y:O}=Z?w9(L,U):L;return{xSnapped:M,ySnapped:O,...L}}var rq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),hK=(Q)=>Q?.getRootNode?.()||window?.document,rf=["INPUT","SELECT","TEXTAREA"];function xK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return rf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var mK=(Q)=>("clientX"in Q),J4=(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)}},DM=(Q,U,Z,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let L=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:H,position:W.getAttribute("data-handlepos"),x:(L.left-Z.left)/K,y:(L.top-Z.top)/K,...rq(W)}})};function aq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:L}){let M=Q*0.125+H*0.375+W*0.375+Z*0.125,O=U*0.125+Y*0.375+L*0.375+K*0.125,T=Math.abs(M-Q),A=Math.abs(O-U);return[M,O,T,A]}function mq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function uM({pos:Q,x1:U,y1:Z,x2:K,y2:H,c:Y}){switch(Q){case h1.Left:return[U-mq(U-K,Y),Z];case h1.Right:return[U+mq(K-U,Y),Z];case h1.Top:return[U,Z-mq(Z-H,Y)];case h1.Bottom:return[U,Z+mq(H-Z,Y)]}}function sq({sourceX:Q,sourceY:U,sourcePosition:Z=h1.Bottom,targetX:K,targetY:H,targetPosition:Y=h1.Top,curvature:W=0.25}){let[L,M]=uM({pos:Z,x1:Q,y1:U,x2:K,y2:H,c:W}),[O,T]=uM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:W}),[A,R,I,P]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:L,sourceControlY:M,targetControlX:O,targetControlY:T});return[`M${Q},${U} C${L},${M} ${O},${T} ${K},${H}`,A,R,I,P]}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,L=K<U?K+W:K-W;return[Y,L,H,W]}function _T({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,L=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+L}function JT({sourceNode:Q,targetNode:U,width:Z,height:K,transform:H}){let Y=iq(pq(Q),pq(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 mJ(W,dq(Y))>0}var af=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,sf=(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",X5.error006()),U;let K=Z.getEdgeId||af,H;if(fK(Q))H={...Q};else H={...Q,id:K(Q)};if(sf(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function tq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[H,Y,W,L]=gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,H,Y,W,L]}var bM={[h1.Left]:{x:-1,y:0},[h1.Right]:{x:1,y:0},[h1.Top]:{x:0,y:-1},[h1.Bottom]:{x:0,y:1}},tf=({source:Q,sourcePosition:U=h1.Bottom,target:Z})=>{if(U===h1.Left||U===h1.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}},EM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function of({source:Q,sourcePosition:U=h1.Bottom,target:Z,targetPosition:K=h1.Top,center:H,offset:Y,stepPosition:W}){let L=bM[U],M=bM[K],O={x:Q.x+L.x*Y,y:Q.y+L.y*Y},T={x:Z.x+M.x*Y,y:Z.y+M.y*Y},A=tf({source:O,sourcePosition:U,target:T}),R=A.x!==0?"x":"y",I=A[R],P=[],V,S,C={x:0,y:0},y={x:0,y:0},[,,N,j]=gK({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(L[R]*M[R]===-1){if(R==="x")V=H.x??O.x+(T.x-O.x)*W,S=H.y??(O.y+T.y)/2;else V=H.x??(O.x+T.x)/2,S=H.y??O.y+(T.y-O.y)*W;let u=[{x:V,y:O.y},{x:V,y:T.y}],b=[{x:O.x,y:S},{x:T.x,y:S}];if(L[R]===I)P=R==="x"?u:b;else P=R==="x"?b:u}else{let u=[{x:O.x,y:T.y}],b=[{x:T.x,y:O.y}];if(R==="x")P=L.x===I?b:u;else P=L.y===I?u:b;if(U===K){let h=Math.abs(Q[R]-Z[R]);if(h<=Y){let g=Math.min(Y-1,Y-h);if(L[R]===I)C[R]=(O[R]>Q[R]?-1:1)*g;else y[R]=(T[R]>Z[R]?-1:1)*g}}if(U!==K){let h=R==="x"?"y":"x",g=L[R]===M[h],p=O[h]>T[h],c=O[h]<T[h];if(L[R]===1&&(!g&&p||g&&c)||L[R]!==1&&(!g&&c||g&&p))P=R==="x"?u:b}let m={x:O.x+C.x,y:O.y+C.y},s={x:T.x+y.x,y:T.y+y.y},U1=Math.max(Math.abs(m.x-P[0].x),Math.abs(s.x-P[0].x)),Q1=Math.max(Math.abs(m.y-P[0].y),Math.abs(s.y-P[0].y));if(U1>=Q1)V=(m.x+s.x)/2,S=P[0].y;else V=P[0].x,S=(m.y+s.y)/2}let D={x:O.x+C.x,y:O.y+C.y},x={x:T.x+y.x,y:T.y+y.y};return[[Q,...D.x!==P[0].x||D.y!==P[0].y?[D]:[],...P,...x.x!==P[P.length-1].x||x.y!==P[P.length-1].y?[x]:[],Z],V,S,N,j]}function nf(Q,U,Z,K){let H=Math.min(EM(Q,U)/2,EM(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 O=Q.x<Z.x?-1:1,T=Q.y<Z.y?1:-1;return`L ${Y+H*O},${W}Q ${Y},${W} ${Y},${W+H*T}`}let L=Q.x<Z.x?1:-1,M=Q.y<Z.y?-1:1;return`L ${Y},${W+H*M}Q ${Y},${W} ${Y+H*L},${W}`}function pJ({sourceX:Q,sourceY:U,sourcePosition:Z=h1.Bottom,targetX:K,targetY:H,targetPosition:Y=h1.Top,borderRadius:W=5,centerX:L,centerY:M,offset:O=20,stepPosition:T=0.5}){let[A,R,I,P,V]=of({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:H},targetPosition:Y,center:{x:L,y:M},offset:O,stepPosition:T}),S=`M${A[0].x} ${A[0].y}`;for(let C=1;C<A.length-1;C++)S+=nf(A[C-1],A[C],A[C+1],W);return S+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[S,R,I,P,V]}function hM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function QT(Q){let{sourceNode:U,targetNode:Z}=Q;if(!hM(U)||!hM(Z))return null;let K=U.internals.handleBounds||xM(U.handles),H=Z.internals.handleBounds||xM(Z.handles),Y=mM(K?.source??[],Q.sourceHandle),W=mM(Q.connectionMode===d6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",X5.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let L=Y?.position||h1.Bottom,M=W?.position||h1.Top,O=r6(U,Y,L),T=r6(Z,W,M);return{sourceX:O.x,sourceY:O.y,targetX:T.x,targetY:T.y,sourcePosition:L,targetPosition:M}}function xM(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 r6(Q,U,Z=h1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:L}=U??$4(Q);if(K)return{x:H+W/2,y:Y+L/2};switch(U?.position??Z){case h1.Top:return{x:H+W/2,y:Y};case h1.Right:return{x:H+W,y:Y+L/2};case h1.Bottom:return{x:H+W/2,y:Y+L};case h1.Left:return{x:H,y:Y+L/2}}}function mM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function oq(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,L)=>{return[L.markerStart||K,L.markerEnd||H].forEach((M)=>{if(M&&typeof M==="object"){let O=oq(M,U);if(!Y.has(O))W.push({id:O,color:M.color||Z,...M}),Y.add(O)}}),W},[]).sort((W,L)=>W.id.localeCompare(L.id))}function UT(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],L=[-100*Y,-100];switch(Z){case h1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[0,-100*Y];break;case h1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,L[1]=0;break;case h1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${L[0]}%, ${L[1]}%)`}var GT=1000,ef=10,pK={nodeOrigin:[0,0],nodeExtent:O9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},_S={...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 ZT(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=xJ(H,K.nodeOrigin),W=e8(H.extent)?H.extent:K.nodeExtent,L=o8(Y,W,$4(H));H.internals.positionAbsolute=L}}function JS(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 nq(Q,U,Z,K={}){let H=cK(_S,K),Y={i:0},W=new Map(U),L=H?.elevateNodesOnSelect&&!lK(H.zIndexMode)?GT:0,M=Q.length>0,O=!1;U.clear(),Z.clear();for(let T of Q){let A=W.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let R=xJ(T,H.nodeOrigin),I=e8(T.extent)?T.extent:H.nodeExtent,P=o8(R,I,$4(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:P,handleBounds:JS(T,A),z:FT(T,L,H.zIndexMode),userNode:T}},U.set(T.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)M=!1;if(T.parentId)iK(A,U,Z,K,Y);O||=T.selected??!1}return{nodesInitialized:M,hasSelectedNodes:O}}function $S(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:L,zIndexMode:M}=cK(pK,K),O=Q.parentId,T=U.get(O);if(!T){console.warn(`Parent node ${O} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if($S(Q,Z),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&M==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*ef;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!lK(M)?GT:0,{x:R,y:I,z:P}=QS(Q,T,W,L,A,M),{positionAbsolute:V}=Q.internals,S=R!==V.x||I!==V.y;if(S||P!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:R,y:I}:V,z:P}})}function FT(Q,U,Z){let K=_4(Q.zIndex)?Q.zIndex:0;if(lK(Z))return K;return K+(Q.selected?U:0)}function QS(Q,U,Z,K,H,Y){let{x:W,y:L}=U.internals.positionAbsolute,M=$4(Q),O=xJ(Q,Z),T=e8(Q.extent)?o8(O,Q.extent,M):O,A=o8({x:W+T.x,y:L+T.y},K,M);if(Q.extent==="parent")A=sM(A,M,U);let R=FT(Q,H,Y),I=U.internals.z??0;return{x:A.x,y:A.y,z:I>=R?I+1:R}}function eq(Q,U,Z,K=[0,0]){let H=[],Y=new Map;for(let W of Q){let L=U.get(W.parentId);if(!L)continue;let M=Y.get(W.parentId)?.expandedRect??I9(L),O=VK(M,W.rect);Y.set(W.parentId,{expandedRect:O,parent:L})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:L},M)=>{let O=L.internals.positionAbsolute,T=$4(L),A=L.origin??K,R=W.x<O.x?Math.round(Math.abs(O.x-W.x)):0,I=W.y<O.y?Math.round(Math.abs(O.y-W.y)):0,P=Math.max(T.width,Math.round(W.width)),V=Math.max(T.height,Math.round(W.height)),S=(P-T.width)*A[0],C=(V-T.height)*A[1];if(R>0||I>0||S||C)H.push({id:M,type:"position",position:{x:L.position.x-R+S,y:L.position.y-I+C}}),Z.get(M)?.forEach((y)=>{if(!Q.some((N)=>N.id===y.id))H.push({id:y.id,type:"position",position:{x:y.position.x+R,y:y.position.y+I}})});if(T.width<W.width||T.height<W.height||R||I)H.push({id:M,type:"dimensions",setAttributes:!0,dimensions:{width:P+(R?A[0]*R-S:0),height:V+(I?A[1]*I-C:0)}})});return H}function XT(Q,U,Z,K,H,Y,W){let L=K?.querySelector(".xyflow__viewport"),M=!1;if(!L)return{changes:[],updatedInternals:M};let O=[],T=window.getComputedStyle(L),{m22:A}=new window.DOMMatrixReadOnly(T.transform),R=[];for(let I of Q.values()){let P=U.get(I.id);if(!P)continue;if(P.hidden){U.set(P.id,{...P,internals:{...P.internals,handleBounds:void 0}}),M=!0;continue}let V=rq(I.nodeElement),S=P.measured.width!==V.width||P.measured.height!==V.height;if(!!(V.width&&V.height&&(S||!P.internals.handleBounds||I.force))){let y=I.nodeElement.getBoundingClientRect(),N=e8(P.extent)?P.extent:Y,{positionAbsolute:j}=P.internals;if(P.parentId&&P.extent==="parent"){let x=U.get(P.parentId);if(x)j=sM(j,V,x)}else if(N)j=o8(j,N,V);let D={...P,measured:V,internals:{...P.internals,positionAbsolute:j,handleBounds:{source:DM("source",I.nodeElement,y,A,P.id),target:DM("target",I.nodeElement,y,A,P.id)}}};if(U.set(P.id,D),P.parentId)iK(D,U,Z,{nodeOrigin:H,zIndexMode:W});if(M=!0,S){if(O.push({id:P.id,type:"dimensions",dimensions:V}),P.expandParent&&P.parentId)R.push({id:P.id,parentId:P.parentId,rect:I9(D,H)})}}}if(R.length>0){let I=eq(R,U,Z,H);O.push(...I)}return{changes:O,updatedInternals:M}}async function KT({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 gM(Q,U,Z,K,H,Y){let W=H,L=K.get(W)||new Map;K.set(W,L.set(Z,U)),W=`${H}-${Q}`;let M=K.get(W)||new Map;if(K.set(W,M.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let O=K.get(W)||new Map;K.set(W,O.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:L=null}=K,M={edgeId:K.id,source:H,target:Y,sourceHandle:W,targetHandle:L},O=`${H}-${W}--${Y}-${L}`,T=`${Y}-${L}--${H}-${W}`;gM("source",M,T,Q,H,W),gM("target",M,O,Q,Y,L),U.set(K.id,K)}}function HT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return HT(Z,U)}function pM(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 qS(Q,U,Z,K){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!W.parentId||!HT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let L=Q.get(Y);if(L)H.set(Y,{id:Y,position:L.position||{x:0,y:0},distance:{x:Z.x-L.internals.positionAbsolute.x,y:Z.y-L.internals.positionAbsolute.y},extent:L.extent,parentId:L.parentId,origin:L.origin,expandParent:L.expandParent,internals:{positionAbsolute:L.internals.positionAbsolute||{x:0,y:0}},measured:{width:L.measured.width??0,height:L.measured.height??0}})}return H}function RK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let H=[];for(let[W,L]of U){let M=Z.get(W)?.internals.userNode;if(M)H.push({...M,position:L.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 US({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=w9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function YT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:H}){let Y={x:null,y:null},W=0,L=new Map,M=!1,O={x:0,y:0},T=null,A=!1,R=null,I=!1,P=!1,V=null;function S({noDragClassName:y,handleSelector:N,domNode:j,isSelectable:D,nodeId:x,nodeClickDistance:E=0}){R=C2(j);function u({x:U1,y:Q1}){let{nodeLookup:h,nodeExtent:g,snapGrid:p,snapToGrid:c,nodeOrigin:l,onNodeDrag:o,onSelectionDrag:k,onError:t,updateNodePositions:_1}=U();Y={x:U1,y:Q1};let a=!1,H1=L.size>1,O1=H1&&g?wK(_7(L)):null,B1=H1&&c?US({dragItems:L,snapGrid:p,x:U1,y:Q1}):null;for(let[T1,G1]of L){if(!h.has(T1))continue;let R1={x:U1-G1.distance.x,y:Q1-G1.distance.y};if(c)R1=B1?{x:Math.round(R1.x+B1.x),y:Math.round(R1.y+B1.y)}:w9(R1,p);let S1=null;if(H1&&g&&!G1.extent&&O1){let{positionAbsolute:b1}=G1.internals,p1=b1.x-O1.x+g[0][0],u1=b1.x+G1.measured.width-O1.x2+g[1][0],A1=b1.y-O1.y+g[0][1],J0=b1.y+G1.measured.height-O1.y2+g[1][1];S1=[[p1,A1],[u1,J0]]}let{position:W1,positionAbsolute:f1}=vK({nodeId:T1,nextPosition:R1,nodeLookup:h,nodeExtent:S1?S1:g,nodeOrigin:l,onError:t});a=a||G1.position.x!==W1.x||G1.position.y!==W1.y,G1.position=W1,G1.internals.positionAbsolute=f1}if(P=P||a,!a)return;if(_1(L,!0),V&&(K||o||!x&&k)){let[T1,G1]=RK({nodeId:x,dragItems:L,nodeLookup:h});if(K?.(V,L,T1,G1),o?.(V,T1,G1),!x)k?.(V,G1)}}async function b(){if(!T)return;let{transform:U1,panBy:Q1,autoPanSpeed:h,autoPanOnNodeDrag:g}=U();if(!g){M=!1,cancelAnimationFrame(W);return}let[p,c]=lq(O,T,h);if(p!==0||c!==0){if(Y.x=(Y.x??0)-p/U1[2],Y.y=(Y.y??0)-c/U1[2],await Q1({x:p,y:c}))u(Y)}W=requestAnimationFrame(b)}function m(U1){let{nodeLookup:Q1,multiSelectionActive:h,nodesDraggable:g,transform:p,snapGrid:c,snapToGrid:l,selectNodesOnDrag:o,onNodeDragStart:k,onSelectionDragStart:t,unselectNodesAndEdges:_1}=U();if(A=!0,(!o||!D)&&!h&&x){if(!Q1.get(x)?.selected)_1()}if(D&&o&&x)Q?.(x);let a=hJ(U1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:l,containerBounds:T});if(Y=a,L=qS(Q1,g,a,x),L.size>0&&(Z||k||!x&&t)){let[H1,O1]=RK({nodeId:x,dragItems:L,nodeLookup:Q1});if(Z?.(U1.sourceEvent,L,H1,O1),k?.(U1.sourceEvent,H1,O1),!x)t?.(U1.sourceEvent,O1)}}let s=TJ().clickDistance(E).on("start",(U1)=>{let{domNode:Q1,nodeDragThreshold:h,transform:g,snapGrid:p,snapToGrid:c}=U();if(T=Q1?.getBoundingClientRect()||null,I=!1,P=!1,V=U1.sourceEvent,h===0)m(U1);Y=hJ(U1.sourceEvent,{transform:g,snapGrid:p,snapToGrid:c,containerBounds:T}),O=J4(U1.sourceEvent,T)}).on("drag",(U1)=>{let{autoPanOnNodeDrag:Q1,transform:h,snapGrid:g,snapToGrid:p,nodeDragThreshold:c,nodeLookup:l}=U(),o=hJ(U1.sourceEvent,{transform:h,snapGrid:g,snapToGrid:p,containerBounds:T});if(V=U1.sourceEvent,U1.sourceEvent.type==="touchmove"&&U1.sourceEvent.touches.length>1||x&&!l.has(x))I=!0;if(I)return;if(!M&&Q1&&A)M=!0,b();if(!A){let k=J4(U1.sourceEvent,T),t=k.x-O.x,_1=k.y-O.y;if(Math.sqrt(t*t+_1*_1)>c)m(U1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&L&&A)O=J4(U1.sourceEvent,T),u(o)}).on("end",(U1)=>{if(!A||I){if(I&&L.size>0)U().updateNodePositions(L,!1);return}if(M=!1,A=!1,cancelAnimationFrame(W),L.size>0){let{nodeLookup:Q1,updateNodePositions:h,onNodeDragStop:g,onSelectionDragStop:p}=U();if(P)h(L,!1),P=!1;if(H||g||!x&&p){let[c,l]=RK({nodeId:x,dragItems:L,nodeLookup:Q1,dragging:!1});if(H?.(U1.sourceEvent,L,c,l),g?.(U1.sourceEvent,c,l),!x)p?.(U1.sourceEvent,l)}}}).filter((U1)=>{let Q1=U1.target;return!U1.button&&(!y||!pM(Q1,`.${y}`,j))&&(!N||pM(Q1,N,j))});R.call(s)}function C(){R?.on(".drag",null)}return{update:S,destroy:C}}function GS(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(mJ(H,I9(Y))>0)K.push(Y);return K}var ZS=250;function FS(Q,U,Z,K){let H=[],Y=1/0,W=GS(Q,Z,U+ZS);for(let L of W){let M=[...L.internals.handleBounds?.source??[],...L.internals.handleBounds?.target??[]];for(let O of M){if(K.nodeId===O.nodeId&&K.type===O.type&&K.id===O.id)continue;let{x:T,y:A}=r6(L,O,O.position,!0),R=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(R>U)continue;if(R<Y)H=[{...O,x:T,y:A}],Y=R;else if(R===Y)H.push({...O,x:T,y:A})}}if(!H.length)return null;if(H.length>1){let L=K.type==="source"?"target":"source";return H.find((M)=>M.type===L)??H[0]}return H[0]}function zT(Q,U,Z,K,H,Y=!1){let W=K.get(Q);if(!W)return null;let L=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],M=(Z?L?.find((O)=>O.id===Z):L?.[0])??null;return M&&Y?{...M,...r6(W,M,M.position,!0)}:M}function WT(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 XS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var LT=()=>!0;function KS(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:L,nodeLookup:M,lib:O,autoPanOnConnect:T,flowId:A,panBy:R,cancelConnection:I,onConnectStart:P,onConnect:V,onConnectEnd:S,isValidConnection:C=LT,onReconnectEnd:y,updateConnection:N,getTransform:j,getFromHandle:D,autoPanSpeed:x,dragThreshold:E=1,handleDomNode:u}){let b=hK(Q.target),m=0,s,{x:U1,y:Q1}=J4(Q),h=WT(Y,u),g=L?.getBoundingClientRect(),p=!1;if(!g||!h)return;let c=zT(H,h,K,M,U);if(!c)return;let l=J4(Q,g),o=!1,k=null,t=!1,_1=null;function a(){if(!T||!g)return;let[W1,f1]=lq(l,g,x);R({x:W1,y:f1}),m=requestAnimationFrame(a)}let H1={...c,nodeId:H,type:h,position:c.position},O1=M.get(H),T1={inProgress:!0,isValid:null,from:r6(O1,H1,h1.Left,!0),fromHandle:H1,fromPosition:H1.position,fromNode:O1,to:l,toHandle:null,toPosition:VM[H1.position],toNode:null,pointer:l};function G1(){p=!0,N(T1),P?.(Q,{nodeId:H,handleId:K,handleType:h})}if(E===0)G1();function R1(W1){if(!p){let{x:J0,y:D1}=J4(W1),p0=J0-U1,Q0=D1-Q1;if(!(p0*p0+Q0*Q0>E*E))return;G1()}if(!D()||!H1){S1(W1);return}let f1=j();if(l=J4(W1,g),s=FS(P9(l,f1,!1,[1,1]),Z,M,H1),!o)a(),o=!0;let b1=BT(W1,{handle:s,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:W?"target":"source",isValidConnection:C,doc:b,lib:O,flowId:A,nodeLookup:M});_1=b1.handleDomNode,k=b1.connection,t=XS(!!s,b1.isValid);let p1=M.get(H),u1=p1?r6(p1,H1,h1.Left,!0):T1.from,A1={...T1,from:u1,isValid:t,to:b1.toHandle&&t?n8({x:b1.toHandle.x,y:b1.toHandle.y},f1):l,toHandle:b1.toHandle,toPosition:t&&b1.toHandle?b1.toHandle.position:VM[H1.position],toNode:b1.toHandle?M.get(b1.toHandle.nodeId):null,pointer:l};N(A1),T1=A1}function S1(W1){if("touches"in W1&&W1.touches.length>0)return;if(p){if((s||_1)&&k&&t)V?.(k);let{inProgress:f1,...b1}=T1,p1={...b1,toPosition:T1.toHandle?T1.toPosition:null};if(S?.(W1,p1),Y)y?.(W1,p1)}I(),cancelAnimationFrame(m),o=!1,t=!1,k=null,_1=null,b.removeEventListener("mousemove",R1),b.removeEventListener("mouseup",S1),b.removeEventListener("touchmove",R1),b.removeEventListener("touchend",S1)}b.addEventListener("mousemove",R1),b.addEventListener("mouseup",S1),b.addEventListener("touchmove",R1),b.addEventListener("touchend",S1)}function BT(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:H,fromType:Y,doc:W,lib:L,flowId:M,isValidConnection:O=LT,nodeLookup:T}){let A=Y==="target",R=U?W.querySelector(`.${L}-flow__handle[data-id="${M}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:I,y:P}=J4(Q),V=W.elementFromPoint(I,P),S=V?.classList.contains(`${L}-flow__handle`)?V:R,C={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let y=WT(void 0,S),N=S.getAttribute("data-nodeid"),j=S.getAttribute("data-handleid"),D=S.classList.contains("connectable"),x=S.classList.contains("connectableend");if(!N||!y)return C;let E={source:A?N:K,sourceHandle:A?j:H,target:A?K:N,targetHandle:A?H:j};C.connection=E;let b=D&&x&&(Z===d6.Strict?A&&y==="source"||!A&&y==="target":N!==K||j!==H);C.isValid=b&&O(E),C.toHandle=zT(N,y,j,T,Z,!0)}return C}var _U={onPointerDown:KS,isValid:BT};function AT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let H=C2(Q);function Y({translateExtent:L,width:M,height:O,zoomStep:T=1,pannable:A=!0,zoomable:R=!0,inversePan:I=!1}){let P=(N)=>{if(N.sourceEvent.type!=="wheel"||!U)return;let j=Z(),D=N.sourceEvent.ctrlKey&&N9()?10:1,x=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?0.05:N.sourceEvent.deltaMode?1:0.002)*T,E=j[2]*Math.pow(2,x*D);U.scaleTo(E)},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 j=Z();if(N.sourceEvent.type!=="mousemove"&&N.sourceEvent.type!=="touchmove"||!U)return;let D=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],x=[D[0]-V[0],D[1]-V[1]];V=D;let E=K()*Math.max(j[2],Math.log(j[2]))*(I?-1:1),u={x:j[0]-x[0]*E,y:j[1]-x[1]*E},b=[[0,0],[M,O]];U.setViewportConstrained({x:u.x,y:u.y,zoom:j[2]},b,L)},y=EJ().on("start",S).on("zoom",A?C:null).on("zoom.wheel",R?P:null);H.call(y,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:s2}}var JU=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),OK=({x:Q,y:U,zoom:Z})=>a8.translate(Q,U).scale(Z),i6=(Q,U)=>Q.target.closest(`.${U}`),MT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),HS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,IK=(Q,U=0,Z=HS,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(Z).on("end",K):Q},TT=(Q)=>{let U=Q.ctrlKey&&N9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function YS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:L,onPanZoom:M,onPanZoomEnd:O}){return(T)=>{if(i6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(T.ctrlKey&&W){let S=s2(T),C=TT(T),y=A*Math.pow(2,C);K.scaleTo(Z,y,S,T);return}let R=T.deltaMode===1?20:1,I=H===m3.Vertical?0:T.deltaX*R,P=H===m3.Horizontal?0:T.deltaY*R;if(!N9()&&T.shiftKey&&H!==m3.Vertical)I=T.deltaY*R,P=0;K.translateBy(Z,-(I/A)*Y,-(P/A)*Y,{internal:!0});let V=JU(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,L?.(T,V);else M?.(T,V);Q.panScrollTimeout=setTimeout(()=>{O?.(T,V),Q.isPanScrolling=!1},150)}}function zS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,H){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,L=i6(K,Q);if(K.ctrlKey&&Y&&L)K.preventDefault();if(W||L)return null;K.preventDefault(),Z.call(this,K,H)}}function WS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let H=JU(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 LS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&MT(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,JU(Y.transform))}}function BS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&MT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let L=JU(W.transform);Q.prevViewport=L,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,L)},Z?150:0)}}}function AS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:L,noWheelClassName:M,noPanClassName:O,lib:T,connectionInProgress:A}){return(R)=>{let I=U||Z,P=K&&R.ctrlKey,V=R.type==="wheel";if(R.button===1&&R.type==="mousedown"&&(i6(R,`${T}-flow__node`)||i6(R,`${T}-flow__edge`)||i6(R,`${T}-flow__selection`)||i6(R,`${T}-flow__nodesselection`)))return!0;if(!H&&!I&&!Y&&!W&&!K)return!1;if(L)return!1;if(A&&!V)return!1;if(i6(R,M)&&V)return!1;if(i6(R,O)&&(!V||Y&&V&&!U))return!1;if(!K&&R.ctrlKey&&V)return!1;if(!K&&R.type==="touchstart"&&R.touches?.length>1)return R.preventDefault(),!1;if(!I&&!Y&&!P&&V)return!1;if(!H&&(R.type==="mousedown"||R.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(R.button)&&R.type==="mousedown")return!1;let S=Array.isArray(H)&&H.includes(R.button)||!R.button||R.button<=1;return(!R.ctrlKey||V||Q)&&S}}function RT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:L,onDraggingChange:M}){let O={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},T=Q.getBoundingClientRect(),A=[[0,0],[T.width,T.height]];(typeof ResizeObserver<"u"?new ResizeObserver((Q1)=>{let h=Q1[0];if(h)A=[[0,0],[h.contentRect.width,h.contentRect.height]]}):null)?.observe(Q);let I=EJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(K),P=C2(Q).call(I);j({x:H.x,y:H.y,zoom:R9(H.zoom,U,Z)},[[0,0],[T.width,T.height]],K);let V=P.on("wheel.zoom"),S=P.on("dblclick.zoom");I.wheelDelta(TT);async function C(Q1,h){if(P)return new Promise((g)=>{I?.interpolate(h?.interpolate==="linear"?q3:d8).transform(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}function y({noWheelClassName:Q1,noPanClassName:h,onPaneContextMenu:g,userSelectionActive:p,panOnScroll:c,panOnDrag:l,panOnScrollMode:o,panOnScrollSpeed:k,preventScrolling:t,zoomOnPinch:_1,zoomOnScroll:a,zoomOnDoubleClick:H1,panActivationKeyPressed:O1=!1,zoomActivationKeyPressed:B1,lib:T1,onTransformChange:G1,connectionInProgress:R1,paneClickDistance:S1,selectionOnDrag:W1}){if(p&&!O.isZoomingOrPanning)N();let f1=c&&!B1&&!p;I.clickDistance(W1?1/0:!_4(S1)||S1<0?0:S1);let b1=f1?YS({zoomPanValues:O,noWheelClassName:Q1,d3Selection:P,d3Zoom:I,panOnScrollMode:o,panOnScrollSpeed:k,zoomOnPinch:_1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:L}):zS({noWheelClassName:Q1,preventScrolling:t,d3ZoomHandler:V});P.on("wheel.zoom",b1,{passive:!1});let p1=WS({zoomPanValues:O,onDraggingChange:M,onPanZoomStart:W});I.on("start",p1);let u1=LS({zoomPanValues:O,panOnDrag:l,onPaneContextMenu:!!g,onPanZoom:Y,onTransformChange:G1});I.on("zoom",u1);let A1=BS({zoomPanValues:O,panOnDrag:l,panOnScroll:c,onPaneContextMenu:g,onPanZoomEnd:L,onDraggingChange:M});I.on("end",A1);let J0=AS({panActivationKeyPressed:O1,zoomActivationKeyPressed:B1,panOnDrag:l,zoomOnScroll:a,panOnScroll:c,zoomOnDoubleClick:H1,zoomOnPinch:_1,userSelectionActive:p,noPanClassName:h,noWheelClassName:Q1,lib:T1,connectionInProgress:R1});if(I.filter(J0),H1)P.on("dblclick.zoom",S);else P.on("dblclick.zoom",null)}function N(){I.on("zoom",null)}async function j(Q1,h,g){let p=OK(Q1),c=I?.constrain()(p,h,g);if(c)await C(c);return c}async function D(Q1,h){let g=OK(Q1);return await C(g,h),g}function x(Q1){if(P){let h=OK(Q1),g=P.property("__zoom");if(g.k!==Q1.zoom||g.x!==Q1.x||g.y!==Q1.y)I?.transform(P,h,null,{sync:!0})}}function E(){let Q1=P?bJ(P.node()):{x:0,y:0,k:1};return{x:Q1.x,y:Q1.y,zoom:Q1.k}}async function u(Q1,h){if(P)return new Promise((g)=>{I?.interpolate(h?.interpolate==="linear"?q3:d8).scaleTo(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}async function b(Q1,h){if(P)return new Promise((g)=>{I?.interpolate(h?.interpolate==="linear"?q3:d8).scaleBy(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}function m(Q1){I?.scaleExtent(Q1)}function s(Q1){I?.translateExtent(Q1)}function U1(Q1){let h=!_4(Q1)||Q1<0?0:Q1;I?.clickDistance(h)}return{update:y,destroy:N,setViewport:D,setViewportConstrained:j,getViewport:E,scaleTo:u,scaleBy:b,setScaleExtent:m,setTranslateExtent:s,syncViewport:x,setClickDistance:U1}}var g3;(function(Q){Q.Line="line",Q.Handle="handle"})(g3||(g3={}));var OT=["top-left","top-right","bottom-left","bottom-right"],IT=["top","right","bottom","left"];function MS({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:H,affectsY:Y}){let W=Q-U,L=Z-K,M=[W>0?1:W<0?-1:0,L>0?1:L<0?-1:0];if(W&&H)M[0]=M[0]*-1;if(L&&Y)M[1]=M[1]*-1;return M}function cM(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 c6(Q,U){return Math.max(0,U-Q)}function l6(Q,U){return Math.max(0,Q-U)}function gq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function lM(Q,U){return Q?!U:U}function TS(Q,U,Z,K,H,Y,W,L){let{affectsX:M,affectsY:O}=U,{isHorizontal:T,isVertical:A}=U,R=T&&A,{xSnapped:I,ySnapped:P}=Z,{minWidth:V,maxWidth:S,minHeight:C,maxHeight:y}=K,{x:N,y:j,width:D,height:x,aspectRatio:E}=Q,u=Math.floor(T?I-Q.pointerX:0),b=Math.floor(A?P-Q.pointerY:0),m=D+(M?-u:u),s=x+(O?-b:b),U1=-Y[0]*D,Q1=-Y[1]*x,h=gq(m,V,S),g=gq(s,C,y);if(W){let l=0,o=0;if(M&&u<0)l=c6(N+u+U1,W[0][0]);else if(!M&&u>0)l=l6(N+m+U1,W[1][0]);if(O&&b<0)o=c6(j+b+Q1,W[0][1]);else if(!O&&b>0)o=l6(j+s+Q1,W[1][1]);h=Math.max(h,l),g=Math.max(g,o)}if(L){let l=0,o=0;if(M&&u>0)l=l6(N+u,L[0][0]);else if(!M&&u<0)l=c6(N+m,L[1][0]);if(O&&b>0)o=l6(j+b,L[0][1]);else if(!O&&b<0)o=c6(j+s,L[1][1]);h=Math.max(h,l),g=Math.max(g,o)}if(H){if(T){let l=gq(m/E,C,y)*E;if(h=Math.max(h,l),W){let o=0;if(!M&&!O||M&&!O&&R)o=l6(j+Q1+m/E,W[1][1])*E;else o=c6(j+Q1+(M?u:-u)/E,W[0][1])*E;h=Math.max(h,o)}if(L){let o=0;if(!M&&!O||M&&!O&&R)o=c6(j+m/E,L[1][1])*E;else o=l6(j+(M?u:-u)/E,L[0][1])*E;h=Math.max(h,o)}}if(A){let l=gq(s*E,V,S)/E;if(g=Math.max(g,l),W){let o=0;if(!M&&!O||O&&!M&&R)o=l6(N+s*E+U1,W[1][0])/E;else o=c6(N+(O?b:-b)*E+U1,W[0][0])/E;g=Math.max(g,o)}if(L){let o=0;if(!M&&!O||O&&!M&&R)o=c6(N+s*E,L[1][0])/E;else o=l6(N+(O?b:-b)*E,L[0][0])/E;g=Math.max(g,o)}}}if(b=b+(b<0?g:-g),u=u+(u<0?h:-h),H)if(R)if(m>s*E)b=(lM(M,O)?-u:u)/E;else u=(lM(M,O)?-b:b)*E;else if(T)b=u/E,O=M;else u=b*E,M=O;let p=M?N+u:N,c=O?j+b:j;return{width:D+(M?-u:u),height:x+(O?-b:b),x:Y[0]*u*(!M?1:-1)+p,y:Y[1]*b*(!O?1:-1)+c}}var wT={width:0,height:0,x:0,y:0},RS={...wT,pointerX:0,pointerY:0,aspectRatio:1};function OS(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,L=Z[0]*Y,M=Z[1]*W;return[[K-L,H-M],[K+Y-L,H+W-M]]}function PT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:H}){let Y=C2(Q),W={controlDirection:cM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function L({controlPosition:O,boundaries:T,keepAspectRatio:A,resizeDirection:R,onResizeStart:I,onResize:P,onResizeEnd:V,shouldResize:S}){let C={...wT},y={...RS};W={boundaries:T,resizeDirection:R,keepAspectRatio:A,controlDirection:cM(O)};let N=void 0,j=null,D=[],x=void 0,E=void 0,u=void 0,b=TJ().on("start",(m)=>{let{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,paneDomNode:p}=Z();if(N=s.get(U),!N)return;j=p?.getBoundingClientRect()??null;let{xSnapped:c,ySnapped:l}=hJ(m.sourceEvent,{transform:U1,snapGrid:Q1,snapToGrid:h,containerBounds:j});if(C={width:N.measured.width??0,height:N.measured.height??0,x:N.position.x??0,y:N.position.y??0},y={...C,pointerX:c,pointerY:l,aspectRatio:C.width/C.height},x=void 0,E=e8(N.extent)?N.extent:void 0,N.parentId&&(N.extent==="parent"||N.expandParent))x=s.get(N.parentId);if(x&&N.extent==="parent")E=[[0,0],[x.measured.width,x.measured.height]];D=[],u=void 0;for(let[o,k]of s)if(k.parentId===U){if(D.push({id:o,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let t=OS(k,N,k.origin??g);if(u)u=[[Math.min(t[0][0],u[0][0]),Math.min(t[0][1],u[0][1])],[Math.max(t[1][0],u[1][0]),Math.max(t[1][1],u[1][1])]];else u=t}}I?.(m,{...C})}).on("drag",(m)=>{let{transform:s,snapGrid:U1,snapToGrid:Q1,nodeOrigin:h}=Z(),g=hJ(m.sourceEvent,{transform:s,snapGrid:U1,snapToGrid:Q1,containerBounds:j}),p=[];if(!N)return;let{x:c,y:l,width:o,height:k}=C,t={},_1=N.origin??h,{width:a,height:H1,x:O1,y:B1}=TS(y,W.controlDirection,g,W.boundaries,W.keepAspectRatio,_1,E,u),T1=a!==o,G1=H1!==k,R1=O1!==c&&T1,S1=B1!==l&&G1;if(!R1&&!S1&&!T1&&!G1)return;let W1={prevValues:{...C},startX:y.x,startY:y.y,childNodes:D.map((u1)=>({...u1,position:{...u1.position}}))};if(R1||S1||_1[0]===1||_1[1]===1){if(t.x=R1?O1:C.x,t.y=S1?B1:C.y,C.x=t.x,C.y=t.y,D.length>0){let u1=O1-c,A1=B1-l;for(let J0 of D)J0.position={x:J0.position.x-u1+_1[0]*(a-o),y:J0.position.y-A1+_1[1]*(H1-k)},p.push(J0)}}if(T1||G1)t.width=T1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?a:C.width,t.height=G1&&(!W.resizeDirection||W.resizeDirection==="vertical")?H1:C.height,C.width=t.width,C.height=t.height;if(x&&N.expandParent){let u1=_1[0]*(t.width??0);if(t.x&&t.x<u1)C.x=u1,y.x=y.x-(t.x-u1);let A1=_1[1]*(t.height??0);if(t.y&&t.y<A1)C.y=A1,y.y=y.y-(t.y-A1)}let f1=MS({width:C.width,prevWidth:o,height:C.height,prevHeight:k,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),b1={...C,direction:f1};if(S?.(m,b1)===!1){C=W1.prevValues,y.x=W1.startX,y.y=W1.startY,D.forEach((u1,A1)=>{u1.position=W1.childNodes[A1].position});return}P?.(m,b1),K(t,p)}).on("end",(m)=>{V?.(m,{...C}),H?.({...C})});Y.call(b)}function M(){Y.on(".drag",null)}return{update:L,destroy:M}}var vT=t0(M4(),1),VT=t0(CT(),1);var fT=(Q)=>{let U,Z=new Set,K=(T,A)=>{let R=typeof T==="function"?T(U):T;if(!Object.is(R,U)){let I=U;U=(A!=null?A:typeof R!=="object"||R===null)?R:Object.assign({},U,R),Z.forEach((P)=>P(U,I))}},H=()=>U,M={setState:K,getState:H,getInitialState:()=>O,subscribe:(T)=>{return Z.add(T),()=>Z.delete(T)},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()}},O=U=Q(K,H,M);return M},ST=(Q)=>Q?fT(Q):fT;var{useDebugValue:PS}=vT.default,{useSyncExternalStoreWithSelector:NS}=VT.default,CS=(Q)=>Q;function rK(Q,U=CS,Z){let K=NS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return PS(K),K}var jT=(Q,U)=>{let Z=ST(Q),K=(H,Y=U)=>rK(Z,H,Y);return Object.assign(K,Z),K},yT=(Q,U)=>Q?jT(Q,U):jT;function d0(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 GR=t0(iF(),1),GU=L1.createContext(null),fS=GU.Provider,ZR=X5.error001("react");function B0(Q,U){let Z=L1.useContext(GU);if(Z===null)throw Error(ZR);return rK(Z,Q,U)}function r0(){let Q=L1.useContext(GU);if(Q===null)throw Error(ZR);return L1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var kT={display:"none"},SS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},FR="react-flow__node-desc",XR="react-flow__edge-desc",jS="react-flow__aria-live",vS=(Q)=>Q.ariaLiveMessage,VS=(Q)=>Q.ariaLabelConfig;function yS({rfId:Q}){let U=B0(vS);return K1.jsx("div",{id:`${jS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:SS,children:U})}function kS({rfId:Q,disableKeyboardA11y:U}){let Z=B0(VS);return K1.jsxs(K1.Fragment,{children:[K1.jsx("div",{id:`${FR}-${Q}`,style:kT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),K1.jsx("div",{id:`${XR}-${Q}`,style:kT,children:Z["edge.a11yDescription.default"]}),!U&&K1.jsx(yS,{rfId:Q})]})}var Z3=L1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...H},Y)=>{let W=`${Q}`.split("-");return K1.jsx("div",{className:$2(["react-flow__panel",Z,...W]),style:K,ref:Y,...H,children:U})});Z3.displayName="Panel";var DT="https://reactflow.dev/attribution";function DS({proOptions:Q,position:U="bottom-right"}){if(L1.useEffect(()=>{eM("react")},[]),Q?.hideAttribution)return null;return K1.jsx(Z3,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${DT}`,children:K1.jsx("a",{href:DT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var uS=(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}},$U=(Q)=>Q.id;function bS(Q,U){return d0(Q.selectedNodes.map($U),U.selectedNodes.map($U))&&d0(Q.selectedEdges.map($U),U.selectedEdges.map($U))}function ES({onSelectionChange:Q}){let U=r0(),{selectedNodes:Z,selectedEdges:K}=B0(uS,bS);return L1.useEffect(()=>{let H={nodes:Z,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,K,Q]),null}var hS=(Q)=>!!Q.onSelectionChangeHandlers;function xS({onSelectionChange:Q}){let U=B0(hS);if(Q||U)return K1.jsx(ES,{onSelectionChange:Q});return null}var KR=[0,0],mS={x:0,y:0,zoom:1},gS=["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"],uT=[...gS,"rfId"],pS=(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}),bT={translateExtent:O9,nodeOrigin:KR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function cS(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:L,setDefaultNodesAndEdges:M}=B0(pS,d0),O=r0();L1.useEffect(()=>{return M(Q.defaultNodes,Q.defaultEdges),()=>{T.current=bT,L()}},[]);let T=L1.useRef(bT);return L1.useEffect(()=>{for(let A of uT){let R=Q[A],I=T.current[A];if(R===I)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(R);else if(A==="edges")Z(R);else if(A==="minZoom")K(R);else if(A==="maxZoom")H(R);else if(A==="translateExtent")Y(R);else if(A==="nodeExtent")W(R);else if(A==="ariaLabelConfig")O.setState({ariaLabelConfig:nM(R)});else if(A==="fitView")O.setState({fitViewQueued:R});else if(A==="fitViewOptions")O.setState({fitViewOptions:R});else O.setState({[A]:R})}T.current=Q},uT.map((A)=>Q[A])),null}function ET(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function lS(Q){let[U,Z]=L1.useState(Q==="system"?null:Q);return L1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=ET(),H=()=>Z(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:ET()?.matches?"dark":"light"}var hT=typeof document<"u"?document:null;function cJ(Q=null,U={target:hT,actInsideInputWithModifier:!0}){let[Z,K]=L1.useState(!1),H=L1.useRef(!1),Y=L1.useRef(new Set([])),[W,L]=L1.useMemo(()=>{if(Q!==null){let O=(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
- `)),T=O.reduce((A,R)=>A.concat(...R),[]);return[O,T]}return[[],[]]},[Q]);return W1.useEffect(()=>{let M=U?.target??hT,O=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(w)=>{if(H.current=w.ctrlKey||w.metaKey||w.shiftKey||w.altKey,(!H.current||H.current&&!O)&&xK(w))return!1;let V=mT(w.code,L);if(Y.current.add(w[V]),xT(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();K(!0)}},A=(w)=>{let P=mT(w.code,L);if(xT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(w[P]);if(w.key==="Meta")Y.current.clear();H.current=!1},R=()=>{Y.current.clear(),K(!1)};return M?.addEventListener("keydown",T),M?.addEventListener("keyup",A),window.addEventListener("blur",R),window.addEventListener("contextmenu",R),()=>{M?.removeEventListener("keydown",T),M?.removeEventListener("keyup",A),window.removeEventListener("blur",R),window.removeEventListener("contextmenu",R)}}},[Q,K]),Z}function xT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function mT(Q,U){return U.includes(Q)?"code":"key"}var iS=()=>{let Q=d0();return W1.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:L}=Q.getState(),M=gJ(U,K,H,Y,W,Z?.padding??0.1);if(!L)return!1;return await L.setViewport(M,{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:L,y:M}=W.getBoundingClientRect(),O={x:U.x-L,y:U.y-M},T=Z.snapGrid??H,A=Z.snapToGrid??Y;return P9(O,K,A,T)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),W=t8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function HR(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 L={...Y};for(let M of W)dS(M,L);Z.push(L)}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 dS(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 YR(Q,U){return HR(Q,U)}function rS(Q,U){return HR(Q,U)}function e8(Q,U){return{id:Q,type:"select",selected:U}}function C9(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(e8(Y.id,W))}}return K}function gT({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),L=W?.internals?.userNode??W;if(L!==void 0&&L!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(L===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 pT(Q){return{id:Q.id,type:"remove"}}var aS=kK("React Flow","https://reactflow.dev/");function sS(Q,U,Z={}){return $T(Q,U,{...Z,onError:Z.onError??aS})}var cT=(Q)=>iM(Q),tS=(Q)=>fK(Q);function zR(Q){return W1.forwardRef(Q)}var WR=typeof window<"u"?W1.useLayoutEffect:W1.useEffect;function lT(Q){let[U,Z]=W1.useState(BigInt(0)),[K]=W1.useState(()=>oS(()=>Z((H)=>H+BigInt(1))));return WR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function oS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var LR=W1.createContext(null);function nS({children:Q}){let U=d0(),Z=W1.useCallback((L)=>{let{nodes:M=[],setNodes:O,hasDefaultNodes:T,onNodesChange:A,nodeLookup:R,fitViewQueued:w,onNodesChangeMiddlewareMap:P}=U.getState(),V=M;for(let C of L)V=typeof C==="function"?C(V):C;let S=gT({items:V,lookup:R});for(let C of P.values())S=C(S);if(T)O(V);if(S.length>0)A?.(S);else if(w)window.requestAnimationFrame(()=>{let{fitViewQueued:C,nodes:y,setNodes:N}=U.getState();if(C)N(y)})},[]),K=lT(Z),H=W1.useCallback((L)=>{let{edges:M=[],setEdges:O,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:R}=U.getState(),w=M;for(let P of L)w=typeof P==="function"?P(w):P;if(T)O(w);else if(A)A(gT({items:w,lookup:R}))},[]),Y=lT(H),W=W1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return K1.jsx(LR.Provider,{value:W,children:Q})}function eS(){let Q=W1.useContext(LR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var _v=(Q)=>!!Q.panZoom;function lJ(){let Q=iS(),U=d0(),Z=eS(),K=L0(_v),H=W1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},L=(A)=>{Z.edgeQueue.push(A)},M=(A)=>{let{nodeLookup:R,nodeOrigin:w}=U.getState(),P=cT(A)?A:R.get(A.id),V=P.parentId?uK(P.position,P.measured,P.parentId,R,w):P.position,S={...P,position:V,width:P.measured?.width??P.width,height:P.measured?.height??P.height};return I9(S)},O=(A,R,w={replace:!1})=>{W((P)=>P.map((V)=>{if(V.id===A){let S=typeof R==="function"?R(V):R;return w.replace&&cT(S)?S:{...V,...S}}return V}))},T=(A,R,w={replace:!1})=>{L((P)=>P.map((V)=>{if(V.id===A){let S=typeof R==="function"?R(V):R;return w.replace&&tS(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((R)=>({...R}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:W,setEdges:L,addNodes:(A)=>{let R=Array.isArray(A)?A:[A];Z.nodeQueue.push((w)=>[...w,...R])},addEdges:(A)=>{let R=Array.isArray(A)?A:[A];Z.edgeQueue.push((w)=>[...w,...R])},toObject:()=>{let{nodes:A=[],edges:R=[],transform:w}=U.getState(),[P,V,S]=w;return{nodes:A.map((C)=>({...C})),edges:R.map((C)=>({...C})),viewport:{x:P,y:V,zoom:S}}},deleteElements:async({nodes:A=[],edges:R=[]})=>{let{nodes:w,edges:P,onNodesDelete:V,onEdgesDelete:S,triggerNodeChanges:C,triggerEdgeChanges:y,onDelete:N,onBeforeDelete:v}=U.getState(),{nodes:D,edges:x}=await aM({nodesToRemove:A,edgesToRemove:R,nodes:w,edges:P,onBeforeDelete:v}),E=x.length>0,u=D.length>0;if(E){let b=x.map(pT);S?.(x),y(b)}if(u){let b=D.map(pT);V?.(D),C(b)}if(u||E)N?.({nodes:D,edges:x});return{deletedNodes:D,deletedEdges:x}},getIntersectingNodes:(A,R=!0,w)=>{let P=yK(A),V=P?A:M(A),S=w!==void 0;if(!V)return[];return(w||U.getState().nodes).filter((C)=>{let y=U.getState().nodeLookup.get(C.id);if(y&&!P&&(C.id===A.id||!y.internals.positionAbsolute))return!1;let N=I9(S?C:y),v=mJ(N,V);return R&&v>0||v>=N.width*N.height||v>=V.width*V.height})},isNodeIntersecting:(A,R,w=!0)=>{let V=yK(A)?A:M(A);if(!V)return!1;let S=mJ(V,R);return w&&S>0||S>=R.width*R.height||S>=V.width*V.height},updateNode:O,updateNodeData:(A,R,w={replace:!1})=>{O(A,(P)=>{let V=typeof R==="function"?R(P):R;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},updateEdge:T,updateEdgeData:(A,R,w={replace:!1})=>{T(A,(P)=>{let V=typeof R==="function"?R(P):R;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},getNodesBounds:(A)=>{let{nodeLookup:R,nodeOrigin:w}=U.getState();return vK(A,{nodeLookup:R,nodeOrigin:w})},getHandleConnections:({type:A,id:R,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}-${A}${R?`-${R}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:R,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}${A?R?`-${A}-${R}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let R=U.getState().fitViewResolver??oM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:R}),Z.nodeQueue.push((w)=>[...w]),R.promise}}},[]);return W1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var iT=(Q)=>Q.selected,Jv=typeof window<"u"?window:void 0;function $v({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=d0(),{deleteElements:K}=lJ(),H=cJ(Q,{actInsideInputWithModifier:!1}),Y=cJ(U,{target:Jv});W1.useEffect(()=>{if(H){let{edges:W,nodes:L}=Z.getState();K({nodes:L.filter(iT),edges:W.filter(iT)}),Z.setState({nodesSelectionActive:!1})}},[H]),W1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function Qv(Q){let U=d0();W1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=rq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",F5.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 ZU={position:"absolute",width:"100%",height:"100%",top:0,left:0},qv=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function Uv({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=h3.Free,zoomOnDoubleClick:L=!0,panOnDrag:M=!0,defaultViewport:O,translateExtent:T,minZoom:A,maxZoom:R,zoomActivationKeyCode:w,preventScrolling:P=!0,children:V,noWheelClassName:S,noPanClassName:C,onViewportChange:y,isControlledViewport:N,paneClickDistance:v,selectionOnDrag:D}){let x=d0(),E=W1.useRef(null),{userSelectionActive:u,lib:b,connectionInProgress:m}=L0(qv,i0),s=cJ(w),U1=W1.useRef();Qv(E);let Q1=W1.useCallback((h)=>{if(y?.({x:h[0],y:h[1],zoom:h[2]}),!N)x.setState({transform:h})},[y,N]);return W1.useEffect(()=>{if(E.current){U1.current=RT({domNode:E.current,minZoom:A,maxZoom:R,translateExtent:T,viewport:O,onDraggingChange:(c)=>x.setState((l)=>l.paneDragging===c?l:{paneDragging:c}),onPanZoomStart:(c,l)=>{let{onViewportChangeStart:o,onMoveStart:k}=x.getState();k?.(c,l),o?.(l)},onPanZoom:(c,l)=>{let{onViewportChange:o,onMove:k}=x.getState();k?.(c,l),o?.(l)},onPanZoomEnd:(c,l)=>{let{onViewportChangeEnd:o,onMoveEnd:k}=x.getState();k?.(c,l),o?.(l)}});let{x:h,y:g,zoom:p}=U1.current.getViewport();return x.setState({panZoom:U1.current,transform:[h,g,p],domNode:E.current.closest(".react-flow")}),()=>{U1.current?.destroy()}}},[]),W1.useEffect(()=>{U1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:L,panOnDrag:M,zoomActivationKeyPressed:s,preventScrolling:P,noPanClassName:C,userSelectionActive:u,noWheelClassName:S,lib:b,onTransformChange:Q1,connectionInProgress:m,selectionOnDrag:D,paneClickDistance:v})},[Q,U,Z,K,H,Y,W,L,M,s,P,C,u,S,b,Q1,m,D,v]),K1.jsx("div",{className:"react-flow__renderer",ref:E,style:ZU,children:V})}var Gv=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function Zv(){let{userSelectionActive:Q,userSelectionRect:U}=L0(Gv,i0);if(!(Q&&U))return null;return K1.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)}},Fv=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Xv({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=a8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:L,onSelectionEnd:M,onPaneClick:O,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:R,onPaneMouseMove:w,onPaneMouseLeave:P,children:V}){let S=W1.useRef(0),C=d0(),{userSelectionActive:y,elementsSelectable:N,dragging:v,panBy:D,autoPanSpeed:x}=L0(Fv,i0),E=N&&(Q||y),u=W1.useRef(null),b=W1.useRef(),m=W1.useRef(new Set),s=W1.useRef(new Set),U1=W1.useRef(!1),Q1=W1.useRef(!1),h=W1.useRef({x:0,y:0}),g=W1.useRef(!1),p=(G1)=>{if(Q1.current||U1.current||C.getState().connection.inProgress){Q1.current=!1,U1.current=!1;return}O?.(G1),C.getState().resetSelectedElements(),C.setState({nodesSelectionActive:!1})},c=(G1)=>{if(Array.isArray(K)&&K?.includes(2)){G1.preventDefault();return}T?.(G1)},l=A?(G1)=>A(G1):void 0,o=(G1)=>{if(Q1.current)G1.stopPropagation(),Q1.current=!1},k=(G1)=>{if(G1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:R1,transform:f1}=C.getState();if(b.current=R1?.getBoundingClientRect(),!b.current)return;let z1=G1.target===u.current;if(!z1&&!!G1.target.closest(".nokey")||!Q||!(W&&z1||U)||G1.button!==0||!G1.isPrimary)return;G1.target?.setPointerCapture?.(G1.pointerId),Q1.current=!1;let{x:c1,y:D1}=_4(G1.nativeEvent,b.current),A1=P9({x:c1,y:D1},f1);if(C.setState({userSelectionRect:{width:0,height:0,startX:A1.x,startY:A1.y,x:c1,y:D1}}),!z1)G1.stopPropagation(),G1.preventDefault()};function t(G1,R1){let{userSelectionRect:f1}=C.getState();if(!f1)return;let{transform:z1,nodeLookup:C1,edgeLookup:b1,connectionLookup:c1,triggerNodeChanges:D1,triggerEdgeChanges:A1,defaultEdgeOptions:e1}=C.getState(),k1={x:f1.startX,y:f1.startY},{x:g0,y:_0}=t8(k1,z1),t0={startX:k1.x,startY:k1.y,x:G1<g0?G1:g0,y:R1<_0?R1:_0,width:Math.abs(G1-g0),height:Math.abs(R1-_0)},C2=m.current,u2=s.current;m.current=new Set(cq(C1,t0,z1,Z===a8.Partial,!0).map((f2)=>f2.id)),s.current=new Set;let b2=e1?.selectable??!0;for(let f2 of m.current){let T2=c1.get(f2);if(!T2)continue;for(let{edgeId:G2}of T2.values()){let R2=b1.get(G2);if(R2&&(R2.selectable??b2))s.current.add(G2)}}if(!bK(C2,m.current)){let f2=C9(C1,m.current,!0);D1(f2)}if(!bK(u2,s.current)){let f2=C9(b1,s.current);A1(f2)}C.setState({userSelectionRect:t0,userSelectionActive:!0,nodesSelectionActive:!1})}function _1(){if(!H||!b.current)return;let[G1,R1]=lq(h.current,b.current,x);D({x:G1,y:R1}).then((f1)=>{if(!Q1.current||!f1){S.current=requestAnimationFrame(_1);return}let{x:z1,y:C1}=h.current;t(z1,C1),S.current=requestAnimationFrame(_1)})}let a=()=>{cancelAnimationFrame(S.current),S.current=0,g.current=!1};W1.useEffect(()=>{return()=>a()},[]);let H1=(G1)=>{let{userSelectionRect:R1,transform:f1,resetSelectedElements:z1}=C.getState();if(!b.current||!R1)return;let{x:C1,y:b1}=_4(G1.nativeEvent,b.current);h.current={x:C1,y:b1};let c1=t8({x:R1.startX,y:R1.startY},f1);if(!Q1.current){let D1=U?0:Y;if(Math.hypot(C1-c1.x,b1-c1.y)<=D1)return;z1(),L?.(G1)}if(Q1.current=!0,!g.current)_1(),g.current=!0;t(C1,b1)},O1=(G1)=>{if(!E){if(G1.target===u.current&&C.getState().connection.inProgress)U1.current=!0;return}if(G1.button!==0)return;if(G1.target?.releasePointerCapture?.(G1.pointerId),!y&&G1.target===u.current&&C.getState().userSelectionRect)p?.(G1);if(C.setState({userSelectionActive:!1,userSelectionRect:null}),Q1.current)M?.(G1),C.setState({nodesSelectionActive:m.current.size>0});a()},L1=(G1)=>{G1.target?.releasePointerCapture?.(G1.pointerId),a()},T1=K===!0||Array.isArray(K)&&K.includes(0);return K1.jsxs("div",{className:_2(["react-flow__pane",{draggable:T1,dragging:v,selection:Q}]),onClick:E?void 0:aK(p,u),onContextMenu:aK(c,u),onWheel:aK(l,u),onPointerEnter:E?void 0:R,onPointerMove:E?H1:w,onPointerUp:O1,onPointerCancel:E?L1:void 0,onPointerDownCapture:E?k:void 0,onClickCapture:E?o:void 0,onPointerLeave:P,ref:u,style:ZU,children:[V,K1.jsx(Zv,{})]})}function tK({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:L,onError:M}=U.getState(),O=L.get(Q);if(!O){M?.("012",F5.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!O.selected)H([Q]);else if(Z||O.selected&&W)Y({nodes:[O],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function BR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let L=d0(),[M,O]=W1.useState(!1),T=W1.useRef();return W1.useEffect(()=>{if(U)return;return T.current=YT({getStoreItems:()=>L.getState(),onNodeMouseDown:(A)=>{tK({id:A,store:L,nodeRef:Q})},onDragStart:()=>{O(!0)},onDragStop:()=>{O(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,L,Q]),W1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,K,U,Y,Q,H,W]),M}var Kv=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function AR(){let Q=d0();return W1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:L,updateNodePositions:M,nodeLookup:O,nodeOrigin:T}=Q.getState(),A=new Map,R=Kv(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 O){if(!R(C))continue;let y={x:C.internals.positionAbsolute.x+V,y:C.internals.positionAbsolute.y+S};if(H)y=w9(y,Y);let{position:N,positionAbsolute:v}=jK({nodeId:C.id,nextPosition:y,nodeLookup:O,nodeExtent:K,nodeOrigin:T,onError:L});C.position=N,C.internals.positionAbsolute=v,A.set(C.id,C)}M(A)},[])}var oK=W1.createContext(null),Hv=oK.Provider;oK.Consumer;var nK=()=>{return W1.useContext(oK)},Yv=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),MR=W1.createContext(null);function zv({children:Q}){let U=L0(Yv,i0);return K1.jsx(MR.Provider,{value:U,children:Q})}function Wv(){let Q=W1.useContext(MR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Lv={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Bv=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=K,{fromHandle:L,toHandle:M,isValid:O}=W;if(!L&&!H)return Lv;let T=M?.nodeId===Q&&M?.id===U&&M?.type===Z;return{connectingFrom:L?.nodeId===Q&&L?.id===U&&L?.type===Z,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===l6.Strict?L?.type!==Z:Q!==L?.nodeId||U!==L?.id,connectionInProcess:!!L,clickConnectionInProcess:!!H,valid:T&&O}};function Av({type:Q="source",position:U=E1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:L,children:M,className:O,onMouseDown:T,onTouchStart:A,...R},w){let P=W||null,V=Q==="target",S=d0(),C=nK(),{connectOnClick:y,noPanClassName:N,rfId:v}=Wv(),{connectingFrom:D,connectingTo:x,clickConnecting:E,isPossibleEndHandle:u,connectionInProcess:b,clickConnectionInProcess:m,valid:s}=L0(Bv(C,P,Q),i0);if(!C)S.getState().onError?.("010",F5.error010());let U1=(g)=>{let{defaultEdgeOptions:p,onConnect:c,hasDefaultEdges:l}=S.getState(),o={...p,...g};if(l){let{edges:k,setEdges:t,onError:_1}=S.getState();t(sS(o,k,{onError:_1}))}c?.(o),L?.(o)},Q1=(g)=>{if(!C)return;let p=mK(g.nativeEvent);if(H&&(p&&g.button===0||!p)){let c=S.getState();_U.onPointerDown(g.nativeEvent,{handleDomNode:g.currentTarget,autoPanOnConnect:c.autoPanOnConnect,connectionMode:c.connectionMode,connectionRadius:c.connectionRadius,domNode:c.domNode,nodeLookup:c.nodeLookup,lib:c.lib,isTarget:V,handleId:P,nodeId:C,flowId:c.rfId,panBy:c.panBy,cancelConnection:c.cancelConnection,onConnectStart:c.onConnectStart,onConnectEnd:(...l)=>S.getState().onConnectEnd?.(...l),updateConnection:c.updateConnection,onConnect:U1,isValidConnection:Z||((...l)=>S.getState().isValidConnection?.(...l)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:c.autoPanSpeed,dragThreshold:c.connectionDragThreshold})}if(p)T?.(g);else A?.(g)},h=(g)=>{let{onClickConnectStart:p,onClickConnectEnd:c,connectionClickStartHandle:l,connectionMode:o,isValidConnection:k,lib:t,rfId:_1,nodeLookup:a,connection:H1}=S.getState();if(!C||!l&&!H)return;if(!l){p?.(g.nativeEvent,{nodeId:C,handleId:P,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:C,type:Q,id:P}});return}let O1=hK(g.target),L1=Z||k,{connection:T1,isValid:G1}=_U.isValid(g.nativeEvent,{handle:{nodeId:C,id:P,type:Q},connectionMode:o,fromNodeId:l.nodeId,fromHandleId:l.id||null,fromType:l.type,isValidConnection:L1,flowId:_1,doc:O1,lib:t,nodeLookup:a});if(G1&&T1)U1(T1);let R1=structuredClone(H1);delete R1.inProgress,R1.toPosition=R1.toHandle?R1.toHandle.position:null,c?.(g,R1),S.setState({connectionClickStartHandle:null})};return K1.jsx("div",{"data-handleid":P,"data-nodeid":C,"data-handlepos":U,"data-id":`${v}-${C}-${P}-${Q}`,className:_2(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",N,O,{source:!V,target:V,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:E,connectingfrom:D,connectingto:x,valid:s,connectionindicator:K&&(!b||u)&&(b||m?Y:H)}]),onMouseDown:Q1,onTouchStart:Q1,onClick:y?h:void 0,ref:w,...R,children:M})}var qU=W1.memo(zR(Av));function Mv({data:Q,isConnectable:U,sourcePosition:Z=E1.Bottom}){return K1.jsxs(K1.Fragment,{children:[Q?.label,K1.jsx(qU,{type:"source",position:Z,isConnectable:U})]})}function Tv({data:Q,isConnectable:U,targetPosition:Z=E1.Top,sourcePosition:K=E1.Bottom}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:Z,isConnectable:U}),Q?.label,K1.jsx(qU,{type:"source",position:K,isConnectable:U})]})}function Rv(){return null}function Ov({data:Q,isConnectable:U,targetPosition:Z=E1.Top}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var UU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},dT={input:Mv,default:Tv,output:Ov,group:Rv};function Iv(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 wv=(Q)=>{let{width:U,height:Z,x:K,y:H}=n8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:e5(U)?U:null,height:e5(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 Pv({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=d0(),{width:H,height:Y,transformString:W,userSelectionActive:L}=L0(wv,i0),M=AR(),O=W1.useRef(null);W1.useEffect(()=>{if(!Z)O.current?.focus({preventScroll:!0})},[Z]);let T=!L&&H!==null&&Y!==null;if(BR({nodeRef:O,disabled:!T}),!T)return null;let A=Q?(w)=>{let P=K.getState().nodes.filter((V)=>V.selected);Q(w,P)}:void 0,R=(w)=>{if(Object.prototype.hasOwnProperty.call(UU,w.key))w.preventDefault(),M({direction:UU[w.key],factor:w.shiftKey?4:1})};return K1.jsx("div",{className:_2(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:K1.jsx("div",{ref:O,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:R,style:{width:H,height:Y}})})}var rT=typeof window<"u"?window:void 0,Nv=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function TR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:L,deleteKeyCode:M,selectionKeyCode:O,selectionOnDrag:T,selectionMode:A,onSelectionStart:R,onSelectionEnd:w,multiSelectionKeyCode:P,panActivationKeyCode:V,zoomActivationKeyCode:S,elementsSelectable:C,zoomOnScroll:y,zoomOnPinch:N,panOnScroll:v,panOnScrollSpeed:D,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:u,autoPanOnSelection:b,defaultViewport:m,translateExtent:s,minZoom:U1,maxZoom:Q1,preventScrolling:h,onSelectionContextMenu:g,noWheelClassName:p,noPanClassName:c,disableKeyboardA11y:l,onViewportChange:o,isControlledViewport:k}){let{nodesSelectionActive:t,userSelectionActive:_1}=L0(Nv,i0),a=cJ(O,{target:rT}),H1=cJ(V,{target:rT}),O1=H1||u,L1=H1||v,T1=T&&O1!==!0,G1=a||_1||T1;return $v({deleteKeyCode:M,multiSelectionKeyCode:P}),K1.jsx(Uv,{onPaneContextMenu:Y,elementsSelectable:C,zoomOnScroll:y,zoomOnPinch:N,panOnScroll:L1,panActivationKeyPressed:H1,panOnScrollSpeed:D,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:!a&&O1,defaultViewport:m,translateExtent:s,minZoom:U1,maxZoom:Q1,zoomActivationKeyCode:S,preventScrolling:h,noWheelClassName:p,noPanClassName:c,onViewportChange:o,isControlledViewport:k,paneClickDistance:L,selectionOnDrag:T1,children:K1.jsxs(Xv,{onSelectionStart:R,onSelectionEnd:w,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:O1,autoPanOnSelection:b,isSelecting:!!G1,selectionMode:A,selectionKeyPressed:a,paneClickDistance:L,selectionOnDrag:T1,children:[Q,t&&K1.jsx(Pv,{onSelectionContextMenu:g,noPanClassName:c,disableKeyboardA11y:l})]})})}TR.displayName="FlowRenderer";var Cv=W1.memo(TR),fv=(Q)=>(U)=>{return Q?cq(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 Sv(Q){return L0(W1.useCallback(fv(Q),[Q]),i0)}var vv=(Q)=>Q.updateNodeInternals;function jv(){let Q=L0(vv),[U]=W1.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 W1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Vv({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let H=d0(),Y=W1.useRef(null),W=W1.useRef(null),L=W1.useRef(Q.sourcePosition),M=W1.useRef(Q.targetPosition),O=W1.useRef(U),T=Z&&!!Q.internals.handleBounds;return W1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||W.current!==Y.current)){if(W.current)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[T,Q.hidden]),W1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),W1.useEffect(()=>{if(Y.current){let A=O.current!==U,R=L.current!==Q.sourcePosition,w=M.current!==Q.targetPosition;if(A||R||w)O.current=U,L.current=Q.sourcePosition,M.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 yv({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:L,elementsSelectable:M,nodesConnectable:O,nodesFocusable:T,resizeObserver:A,noDragClassName:R,noPanClassName:w,disableKeyboardA11y:P,rfId:V,nodeTypes:S,nodeClickDistance:C,onError:y}){let{node:N,internals:v,isParent:D}=L0((G1)=>{let R1=G1.nodeLookup.get(Q),f1=G1.parentLookup.has(Q);return{node:R1,internals:R1.internals,isParent:f1}},i0),x=N.type||"default",E=S?.[x]||dT[x];if(E===void 0)y?.("003",F5.error003(x)),x="default",E=S?.default||dT.default;let u=!!(N.draggable||L&&typeof N.draggable>"u"),b=!!(N.selectable||M&&typeof N.selectable>"u"),m=!!(N.connectable||O&&typeof N.connectable>"u"),s=!!(N.focusable||T&&typeof N.focusable>"u"),U1=d0(),Q1=DK(N),h=Vv({node:N,nodeType:x,hasDimensions:Q1,resizeObserver:A}),g=BR({nodeRef:h,disabled:N.hidden||!u,noDragClassName:R,handleSelector:N.dragHandle,nodeId:Q,isSelectable:b,nodeClickDistance:C}),p=AR();if(N.hidden)return null;let c=J4(N),l=Iv(N),o=b||u||U||Z||K||H,k=Z?(G1)=>Z(G1,{...v.userNode}):void 0,t=K?(G1)=>K(G1,{...v.userNode}):void 0,_1=H?(G1)=>H(G1,{...v.userNode}):void 0,a=Y?(G1)=>Y(G1,{...v.userNode}):void 0,H1=W?(G1)=>W(G1,{...v.userNode}):void 0,O1=(G1)=>{let{selectNodesOnDrag:R1,nodeDragThreshold:f1}=U1.getState();if(b&&(!R1||!u||f1>0))tK({id:Q,store:U1,nodeRef:h});if(U)U(G1,{...v.userNode})},L1=(G1)=>{if(xK(G1.nativeEvent)||P)return;if(PK.includes(G1.key)&&b){let R1=G1.key==="Escape";tK({id:Q,store:U1,unselect:R1,nodeRef:h})}else if(u&&N.selected&&Object.prototype.hasOwnProperty.call(UU,G1.key)){G1.preventDefault();let{ariaLabelConfig:R1}=U1.getState();U1.setState({ariaLiveMessage:R1["node.a11yDescription.ariaLiveMessage"]({direction:G1.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),p({direction:UU[G1.key],factor:G1.shiftKey?4:1})}},T1=()=>{if(P||!h.current?.matches(":focus-visible"))return;let{transform:G1,width:R1,height:f1,autoPanOnNodeFocus:z1,setCenter:C1}=U1.getState();if(!z1)return;if(!(cq(new Map([[Q,N]]),{x:0,y:0,width:R1,height:f1},G1,!0).length>0))C1(N.position.x+c.width/2,N.position.y+c.height/2,{zoom:G1[2]})};return K1.jsx("div",{className:_2(["react-flow__node",`react-flow__node-${x}`,{[w]:u},N.className,{selected:N.selected,selectable:b,parent:D,draggable:u,dragging:g}]),ref:h,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:Q1?"visible":"hidden",...N.style,...l},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:t,onMouseLeave:_1,onContextMenu:a,onClick:O1,onDoubleClick:H1,onKeyDown:s?L1:void 0,tabIndex:s?0:void 0,onFocus:s?T1:void 0,role:N.ariaRole??(s?"group":void 0),"aria-roledescription":"node","aria-describedby":P?void 0:`${FR}-${V}`,"aria-label":N.ariaLabel,...N.domAttributes,children:K1.jsx(Hv,{value:Q,children:K1.jsx(E,{id:Q,data:N.data,type:x,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:N.selected??!1,selectable:b,draggable:u,deletable:N.deletable??!0,isConnectable:m,sourcePosition:N.sourcePosition,targetPosition:N.targetPosition,dragging:g,dragHandle:N.dragHandle,zIndex:v.z,parentId:N.parentId,...c})})})}var kv=W1.memo(yv),Dv=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function RR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:H}=L0(Dv,i0),Y=Sv(Q.onlyRenderVisibleElements),W=jv();return K1.jsx("div",{className:"react-flow__nodes",style:ZU,children:Y.map((L)=>{return K1.jsx(kv,{id:L,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},L)})})}RR.displayName="NodeRenderer";var uv=W1.memo(RR);function bv(Q){return L0(W1.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&&JT({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(H.id)}return K},[Q]),i0)}var Ev=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return K1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},hv=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return K1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},aT={[T9.Arrow]:Ev,[T9.ArrowClosed]:hv};function xv(Q){let U=d0();return W1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(aT,Q))return U.getState().onError?.("009",F5.error009(Q)),null;return aT[Q]},[Q])}var mv=({id:Q,type:U,color:Z,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:L="auto-start-reverse"})=>{let M=xv(U);if(!M)return null;return K1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:L,refX:"0",refY:"0",children:K1.jsx(M,{color:Z,strokeWidth:W})})},OR=({defaultColor:Q,rfId:U})=>{let Z=L0((Y)=>Y.edges),K=L0((Y)=>Y.defaultEdgeOptions),H=W1.useMemo(()=>{return qT(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!H.length)return null;return K1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:K1.jsx("defs",{children:H.map((Y)=>K1.jsx(mv,{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))})})};OR.displayName="MarkerDefinitions";var gv=W1.memo(OR);function IR({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:L=2,children:M,className:O,...T}){let[A,R]=W1.useState({x:1,y:0,width:0,height:0}),w=_2(["react-flow__edge-textwrapper",O]),P=W1.useRef(null);if(W1.useEffect(()=>{if(P.current){let V=P.current.getBBox();R({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return K1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:w,visibility:A.width?"visible":"hidden",...T,children:[H&&K1.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:L,ry:L}),K1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:P,style:K,children:Z}),M]})}IR.displayName="EdgeText";var pv=W1.memo(IR);function FU({path:Q,labelX:U,labelY:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M,interactionWidth:O=20,...T}){return K1.jsxs(K1.Fragment,{children:[K1.jsx("path",{...T,d:Q,fill:"none",className:_2(["react-flow__edge-path",T.className])}),O?K1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:O,className:"react-flow__edge-interaction"}):null,K&&e5(U)&&e5(Z)?K1.jsx(pv,{x:U,y:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M}):null]})}function sT({pos:Q,x1:U,y1:Z,x2:K,y2:H}){if(Q===E1.Left||Q===E1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+H)]}function wR({sourceX:Q,sourceY:U,sourcePosition:Z=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top}){let[W,L]=sT({pos:Z,x1:Q,y1:U,x2:K,y2:H}),[M,O]=sT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[T,A,R,w]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:W,sourceControlY:L,targetControlX:M,targetControlY:O});return[`M${Q},${U} C${W},${L} ${M},${O} ${K},${H}`,T,A,R,w]}function PR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W,targetPosition:L,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})=>{let[y,N,v]=wR({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L}),D=Q.isInternal?void 0:U;return K1.jsx(FU,{id:D,path:y,labelX:N,labelY:v,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})})}var cv=PR({isInternal:!1}),NR=PR({isInternal:!0});cv.displayName="SimpleBezierEdge";NR.displayName="SimpleBezierEdgeInternal";function CR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,sourcePosition:w=E1.Bottom,targetPosition:P=E1.Top,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:y})=>{let[N,v,D]=pJ({sourceX:Z,sourceY:K,sourcePosition:w,targetX:H,targetY:Y,targetPosition:P,borderRadius:C?.borderRadius,offset:C?.offset,stepPosition:C?.stepPosition}),x=Q.isInternal?void 0:U;return K1.jsx(FU,{id:x,path:N,labelX:v,labelY:D,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:V,markerStart:S,interactionWidth:y})})}var fR=CR({isInternal:!1}),SR=CR({isInternal:!0});fR.displayName="SmoothStepEdge";SR.displayName="SmoothStepEdgeInternal";function vR(Q){return W1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return K1.jsx(fR,{...Z,id:K,pathOptions:W1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var lv=vR({isInternal:!1}),jR=vR({isInternal:!0});lv.displayName="StepEdge";jR.displayName="StepEdgeInternal";function VR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:w,markerStart:P,interactionWidth:V})=>{let[S,C,y]=tq({sourceX:Z,sourceY:K,targetX:H,targetY:Y}),N=Q.isInternal?void 0:U;return K1.jsx(FU,{id:N,path:S,labelX:C,labelY:y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:w,markerStart:P,interactionWidth:V})})}var iv=VR({isInternal:!1}),yR=VR({isInternal:!0});iv.displayName="StraightEdge";yR.displayName="StraightEdgeInternal";function kR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W=E1.Bottom,targetPosition:L=E1.Top,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:y})=>{let[N,v,D]=sq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L,curvature:C?.curvature}),x=Q.isInternal?void 0:U;return K1.jsx(FU,{id:x,path:N,labelX:v,labelY:D,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:y})})}var dv=kR({isInternal:!1}),DR=kR({isInternal:!0});dv.displayName="BezierEdge";DR.displayName="BezierEdgeInternal";var tT={default:DR,straight:yR,step:jR,smoothstep:SR,simplebezier:NR},oT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},rv=(Q,U,Z)=>{if(Z===E1.Left)return Q-U;if(Z===E1.Right)return Q+U;return Q},av=(Q,U,Z)=>{if(Z===E1.Top)return Q-U;if(Z===E1.Bottom)return Q+U;return Q},nT="react-flow__edgeupdater";function eT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:L}){return K1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:_2([nT,`${nT}-${L}`]),cx:rv(U,K,Q),cy:av(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function sv({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:H,targetX:Y,targetY:W,sourcePosition:L,targetPosition:M,onReconnect:O,onReconnectStart:T,onReconnectEnd:A,setReconnecting:R,setUpdateHover:w}){let P=d0(),V=(v,D)=>{if(v.button!==0)return;let{autoPanOnConnect:x,domNode:E,connectionMode:u,connectionRadius:b,lib:m,onConnectStart:s,cancelConnection:U1,nodeLookup:Q1,rfId:h,panBy:g,updateConnection:p}=P.getState(),c=D.type==="target",l=(t,_1)=>{R(!1),A?.(t,Z,D.type,_1)},o=(t)=>O?.(Z,t),k=(t,_1)=>{R(!0),T?.(v,Z,D.type),s?.(t,_1)};_U.onPointerDown(v.nativeEvent,{autoPanOnConnect:x,connectionMode:u,connectionRadius:b,domNode:E,handleId:D.id,nodeId:D.nodeId,nodeLookup:Q1,isTarget:c,edgeUpdaterType:D.type,lib:m,flowId:h,cancelConnection:U1,panBy:g,isValidConnection:(...t)=>P.getState().isValidConnection?.(...t)??!0,onConnect:o,onConnectStart:k,onConnectEnd:(...t)=>P.getState().onConnectEnd?.(...t),onReconnectEnd:l,updateConnection:p,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"}),y=()=>w(!0),N=()=>w(!1);return K1.jsxs(K1.Fragment,{children:[(Q===!0||Q==="source")&&K1.jsx(eT,{position:L,centerX:K,centerY:H,radius:U,onMouseDown:S,onMouseEnter:y,onMouseOut:N,type:"source"}),(Q===!0||Q==="target")&&K1.jsx(eT,{position:M,centerX:Y,centerY:W,radius:U,onMouseDown:C,onMouseEnter:y,onMouseOut:N,type:"target"})]})}function tv({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:w,rfId:P,edgeTypes:V,noPanClassName:S,onError:C,disableKeyboardA11y:y}){let N=L0((C1)=>C1.edgeLookup.get(Q)),v=L0((C1)=>C1.defaultEdgeOptions);N=v?{...v,...N}:N;let D=N.type||"default",x=V?.[D]||tT[D];if(x===void 0)C?.("011",F5.error011(D)),D="default",x=V?.default||tT.default;let E=!!(N.focusable||U&&typeof N.focusable>"u"),u=typeof A<"u"&&(N.reconnectable||Z&&typeof N.reconnectable>"u"),b=!!(N.selectable||K&&typeof N.selectable>"u"),m=W1.useRef(null),[s,U1]=W1.useState(!1),[Q1,h]=W1.useState(!1),g=d0(),{zIndex:p=N.zIndex,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1}=L0(W1.useCallback((C1)=>{let b1=C1.nodeLookup.get(N.source),c1=C1.nodeLookup.get(N.target);if(!b1||!c1)return oT;let D1=QT({id:Q,sourceNode:b1,targetNode:c1,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:C1.connectionMode,onError:C}),A1=_T({selected:N.selected,zIndex:N.zIndex,sourceNode:b1,targetNode:c1,elevateOnSelect:C1.elevateEdgesOnSelect,zIndexMode:C1.zIndexMode});return{...D1||oT,zIndex:A1}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex,C]),i0),a=W1.useMemo(()=>N.markerStart?`url('#${oq(N.markerStart,P)}')`:void 0,[N.markerStart,P]),H1=W1.useMemo(()=>N.markerEnd?`url('#${oq(N.markerEnd,P)}')`:void 0,[N.markerEnd,P]);if(N.hidden||c===null||l===null||o===null||k===null)return null;let O1=(C1)=>{let{addSelectedEdges:b1,unselectNodesAndEdges:c1,multiSelectionActive:D1}=g.getState();if(b)if(g.setState({nodesSelectionActive:!1}),N.selected&&D1)c1({nodes:[],edges:[N]}),m.current?.blur();else b1([Q]);if(H)H(C1,N)},L1=Y?(C1)=>{Y(C1,{...N})}:void 0,T1=W?(C1)=>{W(C1,{...N})}:void 0,G1=L?(C1)=>{L(C1,{...N})}:void 0,R1=M?(C1)=>{M(C1,{...N})}:void 0,f1=O?(C1)=>{O(C1,{...N})}:void 0,z1=(C1)=>{if(!y&&PK.includes(C1.key)&&b){let{unselectNodesAndEdges:b1,addSelectedEdges:c1}=g.getState();if(C1.key==="Escape")m.current?.blur(),b1({edges:[N]});else c1([Q])}};return K1.jsx("svg",{style:{zIndex:p},children:K1.jsxs("g",{className:_2(["react-flow__edge",`react-flow__edge-${D}`,N.className,S,{selected:N.selected,animated:N.animated,inactive:!b&&!H,updating:s,selectable:b}]),onClick:O1,onDoubleClick:L1,onContextMenu:T1,onMouseEnter:G1,onMouseMove:R1,onMouseLeave:f1,onKeyDown:E?z1:void 0,tabIndex:E?0:void 0,role:N.ariaRole??(E?"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":E?`${XR}-${P}`:void 0,ref:m,...N.domAttributes,children:[!Q1&&K1.jsx(x,{id:Q,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:b,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:a,markerEnd:H1,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),u&&K1.jsx(sv,{edge:N,isReconnectable:u,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:w,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1,setUpdateHover:U1,setReconnecting:h})]})})}var ov=W1.memo(tv),nv=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function uR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:L,onEdgeMouseMove:M,onEdgeMouseLeave:O,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:R,onReconnectStart:w,onReconnectEnd:P,disableKeyboardA11y:V}){let{edgesFocusable:S,edgesReconnectable:C,elementsSelectable:y,onError:N}=L0(nv,i0),v=bv(U);return K1.jsxs("div",{className:"react-flow__edges",children:[K1.jsx(gv,{defaultColor:Q,rfId:Z}),v.map((D)=>{return K1.jsx(ov,{id:D,edgesFocusable:S,edgesReconnectable:C,elementsSelectable:y,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,onClick:T,reconnectRadius:A,onDoubleClick:R,onReconnectStart:w,onReconnectEnd:P,rfId:Z,onError:N,edgeTypes:K,disableKeyboardA11y:V},D)})]})}uR.displayName="EdgeRenderer";var ev=W1.memo(uR),_R=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function _j({children:Q}){let U=d0(),Z=W1.useRef(null),[K]=W1.useState(()=>U.getState().transform);return WR(()=>{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=_R(W)};return Y(),U.subscribe(Y)},[U]),K1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:_R(K)},children:Q})}function Jj(Q){let U=lJ(),Z=W1.useRef(!1);W1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var $j=(Q)=>Q.panZoom?.syncViewport;function Qj(Q){let U=L0($j),Z=d0();return W1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function JR(Q){return Q.connection.inProgress?{...Q.connection,to:P9(Q.connection.to,Q.transform)}:{...Q.connection}}function qj(Q){if(Q)return(Z)=>{let K=JR(Z);return Q(K)};return JR}function Uj(Q){let U=qj(Q);return L0(U,i0)}var Gj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function Zj({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:H,width:Y,height:W,isValid:L,inProgress:M}=L0(Gj,i0);if(!(Y&&H&&M))return null;return K1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:K1.jsx("g",{className:_2(["react-flow__connection",EK(L)]),children:K1.jsx(bR,{style:U,type:Z,CustomComponent:K,isValid:L})})})}var bR=({style:Q,type:U=$3.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:L,fromPosition:M,to:O,toNode:T,toHandle:A,toPosition:R,pointer:w}=Uj();if(!H)return;if(Z)return K1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:L,fromX:Y.x,fromY:Y.y,toX:O.x,toY:O.y,fromPosition:M,toPosition:R,connectionStatus:EK(K),toNode:T,toHandle:A,pointer:w});let P="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:M,targetX:O.x,targetY:O.y,targetPosition:R};switch(U){case $3.Bezier:[P]=sq(V);break;case $3.SimpleBezier:[P]=wR(V);break;case $3.Step:[P]=pJ({...V,borderRadius:0});break;case $3.SmoothStep:[P]=pJ(V);break;default:[P]=tq(V)}return K1.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Q})};bR.displayName="ConnectionLine";var Fj={};function $R(Q=Fj){let U=W1.useRef(Q),Z=d0();W1.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",F5.error002());break}U.current=Q}},[Q])}function Xj(){let Q=d0(),U=W1.useRef(!1);W1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",F5.error013("react"));U.current=!0}},[])}function ER({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:R,onSelectionEnd:w,connectionLineType:P,connectionLineStyle:V,connectionLineComponent:S,connectionLineContainerStyle:C,selectionKeyCode:y,selectionOnDrag:N,selectionMode:v,multiSelectionKeyCode:D,panActivationKeyCode:x,zoomActivationKeyCode:E,deleteKeyCode:u,onlyRenderVisibleElements:b,elementsSelectable:m,defaultViewport:s,translateExtent:U1,minZoom:Q1,maxZoom:h,preventScrolling:g,defaultMarkerColor:p,zoomOnScroll:c,zoomOnPinch:l,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:t,zoomOnDoubleClick:_1,panOnDrag:a,autoPanOnSelection:H1,onPaneClick:O1,onPaneMouseEnter:L1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneScroll:R1,onPaneContextMenu:f1,paneClickDistance:z1,nodeClickDistance:C1,onEdgeContextMenu:b1,onEdgeMouseEnter:c1,onEdgeMouseMove:D1,onEdgeMouseLeave:A1,reconnectRadius:e1,onReconnect:k1,onReconnectStart:g0,onReconnectEnd:_0,noDragClassName:t0,noWheelClassName:C2,noPanClassName:u2,disableKeyboardA11y:b2,nodeExtent:f2,rfId:T2,viewport:G2,onViewportChange:R2,nodesDraggable:I4}){return $R(Q),$R(U),Xj(),Jj(Z),Qj(G2),K1.jsx(Cv,{onPaneClick:O1,onPaneMouseEnter:L1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneContextMenu:f1,onPaneScroll:R1,paneClickDistance:z1,deleteKeyCode:u,selectionKeyCode:y,selectionOnDrag:N,selectionMode:v,onSelectionStart:R,onSelectionEnd:w,multiSelectionKeyCode:D,panActivationKeyCode:x,zoomActivationKeyCode:E,elementsSelectable:m,zoomOnScroll:c,zoomOnPinch:l,zoomOnDoubleClick:_1,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:t,panOnDrag:a,autoPanOnSelection:H1,defaultViewport:s,translateExtent:U1,minZoom:Q1,maxZoom:h,onSelectionContextMenu:A,preventScrolling:g,noDragClassName:t0,noWheelClassName:C2,noPanClassName:u2,disableKeyboardA11y:b2,onViewportChange:R2,isControlledViewport:!!G2,children:K1.jsxs(_j,{children:[K1.jsx(ev,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:k1,onReconnectStart:g0,onReconnectEnd:_0,onlyRenderVisibleElements:b,onEdgeContextMenu:b1,onEdgeMouseEnter:c1,onEdgeMouseMove:D1,onEdgeMouseLeave:A1,reconnectRadius:e1,defaultMarkerColor:p,noPanClassName:u2,disableKeyboardA11y:b2,rfId:T2}),K1.jsx(Zj,{style:V,type:P,component:S,containerStyle:C}),K1.jsx("div",{className:"react-flow__edgelabel-renderer"}),K1.jsx(uv,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,nodeClickDistance:C1,onlyRenderVisibleElements:b,noPanClassName:u2,noDragClassName:t0,disableKeyboardA11y:b2,nodeExtent:f2,rfId:T2,nodesDraggable:I4}),K1.jsx("div",{className:"react-flow__viewport-portal"})]})})}ER.displayName="GraphView";var Kj=W1.memo(ER),Hj=kK("React Flow","https://reactflow.dev/"),QR=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M=0.5,maxZoom:O=2,nodeOrigin:T,nodeExtent:A,zIndexMode:R="basic"}={})=>{let w=new Map,P=new Map,V=new Map,S=new Map,C=K??U??[],y=Z??Q??[],N=T??[0,0],v=A??O9;dK(V,S,C);let{nodesInitialized:D}=nq(y,w,P,{nodeOrigin:N,nodeExtent:v,zIndexMode:R}),x=[0,0,1];if(W&&H&&Y){let E=n8(w,{filter:(s)=>!!((s.width||s.initialWidth)&&(s.height||s.initialHeight))}),{x:u,y:b,zoom:m}=gJ(E,H,Y,M,O,L?.padding??0.1);x=[u,b,m]}return{rfId:"1",width:H??0,height:Y??0,transform:x,nodes:y,nodesInitialized:D,nodeLookup:w,parentLookup:P,edges:C,edgeLookup:S,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:M,maxZoom:O,translateExtent:O9,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:l6.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:L,fitViewResolver:null,connection:{...CK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Hj,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:NK,zIndexMode:R,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}},Yj=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R})=>yT((w,P)=>{async function V(){let{nodeLookup:S,panZoom:C,fitViewOptions:y,fitViewResolver:N,width:v,height:D,minZoom:x,maxZoom:E}=P();if(!C)return;await rM({nodes:S,width:v,height:D,panZoom:C,minZoom:x,maxZoom:E},y),N?.resolve(!0),w({fitViewResolver:null})}return{...QR({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,defaultNodes:Z,defaultEdges:K,zIndexMode:R}),setNodes:(S)=>{let{nodeLookup:C,parentLookup:y,nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:D,fitViewQueued:x,zIndexMode:E,nodesSelectionActive:u}=P(),{nodesInitialized:b,hasSelectedNodes:m}=nq(S,C,y,{nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:D,checkEquality:!0,zIndexMode:E}),s=u&&m;if(x&&b)V(),w({nodes:S,nodesInitialized:b,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:s});else w({nodes:S,nodesInitialized:b,nodesSelectionActive:s})},setEdges:(S)=>{let{connectionLookup:C,edgeLookup:y}=P();dK(C,y,S),w({edges:S})},setDefaultNodesAndEdges:(S,C)=>{if(S){let{setNodes:y}=P();y(S),w({hasDefaultNodes:!0})}if(C){let{setEdges:y}=P();y(C),w({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:C,nodeLookup:y,parentLookup:N,domNode:v,nodeOrigin:D,nodeExtent:x,debug:E,fitViewQueued:u,zIndexMode:b}=P(),{changes:m,updatedInternals:s}=XT(S,y,N,v,D,x,b);if(!s)return;if(ZT(y,N,{nodeOrigin:D,nodeExtent:x,zIndexMode:b}),u)V(),w({fitViewQueued:!1,fitViewOptions:void 0});else w({});if(m?.length>0){if(E)console.log("React Flow: trigger node changes",m);C?.(m)}},updateNodePositions:(S,C=!1)=>{let y=[],N=[],{nodeLookup:v,triggerNodeChanges:D,connection:x,updateConnection:E,onNodesChangeMiddlewareMap:u}=P();for(let[b,m]of S){let s=v.get(b),U1=!!(s?.expandParent&&s?.parentId&&m?.position),Q1={id:b,type:"position",position:U1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:C};if(s&&x.inProgress&&x.fromNode.id===s.id){let h=i6(s,x.fromHandle,E1.Left,!0);E({...x,from:h})}if(U1&&s.parentId)y.push({id:b,parentId:s.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});N.push(Q1)}if(y.length>0){let{parentLookup:b,nodeOrigin:m}=P(),s=eq(y,v,b,m);N.push(...s)}for(let b of u.values())N=b(N);D(N)},triggerNodeChanges:(S)=>{let{onNodesChange:C,setNodes:y,nodes:N,hasDefaultNodes:v,debug:D}=P();if(S?.length){if(v){let x=YR(S,N);y(x)}if(D)console.log("React Flow: trigger node changes",S);C?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:C,setEdges:y,edges:N,hasDefaultEdges:v,debug:D}=P();if(S?.length){if(v){let x=rS(S,N);y(x)}if(D)console.log("React Flow: trigger edge changes",S);C?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:C,edgeLookup:y,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:D}=P();if(C){let x=S.map((E)=>e8(E,!0));v(x);return}v(C9(N,new Set([...S]),!0)),D(C9(y))},addSelectedEdges:(S)=>{let{multiSelectionActive:C,edgeLookup:y,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:D}=P();if(C){let x=S.map((E)=>e8(E,!0));D(x);return}D(C9(y,new Set([...S]))),v(C9(N,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:C}={})=>{let{edges:y,nodes:N,nodeLookup:v,triggerNodeChanges:D,triggerEdgeChanges:x}=P(),E=S?S:N,u=C?C:y,b=[];for(let s of E){if(!s.selected)continue;let U1=v.get(s.id);if(U1)U1.selected=!1;b.push(e8(s.id,!1))}let m=[];for(let s of u){if(!s.selected)continue;m.push(e8(s.id,!1))}D(b),x(m)},setMinZoom:(S)=>{let{panZoom:C,maxZoom:y}=P();C?.setScaleExtent([S,y]),w({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:C,minZoom:y}=P();C?.setScaleExtent([y,S]),w({maxZoom:S})},setTranslateExtent:(S)=>{P().panZoom?.setTranslateExtent(S),w({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:C,triggerNodeChanges:y,triggerEdgeChanges:N,elementsSelectable:v}=P();if(!v)return;let D=C.reduce((E,u)=>u.selected?[...E,e8(u.id,!1)]:E,[]),x=S.reduce((E,u)=>u.selected?[...E,e8(u.id,!1)]:E,[]);y(D),N(x)},setNodeExtent:(S)=>{let{nodes:C,nodeLookup:y,parentLookup:N,nodeOrigin:v,elevateNodesOnSelect:D,nodeExtent:x,zIndexMode:E}=P();if(S[0][0]===x[0][0]&&S[0][1]===x[0][1]&&S[1][0]===x[1][0]&&S[1][1]===x[1][1])return;nq(C,y,N,{nodeOrigin:v,nodeExtent:S,elevateNodesOnSelect:D,checkEquality:!1,zIndexMode:E}),w({nodeExtent:S})},panBy:(S)=>{let{transform:C,width:y,height:N,panZoom:v,translateExtent:D}=P();return KT({delta:S,panZoom:v,transform:C,translateExtent:D,width:y,height:N})},setCenter:async(S,C,y)=>{let{width:N,height:v,maxZoom:D,panZoom:x}=P();if(!x)return!1;let E=typeof y?.zoom<"u"?y.zoom:D;return await x.setViewport({x:N/2-S*E,y:v/2-C*E,zoom:E},{duration:y?.duration,ease:y?.ease,interpolate:y?.interpolate}),!0},cancelConnection:()=>{w({connection:{...CK}})},updateConnection:(S)=>{w({connection:S})},reset:()=>w({...QR()})}},Object.is);function eK({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:L,initialFitViewOptions:M,fitView:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R,children:w}){let[P]=W1.useState(()=>Yj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:O,minZoom:W,maxZoom:L,fitViewOptions:M,nodeOrigin:T,nodeExtent:A,zIndexMode:R}));return K1.jsx(fS,{value:P,children:K1.jsx(nS,{children:K1.jsx(zv,{children:w})})})}function zj({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:H,width:Y,height:W,fitView:L,fitViewOptions:M,minZoom:O,maxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:w}){if(W1.useContext(GU))return K1.jsx(K1.Fragment,{children:Q});return K1.jsx(eK,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:L,initialFitViewOptions:M,initialMinZoom:O,initialMaxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:w,children:Q})}var Wj={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Lj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:L,onEdgeClick:M,onInit:O,onMove:T,onMoveStart:A,onMoveEnd:R,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,onNodeMouseEnter:y,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:x,onNodeDragStart:E,onNodeDrag:u,onNodeDragStop:b,onNodesDelete:m,onEdgesDelete:s,onDelete:U1,onSelectionChange:Q1,onSelectionDragStart:h,onSelectionDrag:g,onSelectionDragStop:p,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:o,onBeforeDelete:k,connectionMode:t,connectionLineType:_1=$3.Bezier,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:O1,deleteKeyCode:L1="Backspace",selectionKeyCode:T1="Shift",selectionOnDrag:G1=!1,selectionMode:R1=a8.Full,panActivationKeyCode:f1="Space",multiSelectionKeyCode:z1=N9()?"Meta":"Control",zoomActivationKeyCode:C1=N9()?"Meta":"Control",snapToGrid:b1,snapGrid:c1,onlyRenderVisibleElements:D1=!1,selectNodesOnDrag:A1,nodesDraggable:e1,autoPanOnNodeFocus:k1,nodesConnectable:g0,nodesFocusable:_0,nodeOrigin:t0=KR,edgesFocusable:C2,edgesReconnectable:u2,elementsSelectable:b2=!0,defaultViewport:f2=mS,minZoom:T2=0.5,maxZoom:G2=2,translateExtent:R2=O9,preventScrolling:I4=!0,nodeExtent:X5,defaultMarkerColor:x5="#b1b1b7",zoomOnScroll:q4=!0,zoomOnPinch:R5=!0,panOnScroll:G3=!1,panOnScrollSpeed:O5=0.5,panOnScrollMode:j=h3.Free,zoomOnDoubleClick:q1=!0,panOnDrag:I1=!0,onPaneClick:P1,onPaneMouseEnter:y1,onPaneMouseMove:i1,onPaneMouseLeave:r1,onPaneScroll:F0,onPaneContextMenu:x1,paneClickDistance:K2=1,nodeClickDistance:E2=0,children:$1,onReconnect:B1,onReconnectStart:v1,onReconnectEnd:V1,onEdgeContextMenu:Q0,onEdgeDoubleClick:u1,onEdgeMouseEnter:m1,onEdgeMouseMove:J0,onEdgeMouseLeave:T0,reconnectRadius:Z2=10,onNodesChange:K0,onEdgesChange:S2,noDragClassName:w0="nodrag",noWheelClassName:Z7="nowheel",noPanClassName:K5="nopan",fitView:V0,fitViewOptions:F7,connectOnClick:sJ,attributionPosition:tJ,proOptions:r3,defaultEdgeOptions:oJ,elevateNodesOnSelect:nJ=!0,elevateEdgesOnSelect:eJ=!1,disableKeyboardA11y:j9=!1,autoPanOnConnect:_$,autoPanOnNodeDrag:o2,autoPanOnSelection:a3=!0,autoPanSpeed:Z3,connectionRadius:J$,isValidConnection:a6,onError:X7,style:V9,id:s3,nodeDragThreshold:t3,connectionDragThreshold:y9,viewport:BU,onViewportChange:AU,width:$$,height:k9,colorMode:D9="light",debug:Q$,onScroll:u9,ariaLabelConfig:q$,zIndexMode:U$="basic",...G$},b9){let o3=s3||"1",s6=lS(D9),MU=W1.useCallback((E9)=>{E9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),u9?.(E9)},[u9]);return K1.jsx("div",{"data-testid":"rf__wrapper",...G$,onScroll:MU,style:{...V9,...Wj},ref:b9,className:_2(["react-flow",H,s6]),id:s3,role:"application",children:K1.jsxs(zj,{nodes:Q,edges:U,width:$$,height:k9,fitView:V0,fitViewOptions:F7,minZoom:T2,maxZoom:G2,nodeOrigin:t0,nodeExtent:X5,zIndexMode:U$,children:[K1.jsx(cS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,nodesDraggable:e1,autoPanOnNodeFocus:k1,nodesConnectable:g0,nodesFocusable:_0,edgesFocusable:C2,edgesReconnectable:u2,elementsSelectable:b2,elevateNodesOnSelect:nJ,elevateEdgesOnSelect:eJ,minZoom:T2,maxZoom:G2,nodeExtent:X5,onNodesChange:K0,onEdgesChange:S2,snapToGrid:b1,snapGrid:c1,connectionMode:t,translateExtent:R2,connectOnClick:sJ,defaultEdgeOptions:oJ,fitView:V0,fitViewOptions:F7,onNodesDelete:m,onEdgesDelete:s,onDelete:U1,onNodeDragStart:E,onNodeDrag:u,onNodeDragStop:b,onSelectionDrag:g,onSelectionDragStart:h,onSelectionDragStop:p,onMove:T,onMoveStart:A,onMoveEnd:R,noPanClassName:K5,nodeOrigin:t0,rfId:o3,autoPanOnConnect:_$,autoPanOnNodeDrag:o2,autoPanSpeed:Z3,onError:X7,connectionRadius:J$,isValidConnection:a6,selectNodesOnDrag:A1,nodeDragThreshold:t3,connectionDragThreshold:y9,onBeforeDelete:k,debug:Q$,ariaLabelConfig:q$,zIndexMode:U$}),K1.jsx(Kj,{onInit:O,onNodeClick:L,onEdgeClick:M,onNodeMouseEnter:y,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:x,nodeTypes:Y,edgeTypes:W,connectionLineType:_1,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:O1,selectionKeyCode:T1,selectionOnDrag:G1,selectionMode:R1,deleteKeyCode:L1,multiSelectionKeyCode:z1,panActivationKeyCode:f1,zoomActivationKeyCode:C1,onlyRenderVisibleElements:D1,defaultViewport:f2,translateExtent:R2,minZoom:T2,maxZoom:G2,preventScrolling:I4,zoomOnScroll:q4,zoomOnPinch:R5,zoomOnDoubleClick:q1,panOnScroll:G3,panOnScrollSpeed:O5,panOnScrollMode:j,panOnDrag:I1,autoPanOnSelection:a3,onPaneClick:P1,onPaneMouseEnter:y1,onPaneMouseMove:i1,onPaneMouseLeave:r1,onPaneScroll:F0,onPaneContextMenu:x1,paneClickDistance:K2,nodeClickDistance:E2,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:o,onReconnect:B1,onReconnectStart:v1,onReconnectEnd:V1,onEdgeContextMenu:Q0,onEdgeDoubleClick:u1,onEdgeMouseEnter:m1,onEdgeMouseMove:J0,onEdgeMouseLeave:T0,reconnectRadius:Z2,defaultMarkerColor:x5,noDragClassName:w0,noWheelClassName:Z7,noPanClassName:K5,rfId:o3,disableKeyboardA11y:j9,nodeExtent:X5,viewport:BU,onViewportChange:AU,nodesDraggable:e1}),K1.jsx(xS,{onSelectionChange:Q1}),$1,K1.jsx(DS,{proOptions:r3,position:tJ}),K1.jsx(kS,{rfId:o3,disableKeyboardA11y:j9})]})})}var hR=zR(Lj);function xR(Q){let[U,Z]=W1.useState(Q),K=W1.useCallback((H)=>Z((Y)=>YR(H,Y)),[]);return[U,Z,K]}var kg=F5.error014();function Bj({dimensions:Q,lineWidth:U,variant:Z,className:K}){return K1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:_2(["react-flow__background-pattern",Z,K])})}function Aj({radius:Q,className:U}){return K1.jsx("circle",{cx:Q,cy:Q,r:Q,className:_2(["react-flow__background-pattern","dots",U])})}var Q3;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(Q3||(Q3={}));var Mj={[Q3.Dots]:1,[Q3.Lines]:1,[Q3.Cross]:6},Tj=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function mR({id:Q,variant:U=Q3.Dots,gap:Z=20,size:K,lineWidth:H=1,offset:Y=0,color:W,bgColor:L,style:M,className:O,patternClassName:T}){let A=W1.useRef(null),{transform:R,patternId:w}=L0(Tj,i0),P=K||Mj[U],V=U===Q3.Dots,S=U===Q3.Cross,C=Array.isArray(Z)?Z:[Z,Z],y=[C[0]*R[2]||1,C[1]*R[2]||1],N=P*R[2],v=Array.isArray(Y)?Y:[Y,Y],D=S?[N,N]:y,x=[v[0]*R[2]+D[0]/2,v[1]*R[2]+D[1]/2],E=`${w}${Q?Q:""}`;return K1.jsxs("svg",{className:_2(["react-flow__background",O]),style:{...M,...ZU,"--xy-background-color-props":L,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[K1.jsx("pattern",{id:E,x:R[0]%y[0],y:R[1]%y[1],width:y[0],height:y[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`,children:V?K1.jsx(Aj,{radius:N/2,className:T}):K1.jsx(Bj,{dimensions:D,lineWidth:H,variant:U,className:T})}),K1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}mR.displayName="Background";var gR=W1.memo(mR);function Rj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:K1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Oj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:K1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Ij(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:K1.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 wj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:K1.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 Pj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:K1.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 QU({children:Q,className:U,...Z}){return K1.jsx("button",{type:"button",className:_2(["react-flow__controls-button",U]),...Z,children:Q})}var Nj=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function pR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:L,onInteractiveChange:M,className:O,children:T,position:A="bottom-left",orientation:R="vertical","aria-label":w}){let P=d0(),{isInteractive:V,minZoomReached:S,maxZoomReached:C,ariaLabelConfig:y}=L0(Nj,i0),{zoomIn:N,zoomOut:v,fitView:D}=lJ(),x=()=>{N(),Y?.()},E=()=>{v(),W?.()},u=()=>{D(H),L?.()},b=()=>{P.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),M?.(!V)};return K1.jsxs(q3,{className:_2(["react-flow__controls",R==="horizontal"?"horizontal":"vertical",O]),position:A,style:Q,"data-testid":"rf__controls","aria-label":w??y["controls.ariaLabel"],children:[U&&K1.jsxs(K1.Fragment,{children:[K1.jsx(QU,{onClick:x,className:"react-flow__controls-zoomin",title:y["controls.zoomIn.ariaLabel"],"aria-label":y["controls.zoomIn.ariaLabel"],disabled:C,children:K1.jsx(Rj,{})}),K1.jsx(QU,{onClick:E,className:"react-flow__controls-zoomout",title:y["controls.zoomOut.ariaLabel"],"aria-label":y["controls.zoomOut.ariaLabel"],disabled:S,children:K1.jsx(Oj,{})})]}),Z&&K1.jsx(QU,{className:"react-flow__controls-fitview",onClick:u,title:y["controls.fitView.ariaLabel"],"aria-label":y["controls.fitView.ariaLabel"],children:K1.jsx(Ij,{})}),K&&K1.jsx(QU,{className:"react-flow__controls-interactive",onClick:b,title:y["controls.interactive.ariaLabel"],"aria-label":y["controls.interactive.ariaLabel"],children:V?K1.jsx(Pj,{}):K1.jsx(wj,{})}),T]})}pR.displayName="Controls";var cR=W1.memo(pR);function Cj({id:Q,x:U,y:Z,width:K,height:H,style:Y,color:W,strokeColor:L,strokeWidth:M,className:O,borderRadius:T,shapeRendering:A,selected:R,onClick:w}){let{background:P,backgroundColor:V}=Y||{},S=W||P||V;return K1.jsx("rect",{className:_2(["react-flow__minimap-node",{selected:R},O]),x:U,y:Z,rx:T,ry:T,width:K,height:H,style:{fill:S,stroke:L,strokeWidth:M},shapeRendering:A,onClick:w?(C)=>w(C,Q):void 0})}var fj=W1.memo(Cj),Sj=(Q)=>Q.nodes.map((U)=>U.id),sK=(Q)=>Q instanceof Function?Q:()=>Q;function vj({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=fj,onClick:W}){let L=L0(Sj,i0),M=sK(U),O=sK(Q),T=sK(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return K1.jsx(K1.Fragment,{children:L.map((R)=>K1.jsx(Vj,{id:R,nodeColorFunc:M,nodeStrokeColorFunc:O,nodeClassNameFunc:T,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},R))})}function jj({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:L,onClick:M}){let{node:O,x:T,y:A,width:R,height:w}=L0((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}=V.internals.positionAbsolute,{width:N,height:v}=J4(S);return{node:S,x:C,y,width:N,height:v}},i0);if(!O||O.hidden||!DK(O))return null;return K1.jsx(L,{x:T,y:A,width:R,height:w,style:O.style,selected:!!O.selected,className:K(O),color:U(O),borderRadius:H,strokeColor:Z(O),strokeWidth:Y,shapeRendering:W,onClick:M,id:O.id})}var Vj=W1.memo(jj),yj=W1.memo(vj),kj=200,Dj=150,uj=(Q)=>!Q.hidden,bj=(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(n8(Q.nodeLookup,{filter:uj}),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,Ej=(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,hj="react-flow__minimap-desc";function lR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:L,bgColor:M,maskColor:O,maskStrokeColor:T,maskStrokeWidth:A,position:R="bottom-right",onClick:w,onNodeClick:P,pannable:V=!1,zoomable:S=!1,ariaLabel:C,inversePan:y,zoomStep:N=1,offsetScale:v=5}){let D=d0(),x=W1.useRef(null),{boundingRect:E,panZoom:u,viewBB:b,rfId:m,translateExtent:s,flowWidth:U1,flowHeight:Q1,ariaLabelConfig:h}=L0(bj,Ej),g=Q?.width??kj,p=Q?.height??Dj,c=E.width/g,l=E.height/p,o=Math.max(c,l),k=o*g,t=o*p,_1=v*o,a=E.x-(k-E.width)/2-_1,H1=E.y-(t-E.height)/2-_1,O1=k+_1*2,L1=t+_1*2,T1=`${hj}-${m}`,G1=W1.useRef(0),R1=W1.useRef();G1.current=o,W1.useEffect(()=>{let c1=D.getState().panZoom;if(x.current&&c1)return R1.current=AT({domNode:x.current,panZoom:c1,getTransform:()=>D.getState().transform,getViewScale:()=>G1.current}),()=>{R1.current?.destroy()}},[u]),W1.useEffect(()=>{R1.current?.update({translateExtent:s,width:U1,height:Q1,inversePan:y,pannable:V,zoomStep:N,zoomable:S})},[V,S,y,N,s,U1,Q1]);let f1=w?(c1)=>{let[D1,A1]=R1.current?.pointer(c1)||[0,0];w(c1,{x:D1,y:A1})}:void 0,z1=W1.useCallback((c1,D1)=>{let A1=D.getState().nodeLookup.get(D1).internals.userNode;P?.(c1,A1)},[P]),C1=P?z1:void 0,b1=C??h["minimap.ariaLabel"];return K1.jsx(q3,{position:R,style:{...Q,"--xy-minimap-background-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-background-color-props":typeof O==="string"?O:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T: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:_2(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:K1.jsxs("svg",{width:g,height:p,viewBox:`${a} ${H1} ${O1} ${L1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":T1,ref:x,onClick:f1,children:[b1&&K1.jsx("title",{id:T1,children:b1}),K1.jsx(yj,{onClick:C1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:L}),K1.jsx("path",{className:"react-flow__minimap-mask",d:`M${a-_1},${H1-_1}h${O1+_1*2}v${L1+_1*2}h${-O1-_1*2}z
247
- M${b.x},${b.y}h${b.width}v${b.height}h${-b.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}lR.displayName="MiniMap";var iR=W1.memo(lR),xj=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,mj={[x3.Line]:"right",[x3.Handle]:"bottom-right"};function gj({nodeId:Q,position:U,variant:Z=x3.Handle,className:K,style:H=void 0,children:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:R,autoScale:w=!0,shouldResize:P,onResizeStart:V,onResize:S,onResizeEnd:C}){let y=nK(),N=typeof Q==="string"?Q:y,v=d0(),D=W1.useRef(null),x=Z===x3.Handle,E=L0(W1.useCallback(xj(x&&w),[x,w]),i0),u=W1.useRef(null),b=U??mj[Z];W1.useEffect(()=>{if(!D.current||!N)return;if(!u.current)u.current=PT({domNode:D.current,nodeId:N,getStoreItems:()=>{let{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,domNode:p}=v.getState();return{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,paneDomNode:p}},onChange:(s,U1)=>{let{triggerNodeChanges:Q1,nodeLookup:h,parentLookup:g,nodeOrigin:p}=v.getState(),c=[],l={x:s.x,y:s.y},o=h.get(N);if(o&&o.expandParent&&o.parentId){let k=o.origin??p,t=s.width??o.measured.width??0,_1=s.height??o.measured.height??0,a={id:o.id,parentId:o.parentId,rect:{width:t,height:_1,...uK({x:s.x??o.position.x,y:s.y??o.position.y},{width:t,height:_1},o.parentId,h,k)}},H1=eq([a],h,g,p);c.push(...H1),l.x=s.x?Math.max(k[0]*t,s.x):void 0,l.y=s.y?Math.max(k[1]*_1,s.y):void 0}if(l.x!==void 0&&l.y!==void 0){let k={id:N,type:"position",position:{...l}};c.push(k)}if(s.width!==void 0&&s.height!==void 0){let t={id:N,type:"dimensions",resizing:!0,setAttributes:!R?!0:R==="horizontal"?"width":"height",dimensions:{width:s.width,height:s.height}};c.push(t)}for(let k of U1){let t={...k,type:"position"};c.push(t)}Q1(c)},onEnd:({width:s,height:U1})=>{let Q1={id:N,type:"dimensions",resizing:!1,dimensions:{width:s,height:U1}};v.getState().triggerNodeChanges([Q1])}});return u.current.update({controlPosition:b,boundaries:{minWidth:L,minHeight:M,maxWidth:O,maxHeight:T},keepAspectRatio:A,resizeDirection:R,onResizeStart:V,onResize:S,onResizeEnd:C,shouldResize:P}),()=>{u.current?.destroy()}},[b,L,M,O,T,A,V,S,C,P]);let m=b.split("-");return K1.jsx("div",{className:_2(["react-flow__resize-control","nodrag",...m,Z,K]),ref:D,style:{...H,scale:E,...W&&{[x?"backgroundColor":"borderColor"]:W}},children:Y})}var UR=W1.memo(gj);function dR({nodeId:Q,isVisible:U=!0,handleClassName:Z,handleStyle:K,lineClassName:H,lineStyle:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:R=!0,shouldResize:w,onResizeStart:P,onResize:V,onResizeEnd:S}){if(!U)return null;return K1.jsxs(K1.Fragment,{children:[IT.map((C)=>K1.jsx(UR,{className:H,style:Y,nodeId:Q,position:C,variant:x3.Line,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:P,keepAspectRatio:A,autoScale:R,shouldResize:w,onResize:V,onResizeEnd:S},C)),OT.map((C)=>K1.jsx(UR,{className:Z,style:K,nodeId:Q,position:C,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:P,keepAspectRatio:A,autoScale:R,shouldResize:w,onResize:V,onResizeEnd:S},C))]})}var pj=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function cj({children:Q}){let U=L0(pj);if(!U)return null;return GR.createPortal(Q,U)}var lj=(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,ij=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(lj(K,U.get(Z)))return!1;return!0},dj=(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=E1.Top,offset:W=10,align:L="center",...M}){let O=nK(),T=W1.useCallback((D)=>{return(Array.isArray(Q)?Q:[Q||O||""]).reduce((u,b)=>{let m=D.nodeLookup.get(b);if(m)u.set(m.id,m);return u},new Map)},[Q,O]),A=L0(T,ij),{x:R,y:w,zoom:P,selectedNodesCount:V}=L0(dj,i0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let C=n8(A),y=Array.from(A.values()),N=Math.max(...y.map((D)=>D.internals.z+1)),v={position:"absolute",transform:UT(C,{x:R,y:w,zoom:P},Y,W,L),zIndex:N,...K};return K1.jsx(cj,{children:K1.jsx("div",{style:v,className:_2(["react-flow__node-toolbar",Z]),...M,"data-id":y.reduce((D,x)=>`${D}${x.id} `,"").trim(),children:U})})}function XU(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 rR={"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=s0(u8(),1),HU="volter.console.token",U7=document.getElementById("root"),n1=U7.dataset.base??"/-/console",P0=window.location.origin,c3=(U7.dataset.worlds??P0).replace(/\/+$/,""),QO=(U7.dataset.names??"").split(",").filter((Q)=>Q!==""),p3=U7.dataset.worldOrigin==="1",q7=window.fetch.bind(window),d6="(session)",qO="(pass)",iJ=(Q)=>{try{if(Q&&!p3)sessionStorage.setItem(HU,Q);else sessionStorage.removeItem(HU);localStorage.removeItem(HU)}catch{}},UO="volter.console.portal",GO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(UO,new URL(Q).origin)}catch{}},rj=()=>{return G7.get("token")??""},t2=()=>{try{let Q=sessionStorage.getItem(UO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},aj=()=>{let Q=rj();if(p3){if(iJ(""),G7.get("pass"))return qO;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?"":d6)}if(Q)return iJ(Q),Q;try{return sessionStorage.getItem(HU)??""}catch{return""}};function M2(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: ${E8(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 ${s1(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(s1);return{text:`${E8(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 T5=async(Q)=>M2(await k3(Q)).text,sj={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function ZO({name:Q,acts:U}){let Z=U.map((K)=>sj[K]).filter((K)=>Boolean(K));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([K,H])=>F.jsxDEV(F1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${n1}/${Q}/~/${K}`,onClick:(Y)=>{Y.preventDefault(),f0([...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 O0(Q,U,Z={}){return q7(`${P0}${U}`,{...Z,headers:{...Z.headers??{},...Q===d6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function y0(Q,U,Z=0){let K=mA((H)=>O0(Q,H),U,Z,Q);return K.state==="error"?{...K,error:M2(K.error).text}:K}var v9=(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())}`},aR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),FO=(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",tj=(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},GH="volter.console.snapshots",l3=()=>{try{return JSON.parse(sessionStorage.getItem(GH)??"{}")}catch{return{}}},XO=new Map,ZH=(Q)=>{if(p3){if(Q.token||Q.readToken)XO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(GH,JSON.stringify({...l3(),[Q.name]:Q}))}catch{}},FH=(Q)=>XO.get(Q)?.readToken||l3()[Q]?.readToken||"",YU=(Q)=>{try{let U=l3();delete U[Q],sessionStorage.setItem(GH,JSON.stringify(U))}catch{}},G7=new URLSearchParams(window.location.hash.slice(1)),f9=G7.get("close")??"";function rJ(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 XH(Q){let U=rJ(Q);if(!U)return null;let Z=new URL(P0);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 oj(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:XH(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=G7.get("snapshot");if(Q){let U=oj(Q);if(U&&!l3()[U.name])ZH(U)}}var KO="volter.console.home",HO=(Q)=>{let U=rJ(Q);if(!U)return null;let Z=new URL(P0).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=HO(G7.get("home"));if(Q)try{sessionStorage.setItem(KO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>G7.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var O4=()=>{try{return HO(sessionStorage.getItem(KO))??""}catch{return""}};function KH(Q,U,Z,K){let H=new URLSearchParams({token:U,home:O4()||P0}),Y=l3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var qH=U7.dataset.route==="memory"?"":null;function J7(){return(qH??window.location.pathname.slice(n1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var sR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,g3=(Q,U)=>Q&&U&&sR.test(Q)&&sR.test(U)?`${Q}/${U}`:"";function f0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(qH!==null)qH=U;else window.history.pushState(null,"",`${n1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function YO(Q,U){let Z=XH(l3()[Q]?.origin);if(Z&&Z!==P0){KH(Z,FH(Q),Q,`${n1}/${U.map(encodeURIComponent).join("/")}`);return}f0(U)}async function tR(){let[Q,U]=J7(),Z=g3(Q,U),K=Z?[Z]:QO;if(K.length===0){let H=await q7(`${P0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,W,...L]=H.split("/");return L.length===0&&g3(Y,W)===H});for(let H of K){let Y=await q7(`${P0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),L=rJ(W.origin)?.origin;if(Y.status===409&&L&&L!==P0)return window.location.replace(`${L}${n1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:d6}}return null}function nj(){let[Q,U]=F1.useState(tF),Z=(K)=>()=>{try{if(K==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",K)}catch{}Aq(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 ej(){let[Q,U]=F1.useState(aj()),[Z,K]=F1.useState(!1),[H,Y]=F1.useState(!1),[W,L]=F1.useState(""),[M,O]=F1.useState(null),[T,A]=F1.useState(null),[R,w]=F1.useState(J7());F1.useEffect(()=>{let _1=()=>w(J7());return window.addEventListener("popstate",_1),()=>window.removeEventListener("popstate",_1)},[]),F1.useEffect(()=>{let[_1,a]=J7(),H1=g3(_1,a),[O1,L1]=H1?H1.split("/"):[],T1=l3()[f9];if(!f9||!Q||!O1||!L1||!T1?.made||T1.parent!==`${O1}/${L1}`||g3(...f9.split("/"))!==f9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}O0(Q,`/-/${O1}/${L1}/branches/${f9}`,{method:"DELETE"}).catch(()=>null).then(()=>YU(f9))},[Q]);let P=F1.useCallback(async(_1)=>{if(A(null),!_1){let L1=await tR();if(L1==="moved")return;if(L1){if(K(!0),L1.token!==d6)iJ(L1.token);U(L1.token);return}O(null),Y(!0);return}if(p3&&_1===d6){let L1=await tR();if(L1==="moved")return;if(L1)K(!0)}if(p3&&_1===qO){let[L1,T1]=J7(),G1=g3(L1,T1),[R1,f1]=G1?G1.split("/"):[],z1=R1&&f1?await q7(`${P0}/-/${R1}/${f1}/session`,{method:"POST",headers:{"x-volter-pass":G7.get("pass")??""}}).catch(()=>null):null;if(!z1){A(`${P0} did not answer: no session was opened`),O(null);return}if(!z1.ok){A(`${await T5(z1)}. Open it again from the platform.`),O(null);return}GO((await z1.json().catch(()=>({}))).issuer),U(d6);return}if(p3&&_1!==d6){let[L1,T1]=J7(),G1=g3(L1,T1),[R1,f1]=G1?G1.split("/"):[],z1=R1&&f1?await q7(`${P0}/-/${R1}/${f1}/session`,{method:"POST",headers:{"x-volter-token":_1}}).catch(()=>null):null;if(!z1){A(`${P0} did not answer: no session was opened`),O(null);return}if(!z1.ok){let C1=await T5(z1);A(z1.status===401||z1.status===403?`That token does not open ${R1}/${f1}.`:z1.status===409?`${R1}/${f1}'s session lives at another origin: ${C1}`:`The World could not open a session (${z1.status}): ${C1}`),O(null);return}U(d6);return}let a=p3?new Response(null,{status:404}):await O0(_1,"/-/worlds");if(a.ok){let{worlds:L1}=await a.json();O({kind:"admin",worlds:L1});return}if(a.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),O(null);return}if(a.status>=500){let L1=await a.json().catch(()=>({}));A(`The platform could not list your worlds${L1.error?`: ${L1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),O(null);return}let H1=QO;if(H1.length===0){let L1=await q7(`${P0}/-/ping`);if(!L1.ok){A(`${P0} does not answer as a host`),O(null);return}if(H1=(await L1.json()).worlds??[],H1.length===0){A(`${P0} does not list its Worlds: open a World at its own address, ${P0}${n1}/<org>/<world>`),O(null);return}}let O1=[];for(let L1 of H1){let T1=await O0(_1,`/-/${L1}/twins`);if(T1.ok){let G1=await T1.json();O1.push({name:L1,base:`${c3}/${L1}`,twins:(G1.twins??[]).map((R1)=>({vendor:R1.twin,protocol:R1.protocol??null,root:R1.root??null}))})}}if(O1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),O(null);return}O({kind:"world",worlds:O1})},[]);F1.useEffect(()=>{P(Q)},[Q,P]);let V=(_1)=>M?.kind==="admin"?M.worlds.find((a)=>a.name===_1)?.token??Q:Q,[S,C]=F1.useState("");if(!Q||!M&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(HJ,{href:`${n1}/`},void 0,!1,void 0,this),Q&&!M&&!T||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(_1)=>{_1.preventDefault(),iJ(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:(_1)=>L(_1.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 y=()=>A("This link or key opens no World here: it was revoked, or it has ended."),N=()=>{if(Z){window.location.reload();return}if(p3){let[_1,a]=J7(),H1=g3(_1,a),[O1,L1]=H1?H1.split("/"):[],T1=()=>window.location.replace(t2()?`${t2()}/`:`${P0}${n1}/${O1&&L1?`${O1}/${L1}`:""}?signin`);if(setTimeout(T1,2000),O1&&L1)q7(`${P0}/-/${O1}/${L1}/session/end`,{method:"POST"}).catch(()=>null).then(T1);else T1();return}if(M)for(let _1 of M.worlds)navigator.sendBeacon(`${_1.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${_1.name}/session/end`);iJ(""),U(""),L(""),O(null),f0([])};if(T||!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(HJ,{href:`${n1}/`},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:T??"nothing answered"},void 0,!1,void 0,this),t2()?F.jsxDEV("a",{className:"button primary",href:`${t2()}/`,children:["Back to ",new URL(t2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:N,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[v,D,x,E,u,b,m]=R,s=x==="~",U1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,h=s||!x||!U1.test(x)?void 0:x,g=u&&U1.test(u)?b!==void 0&&E!=="changes"&&E!=="screens"?g3(u,b)||void 0:u:void 0,p=E==="changes"&&u==="changesets"&&b&&U1.test(b)?b:E==="screens"&&b&&m&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(m)?`${b}:${m}`:void 0,c=g3(v,D),l=c?l3()[c]??null:null,o=(_1)=>FH(_1)||V(_1),k=l?M.kind==="admin"?M.worlds.find((_1)=>_1.name===l.parent)?.token??null:M.worlds.some((_1)=>_1.name===l.parent)?Q:null:null,t=async(_1)=>{let a=XH(_1.parentOrigin);if(a&&a!==P0){YU(_1.name),window.location.assign(`${a}${n1}/${_1.parent}#close=${encodeURIComponent(_1.name)}`);return}if(_1.made)await O0(V(_1.parent),`/-/${_1.parent}/branches/${_1.name}`,{method:"DELETE"}).catch(()=>null),YU(_1.name);f0(_1.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(iA,{},void 0,!1,void 0,this):null,F.jsxDEV(HJ,{href:`${O4()&&O4()!==P0?O4():""}${n1}/`,onClick:(_1)=>{if(O4()&&O4()!==P0)return;_1.preventDefault(),f0([])}},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:`${n1}/${c}`,className:"crumb-world",onClick:(_1)=>{_1.preventDefault(),f0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,h?F.jsxDEV("span",{children:[" / ",h]},void 0,!0,void 0,this):null,s&&E==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),t2()?F.jsxDEV("a",{href:`${t2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(t2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(t2()).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}`:M.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:N,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(QV,{name:c,token:o(c),twin:h,tab:s?E??"overview":"overview",arg:s?g:void 0,...s&&p?{sub:p}:{},admin:l?null:M.kind==="admin"?Q:null,snapshot:l,parentToken:k,who:{local:Z,person:S||null,admin:M.kind==="admin"},onSignOut:N,onReturn:t,opens:(_1)=>!!l3()[_1]||M.kind==="admin"&&M.worlds.some((a)=>a.name===_1),onRemoved:()=>{P(Q),f0([])},onWho:C,onEnded:y,worlds:M.worlds.map((_1)=>_1.name)},c,!1,void 0,this):F.jsxDEV(_V,{mode:M,admin:M.kind==="admin"?Q:null,reload:()=>P(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _V({mode:Q,admin:U,reload:Z}){let[K,H]=F1.useState(""),[Y,W]=F1.useState(""),[L,M]=F1.useState(""),[O,T]=F1.useState(null),A=async(E)=>{if(!await n4({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 u=await O0(U,`/-/worlds/${E}/rotate`,{method:"POST"}),b=await u.json().catch(()=>({}));T(u.ok?`rotated ${E}: the new tokens are shown once — token ${b.token} · read token ${b.readToken}`:b.error?M2(b.error).text:`answered ${u.status}`),await Z()},R=async(E)=>{let u=await O0(U,`/-/worlds/${E}`,{method:"DELETE"}),b=await u.json().catch(()=>({}));T(u.ok?`removed ${E}`:b.error?M2(b.error).text:`answered ${u.status}`),await Z()},[w,P]=F1.useState(!1),[V,S]=F1.useState(!1),[C,y]=F1.useState(""),N=async(E)=>{E.preventDefault(),T(null),P(!0);try{let u=await O0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:L.split(",").map((m)=>m.trim()).filter(Boolean)})}),b=await u.json();if(!u.ok){T(b.error?M2(b.error).text:`the host answered ${u.status}`);return}T(`provisioned ${b.name}`),W(""),M(""),S(!1),await Z()}finally{P(!1)}},v=C.trim().toLowerCase(),D=Q.worlds.filter((E)=>!v||E.name.toLowerCase().includes(v)||E.twins.some((u)=>u.vendor.includes(v))),x=[...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:[l0(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:()=>{T(null),S(!0)},children:[F.jsxDEV(Z0,{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:(E)=>y(E.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),O&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:O},void 0,!1,void 0,this):null,x.map((E)=>F.jsxDEV(F1.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((u)=>u.name.split("/")[0]===E).map((u)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${n1}/${u.name}`,onClick:(b)=>{b.preventDefault(),f0(u.name.split("/"))},children:[F.jsxDEV(Z0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:u.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:u.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:u.twins.map((b)=>F.jsxDEV("span",{title:s1(b.vendor),children:F.jsxDEV(q2,{vendor:b.vendor},void 0,!1,void 0,this)},b.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 ${u.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(b)=>{b.currentTarget.closest("details")?.removeAttribute("open"),A(u.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(b)=>{b.currentTarget.closest("details")?.removeAttribute("open"),n4({title:`Remove ${u.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:u.name}).then((m)=>{if(m)R(u.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},u.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 ${C}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(E5,{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: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:L,onChange:(E)=>M(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),O?F.jsxDEV("p",{role:"status",children:O},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 JV=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],$V=(Q,U)=>{let Z=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&Z?`${c3}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},oR={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(),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(),L=Y?`${H} seeded`:oR[Z]?`${H} ${oR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,M=Q.fields??{},O=["title","name","email","text","subject","summary","description"].map((A)=>M[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=O===null?null:O.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,R,w)=>`${R==="!"?"@":R}${w}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:L,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var i3=(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 QV({name:Q,token:U,twin:Z,tab:K,arg:H,sub:Y,admin:W,snapshot:L,parentToken:M,who:O,onSignOut:T,onReturn:A,opens:R,onRemoved:w,onWho:P,onEnded:V,worlds:S=[]}){let[C,y]=F1.useState("pending"),[N,v]=F1.useState(null),[D,x]=F1.useState(0),[E,u]=F1.useState(null);F1.useEffect(()=>{let G1=!0;return v(null),O0(U,`/-/${Q}/session`,{method:"POST"}).then(async(R1)=>{let f1=await R1.json().catch(()=>({}));if(GO(f1.issuer),f1.who)P?.(f1.who);u(typeof f1.signsAs==="string"?f1.signsAs:null);let z1=rJ(f1.origin)?.origin;if(R1.status===409&&z1&&z1!==P0){KH(z1,U,Q);return}if(!G1)return;if(y(!R1.ok?"unknown":f1.scope==="read"?"read":f1.scope==="write"?"write":"unknown"),!R1.ok)v(f1.error?M2(f1.error).text:`answered ${R1.status}`)}).catch((R1)=>{if(G1)y("unknown"),v(`the World did not answer: ${R1 instanceof Error?R1.message:String(R1)}`)}),()=>{G1=!1}},[Q,U,D]);let b=N?{state:"error",error:N}:C==="pending"?{state:"pending"}:{state:"ok",scope:C},m=C==="write",s=(G1)=>{if(G1.status!==403)return;G1.clone().json().then((R1)=>{if(/read token|opens only reads|write access|reads only/i.test(R1?.error??""))y("read")},()=>null)},[U1,Q1]=F1.useState(0);F1.useEffect(()=>{let G1=setInterval(()=>{if(!document.hidden)Q1((R1)=>R1+1)},5000);return()=>clearInterval(G1)},[]);let[h,g]=F1.useState(0),p=y0(U,`/-/${Q}/clock`,U1+h);F1.useEffect(()=>{if(p3&&!L&&p.state==="error"&&p.status===401)V?.()},[p,L,V]);let c=y0(U,`/-/${Q}/twins`),l=y0(U,`/-/${Q}/branches`,h),o=y0(U,`/-/${Q}/map`,Math.floor(U1/2)),k=!(l.state==="error"&&(l.status===404||l.status===405)),t=JV.includes(K)?K:"overview",_1=c.state==="ok"?c.data.twins.map((G1)=>G1.twin):[];if(Z&&c.state==="ok"&&!_1.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(X9,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${n1}/${Q}`,onClick:(G1)=>{G1.preventDefault(),f0(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 a=t==="vendors"&&H?H:void 0,H1=()=>{y("pending"),x((G1)=>G1+1)};if(t==="canvas"||t==="vendors"&&!a||K==="screens"&&!H)return F.jsxDEV(VV,{name:Q,token:U,twins:c,session:b,retry:H1,snapshot:L,back:()=>f0(Q.split("/")),canWrite:m&&!L},void 0,!1,void 0,this);let L1=K==="settings"?{kind:"settings",tab:((G1)=>zO.find(([R1])=>R1===G1)?.[0]??"account")(H)}:K==="remote"?{kind:"settings",tab:"remote"}:K==="vault"?{kind:"settings",tab:"vault"}:K==="branches"?{kind:"branches",...H?{open:H}:{}}:null,T1=Z?"vendor":K==="screens"&&H?"screen":t==="vendors"&&a?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(zV,{name:Q,token:U,view:T1,win:L1,who:O,snapshot:L,onReturn:A,onSignOut:T,worlds:S,session:b,retry:H1,...T1==="vendor"?{arg:Z??a}:T1==="events"||T1==="trace"||T1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:o,branches:k?l:null,clock:p,canWrite:m&&!L,refused:s,signsAs:E,opens:R,tick:U1,admin:W,onRemoved:w,onClock:()=>g((G1)=>G1+1),scope:L?"read":C},void 0,!1,void 0,this)}function Z0({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:(rR[Q]??[]).map(([Z,K],H)=>F1.default.createElement(Z,{key:H,...K}))},void 0,!1,void 0,this)}function WU(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 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"]],qV=(Q,U)=>{let Z=U.split("/").pop()??U,K=Q.split("/").pop()??"";return Z.startsWith(`${K}-`)?Z.slice(K.length+1):Z},$7=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function WO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],K=Q4(Z),H=WU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,L={};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(L,A.fields??{})}let M={...L};for(let A of Q.writes)Object.assign(M,A.fields??{});let O=H.tone==="added"&&Object.keys(L).length===0,T=[...new Set([...Object.keys(L),...Object.keys(M)])].filter((A)=>!fO(L[A],M[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??i3(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(Z0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(q2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??i3(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[s1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:i3(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(j0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",dJ(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):T.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),O?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:T.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),O?null:F.jsxDEV("td",{className:A in L?"was":"none",children:A in L?F.jsxDEV(d3,{v:L[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 M?"now":"none",children:A in M?F.jsxDEV(d3,{v:M[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 LO({records:Q,selected:U,onPick:Z,label:K}){let[H,Y]=F1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),W=(O)=>{Y(O);try{localStorage.setItem("volter.console.records",O?"tree":"path")}catch{}},L=(O,T)=>{let A=O.writes[O.writes.length-1],R=Q4(A),w=WU(O.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===O.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===O.key,onClick:()=>Z(O.key),children:[T?null:F.jsxDEV(q2,{vendor:O.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:R.label??i3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[$7(A.subject.type)," · ",R.what.split(" ").slice(-1)[0],O.writes.length>1?` · ${l0(O.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(Z0,{name:w.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},O.key,!1,void 0,this)},M=[...new Set(Q.map((O)=>O.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?M.map((O)=>{let T=Q.filter((A)=>A.twin===O);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(q2,{vendor:O},void 0,!1,void 0,this),F.jsxDEV("b",{children:s1(O)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:T.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:T.map((A)=>L(A,!0))},void 0,!1,void 0,this)]},O,!0,void 0,this)}):Q.map((O)=>L(O,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function UV({name:Q,token:U,branches:Z,opens:K,refused:H,onChanged:Y}){let[W,L]=F1.useState(""),[M,O]=F1.useState(!1),T=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:T,running:!0}],R=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(Z0,{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:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(Z0,{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)=>L(S.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(S)=>{V(S),O(!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===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:S.name===T?F.jsxDEV(Z0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Z0,{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===T?"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),R.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:R.filter((S)=>P(S.name)).map((S)=>{let C=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(Z0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:qV(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(j0,{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),y=S.expiresAt?`Goes away ${new Date(S.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(S.name)?F.jsxDEV("a",{href:`${n1}/${S.name}`,title:y,onClick:(N)=>{N.preventDefault(),V(N),YO(S.name,S.name.split("/"))},children:C},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${y}. 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:`${n1}/${Q}/~/branches`,onClick:(S)=>{S.preventDefault(),V(S),f0([...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(MO,{name:Q,token:U,open:M,onClose:()=>O(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function BO({name:Q,view:U,changes:Z,changesets:K}){let H=(Y)=>(W)=>{W.preventDefault(),f0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${n1}/${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:`${n1}/${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 GV({name:Q,token:U,sets:Z,sub:K,signsAs:H,canWrite:Y,rooted:W,refused:L,onChanged:M,changes:O,withScreens:T,required:A}){let[R,w]=F1.useState(null),[P,V]=F1.useState(!1),S=Z.state==="ok"?[...Z.data.changesets].sort((u,b)=>b.createdAt.localeCompare(u.createdAt)):[],C=S.find((u)=>u.name===K)??S[0],y=F1.useMemo(()=>{let u=new Map;for(let b of C?NO(C):[]){let m=`${b.twin}:${b.entry.subject.type}:${b.entry.subject.id}`,s=u.get(m)??{key:m,twin:b.twin,writes:[]};s.writes.push(b.entry),u.set(m,s)}return[...u.values()]},[C]),N=y.find((u)=>u.key===R)??y[0],v=y0(U,N?`/-/${Q}/log/${N.twin}`:null),D={added:0,removed:0,changed:0};for(let u of y)D[WU(u.writes).tone]=(D[WU(u.writes).tone]??0)+1;let x=C?LU(C):null,E=C?CO(C,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(BO,{name:Q,view:"history",changes:O,changesets:S.length},void 0,!1,void 0,this),F.jsxDEV(r2,{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((u)=>{let b=C?.name===u.name,m=LU(u).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${n1}/${Q}/~/changes/changesets/${u.name}`,className:b?"on":void 0,"aria-current":b?"true":void 0,onClick:(s)=>{s.preventDefault(),w(null),f0([...Q.split("/"),"~","changes","changesets",u.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:QH(u)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[u.owner??(u.cutBy?zU(u.cutBy):"unrecorded")," • ",F.jsxDEV(j0,{iso:u.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(Z0,{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)},u.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(X9,{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&&x&&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(C)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(Z0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",l0(y.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:C.name},void 0,!1,void 0,this)," · ",F.jsxDEV(j0,{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":zU(C.cutBy):"unrecorded"],...C.pushedBy?[["Pushed by",zU(C.pushedBy)]]:[]].map(([u,b])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:u},void 0,!1,void 0,this)," ",b]},u,!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-${x.tone}`,children:x.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(LO,{records:y,...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(WO,{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(E5,{open:P,onClose:()=>V(!1),title:`Review: ${QH(C)}`,wide:!0,children:[F.jsxDEV($O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,onChanged:M,part:"head",required:A},`h:${C.name}`,!1,void 0,this),F.jsxDEV($O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,onChanged:M,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 ZV({name:Q,token:U,vendors:Z,vendor:K,tick:H}){let[Y,W]=F1.useState(nR*4),[L,M]=F1.useState(""),[O,T]=F1.useState(null),A=y0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),R=A.state==="ok"?NV(A.data.entries):[],w=[...new Set(R.map((D)=>Q4(D.entry).what))].sort(),P=R.filter((D)=>!L||Q4(D.entry).what===L),V=P.find((D)=>S9(D)===O)??P[0],S=(D)=>(x)=>{x.preventDefault(),T(null),f0([...Q.split("/"),"~","events",...D?[D]:[]])},C=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,y=V?tj(V.entry.traceparent):null,N=V?eR(V):null,v=V?OV(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:`${n1}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:S(),children:"All"},void 0,!1,void 0,this),Z.map((D)=>F.jsxDEV("a",{href:`${n1}/${Q}/~/events/${D}`,className:K===D?"on":void 0,"aria-current":K===D?"page":void 0,onClick:S(D),children:[F.jsxDEV(q2,{vendor:D},void 0,!1,void 0,this),s1(D)]},D,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:L,onChange:(D)=>{M(D.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),w.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(r2,{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((D)=>{let x=Q4(D.entry),E=eR(D),u=V&&S9(D)===S9(V);return F.jsxDEV("tr",{className:u?"on":void 0,"aria-selected":u,onClick:()=>T(S9(D)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(j0,{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(q2,{vendor:D.twin},void 0,!1,void 0,this),s1(D.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:x.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:x.label?`“${x.label}”`:F.jsxDEV("code",{children:i3(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:dJ(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:FO(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},S9(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:RO(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,":",i3(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(j0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",dJ(V.entry,V.caller)]},void 0,!0,void 0,this),y?F.jsxDEV("a",{href:`${n1}/${Q}/~/trace/${y.trace}`,onClick:(D)=>{D.preventDefault(),f0([...Q.split("/"),"~","trace",y.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(wV,{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(([D,x])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:D},void 0,!1,void 0,this),F.jsxDEV("dd",{children:x},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(IO,{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(" · "):PV(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",K?` at ${s1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((D)=>D+nR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function FV({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),H=y0(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,R)=>-TO(A,R)):[],[W,L]=F1.useState(null),M=Y[0]?Date.parse(Y[0].entry.occurredAt):0,O=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-M):1,T=[...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:`${n1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),f0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(Z0,{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),!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(r2,{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(j0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[O," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:T.map(s1).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(X9,{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(O/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let R=Date.parse(A.entry.occurredAt)-M,w=S9(A),P=Q4(A.entry);return F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("div",{className:W===w?"ws-span on":"ws-span",role:"row",onClick:()=>L(W===w?null:w),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(q2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:s1(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:`${R/O*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${R/O*100}%`},children:["+",R," 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:RO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",i3(A.entry)]},void 0,!0,void 0,this)," · ",dJ(A.entry,A.caller)," · ",FO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(IO,{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 XV({name:Q,token:U,vendor:Z,withScreens:K,tick:H}){let Y=y0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((v)=>v.deleted!==!0):[],L=[...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("_"))||$7(v.type).localeCompare($7(D.type))),[M,O]=F1.useState(null),[T,A]=F1.useState(null),R=L.some((v)=>v.type===M)?M:L[0]?.type,w=W.filter((v)=>v.type===R),P=w.find((v)=>v.id===T)??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((D)=>D[v]!==void 0&&D[v]!==null&&typeof D[v]!=="object"),y=[...new Set(w.flatMap((v)=>Object.keys(v)))],N=[...V.filter(C),...y.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":`${s1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),s1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(r2,{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),L.map((v)=>F.jsxDEV("a",{href:`#${v.type}`,className:R===v.type?"on":void 0,"aria-current":R===v.type?"true":void 0,onClick:(D)=>{D.preventDefault(),O(v.type),A(null)},children:[F.jsxDEV(Z0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:$7(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:`${n1}/${Q}/~/events/${Z}`,onClick:(v)=>{v.preventDefault(),f0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(Z0,{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:`${n1}/${Q}/~/screens/${Z}`,onClick:(v)=>{v.preventDefault(),f0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(Z0,{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"&&L.length===0?F.jsxDEV(X9,{title:`${s1(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":`${$7(R??"")} 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((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(j0,{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:$7(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,D])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(d3,{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:P?`${w.indexOf(P)+1} of ${l0(w.length,$7(R??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KV({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(q2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:s1(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:`${n1}/${Q}/~/vendors/${U}`,onClick:(L)=>{L.preventDefault(),f0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(Z0,{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(Z0,{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:[s1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${s1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function HV({name:Q,token:U,who:Z,scope:K}){let[H,Y]=F1.useState(0),W=y0(U,`/-/${Q}/twins`),L=y0(U,`/-/${Q}/rules`,H),M=L.state==="ok"?L.data.changesets:null,[O,T]=F1.useState(null),[A,R]=F1.useState(null),[w,P]=F1.useState(!1),[V,S]=F1.useState([]),C=O??M?.approvals??1,y=A??M?.summary??"required",N=M!==null&&(C!==(M.approvals??1)||y!==(M.summary??"required")),v=(m,s)=>{if(S((U1)=>[{ok:m,text:s,at:new Date().toISOString(),n:++aJ},...U1].slice(0,3)),!m)e0(s,"error")},D=async(m)=>{m.preventDefault(),P(!0);try{let s=await O0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:C,summary:y}})});if(!s.ok){v(!1,`Save: ${await T5(s)}`);return}v(!0,`Saved: ${C===0?"no approval":l0(C,"approval")} before a deploy; a summary ${y==="required"?"required":"generated when none is given"}.`),T(null),R(null),Y((U1)=>U1+1)}finally{P(!1)}},x={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),u=W.state==="ok"?W.data.twins.filter((m)=>m.root?.url):[],b=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(r2,{load:L,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(m)=>void D(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 ",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(b)||M===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:y==="required",onChange:()=>R("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:y==="generated",onChange:()=>R("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(Z0,{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)=>T(Number(m.target.value)),disabled:Boolean(b)||M===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"&&u.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,u.length?F.jsxDEV("ul",{className:"ws-rule-list",children:u.map((m)=>F.jsxDEV("li",{children:[F.jsxDEV(q2,{vendor:m.twin},void 0,!1,void 0,this),s1(m.twin),": ",x[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:`${n1}/${Q}/~/settings/services`,onClick:(m)=>{m.preventDefault(),f0([...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(r6,{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(b)||w||!N,title:b??void 0,children:w?"Saving…":"Save"},void 0,!1,void 0,this),N?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),R(null)},children:"Cancel"},void 0,!1,void 0,this):null,b?F.jsxDEV("span",{className:"mode",children:[b,"."]},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 YV({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,L]=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(Z0,{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:L},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(Z0,{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 zV({name:Q,token:U,view:Z,sub:K,arg:H,win:Y,who:W,snapshot:L,onReturn:M,onSignOut:O,worlds:T,session:A,retry:R,twins:w,map:P,branches:V,clock:S,canWrite:C,refused:y,signsAs:N,opens:v,tick:D,admin:x,onRemoved:E,onClock:u,scope:b}){let m=SO(Q,U,D,y),[s,U1]=F1.useState(0),Q1=s*1e5+Math.floor(D/2),h=y0(U,`/-/${Q}/diff`,Q1),g=y0(U,`/-/${Q}/changesets`,Q1),p=y0(U,`/-/${Q}/rules`,Q1),[c,l]=F1.useState(null),o=(A1)=>(e1)=>{e1?.preventDefault(),f0([...Q.split("/"),"~",...A1])},k=w.state==="ok"?w.data.twins.map((A1)=>A1.twin):[],t=new Map((P.state==="ok"?P.data.twins:[]).flatMap((A1)=>{let e1=$V(Q,A1);return e1?[[A1.twin,e1]]:[]})),_1=[...t.keys()],a=P.state==="ok"?P.data.twins.filter((A1)=>A1.root).map((A1)=>A1.twin):[],H1=(A1)=>P.state==="ok"?(P.data.twins.find((e1)=>e1.twin===A1)?.resources??[]).reduce((e1,k1)=>e1+k1.count,0):0,O1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],L1=F1.useMemo(()=>{if(h.state!=="ok")return[];let A1=new Map;for(let e1 of h.data.changes){let k1=`${e1.twin}:${e1.entry.subject.type}:${e1.entry.subject.id}`,g0=A1.get(k1)??{key:k1,twin:e1.twin,writes:[]};g0.writes.push(e1.entry),A1.set(k1,g0)}return[...A1.values()]},[h]),T1=L1.find((A1)=>A1.key===c)??L1[0],G1=y0(U,Z==="changes"&&T1?`/-/${Q}/log/${T1.twin}`:null,Q1),R1=h.state==="ok"?h.data.changes.length:0,f1=m.waiting.length,z1=m.there,C1=m.origin.state==="ok"?m.origin.data.origin:null,b1=!C?"This session reads the World; it changes nothing":!z1?"No remote: name one in Settings › Remote":null,c1=(A1,e1,k1,g0,_0,t0)=>F.jsxDEV("a",{href:`${n1}/${Q}/~/${g0}`,className:A1?"on":void 0,"aria-current":A1?"page":void 0,onClick:_0,children:[e1,F.jsxDEV("span",{children:k1},void 0,!1,void 0,this),t0?F.jsxDEV("span",{className:"count",children:t0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),D1=(A1)=>{A1.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(HJ,{href:`${n1}/${Q}`,onClick:(A1)=>{A1.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(Z0,{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(Z0,{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),T.map((A1)=>F.jsxDEV("a",{href:`${n1}/${A1}`,className:A1===Q?"on":void 0,onClick:(e1)=>{e1.preventDefault(),D1(e1),f0(A1.split("/"))},children:[A1===Q?F.jsxDEV(Z0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Z0,{name:"globe",size:16},void 0,!1,void 0,this),A1]},A1,!0,void 0,this)),F.jsxDEV("a",{href:`${O4()&&O4()!==P0?O4():""}${n1}/`,onClick:(A1)=>{if(O4()&&O4()!==P0)return;A1.preventDefault(),D1(A1),f0([])},children:[F.jsxDEV(Z0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",t2()?` on ${new URL(t2()).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),t2()?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:[c3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:XU({platform:t2(),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:[c3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:XU()},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:[c3,"/",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:XU()},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:`${n1}/${Q}/~/settings`,onClick:(A1)=>{D1(A1),o(["settings"])(A1)},children:[F.jsxDEV(Z0,{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(UV,{name:Q,token:U,branches:V,opens:v,refused:y,onChanged:u},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:O1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),C1?F.jsxDEV("a",{href:`${n1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",C1.namespace,f1?F.jsxDEV("b",{children:[" ↑",f1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${n1}/${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:`${n1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:S.state==="ok"?F.jsxDEV(F.Fragment,{children:[S.data.frozen?"stopped at ":"",F.jsxDEV(j0,{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 ${z1} has and move this branch onto it`,children:[F.jsxDEV(Z0,{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||f1===0,title:b1??(f1?`Push ${l0(f1,"changeset")} to ${z1}`:`Every changeset is at ${z1}`),children:[F.jsxDEV(Z0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),m.busy==="Push"?"Pushing…":"Push",f1?F.jsxDEV("span",{className:"ws-btn-count",children:f1},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(Z0,{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),L?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(Z0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:L.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(j0,{iso:L.at},void 0,!1,void 0,this),": a read-only snapshot",L.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(j0,{iso:L.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 M(L),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(r6,{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:[k.length?F.jsxDEV("a",{href:`${n1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${E8(k.map(s1))}`,children:[F.jsxDEV(Z0,{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:[k.slice(0,3).map((A1)=>F.jsxDEV(q2,{vendor:A1},A1,!1,void 0,this)),k.length>3?F.jsxDEV("span",{className:"more",children:["+",k.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),c1(Z==="changes"||Z==="history",F.jsxDEV(Z0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),L1.length?String(L1.length):void 0),c1(Z==="events"&&!H||Z==="trace",F.jsxDEV(Z0,{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),k.map((A1)=>F.jsxDEV(F1.default.Fragment,{children:c1(Z==="vendor"&&H===A1,F.jsxDEV(q2,{vendor:A1},void 0,!1,void 0,this),s1(A1),`vendors/${A1}`,o(["vendors",A1]),H1(A1)?String(H1(A1)):void 0)},A1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),c1(!1,F.jsxDEV(Z0,{name:"cloud",size:16},void 0,!1,void 0,this),z1?"origin":"Name a remote…","remote",o(["remote"]),f1?`↑${f1}`: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(BO,{name:Q,view:"changes",changes:L1.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:h.state==="ok"?`${l0(L1.length,"record")} · ${l0(R1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r2,{load:h,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(LO,{records:L1,...T1?{selected:T1.key}:{},onPick:l,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[h.state==="ok"&&!T1?F.jsxDEV(X9,{title:"No changes on this branch",action:f1>0&&z1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(b1)||m.busy!==null,onClick:()=>void m.push(),children:["Push ",l0(f1,"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 ",h.data.base.at?F.jsxDEV(j0,{iso:h.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:h.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,T1?F.jsxDEV(WO,{record:T1,history:G1.state==="ok"?G1.data.entries:G1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(uV,{pinned:!0,generated:p.state==="ok"&&p.data.changesets.summary==="generated",author:{face:F.jsxDEV(Z0,{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:`${n1}/${Q}/~/settings/account`,branch:O1},name:Q,token:U,changes:R1,canWrite:C,refused:y,onCut:()=>{U1((A1)=>A1+1),l(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(GV,{name:Q,token:U,sets:g,changes:L1.length,withScreens:_1,required:p.state==="ok"?p.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:N,canWrite:C,rooted:a,refused:y,onChanged:()=>U1((A1)=>A1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(ZV,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:D},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(FV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(XV,{name:Q,token:U,vendor:H,withScreens:_1.includes(H),tick:D},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(KV,{name:Q,vendor:H,url:P.state==="ok"?t.get(H)??null:void 0,...P.state==="error"?{mapError:P.error}:{},holding:LV(P.state==="ok"?P.data.twins.find((A1)=>A1.twin===H)?.resources??[]:[]),session:A,retry:R},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(E5,{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:zO.map(([A1,e1,k1])=>F.jsxDEV("a",{href:`${n1}/${Q}/~/settings/${A1}`,className:Y.tab===A1?"on":void 0,"aria-current":Y.tab===A1?"page":void 0,onClick:o(["settings",A1]),children:[F.jsxDEV(Z0,{name:k1,size:16},void 0,!1,void 0,this),e1]},A1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[b==="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(YV,{who:W,scope:b,snapshot:L,portal:t2(),onSignOut:O},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(HV,{name:Q,token:U,who:W,scope:b},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(EV,{name:Q,token:U,canWrite:C,tick:D,refused:y},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(xV,{name:Q,token:U,admin:x,canWrite:C,refused:y,onRemoved:E,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(hV,{name:Q,token:U,canWrite:C,refused:y},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(nj,{},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(E5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(MV,{name:Q,token:U,canWrite:C,branches:V,opens:v,...Y.open?{open:Y.open}:{},onChanged:u,refused:y},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(()=>e0("Copied the prompt: paste it into your coding agent"),()=>e0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var HH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,WV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),LV=(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)=>l0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},AO=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 BV({name:Q,token:U,clock:Z,canWrite:K,onChanged:H,refused:Y,open:W}){let[L,M]=F1.useState(!1),[O,T]=F1.useState(""),[A,R]=F1.useState(""),[w,P]=F1.useState(null),[V,S]=F1.useState(!1),C=Z.state==="ok"?Z.data:null,y=async(x,E,u)=>{S(!0),P(null);try{let b=await O0(U,`/-/${Q}/${E}`,{method:E==="clock"?"PUT":"POST",body:JSON.stringify(u)});if(!b.ok){Y(b),P({ok:!1,text:await T5(b)});return}let m=await b.json();P({ok:!0,text:`${x} — the World is at ${new Date(m.at).toLocaleString()}`}),M(!1),H()}catch(b){P({ok:!1,text:`the World did not answer: ${b instanceof Error?b.message:String(b)}`})}finally{S(!1)}},N=(x)=>{x.preventDefault();let E=new Date(O);if(Number.isNaN(E.getTime())){P({ok:!1,text:"Pick a date and time."});return}if(C&&E.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}y("Clock set","clock",{at:E.toISOString()})},v=(x,E)=>{y(`Advanced ${E}`,"clock/advance",{by:x})},D=[["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(j0,{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(j0,{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),K&&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":L,onClick:()=>{M(!L),T(v9(aR(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),D.map(([x,E])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${E}`,disabled:V||!C.frozen,title:C.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>v(x,E),children:E},x,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(x)=>{if(x.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:(x)=>R(x.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,L?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:O,min:v9(aR(C.at)),onChange:(x)=>T(x.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:()=>M(!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 AV({name:Q,token:U,clock:Z,refused:K}){let[H,Y]=F1.useState(!1),[W,L]=F1.useState(""),[M,O]=F1.useState(null),[T,A]=F1.useState(!1),R=Z.state==="ok"?Z.data.at:new Date().toISOString(),w=F1.useRef(null);return F1.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),L(v9(R)),O(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(),O(null);let S=new Date(W);if(Number.isNaN(S.getTime())){O("Pick a date and time.");return}if(S.getTime()>Date.parse(R)){O(`That is after the World's present (${new Date(R).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let C=await O0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!C.ok){K(C),O(await T5(C));return}let y=await C.json();ZH({name:y.name,parent:Q,token:y.token,readToken:y.readToken,at:S.toISOString(),expiresAt:y.expiresAt??null,parentOrigin:P0,made:!0});let N=rJ(y.origin)?.origin;if(N&&N!==P0){KH(N,y.readToken,y.name,`${n1}/${y.name}`);return}f0(y.name.split("/"))}catch(C){O(`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:v9(R),onChange:(V)=>L(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:T,children:T?"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,M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function MO({name:Q,token:U,open:Z,onClose:K,onMade:H,refused:Y}){let W=(E)=>E.split("/").pop()??E,[L,M]=F1.useState(!1),[O,T]=F1.useState(null),[A,R]=F1.useState(""),[w,P]=F1.useState("now"),[V,S]=F1.useState(""),[C,y]=F1.useState("24"),[N,v]=F1.useState(!0);F1.useEffect(()=>{if(Z)T(null),S(v9(new Date().toISOString()))},[Z]);let D=async(E)=>{E.preventDefault(),T(null);let u=w==="at"?new Date(V):null;if(u&&Number.isNaN(u.getTime())){T("Pick a date and time, or make it as of now.");return}if(u&&u.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}M(!0);let b=await O0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(C)*3600),...u?{at:{instant:u.toISOString()}}:N?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(M(!1),!b){T(`${P0} did not answer`);return}if(!b.ok){Y(b),T(await T5(b));return}let m=await b.json();ZH({name:m.name,parent:Q,token:m.token??"",readToken:m.readToken,at:(u??new Date).toISOString(),expiresAt:m.expiresAt??null,parentOrigin:P0,...m.origin?{origin:m.origin}:{}}),K(),R(""),e0(`Made ${W(m.name)}`),H()};return F.jsxDEV(E5,{open:Z,onClose:()=>{if(!L)K()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>K(),disabled:L,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:L,children:L?"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)=>R(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: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:(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: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:v9(new Date().toISOString()),onChange:(E)=>S(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:C,onChange:(E)=>y(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),O?F.jsxDEV("p",{role:"alert",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function MV({name:Q,token:U,canWrite:Z,branches:K,opens:H,open:Y,onChanged:W,refused:L,snapshotOf:M}){let O=y0(U,`/-/${Q}/clock`),T=(y)=>y.split("/").pop()??y,[A,R]=F1.useState(!1),w=(y)=>(N)=>{N.preventDefault(),f0([...Q.split("/"),"~","branches",...y?y.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 P=K.state==="ok"?K.data.branches:[],V=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:T(Q),running:!0}],S=K.state==="ok"?K.data.checkedOut??T(Q):T(Q),C=async(y)=>{if(!await n4({title:`Remove the branch ${T(y)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let N=await O0(U,`/-/${Q}/branches/${y}`,{method:"DELETE"}).catch((v)=>v);if(N instanceof Error){e0(`Remove ${T(y)}: the World did not answer (${N.message})`,"error");return}if(!N.ok){L(N),e0(`Remove ${T(y)}: ${await T5(N)}`,"error");return}YU(y),e0(`Removed ${T(y)}`),W(),f0([...Q.split("/"),"~","branches"])};if(Y){let y=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:`${n1}/${Q}/~/branches`,onClick:w(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(r2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"&&!y&&!N?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,y?F.jsxDEV(TV,{name:Q,b:y,canWrite:Z,opens:H(y.name),remove:()=>void C(y.name)},void 0,!1,void 0,this):null,N&&!y?F.jsxDEV(RV,{name:Q,token:U,b:N,served:N.name===S,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: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:[M?null:F.jsxDEV(AV,{name:Q,token:U,clock:O,refused:L},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>R(!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(r2,{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((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${n1}/${Q}/~/branches/${y.name}`,onClick:w(y.name),children:F.jsxDEV("b",{children:y.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),y.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):y.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:${y.name}`,!0,void 0,this)),P.map((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${n1}/${Q}/~/branches/${y.name}`,onClick:w(y.name),children:F.jsxDEV("b",{children:T(y.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:T(y.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.at?.instant?F.jsxDEV(j0,{iso:y.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(j0,{iso:y.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.expiresAt?F.jsxDEV(j0,{iso:y.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},y.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(MO,{name:Q,token:U,open:A,onClose:()=>R(!1),onMade:W,refused:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TV({name:Q,b:U,canWrite:Z,opens:K,remove:H}){let Y=(M)=>M.split("/").pop()??M,W=FH(U.name),L=y0(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:[AO," ",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:()=>YO(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(j0,{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(j0,{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(j0,{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,L.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),L.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(DV,{changes:L.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 RV({name:Q,token:U,b:Z,served:K,canWrite:H,canServe:Y}){let[W,L]=F1.useState(!1),[M,O]=F1.useState(null),T=async()=>{L(!0),O(null);let A=await O0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}L(!1),O(A?await T5(A):`${P0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[AO," ",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 T(),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:`${n1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),f0([...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),M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var nR=50,S9=(Q)=>`${Q.twin}:${Q.position}`,TO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,zU=(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},dJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${zU(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"},RO=(Q)=>Q.operation??Q.op;function OV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...O)=>O.map((T)=>Z[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=K("prompt_tokens","input_tokens"),W=K("completion_tokens","output_tokens"),L=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(L!==void 0)H.push(["tokens in all",L.toLocaleString()]);let M=K("cost_usd","cost");if(M!==void 0)H.push(["cost",`$${M<0.01?M.toPrecision(2):M.toFixed(2)}`]);return H}function OO({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 d3({v:Q}){if(typeof Q==="string")return F.jsxDEV(OO,{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 IV=(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 wV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(d3,{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(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(d3,{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(OO,{text:IV(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 IO({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(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(d3,{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 PV=(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 NV(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(TO)}var $H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function eR(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 R4=1280,U3=820,KU=160,$4=72,UH=120,CV=72,J2=(Q)=>`${Q.vendor}:${Q.id}`,_7=(Q)=>`${Q.vendor}:section:${Q.section.id}`,Q7=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),wO=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${c3}/${Q}/${U.vendor}${U.at.screen}`:null,_O=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(J2(Z))||Q7(Z).some((K)=>Q.include.includes(K))):U.filter((Z)=>!(Q.hidden??[]).includes(J2(Z)));function fV({data:Q}){let{frame:U,url:Z,active:K,picked:H,boards:Y,addTo:W,remove:L,compare:M}=Q,O=J2(U),T=Y.filter((R)=>R.include&&!R.include.includes(O)&&!Q7(U).some((w)=>R.include.includes(w))),A=L0((R)=>R.transform[2]*($4+UH)>=CV);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(_H,{isVisible:A||H||K,position:E1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(q2,{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:()=>M(O),title:`${l0(U.changes,"change")} here, not in a changeset: compare before and now`,children:[F.jsxDEV(Z0,{name:"square-dot",size:14},void 0,!1,void 0,this),U.changes]},void 0,!0,void 0,this):H?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>M(O),title:"Compare with a branch of this World","aria-label":`Compare ${U.title} with a branch`,children:F.jsxDEV(Z0,{name:"file-diff",size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,H&&T.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(R)=>{if(R.target.value)W(R.target.value,O)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),T.map((R)=>F.jsxDEV("option",{value:R.id,children:R.name},R.id,!1,void 0,this))]},void 0,!0,void 0,this):null,H&&L?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>L.act(O),title:L.label,"aria-label":L.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:R4,height:U3},children:[F.jsxDEV("div",{className:"frame-bar",children:[F.jsxDEV(q2,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[s1(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.`:`${s1(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 PO({name:Q,label:U,done:Z}){let K=F1.useRef(!1),H=(Y)=>{if(K.current)return;K.current=!0,Z(Y?.trim()&&Y.trim()!==Q?Y.trim().slice(0,80):null)};return F.jsxDEV("input",{className:"nodrag nopan name-field","aria-label":U,defaultValue:Q,size:Math.max(8,Q.length+2),autoFocus:!0,onFocus:(Y)=>Y.currentTarget.select(),onKeyDown:(Y)=>{if(Y.key==="Enter")H(Y.currentTarget.value);else if(Y.key==="Escape")H(null)},onBlur:(Y)=>H(Y.currentTarget.value)},void 0,!1,void 0,this)}function SV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(dR,{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:E1.Top,align:"start",offset:-30,className:"section-tag",children:[Q.renaming?F.jsxDEV(PO,{name:Q.name,label:"Name this section",done:(U)=>Q.renamed(Q.key,U)},void 0,!1,void 0,this):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(q2,{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&&!Q.renaming?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 JO({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*U3/R4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:R4,height:U3,transform:`scale(${420/R4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function vV({name:Q,token:U,frame:Z,onClose:K,reads:H}){let[Y,W]=F1.useState(Z.since?"before":""),[L,M]=F1.useState({state:"opening"}),[O,T]=F1.useState(null),A=F1.useRef(new Set),R=y0(U,`/-/${Q}/branches`,H),w=R.state==="ok"?R.data.branches.filter((y)=>y.name!==O&&!A.current.has(y.name)):[],P=y0(U,`/-/${Q}/board/changes?frame=${encodeURIComponent(J2(Z))}`,H),V=async(y,N,v)=>{let D=Z.at;if("site"in D){let u=new URL(Z.url),b=N&&/^https?:\/\/\{host\}\./.test(N)?N.replace("{host}",u.hostname.toLowerCase()):null;return b?{url:`${b}${u.pathname}${u.search}`}:{why:"This World shows its branches' sites only on this machine."}}let x=`${c3}/-/${Q}/branches/${y}/pages?${new URLSearchParams({land:`/${y}/${Z.vendor}${D.screen}`}).toString()}`,E=await fetch(x,{credentials:"same-origin",redirect:"manual"}).catch(()=>null);if(v())return{why:""};return E?.type==="opaqueredirect"?{url:x}:{why:`This World does not show its branches' pages${E?`: ${await T5(E)}`:""}.`}};F1.useEffect(()=>{if(!Z.at){M({state:"none",why:`${s1(Z.vendor)}'s twin draws no page for this ${Z.kind} yet; its changes are listed below.`});return}if(Y===""){M({state:"none",why:"Choose a branch of this World to set beside it."});return}let y=!1;if(Y!=="before"){M({state:"opening"});let u=R.state==="ok"?R.data.branches.find((m)=>m.name===Y):void 0,b=setTimeout(()=>void V(Y,u?.sites??null,()=>y).then((m)=>{if(!y)M("url"in m?{state:"ok",url:m.url}:{state:"none",why:m.why})}),300);return()=>{y=!0,clearTimeout(b)}}if(!Z.since){M({state:"none",why:"Nothing here has changed since the World was last cut."});return}M({state:"opening"});let N=new Date(Date.parse(Z.since)-1).toISOString(),v=null,D=setTimeout(()=>void(async()=>{let u=await O0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:N},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!u?.ok){M({state:"none",why:`The World made no copy of itself as it was then${u?`: ${await T5(u)}`:""}.`});return}let b=await u.json();if(v=b.name,T(b.name),A.current.add(b.name),y){O0(U,`/-/${Q}/branches/${b.name}`,{method:"DELETE"}).catch(()=>null);return}let m=await V(b.name,b.sites??null,()=>y);if(!y)M("url"in m?{state:"ok",url:m.url,at:N}:{state:"none",why:m.why})})(),500),x=()=>{if(v)O0(U,`/-/${Q}/branches/${v}`,{method:"DELETE",keepalive:!0}).catch(()=>null);v=null},E=(u)=>{if(!u.persisted)x()};return window.addEventListener("pagehide",E),()=>{y=!0,clearTimeout(D),window.removeEventListener("pagehide",E),x(),T(null)}},[Q,U,Z.vendor,Z.id,Z.since,Y]);let S=wO(Q,Z),C=!Z.at||Y!==""?null:R.state==="ok"&&w.length===0?"This World has no branches to set beside it: make one under Branches.":R.state==="error"?`The World's branches could not be read: ${R.error}`:null;return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${Z.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(q2,{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:Z.changes?`${l0(Z.changes,"change")} not yet cut${Z.since?`, since ${b8(Z.since)}`:""}`:"No changes here not yet cut"},void 0,!1,void 0,this),Z.at?F.jsxDEV("label",{className:"compare-base",children:["Compare with"," ",F.jsxDEV("select",{value:Y,onChange:(y)=>W(y.target.value),children:[Y===""?F.jsxDEV("option",{value:"",children:"Choose a branch…"},void 0,!1,void 0,this):null,Z.since||Y==="before"?F.jsxDEV("option",{value:"before",children:"Before these changes"},void 0,!1,void 0,this):null,Y&&Y!=="before"&&!w.some((y)=>y.name===Y)?F.jsxDEV("option",{value:Y,children:Y.split("/")[1]},void 0,!1,void 0,this):null,w.map((y)=>F.jsxDEV("option",{value:y.name,children:[y.name.split("/")[1],y.at?.label?` (${y.at.label})`:y.at?.instant?` (as of ${b8(y.at.instant)})`:y.at?.live?" (live)":""]},y.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,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:Y==="before"?`Before${L.state==="ok"&&L.at?` · as of ${b8(L.at)}`:""}`:Y?Y.split("/")[1]:"A branch"},void 0,!1,void 0,this),C?F.jsxDEV("p",{className:"mode compare-note",children:C},void 0,!1,void 0,this):L.state==="ok"?F.jsxDEV(JO,{url:L.url,title:`${Z.title} before`},void 0,!1,void 0,this):L.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:L.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),S?F.jsxDEV(JO,{url:S,title:`${Z.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:[s1(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),P.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",P.error]},void 0,!0,void 0,this):null,Y!=="before"&&Y&&P.state==="ok"&&P.data.acts.length?F.jsxDEV("p",{className:"mode compare-acts-head",children:"This World's own changes here, not yet cut:"},void 0,!1,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(P.state==="ok"?P.data.acts:[]).map((y)=>{let N=y.entries[0],v=Q4({...N,service:Z.vendor,id:"",occurredAt:y.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:b8(y.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:v.what},void 0,!1,void 0,this),v.label?` · ${v.label}`:"",y.writes>1?F.jsxDEV("span",{className:"mode",children:[" and ",l0(y.writes-1,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:[y.entries.map((D,x)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:D.operation??D.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[D.subject.type," ",i3(D)]},void 0,!0,void 0,this)]},x,!0,void 0,this)),y.writes>y.entries.length?F.jsxDEV("li",{className:"mode",children:["and ",l0(y.writes-y.entries.length,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${y.at}:${N.subject.type}:${N.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),P.state==="ok"&&P.data.total>P.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",l0(P.data.total-P.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,F.jsxDEV("a",{className:"compare-all",href:`${n1}/${Q}/~/changes`,onClick:(y)=>{y.preventDefault(),f0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jV={screen:fV,section:SV};function VV(Q){return F.jsxDEV(eK,{children:F.jsxDEV(yV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function yV({name:Q,token:U,session:Z,retry:K,snapshot:H,back:Y,canWrite:W}){let L=F1.useRef(null),M=F1.useRef(0),O=F1.useRef(Promise.resolve()),T=F1.useRef(0),[,A]=F1.useState(0),[R,w]=F1.useState({state:"loading"}),[P,V]=F1.useState(null),[S,C]=F1.useState(0),y=F1.useRef(0),N=F1.useRef(0),v=F1.useCallback(async()=>{let $1=T.current,B1=++y.current,v1=await O0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),V1=v1?.ok?await v1.json().catch(()=>null):null;if(B1<N.current)return;if(N.current=B1,!V1?.frames||!V1.boards||!V1.version){let Q0=v1?`the World answered ${v1.status}`:"the World did not answer";w((u1)=>u1.state==="ok"?u1:{state:"error",status:v1?.status??0,error:Q0}),V(Q0);return}if(V(null),C((Q0)=>Q0+1),$1===T.current&&M.current===0)L.current={boards:V1.boards,version:V1.version};w({state:"ok",data:V1})},[U,Q]);F1.useEffect(()=>{v();let $1=setInterval(()=>{if(!document.hidden)v()},1e4);return()=>clearInterval($1)},[v]);let D=R.state==="ok"?R.data.frames:[],x=L.current?.boards??[{id:"everything",name:"Everything"}],[E,u]=F1.useState(null),b=D.some(($1)=>$1.changes),m=E??(b?"changes":"everything"),s=(m==="changes"?x[0]:x.find(($1)=>$1.id===m))??x[0],[U1,Q1]=F1.useState(new Set),h=W&&!H,g=F1.useCallback(($1)=>{if(!L.current)return e0("The board is being read again: make that change once it shows","error"),Promise.resolve();L.current={...L.current,boards:$1(L.current.boards)},M.current+=1,T.current+=1,A((v1)=>v1+1);let B1=O.current.then(async()=>{let v1=L.current;if(!v1)return;try{let V1=await O0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:v1.boards,version:v1.version}),signal:AbortSignal.timeout(15000)}),Q0=await V1.json().catch(()=>null);if(V1.ok&&Q0?.boards&&Q0.version)L.current={boards:M.current>1&&L.current?L.current.boards:Q0.boards,version:Q0.version};else if(V1.status===409&&Q0?.boards&&Q0.version)L.current={boards:Q0.boards,version:Q0.version},e0("Someone else changed the board first: it is shown as they left it","error");else throw Error(Q0?.error??`the World answered ${V1.status}`)}catch(V1){e0(`The board was not kept: ${V1 instanceof Error?V1.message:String(V1)}`,"error"),L.current=null;let Q0=await O0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),u1=Q0?.ok?await Q0.json().catch(()=>null):null;if(u1?.boards&&u1.version)L.current={boards:u1.boards,version:u1.version}}}).finally(()=>{if(M.current-=1,T.current+=1,A((v1)=>v1+1),M.current===0&&!L.current)v()});return O.current=B1,B1},[U,Q,v]),p=($1,B1)=>{g((v1)=>v1.map((V1)=>V1.id===$1?B1(V1):V1))},c=($1)=>$1.parent?`${$1.vendor}:${$1.parent}`:null,l=new Set(D.map(J2)),o=($1)=>{let B1=c($1);return!B1||!l.has(B1)},k=m==="changes"?D.filter(($1)=>$1.changes):s.include?_O(s,D):_O(s,D).filter(($1)=>o($1)||U1.has(c($1))),t=D.filter(($1)=>$1.changes&&!k.includes($1)).reduce(($1,B1)=>$1+B1.changes,0),[_1,a]=F1.useState(null),[H1,O1]=F1.useState(null),[L1,T1]=F1.useState(null),G1=lJ(),R1=x.filter(($1)=>$1.include),f1=($1,B1)=>p($1,(v1)=>({...v1,include:[...v1.include??[],B1]})),z1={label:s.include?"Take it off this board":"Hide it",act:($1)=>{O1(null),p(s.id,(B1)=>B1.include?{...B1,include:B1.include.filter((v1)=>v1!==$1)}:{...B1,hidden:[...B1.hidden??[],$1]})}},C1=($1)=>({x:$1.position.x,y:$1.position.y,w:$1.width??$1.measured?.width??R4,h:$1.height??$1.measured?.height??U3}),b1=($1,B1)=>{let v1=C1($1),V1=v1.x+v1.w/2,Q0=v1.y+v1.h/2;return B1.filter((u1)=>u1.type==="section").map((u1,m1)=>({s:u1,i:m1})).filter(({s:u1})=>{let m1=C1(u1);return V1>=m1.x&&V1<=m1.x+m1.w&&Q0>=m1.y&&Q0<=m1.y+m1.h}).sort((u1,m1)=>C1(u1.s).w*C1(u1.s).h-C1(m1.s).w*C1(m1.s).h||m1.i-u1.i)[0]?.s},c1=F1.useCallback(()=>{let $1=new Map;for(let J0 of k){let T0=s.placed?.[J2(J0)];if(T0)$1.set(J2(J0),T0)}let B1=Math.max(-KU,...[...$1.values()].map((J0)=>J0.y+U3)),v1=[...new Set(k.map(_7))];for(let J0 of v1){let T0=k.filter((w0)=>_7(w0)===J0),Z2=T0.filter((w0)=>$1.has(J2(w0))).map((w0)=>$1.get(J2(w0))),K0=Z2.length?Math.max(...Z2.map((w0)=>w0.x))+R4+KU:0,S2=Z2.length?Math.min(...Z2.map((w0)=>w0.y)):B1+KU+$4*2+UH;for(let w0 of T0)if(!$1.has(J2(w0)))$1.set(J2(w0),{x:K0,y:S2}),K0+=R4+KU;B1=Math.max(B1,S2+U3)}let V1=s.sections??{},Q0=(J0,T0,Z2,K0,S2)=>({id:`sec:${J0}`,type:"section",position:{x:T0.x,y:T0.y},width:T0.w,height:T0.h,zIndex:0,draggable:h,data:{key:J0,name:Z2,vendor:K0,named:S2}}),u1=[];for(let J0 of v1){let T0=k.find((V0)=>_7(V0)===J0),Z2=Q7(T0).find((V0)=>V1[V0])??J0,K0=V1[Z2];if(K0?.gone)continue;let S2=k.filter((V0)=>_7(V0)===J0).map((V0)=>$1.get(J2(V0))),w0={x:Math.min(...S2.map((V0)=>V0.x))-$4,y:Math.min(...S2.map((V0)=>V0.y))-$4-UH,w:0,h:0};w0.w=Math.max(...S2.map((V0)=>V0.x))+R4+$4-w0.x,w0.h=Math.max(...S2.map((V0)=>V0.y))+U3+$4-w0.y;let Z7=k.filter((V0)=>_7(V0)===J0&&!s.placed?.[J2(V0)]).map((V0)=>$1.get(J2(V0))),K5=K0?{...K0}:w0;if(K0)for(let V0 of Z7)K5.w=Math.max(K5.w,V0.x+R4+$4-K5.x),K5.h=Math.max(K5.h,V0.y+U3+$4-K5.y);u1.push(Q0(Z2,K5,K0?.name??`${s1(T0.vendor)} · ${T0.section.title}`,T0.vendor,Boolean(K0?.name)))}for(let[J0,T0]of Object.entries(V1))if(J0.startsWith("user:")&&!T0.gone)u1.push(Q0(J0,T0,T0.name??"Section",null,!0));let m1=k.map((J0)=>({id:J2(J0),type:"screen",zIndex:1,width:R4,height:U3,draggable:h,position:$1.get(J2(J0)),data:{world:Q,frame:J0,url:wO(Q,J0)}}));return[...u1,...m1]},[JSON.stringify(k),JSON.stringify(s),Q,h]),[D1,A1,e1]=xR([]),k1=L0(($1)=>$1.transform[2]),g0=F1.useRef("");F1.useEffect(()=>{let $1=c1();if(A1($1),$1.length&&g0.current!==m)g0.current=m,requestAnimationFrame(()=>{G1.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[c1,A1]);let _0=($1,B1=[],v1={})=>{let V1=Object.fromEntries(B1.map((u1)=>{let m1=G1.getNode(`sec:${u1}`);if(!m1)return[u1,void 0];let J0=C1(m1),T0=m1.data,Z2=v1[u1]??(T0.named?T0.name:void 0);return[u1,{x:Math.round(J0.x),y:Math.round(J0.y),w:Math.round(J0.w),h:Math.round(J0.h),...Z2?{name:Z2.slice(0,80)}:{}}]}).filter(([,u1])=>u1!==void 0)),Q0=Object.fromEntries(Object.entries($1).map(([u1,m1])=>[u1,{x:Math.round(m1.x),y:Math.round(m1.y)}]));p(s.id,(u1)=>({...u1,placed:{...u1.placed??{},...Q0},sections:{...u1.sections??{},...V1}}))},t0=F1.useRef(null),C2=($1,B1)=>{if(B1.type!=="section"){t0.current=null;return}let v1=G1.getNodes(),V1=C1(B1),Q0=(u1)=>{let m1=C1(u1);if(u1.type==="screen"){let J0=m1.x+m1.w/2,T0=m1.y+m1.h/2;return J0>=V1.x&&J0<=V1.x+V1.w&&T0>=V1.y&&T0<=V1.y+V1.h}return u1.id!==B1.id&&m1.x>=V1.x&&m1.y>=V1.y&&m1.x+m1.w<=V1.x+V1.w&&m1.y+m1.h<=V1.y+V1.h};t0.current={id:B1.id,from:{...B1.position},members:v1.filter(Q0).map((u1)=>({id:u1.id,x:u1.position.x,y:u1.position.y}))}},u2=($1,B1)=>{let v1=t0.current;if(!v1||v1.id!==B1.id)return;let V1=B1.position.x-v1.from.x,Q0=B1.position.y-v1.from.y,u1=new Map(v1.members.map((m1)=>[m1.id,m1]));A1((m1)=>m1.map((J0)=>{let T0=u1.get(J0.id);return T0?{...J0,position:{x:T0.x+V1,y:T0.y+Q0}}:J0}))},b2=($1,B1)=>{let v1=t0.current;t0.current=null;let V1=B1.position.x-(v1?.from.x??B1.position.x),Q0=B1.position.y-(v1?.from.y??B1.position.y),u1=B1.type==="screen"?[{id:B1.id,x:B1.position.x,y:B1.position.y}]:(v1?.members??[]).map((m1)=>({...m1,x:m1.x+V1,y:m1.y+Q0}));requestAnimationFrame(()=>{let m1=G1.getNodes(),J0=new Map(u1.filter((K0)=>!K0.id.startsWith("sec:")).map((K0)=>[K0.id,{x:K0.x,y:K0.y}])),T0=new Set([...B1.type==="section"?[B1.data.key]:[],...u1.filter((K0)=>K0.id.startsWith("sec:")).map((K0)=>K0.id.slice(4))]),Z2=new Set(m1.filter((K0)=>J0.has(K0.id)).flatMap((K0)=>Q7(K0.data.frame)));for(let K0 of m1){if(K0.type==="screen"&&Q7(K0.data.frame).some((S2)=>Z2.has(S2))&&!J0.has(K0.id))J0.set(K0.id,{x:K0.position.x,y:K0.position.y});if(K0.type==="section"&&Z2.has(K0.data.key))T0.add(K0.data.key)}_0(Object.fromEntries(J0),[...T0])})},f2=($1)=>Object.fromEntries(G1.getNodes().filter((B1)=>B1.type==="screen"&&Q7(B1.data.frame).includes($1)).map((B1)=>[B1.id,{x:B1.position.x,y:B1.position.y}])),[T2,G2]=F1.useState(null),R2=($1)=>{O1(`sec:${$1}`),G2($1)},I4=($1,B1)=>{if(G2(null),!B1)return;A1((v1)=>v1.map((V1)=>V1.id===`sec:${$1}`?{...V1,data:{...V1.data,name:B1,named:!0}}:V1)),requestAnimationFrame(()=>_0(f2($1),[$1],{[$1]:B1}))},X5=($1)=>{O1(null);let B1=G1.getNode(`sec:${$1}`);p(s.id,(v1)=>{let V1=Object.fromEntries(Object.entries(v1.sections??{}).filter(([Q0])=>Q0!==$1));return{...v1,sections:$1.startsWith("user:")?V1:{...V1,[$1]:{...B1?{x:Math.round(B1.position.x),y:Math.round(B1.position.y),w:Math.round(C1(B1).w),h:Math.round(C1(B1).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},x5=()=>{let $1=H1?G1.getNode(H1):void 0,B1=G1.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),v1=$1?.type==="screen"?{x:$1.position.x-$4,y:$1.position.y-$4,w:R4+$4*2,h:U3+$4*2}:{x:B1.x-900,y:B1.y-600,w:1800,h:1200},V1=`user:${Date.now().toString(36)}`,Q0=Object.keys(s.sections??{}).filter((u1)=>u1.startsWith("user:")).length+1;O1(`sec:${V1}`),p(s.id,(u1)=>({...u1,sections:{...u1.sections??{},[V1]:{x:Math.round(v1.x),y:Math.round(v1.y),w:Math.round(v1.w),h:Math.round(v1.h),name:`Section ${Q0}`}}}))},q4=D1.map(($1)=>$1.type==="section"?{...$1,data:{...$1.data,picked:H1===$1.id,editable:h,renaming:h&&T2===$1.data.key,pick:(B1)=>O1(`sec:${B1}`),rename:R2,renamed:I4,remove:X5,resized:()=>requestAnimationFrame(()=>{let B1=$1.data.key;_0(f2(B1),[B1])})}}:{...$1,data:{...$1.data,active:_1===$1.id,picked:H1===$1.id,boards:h?R1:[],addTo:f1,remove:!h||s.include&&!s.include.includes($1.id)?null:z1,compare:(B1)=>{O1(B1),T1(B1)}}});F1.useEffect(()=>{let $1=(B1)=>{if(B1.target?.closest("input, textarea, select, [contenteditable]"))return;if(B1.key==="Escape"){if(_1)a(null);else O1(null);return}if(!h||_1)return;if((B1.key==="Delete"||B1.key==="Backspace")&&H1){if(B1.preventDefault(),H1.startsWith("sec:"))X5(H1.slice(4));else if(!s.include||s.include.includes(H1))z1.act(H1);else e0("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(B1.key==="S"&&B1.shiftKey&&!B1.metaKey&&!B1.ctrlKey)B1.preventDefault(),x5()};return document.addEventListener("keydown",$1),()=>document.removeEventListener("keydown",$1)});let R5=($1)=>{O1($1);let B1=G1.getNode($1);if(!B1)return;let v1=C1(B1);G1.fitBounds({x:v1.x,y:v1.y,width:v1.w,height:v1.h},{padding:0.15,duration:400})},G3=()=>{let $1=`board-${Date.now().toString(36)}`;u($1),g((B1)=>[...B1,{id:$1,name:`Board ${B1.length}`,include:[]}])},O5=()=>G2(`board:${s.id}`),j=()=>{let $1=s.id;u(null),g((B1)=>B1.filter((v1)=>v1.id!==$1))},q1=[...new Map(D.map(($1)=>[_7($1),$1])).values()],I1=s.include?[...q1.filter(($1)=>!Q7($1).some((B1)=>s.include.includes(B1))).map(($1)=>({key:_7($1),label:`${s1($1.vendor)} · ${$1.section.title} (all)`})),...D.filter(($1)=>!k.includes($1)).map(($1)=>({key:J2($1),label:$1.title}))]:[],P1=s.include?[]:D.filter(($1)=>(s.hidden??[]).includes(J2($1))),y1=D1.filter(($1)=>$1.type==="section"),i1=D1.filter(($1)=>$1.type==="screen"),r1=new Map(i1.map(($1)=>[$1.id,b1($1,D1)?.id??null])),F0=new Map;for(let $1 of D){let B1=c($1);if(B1&&l.has(B1))F0.set(B1,(F0.get(B1)??0)+1)}let x1=($1)=>{let B1=$1.data.frame;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:H1===$1.id?"on":void 0,onClick:()=>R5($1.id),onDoubleClick:()=>a($1.id),children:[F.jsxDEV(q2,{vendor:B1.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:B1.title},void 0,!1,void 0,this),B1.changes?F.jsxDEV("span",{className:"layer-changed",title:`${l0(B1.changes,"change")}, not in a changeset: its mark on the board compares before and now`,children:[F.jsxDEV(Z0,{name:"square-dot",size:14},void 0,!1,void 0,this),B1.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F0.get($1.id)&&m!=="changes"&&!s.include?F.jsxDEV("button",{type:"button",className:"ghost layer-open","aria-expanded":U1.has($1.id),onClick:()=>Q1((v1)=>{let V1=new Set(v1);if(V1.has($1.id))V1.delete($1.id);else V1.add($1.id);return V1}),title:U1.has($1.id)?"Close the pages under it":"Open the pages under it",children:[U1.has($1.id)?"−":"+",F0.get($1.id)]},void 0,!0,void 0,this):null]},$1.id,!0,void 0,this)},K2=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,E2=Z.state==="ok"&&R.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",style:{"--zoom":k1},children:F.jsxDEV(hR,{nodes:E2?q4:[],onNodesChange:e1,nodeTypes:jV,onNodeDragStart:C2,onNodeDrag:u2,onNodeDragStop:b2,onNodeClick:($1,B1)=>{if(B1.id!==_1)O1(B1.id)},onNodeDoubleClick:($1,B1)=>{if(B1.type==="screen")O1(B1.id),a(B1.id)},onPaneClick:()=>{a(null),O1(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:K2?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(gR,{variant:Q3.Dots,gap:28*2**Math.max(0,Math.ceil(Math.log2(16/(28*k1)))),size:2/k1},void 0,!1,void 0,this),F.jsxDEV(q3,{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:[F.jsxDEV("button",{type:"button",role:"tab","aria-selected":m==="changes",className:m==="changes"?"on":void 0,onClick:()=>{O1(null),a(null),u("changes")},title:"The pages whose records changed and are not yet in a changeset",children:["Changes",b?` (${D.filter(($1)=>$1.changes).length})`:""]},void 0,!0,void 0,this),x.map(($1)=>T2===`board:${$1.id}`?F.jsxDEV(PO,{name:$1.name,label:"Name this board",done:(B1)=>{if(G2(null),B1)p($1.id,(v1)=>({...v1,name:B1}))}},$1.id,!1,void 0,this):F.jsxDEV("button",{type:"button",role:"tab","aria-selected":m!=="changes"&&$1.id===s.id,className:m!=="changes"&&$1.id===s.id?"on":void 0,onClick:()=>{O1(null),a(null),u($1.id)},onDoubleClick:h&&$1.id===s.id&&$1.include?O5:void 0,children:$1.name},$1.id,!1,void 0,this)),h?F.jsxDEV("button",{type:"button",className:"ghost",onClick:G3,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),s.include&&h?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:O5,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:j,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:[y1.map(($1)=>{let B1=$1.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:H1===$1.id?"layer-section on":"layer-section",onClick:()=>R5($1.id),onDoubleClick:()=>{if(h)R5($1.id),R2(B1.key)},children:[B1.vendor?F.jsxDEV(q2,{vendor:B1.vendor},void 0,!1,void 0,this):F.jsxDEV(Z0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:B1.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:i1.filter((v1)=>r1.get(v1.id)===$1.id).map(x1)},void 0,!1,void 0,this)]},$1.id,!0,void 0,this)}),i1.filter(($1)=>!r1.get($1.id)).map(x1)]},void 0,!0,void 0,this),s.include&&!k.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,I1.length&&h?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:($1)=>{let B1=$1.target.value;if(B1)p(s.id,(v1)=>({...v1,include:[...v1.include??[],B1]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),I1.map(($1)=>F.jsxDEV("option",{value:$1.key,children:$1.label},$1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,P1.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",P1.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:P1.map(($1)=>F.jsxDEV("li",{children:h?F.jsxDEV("button",{type:"button",onClick:()=>p(s.id,(B1)=>({...B1,hidden:(B1.hidden??[]).filter((v1)=>v1!==J2($1))})),children:[F.jsxDEV("span",{children:$1.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:$1.title},void 0,!1,void 0,this)},J2($1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>u("changes"),children:[F.jsxDEV(Z0,{name:"square-dot",size:14},void 0,!1,void 0,this),l0(t,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(r2,{load:R,what:"the board"},void 0,!1,void 0,this),P&&R.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:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),_1?F.jsxDEV(q3,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",k.find(($1)=>J2($1)===_1)?.title??_1]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>a(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(q3,{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),h?F.jsxDEV(q3,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:x5,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(Z0,{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,L1&&k.some(($1)=>J2($1)===L1)?F.jsxDEV(q3,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(vV,{name:Q,token:U,frame:k.find(($1)=>J2($1)===L1),onClose:()=>T1(null),reads:S},L1,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(cR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(iR,{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 NO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),kV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function LU(Q){let U=Q.actions.filter(kV).length,Z=Q.actions.length-U,K=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((M)=>M.status==="deployed"),...K.filter((M)=>M.status==="confirmed")].map((M)=>M.actionId)).size,W=new Set([...H.filter((M)=>M.status==="refused"||M.status==="failed"),...K.filter((M)=>M.status==="failed")].map((M)=>M.actionId)).size,L={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...L};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...L};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...L};if(K.some((M)=>M.status==="replayed")&&K.every((M)=>M.status==="replayed"||M.status==="skipped"))return{label:"Pushed",tone:"good",...L};return{label:"Not sent",tone:"plain",...L}}var QH=(Q)=>Q.message??Q.narration?.split(`
250
- `)[0]?.replace(/ setting .*$/,"")??Q.name;function CO(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:L,part:M,required:O}){let T=M==="head",A=M==="review",[R,w]=F1.useState(null),[P,V]=F1.useState(!1),[S,C]=F1.useState(""),[y,N]=F1.useState(""),[v,D]=F1.useState(null),x=y0(U,`/-/${Q}/origin`),E=LU(K),u=CO(K,O),b=NO(K),m=[...new Set(b.map((a)=>a.twin))],s=m.some((a)=>Y.includes(a)),U1=(a)=>a===(K.currentHash??K.contentHash),Q1=K.applied?.receipts??[],h=(K.deployed??[]).filter((a)=>a.status!=="landed"),g=Q1.filter((a)=>a.status==="confirmed").length,p=h.filter((a)=>a.status==="deployed"),c=async(a,H1,O1,L1)=>{w(a),D(null);try{let T1=await O0(U,H1,{method:"POST",...O1===void 0?{}:{body:JSON.stringify(O1)}});if(!T1.ok)return W(T1),D({what:a,...M2(await k3(T1))}),!1;if(L1)e0(L1);return L(),!0}catch(T1){return D({what:a,text:`the World did not answer (${T1 instanceof Error?T1.message:String(T1)})`,acts:[]}),!1}finally{w(null)}},l=()=>{c("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(a)=>{if(a.preventDefault(),await c("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...S.trim()?{note:S.trim()}:{},...Z===null&&y.trim()?{as:y.trim()}:{}},"Approved"))V(!1),C("")},k=async()=>{let a=m.filter((H1)=>Y.includes(H1));if(!await n4({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",a.length===1?"":"s"," behind ",E8(a.map(s1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;w("Deploy"),D(null);try{let H1=await O0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!H1.ok){W(H1),D({what:"Deploy",...M2(await k3(H1))});return}let O1=await O0(U,`/-/${Q}/changesets/${K.name}`),L1=O1.ok?await O1.json():null;if(!L1){e0("Deploy: sent; reading its receipts failed","info"),L();return}let T1=LU(L1);e0(`Deploy: ${T1.performed} of ${T1.total} change${T1.total===1?"":"s"} performed at the vendor${T1.failed?`; ${T1.failed} refused or failed`:""}`,T1.failed?"error":T1.performed?"ok":"info"),L()}catch(H1){D({what:"Deploy",text:`the World did not answer (${H1 instanceof Error?H1.message:String(H1)})`,acts:[]})}finally{w(null)}},t=!H?"This session reads the World; it changes nothing":E.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,_1=x.state==="ok"&&x.data.origin?HH(x.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[T?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-${u.tone}`,children:u.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(j0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",E8(m.map(s1))||"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:l,disabled:Boolean(t)||R!==null,title:t??"Replay it in a throwaway World and run the World's checks",children:R==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(t)||R!==null,title:t??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),s?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(t)||R!==null,title:t??"Perform it against the real accounts behind this World",children:R==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),t&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[t,"."]},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:l,disabled:R!==null,children:"Verify"},void 0,!1,void 0,this):null,v.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:R!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(ZO,{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 ",E8([...new Set([...p.map((a)=>a.service),...Q1.filter((a)=>a.status==="confirmed").map((a)=>a.service)].map(s1))]),p.length?` (${p.length} from here`:" (",p.length&&g?", ":"",g?`${g} by the remote`:"",")."]},void 0,!0,void 0,this):E.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",_1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:_1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(j0,{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",s?"; 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",[...h.filter((a)=>a.reason&&(a.status==="refused"||a.status==="failed")).map((a)=>a.reason),...Q1.filter((a)=>a.status==="failed"&&a.error).map((a)=>a.error)].slice(0,3).map((a)=>`: ${M2(a).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((a,H1)=>F.jsxDEV("li",{className:"mode",children:M2(a).text},H1,!1,void 0,this))},void 0,!1,void 0,this):null,h.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:h.map((a)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:a.status==="refused"||a.status==="failed"?"badge cs-bad":a.status==="deployed"?"badge cs-done":"badge",children:a.status},void 0,!1,void 0,this)," ",s1(a.service)," ",a.status==="deployed"?a.url?F.jsxDEV("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:a.externalId??a.url},void 0,!1,void 0,this):a.externalId?F.jsxDEV("code",{children:a.externalId},void 0,!1,void 0,this):null:null,a.reason?F.jsxDEV("span",{className:"mode",children:[" · ",M2(a.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(j0,{iso:a.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${a.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Q1.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:Q1.map((a)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:a.status==="failed"?"badge cs-bad":a.status==="confirmed"?"badge cs-done":"badge",children:a.status},void 0,!1,void 0,this)," ",s1(a.service)," ",F.jsxDEV("span",{className:"mode",children:a.status==="replayed"?"replayed at the remote World":a.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),a.status==="confirmed"&&a.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:a.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,a.error?F.jsxDEV("span",{className:"mode",children:[" · ",M2(a.error).text]},void 0,!0,void 0,this):null]},`r:${a.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!s&&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:`${n1}/${Q}/~/settings/services`,onClick:(a)=>{a.preventDefault(),f0([...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:U1(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(j0,{iso:K.verification.at},void 0,!1,void 0,this),U1(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((a)=>F.jsxDEV("li",{children:[a.passed?"✓":"✗"," ",F.jsxDEV("code",{children:a.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:s1(a.service)},void 0,!1,void 0,this)]},a.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((a,H1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:a.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[s1(a.service),": ",a.reason]},void 0,!0,void 0,this)]},H1,!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((a,H1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:a.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(j0,{iso:a.at},void 0,!1,void 0,this),U1(a.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),a.note?F.jsxDEV("div",{className:"mode",children:["“",a.note,"”"]},void 0,!0,void 0,this):null]},H1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(E5,{open:P,onClose:()=>{if(!R)V(!1)},title:`Approve ${K.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:R!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:R!==null,children:R==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(a)=>void o(a),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:y,onChange:(a)=>N(a.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:(a)=>C(a.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 fO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function DV({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(q2,{vendor:K},void 0,!1,void 0,this),s1(K)," ",F.jsxDEV("span",{className:"mode",children:["· ",l0(Y.length,"record"),", ",l0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let L=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),M=L[L.length-1],O=Q4(M),T={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:M.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",O.label?F.jsxDEV("span",{className:"label",children:["“",O.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:i3(M)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L.map((A)=>{let R=A.fields??{},w=Object.entries(R).filter(([V,S])=>!(V in T)||!fO(T[V],S)),P=T;return T={...T,...R},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(j0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",dJ(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(F1.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(d3,{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(d3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(d3,{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)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function uV({name:Q,token:U,changes:Z,canWrite:K,refused:H,onCut:Y,pinned:W,generated:L,inputRef:M,author:O}){let[T,A]=F1.useState(""),[R,w]=F1.useState(!1),[P,V]=F1.useState([]),S=(y,N,v)=>{V((D)=>[{ok:y,text:N,at:new Date().toISOString(),n:++aJ,...v?.length?{acts:v}:{}},...D].slice(0,4))},C=async(y)=>{y.preventDefault(),w(!0);try{let N=await O0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!N.ok){H(N);let D=M2(await k3(N));S(!1,`Cut a changeset: ${D.text}`,D.acts);return}let v=await N.json();S(!0,`Cut ${v.name??"a changeset"}: ${l0(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 y=!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(r6,{log:P,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(N)=>void C(N),"aria-label":"Cut a changeset",children:[O?F.jsxDEV("a",{className:"ws-author",href:O.account,title:`${O.who}: your account`,onClick:(N)=>{N.preventDefault(),f0(O.account.slice(n1.length+1).split("/"))},children:O.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:M,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(N)=>A(N.target.value),placeholder:Z===0?"Nothing to cut":L?"Summary (optional)":"Summary (required)",required:!L,maxLength:200,disabled:Boolean(y),title:y??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(y)||R,title:y??void 0,children:R?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",l0(Z,"change"),O?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:O.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(r6,{log:P,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(y)=>void C(y),"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:T,onChange:(y)=>A(y.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:R||Z===0,children:R?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r6,{log:P,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bV({name:Q,token:U}){let[Z,K]=F1.useState(0),H=y0(U,`/-/${Q}/keys`,Z),[Y,W]=F1.useState(!1),[L,M]=F1.useState(""),[O,T]=F1.useState("write"),[A,R]=F1.useState(!1),[w,P]=F1.useState(null),[V,S]=F1.useState(null),[C,y]=F1.useState(null),N=async()=>{let x=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await O0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:x,scope:"read"})}).catch(()=>null),u=E?await E.json().catch(()=>({})):{error:`${P0} did not answer`};if(!E?.ok||!u.key){e0(u.error?M2(u.error).text:"refused","error");return}y(`${window.location.origin}${n1}/${Q}#${new URLSearchParams({token:u.key}).toString()}`),K((b)=>b+1)},v=async(x)=>{x.preventDefault(),R(!0),P(null);let E=await O0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:L.trim(),scope:O})}).catch(()=>null);R(!1);let u=E?await E.json().catch(()=>({})):{error:`${P0} did not answer`};if(!E?.ok||!u.key){P(u.error?M2(u.error).text:"refused");return}W(!1),S({key:u.key,name:L.trim()}),M(""),K((b)=>b+1)},D=async(x)=>{if(!await n4({title:`Revoke ${x.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await O0(U,`/-/${Q}/keys/${x.id}`,{method:"DELETE"});if(E.ok)e0(`Revoked ${x.name}`);else e0(await T5(E),"error");K((u)=>u+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),t2()?F.jsxDEV("a",{className:"button primary",href:`${t2()}/${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(r2,{load:H,what:"the keys",retry:()=>K((x)=>x+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((x)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:x.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:x.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:x.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:b8(x.createdAt),children:sF(x.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:x.lastUsedAt?sF(x.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(lA,{label:`More for ${x.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void D(x)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},x.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(E5,{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||!L.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:L,onChange:(x)=>M(x.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:O,onChange:(x)=>T(x.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(E5,{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(oF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(E5,{open:Boolean(C),onClose:()=>y(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>y(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(oF,{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 aJ=0;function r6({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(j0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(ZO,{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 SO(Q,U,Z,K){let[H,Y]=F1.useState(0),W=H*1e5+Math.floor(Z/2),L=y0(U,`/-/${Q}/origin`,W),M=y0(U,`/-/${Q}/diff`,W),O=y0(U,`/-/${Q}/changesets`,W),[T,A]=F1.useState([]),[R,w]=F1.useState(null),P=(D,x,E)=>{if(A((u)=>[{ok:D,text:x,at:new Date().toISOString(),n:++aJ,...E?.length?{acts:E}:{}},...u].slice(0,8)),!D)e0(x,"error")},V=async(D,x,E)=>{w(D);try{let u=await O0(U,`/-/${Q}/${x}`,E);if(!u.ok){K(u);let b=M2(await k3(u));return P(!1,`${D}: ${b.text}`,b.acts),null}return await u.json()}catch(u){return P(!1,`${D}: the World did not answer (${u instanceof Error?u.message:String(u)})`),null}finally{w(null),Y((u)=>u+1)}},S=L.state==="ok"&&L.data.origin?HH(L.data.origin):null,C=M.state==="ok"?M.data.changes.length:null,y=O.state==="ok"&&S?WV(O.data.changesets.filter((D)=>!D.pushedBy)).sort((D,x)=>D.createdAt.localeCompare(x.createdAt)):[];return{origin:L,diff:M,sets:O,there:S,changes:C,waiting:y,log:T,busy:R,say:P,send:V,push:async()=>{let D=await V("Push","origin/push",{method:"POST"});if(!D)return;if(D.pushed.length===0){P(!0,"Nothing to push: every changeset is already at the remote.");return}for(let x of D.pushed){let E=x.receipts??[],u=E.filter((Q1)=>Q1.status==="replayed").length,b=E.filter((Q1)=>Q1.status==="confirmed").length,m=E.filter((Q1)=>Q1.status==="failed").length,s=x.outcome==="applied"&&m===0;if(x.outcome==="refused"){P(!1,`Push of ${x.changeset} was refused${x.refusal?.length?`: ${x.refusal.map((Q1)=>M2(Q1).text).join("; ")}`:""}.`);continue}let U1=[`${u} of ${l0(E.length,"change")} replayed there`,...b?[`${b} performed at the vendor by the remote`]:[],...m?[`${m} failed`]:[]];P(s,`${x.outcome==="partial"?"Partly pushed":"Pushed"} ${x.changeset} to ${S??"the remote"}: ${U1.join("; ")}${x.refusal?.length?` (${x.refusal.map((Q1)=>M2(Q1).text).join("; ")})`:""}.`)}},pull:async()=>{let D=await V("Pull","origin/pull",{method:"POST"});if(!D)return;let x=Object.entries(D.appended).filter(([,u])=>u>0),E=D.rebased.flatMap((u)=>u.conflicts.map((b)=>`${s1(u.twin)} ${b.subject.type}:${b.subject.id} ${b.field}`));P(E.length===0,`Pulled from ${S??"the remote"}: ${x.length?x.map(([u,b])=>`${l0(b,"entry")} at ${s1(u)}`).join(", "):"nothing new"}${E.length?`; conflicts at ${E.join(", ")}`:""}.`)}}}function EV({name:Q,token:U,canWrite:Z,tick:K,refused:H}){let{origin:Y,there:W,changes:L,log:M,busy:O,say:T,send:A,push:R,pull:w}=SO(Q,U,K,H),[P,V]=F1.useState(""),[S,C]=F1.useState(""),[y,N]=F1.useState(!1),v=async(x)=>{x.preventDefault();let E=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:P.trim(),token:S.trim()})});if(E){let u=Object.values(E.appended??{}).reduce((b,m)=>b+m,0);T(!0,`The remote is ${HH(E.origin)}: its history came in (${l0(u,"entry")}).`),C(""),N(!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??""),N(!y)},"aria-expanded":y,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(j0,{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(r2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),y?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(x)=>void v(x),"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:(x)=>V(x.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:(x)=>C(x.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:O!==null,children:O==="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(r6,{log:M,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hV({name:Q,token:U,canWrite:Z,refused:K}){let[H,Y]=F1.useState(0),W=y0(U,`/-/${Q}/twins`,H),L=y0(U,`/-/${Q}/links`,H),M=y0(U,`/-/${Q}/requests?hours=24`,H),[O,T]=F1.useState({}),[A,R]=F1.useState(null),[w,P]=F1.useState(""),[V,S]=F1.useState(!1),[C,y]=F1.useState([]),N=(b,m,s)=>{if(y((U1)=>[{ok:b,text:m,at:new Date().toISOString(),n:++aJ,...s?.length?{acts:s}:{}},...U1].slice(0,6)),!b)e0(m,"error")},v=L.state==="ok"?Object.keys(L.data.links).sort():[];F1.useEffect(()=>{let b=!0;return Promise.all(v.map(async(m)=>{let s=await O0(U,`/-/${Q}/twins/${m}/credential`).catch(()=>null),U1=s?.ok?await s.json():null;return[m,U1?.credential??null]})).then((m)=>{if(b)T(Object.fromEntries(m))}),()=>{b=!1}},[Q,U,v.join(","),H]);let D=async(b)=>{if(b.preventDefault(),!A||!w)return;S(!0);let m=await O0(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}: ${P0} did not answer`);return}if(!m.ok){K(m);let U1=M2(await k3(m));N(!1,`Seal ${s1(A.vendor)}: ${U1.text}`,U1.acts);return}let s=await m.json().catch(()=>({}));N(!0,`Sealed a credential for ${s1(A.vendor)}${s.fingerprint?` (${s.fingerprint})`:""}: it opens for ${s.boundTo??A.to} only, and is never shown again.`),P(""),R(null),Y((U1)=>U1+1)},x=async(b)=>{if(!await n4({title:`Remove the link ${b}?`,body:`Requests to ${c3}/${Q}/${b}/… stop being forwarded to ${L.state==="ok"?L.data.links[b]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let m=await O0(U,`/-/${Q}/links/${b}`,{method:"DELETE"}).catch(()=>null);if(!m?.ok){if(m)K(m);N(!1,`Remove ${b}: ${m?await T5(m):"the World did not answer"}`);return}N(!0,`Removed the link ${b}.`),Y((s)=>s+1)},E=(b)=>b?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:[b.fingerprint?F.jsxDEV("code",{children:b.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(j0,{iso:b.placedAt},void 0,!1,void 0,this),b.sealedBy?` · by ${b.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),u=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(r6,{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(r2,{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:u.map((b)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:b.twin},void 0,!1,void 0,this),s1(b.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E(b.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:b.credential?.boundTo?F.jsxDEV("code",{children:b.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:b.root?.url?F.jsxDEV("code",{children:b.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:!b.root?.url,title:b.root?.url?`Seal ${s1(b.twin)}'s real credential for ${b.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{P(""),R({vendor:b.twin,to:b.root.url})},children:b.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},b.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&u.every((b)=>!b.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(r2,{load:L,what:"the links"},void 0,!1,void 0,this),M.state==="ok"&&(M.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[M.data.journalFailures," request ",M.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,L.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:[c3,"/",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((b)=>{let m=L.state==="ok"?L.data.links[b].origin:"",s=M.state==="ok"?M.data.twins.find((U1)=>U1.twin===b):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:b},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:s?F.jsxDEV("span",{title:Object.entries(s.byStatus).map(([U1,Q1])=>`${U1}: ${Q1}`).join(" · "),children:s.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(O[b]??null),O[b]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:O[b].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(""),R({vendor:b,to:m})},children:O[b]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void x(b),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},b,!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(E5,{open:Boolean(A),onClose:()=>{if(!V)R(null)},title:`Seal ${A?s1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>R(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:(b)=>void D(b),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:(b)=>P(b.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 xV({name:Q,token:U,admin:Z,canWrite:K,refused:H,onRemoved:Y,only:W}){let L=(l)=>!W||W===l,[M,O]=F1.useState(0),T=y0(U,`/-/${Q}/twins`,M),A=y0(U,`/-/${Q}/checks`,M),[R,w]=F1.useState(0),P=y0(U,`/-/${Q}/clock`,R),[V,S]=F1.useState([]),[C,y]=F1.useState(null),[N,v]=F1.useState(null),[D,x]=F1.useState(""),[E,u]=F1.useState("gated"),[b,m]=F1.useState(!1),s=(l,o,k)=>{if(S((t)=>[{ok:l,text:o,at:new Date().toISOString(),n:++aJ,...k?.length?{acts:k}:{}},...t].slice(0,6)),!l)e0(o,"error")},U1=async(l,o,k)=>{let t=await O0(U,o,k).catch(()=>null);if(!t)return s(!1,`${l}: the World did not answer`),!1;if(!t.ok){H(t);let _1=M2(await k3(t));return s(!1,`${l}: ${_1.text}`,_1.acts),!1}return s(!0,`${l}: done.`),O((_1)=>_1+1),!0},Q1=async(l)=>{if(l.preventDefault(),!N)return;m(!0);let o=N.root??{},k=await U1(D.trim()?`Connect ${s1(N.twin)} to ${D.trim()}`:`Disconnect ${s1(N.twin)}`,`/-/${Q}/twins/${N.twin}/root`,{method:"PUT",body:JSON.stringify(D.trim()?{...o,url:D.trim(),deploy:E}:null)});if(m(!1),k)v(null)},h=async()=>{if(!await n4({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 l=await O0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(l.ok)y(await l.json()),s(!0,"Rotated: the new tokens are shown once, below.");else s(!1,`Rotate: ${await T5(l)}`)},g=async()=>{if(!await n4({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 l=await O0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(l instanceof Error){s(!1,`Remove: the host did not answer (${l.message})`);return}if(l.ok)Y();else s(!1,`Remove: ${await T5(l)}`)},p=T.state==="ok"?T.data.twins:[],c={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(r6,{log:V,name:Q},void 0,!1,void 0,this),L("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),K?F.jsxDEV(bV,{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,L("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:[p.some((l)=>l.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(r2,{load:T,what:"the vendors"},void 0,!1,void 0,this),T.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:p.map((l)=>{let o=l.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:l.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${n1}/${Q}/${l.twin}`,title:`Its log and stored state · ${l.position??0} entries`,onClick:(k)=>{k.preventDefault(),f0([...Q.split("/"),l.twin])},children:s1(l.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?c[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:l.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",l.refresh.failed.count??1,": ",l.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?b8(l.refresh?.observedAt??l.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:()=>{x(o?.url??""),u(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),v(l)},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 n4({title:`Read ${s1(l.twin)} now?`,body:`The real ${s1(l.twin)}'s current state is read into this World. Nothing is written to ${s1(l.twin)}.`,action:"Read from it"}).then((k)=>{if(k)U1(`Read from ${s1(l.twin)}`,`/-/${Q}/twins/${l.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},l.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,L("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(BV,{name:Q,token:U,clock:P,canWrite:K,onChanged:()=>w((l)=>l+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L("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(r2,{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((l)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},l,!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 h(),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(E5,{open:Boolean(N),onClose:()=>{if(!b)v(null)},title:`Connect ${N?s1(N.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(null),disabled:b,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:b,children:b?"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:(l)=>void Q1(l),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:(l)=>x(l.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:(l)=>u(l.target.value==="auto"?"auto":l.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((l)=>F.jsxDEV("option",{value:l,children:c[l]},l,!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 vO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(ej,{},void 0,!1,void 0,this),F.jsxDEV(cA,{},void 0,!1,void 0,this),F.jsxDEV(pA,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var VO=s0(u8(),1);Aq();jO.createRoot(U7).render(VO.jsxDEV(vO,{},void 0,!1,void 0,this));
246
+ `)),T=O.reduce((A,R)=>A.concat(...R),[]);return[O,T]}return[[],[]]},[Q]);return L1.useEffect(()=>{let M=U?.target??hT,O=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(I)=>{if(H.current=I.ctrlKey||I.metaKey||I.shiftKey||I.altKey,(!H.current||H.current&&!O)&&xK(I))return!1;let V=mT(I.code,L);if(Y.current.add(I[V]),xT(W,Y.current,!1)){let S=I.composedPath?.()?.[0]||I.target,C=S?.nodeName==="BUTTON"||S?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!C))I.preventDefault();K(!0)}},A=(I)=>{let P=mT(I.code,L);if(xT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(I[P]);if(I.key==="Meta")Y.current.clear();H.current=!1},R=()=>{Y.current.clear(),K(!1)};return M?.addEventListener("keydown",T),M?.addEventListener("keyup",A),window.addEventListener("blur",R),window.addEventListener("contextmenu",R),()=>{M?.removeEventListener("keydown",T),M?.removeEventListener("keyup",A),window.removeEventListener("blur",R),window.removeEventListener("contextmenu",R)}}},[Q,K]),Z}function xT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function mT(Q,U){return U.includes(Q)?"code":"key"}var iS=()=>{let Q=r0();return L1.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:L}=Q.getState(),M=gJ(U,K,H,Y,W,Z?.padding??0.1);if(!L)return!1;return await L.setViewport(M,{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:L,y:M}=W.getBoundingClientRect(),O={x:U.x-L,y:U.y-M},T=Z.snapGrid??H,A=Z.snapToGrid??Y;return P9(O,K,A,T)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),W=n8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function HR(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 L={...Y};for(let M of W)dS(M,L);Z.push(L)}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 dS(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 YR(Q,U){return HR(Q,U)}function rS(Q,U){return HR(Q,U)}function J7(Q,U){return{id:Q,type:"select",selected:U}}function C9(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(J7(Y.id,W))}}return K}function gT({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),L=W?.internals?.userNode??W;if(L!==void 0&&L!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(L===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 pT(Q){return{id:Q.id,type:"remove"}}var aS=kK("React Flow","https://reactflow.dev/");function sS(Q,U,Z={}){return $T(Q,U,{...Z,onError:Z.onError??aS})}var cT=(Q)=>iM(Q),tS=(Q)=>fK(Q);function zR(Q){return L1.forwardRef(Q)}var WR=typeof window<"u"?L1.useLayoutEffect:L1.useEffect;function lT(Q){let[U,Z]=L1.useState(BigInt(0)),[K]=L1.useState(()=>oS(()=>Z((H)=>H+BigInt(1))));return WR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function oS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var LR=L1.createContext(null);function nS({children:Q}){let U=r0(),Z=L1.useCallback((L)=>{let{nodes:M=[],setNodes:O,hasDefaultNodes:T,onNodesChange:A,nodeLookup:R,fitViewQueued:I,onNodesChangeMiddlewareMap:P}=U.getState(),V=M;for(let C of L)V=typeof C==="function"?C(V):C;let S=gT({items:V,lookup:R});for(let C of P.values())S=C(S);if(T)O(V);if(S.length>0)A?.(S);else if(I)window.requestAnimationFrame(()=>{let{fitViewQueued:C,nodes:y,setNodes:N}=U.getState();if(C)N(y)})},[]),K=lT(Z),H=L1.useCallback((L)=>{let{edges:M=[],setEdges:O,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:R}=U.getState(),I=M;for(let P of L)I=typeof P==="function"?P(I):P;if(T)O(I);else if(A)A(gT({items:I,lookup:R}))},[]),Y=lT(H),W=L1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return K1.jsx(LR.Provider,{value:W,children:Q})}function eS(){let Q=L1.useContext(LR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var _j=(Q)=>!!Q.panZoom;function lJ(){let Q=iS(),U=r0(),Z=eS(),K=B0(_j),H=L1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},L=(A)=>{Z.edgeQueue.push(A)},M=(A)=>{let{nodeLookup:R,nodeOrigin:I}=U.getState(),P=cT(A)?A:R.get(A.id),V=P.parentId?uK(P.position,P.measured,P.parentId,R,I):P.position,S={...P,position:V,width:P.measured?.width??P.width,height:P.measured?.height??P.height};return I9(S)},O=(A,R,I={replace:!1})=>{W((P)=>P.map((V)=>{if(V.id===A){let S=typeof R==="function"?R(V):R;return I.replace&&cT(S)?S:{...V,...S}}return V}))},T=(A,R,I={replace:!1})=>{L((P)=>P.map((V)=>{if(V.id===A){let S=typeof R==="function"?R(V):R;return I.replace&&tS(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((R)=>({...R}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:W,setEdges:L,addNodes:(A)=>{let R=Array.isArray(A)?A:[A];Z.nodeQueue.push((I)=>[...I,...R])},addEdges:(A)=>{let R=Array.isArray(A)?A:[A];Z.edgeQueue.push((I)=>[...I,...R])},toObject:()=>{let{nodes:A=[],edges:R=[],transform:I}=U.getState(),[P,V,S]=I;return{nodes:A.map((C)=>({...C})),edges:R.map((C)=>({...C})),viewport:{x:P,y:V,zoom:S}}},deleteElements:async({nodes:A=[],edges:R=[]})=>{let{nodes:I,edges:P,onNodesDelete:V,onEdgesDelete:S,triggerNodeChanges:C,triggerEdgeChanges:y,onDelete:N,onBeforeDelete:j}=U.getState(),{nodes:D,edges:x}=await aM({nodesToRemove:A,edgesToRemove:R,nodes:I,edges:P,onBeforeDelete:j}),E=x.length>0,u=D.length>0;if(E){let b=x.map(pT);S?.(x),y(b)}if(u){let b=D.map(pT);V?.(D),C(b)}if(u||E)N?.({nodes:D,edges:x});return{deletedNodes:D,deletedEdges:x}},getIntersectingNodes:(A,R=!0,I)=>{let P=yK(A),V=P?A:M(A),S=I!==void 0;if(!V)return[];return(I||U.getState().nodes).filter((C)=>{let y=U.getState().nodeLookup.get(C.id);if(y&&!P&&(C.id===A.id||!y.internals.positionAbsolute))return!1;let N=I9(S?C:y),j=mJ(N,V);return R&&j>0||j>=N.width*N.height||j>=V.width*V.height})},isNodeIntersecting:(A,R,I=!0)=>{let V=yK(A)?A:M(A);if(!V)return!1;let S=mJ(V,R);return I&&S>0||S>=R.width*R.height||S>=V.width*V.height},updateNode:O,updateNodeData:(A,R,I={replace:!1})=>{O(A,(P)=>{let V=typeof R==="function"?R(P):R;return I.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},I)},updateEdge:T,updateEdgeData:(A,R,I={replace:!1})=>{T(A,(P)=>{let V=typeof R==="function"?R(P):R;return I.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},I)},getNodesBounds:(A)=>{let{nodeLookup:R,nodeOrigin:I}=U.getState();return jK(A,{nodeLookup:R,nodeOrigin:I})},getHandleConnections:({type:A,id:R,nodeId:I})=>Array.from(U.getState().connectionLookup.get(`${I}-${A}${R?`-${R}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:R,nodeId:I})=>Array.from(U.getState().connectionLookup.get(`${I}${A?R?`-${A}-${R}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let R=U.getState().fitViewResolver??oM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:R}),Z.nodeQueue.push((I)=>[...I]),R.promise}}},[]);return L1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var iT=(Q)=>Q.selected,Jj=typeof window<"u"?window:void 0;function $j({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=r0(),{deleteElements:K}=lJ(),H=cJ(Q,{actInsideInputWithModifier:!1}),Y=cJ(U,{target:Jj});L1.useEffect(()=>{if(H){let{edges:W,nodes:L}=Z.getState();K({nodes:L.filter(iT),edges:W.filter(iT)}),Z.setState({nodesSelectionActive:!1})}},[H]),L1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function Qj(Q){let U=r0();L1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=rq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",X5.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 ZU={position:"absolute",width:"100%",height:"100%",top:0,left:0},qj=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function Uj({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=m3.Free,zoomOnDoubleClick:L=!0,panOnDrag:M=!0,defaultViewport:O,translateExtent:T,minZoom:A,maxZoom:R,zoomActivationKeyCode:I,preventScrolling:P=!0,children:V,noWheelClassName:S,noPanClassName:C,onViewportChange:y,isControlledViewport:N,paneClickDistance:j,selectionOnDrag:D}){let x=r0(),E=L1.useRef(null),{userSelectionActive:u,lib:b,connectionInProgress:m}=B0(qj,d0),s=cJ(I),U1=L1.useRef();Qj(E);let Q1=L1.useCallback((h)=>{if(y?.({x:h[0],y:h[1],zoom:h[2]}),!N)x.setState({transform:h})},[y,N]);return L1.useEffect(()=>{if(E.current){U1.current=RT({domNode:E.current,minZoom:A,maxZoom:R,translateExtent:T,viewport:O,onDraggingChange:(c)=>x.setState((l)=>l.paneDragging===c?l:{paneDragging:c}),onPanZoomStart:(c,l)=>{let{onViewportChangeStart:o,onMoveStart:k}=x.getState();k?.(c,l),o?.(l)},onPanZoom:(c,l)=>{let{onViewportChange:o,onMove:k}=x.getState();k?.(c,l),o?.(l)},onPanZoomEnd:(c,l)=>{let{onViewportChangeEnd:o,onMoveEnd:k}=x.getState();k?.(c,l),o?.(l)}});let{x:h,y:g,zoom:p}=U1.current.getViewport();return x.setState({panZoom:U1.current,transform:[h,g,p],domNode:E.current.closest(".react-flow")}),()=>{U1.current?.destroy()}}},[]),L1.useEffect(()=>{U1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:L,panOnDrag:M,zoomActivationKeyPressed:s,preventScrolling:P,noPanClassName:C,userSelectionActive:u,noWheelClassName:S,lib:b,onTransformChange:Q1,connectionInProgress:m,selectionOnDrag:D,paneClickDistance:j})},[Q,U,Z,K,H,Y,W,L,M,s,P,C,u,S,b,Q1,m,D,j]),K1.jsx("div",{className:"react-flow__renderer",ref:E,style:ZU,children:V})}var Gj=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function Zj(){let{userSelectionActive:Q,userSelectionRect:U}=B0(Gj,d0);if(!(Q&&U))return null;return K1.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)}},Fj=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Xj({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=t8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:L,onSelectionEnd:M,onPaneClick:O,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:R,onPaneMouseMove:I,onPaneMouseLeave:P,children:V}){let S=L1.useRef(0),C=r0(),{userSelectionActive:y,elementsSelectable:N,dragging:j,panBy:D,autoPanSpeed:x}=B0(Fj,d0),E=N&&(Q||y),u=L1.useRef(null),b=L1.useRef(),m=L1.useRef(new Set),s=L1.useRef(new Set),U1=L1.useRef(!1),Q1=L1.useRef(!1),h=L1.useRef({x:0,y:0}),g=L1.useRef(!1),p=(G1)=>{if(Q1.current||U1.current||C.getState().connection.inProgress){Q1.current=!1,U1.current=!1;return}O?.(G1),C.getState().resetSelectedElements(),C.setState({nodesSelectionActive:!1})},c=(G1)=>{if(Array.isArray(K)&&K?.includes(2)){G1.preventDefault();return}T?.(G1)},l=A?(G1)=>A(G1):void 0,o=(G1)=>{if(Q1.current)G1.stopPropagation(),Q1.current=!1},k=(G1)=>{if(G1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:R1,transform:S1}=C.getState();if(b.current=R1?.getBoundingClientRect(),!b.current)return;let W1=G1.target===u.current;if(!W1&&!!G1.target.closest(".nokey")||!Q||!(W&&W1||U)||G1.button!==0||!G1.isPrimary)return;G1.target?.setPointerCapture?.(G1.pointerId),Q1.current=!1;let{x:p1,y:u1}=J4(G1.nativeEvent,b.current),A1=P9({x:p1,y:u1},S1);if(C.setState({userSelectionRect:{width:0,height:0,startX:A1.x,startY:A1.y,x:p1,y:u1}}),!W1)G1.stopPropagation(),G1.preventDefault()};function t(G1,R1){let{userSelectionRect:S1}=C.getState();if(!S1)return;let{transform:W1,nodeLookup:f1,edgeLookup:b1,connectionLookup:p1,triggerNodeChanges:u1,triggerEdgeChanges:A1,defaultEdgeOptions:J0}=C.getState(),D1={x:S1.startX,y:S1.startY},{x:p0,y:Q0}=n8(D1,W1),o0={startX:D1.x,startY:D1.y,x:G1<p0?G1:p0,y:R1<Q0?R1:Q0,width:Math.abs(G1-p0),height:Math.abs(R1-Q0)},R2=m.current,S2=s.current;m.current=new Set(cq(f1,o0,W1,Z===t8.Partial,!0).map((v2)=>v2.id)),s.current=new Set;let j2=J0?.selectable??!0;for(let v2 of m.current){let O2=p1.get(v2);if(!O2)continue;for(let{edgeId:F2}of O2.values()){let I2=b1.get(F2);if(I2&&(I2.selectable??j2))s.current.add(F2)}}if(!bK(R2,m.current)){let v2=C9(f1,m.current,!0);u1(v2)}if(!bK(S2,s.current)){let v2=C9(b1,s.current);A1(v2)}C.setState({userSelectionRect:o0,userSelectionActive:!0,nodesSelectionActive:!1})}function _1(){if(!H||!b.current)return;let[G1,R1]=lq(h.current,b.current,x);D({x:G1,y:R1}).then((S1)=>{if(!Q1.current||!S1){S.current=requestAnimationFrame(_1);return}let{x:W1,y:f1}=h.current;t(W1,f1),S.current=requestAnimationFrame(_1)})}let a=()=>{cancelAnimationFrame(S.current),S.current=0,g.current=!1};L1.useEffect(()=>{return()=>a()},[]);let H1=(G1)=>{let{userSelectionRect:R1,transform:S1,resetSelectedElements:W1}=C.getState();if(!b.current||!R1)return;let{x:f1,y:b1}=J4(G1.nativeEvent,b.current);h.current={x:f1,y:b1};let p1=n8({x:R1.startX,y:R1.startY},S1);if(!Q1.current){let u1=U?0:Y;if(Math.hypot(f1-p1.x,b1-p1.y)<=u1)return;W1(),L?.(G1)}if(Q1.current=!0,!g.current)_1(),g.current=!0;t(f1,b1)},O1=(G1)=>{if(!E){if(G1.target===u.current&&C.getState().connection.inProgress)U1.current=!0;return}if(G1.button!==0)return;if(G1.target?.releasePointerCapture?.(G1.pointerId),!y&&G1.target===u.current&&C.getState().userSelectionRect)p?.(G1);if(C.setState({userSelectionActive:!1,userSelectionRect:null}),Q1.current)M?.(G1),C.setState({nodesSelectionActive:m.current.size>0});a()},B1=(G1)=>{G1.target?.releasePointerCapture?.(G1.pointerId),a()},T1=K===!0||Array.isArray(K)&&K.includes(0);return K1.jsxs("div",{className:$2(["react-flow__pane",{draggable:T1,dragging:j,selection:Q}]),onClick:E?void 0:aK(p,u),onContextMenu:aK(c,u),onWheel:aK(l,u),onPointerEnter:E?void 0:R,onPointerMove:E?H1:I,onPointerUp:O1,onPointerCancel:E?B1:void 0,onPointerDownCapture:E?k:void 0,onClickCapture:E?o:void 0,onPointerLeave:P,ref:u,style:ZU,children:[V,K1.jsx(Zj,{})]})}function tK({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:L,onError:M}=U.getState(),O=L.get(Q);if(!O){M?.("012",X5.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!O.selected)H([Q]);else if(Z||O.selected&&W)Y({nodes:[O],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function BR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let L=r0(),[M,O]=L1.useState(!1),T=L1.useRef();return L1.useEffect(()=>{if(U)return;return T.current=YT({getStoreItems:()=>L.getState(),onNodeMouseDown:(A)=>{tK({id:A,store:L,nodeRef:Q})},onDragStart:()=>{O(!0)},onDragStop:()=>{O(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,L,Q]),L1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,K,U,Y,Q,H,W]),M}var Kj=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function AR(){let Q=r0();return L1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:L,updateNodePositions:M,nodeLookup:O,nodeOrigin:T}=Q.getState(),A=new Map,R=Kj(W),I=H?Y[0]:5,P=H?Y[1]:5,V=Z.direction.x*I*Z.factor,S=Z.direction.y*P*Z.factor;for(let[,C]of O){if(!R(C))continue;let y={x:C.internals.positionAbsolute.x+V,y:C.internals.positionAbsolute.y+S};if(H)y=w9(y,Y);let{position:N,positionAbsolute:j}=vK({nodeId:C.id,nextPosition:y,nodeLookup:O,nodeExtent:K,nodeOrigin:T,onError:L});C.position=N,C.internals.positionAbsolute=j,A.set(C.id,C)}M(A)},[])}var oK=L1.createContext(null),Hj=oK.Provider;oK.Consumer;var nK=()=>{return L1.useContext(oK)},Yj=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),MR=L1.createContext(null);function zj({children:Q}){let U=B0(Yj,d0);return K1.jsx(MR.Provider,{value:U,children:Q})}function Wj(){let Q=L1.useContext(MR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Lj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Bj=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=K,{fromHandle:L,toHandle:M,isValid:O}=W;if(!L&&!H)return Lj;let T=M?.nodeId===Q&&M?.id===U&&M?.type===Z;return{connectingFrom:L?.nodeId===Q&&L?.id===U&&L?.type===Z,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===d6.Strict?L?.type!==Z:Q!==L?.nodeId||U!==L?.id,connectionInProcess:!!L,clickConnectionInProcess:!!H,valid:T&&O}};function Aj({type:Q="source",position:U=h1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:L,children:M,className:O,onMouseDown:T,onTouchStart:A,...R},I){let P=W||null,V=Q==="target",S=r0(),C=nK(),{connectOnClick:y,noPanClassName:N,rfId:j}=Wj(),{connectingFrom:D,connectingTo:x,clickConnecting:E,isPossibleEndHandle:u,connectionInProcess:b,clickConnectionInProcess:m,valid:s}=B0(Bj(C,P,Q),d0);if(!C)S.getState().onError?.("010",X5.error010());let U1=(g)=>{let{defaultEdgeOptions:p,onConnect:c,hasDefaultEdges:l}=S.getState(),o={...p,...g};if(l){let{edges:k,setEdges:t,onError:_1}=S.getState();t(sS(o,k,{onError:_1}))}c?.(o),L?.(o)},Q1=(g)=>{if(!C)return;let p=mK(g.nativeEvent);if(H&&(p&&g.button===0||!p)){let c=S.getState();_U.onPointerDown(g.nativeEvent,{handleDomNode:g.currentTarget,autoPanOnConnect:c.autoPanOnConnect,connectionMode:c.connectionMode,connectionRadius:c.connectionRadius,domNode:c.domNode,nodeLookup:c.nodeLookup,lib:c.lib,isTarget:V,handleId:P,nodeId:C,flowId:c.rfId,panBy:c.panBy,cancelConnection:c.cancelConnection,onConnectStart:c.onConnectStart,onConnectEnd:(...l)=>S.getState().onConnectEnd?.(...l),updateConnection:c.updateConnection,onConnect:U1,isValidConnection:Z||((...l)=>S.getState().isValidConnection?.(...l)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:c.autoPanSpeed,dragThreshold:c.connectionDragThreshold})}if(p)T?.(g);else A?.(g)},h=(g)=>{let{onClickConnectStart:p,onClickConnectEnd:c,connectionClickStartHandle:l,connectionMode:o,isValidConnection:k,lib:t,rfId:_1,nodeLookup:a,connection:H1}=S.getState();if(!C||!l&&!H)return;if(!l){p?.(g.nativeEvent,{nodeId:C,handleId:P,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:C,type:Q,id:P}});return}let O1=hK(g.target),B1=Z||k,{connection:T1,isValid:G1}=_U.isValid(g.nativeEvent,{handle:{nodeId:C,id:P,type:Q},connectionMode:o,fromNodeId:l.nodeId,fromHandleId:l.id||null,fromType:l.type,isValidConnection:B1,flowId:_1,doc:O1,lib:t,nodeLookup:a});if(G1&&T1)U1(T1);let R1=structuredClone(H1);delete R1.inProgress,R1.toPosition=R1.toHandle?R1.toHandle.position:null,c?.(g,R1),S.setState({connectionClickStartHandle:null})};return K1.jsx("div",{"data-handleid":P,"data-nodeid":C,"data-handlepos":U,"data-id":`${j}-${C}-${P}-${Q}`,className:$2(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",N,O,{source:!V,target:V,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:E,connectingfrom:D,connectingto:x,valid:s,connectionindicator:K&&(!b||u)&&(b||m?Y:H)}]),onMouseDown:Q1,onTouchStart:Q1,onClick:y?h:void 0,ref:I,...R,children:M})}var qU=L1.memo(zR(Aj));function Mj({data:Q,isConnectable:U,sourcePosition:Z=h1.Bottom}){return K1.jsxs(K1.Fragment,{children:[Q?.label,K1.jsx(qU,{type:"source",position:Z,isConnectable:U})]})}function Tj({data:Q,isConnectable:U,targetPosition:Z=h1.Top,sourcePosition:K=h1.Bottom}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:Z,isConnectable:U}),Q?.label,K1.jsx(qU,{type:"source",position:K,isConnectable:U})]})}function Rj(){return null}function Oj({data:Q,isConnectable:U,targetPosition:Z=h1.Top}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var UU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},dT={input:Mj,default:Tj,output:Oj,group:Rj};function Ij(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 wj=(Q)=>{let{width:U,height:Z,x:K,y:H}=_7(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:_4(U)?U:null,height:_4(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 Pj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=r0(),{width:H,height:Y,transformString:W,userSelectionActive:L}=B0(wj,d0),M=AR(),O=L1.useRef(null);L1.useEffect(()=>{if(!Z)O.current?.focus({preventScroll:!0})},[Z]);let T=!L&&H!==null&&Y!==null;if(BR({nodeRef:O,disabled:!T}),!T)return null;let A=Q?(I)=>{let P=K.getState().nodes.filter((V)=>V.selected);Q(I,P)}:void 0,R=(I)=>{if(Object.prototype.hasOwnProperty.call(UU,I.key))I.preventDefault(),M({direction:UU[I.key],factor:I.shiftKey?4:1})};return K1.jsx("div",{className:$2(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:K1.jsx("div",{ref:O,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:R,style:{width:H,height:Y}})})}var rT=typeof window<"u"?window:void 0,Nj=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function TR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:L,deleteKeyCode:M,selectionKeyCode:O,selectionOnDrag:T,selectionMode:A,onSelectionStart:R,onSelectionEnd:I,multiSelectionKeyCode:P,panActivationKeyCode:V,zoomActivationKeyCode:S,elementsSelectable:C,zoomOnScroll:y,zoomOnPinch:N,panOnScroll:j,panOnScrollSpeed:D,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:u,autoPanOnSelection:b,defaultViewport:m,translateExtent:s,minZoom:U1,maxZoom:Q1,preventScrolling:h,onSelectionContextMenu:g,noWheelClassName:p,noPanClassName:c,disableKeyboardA11y:l,onViewportChange:o,isControlledViewport:k}){let{nodesSelectionActive:t,userSelectionActive:_1}=B0(Nj,d0),a=cJ(O,{target:rT}),H1=cJ(V,{target:rT}),O1=H1||u,B1=H1||j,T1=T&&O1!==!0,G1=a||_1||T1;return $j({deleteKeyCode:M,multiSelectionKeyCode:P}),K1.jsx(Uj,{onPaneContextMenu:Y,elementsSelectable:C,zoomOnScroll:y,zoomOnPinch:N,panOnScroll:B1,panActivationKeyPressed:H1,panOnScrollSpeed:D,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:!a&&O1,defaultViewport:m,translateExtent:s,minZoom:U1,maxZoom:Q1,zoomActivationKeyCode:S,preventScrolling:h,noWheelClassName:p,noPanClassName:c,onViewportChange:o,isControlledViewport:k,paneClickDistance:L,selectionOnDrag:T1,children:K1.jsxs(Xj,{onSelectionStart:R,onSelectionEnd:I,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:O1,autoPanOnSelection:b,isSelecting:!!G1,selectionMode:A,selectionKeyPressed:a,paneClickDistance:L,selectionOnDrag:T1,children:[Q,t&&K1.jsx(Pj,{onSelectionContextMenu:g,noPanClassName:c,disableKeyboardA11y:l})]})})}TR.displayName="FlowRenderer";var Cj=L1.memo(TR),fj=(Q)=>(U)=>{return Q?cq(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 Sj(Q){return B0(L1.useCallback(fj(Q),[Q]),d0)}var jj=(Q)=>Q.updateNodeInternals;function vj(){let Q=B0(jj),[U]=L1.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 L1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Vj({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let H=r0(),Y=L1.useRef(null),W=L1.useRef(null),L=L1.useRef(Q.sourcePosition),M=L1.useRef(Q.targetPosition),O=L1.useRef(U),T=Z&&!!Q.internals.handleBounds;return L1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||W.current!==Y.current)){if(W.current)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[T,Q.hidden]),L1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),L1.useEffect(()=>{if(Y.current){let A=O.current!==U,R=L.current!==Q.sourcePosition,I=M.current!==Q.targetPosition;if(A||R||I)O.current=U,L.current=Q.sourcePosition,M.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 yj({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:L,elementsSelectable:M,nodesConnectable:O,nodesFocusable:T,resizeObserver:A,noDragClassName:R,noPanClassName:I,disableKeyboardA11y:P,rfId:V,nodeTypes:S,nodeClickDistance:C,onError:y}){let{node:N,internals:j,isParent:D}=B0((G1)=>{let R1=G1.nodeLookup.get(Q),S1=G1.parentLookup.has(Q);return{node:R1,internals:R1.internals,isParent:S1}},d0),x=N.type||"default",E=S?.[x]||dT[x];if(E===void 0)y?.("003",X5.error003(x)),x="default",E=S?.default||dT.default;let u=!!(N.draggable||L&&typeof N.draggable>"u"),b=!!(N.selectable||M&&typeof N.selectable>"u"),m=!!(N.connectable||O&&typeof N.connectable>"u"),s=!!(N.focusable||T&&typeof N.focusable>"u"),U1=r0(),Q1=DK(N),h=Vj({node:N,nodeType:x,hasDimensions:Q1,resizeObserver:A}),g=BR({nodeRef:h,disabled:N.hidden||!u,noDragClassName:R,handleSelector:N.dragHandle,nodeId:Q,isSelectable:b,nodeClickDistance:C}),p=AR();if(N.hidden)return null;let c=$4(N),l=Ij(N),o=b||u||U||Z||K||H,k=Z?(G1)=>Z(G1,{...j.userNode}):void 0,t=K?(G1)=>K(G1,{...j.userNode}):void 0,_1=H?(G1)=>H(G1,{...j.userNode}):void 0,a=Y?(G1)=>Y(G1,{...j.userNode}):void 0,H1=W?(G1)=>W(G1,{...j.userNode}):void 0,O1=(G1)=>{let{selectNodesOnDrag:R1,nodeDragThreshold:S1}=U1.getState();if(b&&(!R1||!u||S1>0))tK({id:Q,store:U1,nodeRef:h});if(U)U(G1,{...j.userNode})},B1=(G1)=>{if(xK(G1.nativeEvent)||P)return;if(PK.includes(G1.key)&&b){let R1=G1.key==="Escape";tK({id:Q,store:U1,unselect:R1,nodeRef:h})}else if(u&&N.selected&&Object.prototype.hasOwnProperty.call(UU,G1.key)){G1.preventDefault();let{ariaLabelConfig:R1}=U1.getState();U1.setState({ariaLiveMessage:R1["node.a11yDescription.ariaLiveMessage"]({direction:G1.key.replace("Arrow","").toLowerCase(),x:~~j.positionAbsolute.x,y:~~j.positionAbsolute.y})}),p({direction:UU[G1.key],factor:G1.shiftKey?4:1})}},T1=()=>{if(P||!h.current?.matches(":focus-visible"))return;let{transform:G1,width:R1,height:S1,autoPanOnNodeFocus:W1,setCenter:f1}=U1.getState();if(!W1)return;if(!(cq(new Map([[Q,N]]),{x:0,y:0,width:R1,height:S1},G1,!0).length>0))f1(N.position.x+c.width/2,N.position.y+c.height/2,{zoom:G1[2]})};return K1.jsx("div",{className:$2(["react-flow__node",`react-flow__node-${x}`,{[I]:u},N.className,{selected:N.selected,selectable:b,parent:D,draggable:u,dragging:g}]),ref:h,style:{zIndex:j.z,transform:`translate(${j.positionAbsolute.x}px,${j.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:Q1?"visible":"hidden",...N.style,...l},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:t,onMouseLeave:_1,onContextMenu:a,onClick:O1,onDoubleClick:H1,onKeyDown:s?B1:void 0,tabIndex:s?0:void 0,onFocus:s?T1:void 0,role:N.ariaRole??(s?"group":void 0),"aria-roledescription":"node","aria-describedby":P?void 0:`${FR}-${V}`,"aria-label":N.ariaLabel,...N.domAttributes,children:K1.jsx(Hj,{value:Q,children:K1.jsx(E,{id:Q,data:N.data,type:x,positionAbsoluteX:j.positionAbsolute.x,positionAbsoluteY:j.positionAbsolute.y,selected:N.selected??!1,selectable:b,draggable:u,deletable:N.deletable??!0,isConnectable:m,sourcePosition:N.sourcePosition,targetPosition:N.targetPosition,dragging:g,dragHandle:N.dragHandle,zIndex:j.z,parentId:N.parentId,...c})})})}var kj=L1.memo(yj),Dj=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function RR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:H}=B0(Dj,d0),Y=Sj(Q.onlyRenderVisibleElements),W=vj();return K1.jsx("div",{className:"react-flow__nodes",style:ZU,children:Y.map((L)=>{return K1.jsx(kj,{id:L,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},L)})})}RR.displayName="NodeRenderer";var uj=L1.memo(RR);function bj(Q){return B0(L1.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&&JT({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(H.id)}return K},[Q]),d0)}var Ej=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return K1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},hj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return K1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},aT={[T9.Arrow]:Ej,[T9.ArrowClosed]:hj};function xj(Q){let U=r0();return L1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(aT,Q))return U.getState().onError?.("009",X5.error009(Q)),null;return aT[Q]},[Q])}var mj=({id:Q,type:U,color:Z,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:L="auto-start-reverse"})=>{let M=xj(U);if(!M)return null;return K1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:L,refX:"0",refY:"0",children:K1.jsx(M,{color:Z,strokeWidth:W})})},OR=({defaultColor:Q,rfId:U})=>{let Z=B0((Y)=>Y.edges),K=B0((Y)=>Y.defaultEdgeOptions),H=L1.useMemo(()=>{return qT(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!H.length)return null;return K1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:K1.jsx("defs",{children:H.map((Y)=>K1.jsx(mj,{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))})})};OR.displayName="MarkerDefinitions";var gj=L1.memo(OR);function IR({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:L=2,children:M,className:O,...T}){let[A,R]=L1.useState({x:1,y:0,width:0,height:0}),I=$2(["react-flow__edge-textwrapper",O]),P=L1.useRef(null);if(L1.useEffect(()=>{if(P.current){let V=P.current.getBBox();R({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return K1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:I,visibility:A.width?"visible":"hidden",...T,children:[H&&K1.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:L,ry:L}),K1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:P,style:K,children:Z}),M]})}IR.displayName="EdgeText";var pj=L1.memo(IR);function FU({path:Q,labelX:U,labelY:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M,interactionWidth:O=20,...T}){return K1.jsxs(K1.Fragment,{children:[K1.jsx("path",{...T,d:Q,fill:"none",className:$2(["react-flow__edge-path",T.className])}),O?K1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:O,className:"react-flow__edge-interaction"}):null,K&&_4(U)&&_4(Z)?K1.jsx(pj,{x:U,y:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M}):null]})}function sT({pos:Q,x1:U,y1:Z,x2:K,y2:H}){if(Q===h1.Left||Q===h1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+H)]}function wR({sourceX:Q,sourceY:U,sourcePosition:Z=h1.Bottom,targetX:K,targetY:H,targetPosition:Y=h1.Top}){let[W,L]=sT({pos:Z,x1:Q,y1:U,x2:K,y2:H}),[M,O]=sT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[T,A,R,I]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:W,sourceControlY:L,targetControlX:M,targetControlY:O});return[`M${Q},${U} C${W},${L} ${M},${O} ${K},${H}`,T,A,R,I]}function PR(Q){return L1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W,targetPosition:L,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:I,style:P,markerEnd:V,markerStart:S,interactionWidth:C})=>{let[y,N,j]=wR({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L}),D=Q.isInternal?void 0:U;return K1.jsx(FU,{id:D,path:y,labelX:N,labelY:j,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:I,style:P,markerEnd:V,markerStart:S,interactionWidth:C})})}var cj=PR({isInternal:!1}),NR=PR({isInternal:!0});cj.displayName="SimpleBezierEdge";NR.displayName="SimpleBezierEdgeInternal";function CR(Q){return L1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,sourcePosition:I=h1.Bottom,targetPosition:P=h1.Top,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:y})=>{let[N,j,D]=pJ({sourceX:Z,sourceY:K,sourcePosition:I,targetX:H,targetY:Y,targetPosition:P,borderRadius:C?.borderRadius,offset:C?.offset,stepPosition:C?.stepPosition}),x=Q.isInternal?void 0:U;return K1.jsx(FU,{id:x,path:N,labelX:j,labelY:D,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:V,markerStart:S,interactionWidth:y})})}var fR=CR({isInternal:!1}),SR=CR({isInternal:!0});fR.displayName="SmoothStepEdge";SR.displayName="SmoothStepEdgeInternal";function jR(Q){return L1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return K1.jsx(fR,{...Z,id:K,pathOptions:L1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var lj=jR({isInternal:!1}),vR=jR({isInternal:!0});lj.displayName="StepEdge";vR.displayName="StepEdgeInternal";function VR(Q){return L1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:I,markerStart:P,interactionWidth:V})=>{let[S,C,y]=tq({sourceX:Z,sourceY:K,targetX:H,targetY:Y}),N=Q.isInternal?void 0:U;return K1.jsx(FU,{id:N,path:S,labelX:C,labelY:y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:I,markerStart:P,interactionWidth:V})})}var ij=VR({isInternal:!1}),yR=VR({isInternal:!0});ij.displayName="StraightEdge";yR.displayName="StraightEdgeInternal";function kR(Q){return L1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W=h1.Bottom,targetPosition:L=h1.Top,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:I,style:P,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:y})=>{let[N,j,D]=sq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L,curvature:C?.curvature}),x=Q.isInternal?void 0:U;return K1.jsx(FU,{id:x,path:N,labelX:j,labelY:D,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:I,style:P,markerEnd:V,markerStart:S,interactionWidth:y})})}var dj=kR({isInternal:!1}),DR=kR({isInternal:!0});dj.displayName="BezierEdge";DR.displayName="BezierEdgeInternal";var tT={default:DR,straight:yR,step:vR,smoothstep:SR,simplebezier:NR},oT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},rj=(Q,U,Z)=>{if(Z===h1.Left)return Q-U;if(Z===h1.Right)return Q+U;return Q},aj=(Q,U,Z)=>{if(Z===h1.Top)return Q-U;if(Z===h1.Bottom)return Q+U;return Q},nT="react-flow__edgeupdater";function eT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:L}){return K1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:$2([nT,`${nT}-${L}`]),cx:rj(U,K,Q),cy:aj(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function sj({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:H,targetX:Y,targetY:W,sourcePosition:L,targetPosition:M,onReconnect:O,onReconnectStart:T,onReconnectEnd:A,setReconnecting:R,setUpdateHover:I}){let P=r0(),V=(j,D)=>{if(j.button!==0)return;let{autoPanOnConnect:x,domNode:E,connectionMode:u,connectionRadius:b,lib:m,onConnectStart:s,cancelConnection:U1,nodeLookup:Q1,rfId:h,panBy:g,updateConnection:p}=P.getState(),c=D.type==="target",l=(t,_1)=>{R(!1),A?.(t,Z,D.type,_1)},o=(t)=>O?.(Z,t),k=(t,_1)=>{R(!0),T?.(j,Z,D.type),s?.(t,_1)};_U.onPointerDown(j.nativeEvent,{autoPanOnConnect:x,connectionMode:u,connectionRadius:b,domNode:E,handleId:D.id,nodeId:D.nodeId,nodeLookup:Q1,isTarget:c,edgeUpdaterType:D.type,lib:m,flowId:h,cancelConnection:U1,panBy:g,isValidConnection:(...t)=>P.getState().isValidConnection?.(...t)??!0,onConnect:o,onConnectStart:k,onConnectEnd:(...t)=>P.getState().onConnectEnd?.(...t),onReconnectEnd:l,updateConnection:p,getTransform:()=>P.getState().transform,getFromHandle:()=>P.getState().connection.fromHandle,dragThreshold:P.getState().connectionDragThreshold,handleDomNode:j.currentTarget})},S=(j)=>V(j,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),C=(j)=>V(j,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),y=()=>I(!0),N=()=>I(!1);return K1.jsxs(K1.Fragment,{children:[(Q===!0||Q==="source")&&K1.jsx(eT,{position:L,centerX:K,centerY:H,radius:U,onMouseDown:S,onMouseEnter:y,onMouseOut:N,type:"source"}),(Q===!0||Q==="target")&&K1.jsx(eT,{position:M,centerX:Y,centerY:W,radius:U,onMouseDown:C,onMouseEnter:y,onMouseOut:N,type:"target"})]})}function tj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:I,rfId:P,edgeTypes:V,noPanClassName:S,onError:C,disableKeyboardA11y:y}){let N=B0((f1)=>f1.edgeLookup.get(Q)),j=B0((f1)=>f1.defaultEdgeOptions);N=j?{...j,...N}:N;let D=N.type||"default",x=V?.[D]||tT[D];if(x===void 0)C?.("011",X5.error011(D)),D="default",x=V?.default||tT.default;let E=!!(N.focusable||U&&typeof N.focusable>"u"),u=typeof A<"u"&&(N.reconnectable||Z&&typeof N.reconnectable>"u"),b=!!(N.selectable||K&&typeof N.selectable>"u"),m=L1.useRef(null),[s,U1]=L1.useState(!1),[Q1,h]=L1.useState(!1),g=r0(),{zIndex:p=N.zIndex,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1}=B0(L1.useCallback((f1)=>{let b1=f1.nodeLookup.get(N.source),p1=f1.nodeLookup.get(N.target);if(!b1||!p1)return oT;let u1=QT({id:Q,sourceNode:b1,targetNode:p1,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:f1.connectionMode,onError:C}),A1=_T({selected:N.selected,zIndex:N.zIndex,sourceNode:b1,targetNode:p1,elevateOnSelect:f1.elevateEdgesOnSelect,zIndexMode:f1.zIndexMode});return{...u1||oT,zIndex:A1}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex,C]),d0),a=L1.useMemo(()=>N.markerStart?`url('#${oq(N.markerStart,P)}')`:void 0,[N.markerStart,P]),H1=L1.useMemo(()=>N.markerEnd?`url('#${oq(N.markerEnd,P)}')`:void 0,[N.markerEnd,P]);if(N.hidden||c===null||l===null||o===null||k===null)return null;let O1=(f1)=>{let{addSelectedEdges:b1,unselectNodesAndEdges:p1,multiSelectionActive:u1}=g.getState();if(b)if(g.setState({nodesSelectionActive:!1}),N.selected&&u1)p1({nodes:[],edges:[N]}),m.current?.blur();else b1([Q]);if(H)H(f1,N)},B1=Y?(f1)=>{Y(f1,{...N})}:void 0,T1=W?(f1)=>{W(f1,{...N})}:void 0,G1=L?(f1)=>{L(f1,{...N})}:void 0,R1=M?(f1)=>{M(f1,{...N})}:void 0,S1=O?(f1)=>{O(f1,{...N})}:void 0,W1=(f1)=>{if(!y&&PK.includes(f1.key)&&b){let{unselectNodesAndEdges:b1,addSelectedEdges:p1}=g.getState();if(f1.key==="Escape")m.current?.blur(),b1({edges:[N]});else p1([Q])}};return K1.jsx("svg",{style:{zIndex:p},children:K1.jsxs("g",{className:$2(["react-flow__edge",`react-flow__edge-${D}`,N.className,S,{selected:N.selected,animated:N.animated,inactive:!b&&!H,updating:s,selectable:b}]),onClick:O1,onDoubleClick:B1,onContextMenu:T1,onMouseEnter:G1,onMouseMove:R1,onMouseLeave:S1,onKeyDown:E?W1:void 0,tabIndex:E?0:void 0,role:N.ariaRole??(E?"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":E?`${XR}-${P}`:void 0,ref:m,...N.domAttributes,children:[!Q1&&K1.jsx(x,{id:Q,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:b,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:a,markerEnd:H1,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),u&&K1.jsx(sj,{edge:N,isReconnectable:u,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:I,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1,setUpdateHover:U1,setReconnecting:h})]})})}var oj=L1.memo(tj),nj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function uR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:L,onEdgeMouseMove:M,onEdgeMouseLeave:O,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:R,onReconnectStart:I,onReconnectEnd:P,disableKeyboardA11y:V}){let{edgesFocusable:S,edgesReconnectable:C,elementsSelectable:y,onError:N}=B0(nj,d0),j=bj(U);return K1.jsxs("div",{className:"react-flow__edges",children:[K1.jsx(gj,{defaultColor:Q,rfId:Z}),j.map((D)=>{return K1.jsx(oj,{id:D,edgesFocusable:S,edgesReconnectable:C,elementsSelectable:y,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,onClick:T,reconnectRadius:A,onDoubleClick:R,onReconnectStart:I,onReconnectEnd:P,rfId:Z,onError:N,edgeTypes:K,disableKeyboardA11y:V},D)})]})}uR.displayName="EdgeRenderer";var ej=L1.memo(uR),_R=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function _v({children:Q}){let U=r0(),Z=L1.useRef(null),[K]=L1.useState(()=>U.getState().transform);return WR(()=>{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=_R(W)};return Y(),U.subscribe(Y)},[U]),K1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:_R(K)},children:Q})}function Jv(Q){let U=lJ(),Z=L1.useRef(!1);L1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var $v=(Q)=>Q.panZoom?.syncViewport;function Qv(Q){let U=B0($v),Z=r0();return L1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function JR(Q){return Q.connection.inProgress?{...Q.connection,to:P9(Q.connection.to,Q.transform)}:{...Q.connection}}function qv(Q){if(Q)return(Z)=>{let K=JR(Z);return Q(K)};return JR}function Uv(Q){let U=qv(Q);return B0(U,d0)}var Gv=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function Zv({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:H,width:Y,height:W,isValid:L,inProgress:M}=B0(Gv,d0);if(!(Y&&H&&M))return null;return K1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:K1.jsx("g",{className:$2(["react-flow__connection",EK(L)]),children:K1.jsx(bR,{style:U,type:Z,CustomComponent:K,isValid:L})})})}var bR=({style:Q,type:U=U3.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:L,fromPosition:M,to:O,toNode:T,toHandle:A,toPosition:R,pointer:I}=Uv();if(!H)return;if(Z)return K1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:L,fromX:Y.x,fromY:Y.y,toX:O.x,toY:O.y,fromPosition:M,toPosition:R,connectionStatus:EK(K),toNode:T,toHandle:A,pointer:I});let P="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:M,targetX:O.x,targetY:O.y,targetPosition:R};switch(U){case U3.Bezier:[P]=sq(V);break;case U3.SimpleBezier:[P]=wR(V);break;case U3.Step:[P]=pJ({...V,borderRadius:0});break;case U3.SmoothStep:[P]=pJ(V);break;default:[P]=tq(V)}return K1.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Q})};bR.displayName="ConnectionLine";var Fv={};function $R(Q=Fv){let U=L1.useRef(Q),Z=r0();L1.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",X5.error002());break}U.current=Q}},[Q])}function Xv(){let Q=r0(),U=L1.useRef(!1);L1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",X5.error013("react"));U.current=!0}},[])}function ER({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:R,onSelectionEnd:I,connectionLineType:P,connectionLineStyle:V,connectionLineComponent:S,connectionLineContainerStyle:C,selectionKeyCode:y,selectionOnDrag:N,selectionMode:j,multiSelectionKeyCode:D,panActivationKeyCode:x,zoomActivationKeyCode:E,deleteKeyCode:u,onlyRenderVisibleElements:b,elementsSelectable:m,defaultViewport:s,translateExtent:U1,minZoom:Q1,maxZoom:h,preventScrolling:g,defaultMarkerColor:p,zoomOnScroll:c,zoomOnPinch:l,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:t,zoomOnDoubleClick:_1,panOnDrag:a,autoPanOnSelection:H1,onPaneClick:O1,onPaneMouseEnter:B1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneScroll:R1,onPaneContextMenu:S1,paneClickDistance:W1,nodeClickDistance:f1,onEdgeContextMenu:b1,onEdgeMouseEnter:p1,onEdgeMouseMove:u1,onEdgeMouseLeave:A1,reconnectRadius:J0,onReconnect:D1,onReconnectStart:p0,onReconnectEnd:Q0,noDragClassName:o0,noWheelClassName:R2,noPanClassName:S2,disableKeyboardA11y:j2,nodeExtent:v2,rfId:O2,viewport:F2,onViewportChange:I2,nodesDraggable:P4}){return $R(Q),$R(U),Xv(),Jv(Z),Qv(F2),K1.jsx(Cj,{onPaneClick:O1,onPaneMouseEnter:B1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneContextMenu:S1,onPaneScroll:R1,paneClickDistance:W1,deleteKeyCode:u,selectionKeyCode:y,selectionOnDrag:N,selectionMode:j,onSelectionStart:R,onSelectionEnd:I,multiSelectionKeyCode:D,panActivationKeyCode:x,zoomActivationKeyCode:E,elementsSelectable:m,zoomOnScroll:c,zoomOnPinch:l,zoomOnDoubleClick:_1,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:t,panOnDrag:a,autoPanOnSelection:H1,defaultViewport:s,translateExtent:U1,minZoom:Q1,maxZoom:h,onSelectionContextMenu:A,preventScrolling:g,noDragClassName:o0,noWheelClassName:R2,noPanClassName:S2,disableKeyboardA11y:j2,onViewportChange:I2,isControlledViewport:!!F2,children:K1.jsxs(_v,{children:[K1.jsx(ej,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:D1,onReconnectStart:p0,onReconnectEnd:Q0,onlyRenderVisibleElements:b,onEdgeContextMenu:b1,onEdgeMouseEnter:p1,onEdgeMouseMove:u1,onEdgeMouseLeave:A1,reconnectRadius:J0,defaultMarkerColor:p,noPanClassName:S2,disableKeyboardA11y:j2,rfId:O2}),K1.jsx(Zv,{style:V,type:P,component:S,containerStyle:C}),K1.jsx("div",{className:"react-flow__edgelabel-renderer"}),K1.jsx(uj,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,nodeClickDistance:f1,onlyRenderVisibleElements:b,noPanClassName:S2,noDragClassName:o0,disableKeyboardA11y:j2,nodeExtent:v2,rfId:O2,nodesDraggable:P4}),K1.jsx("div",{className:"react-flow__viewport-portal"})]})})}ER.displayName="GraphView";var Kv=L1.memo(ER),Hv=kK("React Flow","https://reactflow.dev/"),QR=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M=0.5,maxZoom:O=2,nodeOrigin:T,nodeExtent:A,zIndexMode:R="basic"}={})=>{let I=new Map,P=new Map,V=new Map,S=new Map,C=K??U??[],y=Z??Q??[],N=T??[0,0],j=A??O9;dK(V,S,C);let{nodesInitialized:D}=nq(y,I,P,{nodeOrigin:N,nodeExtent:j,zIndexMode:R}),x=[0,0,1];if(W&&H&&Y){let E=_7(I,{filter:(s)=>!!((s.width||s.initialWidth)&&(s.height||s.initialHeight))}),{x:u,y:b,zoom:m}=gJ(E,H,Y,M,O,L?.padding??0.1);x=[u,b,m]}return{rfId:"1",width:H??0,height:Y??0,transform:x,nodes:y,nodesInitialized:D,nodeLookup:I,parentLookup:P,edges:C,edgeLookup:S,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:M,maxZoom:O,translateExtent:O9,nodeExtent:j,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:d6.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:L,fitViewResolver:null,connection:{...CK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Hv,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:NK,zIndexMode:R,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}},Yv=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R})=>yT((I,P)=>{async function V(){let{nodeLookup:S,panZoom:C,fitViewOptions:y,fitViewResolver:N,width:j,height:D,minZoom:x,maxZoom:E}=P();if(!C)return;await rM({nodes:S,width:j,height:D,panZoom:C,minZoom:x,maxZoom:E},y),N?.resolve(!0),I({fitViewResolver:null})}return{...QR({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,defaultNodes:Z,defaultEdges:K,zIndexMode:R}),setNodes:(S)=>{let{nodeLookup:C,parentLookup:y,nodeOrigin:N,nodeExtent:j,elevateNodesOnSelect:D,fitViewQueued:x,zIndexMode:E,nodesSelectionActive:u}=P(),{nodesInitialized:b,hasSelectedNodes:m}=nq(S,C,y,{nodeOrigin:N,nodeExtent:j,elevateNodesOnSelect:D,checkEquality:!0,zIndexMode:E}),s=u&&m;if(x&&b)V(),I({nodes:S,nodesInitialized:b,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:s});else I({nodes:S,nodesInitialized:b,nodesSelectionActive:s})},setEdges:(S)=>{let{connectionLookup:C,edgeLookup:y}=P();dK(C,y,S),I({edges:S})},setDefaultNodesAndEdges:(S,C)=>{if(S){let{setNodes:y}=P();y(S),I({hasDefaultNodes:!0})}if(C){let{setEdges:y}=P();y(C),I({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:C,nodeLookup:y,parentLookup:N,domNode:j,nodeOrigin:D,nodeExtent:x,debug:E,fitViewQueued:u,zIndexMode:b}=P(),{changes:m,updatedInternals:s}=XT(S,y,N,j,D,x,b);if(!s)return;if(ZT(y,N,{nodeOrigin:D,nodeExtent:x,zIndexMode:b}),u)V(),I({fitViewQueued:!1,fitViewOptions:void 0});else I({});if(m?.length>0){if(E)console.log("React Flow: trigger node changes",m);C?.(m)}},updateNodePositions:(S,C=!1)=>{let y=[],N=[],{nodeLookup:j,triggerNodeChanges:D,connection:x,updateConnection:E,onNodesChangeMiddlewareMap:u}=P();for(let[b,m]of S){let s=j.get(b),U1=!!(s?.expandParent&&s?.parentId&&m?.position),Q1={id:b,type:"position",position:U1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:C};if(s&&x.inProgress&&x.fromNode.id===s.id){let h=r6(s,x.fromHandle,h1.Left,!0);E({...x,from:h})}if(U1&&s.parentId)y.push({id:b,parentId:s.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});N.push(Q1)}if(y.length>0){let{parentLookup:b,nodeOrigin:m}=P(),s=eq(y,j,b,m);N.push(...s)}for(let b of u.values())N=b(N);D(N)},triggerNodeChanges:(S)=>{let{onNodesChange:C,setNodes:y,nodes:N,hasDefaultNodes:j,debug:D}=P();if(S?.length){if(j){let x=YR(S,N);y(x)}if(D)console.log("React Flow: trigger node changes",S);C?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:C,setEdges:y,edges:N,hasDefaultEdges:j,debug:D}=P();if(S?.length){if(j){let x=rS(S,N);y(x)}if(D)console.log("React Flow: trigger edge changes",S);C?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:C,edgeLookup:y,nodeLookup:N,triggerNodeChanges:j,triggerEdgeChanges:D}=P();if(C){let x=S.map((E)=>J7(E,!0));j(x);return}j(C9(N,new Set([...S]),!0)),D(C9(y))},addSelectedEdges:(S)=>{let{multiSelectionActive:C,edgeLookup:y,nodeLookup:N,triggerNodeChanges:j,triggerEdgeChanges:D}=P();if(C){let x=S.map((E)=>J7(E,!0));D(x);return}D(C9(y,new Set([...S]))),j(C9(N,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:C}={})=>{let{edges:y,nodes:N,nodeLookup:j,triggerNodeChanges:D,triggerEdgeChanges:x}=P(),E=S?S:N,u=C?C:y,b=[];for(let s of E){if(!s.selected)continue;let U1=j.get(s.id);if(U1)U1.selected=!1;b.push(J7(s.id,!1))}let m=[];for(let s of u){if(!s.selected)continue;m.push(J7(s.id,!1))}D(b),x(m)},setMinZoom:(S)=>{let{panZoom:C,maxZoom:y}=P();C?.setScaleExtent([S,y]),I({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:C,minZoom:y}=P();C?.setScaleExtent([y,S]),I({maxZoom:S})},setTranslateExtent:(S)=>{P().panZoom?.setTranslateExtent(S),I({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:C,triggerNodeChanges:y,triggerEdgeChanges:N,elementsSelectable:j}=P();if(!j)return;let D=C.reduce((E,u)=>u.selected?[...E,J7(u.id,!1)]:E,[]),x=S.reduce((E,u)=>u.selected?[...E,J7(u.id,!1)]:E,[]);y(D),N(x)},setNodeExtent:(S)=>{let{nodes:C,nodeLookup:y,parentLookup:N,nodeOrigin:j,elevateNodesOnSelect:D,nodeExtent:x,zIndexMode:E}=P();if(S[0][0]===x[0][0]&&S[0][1]===x[0][1]&&S[1][0]===x[1][0]&&S[1][1]===x[1][1])return;nq(C,y,N,{nodeOrigin:j,nodeExtent:S,elevateNodesOnSelect:D,checkEquality:!1,zIndexMode:E}),I({nodeExtent:S})},panBy:(S)=>{let{transform:C,width:y,height:N,panZoom:j,translateExtent:D}=P();return KT({delta:S,panZoom:j,transform:C,translateExtent:D,width:y,height:N})},setCenter:async(S,C,y)=>{let{width:N,height:j,maxZoom:D,panZoom:x}=P();if(!x)return!1;let E=typeof y?.zoom<"u"?y.zoom:D;return await x.setViewport({x:N/2-S*E,y:j/2-C*E,zoom:E},{duration:y?.duration,ease:y?.ease,interpolate:y?.interpolate}),!0},cancelConnection:()=>{I({connection:{...CK}})},updateConnection:(S)=>{I({connection:S})},reset:()=>I({...QR()})}},Object.is);function eK({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:L,initialFitViewOptions:M,fitView:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R,children:I}){let[P]=L1.useState(()=>Yv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:O,minZoom:W,maxZoom:L,fitViewOptions:M,nodeOrigin:T,nodeExtent:A,zIndexMode:R}));return K1.jsx(fS,{value:P,children:K1.jsx(nS,{children:K1.jsx(zj,{children:I})})})}function zv({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:H,width:Y,height:W,fitView:L,fitViewOptions:M,minZoom:O,maxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:I}){if(L1.useContext(GU))return K1.jsx(K1.Fragment,{children:Q});return K1.jsx(eK,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:L,initialFitViewOptions:M,initialMinZoom:O,initialMaxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:I,children:Q})}var Wv={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Lv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:L,onEdgeClick:M,onInit:O,onMove:T,onMoveStart:A,onMoveEnd:R,onConnect:I,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,onNodeMouseEnter:y,onNodeMouseMove:N,onNodeMouseLeave:j,onNodeContextMenu:D,onNodeDoubleClick:x,onNodeDragStart:E,onNodeDrag:u,onNodeDragStop:b,onNodesDelete:m,onEdgesDelete:s,onDelete:U1,onSelectionChange:Q1,onSelectionDragStart:h,onSelectionDrag:g,onSelectionDragStop:p,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:o,onBeforeDelete:k,connectionMode:t,connectionLineType:_1=U3.Bezier,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:O1,deleteKeyCode:B1="Backspace",selectionKeyCode:T1="Shift",selectionOnDrag:G1=!1,selectionMode:R1=t8.Full,panActivationKeyCode:S1="Space",multiSelectionKeyCode:W1=N9()?"Meta":"Control",zoomActivationKeyCode:f1=N9()?"Meta":"Control",snapToGrid:b1,snapGrid:p1,onlyRenderVisibleElements:u1=!1,selectNodesOnDrag:A1,nodesDraggable:J0,autoPanOnNodeFocus:D1,nodesConnectable:p0,nodesFocusable:Q0,nodeOrigin:o0=KR,edgesFocusable:R2,edgesReconnectable:S2,elementsSelectable:j2=!0,defaultViewport:v2=mS,minZoom:O2=0.5,maxZoom:F2=2,translateExtent:I2=O9,preventScrolling:P4=!0,nodeExtent:K5,defaultMarkerColor:E5="#b1b1b7",zoomOnScroll:h5=!0,zoomOnPinch:U4=!0,panOnScroll:G4=!1,panOnScrollSpeed:x5=0.5,panOnScrollMode:v=m3.Free,zoomOnDoubleClick:q1=!0,panOnDrag:w1=!0,onPaneClick:P1,onPaneMouseEnter:k1,onPaneMouseMove:r1,onPaneMouseLeave:l1,onPaneScroll:W0,onPaneContextMenu:E1,paneClickDistance:X2=1,nodeClickDistance:E2=0,children:m5,onReconnect:$1,onReconnectStart:Y1,onReconnectEnd:C1,onEdgeContextMenu:v1,onEdgeDoubleClick:a1,onEdgeMouseEnter:y1,onEdgeMouseMove:i1,onEdgeMouseLeave:o1,reconnectRadius:X0=10,onNodesChange:n0,onEdgesChange:$0,noDragClassName:R0="nodrag",noWheelClassName:N0="nowheel",noPanClassName:N4="nopan",fitView:h2,fitViewOptions:j0,connectOnClick:sJ,attributionPosition:tJ,proOptions:s3,defaultEdgeOptions:oJ,elevateNodesOnSelect:nJ=!0,elevateEdgesOnSelect:eJ=!1,disableKeyboardA11y:v9=!1,autoPanOnConnect:_$,autoPanOnNodeDrag:n2,autoPanOnSelection:t3=!0,autoPanSpeed:X3,connectionRadius:J$,isValidConnection:t6,onError:X7,style:V9,id:o3,nodeDragThreshold:n3,connectionDragThreshold:y9,viewport:BU,onViewportChange:AU,width:$$,height:k9,colorMode:D9="light",debug:Q$,onScroll:u9,ariaLabelConfig:q$,zIndexMode:U$="basic",...G$},b9){let e3=o3||"1",o6=lS(D9),MU=L1.useCallback((E9)=>{E9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),u9?.(E9)},[u9]);return K1.jsx("div",{"data-testid":"rf__wrapper",...G$,onScroll:MU,style:{...V9,...Wv},ref:b9,className:$2(["react-flow",H,o6]),id:o3,role:"application",children:K1.jsxs(zv,{nodes:Q,edges:U,width:$$,height:k9,fitView:h2,fitViewOptions:j0,minZoom:O2,maxZoom:F2,nodeOrigin:o0,nodeExtent:K5,zIndexMode:U$,children:[K1.jsx(cS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:I,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,nodesDraggable:J0,autoPanOnNodeFocus:D1,nodesConnectable:p0,nodesFocusable:Q0,edgesFocusable:R2,edgesReconnectable:S2,elementsSelectable:j2,elevateNodesOnSelect:nJ,elevateEdgesOnSelect:eJ,minZoom:O2,maxZoom:F2,nodeExtent:K5,onNodesChange:n0,onEdgesChange:$0,snapToGrid:b1,snapGrid:p1,connectionMode:t,translateExtent:I2,connectOnClick:sJ,defaultEdgeOptions:oJ,fitView:h2,fitViewOptions:j0,onNodesDelete:m,onEdgesDelete:s,onDelete:U1,onNodeDragStart:E,onNodeDrag:u,onNodeDragStop:b,onSelectionDrag:g,onSelectionDragStart:h,onSelectionDragStop:p,onMove:T,onMoveStart:A,onMoveEnd:R,noPanClassName:N4,nodeOrigin:o0,rfId:e3,autoPanOnConnect:_$,autoPanOnNodeDrag:n2,autoPanSpeed:X3,onError:X7,connectionRadius:J$,isValidConnection:t6,selectNodesOnDrag:A1,nodeDragThreshold:n3,connectionDragThreshold:y9,onBeforeDelete:k,debug:Q$,ariaLabelConfig:q$,zIndexMode:U$}),K1.jsx(Kv,{onInit:O,onNodeClick:L,onEdgeClick:M,onNodeMouseEnter:y,onNodeMouseMove:N,onNodeMouseLeave:j,onNodeContextMenu:D,onNodeDoubleClick:x,nodeTypes:Y,edgeTypes:W,connectionLineType:_1,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:O1,selectionKeyCode:T1,selectionOnDrag:G1,selectionMode:R1,deleteKeyCode:B1,multiSelectionKeyCode:W1,panActivationKeyCode:S1,zoomActivationKeyCode:f1,onlyRenderVisibleElements:u1,defaultViewport:v2,translateExtent:I2,minZoom:O2,maxZoom:F2,preventScrolling:P4,zoomOnScroll:h5,zoomOnPinch:U4,zoomOnDoubleClick:q1,panOnScroll:G4,panOnScrollSpeed:x5,panOnScrollMode:v,panOnDrag:w1,autoPanOnSelection:t3,onPaneClick:P1,onPaneMouseEnter:k1,onPaneMouseMove:r1,onPaneMouseLeave:l1,onPaneScroll:W0,onPaneContextMenu:E1,paneClickDistance:X2,nodeClickDistance:E2,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:o,onReconnect:$1,onReconnectStart:Y1,onReconnectEnd:C1,onEdgeContextMenu:v1,onEdgeDoubleClick:a1,onEdgeMouseEnter:y1,onEdgeMouseMove:i1,onEdgeMouseLeave:o1,reconnectRadius:X0,defaultMarkerColor:E5,noDragClassName:R0,noWheelClassName:N0,noPanClassName:N4,rfId:e3,disableKeyboardA11y:v9,nodeExtent:K5,viewport:BU,onViewportChange:AU,nodesDraggable:J0}),K1.jsx(xS,{onSelectionChange:Q1}),m5,K1.jsx(DS,{proOptions:s3,position:tJ}),K1.jsx(kS,{rfId:e3,disableKeyboardA11y:v9})]})})}var hR=zR(Lv);function xR(Q){let[U,Z]=L1.useState(Q),K=L1.useCallback((H)=>Z((Y)=>YR(H,Y)),[]);return[U,Z,K]}var kg=X5.error014();function Bv({dimensions:Q,lineWidth:U,variant:Z,className:K}){return K1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:$2(["react-flow__background-pattern",Z,K])})}function Av({radius:Q,className:U}){return K1.jsx("circle",{cx:Q,cy:Q,r:Q,className:$2(["react-flow__background-pattern","dots",U])})}var G3;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(G3||(G3={}));var Mv={[G3.Dots]:1,[G3.Lines]:1,[G3.Cross]:6},Tv=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function mR({id:Q,variant:U=G3.Dots,gap:Z=20,size:K,lineWidth:H=1,offset:Y=0,color:W,bgColor:L,style:M,className:O,patternClassName:T}){let A=L1.useRef(null),{transform:R,patternId:I}=B0(Tv,d0),P=K||Mv[U],V=U===G3.Dots,S=U===G3.Cross,C=Array.isArray(Z)?Z:[Z,Z],y=[C[0]*R[2]||1,C[1]*R[2]||1],N=P*R[2],j=Array.isArray(Y)?Y:[Y,Y],D=S?[N,N]:y,x=[j[0]*R[2]+D[0]/2,j[1]*R[2]+D[1]/2],E=`${I}${Q?Q:""}`;return K1.jsxs("svg",{className:$2(["react-flow__background",O]),style:{...M,...ZU,"--xy-background-color-props":L,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[K1.jsx("pattern",{id:E,x:R[0]%y[0],y:R[1]%y[1],width:y[0],height:y[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`,children:V?K1.jsx(Av,{radius:N/2,className:T}):K1.jsx(Bv,{dimensions:D,lineWidth:H,variant:U,className:T})}),K1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}mR.displayName="Background";var gR=L1.memo(mR);function Rv(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:K1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Ov(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:K1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Iv(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:K1.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 wv(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:K1.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 Pv(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:K1.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 QU({children:Q,className:U,...Z}){return K1.jsx("button",{type:"button",className:$2(["react-flow__controls-button",U]),...Z,children:Q})}var Nv=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function pR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:L,onInteractiveChange:M,className:O,children:T,position:A="bottom-left",orientation:R="vertical","aria-label":I}){let P=r0(),{isInteractive:V,minZoomReached:S,maxZoomReached:C,ariaLabelConfig:y}=B0(Nv,d0),{zoomIn:N,zoomOut:j,fitView:D}=lJ(),x=()=>{N(),Y?.()},E=()=>{j(),W?.()},u=()=>{D(H),L?.()},b=()=>{P.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),M?.(!V)};return K1.jsxs(Z3,{className:$2(["react-flow__controls",R==="horizontal"?"horizontal":"vertical",O]),position:A,style:Q,"data-testid":"rf__controls","aria-label":I??y["controls.ariaLabel"],children:[U&&K1.jsxs(K1.Fragment,{children:[K1.jsx(QU,{onClick:x,className:"react-flow__controls-zoomin",title:y["controls.zoomIn.ariaLabel"],"aria-label":y["controls.zoomIn.ariaLabel"],disabled:C,children:K1.jsx(Rv,{})}),K1.jsx(QU,{onClick:E,className:"react-flow__controls-zoomout",title:y["controls.zoomOut.ariaLabel"],"aria-label":y["controls.zoomOut.ariaLabel"],disabled:S,children:K1.jsx(Ov,{})})]}),Z&&K1.jsx(QU,{className:"react-flow__controls-fitview",onClick:u,title:y["controls.fitView.ariaLabel"],"aria-label":y["controls.fitView.ariaLabel"],children:K1.jsx(Iv,{})}),K&&K1.jsx(QU,{className:"react-flow__controls-interactive",onClick:b,title:y["controls.interactive.ariaLabel"],"aria-label":y["controls.interactive.ariaLabel"],children:V?K1.jsx(Pv,{}):K1.jsx(wv,{})}),T]})}pR.displayName="Controls";var cR=L1.memo(pR);function Cv({id:Q,x:U,y:Z,width:K,height:H,style:Y,color:W,strokeColor:L,strokeWidth:M,className:O,borderRadius:T,shapeRendering:A,selected:R,onClick:I}){let{background:P,backgroundColor:V}=Y||{},S=W||P||V;return K1.jsx("rect",{className:$2(["react-flow__minimap-node",{selected:R},O]),x:U,y:Z,rx:T,ry:T,width:K,height:H,style:{fill:S,stroke:L,strokeWidth:M},shapeRendering:A,onClick:I?(C)=>I(C,Q):void 0})}var fv=L1.memo(Cv),Sv=(Q)=>Q.nodes.map((U)=>U.id),sK=(Q)=>Q instanceof Function?Q:()=>Q;function jv({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=fv,onClick:W}){let L=B0(Sv,d0),M=sK(U),O=sK(Q),T=sK(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return K1.jsx(K1.Fragment,{children:L.map((R)=>K1.jsx(Vv,{id:R,nodeColorFunc:M,nodeStrokeColorFunc:O,nodeClassNameFunc:T,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},R))})}function vv({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:L,onClick:M}){let{node:O,x:T,y:A,width:R,height:I}=B0((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}=V.internals.positionAbsolute,{width:N,height:j}=$4(S);return{node:S,x:C,y,width:N,height:j}},d0);if(!O||O.hidden||!DK(O))return null;return K1.jsx(L,{x:T,y:A,width:R,height:I,style:O.style,selected:!!O.selected,className:K(O),color:U(O),borderRadius:H,strokeColor:Z(O),strokeWidth:Y,shapeRendering:W,onClick:M,id:O.id})}var Vv=L1.memo(vv),yv=L1.memo(jv),kv=200,Dv=150,uv=(Q)=>!Q.hidden,bv=(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(_7(Q.nodeLookup,{filter:uv}),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,Ev=(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,hv="react-flow__minimap-desc";function lR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:L,bgColor:M,maskColor:O,maskStrokeColor:T,maskStrokeWidth:A,position:R="bottom-right",onClick:I,onNodeClick:P,pannable:V=!1,zoomable:S=!1,ariaLabel:C,inversePan:y,zoomStep:N=1,offsetScale:j=5}){let D=r0(),x=L1.useRef(null),{boundingRect:E,panZoom:u,viewBB:b,rfId:m,translateExtent:s,flowWidth:U1,flowHeight:Q1,ariaLabelConfig:h}=B0(bv,Ev),g=Q?.width??kv,p=Q?.height??Dv,c=E.width/g,l=E.height/p,o=Math.max(c,l),k=o*g,t=o*p,_1=j*o,a=E.x-(k-E.width)/2-_1,H1=E.y-(t-E.height)/2-_1,O1=k+_1*2,B1=t+_1*2,T1=`${hv}-${m}`,G1=L1.useRef(0),R1=L1.useRef();G1.current=o,L1.useEffect(()=>{let p1=D.getState().panZoom;if(x.current&&p1)return R1.current=AT({domNode:x.current,panZoom:p1,getTransform:()=>D.getState().transform,getViewScale:()=>G1.current}),()=>{R1.current?.destroy()}},[u]),L1.useEffect(()=>{R1.current?.update({translateExtent:s,width:U1,height:Q1,inversePan:y,pannable:V,zoomStep:N,zoomable:S})},[V,S,y,N,s,U1,Q1]);let S1=I?(p1)=>{let[u1,A1]=R1.current?.pointer(p1)||[0,0];I(p1,{x:u1,y:A1})}:void 0,W1=L1.useCallback((p1,u1)=>{let A1=D.getState().nodeLookup.get(u1).internals.userNode;P?.(p1,A1)},[P]),f1=P?W1:void 0,b1=C??h["minimap.ariaLabel"];return K1.jsx(Z3,{position:R,style:{...Q,"--xy-minimap-background-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-background-color-props":typeof O==="string"?O:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T: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:$2(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:K1.jsxs("svg",{width:g,height:p,viewBox:`${a} ${H1} ${O1} ${B1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":T1,ref:x,onClick:S1,children:[b1&&K1.jsx("title",{id:T1,children:b1}),K1.jsx(yv,{onClick:f1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:L}),K1.jsx("path",{className:"react-flow__minimap-mask",d:`M${a-_1},${H1-_1}h${O1+_1*2}v${B1+_1*2}h${-O1-_1*2}z
247
+ M${b.x},${b.y}h${b.width}v${b.height}h${-b.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}lR.displayName="MiniMap";var iR=L1.memo(lR),xv=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,mv={[g3.Line]:"right",[g3.Handle]:"bottom-right"};function gv({nodeId:Q,position:U,variant:Z=g3.Handle,className:K,style:H=void 0,children:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:R,autoScale:I=!0,shouldResize:P,onResizeStart:V,onResize:S,onResizeEnd:C}){let y=nK(),N=typeof Q==="string"?Q:y,j=r0(),D=L1.useRef(null),x=Z===g3.Handle,E=B0(L1.useCallback(xv(x&&I),[x,I]),d0),u=L1.useRef(null),b=U??mv[Z];L1.useEffect(()=>{if(!D.current||!N)return;if(!u.current)u.current=PT({domNode:D.current,nodeId:N,getStoreItems:()=>{let{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,domNode:p}=j.getState();return{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,paneDomNode:p}},onChange:(s,U1)=>{let{triggerNodeChanges:Q1,nodeLookup:h,parentLookup:g,nodeOrigin:p}=j.getState(),c=[],l={x:s.x,y:s.y},o=h.get(N);if(o&&o.expandParent&&o.parentId){let k=o.origin??p,t=s.width??o.measured.width??0,_1=s.height??o.measured.height??0,a={id:o.id,parentId:o.parentId,rect:{width:t,height:_1,...uK({x:s.x??o.position.x,y:s.y??o.position.y},{width:t,height:_1},o.parentId,h,k)}},H1=eq([a],h,g,p);c.push(...H1),l.x=s.x?Math.max(k[0]*t,s.x):void 0,l.y=s.y?Math.max(k[1]*_1,s.y):void 0}if(l.x!==void 0&&l.y!==void 0){let k={id:N,type:"position",position:{...l}};c.push(k)}if(s.width!==void 0&&s.height!==void 0){let t={id:N,type:"dimensions",resizing:!0,setAttributes:!R?!0:R==="horizontal"?"width":"height",dimensions:{width:s.width,height:s.height}};c.push(t)}for(let k of U1){let t={...k,type:"position"};c.push(t)}Q1(c)},onEnd:({width:s,height:U1})=>{let Q1={id:N,type:"dimensions",resizing:!1,dimensions:{width:s,height:U1}};j.getState().triggerNodeChanges([Q1])}});return u.current.update({controlPosition:b,boundaries:{minWidth:L,minHeight:M,maxWidth:O,maxHeight:T},keepAspectRatio:A,resizeDirection:R,onResizeStart:V,onResize:S,onResizeEnd:C,shouldResize:P}),()=>{u.current?.destroy()}},[b,L,M,O,T,A,V,S,C,P]);let m=b.split("-");return K1.jsx("div",{className:$2(["react-flow__resize-control","nodrag",...m,Z,K]),ref:D,style:{...H,scale:E,...W&&{[x?"backgroundColor":"borderColor"]:W}},children:Y})}var UR=L1.memo(gv);function dR({nodeId:Q,isVisible:U=!0,handleClassName:Z,handleStyle:K,lineClassName:H,lineStyle:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:R=!0,shouldResize:I,onResizeStart:P,onResize:V,onResizeEnd:S}){if(!U)return null;return K1.jsxs(K1.Fragment,{children:[IT.map((C)=>K1.jsx(UR,{className:H,style:Y,nodeId:Q,position:C,variant:g3.Line,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:P,keepAspectRatio:A,autoScale:R,shouldResize:I,onResize:V,onResizeEnd:S},C)),OT.map((C)=>K1.jsx(UR,{className:Z,style:K,nodeId:Q,position:C,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:P,keepAspectRatio:A,autoScale:R,shouldResize:I,onResize:V,onResizeEnd:S},C))]})}var pv=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function cv({children:Q}){let U=B0(pv);if(!U)return null;return GR.createPortal(Q,U)}var lv=(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,iv=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(lv(K,U.get(Z)))return!1;return!0},dv=(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=h1.Top,offset:W=10,align:L="center",...M}){let O=nK(),T=L1.useCallback((D)=>{return(Array.isArray(Q)?Q:[Q||O||""]).reduce((u,b)=>{let m=D.nodeLookup.get(b);if(m)u.set(m.id,m);return u},new Map)},[Q,O]),A=B0(T,iv),{x:R,y:I,zoom:P,selectedNodesCount:V}=B0(dv,d0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let C=_7(A),y=Array.from(A.values()),N=Math.max(...y.map((D)=>D.internals.z+1)),j={position:"absolute",transform:UT(C,{x:R,y:I,zoom:P},Y,W,L),zIndex:N,...K};return K1.jsx(cv,{children:K1.jsx("div",{style:j,className:$2(["react-flow__node-toolbar",Z]),...M,"data-id":y.reduce((D,x)=>`${D}${x.id} `,"").trim(),children:U})})}function XU(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 rR={"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=t0(E8(),1),HU="volter.console.token",Z7=document.getElementById("root"),_0=Z7.dataset.base??"/-/console",P0=window.location.origin,i3=(Z7.dataset.worlds??P0).replace(/\/+$/,""),QO=(Z7.dataset.names??"").split(",").filter((Q)=>Q!==""),l3=Z7.dataset.worldOrigin==="1",G7=window.fetch.bind(window),a6="(session)",qO="(pass)",iJ=(Q)=>{try{if(Q&&!l3)sessionStorage.setItem(HU,Q);else sessionStorage.removeItem(HU);localStorage.removeItem(HU)}catch{}},UO="volter.console.portal",GO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(UO,new URL(Q).origin)}catch{}},rv=()=>{return F7.get("token")??""},o2=()=>{try{let Q=sessionStorage.getItem(UO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},av=()=>{let Q=rv();if(l3){if(iJ(""),F7.get("pass"))return qO;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?"":a6)}if(Q)return iJ(Q),Q;try{return sessionStorage.getItem(HU)??""}catch{return""}};function T2(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: ${x8(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 ${t1(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(t1);return{text:`${x8(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 T5=async(Q)=>T2(await u3(Q)).text,sv={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function ZO({name:Q,acts:U}){let Z=U.map((K)=>sv[K]).filter((K)=>Boolean(K));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([K,H])=>F.jsxDEV(F1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${_0}/${Q}/~/${K}`,onClick:(Y)=>{Y.preventDefault(),S0([...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 I0(Q,U,Z={}){return G7(`${P0}${U}`,{...Z,headers:{...Z.headers??{},...Q===a6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function k0(Q,U,Z=0){let K=mA((H)=>I0(Q,H),U,Z,Q);return K.state==="error"?{...K,error:T2(K.error).text}:K}var j9=(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())}`},aR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),FO=(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",tv=(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},GH="volter.console.snapshots",d3=()=>{try{return JSON.parse(sessionStorage.getItem(GH)??"{}")}catch{return{}}},XO=new Map,ZH=(Q)=>{if(l3){if(Q.token||Q.readToken)XO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(GH,JSON.stringify({...d3(),[Q.name]:Q}))}catch{}},FH=(Q)=>XO.get(Q)?.readToken||d3()[Q]?.readToken||"",YU=(Q)=>{try{let U=d3();delete U[Q],sessionStorage.setItem(GH,JSON.stringify(U))}catch{}},F7=new URLSearchParams(window.location.hash.slice(1)),f9=F7.get("close")??"";function rJ(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 XH(Q){let U=rJ(Q);if(!U)return null;let Z=new URL(P0);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 ov(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:XH(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=F7.get("snapshot");if(Q){let U=ov(Q);if(U&&!d3()[U.name])ZH(U)}}var KO="volter.console.home",HO=(Q)=>{let U=rJ(Q);if(!U)return null;let Z=new URL(P0).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=HO(F7.get("home"));if(Q)try{sessionStorage.setItem(KO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>F7.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var w4=()=>{try{return HO(sessionStorage.getItem(KO))??""}catch{return""}};function KH(Q,U,Z,K){let H=new URLSearchParams({token:U,home:w4()||P0}),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=Z7.dataset.route==="memory"?"":null;function Q7(){return(qH??window.location.pathname.slice(_0.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var sR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,c3=(Q,U)=>Q&&U&&sR.test(Q)&&sR.test(U)?`${Q}/${U}`:"";function S0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(qH!==null)qH=U;else window.history.pushState(null,"",`${_0}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function YO(Q,U){let Z=XH(d3()[Q]?.origin);if(Z&&Z!==P0){KH(Z,FH(Q),Q,`${_0}/${U.map(encodeURIComponent).join("/")}`);return}S0(U)}async function tR(){let[Q,U]=Q7(),Z=c3(Q,U),K=Z?[Z]:QO;if(K.length===0){let H=await G7(`${P0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,W,...L]=H.split("/");return L.length===0&&c3(Y,W)===H});for(let H of K){let Y=await G7(`${P0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),L=rJ(W.origin)?.origin;if(Y.status===409&&L&&L!==P0)return window.location.replace(`${L}${_0}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:a6}}return null}function nv(){let[Q,U]=F1.useState(tF),Z=(K)=>()=>{try{if(K==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",K)}catch{}Aq(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 ev(){let[Q,U]=F1.useState(av()),[Z,K]=F1.useState(!1),[H,Y]=F1.useState(!1),[W,L]=F1.useState(""),[M,O]=F1.useState(null),[T,A]=F1.useState(null),[R,I]=F1.useState(Q7());F1.useEffect(()=>{let _1=()=>I(Q7());return window.addEventListener("popstate",_1),()=>window.removeEventListener("popstate",_1)},[]),F1.useEffect(()=>{let[_1,a]=Q7(),H1=c3(_1,a),[O1,B1]=H1?H1.split("/"):[],T1=d3()[f9];if(!f9||!Q||!O1||!B1||!T1?.made||T1.parent!==`${O1}/${B1}`||c3(...f9.split("/"))!==f9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}I0(Q,`/-/${O1}/${B1}/branches/${f9}`,{method:"DELETE"}).catch(()=>null).then(()=>YU(f9))},[Q]);let P=F1.useCallback(async(_1)=>{if(A(null),!_1){let B1=await tR();if(B1==="moved")return;if(B1){if(K(!0),B1.token!==a6)iJ(B1.token);U(B1.token);return}O(null),Y(!0);return}if(l3&&_1===a6){let B1=await tR();if(B1==="moved")return;if(B1)K(!0)}if(l3&&_1===qO){let[B1,T1]=Q7(),G1=c3(B1,T1),[R1,S1]=G1?G1.split("/"):[],W1=R1&&S1?await G7(`${P0}/-/${R1}/${S1}/session`,{method:"POST",headers:{"x-volter-pass":F7.get("pass")??""}}).catch(()=>null):null;if(!W1){A(`${P0} did not answer: no session was opened`),O(null);return}if(!W1.ok){A(`${await T5(W1)}. Open it again from the platform.`),O(null);return}GO((await W1.json().catch(()=>({}))).issuer),U(a6);return}if(l3&&_1!==a6){let[B1,T1]=Q7(),G1=c3(B1,T1),[R1,S1]=G1?G1.split("/"):[],W1=R1&&S1?await G7(`${P0}/-/${R1}/${S1}/session`,{method:"POST",headers:{"x-volter-token":_1}}).catch(()=>null):null;if(!W1){A(`${P0} did not answer: no session was opened`),O(null);return}if(!W1.ok){let f1=await T5(W1);A(W1.status===401||W1.status===403?`That token does not open ${R1}/${S1}.`:W1.status===409?`${R1}/${S1}'s session lives at another origin: ${f1}`:`The World could not open a session (${W1.status}): ${f1}`),O(null);return}U(a6);return}let a=l3?new Response(null,{status:404}):await I0(_1,"/-/worlds");if(a.ok){let{worlds:B1}=await a.json();O({kind:"admin",worlds:B1});return}if(a.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),O(null);return}if(a.status>=500){let B1=await a.json().catch(()=>({}));A(`The platform could not list your worlds${B1.error?`: ${B1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),O(null);return}let H1=QO;if(H1.length===0){let B1=await G7(`${P0}/-/ping`);if(!B1.ok){A(`${P0} does not answer as a host`),O(null);return}if(H1=(await B1.json()).worlds??[],H1.length===0){A(`${P0} does not list its Worlds: open a World at its own address, ${P0}${_0}/<org>/<world>`),O(null);return}}let O1=[];for(let B1 of H1){let T1=await I0(_1,`/-/${B1}/twins`);if(T1.ok){let G1=await T1.json();O1.push({name:B1,base:`${i3}/${B1}`,twins:(G1.twins??[]).map((R1)=>({vendor:R1.twin,protocol:R1.protocol??null,root:R1.root??null}))})}}if(O1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),O(null);return}O({kind:"world",worlds:O1})},[]);F1.useEffect(()=>{P(Q)},[Q,P]);let V=(_1)=>M?.kind==="admin"?M.worlds.find((a)=>a.name===_1)?.token??Q:Q,[S,C]=F1.useState("");if(!Q||!M&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(HJ,{href:`${_0}/`},void 0,!1,void 0,this),Q&&!M&&!T||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(_1)=>{_1.preventDefault(),iJ(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:(_1)=>L(_1.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 y=()=>A("This link or key opens no World here: it was revoked, or it has ended."),N=()=>{if(Z){window.location.reload();return}if(l3){let[_1,a]=Q7(),H1=c3(_1,a),[O1,B1]=H1?H1.split("/"):[],T1=()=>window.location.replace(o2()?`${o2()}/`:`${P0}${_0}/${O1&&B1?`${O1}/${B1}`:""}?signin`);if(setTimeout(T1,2000),O1&&B1)G7(`${P0}/-/${O1}/${B1}/session/end`,{method:"POST"}).catch(()=>null).then(T1);else T1();return}if(M)for(let _1 of M.worlds)navigator.sendBeacon(`${_1.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${_1.name}/session/end`);iJ(""),U(""),L(""),O(null),S0([])};if(T||!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(HJ,{href:`${_0}/`},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:T??"nothing answered"},void 0,!1,void 0,this),o2()?F.jsxDEV("a",{className:"button primary",href:`${o2()}/`,children:["Back to ",new URL(o2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:N,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[j,D,x,E,u,b,m]=R,s=x==="~",U1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,h=s||!x||!U1.test(x)?void 0:x,g=u&&U1.test(u)?b!==void 0&&E!=="changes"&&E!=="screens"?c3(u,b)||void 0:u:void 0,p=E==="changes"&&u==="changesets"&&b&&U1.test(b)?b:E==="screens"&&b&&m&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(m)?`${b}:${m}`:void 0,c=c3(j,D),l=c?d3()[c]??null:null,o=(_1)=>FH(_1)||V(_1),k=l?M.kind==="admin"?M.worlds.find((_1)=>_1.name===l.parent)?.token??null:M.worlds.some((_1)=>_1.name===l.parent)?Q:null:null,t=async(_1)=>{let a=XH(_1.parentOrigin);if(a&&a!==P0){YU(_1.name),window.location.assign(`${a}${_0}/${_1.parent}#close=${encodeURIComponent(_1.name)}`);return}if(_1.made)await I0(V(_1.parent),`/-/${_1.parent}/branches/${_1.name}`,{method:"DELETE"}).catch(()=>null),YU(_1.name);S0(_1.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(iA,{},void 0,!1,void 0,this):null,F.jsxDEV(HJ,{href:`${w4()&&w4()!==P0?w4():""}${_0}/`,onClick:(_1)=>{if(w4()&&w4()!==P0)return;_1.preventDefault(),S0([])}},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:`${_0}/${c}`,className:"crumb-world",onClick:(_1)=>{_1.preventDefault(),S0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,h?F.jsxDEV("span",{children:[" / ",h]},void 0,!0,void 0,this):null,s&&E==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),o2()?F.jsxDEV("a",{href:`${o2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(o2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(o2()).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}`:M.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:N,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(QV,{name:c,token:o(c),twin:h,tab:s?E??"overview":"overview",arg:s?g:void 0,...s&&p?{sub:p}:{},admin:l?null:M.kind==="admin"?Q:null,snapshot:l,parentToken:k,who:{local:Z,person:S||null,admin:M.kind==="admin"},onSignOut:N,onReturn:t,opens:(_1)=>!!d3()[_1]||M.kind==="admin"&&M.worlds.some((a)=>a.name===_1),onRemoved:()=>{P(Q),S0([])},onWho:C,onEnded:y,worlds:M.worlds.map((_1)=>_1.name)},c,!1,void 0,this):F.jsxDEV(_V,{mode:M,admin:M.kind==="admin"?Q:null,reload:()=>P(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _V({mode:Q,admin:U,reload:Z}){let[K,H]=F1.useState(""),[Y,W]=F1.useState(""),[L,M]=F1.useState(""),[O,T]=F1.useState(null),A=async(E)=>{if(!await J3({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 u=await I0(U,`/-/worlds/${E}/rotate`,{method:"POST"}),b=await u.json().catch(()=>({}));T(u.ok?`rotated ${E}: the new tokens are shown once — token ${b.token} · read token ${b.readToken}`:b.error?T2(b.error).text:`answered ${u.status}`),await Z()},R=async(E)=>{let u=await I0(U,`/-/worlds/${E}`,{method:"DELETE"}),b=await u.json().catch(()=>({}));T(u.ok?`removed ${E}`:b.error?T2(b.error).text:`answered ${u.status}`),await Z()},[I,P]=F1.useState(!1),[V,S]=F1.useState(!1),[C,y]=F1.useState(""),N=async(E)=>{E.preventDefault(),T(null),P(!0);try{let u=await I0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:L.split(",").map((m)=>m.trim()).filter(Boolean)})}),b=await u.json();if(!u.ok){T(b.error?T2(b.error).text:`the host answered ${u.status}`);return}T(`provisioned ${b.name}`),W(""),M(""),S(!1),await Z()}finally{P(!1)}},j=C.trim().toLowerCase(),D=Q.worlds.filter((E)=>!j||E.name.toLowerCase().includes(j)||E.twins.some((u)=>u.vendor.includes(j))),x=[...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:[i0(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:()=>{T(null),S(!0)},children:[F.jsxDEV(F0,{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:(E)=>y(E.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),O&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:O},void 0,!1,void 0,this):null,x.map((E)=>F.jsxDEV(F1.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((u)=>u.name.split("/")[0]===E).map((u)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${_0}/${u.name}`,onClick:(b)=>{b.preventDefault(),S0(u.name.split("/"))},children:[F.jsxDEV(F0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:u.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:u.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:u.twins.map((b)=>F.jsxDEV("span",{title:t1(b.vendor),children:F.jsxDEV(G2,{vendor:b.vendor},void 0,!1,void 0,this)},b.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 ${u.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(b)=>{b.currentTarget.closest("details")?.removeAttribute("open"),A(u.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(b)=>{b.currentTarget.closest("details")?.removeAttribute("open"),J3({title:`Remove ${u.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:u.name}).then((m)=>{if(m)R(u.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},u.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:j?`No World matches ${C}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(u5,{open:V,onClose:()=>{if(!I)S(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>S(!1),disabled:I,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:I,children:I?"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: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:L,onChange:(E)=>M(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),O?F.jsxDEV("p",{role:"status",children:O},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 JV=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],$V=(Q,U)=>{let Z=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&Z?`${i3}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},oR={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(),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(),L=Y?`${H} seeded`:oR[Z]?`${H} ${oR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,M=Q.fields??{},O=["title","name","email","text","subject","summary","description"].map((A)=>M[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=O===null?null:O.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,R,I)=>`${R==="!"?"@":R}${I}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:L,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var r3=(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 QV({name:Q,token:U,twin:Z,tab:K,arg:H,sub:Y,admin:W,snapshot:L,parentToken:M,who:O,onSignOut:T,onReturn:A,opens:R,onRemoved:I,onWho:P,onEnded:V,worlds:S=[]}){let[C,y]=F1.useState("pending"),[N,j]=F1.useState(null),[D,x]=F1.useState(0),[E,u]=F1.useState(null);F1.useEffect(()=>{let G1=!0;return j(null),I0(U,`/-/${Q}/session`,{method:"POST"}).then(async(R1)=>{let S1=await R1.json().catch(()=>({}));if(GO(S1.issuer),S1.who)P?.(S1.who);u(typeof S1.signsAs==="string"?S1.signsAs:null);let W1=rJ(S1.origin)?.origin;if(R1.status===409&&W1&&W1!==P0){KH(W1,U,Q);return}if(!G1)return;if(y(!R1.ok?"unknown":S1.scope==="read"?"read":S1.scope==="write"?"write":"unknown"),!R1.ok)j(S1.error?T2(S1.error).text:`answered ${R1.status}`)}).catch((R1)=>{if(G1)y("unknown"),j(`the World did not answer: ${R1 instanceof Error?R1.message:String(R1)}`)}),()=>{G1=!1}},[Q,U,D]);let b=N?{state:"error",error:N}:C==="pending"?{state:"pending"}:{state:"ok",scope:C},m=C==="write",s=(G1)=>{if(G1.status!==403)return;G1.clone().json().then((R1)=>{if(/read token|opens only reads|write access|reads only/i.test(R1?.error??""))y("read")},()=>null)},[U1,Q1]=F1.useState(0);F1.useEffect(()=>{let G1=setInterval(()=>{if(!document.hidden)Q1((R1)=>R1+1)},5000);return()=>clearInterval(G1)},[]);let[h,g]=F1.useState(0),p=k0(U,`/-/${Q}/clock`,U1+h);F1.useEffect(()=>{if(l3&&!L&&p.state==="error"&&p.status===401)V?.()},[p,L,V]);let c=k0(U,`/-/${Q}/twins`),l=k0(U,`/-/${Q}/branches`,h),o=k0(U,`/-/${Q}/map`,Math.floor(U1/2)),k=!(l.state==="error"&&(l.status===404||l.status===405)),t=JV.includes(K)?K:"overview",_1=c.state==="ok"?c.data.twins.map((G1)=>G1.twin):[];if(Z&&c.state==="ok"&&!_1.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(X9,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${_0}/${Q}`,onClick:(G1)=>{G1.preventDefault(),S0(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 a=t==="vendors"&&H?H:void 0,H1=()=>{y("pending"),x((G1)=>G1+1)};if(t==="canvas"||t==="vendors"&&!a||K==="screens"&&!H)return F.jsxDEV(VV,{name:Q,token:U,twins:c,session:b,retry:H1,snapshot:L,back:()=>S0(Q.split("/")),canWrite:m&&!L},void 0,!1,void 0,this);let B1=K==="settings"?{kind:"settings",tab:((G1)=>zO.find(([R1])=>R1===G1)?.[0]??"account")(H)}:K==="remote"?{kind:"settings",tab:"remote"}:K==="vault"?{kind:"settings",tab:"vault"}:K==="branches"?{kind:"branches",...H?{open:H}:{}}:null,T1=Z?"vendor":K==="screens"&&H?"screen":t==="vendors"&&a?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(zV,{name:Q,token:U,view:T1,win:B1,who:O,snapshot:L,onReturn:A,onSignOut:T,worlds:S,session:b,retry:H1,...T1==="vendor"?{arg:Z??a}:T1==="events"||T1==="trace"||T1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:o,branches:k?l:null,clock:p,canWrite:m&&!L,refused:s,signsAs:E,opens:R,tick:U1,admin:W,onRemoved:I,onClock:()=>g((G1)=>G1+1),scope:L?"read":C},void 0,!1,void 0,this)}function F0({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:(rR[Q]??[]).map(([Z,K],H)=>F1.default.createElement(Z,{key:H,...K}))},void 0,!1,void 0,this)}function WU(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 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"]],qV=(Q,U)=>{let Z=U.split("/").pop()??U,K=Q.split("/").pop()??"";return Z.startsWith(`${K}-`)?Z.slice(K.length+1):Z},q7=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function WO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],K=q4(Z),H=WU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,L={};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(L,A.fields??{})}let M={...L};for(let A of Q.writes)Object.assign(M,A.fields??{});let O=H.tone==="added"&&Object.keys(L).length===0,T=[...new Set([...Object.keys(L),...Object.keys(M)])].filter((A)=>!fO(L[A],M[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??r3(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(F0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(G2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??r3(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[t1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:r3(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(y0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",dJ(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):T.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),O?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:T.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),O?null:F.jsxDEV("td",{className:A in L?"was":"none",children:A in L?F.jsxDEV(a3,{v:L[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 M?"now":"none",children:A in M?F.jsxDEV(a3,{v:M[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 LO({records:Q,selected:U,onPick:Z,label:K}){let[H,Y]=F1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),W=(O)=>{Y(O);try{localStorage.setItem("volter.console.records",O?"tree":"path")}catch{}},L=(O,T)=>{let A=O.writes[O.writes.length-1],R=q4(A),I=WU(O.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===O.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===O.key,onClick:()=>Z(O.key),children:[T?null:F.jsxDEV(G2,{vendor:O.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:R.label??r3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[q7(A.subject.type)," · ",R.what.split(" ").slice(-1)[0],O.writes.length>1?` · ${i0(O.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${I.tone}`,title:I.word,"aria-label":I.word,children:F.jsxDEV(F0,{name:I.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},O.key,!1,void 0,this)},M=[...new Set(Q.map((O)=>O.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?M.map((O)=>{let T=Q.filter((A)=>A.twin===O);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(G2,{vendor:O},void 0,!1,void 0,this),F.jsxDEV("b",{children:t1(O)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:T.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:T.map((A)=>L(A,!0))},void 0,!1,void 0,this)]},O,!0,void 0,this)}):Q.map((O)=>L(O,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function UV({name:Q,token:U,branches:Z,opens:K,refused:H,onChanged:Y}){let[W,L]=F1.useState(""),[M,O]=F1.useState(!1),T=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:T,running:!0}],R=Z?.state==="ok"?Z.data.branches:[],I=W.trim().toLowerCase(),P=(S)=>!I||S.toLowerCase().includes(I),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(F0,{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:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(F0,{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)=>L(S.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(S)=>{V(S),O(!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===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:S.name===T?F.jsxDEV(F0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(F0,{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===T?"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),R.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:R.filter((S)=>P(S.name)).map((S)=>{let C=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(F0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:qV(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(y0,{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),y=S.expiresAt?`Goes away ${new Date(S.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(S.name)?F.jsxDEV("a",{href:`${_0}/${S.name}`,title:y,onClick:(N)=>{N.preventDefault(),V(N),YO(S.name,S.name.split("/"))},children:C},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${y}. 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:`${_0}/${Q}/~/branches`,onClick:(S)=>{S.preventDefault(),V(S),S0([...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(MO,{name:Q,token:U,open:M,onClose:()=>O(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function BO({name:Q,view:U,changes:Z,changesets:K}){let H=(Y)=>(W)=>{W.preventDefault(),S0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${_0}/${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:`${_0}/${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 GV({name:Q,token:U,sets:Z,sub:K,signsAs:H,canWrite:Y,rooted:W,refused:L,onChanged:M,changes:O,withScreens:T,required:A}){let[R,I]=F1.useState(null),[P,V]=F1.useState(!1),S=Z.state==="ok"?[...Z.data.changesets].sort((u,b)=>b.createdAt.localeCompare(u.createdAt)):[],C=S.find((u)=>u.name===K)??S[0],y=F1.useMemo(()=>{let u=new Map;for(let b of C?NO(C):[]){let m=`${b.twin}:${b.entry.subject.type}:${b.entry.subject.id}`,s=u.get(m)??{key:m,twin:b.twin,writes:[]};s.writes.push(b.entry),u.set(m,s)}return[...u.values()]},[C]),N=y.find((u)=>u.key===R)??y[0],j=k0(U,N?`/-/${Q}/log/${N.twin}`:null),D={added:0,removed:0,changed:0};for(let u of y)D[WU(u.writes).tone]=(D[WU(u.writes).tone]??0)+1;let x=C?LU(C):null,E=C?CO(C,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(BO,{name:Q,view:"history",changes:O,changesets:S.length},void 0,!1,void 0,this),F.jsxDEV(a2,{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((u)=>{let b=C?.name===u.name,m=LU(u).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${_0}/${Q}/~/changes/changesets/${u.name}`,className:b?"on":void 0,"aria-current":b?"true":void 0,onClick:(s)=>{s.preventDefault(),I(null),S0([...Q.split("/"),"~","changes","changesets",u.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:QH(u)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[u.owner??(u.cutBy?zU(u.cutBy):"unrecorded")," • ",F.jsxDEV(y0,{iso:u.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(F0,{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)},u.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(X9,{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&&x&&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(C)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(F0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",i0(y.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:C.name},void 0,!1,void 0,this)," · ",F.jsxDEV(y0,{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":zU(C.cutBy):"unrecorded"],...C.pushedBy?[["Pushed by",zU(C.pushedBy)]]:[]].map(([u,b])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:u},void 0,!1,void 0,this)," ",b]},u,!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-${x.tone}`,children:x.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(LO,{records:y,...N?{selected:N.key}:{},onPick:I,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(WO,{record:N,history:j.state==="ok"?j.data.entries:j.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(u5,{open:P,onClose:()=>V(!1),title:`Review: ${QH(C)}`,wide:!0,children:[F.jsxDEV($O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,onChanged:M,part:"head",required:A},`h:${C.name}`,!1,void 0,this),F.jsxDEV($O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,onChanged:M,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 ZV({name:Q,token:U,vendors:Z,vendor:K,tick:H}){let[Y,W]=F1.useState(nR*4),[L,M]=F1.useState(""),[O,T]=F1.useState(null),A=k0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),R=A.state==="ok"?NV(A.data.entries):[],I=[...new Set(R.map((D)=>q4(D.entry).what))].sort(),P=R.filter((D)=>!L||q4(D.entry).what===L),V=P.find((D)=>S9(D)===O)??P[0],S=(D)=>(x)=>{x.preventDefault(),T(null),S0([...Q.split("/"),"~","events",...D?[D]:[]])},C=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,y=V?tv(V.entry.traceparent):null,N=V?eR(V):null,j=V?OV(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:`${_0}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:S(),children:"All"},void 0,!1,void 0,this),Z.map((D)=>F.jsxDEV("a",{href:`${_0}/${Q}/~/events/${D}`,className:K===D?"on":void 0,"aria-current":K===D?"page":void 0,onClick:S(D),children:[F.jsxDEV(G2,{vendor:D},void 0,!1,void 0,this),t1(D)]},D,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:L,onChange:(D)=>{M(D.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),I.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(a2,{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((D)=>{let x=q4(D.entry),E=eR(D),u=V&&S9(D)===S9(V);return F.jsxDEV("tr",{className:u?"on":void 0,"aria-selected":u,onClick:()=>T(S9(D)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(y0,{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(G2,{vendor:D.twin},void 0,!1,void 0,this),t1(D.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:x.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:x.label?`“${x.label}”`:F.jsxDEV("code",{children:r3(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:dJ(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:FO(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},S9(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:RO(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,":",r3(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(y0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",dJ(V.entry,V.caller)]},void 0,!0,void 0,this),y?F.jsxDEV("a",{href:`${_0}/${Q}/~/trace/${y.trace}`,onClick:(D)=>{D.preventDefault(),S0([...Q.split("/"),"~","trace",y.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(wV,{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),j.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:j.map(([D,x])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:D},void 0,!1,void 0,this),F.jsxDEV("dd",{children:x},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(IO,{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(" · "):PV(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",K?` at ${t1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((D)=>D+nR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function FV({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),H=k0(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,R)=>-TO(A,R)):[],[W,L]=F1.useState(null),M=Y[0]?Date.parse(Y[0].entry.occurredAt):0,O=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-M):1,T=[...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:`${_0}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),S0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(F0,{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),!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(a2,{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(y0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[O," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:T.map(t1).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(X9,{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(O/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let R=Date.parse(A.entry.occurredAt)-M,I=S9(A),P=q4(A.entry);return F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("div",{className:W===I?"ws-span on":"ws-span",role:"row",onClick:()=>L(W===I?null:I),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(G2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:t1(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:`${R/O*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${R/O*100}%`},children:["+",R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W===I?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:RO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",r3(A.entry)]},void 0,!0,void 0,this)," · ",dJ(A.entry,A.caller)," · ",FO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(IO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},I,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function XV({name:Q,token:U,vendor:Z,withScreens:K,tick:H}){let Y=k0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((j)=>j.deleted!==!0):[],L=[...new Set(W.map((j)=>j.type))].map((j)=>({type:j,count:W.filter((D)=>D.type===j).length})).sort((j,D)=>Number(j.type.startsWith("_"))-Number(D.type.startsWith("_"))||q7(j.type).localeCompare(q7(D.type))),[M,O]=F1.useState(null),[T,A]=F1.useState(null),R=L.some((j)=>j.type===M)?M:L[0]?.type,I=W.filter((j)=>j.type===R),P=I.find((j)=>j.id===T)??I[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=(j)=>!S.has(j)&&I.some((D)=>D[j]!==void 0&&D[j]!==null&&typeof D[j]!=="object"),y=[...new Set(I.flatMap((j)=>Object.keys(j)))],N=[...V.filter(C),...y.filter((j)=>!V.includes(j)&&C(j))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${t1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(G2,{vendor:Z},void 0,!1,void 0,this),t1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(a2,{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),L.map((j)=>F.jsxDEV("a",{href:`#${j.type}`,className:R===j.type?"on":void 0,"aria-current":R===j.type?"true":void 0,onClick:(D)=>{D.preventDefault(),O(j.type),A(null)},children:[F.jsxDEV(F0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:q7(j.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:j.count},void 0,!1,void 0,this)]},j.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${_0}/${Q}/~/events/${Z}`,onClick:(j)=>{j.preventDefault(),S0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(F0,{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:`${_0}/${Q}/~/screens/${Z}`,onClick:(j)=>{j.preventDefault(),S0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(F0,{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"&&L.length===0?F.jsxDEV(X9,{title:`${t1(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,I.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${q7(R??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),N.map((j)=>F.jsxDEV("th",{children:j},j,!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:I.map((j)=>F.jsxDEV("tr",{className:P?.id===j.id?"on":void 0,"aria-selected":P?.id===j.id,onClick:()=>A(j.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:j.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.map((D)=>F.jsxDEV("td",{className:"ws-cell-clip",children:j[D]===void 0||j[D]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(j[D])},D,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof j.updatedAt==="string"?F.jsxDEV(y0,{iso:j.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},j.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:q7(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(([j])=>j!=="type"&&j!=="id").map(([j,D])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:j},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(a3,{v:D},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},j,!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?`${I.indexOf(P)+1} of ${i0(I.length,q7(R??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KV({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(G2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:t1(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:`${_0}/${Q}/~/vendors/${U}`,onClick:(L)=>{L.preventDefault(),S0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(F0,{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(F0,{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:[t1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${t1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function HV({name:Q,token:U,who:Z,scope:K}){let[H,Y]=F1.useState(0),W=k0(U,`/-/${Q}/twins`),L=k0(U,`/-/${Q}/rules`,H),M=L.state==="ok"?L.data.changesets:null,[O,T]=F1.useState(null),[A,R]=F1.useState(null),[I,P]=F1.useState(!1),[V,S]=F1.useState([]),C=O??M?.approvals??1,y=A??M?.summary??"required",N=M!==null&&(C!==(M.approvals??1)||y!==(M.summary??"required")),j=(m,s)=>{if(S((U1)=>[{ok:m,text:s,at:new Date().toISOString(),n:++aJ},...U1].slice(0,3)),!m)J2(s,"error")},D=async(m)=>{m.preventDefault(),P(!0);try{let s=await I0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:C,summary:y}})});if(!s.ok){j(!1,`Save: ${await T5(s)}`);return}j(!0,`Saved: ${C===0?"no approval":i0(C,"approval")} before a deploy; a summary ${y==="required"?"required":"generated when none is given"}.`),T(null),R(null),Y((U1)=>U1+1)}finally{P(!1)}},x={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),u=W.state==="ok"?W.data.twins.filter((m)=>m.root?.url):[],b=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(a2,{load:L,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(m)=>void D(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 ",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(b)||M===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:y==="required",onChange:()=>R("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:y==="generated",onChange:()=>R("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(F0,{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)=>T(Number(m.target.value)),disabled:Boolean(b)||M===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"&&u.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,u.length?F.jsxDEV("ul",{className:"ws-rule-list",children:u.map((m)=>F.jsxDEV("li",{children:[F.jsxDEV(G2,{vendor:m.twin},void 0,!1,void 0,this),t1(m.twin),": ",x[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:`${_0}/${Q}/~/settings/services`,onClick:(m)=>{m.preventDefault(),S0([...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(s6,{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(b)||I||!N,title:b??void 0,children:I?"Saving…":"Save"},void 0,!1,void 0,this),N?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),R(null)},children:"Cancel"},void 0,!1,void 0,this):null,b?F.jsxDEV("span",{className:"mode",children:[b,"."]},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 YV({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,L]=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(F0,{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:L},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(F0,{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 zV({name:Q,token:U,view:Z,sub:K,arg:H,win:Y,who:W,snapshot:L,onReturn:M,onSignOut:O,worlds:T,session:A,retry:R,twins:I,map:P,branches:V,clock:S,canWrite:C,refused:y,signsAs:N,opens:j,tick:D,admin:x,onRemoved:E,onClock:u,scope:b}){let m=SO(Q,U,D,y),[s,U1]=F1.useState(0),Q1=s*1e5+Math.floor(D/2),h=k0(U,`/-/${Q}/diff`,Q1),g=k0(U,`/-/${Q}/changesets`,Q1),p=k0(U,`/-/${Q}/rules`,Q1),[c,l]=F1.useState(null),o=(A1)=>(J0)=>{J0?.preventDefault(),S0([...Q.split("/"),"~",...A1])},k=I.state==="ok"?I.data.twins.map((A1)=>A1.twin):[],t=new Map((P.state==="ok"?P.data.twins:[]).flatMap((A1)=>{let J0=$V(Q,A1);return J0?[[A1.twin,J0]]:[]})),_1=[...t.keys()],a=P.state==="ok"?P.data.twins.filter((A1)=>A1.root).map((A1)=>A1.twin):[],H1=(A1)=>P.state==="ok"?(P.data.twins.find((J0)=>J0.twin===A1)?.resources??[]).reduce((J0,D1)=>J0+D1.count,0):0,O1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],B1=F1.useMemo(()=>{if(h.state!=="ok")return[];let A1=new Map;for(let J0 of h.data.changes){let D1=`${J0.twin}:${J0.entry.subject.type}:${J0.entry.subject.id}`,p0=A1.get(D1)??{key:D1,twin:J0.twin,writes:[]};p0.writes.push(J0.entry),A1.set(D1,p0)}return[...A1.values()]},[h]),T1=B1.find((A1)=>A1.key===c)??B1[0],G1=k0(U,Z==="changes"&&T1?`/-/${Q}/log/${T1.twin}`:null,Q1),R1=h.state==="ok"?h.data.changes.length:0,S1=m.waiting.length,W1=m.there,f1=m.origin.state==="ok"?m.origin.data.origin:null,b1=!C?"This session reads the World; it changes nothing":!W1?"No remote: name one in Settings › Remote":null,p1=(A1,J0,D1,p0,Q0,o0)=>F.jsxDEV("a",{href:`${_0}/${Q}/~/${p0}`,className:A1?"on":void 0,"aria-current":A1?"page":void 0,onClick:Q0,children:[J0,F.jsxDEV("span",{children:D1},void 0,!1,void 0,this),o0?F.jsxDEV("span",{className:"count",children:o0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),u1=(A1)=>{A1.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(HJ,{href:`${_0}/${Q}`,onClick:(A1)=>{A1.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(F0,{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(F0,{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),T.map((A1)=>F.jsxDEV("a",{href:`${_0}/${A1}`,className:A1===Q?"on":void 0,onClick:(J0)=>{J0.preventDefault(),u1(J0),S0(A1.split("/"))},children:[A1===Q?F.jsxDEV(F0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(F0,{name:"globe",size:16},void 0,!1,void 0,this),A1]},A1,!0,void 0,this)),F.jsxDEV("a",{href:`${w4()&&w4()!==P0?w4():""}${_0}/`,onClick:(A1)=>{if(w4()&&w4()!==P0)return;A1.preventDefault(),u1(A1),S0([])},children:[F.jsxDEV(F0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",o2()?` on ${new URL(o2()).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),o2()?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:[i3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:XU({platform:o2(),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:[i3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:XU()},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:[i3,"/",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:XU()},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:`${_0}/${Q}/~/settings`,onClick:(A1)=>{u1(A1),o(["settings"])(A1)},children:[F.jsxDEV(F0,{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(UV,{name:Q,token:U,branches:V,opens:j,refused:y,onChanged:u},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:O1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),f1?F.jsxDEV("a",{href:`${_0}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",f1.namespace,S1?F.jsxDEV("b",{children:[" ↑",S1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${_0}/${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:`${_0}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:S.state==="ok"?F.jsxDEV(F.Fragment,{children:[S.data.frozen?"stopped at ":"",F.jsxDEV(y0,{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 ${W1} has and move this branch onto it`,children:[F.jsxDEV(F0,{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||S1===0,title:b1??(S1?`Push ${i0(S1,"changeset")} to ${W1}`:`Every changeset is at ${W1}`),children:[F.jsxDEV(F0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),m.busy==="Push"?"Pushing…":"Push",S1?F.jsxDEV("span",{className:"ws-btn-count",children:S1},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(F0,{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),L?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(F0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:L.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(y0,{iso:L.at},void 0,!1,void 0,this),": a read-only snapshot",L.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(y0,{iso:L.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 M(L),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(s6,{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:[k.length?F.jsxDEV("a",{href:`${_0}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${x8(k.map(t1))}`,children:[F.jsxDEV(F0,{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:[k.slice(0,3).map((A1)=>F.jsxDEV(G2,{vendor:A1},A1,!1,void 0,this)),k.length>3?F.jsxDEV("span",{className:"more",children:["+",k.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),p1(Z==="changes"||Z==="history",F.jsxDEV(F0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),B1.length?String(B1.length):void 0),p1(Z==="events"&&!H||Z==="trace",F.jsxDEV(F0,{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),k.map((A1)=>F.jsxDEV(F1.default.Fragment,{children:p1(Z==="vendor"&&H===A1,F.jsxDEV(G2,{vendor:A1},void 0,!1,void 0,this),t1(A1),`vendors/${A1}`,o(["vendors",A1]),H1(A1)?String(H1(A1)):void 0)},A1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),p1(!1,F.jsxDEV(F0,{name:"cloud",size:16},void 0,!1,void 0,this),W1?"origin":"Name a remote…","remote",o(["remote"]),S1?`↑${S1}`: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(BO,{name:Q,view:"changes",changes:B1.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:h.state==="ok"?`${i0(B1.length,"record")} · ${i0(R1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(a2,{load:h,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(LO,{records:B1,...T1?{selected:T1.key}:{},onPick:l,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[h.state==="ok"&&!T1?F.jsxDEV(X9,{title:"No changes on this branch",action:S1>0&&W1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(b1)||m.busy!==null,onClick:()=>void m.push(),children:["Push ",i0(S1,"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 ",h.data.base.at?F.jsxDEV(y0,{iso:h.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:h.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,T1?F.jsxDEV(WO,{record:T1,history:G1.state==="ok"?G1.data.entries:G1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(uV,{pinned:!0,generated:p.state==="ok"&&p.data.changesets.summary==="generated",author:{face:F.jsxDEV(F0,{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:`${_0}/${Q}/~/settings/account`,branch:O1},name:Q,token:U,changes:R1,canWrite:C,refused:y,onCut:()=>{U1((A1)=>A1+1),l(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(GV,{name:Q,token:U,sets:g,changes:B1.length,withScreens:_1,required:p.state==="ok"?p.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:N,canWrite:C,rooted:a,refused:y,onChanged:()=>U1((A1)=>A1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(ZV,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:D},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(FV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(XV,{name:Q,token:U,vendor:H,withScreens:_1.includes(H),tick:D},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(KV,{name:Q,vendor:H,url:P.state==="ok"?t.get(H)??null:void 0,...P.state==="error"?{mapError:P.error}:{},holding:LV(P.state==="ok"?P.data.twins.find((A1)=>A1.twin===H)?.resources??[]:[]),session:A,retry:R},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(u5,{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:zO.map(([A1,J0,D1])=>F.jsxDEV("a",{href:`${_0}/${Q}/~/settings/${A1}`,className:Y.tab===A1?"on":void 0,"aria-current":Y.tab===A1?"page":void 0,onClick:o(["settings",A1]),children:[F.jsxDEV(F0,{name:D1,size:16},void 0,!1,void 0,this),J0]},A1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[b==="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(YV,{who:W,scope:b,snapshot:L,portal:o2(),onSignOut:O},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(HV,{name:Q,token:U,who:W,scope:b},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(EV,{name:Q,token:U,canWrite:C,tick:D,refused:y},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(xV,{name:Q,token:U,admin:x,canWrite:C,refused:y,onRemoved:E,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(hV,{name:Q,token:U,canWrite:C,refused:y},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(nv,{},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(u5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(MV,{name:Q,token:U,canWrite:C,branches:V,opens:j,...Y.open?{open:Y.open}:{},onChanged:u,refused:y},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(()=>J2("Copied the prompt: paste it into your coding agent"),()=>J2("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var HH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,WV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),LV=(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)=>i0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},AO=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 BV({name:Q,token:U,clock:Z,canWrite:K,onChanged:H,refused:Y,open:W}){let[L,M]=F1.useState(!1),[O,T]=F1.useState(""),[A,R]=F1.useState(""),[I,P]=F1.useState(null),[V,S]=F1.useState(!1),C=Z.state==="ok"?Z.data:null,y=async(x,E,u)=>{S(!0),P(null);try{let b=await I0(U,`/-/${Q}/${E}`,{method:E==="clock"?"PUT":"POST",body:JSON.stringify(u)});if(!b.ok){Y(b),P({ok:!1,text:await T5(b)});return}let m=await b.json();P({ok:!0,text:`${x} — the World is at ${new Date(m.at).toLocaleString()}`}),M(!1),H()}catch(b){P({ok:!1,text:`the World did not answer: ${b instanceof Error?b.message:String(b)}`})}finally{S(!1)}},N=(x)=>{x.preventDefault();let E=new Date(O);if(Number.isNaN(E.getTime())){P({ok:!1,text:"Pick a date and time."});return}if(C&&E.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}y("Clock set","clock",{at:E.toISOString()})},j=(x,E)=>{y(`Advanced ${E}`,"clock/advance",{by:x})},D=[["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(y0,{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(y0,{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),K&&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":L,onClick:()=>{M(!L),T(j9(aR(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),D.map(([x,E])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${E}`,disabled:V||!C.frozen,title:C.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>j(x,E),children:E},x,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(x)=>{if(x.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){P({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}j(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(x)=>R(x.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,L?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:O,min:j9(aR(C.at)),onChange:(x)=>T(x.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:()=>M(!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,I?F.jsxDEV("p",{role:I.ok?"status":"alert",children:I.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function AV({name:Q,token:U,clock:Z,refused:K}){let[H,Y]=F1.useState(!1),[W,L]=F1.useState(""),[M,O]=F1.useState(null),[T,A]=F1.useState(!1),R=Z.state==="ok"?Z.data.at:new Date().toISOString(),I=F1.useRef(null);return F1.useEffect(()=>{if(!H)return;let V=(C)=>{if(C.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),I.current?.querySelector("button")?.focus()},S=(C)=>{if(!I.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:I,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),L(j9(R)),O(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(),O(null);let S=new Date(W);if(Number.isNaN(S.getTime())){O("Pick a date and time.");return}if(S.getTime()>Date.parse(R)){O(`That is after the World's present (${new Date(R).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let C=await I0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!C.ok){K(C),O(await T5(C));return}let y=await C.json();ZH({name:y.name,parent:Q,token:y.token,readToken:y.readToken,at:S.toISOString(),expiresAt:y.expiresAt??null,parentOrigin:P0,made:!0});let N=rJ(y.origin)?.origin;if(N&&N!==P0){KH(N,y.readToken,y.name,`${_0}/${y.name}`);return}S0(y.name.split("/"))}catch(C){O(`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:j9(R),onChange:(V)=>L(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:T,children:T?"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,M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function MO({name:Q,token:U,open:Z,onClose:K,onMade:H,refused:Y}){let W=(E)=>E.split("/").pop()??E,[L,M]=F1.useState(!1),[O,T]=F1.useState(null),[A,R]=F1.useState(""),[I,P]=F1.useState("now"),[V,S]=F1.useState(""),[C,y]=F1.useState("24"),[N,j]=F1.useState(!0);F1.useEffect(()=>{if(Z)T(null),S(j9(new Date().toISOString()))},[Z]);let D=async(E)=>{E.preventDefault(),T(null);let u=I==="at"?new Date(V):null;if(u&&Number.isNaN(u.getTime())){T("Pick a date and time, or make it as of now.");return}if(u&&u.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}M(!0);let b=await I0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(C)*3600),...u?{at:{instant:u.toISOString()}}:N?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(M(!1),!b){T(`${P0} did not answer`);return}if(!b.ok){Y(b),T(await T5(b));return}let m=await b.json();ZH({name:m.name,parent:Q,token:m.token??"",readToken:m.readToken,at:(u??new Date).toISOString(),expiresAt:m.expiresAt??null,parentOrigin:P0,...m.origin?{origin:m.origin}:{}}),K(),R(""),J2(`Made ${W(m.name)}`),H()};return F.jsxDEV(u5,{open:Z,onClose:()=>{if(!L)K()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>K(),disabled:L,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:L,children:L?"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)=>R(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:I==="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),I==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:N,onChange:(E)=>j(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:I==="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),I==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:j9(new Date().toISOString()),onChange:(E)=>S(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:C,onChange:(E)=>y(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),O?F.jsxDEV("p",{role:"alert",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function MV({name:Q,token:U,canWrite:Z,branches:K,opens:H,open:Y,onChanged:W,refused:L,snapshotOf:M}){let O=k0(U,`/-/${Q}/clock`),T=(y)=>y.split("/").pop()??y,[A,R]=F1.useState(!1),I=(y)=>(N)=>{N.preventDefault(),S0([...Q.split("/"),"~","branches",...y?y.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 P=K.state==="ok"?K.data.branches:[],V=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:T(Q),running:!0}],S=K.state==="ok"?K.data.checkedOut??T(Q):T(Q),C=async(y)=>{if(!await J3({title:`Remove the branch ${T(y)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let N=await I0(U,`/-/${Q}/branches/${y}`,{method:"DELETE"}).catch((j)=>j);if(N instanceof Error){J2(`Remove ${T(y)}: the World did not answer (${N.message})`,"error");return}if(!N.ok){L(N),J2(`Remove ${T(y)}: ${await T5(N)}`,"error");return}YU(y),J2(`Removed ${T(y)}`),W(),S0([...Q.split("/"),"~","branches"])};if(Y){let y=Y.includes("/")?P.find((j)=>j.name===Y):void 0,N=Y.includes("/")?void 0:V.find((j)=>j.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${_0}/${Q}/~/branches`,onClick:I(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(a2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"&&!y&&!N?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,y?F.jsxDEV(TV,{name:Q,b:y,canWrite:Z,opens:H(y.name),remove:()=>void C(y.name)},void 0,!1,void 0,this):null,N&&!y?F.jsxDEV(RV,{name:Q,token:U,b:N,served:N.name===S,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: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:[M?null:F.jsxDEV(AV,{name:Q,token:U,clock:O,refused:L},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>R(!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(a2,{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((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${_0}/${Q}/~/branches/${y.name}`,onClick:I(y.name),children:F.jsxDEV("b",{children:y.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),y.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):y.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:${y.name}`,!0,void 0,this)),P.map((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${_0}/${Q}/~/branches/${y.name}`,onClick:I(y.name),children:F.jsxDEV("b",{children:T(y.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:T(y.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.at?.instant?F.jsxDEV(y0,{iso:y.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(y0,{iso:y.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.expiresAt?F.jsxDEV(y0,{iso:y.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},y.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(MO,{name:Q,token:U,open:A,onClose:()=>R(!1),onMade:W,refused:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TV({name:Q,b:U,canWrite:Z,opens:K,remove:H}){let Y=(M)=>M.split("/").pop()??M,W=FH(U.name),L=k0(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:[AO," ",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:()=>YO(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(y0,{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(y0,{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(y0,{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,L.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),L.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(DV,{changes:L.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 RV({name:Q,token:U,b:Z,served:K,canWrite:H,canServe:Y}){let[W,L]=F1.useState(!1),[M,O]=F1.useState(null),T=async()=>{L(!0),O(null);let A=await I0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}L(!1),O(A?await T5(A):`${P0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[AO," ",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 T(),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:`${_0}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),S0([...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),M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var nR=50,S9=(Q)=>`${Q.twin}:${Q.position}`,TO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,zU=(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},dJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${zU(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"},RO=(Q)=>Q.operation??Q.op;function OV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...O)=>O.map((T)=>Z[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=K("prompt_tokens","input_tokens"),W=K("completion_tokens","output_tokens"),L=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(L!==void 0)H.push(["tokens in all",L.toLocaleString()]);let M=K("cost_usd","cost");if(M!==void 0)H.push(["cost",`$${M<0.01?M.toPrecision(2):M.toFixed(2)}`]);return H}function OO({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 a3({v:Q}){if(typeof Q==="string")return F.jsxDEV(OO,{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 IV=(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 wV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(a3,{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(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(a3,{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(OO,{text:IV(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 IO({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(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(a3,{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 PV=(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 NV(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(TO)}var $H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function eR(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 I4=1280,F3=820,KU=160,Q4=72,UH=120,CV=72,Q2=(Q)=>`${Q.vendor}:${Q.id}`,$7=(Q)=>`${Q.vendor}:section:${Q.section.id}`,U7=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),wO=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${i3}/${Q}/${U.vendor}${U.at.screen}`:null,_O=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(Q2(Z))||U7(Z).some((K)=>Q.include.includes(K))):U.filter((Z)=>!(Q.hidden??[]).includes(Q2(Z)));function fV({data:Q}){let{frame:U,url:Z,active:K,picked:H,boards:Y,addTo:W,remove:L,compare:M,grab:O}=Q,T=Q2(U),A=Y.filter((I)=>I.include&&!I.include.includes(T)&&!U7(U).some((P)=>I.include.includes(P))),R=B0((I)=>I.transform[2]*(Q4+UH)>=CV);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(_H,{isVisible:R||H||K,position:h1.Top,align:"start",className:"frame-label",children:[F.jsxDEV("span",{className:"frame-name",onPointerDown:O,children:[F.jsxDEV(G2,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:U.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U.changes?F.jsxDEV("button",{type:"button",className:"frame-changed nodrag",onClick:()=>M(T),title:`${i0(U.changes,"change")} here, not in a changeset: compare before and now`,children:[F.jsxDEV(F0,{name:"square-dot",size:14},void 0,!1,void 0,this),U.changes]},void 0,!0,void 0,this):H?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>M(T),title:"Compare with a branch of this World","aria-label":`Compare ${U.title} with a branch`,children:F.jsxDEV(F0,{name:"file-diff",size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,H&&A.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(I)=>{if(I.target.value)W(I.target.value,T)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),A.map((I)=>F.jsxDEV("option",{value:I.id,children:I.name},I.id,!1,void 0,this))]},void 0,!0,void 0,this):null,H&&L?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>L.act(T),title:L.label,"aria-label":L.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:I4,height:F3},children:[F.jsxDEV("div",{className:"frame-bar",children:[F.jsxDEV(G2,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[t1(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.`:`${t1(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 PO({name:Q,label:U,done:Z}){let K=F1.useRef(!1),H=(Y)=>{if(K.current)return;K.current=!0,Z(Y?.trim()&&Y.trim()!==Q?Y.trim().slice(0,80):null)};return F.jsxDEV("input",{className:"nodrag nopan name-field","aria-label":U,defaultValue:Q,size:Math.max(8,Q.length+2),autoFocus:!0,onFocus:(Y)=>Y.currentTarget.select(),onKeyDown:(Y)=>{if(Y.key==="Enter")H(Y.currentTarget.value);else if(Y.key==="Escape")H(null)},onBlur:(Y)=>H(Y.currentTarget.value)},void 0,!1,void 0,this)}function SV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(dR,{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:h1.Top,align:"start",offset:-30,className:"section-tag",children:[Q.renaming?F.jsxDEV(PO,{name:Q.name,label:"Name this section",done:(U)=>Q.renamed(Q.key,U)},void 0,!1,void 0,this):F.jsxDEV("button",{type:"button",className:Q.picked?"nodrag on":"nodrag",onPointerDown:Q.grab,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(G2,{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&&!Q.renaming?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 JO({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*F3/I4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:I4,height:F3,transform:`scale(${420/I4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function jV({name:Q,token:U,frame:Z,onClose:K,reads:H}){let[Y,W]=F1.useState(Z.since?"before":""),[L,M]=F1.useState({state:"opening"}),[O,T]=F1.useState(null),A=F1.useRef(new Set),R=k0(U,`/-/${Q}/branches`,H),I=R.state==="ok"?R.data.branches.filter((y)=>y.name!==O&&!A.current.has(y.name)):[],P=k0(U,`/-/${Q}/board/changes?frame=${encodeURIComponent(Q2(Z))}`,H),V=async(y,N,j)=>{let D=Z.at;if("site"in D){let u=new URL(Z.url),b=N&&/^https?:\/\/\{host\}\./.test(N)?N.replace("{host}",u.hostname.toLowerCase()):null;return b?{url:`${b}${u.pathname}${u.search}`}:{why:"This World shows its branches' sites only on this machine."}}let x=`${i3}/-/${Q}/branches/${y}/pages?${new URLSearchParams({land:`/${y}/${Z.vendor}${D.screen}`}).toString()}`,E=await fetch(x,{credentials:"same-origin",redirect:"manual"}).catch(()=>null);if(j())return{why:""};return E?.type==="opaqueredirect"?{url:x}:{why:`This World does not show its branches' pages${E?`: ${await T5(E)}`:""}.`}};F1.useEffect(()=>{if(!Z.at){M({state:"none",why:`${t1(Z.vendor)}'s twin draws no page for this ${Z.kind} yet; its changes are listed below.`});return}if(Y===""){M({state:"none",why:"Choose a branch of this World to set beside it."});return}let y=!1;if(Y!=="before"){M({state:"opening"});let u=R.state==="ok"?R.data.branches.find((m)=>m.name===Y):void 0,b=setTimeout(()=>void V(Y,u?.sites??null,()=>y).then((m)=>{if(!y)M("url"in m?{state:"ok",url:m.url}:{state:"none",why:m.why})}),300);return()=>{y=!0,clearTimeout(b)}}if(!Z.since){M({state:"none",why:"Nothing here has changed since the World was last cut."});return}M({state:"opening"});let N=new Date(Date.parse(Z.since)-1).toISOString(),j=null,D=setTimeout(()=>void(async()=>{let u=await I0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:N},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!u?.ok){M({state:"none",why:`The World made no copy of itself as it was then${u?`: ${await T5(u)}`:""}.`});return}let b=await u.json();if(j=b.name,T(b.name),A.current.add(b.name),y){I0(U,`/-/${Q}/branches/${b.name}`,{method:"DELETE"}).catch(()=>null);return}let m=await V(b.name,b.sites??null,()=>y);if(!y)M("url"in m?{state:"ok",url:m.url,at:N}:{state:"none",why:m.why})})(),500),x=()=>{if(j)I0(U,`/-/${Q}/branches/${j}`,{method:"DELETE",keepalive:!0}).catch(()=>null);j=null},E=(u)=>{if(!u.persisted)x()};return window.addEventListener("pagehide",E),()=>{y=!0,clearTimeout(D),window.removeEventListener("pagehide",E),x(),T(null)}},[Q,U,Z.vendor,Z.id,Z.since,Y]);let S=wO(Q,Z),C=!Z.at||Y!==""?null:R.state==="ok"&&I.length===0?"This World has no branches to set beside it: make one under Branches.":R.state==="error"?`The World's branches could not be read: ${R.error}`:null;return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${Z.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(G2,{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:Z.changes?`${i0(Z.changes,"change")} not yet cut${Z.since?`, since ${h8(Z.since)}`:""}`:"No changes here not yet cut"},void 0,!1,void 0,this),Z.at?F.jsxDEV("label",{className:"compare-base",children:["Compare with"," ",F.jsxDEV("select",{value:Y,onChange:(y)=>W(y.target.value),children:[Y===""?F.jsxDEV("option",{value:"",children:"Choose a branch…"},void 0,!1,void 0,this):null,Z.since||Y==="before"?F.jsxDEV("option",{value:"before",children:"Before these changes"},void 0,!1,void 0,this):null,Y&&Y!=="before"&&!I.some((y)=>y.name===Y)?F.jsxDEV("option",{value:Y,children:Y.split("/")[1]},void 0,!1,void 0,this):null,I.map((y)=>F.jsxDEV("option",{value:y.name,children:[y.name.split("/")[1],y.at?.label?` (${y.at.label})`:y.at?.instant?` (as of ${h8(y.at.instant)})`:y.at?.live?" (live)":""]},y.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,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:Y==="before"?`Before${L.state==="ok"&&L.at?` · as of ${h8(L.at)}`:""}`:Y?Y.split("/")[1]:"A branch"},void 0,!1,void 0,this),C?F.jsxDEV("p",{className:"mode compare-note",children:C},void 0,!1,void 0,this):L.state==="ok"?F.jsxDEV(JO,{url:L.url,title:`${Z.title} before`},void 0,!1,void 0,this):L.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:L.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),S?F.jsxDEV(JO,{url:S,title:`${Z.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:[t1(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),P.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",P.error]},void 0,!0,void 0,this):null,Y!=="before"&&Y&&P.state==="ok"&&P.data.acts.length?F.jsxDEV("p",{className:"mode compare-acts-head",children:"This World's own changes here, not yet cut:"},void 0,!1,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(P.state==="ok"?P.data.acts:[]).map((y)=>{let N=y.entries[0],j=q4({...N,service:Z.vendor,id:"",occurredAt:y.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:h8(y.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:j.what},void 0,!1,void 0,this),j.label?` · ${j.label}`:"",y.writes>1?F.jsxDEV("span",{className:"mode",children:[" and ",i0(y.writes-1,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:[y.entries.map((D,x)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:D.operation??D.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[D.subject.type," ",r3(D)]},void 0,!0,void 0,this)]},x,!0,void 0,this)),y.writes>y.entries.length?F.jsxDEV("li",{className:"mode",children:["and ",i0(y.writes-y.entries.length,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${y.at}:${N.subject.type}:${N.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),P.state==="ok"&&P.data.total>P.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",i0(P.data.total-P.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,F.jsxDEV("a",{className:"compare-all",href:`${_0}/${Q}/~/changes`,onClick:(y)=>{y.preventDefault(),S0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var vV={screen:fV,section:SV};function VV(Q){return F.jsxDEV(eK,{children:F.jsxDEV(yV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function yV({name:Q,token:U,session:Z,retry:K,snapshot:H,back:Y,canWrite:W}){let L=F1.useRef(null),M=F1.useRef(0),O=F1.useRef(Promise.resolve()),T=F1.useRef(0),[,A]=F1.useState(0),[R,I]=F1.useState({state:"loading"}),[P,V]=F1.useState(null),[S,C]=F1.useState(0),y=F1.useRef(0),N=F1.useRef(0),j=F1.useCallback(async()=>{let $1=T.current,Y1=++y.current,C1=await I0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),v1=C1?.ok?await C1.json().catch(()=>null):null;if(Y1<N.current)return;if(N.current=Y1,!v1?.frames||!v1.boards||!v1.version){let a1=C1?`the World answered ${C1.status}`:"the World did not answer";I((y1)=>y1.state==="ok"?y1:{state:"error",status:C1?.status??0,error:a1}),V(a1);return}if(V(null),C((a1)=>a1+1),$1===T.current&&M.current===0)L.current={boards:v1.boards,version:v1.version};I({state:"ok",data:v1})},[U,Q]);F1.useEffect(()=>{j();let $1=setInterval(()=>{if(!document.hidden)j()},1e4);return()=>clearInterval($1)},[j]);let D=R.state==="ok"?R.data.frames:[],x=L.current?.boards??[{id:"everything",name:"Everything"}],[E,u]=F1.useState(null),b=D.some(($1)=>$1.changes),m=E??(b?"changes":"everything"),s=(m==="changes"?x[0]:x.find(($1)=>$1.id===m))??x[0],[U1,Q1]=F1.useState(new Set),h=W&&!H,g=F1.useCallback(($1)=>{if(!L.current)return J2("The board is being read again: make that change once it shows","error"),Promise.resolve();L.current={...L.current,boards:$1(L.current.boards)},M.current+=1,T.current+=1,A((C1)=>C1+1);let Y1=O.current.then(async()=>{let C1=L.current;if(!C1)return;try{let v1=await I0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:C1.boards,version:C1.version}),signal:AbortSignal.timeout(15000)}),a1=await v1.json().catch(()=>null);if(v1.ok&&a1?.boards&&a1.version)L.current={boards:M.current>1&&L.current?L.current.boards:a1.boards,version:a1.version};else if(v1.status===409&&a1?.boards&&a1.version)L.current={boards:a1.boards,version:a1.version},J2("Someone else changed the board first: it is shown as they left it","error");else throw Error(a1?.error??`the World answered ${v1.status}`)}catch(v1){J2(`The board was not kept: ${v1 instanceof Error?v1.message:String(v1)}`,"error"),L.current=null;let a1=await I0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),y1=a1?.ok?await a1.json().catch(()=>null):null;if(y1?.boards&&y1.version)L.current={boards:y1.boards,version:y1.version}}}).finally(()=>{if(M.current-=1,T.current+=1,A((C1)=>C1+1),M.current===0&&!L.current)j()});return O.current=Y1,Y1},[U,Q,j]),p=($1,Y1)=>{g((C1)=>C1.map((v1)=>v1.id===$1?Y1(v1):v1))},c=($1)=>$1.parent?`${$1.vendor}:${$1.parent}`:null,l=new Set(D.map(Q2)),o=($1)=>{let Y1=c($1);return!Y1||!l.has(Y1)},k=m==="changes"?D.filter(($1)=>$1.changes):s.include?_O(s,D):_O(s,D).filter(($1)=>o($1)||U1.has(c($1))),t=D.filter(($1)=>$1.changes&&!k.includes($1)).reduce(($1,Y1)=>$1+Y1.changes,0),[_1,a]=F1.useState(null),[H1,O1]=F1.useState(null),[B1,T1]=F1.useState(null),G1=lJ(),R1=x.filter(($1)=>$1.include),S1=($1,Y1)=>p($1,(C1)=>({...C1,include:[...C1.include??[],Y1]})),W1={label:s.include?"Take it off this board":"Hide it",act:($1)=>{O1(null),p(s.id,(Y1)=>Y1.include?{...Y1,include:Y1.include.filter((C1)=>C1!==$1)}:{...Y1,hidden:[...Y1.hidden??[],$1]})}},f1=($1)=>({x:$1.position.x,y:$1.position.y,w:$1.width??$1.measured?.width??I4,h:$1.height??$1.measured?.height??F3}),b1=($1,Y1)=>{let C1=f1($1),v1=C1.x+C1.w/2,a1=C1.y+C1.h/2;return Y1.filter((y1)=>y1.type==="section").map((y1,i1)=>({s:y1,i:i1})).filter(({s:y1})=>{let i1=f1(y1);return v1>=i1.x&&v1<=i1.x+i1.w&&a1>=i1.y&&a1<=i1.y+i1.h}).sort((y1,i1)=>f1(y1.s).w*f1(y1.s).h-f1(i1.s).w*f1(i1.s).h||i1.i-y1.i)[0]?.s},p1=F1.useCallback(()=>{let $1=new Map;for(let o1 of k){let X0=s.placed?.[Q2(o1)];if(X0)$1.set(Q2(o1),X0)}let Y1=Math.max(-KU,...[...$1.values()].map((o1)=>o1.y+F3)),C1=[...new Set(k.map($7))];for(let o1 of C1){let X0=k.filter((N0)=>$7(N0)===o1),n0=X0.filter((N0)=>$1.has(Q2(N0))).map((N0)=>$1.get(Q2(N0))),$0=n0.length?Math.max(...n0.map((N0)=>N0.x))+I4+KU:0,R0=n0.length?Math.min(...n0.map((N0)=>N0.y)):Y1+KU+Q4*2+UH;for(let N0 of X0)if(!$1.has(Q2(N0)))$1.set(Q2(N0),{x:$0,y:R0}),$0+=I4+KU;Y1=Math.max(Y1,R0+F3)}let v1=s.sections??{},a1=(o1,X0,n0,$0,R0)=>({id:`sec:${o1}`,type:"section",position:{x:X0.x,y:X0.y},width:X0.w,height:X0.h,zIndex:0,draggable:h,data:{key:o1,name:n0,vendor:$0,named:R0}}),y1=[];for(let o1 of C1){let X0=k.find((j0)=>$7(j0)===o1),n0=U7(X0).find((j0)=>v1[j0])??o1,$0=v1[n0];if($0?.gone)continue;let R0=k.filter((j0)=>$7(j0)===o1).map((j0)=>$1.get(Q2(j0))),N0={x:Math.min(...R0.map((j0)=>j0.x))-Q4,y:Math.min(...R0.map((j0)=>j0.y))-Q4-UH,w:0,h:0};N0.w=Math.max(...R0.map((j0)=>j0.x))+I4+Q4-N0.x,N0.h=Math.max(...R0.map((j0)=>j0.y))+F3+Q4-N0.y;let N4=k.filter((j0)=>$7(j0)===o1&&!s.placed?.[Q2(j0)]).map((j0)=>$1.get(Q2(j0))),h2=$0?{...$0}:N0;if($0)for(let j0 of N4)h2.w=Math.max(h2.w,j0.x+I4+Q4-h2.x),h2.h=Math.max(h2.h,j0.y+F3+Q4-h2.y);y1.push(a1(n0,h2,$0?.name??`${t1(X0.vendor)} · ${X0.section.title}`,X0.vendor,Boolean($0?.name)))}for(let[o1,X0]of Object.entries(v1))if(o1.startsWith("user:")&&!X0.gone)y1.push(a1(o1,X0,X0.name??"Section",null,!0));let i1=k.map((o1)=>({id:Q2(o1),type:"screen",zIndex:1,width:I4,height:F3,draggable:h,position:$1.get(Q2(o1)),data:{world:Q,frame:o1,url:wO(Q,o1)}}));return[...y1,...i1]},[JSON.stringify(k),JSON.stringify(s),Q,h]),[u1,A1,J0]=xR([]),D1=B0(($1)=>$1.transform[2]),p0=F1.useRef("");F1.useEffect(()=>{let $1=p1();if(A1($1),$1.length&&p0.current!==m)p0.current=m,requestAnimationFrame(()=>{G1.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[p1,A1]);let Q0=($1,Y1=[],C1={})=>{let v1=Object.fromEntries(Y1.map((y1)=>{let i1=G1.getNode(`sec:${y1}`);if(!i1)return[y1,void 0];let o1=f1(i1),X0=i1.data,n0=C1[y1]??(X0.named?X0.name:void 0);return[y1,{x:Math.round(o1.x),y:Math.round(o1.y),w:Math.round(o1.w),h:Math.round(o1.h),...n0?{name:n0.slice(0,80)}:{}}]}).filter(([,y1])=>y1!==void 0)),a1=Object.fromEntries(Object.entries($1).map(([y1,i1])=>[y1,{x:Math.round(i1.x),y:Math.round(i1.y)}]));p(s.id,(y1)=>({...y1,placed:{...y1.placed??{},...a1},sections:{...y1.sections??{},...v1}}))},o0=F1.useRef(null),R2=($1,Y1)=>{if(Y1.type!=="section"){o0.current=null;return}let C1=G1.getNodes(),v1=f1(Y1),a1=(y1)=>{let i1=f1(y1);if(y1.type==="screen"){let o1=i1.x+i1.w/2,X0=i1.y+i1.h/2;return o1>=v1.x&&o1<=v1.x+v1.w&&X0>=v1.y&&X0<=v1.y+v1.h}return y1.id!==Y1.id&&i1.x>=v1.x&&i1.y>=v1.y&&i1.x+i1.w<=v1.x+v1.w&&i1.y+i1.h<=v1.y+v1.h};o0.current={id:Y1.id,from:{...Y1.position},members:C1.filter(a1).map((y1)=>({id:y1.id,x:y1.position.x,y:y1.position.y}))}},S2=($1,Y1)=>{let C1=o0.current;if(!C1||C1.id!==Y1.id)return;let v1=Y1.position.x-C1.from.x,a1=Y1.position.y-C1.from.y,y1=new Map(C1.members.map((i1)=>[i1.id,i1]));A1((i1)=>i1.map((o1)=>{let X0=y1.get(o1.id);return X0?{...o1,position:{x:X0.x+v1,y:X0.y+a1}}:o1}))},j2=($1,Y1)=>{let C1=o0.current;o0.current=null;let v1=Y1.position.x-(C1?.from.x??Y1.position.x),a1=Y1.position.y-(C1?.from.y??Y1.position.y),y1=Y1.type==="screen"?[{id:Y1.id,x:Y1.position.x,y:Y1.position.y}]:(C1?.members??[]).map((i1)=>({...i1,x:i1.x+v1,y:i1.y+a1}));requestAnimationFrame(()=>{let i1=G1.getNodes(),o1=new Map(y1.filter(($0)=>!$0.id.startsWith("sec:")).map(($0)=>[$0.id,{x:$0.x,y:$0.y}])),X0=new Set([...Y1.type==="section"?[Y1.data.key]:[],...y1.filter(($0)=>$0.id.startsWith("sec:")).map(($0)=>$0.id.slice(4))]),n0=new Set(i1.filter(($0)=>o1.has($0.id)).flatMap(($0)=>U7($0.data.frame)));for(let $0 of i1){if($0.type==="screen"&&U7($0.data.frame).some((R0)=>n0.has(R0))&&!o1.has($0.id))o1.set($0.id,{x:$0.position.x,y:$0.position.y});if($0.type==="section"&&n0.has($0.data.key))X0.add($0.data.key)}Q0(Object.fromEntries(o1),[...X0])})},v2=($1)=>Object.fromEntries(G1.getNodes().filter((Y1)=>Y1.type==="screen"&&U7(Y1.data.frame).includes($1)).map((Y1)=>[Y1.id,{x:Y1.position.x,y:Y1.position.y}])),[O2,F2]=F1.useState(null),I2=($1)=>{O1(`sec:${$1}`),F2($1)},P4=($1,Y1)=>{if(F2(null),!Y1)return;A1((C1)=>C1.map((v1)=>v1.id===`sec:${$1}`?{...v1,data:{...v1.data,name:Y1,named:!0}}:v1)),requestAnimationFrame(()=>Q0(v2($1),[$1],{[$1]:Y1}))},K5=($1)=>{O1(null);let Y1=G1.getNode(`sec:${$1}`);p(s.id,(C1)=>{let v1=Object.fromEntries(Object.entries(C1.sections??{}).filter(([a1])=>a1!==$1));return{...C1,sections:$1.startsWith("user:")?v1:{...v1,[$1]:{...Y1?{x:Math.round(Y1.position.x),y:Math.round(Y1.position.y),w:Math.round(f1(Y1).w),h:Math.round(f1(Y1).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},E5=()=>{let $1=H1?G1.getNode(H1):void 0,Y1=G1.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),C1=$1?.type==="screen"?{x:$1.position.x-Q4,y:$1.position.y-Q4,w:I4+Q4*2,h:F3+Q4*2}:{x:Y1.x-900,y:Y1.y-600,w:1800,h:1200},v1=`user:${Date.now().toString(36)}`,a1=Object.keys(s.sections??{}).filter((y1)=>y1.startsWith("user:")).length+1;O1(`sec:${v1}`),p(s.id,(y1)=>({...y1,sections:{...y1.sections??{},[v1]:{x:Math.round(C1.x),y:Math.round(C1.y),w:Math.round(C1.w),h:Math.round(C1.h),name:`Section ${a1}`}}}))},h5=($1)=>(Y1)=>{if(!h||Y1.button!==0)return;let C1=G1.getNode($1);if(!C1)return;let v1=Y1.currentTarget;v1.setPointerCapture(Y1.pointerId);let{clientX:a1,clientY:y1}=Y1,i1={...C1.position},o1=!1,X0=(R0)=>{let N0=G1.getZoom();return{...C1,position:{x:i1.x+(R0.clientX-a1)/N0,y:i1.y+(R0.clientY-y1)/N0}}},n0=(R0)=>{if(!o1&&Math.hypot(R0.clientX-a1,R0.clientY-y1)<4)return;if(!o1)o1=!0,R2(null,C1);let N0=X0(R0);A1((N4)=>N4.map((h2)=>h2.id===$1?{...h2,position:N0.position}:h2)),S2(null,N0)},$0=(R0)=>{if(v1.removeEventListener("pointermove",n0),v1.removeEventListener("pointerup",$0),v1.removeEventListener("pointercancel",$0),o1)j2(null,X0(R0)),v1.addEventListener("click",(N0)=>{N0.stopPropagation(),N0.preventDefault()},{capture:!0,once:!0});else if(C1.type==="screen")O1($1)};v1.addEventListener("pointermove",n0),v1.addEventListener("pointerup",$0),v1.addEventListener("pointercancel",$0)},U4=u1.map(($1)=>$1.type==="section"?{...$1,data:{...$1.data,grab:h5($1.id),picked:H1===$1.id,editable:h,renaming:h&&O2===$1.data.key,pick:(Y1)=>O1(`sec:${Y1}`),rename:I2,renamed:P4,remove:K5,resized:()=>requestAnimationFrame(()=>{let Y1=$1.data.key;Q0(v2(Y1),[Y1])})}}:{...$1,data:{...$1.data,grab:h5($1.id),active:_1===$1.id,picked:H1===$1.id,boards:h?R1:[],addTo:S1,remove:!h||s.include&&!s.include.includes($1.id)?null:W1,compare:(Y1)=>{O1(Y1),T1(Y1)}}});F1.useEffect(()=>{let $1=(Y1)=>{if(Y1.target?.closest("input, textarea, select, [contenteditable]"))return;if(Y1.key==="Escape"){if(_1)a(null);else O1(null);return}if(!h||_1)return;if((Y1.key==="Delete"||Y1.key==="Backspace")&&H1){if(Y1.preventDefault(),H1.startsWith("sec:"))K5(H1.slice(4));else if(!s.include||s.include.includes(H1))W1.act(H1);else J2("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(Y1.key==="S"&&Y1.shiftKey&&!Y1.metaKey&&!Y1.ctrlKey)Y1.preventDefault(),E5()};return document.addEventListener("keydown",$1),()=>document.removeEventListener("keydown",$1)});let G4=($1)=>{O1($1);let Y1=G1.getNode($1);if(!Y1)return;let C1=f1(Y1);G1.fitBounds({x:C1.x,y:C1.y,width:C1.w,height:C1.h},{padding:0.15,duration:400})},x5=()=>{let $1=`board-${Date.now().toString(36)}`;u($1),g((Y1)=>[...Y1,{id:$1,name:`Board ${Y1.length}`,include:[]}])},v=()=>F2(`board:${s.id}`),q1=()=>{let $1=s.id;u(null),g((Y1)=>Y1.filter((C1)=>C1.id!==$1))},w1=[...new Map(D.map(($1)=>[$7($1),$1])).values()],P1=s.include?[...w1.filter(($1)=>!U7($1).some((Y1)=>s.include.includes(Y1))).map(($1)=>({key:$7($1),label:`${t1($1.vendor)} · ${$1.section.title} (all)`})),...D.filter(($1)=>!k.includes($1)).map(($1)=>({key:Q2($1),label:$1.title}))]:[],k1=s.include?[]:D.filter(($1)=>(s.hidden??[]).includes(Q2($1))),r1=u1.filter(($1)=>$1.type==="section"),l1=u1.filter(($1)=>$1.type==="screen"),W0=new Map(l1.map(($1)=>[$1.id,b1($1,u1)?.id??null])),E1=new Map;for(let $1 of D){let Y1=c($1);if(Y1&&l.has(Y1))E1.set(Y1,(E1.get(Y1)??0)+1)}let X2=($1)=>{let Y1=$1.data.frame;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:H1===$1.id?"on":void 0,onClick:()=>G4($1.id),onDoubleClick:()=>a($1.id),children:[F.jsxDEV(G2,{vendor:Y1.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:Y1.title},void 0,!1,void 0,this),Y1.changes?F.jsxDEV("span",{className:"layer-changed",title:`${i0(Y1.changes,"change")}, not in a changeset: its mark on the board compares before and now`,children:[F.jsxDEV(F0,{name:"square-dot",size:14},void 0,!1,void 0,this),Y1.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),E1.get($1.id)&&m!=="changes"&&!s.include?F.jsxDEV("button",{type:"button",className:"ghost layer-open","aria-expanded":U1.has($1.id),onClick:()=>Q1((C1)=>{let v1=new Set(C1);if(v1.has($1.id))v1.delete($1.id);else v1.add($1.id);return v1}),title:U1.has($1.id)?"Close the pages under it":"Open the pages under it",children:[U1.has($1.id)?"−":"+",E1.get($1.id)]},void 0,!0,void 0,this):null]},$1.id,!0,void 0,this)},E2=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,m5=Z.state==="ok"&&R.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",style:{"--zoom":D1},children:F.jsxDEV(hR,{nodes:m5?U4:[],onNodesChange:J0,nodeTypes:vV,onNodeDragStart:R2,onNodeDrag:S2,onNodeDragStop:j2,onNodeClick:($1,Y1)=>{if(Y1.id!==_1)O1(Y1.id)},onNodeDoubleClick:($1,Y1)=>{if(Y1.type==="screen")O1(Y1.id),a(Y1.id)},onPaneClick:()=>{a(null),O1(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:E2?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(gR,{variant:G3.Dots,gap:28*2**Math.max(0,Math.ceil(Math.log2(16/(28*D1)))),size:2/D1},void 0,!1,void 0,this),F.jsxDEV(Z3,{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:[F.jsxDEV("button",{type:"button",role:"tab","aria-selected":m==="changes",className:m==="changes"?"on":void 0,onClick:()=>{O1(null),a(null),u("changes")},title:"The pages whose records changed and are not yet in a changeset",children:["Changes",b?` (${D.filter(($1)=>$1.changes).length})`:""]},void 0,!0,void 0,this),x.map(($1)=>O2===`board:${$1.id}`?F.jsxDEV(PO,{name:$1.name,label:"Name this board",done:(Y1)=>{if(F2(null),Y1)p($1.id,(C1)=>({...C1,name:Y1}))}},$1.id,!1,void 0,this):F.jsxDEV("button",{type:"button",role:"tab","aria-selected":m!=="changes"&&$1.id===s.id,className:m!=="changes"&&$1.id===s.id?"on":void 0,onClick:()=>{O1(null),a(null),u($1.id)},onDoubleClick:h&&$1.id===s.id&&$1.include?v:void 0,children:$1.name},$1.id,!1,void 0,this)),h?F.jsxDEV("button",{type:"button",className:"ghost",onClick:x5,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),s.include&&h?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:v,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:q1,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:[r1.map(($1)=>{let Y1=$1.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:H1===$1.id?"layer-section on":"layer-section",onClick:()=>G4($1.id),onDoubleClick:()=>{if(h)G4($1.id),I2(Y1.key)},children:[Y1.vendor?F.jsxDEV(G2,{vendor:Y1.vendor},void 0,!1,void 0,this):F.jsxDEV(F0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:Y1.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:l1.filter((C1)=>W0.get(C1.id)===$1.id).map(X2)},void 0,!1,void 0,this)]},$1.id,!0,void 0,this)}),l1.filter(($1)=>!W0.get($1.id)).map(X2)]},void 0,!0,void 0,this),s.include&&!k.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,P1.length&&h?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:($1)=>{let Y1=$1.target.value;if(Y1)p(s.id,(C1)=>({...C1,include:[...C1.include??[],Y1]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),P1.map(($1)=>F.jsxDEV("option",{value:$1.key,children:$1.label},$1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,k1.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",k1.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:k1.map(($1)=>F.jsxDEV("li",{children:h?F.jsxDEV("button",{type:"button",onClick:()=>p(s.id,(Y1)=>({...Y1,hidden:(Y1.hidden??[]).filter((C1)=>C1!==Q2($1))})),children:[F.jsxDEV("span",{children:$1.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:$1.title},void 0,!1,void 0,this)},Q2($1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>u("changes"),children:[F.jsxDEV(F0,{name:"square-dot",size:14},void 0,!1,void 0,this),i0(t,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(a2,{load:R,what:"the board"},void 0,!1,void 0,this),P&&R.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:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),_1?F.jsxDEV(Z3,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",k.find(($1)=>Q2($1)===_1)?.title??_1]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>a(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(Z3,{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),h?F.jsxDEV(Z3,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:E5,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(F0,{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,B1&&k.some(($1)=>Q2($1)===B1)?F.jsxDEV(Z3,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(jV,{name:Q,token:U,frame:k.find(($1)=>Q2($1)===B1),onClose:()=>T1(null),reads:S},B1,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(cR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(iR,{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 NO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),kV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function LU(Q){let U=Q.actions.filter(kV).length,Z=Q.actions.length-U,K=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((M)=>M.status==="deployed"),...K.filter((M)=>M.status==="confirmed")].map((M)=>M.actionId)).size,W=new Set([...H.filter((M)=>M.status==="refused"||M.status==="failed"),...K.filter((M)=>M.status==="failed")].map((M)=>M.actionId)).size,L={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...L};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...L};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...L};if(K.some((M)=>M.status==="replayed")&&K.every((M)=>M.status==="replayed"||M.status==="skipped"))return{label:"Pushed",tone:"good",...L};return{label:"Not sent",tone:"plain",...L}}var QH=(Q)=>Q.message??Q.narration?.split(`
250
+ `)[0]?.replace(/ setting .*$/,"")??Q.name;function CO(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:L,part:M,required:O}){let T=M==="head",A=M==="review",[R,I]=F1.useState(null),[P,V]=F1.useState(!1),[S,C]=F1.useState(""),[y,N]=F1.useState(""),[j,D]=F1.useState(null),x=k0(U,`/-/${Q}/origin`),E=LU(K),u=CO(K,O),b=NO(K),m=[...new Set(b.map((a)=>a.twin))],s=m.some((a)=>Y.includes(a)),U1=(a)=>a===(K.currentHash??K.contentHash),Q1=K.applied?.receipts??[],h=(K.deployed??[]).filter((a)=>a.status!=="landed"),g=Q1.filter((a)=>a.status==="confirmed").length,p=h.filter((a)=>a.status==="deployed"),c=async(a,H1,O1,B1)=>{I(a),D(null);try{let T1=await I0(U,H1,{method:"POST",...O1===void 0?{}:{body:JSON.stringify(O1)}});if(!T1.ok)return W(T1),D({what:a,...T2(await u3(T1))}),!1;if(B1)J2(B1);return L(),!0}catch(T1){return D({what:a,text:`the World did not answer (${T1 instanceof Error?T1.message:String(T1)})`,acts:[]}),!1}finally{I(null)}},l=()=>{c("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(a)=>{if(a.preventDefault(),await c("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...S.trim()?{note:S.trim()}:{},...Z===null&&y.trim()?{as:y.trim()}:{}},"Approved"))V(!1),C("")},k=async()=>{let a=m.filter((H1)=>Y.includes(H1));if(!await J3({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",a.length===1?"":"s"," behind ",x8(a.map(t1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;I("Deploy"),D(null);try{let H1=await I0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!H1.ok){W(H1),D({what:"Deploy",...T2(await u3(H1))});return}let O1=await I0(U,`/-/${Q}/changesets/${K.name}`),B1=O1.ok?await O1.json():null;if(!B1){J2("Deploy: sent; reading its receipts failed","info"),L();return}let T1=LU(B1);J2(`Deploy: ${T1.performed} of ${T1.total} change${T1.total===1?"":"s"} performed at the vendor${T1.failed?`; ${T1.failed} refused or failed`:""}`,T1.failed?"error":T1.performed?"ok":"info"),L()}catch(H1){D({what:"Deploy",text:`the World did not answer (${H1 instanceof Error?H1.message:String(H1)})`,acts:[]})}finally{I(null)}},t=!H?"This session reads the World; it changes nothing":E.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,_1=x.state==="ok"&&x.data.origin?HH(x.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[T?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-${u.tone}`,children:u.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(y0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",x8(m.map(t1))||"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:l,disabled:Boolean(t)||R!==null,title:t??"Replay it in a throwaway World and run the World's checks",children:R==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(t)||R!==null,title:t??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),s?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(t)||R!==null,title:t??"Perform it against the real accounts behind this World",children:R==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),t&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[t,"."]},void 0,!0,void 0,this):null,j?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:j.what},void 0,!1,void 0,this),": ",j.text]},void 0,!0,void 0,this),j.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:l,disabled:R!==null,children:"Verify"},void 0,!1,void 0,this):null,j.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:R!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(ZO,{name:Q,acts:j.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 ",x8([...new Set([...p.map((a)=>a.service),...Q1.filter((a)=>a.status==="confirmed").map((a)=>a.service)].map(t1))]),p.length?` (${p.length} from here`:" (",p.length&&g?", ":"",g?`${g} by the remote`:"",")."]},void 0,!0,void 0,this):E.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",_1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:_1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(y0,{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",s?"; 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",[...h.filter((a)=>a.reason&&(a.status==="refused"||a.status==="failed")).map((a)=>a.reason),...Q1.filter((a)=>a.status==="failed"&&a.error).map((a)=>a.error)].slice(0,3).map((a)=>`: ${T2(a).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((a,H1)=>F.jsxDEV("li",{className:"mode",children:T2(a).text},H1,!1,void 0,this))},void 0,!1,void 0,this):null,h.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:h.map((a)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:a.status==="refused"||a.status==="failed"?"badge cs-bad":a.status==="deployed"?"badge cs-done":"badge",children:a.status},void 0,!1,void 0,this)," ",t1(a.service)," ",a.status==="deployed"?a.url?F.jsxDEV("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:a.externalId??a.url},void 0,!1,void 0,this):a.externalId?F.jsxDEV("code",{children:a.externalId},void 0,!1,void 0,this):null:null,a.reason?F.jsxDEV("span",{className:"mode",children:[" · ",T2(a.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(y0,{iso:a.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${a.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Q1.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:Q1.map((a)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:a.status==="failed"?"badge cs-bad":a.status==="confirmed"?"badge cs-done":"badge",children:a.status},void 0,!1,void 0,this)," ",t1(a.service)," ",F.jsxDEV("span",{className:"mode",children:a.status==="replayed"?"replayed at the remote World":a.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),a.status==="confirmed"&&a.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:a.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,a.error?F.jsxDEV("span",{className:"mode",children:[" · ",T2(a.error).text]},void 0,!0,void 0,this):null]},`r:${a.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!s&&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:`${_0}/${Q}/~/settings/services`,onClick:(a)=>{a.preventDefault(),S0([...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:U1(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(y0,{iso:K.verification.at},void 0,!1,void 0,this),U1(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((a)=>F.jsxDEV("li",{children:[a.passed?"✓":"✗"," ",F.jsxDEV("code",{children:a.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:t1(a.service)},void 0,!1,void 0,this)]},a.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((a,H1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:a.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[t1(a.service),": ",a.reason]},void 0,!0,void 0,this)]},H1,!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((a,H1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:a.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(y0,{iso:a.at},void 0,!1,void 0,this),U1(a.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),a.note?F.jsxDEV("div",{className:"mode",children:["“",a.note,"”"]},void 0,!0,void 0,this):null]},H1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(u5,{open:P,onClose:()=>{if(!R)V(!1)},title:`Approve ${K.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:R!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:R!==null,children:R==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(a)=>void o(a),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:y,onChange:(a)=>N(a.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:(a)=>C(a.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 fO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function DV({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(G2,{vendor:K},void 0,!1,void 0,this),t1(K)," ",F.jsxDEV("span",{className:"mode",children:["· ",i0(Y.length,"record"),", ",i0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let L=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),M=L[L.length-1],O=q4(M),T={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:M.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",O.label?F.jsxDEV("span",{className:"label",children:["“",O.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:r3(M)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L.map((A)=>{let R=A.fields??{},I=Object.entries(R).filter(([V,S])=>!(V in T)||!fO(T[V],S)),P=T;return T={...T,...R},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(y0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",dJ(A)]},void 0,!0,void 0,this),I.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:I.map(([V,S])=>F.jsxDEV(F1.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(a3,{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(a3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(a3,{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)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function uV({name:Q,token:U,changes:Z,canWrite:K,refused:H,onCut:Y,pinned:W,generated:L,inputRef:M,author:O}){let[T,A]=F1.useState(""),[R,I]=F1.useState(!1),[P,V]=F1.useState([]),S=(y,N,j)=>{V((D)=>[{ok:y,text:N,at:new Date().toISOString(),n:++aJ,...j?.length?{acts:j}:{}},...D].slice(0,4))},C=async(y)=>{y.preventDefault(),I(!0);try{let N=await I0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!N.ok){H(N);let D=T2(await u3(N));S(!1,`Cut a changeset: ${D.text}`,D.acts);return}let j=await N.json();S(!0,`Cut ${j.name??"a changeset"}: ${i0(j.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{I(!1)}};if(W){let y=!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(s6,{log:P,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(N)=>void C(N),"aria-label":"Cut a changeset",children:[O?F.jsxDEV("a",{className:"ws-author",href:O.account,title:`${O.who}: your account`,onClick:(N)=>{N.preventDefault(),S0(O.account.slice(_0.length+1).split("/"))},children:O.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:M,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(N)=>A(N.target.value),placeholder:Z===0?"Nothing to cut":L?"Summary (optional)":"Summary (required)",required:!L,maxLength:200,disabled:Boolean(y),title:y??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(y)||R,title:y??void 0,children:R?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",i0(Z,"change"),O?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:O.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(s6,{log:P,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(y)=>void C(y),"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:T,onChange:(y)=>A(y.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:R||Z===0,children:R?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(s6,{log:P,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bV({name:Q,token:U}){let[Z,K]=F1.useState(0),H=k0(U,`/-/${Q}/keys`,Z),[Y,W]=F1.useState(!1),[L,M]=F1.useState(""),[O,T]=F1.useState("write"),[A,R]=F1.useState(!1),[I,P]=F1.useState(null),[V,S]=F1.useState(null),[C,y]=F1.useState(null),N=async()=>{let x=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await I0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:x,scope:"read"})}).catch(()=>null),u=E?await E.json().catch(()=>({})):{error:`${P0} did not answer`};if(!E?.ok||!u.key){J2(u.error?T2(u.error).text:"refused","error");return}y(`${window.location.origin}${_0}/${Q}#${new URLSearchParams({token:u.key}).toString()}`),K((b)=>b+1)},j=async(x)=>{x.preventDefault(),R(!0),P(null);let E=await I0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:L.trim(),scope:O})}).catch(()=>null);R(!1);let u=E?await E.json().catch(()=>({})):{error:`${P0} did not answer`};if(!E?.ok||!u.key){P(u.error?T2(u.error).text:"refused");return}W(!1),S({key:u.key,name:L.trim()}),M(""),K((b)=>b+1)},D=async(x)=>{if(!await J3({title:`Revoke ${x.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await I0(U,`/-/${Q}/keys/${x.id}`,{method:"DELETE"});if(E.ok)J2(`Revoked ${x.name}`);else J2(await T5(E),"error");K((u)=>u+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),o2()?F.jsxDEV("a",{className:"button primary",href:`${o2()}/${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(a2,{load:H,what:"the keys",retry:()=>K((x)=>x+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((x)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:x.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:x.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:x.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:h8(x.createdAt),children:sF(x.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:x.lastUsedAt?sF(x.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(lA,{label:`More for ${x.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void D(x)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},x.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(u5,{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||!L.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:j,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:L,onChange:(x)=>M(x.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:O,onChange:(x)=>T(x.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),I?F.jsxDEV("p",{role:"alert",children:I},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(u5,{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(oF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(u5,{open:Boolean(C),onClose:()=>y(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>y(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(oF,{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 aJ=0;function s6({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(y0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(ZO,{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 SO(Q,U,Z,K){let[H,Y]=F1.useState(0),W=H*1e5+Math.floor(Z/2),L=k0(U,`/-/${Q}/origin`,W),M=k0(U,`/-/${Q}/diff`,W),O=k0(U,`/-/${Q}/changesets`,W),[T,A]=F1.useState([]),[R,I]=F1.useState(null),P=(D,x,E)=>{if(A((u)=>[{ok:D,text:x,at:new Date().toISOString(),n:++aJ,...E?.length?{acts:E}:{}},...u].slice(0,8)),!D)J2(x,"error")},V=async(D,x,E)=>{I(D);try{let u=await I0(U,`/-/${Q}/${x}`,E);if(!u.ok){K(u);let b=T2(await u3(u));return P(!1,`${D}: ${b.text}`,b.acts),null}return await u.json()}catch(u){return P(!1,`${D}: the World did not answer (${u instanceof Error?u.message:String(u)})`),null}finally{I(null),Y((u)=>u+1)}},S=L.state==="ok"&&L.data.origin?HH(L.data.origin):null,C=M.state==="ok"?M.data.changes.length:null,y=O.state==="ok"&&S?WV(O.data.changesets.filter((D)=>!D.pushedBy)).sort((D,x)=>D.createdAt.localeCompare(x.createdAt)):[];return{origin:L,diff:M,sets:O,there:S,changes:C,waiting:y,log:T,busy:R,say:P,send:V,push:async()=>{let D=await V("Push","origin/push",{method:"POST"});if(!D)return;if(D.pushed.length===0){P(!0,"Nothing to push: every changeset is already at the remote.");return}for(let x of D.pushed){let E=x.receipts??[],u=E.filter((Q1)=>Q1.status==="replayed").length,b=E.filter((Q1)=>Q1.status==="confirmed").length,m=E.filter((Q1)=>Q1.status==="failed").length,s=x.outcome==="applied"&&m===0;if(x.outcome==="refused"){P(!1,`Push of ${x.changeset} was refused${x.refusal?.length?`: ${x.refusal.map((Q1)=>T2(Q1).text).join("; ")}`:""}.`);continue}let U1=[`${u} of ${i0(E.length,"change")} replayed there`,...b?[`${b} performed at the vendor by the remote`]:[],...m?[`${m} failed`]:[]];P(s,`${x.outcome==="partial"?"Partly pushed":"Pushed"} ${x.changeset} to ${S??"the remote"}: ${U1.join("; ")}${x.refusal?.length?` (${x.refusal.map((Q1)=>T2(Q1).text).join("; ")})`:""}.`)}},pull:async()=>{let D=await V("Pull","origin/pull",{method:"POST"});if(!D)return;let x=Object.entries(D.appended).filter(([,u])=>u>0),E=D.rebased.flatMap((u)=>u.conflicts.map((b)=>`${t1(u.twin)} ${b.subject.type}:${b.subject.id} ${b.field}`));P(E.length===0,`Pulled from ${S??"the remote"}: ${x.length?x.map(([u,b])=>`${i0(b,"entry")} at ${t1(u)}`).join(", "):"nothing new"}${E.length?`; conflicts at ${E.join(", ")}`:""}.`)}}}function EV({name:Q,token:U,canWrite:Z,tick:K,refused:H}){let{origin:Y,there:W,changes:L,log:M,busy:O,say:T,send:A,push:R,pull:I}=SO(Q,U,K,H),[P,V]=F1.useState(""),[S,C]=F1.useState(""),[y,N]=F1.useState(!1),j=async(x)=>{x.preventDefault();let E=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:P.trim(),token:S.trim()})});if(E){let u=Object.values(E.appended??{}).reduce((b,m)=>b+m,0);T(!0,`The remote is ${HH(E.origin)}: its history came in (${i0(u,"entry")}).`),C(""),N(!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??""),N(!y)},"aria-expanded":y,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(y0,{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(a2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),y?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(x)=>void j(x),"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:(x)=>V(x.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:(x)=>C(x.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:O!==null,children:O==="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(s6,{log:M,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hV({name:Q,token:U,canWrite:Z,refused:K}){let[H,Y]=F1.useState(0),W=k0(U,`/-/${Q}/twins`,H),L=k0(U,`/-/${Q}/links`,H),M=k0(U,`/-/${Q}/requests?hours=24`,H),[O,T]=F1.useState({}),[A,R]=F1.useState(null),[I,P]=F1.useState(""),[V,S]=F1.useState(!1),[C,y]=F1.useState([]),N=(b,m,s)=>{if(y((U1)=>[{ok:b,text:m,at:new Date().toISOString(),n:++aJ,...s?.length?{acts:s}:{}},...U1].slice(0,6)),!b)J2(m,"error")},j=L.state==="ok"?Object.keys(L.data.links).sort():[];F1.useEffect(()=>{let b=!0;return Promise.all(j.map(async(m)=>{let s=await I0(U,`/-/${Q}/twins/${m}/credential`).catch(()=>null),U1=s?.ok?await s.json():null;return[m,U1?.credential??null]})).then((m)=>{if(b)T(Object.fromEntries(m))}),()=>{b=!1}},[Q,U,j.join(","),H]);let D=async(b)=>{if(b.preventDefault(),!A||!I)return;S(!0);let m=await I0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:I,headers:{"content-type":"text/plain"}}).catch(()=>null);if(S(!1),!m){N(!1,`Seal ${A.vendor}: ${P0} did not answer`);return}if(!m.ok){K(m);let U1=T2(await u3(m));N(!1,`Seal ${t1(A.vendor)}: ${U1.text}`,U1.acts);return}let s=await m.json().catch(()=>({}));N(!0,`Sealed a credential for ${t1(A.vendor)}${s.fingerprint?` (${s.fingerprint})`:""}: it opens for ${s.boundTo??A.to} only, and is never shown again.`),P(""),R(null),Y((U1)=>U1+1)},x=async(b)=>{if(!await J3({title:`Remove the link ${b}?`,body:`Requests to ${i3}/${Q}/${b}/… stop being forwarded to ${L.state==="ok"?L.data.links[b]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let m=await I0(U,`/-/${Q}/links/${b}`,{method:"DELETE"}).catch(()=>null);if(!m?.ok){if(m)K(m);N(!1,`Remove ${b}: ${m?await T5(m):"the World did not answer"}`);return}N(!0,`Removed the link ${b}.`),Y((s)=>s+1)},E=(b)=>b?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:[b.fingerprint?F.jsxDEV("code",{children:b.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(y0,{iso:b.placedAt},void 0,!1,void 0,this),b.sealedBy?` · by ${b.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),u=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(s6,{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(a2,{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:u.map((b)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(G2,{vendor:b.twin},void 0,!1,void 0,this),t1(b.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E(b.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:b.credential?.boundTo?F.jsxDEV("code",{children:b.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:b.root?.url?F.jsxDEV("code",{children:b.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:!b.root?.url,title:b.root?.url?`Seal ${t1(b.twin)}'s real credential for ${b.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{P(""),R({vendor:b.twin,to:b.root.url})},children:b.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},b.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&u.every((b)=>!b.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(a2,{load:L,what:"the links"},void 0,!1,void 0,this),M.state==="ok"&&(M.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[M.data.journalFailures," request ",M.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,L.state==="ok"&&j.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:[i3,"/",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,j.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:j.map((b)=>{let m=L.state==="ok"?L.data.links[b].origin:"",s=M.state==="ok"?M.data.twins.find((U1)=>U1.twin===b):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:b},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:s?F.jsxDEV("span",{title:Object.entries(s.byStatus).map(([U1,Q1])=>`${U1}: ${Q1}`).join(" · "),children:s.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(O[b]??null),O[b]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:O[b].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(""),R({vendor:b,to:m})},children:O[b]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void x(b),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},b,!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(u5,{open:Boolean(A),onClose:()=>{if(!V)R(null)},title:`Seal ${A?t1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>R(null),disabled:V,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:V||!I,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:(b)=>void D(b),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:I,onChange:(b)=>P(b.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 xV({name:Q,token:U,admin:Z,canWrite:K,refused:H,onRemoved:Y,only:W}){let L=(l)=>!W||W===l,[M,O]=F1.useState(0),T=k0(U,`/-/${Q}/twins`,M),A=k0(U,`/-/${Q}/checks`,M),[R,I]=F1.useState(0),P=k0(U,`/-/${Q}/clock`,R),[V,S]=F1.useState([]),[C,y]=F1.useState(null),[N,j]=F1.useState(null),[D,x]=F1.useState(""),[E,u]=F1.useState("gated"),[b,m]=F1.useState(!1),s=(l,o,k)=>{if(S((t)=>[{ok:l,text:o,at:new Date().toISOString(),n:++aJ,...k?.length?{acts:k}:{}},...t].slice(0,6)),!l)J2(o,"error")},U1=async(l,o,k)=>{let t=await I0(U,o,k).catch(()=>null);if(!t)return s(!1,`${l}: the World did not answer`),!1;if(!t.ok){H(t);let _1=T2(await u3(t));return s(!1,`${l}: ${_1.text}`,_1.acts),!1}return s(!0,`${l}: done.`),O((_1)=>_1+1),!0},Q1=async(l)=>{if(l.preventDefault(),!N)return;m(!0);let o=N.root??{},k=await U1(D.trim()?`Connect ${t1(N.twin)} to ${D.trim()}`:`Disconnect ${t1(N.twin)}`,`/-/${Q}/twins/${N.twin}/root`,{method:"PUT",body:JSON.stringify(D.trim()?{...o,url:D.trim(),deploy:E}:null)});if(m(!1),k)j(null)},h=async()=>{if(!await J3({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 l=await I0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(l.ok)y(await l.json()),s(!0,"Rotated: the new tokens are shown once, below.");else s(!1,`Rotate: ${await T5(l)}`)},g=async()=>{if(!await J3({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 l=await I0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(l instanceof Error){s(!1,`Remove: the host did not answer (${l.message})`);return}if(l.ok)Y();else s(!1,`Remove: ${await T5(l)}`)},p=T.state==="ok"?T.data.twins:[],c={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(s6,{log:V,name:Q},void 0,!1,void 0,this),L("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),K?F.jsxDEV(bV,{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,L("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:[p.some((l)=>l.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(a2,{load:T,what:"the vendors"},void 0,!1,void 0,this),T.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:p.map((l)=>{let o=l.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(G2,{vendor:l.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${_0}/${Q}/${l.twin}`,title:`Its log and stored state · ${l.position??0} entries`,onClick:(k)=>{k.preventDefault(),S0([...Q.split("/"),l.twin])},children:t1(l.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?c[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:l.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",l.refresh.failed.count??1,": ",l.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?h8(l.refresh?.observedAt??l.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:()=>{x(o?.url??""),u(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),j(l)},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 J3({title:`Read ${t1(l.twin)} now?`,body:`The real ${t1(l.twin)}'s current state is read into this World. Nothing is written to ${t1(l.twin)}.`,action:"Read from it"}).then((k)=>{if(k)U1(`Read from ${t1(l.twin)}`,`/-/${Q}/twins/${l.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},l.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,L("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(BV,{name:Q,token:U,clock:P,canWrite:K,onChanged:()=>I((l)=>l+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L("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(a2,{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((l)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},l,!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 h(),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(u5,{open:Boolean(N),onClose:()=>{if(!b)j(null)},title:`Connect ${N?t1(N.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>j(null),disabled:b,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:b,children:b?"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:(l)=>void Q1(l),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:(l)=>x(l.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:(l)=>u(l.target.value==="auto"?"auto":l.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((l)=>F.jsxDEV("option",{value:l,children:c[l]},l,!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 jO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(ev,{},void 0,!1,void 0,this),F.jsxDEV(cA,{},void 0,!1,void 0,this),F.jsxDEV(pA,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var VO=t0(E8(),1);Aq();vO.createRoot(Z7).render(VO.jsxDEV(jO,{},void 0,!1,void 0,this));