@volter/world-console 3.0.22 → 3.0.23

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 Xw=Object.create;var{getPrototypeOf:Kw,defineProperty:kA,getOwnPropertyNames:Hw}=Object;var Yw=Object.prototype.hasOwnProperty;function zw(Q){return this[Q]}var Ww,Lw,n0=(Q,U,G)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?Ww??=new WeakMap:Lw??=new WeakMap,Y=H.get(Q);if(Y)return Y}G=Q!=null?Xw(Kw(Q)):{};let z=U||!Q||!Q.__esModule?kA(G,"default",{value:Q,enumerable:!0}):G;for(let L of Hw(Q))if(!Yw.call(z,L))kA(z,L,{get:zw.bind(Q,L),enumerable:!0});if(K)H.set(Q,z);return z};var _3=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var DA=_3((Bw)=>{(function(){function Q(){if(j=!1,E){var m=Bw.unstable_now();e=m;var c=!0;try{_:{u=!1,C&&(C=!1,h(D),D=-1),w=!0;var l=f;try{J:{Y(m);for(v=G(O);v!==null&&!(v.expirationTime>m&&L());){var p=v.callback;if(typeof p==="function"){v.callback=null,f=v.priorityLevel;var o=p(v.expirationTime<=m);if(m=Bw.unstable_now(),typeof o==="function"){v.callback=o,Y(m),c=!0;break J}v===G(O)&&K(O),Y(m)}else K(O);v=G(O)}if(v!==null)c=!0;else{var k=G(P);k!==null&&M(z,k.startTime-m),c=!1}}break _}finally{v=null,f=l,w=!1}c=void 0}}finally{c?q1():E=!1}}}function U(m,c){var l=m.length;m.push(c);_:for(;0<l;){var p=l-1>>>1,o=m[p];if(0<H(o,c))m[p]=c,m[l]=o,l=p;else break _}}function G(m){return m.length===0?null:m[0]}function K(m){if(m.length===0)return null;var c=m[0],l=m.pop();if(l!==c){m[0]=l;_:for(var p=0,o=m.length,k=o>>>1;p<k;){var s=2*(p+1)-1,$1=m[s],a=s+1,H1=m[a];if(0>H($1,l))a<o&&0>H(H1,$1)?(m[p]=H1,m[a]=l,p=a):(m[p]=$1,m[s]=l,p=s);else if(a<o&&0>H(H1,l))m[p]=H1,m[a]=l,p=a;else break _}}return c}function H(m,c){var l=m.sortIndex-c.sortIndex;return l!==0?l:m.id-c.id}function Y(m){for(var c=G(P);c!==null;){if(c.callback===null)K(P);else if(c.startTime<=m)K(P),c.sortIndex=c.expirationTime,U(O,c);else break;c=G(P)}}function z(m){if(C=!1,Y(m),!u)if(G(O)!==null)u=!0,E||(E=!0,q1());else{var c=G(P);c!==null&&M(z,c.startTime-m)}}function L(){return j?!0:Bw.unstable_now()-e<g?!1:!0}function M(m,c){D=y(function(){m(Bw.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Bw.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;Bw.unstable_now=function(){return R.now()}}else{var T=Date,A=T.now();Bw.unstable_now=function(){return T.now()-A}}var O=[],P=[],N=1,v=null,f=3,w=!1,u=!1,C=!1,j=!1,y=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null,E=!1,D=-1,g=5,e=-1;if(typeof b==="function")var q1=function(){b(Q)};else if(typeof MessageChannel<"u"){var Q1=new MessageChannel,x=Q1.port2;Q1.port1.onmessage=Q,q1=function(){x.postMessage(null)}}else q1=function(){y(Q,0)};Bw.unstable_IdlePriority=5,Bw.unstable_ImmediatePriority=1,Bw.unstable_LowPriority=4,Bw.unstable_NormalPriority=3,Bw.unstable_Profiling=null,Bw.unstable_UserBlockingPriority=2,Bw.unstable_cancelCallback=function(m){m.callback=null},Bw.unstable_forceFrameRate=function(m){0>m||125<m?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<m?Math.floor(1000/m):5},Bw.unstable_getCurrentPriorityLevel=function(){return f},Bw.unstable_next=function(m){switch(f){case 1:case 2:case 3:var c=3;break;default:c=f}var l=f;f=c;try{return m()}finally{f=l}},Bw.unstable_requestPaint=function(){j=!0},Bw.unstable_runWithPriority=function(m,c){switch(m){case 1:case 2:case 3:case 4:case 5:break;default:m=3}var l=f;f=m;try{return c()}finally{f=l}},Bw.unstable_scheduleCallback=function(m,c,l){var p=Bw.unstable_now();switch(typeof l==="object"&&l!==null?(l=l.delay,l=typeof l==="number"&&0<l?p+l:p):l=p,m){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=l+o,m={id:N++,callback:c,priorityLevel:m,startTime:l,expirationTime:o,sortIndex:-1},l>p?(m.sortIndex=l,U(P,m),G(O)===null&&m===G(P)&&(C?(h(D),D=-1):C=!0,M(z,l-p))):(m.sortIndex=o,U(O,m),u||w||(u=!0,E||(E=!0,q1()))),m},Bw.unstable_shouldYield=L,Bw.unstable_wrapCallback=function(m){var c=f;return function(){var l=f;f=c;try{return m.apply(this,arguments)}finally{f=l}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T4=_3((Aw,Bq)=>{(function(){function Q(V,U1){Object.defineProperty(K.prototype,V,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U1[0],U1[1])}})}function U(V){if(V===null||typeof V!=="object")return null;return V=C1&&V[C1]||V["@@iterator"],typeof V==="function"?V:null}function G(V,U1){V=(V=V.constructor)&&(V.displayName||V.name)||"ReactClass";var O1=V+"."+U1;L1[O1]||(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.",U1,V),L1[O1]=!0)}function K(V,U1,O1){this.props=V,this.context=U1,this.refs=l1,this.updater=O1||S1}function H(){}function Y(V,U1,O1){this.props=V,this.context=U1,this.refs=l1,this.updater=O1||S1}function z(){}function L(V){return""+V}function M(V){try{L(V);var U1=!1}catch(y1){U1=!0}if(U1){U1=console;var O1=U1.error,w1=typeof Symbol==="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return O1.call(U1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w1),L(V)}}function R(V){if(V==null)return null;if(typeof V==="function")return V.$$typeof===_0?null:V.displayName||V.name||null;if(typeof V==="string")return V;switch(V){case o:return"Fragment";case s:return"Profiler";case k:return"StrictMode";case P1:return"Suspense";case z1: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 p:return"Portal";case a:return V.displayName||"Context";case $1:return(V._context.displayName||"Context")+".Consumer";case H1:var U1=V.render;return V=V.displayName,V||(V=U1.displayName||U1.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case T1:return U1=V.displayName||null,U1!==null?U1:R(V.type)||"Memo";case G1:U1=V._payload,V=V._init;try{return R(V(U1))}catch(O1){}}return null}function T(V){if(V===o)return"<>";if(typeof V==="object"&&V!==null&&V.$$typeof===G1)return"<...>";try{var U1=R(V);return U1?"<"+U1+">":"<...>"}catch(O1){return"<...>"}}function A(){var V=u1.A;return V===null?null:V.getOwner()}function O(){return Error("react-stack-top-frame")}function P(V){if(E0.call(V,"key")){var U1=Object.getOwnPropertyDescriptor(V,"key").get;if(U1&&U1.isReactWarning)return!1}return V.key!==void 0}function N(V,U1){function O1(){O2||(O2=!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)",U1))}O1.isReactWarning=!0,Object.defineProperty(V,"key",{get:O1,configurable:!0})}function v(){var V=R(this.type);return y2[V]||(y2[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 f(V,U1,O1,w1,y1,r1){var a1=O1.ref;return V={$$typeof:l,type:V,key:U1,props:O1,_owner:w1},(a1!==void 0?a1: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:y1}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r1}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function w(V,U1){return U1=f(V.type,U1,V.props,V._owner,V._debugStack,V._debugTask),V._store&&(U1._store.validated=V._store.validated),U1}function u(V){C(V)?V._store&&(V._store.validated=1):typeof V==="object"&&V!==null&&V.$$typeof===G1&&(V._payload.status==="fulfilled"?C(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function C(V){return typeof V==="object"&&V!==null&&V.$$typeof===l}function j(V){var U1={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(O1){return U1[O1]})}function y(V,U1){return typeof V==="object"&&V!==null&&V.key!=null?(M(V.key),j(""+V.key)):U1.toString(36)}function h(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status==="string"?V.then(z,z):(V.status="pending",V.then(function(U1){V.status==="pending"&&(V.status="fulfilled",V.value=U1)},function(U1){V.status==="pending"&&(V.status="rejected",V.reason=U1)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function b(V,U1,O1,w1,y1){var r1=typeof V;if(r1==="undefined"||r1==="boolean")V=null;var a1=!1;if(V===null)a1=!0;else switch(r1){case"bigint":case"string":case"number":a1=!0;break;case"object":switch(V.$$typeof){case l:case p:a1=!0;break;case G1:return a1=V._init,b(a1(V._payload),U1,O1,w1,y1)}}if(a1){a1=V,y1=y1(a1);var W0=w1===""?"."+y(a1,0):w1;return A1(y1)?(O1="",W0!=null&&(O1=W0.replace(N2,"$&/")+"/"),b(y1,U1,O1,"",function(H2){return H2})):y1!=null&&(C(y1)&&(y1.key!=null&&(a1&&a1.key===y1.key||M(y1.key)),O1=w(y1,O1+(y1.key==null||a1&&a1.key===y1.key?"":(""+y1.key).replace(N2,"$&/")+"/")+W0),w1!==""&&a1!=null&&C(a1)&&a1.key==null&&a1._store&&!a1._store.validated&&(O1._store.validated=2),y1=O1),U1.push(y1)),1}if(a1=0,W0=w1===""?".":w1+":",A1(V))for(var x1=0;x1<V.length;x1++)w1=V[x1],r1=W0+y(w1,x1),a1+=b(w1,U1,O1,r1,y1);else if(x1=U(V),typeof x1==="function")for(x1===V.entries&&(P2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),P2=!0),V=x1.call(V),x1=0;!(w1=V.next()).done;)w1=w1.value,r1=W0+y(w1,x1++),a1+=b(w1,U1,O1,r1,y1);else if(r1==="object"){if(typeof V.then==="function")return b(h(V),U1,O1,w1,y1);throw U1=String(V),Error("Objects are not valid as a React child (found: "+(U1==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":U1)+"). If you meant to render a collection of children, use an array instead.")}return a1}function E(V,U1,O1){if(V==null)return V;var w1=[],y1=0;return b(V,w1,"","",function(r1){return U1.call(O1,r1,y1++)}),w1}function D(V){if(V._status===-1){var U1=V._ioInfo;U1!=null&&(U1.start=U1.end=performance.now()),U1=V._result;var O1=U1();if(O1.then(function(y1){if(V._status===0||V._status===-1){V._status=1,V._result=y1;var r1=V._ioInfo;r1!=null&&(r1.end=performance.now()),O1.status===void 0&&(O1.status="fulfilled",O1.value=y1)}},function(y1){if(V._status===0||V._status===-1){V._status=2,V._result=y1;var r1=V._ioInfo;r1!=null&&(r1.end=performance.now()),O1.status===void 0&&(O1.status="rejected",O1.reason=y1)}}),U1=V._ioInfo,U1!=null){U1.value=O1;var w1=O1.displayName;typeof w1==="string"&&(U1.name=w1)}V._status===-1&&(V._status=0,V._result=O1)}if(V._status===1)return U1=V._result,U1===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var Xw=Object.create;var{getPrototypeOf:Kw,defineProperty:kA,getOwnPropertyNames:Hw}=Object;var Yw=Object.prototype.hasOwnProperty;function zw(Q){return this[Q]}var Ww,Lw,n0=(Q,U,G)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?Ww??=new WeakMap:Lw??=new WeakMap,Y=H.get(Q);if(Y)return Y}G=Q!=null?Xw(Kw(Q)):{};let z=U||!Q||!Q.__esModule?kA(G,"default",{value:Q,enumerable:!0}):G;for(let L of Hw(Q))if(!Yw.call(z,L))kA(z,L,{get:zw.bind(Q,L),enumerable:!0});if(K)H.set(Q,z);return z};var J3=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var DA=J3((Bw)=>{(function(){function Q(){if(j=!1,E){var g=Bw.unstable_now();n=g;var p=!0;try{_:{D=!1,C&&(C=!1,h(u),u=-1),w=!0;var c=f;try{J:{Y(g);for(v=G(O);v!==null&&!(v.expirationTime>g&&L());){var l=v.callback;if(typeof l==="function"){v.callback=null,f=v.priorityLevel;var a=l(v.expirationTime<=g);if(g=Bw.unstable_now(),typeof a==="function"){v.callback=a,Y(g),p=!0;break J}v===G(O)&&K(O),Y(g)}else K(O);v=G(O)}if(v!==null)p=!0;else{var k=G(P);k!==null&&M(z,k.startTime-g),p=!1}}break _}finally{v=null,f=c,w=!1}p=void 0}}finally{p?q1():E=!1}}}function U(g,p){var c=g.length;g.push(p);_:for(;0<c;){var l=c-1>>>1,a=g[l];if(0<H(a,p))g[l]=p,g[c]=a,c=l;else break _}}function G(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,a=g.length,k=a>>>1;l<k;){var s=2*(l+1)-1,$1=g[s],o=s+1,B1=g[o];if(0>H($1,c))o<a&&0>H(B1,$1)?(g[l]=B1,g[o]=c,l=o):(g[l]=$1,g[s]=c,l=s);else if(o<a&&0>H(B1,c))g[l]=B1,g[o]=c,l=o;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=G(P);p!==null;){if(p.callback===null)K(P);else if(p.startTime<=g)K(P),p.sortIndex=p.expirationTime,U(O,p);else break;p=G(P)}}function z(g){if(C=!1,Y(g),!D)if(G(O)!==null)D=!0,E||(E=!0,q1());else{var p=G(P);p!==null&&M(z,p.startTime-g)}}function L(){return j?!0:Bw.unstable_now()-n<x?!1:!0}function M(g,p){u=y(function(){g(Bw.unstable_now())},p)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Bw.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;Bw.unstable_now=function(){return R.now()}}else{var T=Date,A=T.now();Bw.unstable_now=function(){return T.now()-A}}var O=[],P=[],N=1,v=null,f=3,w=!1,D=!1,C=!1,j=!1,y=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null,E=!1,u=-1,x=5,n=-1;if(typeof b==="function")var q1=function(){b(Q)};else if(typeof MessageChannel<"u"){var Q1=new MessageChannel,m=Q1.port2;Q1.port1.onmessage=Q,q1=function(){m.postMessage(null)}}else q1=function(){y(Q,0)};Bw.unstable_IdlePriority=5,Bw.unstable_ImmediatePriority=1,Bw.unstable_LowPriority=4,Bw.unstable_NormalPriority=3,Bw.unstable_Profiling=null,Bw.unstable_UserBlockingPriority=2,Bw.unstable_cancelCallback=function(g){g.callback=null},Bw.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"):x=0<g?Math.floor(1000/g):5},Bw.unstable_getCurrentPriorityLevel=function(){return f},Bw.unstable_next=function(g){switch(f){case 1:case 2:case 3:var p=3;break;default:p=f}var c=f;f=p;try{return g()}finally{f=c}},Bw.unstable_requestPaint=function(){j=!0},Bw.unstable_runWithPriority=function(g,p){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var c=f;f=g;try{return p()}finally{f=c}},Bw.unstable_scheduleCallback=function(g,p,c){var l=Bw.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 a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5000}return a=c+a,g={id:N++,callback:p,priorityLevel:g,startTime:c,expirationTime:a,sortIndex:-1},c>l?(g.sortIndex=c,U(P,g),G(O)===null&&g===G(P)&&(C?(h(u),u=-1):C=!0,M(z,c-l))):(g.sortIndex=a,U(O,g),D||w||(D=!0,E||(E=!0,q1()))),g},Bw.unstable_shouldYield=L,Bw.unstable_wrapCallback=function(g){var p=f;return function(){var c=f;f=p;try{return g.apply(this,arguments)}finally{f=c}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var R4=J3((Aw,Bq)=>{(function(){function Q(V,U1){Object.defineProperty(K.prototype,V,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U1[0],U1[1])}})}function U(V){if(V===null||typeof V!=="object")return null;return V=N1&&V[N1]||V["@@iterator"],typeof V==="function"?V:null}function G(V,U1){V=(V=V.constructor)&&(V.displayName||V.name)||"ReactClass";var P1=V+"."+U1;H1[P1]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",U1,V),H1[P1]=!0)}function K(V,U1,P1){this.props=V,this.context=U1,this.refs=d1,this.updater=P1||y1}function H(){}function Y(V,U1,P1){this.props=V,this.context=U1,this.refs=d1,this.updater=P1||y1}function z(){}function L(V){return""+V}function M(V){try{L(V);var U1=!1}catch(u1){U1=!0}if(U1){U1=console;var P1=U1.error,w1=typeof Symbol==="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return P1.call(U1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w1),L(V)}}function R(V){if(V==null)return null;if(typeof V==="function")return V.$$typeof===g1?null:V.displayName||V.name||null;if(typeof V==="string")return V;switch(V){case a:return"Fragment";case s:return"Profiler";case k:return"StrictMode";case O1:return"Suspense";case L1: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 o:return V.displayName||"Context";case $1:return(V._context.displayName||"Context")+".Consumer";case B1:var U1=V.render;return V=V.displayName,V||(V=U1.displayName||U1.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case T1:return U1=V.displayName||null,U1!==null?U1:R(V.type)||"Memo";case G1:U1=V._payload,V=V._init;try{return R(V(U1))}catch(P1){}}return null}function T(V){if(V===a)return"<>";if(typeof V==="object"&&V!==null&&V.$$typeof===G1)return"<...>";try{var U1=R(V);return U1?"<"+U1+">":"<...>"}catch(P1){return"<...>"}}function A(){var V=b1.A;return V===null?null:V.getOwner()}function O(){return Error("react-stack-top-frame")}function P(V){if(p0.call(V,"key")){var U1=Object.getOwnPropertyDescriptor(V,"key").get;if(U1&&U1.isReactWarning)return!1}return V.key!==void 0}function N(V,U1){function P1(){e0||(e0=!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)",U1))}P1.isReactWarning=!0,Object.defineProperty(V,"key",{get:P1,configurable:!0})}function v(){var V=R(this.type);return R2[V]||(R2[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 f(V,U1,P1,w1,u1,a1){var s1=P1.ref;return V={$$typeof:c,type:V,key:U1,props:P1,_owner:w1},(s1!==void 0?s1: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:u1}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a1}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function w(V,U1){return U1=f(V.type,U1,V.props,V._owner,V._debugStack,V._debugTask),V._store&&(U1._store.validated=V._store.validated),U1}function D(V){C(V)?V._store&&(V._store.validated=1):typeof V==="object"&&V!==null&&V.$$typeof===G1&&(V._payload.status==="fulfilled"?C(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function C(V){return typeof V==="object"&&V!==null&&V.$$typeof===c}function j(V){var U1={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(P1){return U1[P1]})}function y(V,U1){return typeof V==="object"&&V!==null&&V.key!=null?(M(V.key),j(""+V.key)):U1.toString(36)}function h(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status==="string"?V.then(z,z):(V.status="pending",V.then(function(U1){V.status==="pending"&&(V.status="fulfilled",V.value=U1)},function(U1){V.status==="pending"&&(V.status="rejected",V.reason=U1)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function b(V,U1,P1,w1,u1){var a1=typeof V;if(a1==="undefined"||a1==="boolean")V=null;var s1=!1;if(V===null)s1=!0;else switch(a1){case"bigint":case"string":case"number":s1=!0;break;case"object":switch(V.$$typeof){case c:case l:s1=!0;break;case G1:return s1=V._init,b(s1(V._payload),U1,P1,w1,u1)}}if(s1){s1=V,u1=u1(s1);var B0=w1===""?"."+y(s1,0):w1;return M1(u1)?(P1="",B0!=null&&(P1=B0.replace(I2,"$&/")+"/"),b(u1,U1,P1,"",function(U2){return U2})):u1!=null&&(C(u1)&&(u1.key!=null&&(s1&&s1.key===u1.key||M(u1.key)),P1=w(u1,P1+(u1.key==null||s1&&s1.key===u1.key?"":(""+u1.key).replace(I2,"$&/")+"/")+B0),w1!==""&&s1!=null&&C(s1)&&s1.key==null&&s1._store&&!s1._store.validated&&(P1._store.validated=2),u1=P1),U1.push(u1)),1}if(s1=0,B0=w1===""?".":w1+":",M1(V))for(var m1=0;m1<V.length;m1++)w1=V[m1],a1=B0+y(w1,m1),s1+=b(w1,U1,P1,a1,u1);else if(m1=U(V),typeof m1==="function")for(m1===V.entries&&(q2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),q2=!0),V=m1.call(V),m1=0;!(w1=V.next()).done;)w1=w1.value,a1=B0+y(w1,m1++),s1+=b(w1,U1,P1,a1,u1);else if(a1==="object"){if(typeof V.then==="function")return b(h(V),U1,P1,w1,u1);throw U1=String(V),Error("Objects are not valid as a React child (found: "+(U1==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":U1)+"). If you meant to render a collection of children, use an array instead.")}return s1}function E(V,U1,P1){if(V==null)return V;var w1=[],u1=0;return b(V,w1,"","",function(a1){return U1.call(P1,a1,u1++)}),w1}function u(V){if(V._status===-1){var U1=V._ioInfo;U1!=null&&(U1.start=U1.end=performance.now()),U1=V._result;var P1=U1();if(P1.then(function(u1){if(V._status===0||V._status===-1){V._status=1,V._result=u1;var a1=V._ioInfo;a1!=null&&(a1.end=performance.now()),P1.status===void 0&&(P1.status="fulfilled",P1.value=u1)}},function(u1){if(V._status===0||V._status===-1){V._status=2,V._result=u1;var a1=V._ioInfo;a1!=null&&(a1.end=performance.now()),P1.status===void 0&&(P1.status="rejected",P1.reason=u1)}}),U1=V._ioInfo,U1!=null){U1.value=P1;var w1=P1.displayName;typeof w1==="string"&&(U1.name=w1)}V._status===-1&&(V._status=0,V._result=P1)}if(V._status===1)return U1=V._result,U1===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?`,U1),"default"in U1||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'))`,U1),U1.default;throw V._result}function g(){var V=u1.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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,U1),U1.default;throw V._result}function x(){var V=b1.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.`),V}function e(){u1.asyncTransitions--}function q1(V){if(K5===null)try{var U1=("require"+Math.random()).slice(0,7);K5=(Bq&&Bq[U1]).call(Bq,"timers").setImmediate}catch(O1){K5=function(w1){G4===!1&&(G4=!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=w1,y1.port2.postMessage(void 0)}}return K5(V)}function Q1(V){return 1<V.length&&typeof AggregateError==="function"?AggregateError(V):V[0]}function x(V,U1){U1!==H5-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. "),H5=U1}function m(V,U1,O1){var w1=u1.actQueue;if(w1!==null)if(w1.length!==0)try{c(w1),q1(function(){return m(V,U1,O1)});return}catch(y1){u1.thrownErrors.push(y1)}else u1.actQueue=null;0<u1.thrownErrors.length?(w1=Q1(u1.thrownErrors),u1.thrownErrors.length=0,O1(w1)):U1(V)}function c(V){if(!Z4){Z4=!0;var U1=0;try{for(;U1<V.length;U1++){var O1=V[U1];do{u1.didUsePromise=!1;var w1=O1(!1);if(w1!==null){if(u1.didUsePromise){V[U1]=O1,V.splice(0,U1);return}O1=w1}else break}while(1)}V.length=0}catch(y1){V.splice(0,U1+1),u1.thrownErrors.push(y1)}finally{Z4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),$1=Symbol.for("react.consumer"),a=Symbol.for("react.context"),H1=Symbol.for("react.forward_ref"),P1=Symbol.for("react.suspense"),z1=Symbol.for("react.suspense_list"),T1=Symbol.for("react.memo"),G1=Symbol.for("react.lazy"),R1=Symbol.for("react.activity"),C1=Symbol.iterator,L1={},S1={isMounted:function(){return!1},enqueueForceUpdate:function(V){G(V,"forceUpdate")},enqueueReplaceState:function(V){G(V,"replaceState")},enqueueSetState:function(V){G(V,"setState")}},b1=Object.assign,l1={};Object.freeze(l1),K.prototype.isReactComponent={},K.prototype.setState=function(V,U1){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,U1,"setState")},K.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};var h1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(O5 in h1)h1.hasOwnProperty(O5)&&Q(O5,h1[O5]);H.prototype=K.prototype,h1=Y.prototype=new H,h1.constructor=Y,b1(h1,K.prototype),h1.isPureReactComponent=!0;var A1=Array.isArray,_0=Symbol.for("react.client.reference"),u1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},E0=Object.prototype.hasOwnProperty,J0=console.createTask?console.createTask:function(){return null};h1={react_stack_bottom_frame:function(V){return V()}};var O2,K2,y2={},I2=h1.react_stack_bottom_frame.bind(h1,O)(),Z2=J0(T(O)),P2=!1,N2=/\/+/g,w2=typeof reportError==="function"?reportError:function(V){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U1=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(U1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",V);return}console.error(V)},G4=!1,K5=null,H5=0,m5=!1,Z4=!1,w4=typeof queueMicrotask==="function"?function(V){queueMicrotask(function(){return queueMicrotask(V)})}:q1;h1=Object.freeze({__proto__:null,c:function(V){return g().useMemoCache(V)}});var O5={map:E,forEach:function(V,U1,O1){E(V,function(){U1.apply(this,arguments)},O1)},count:function(V){var U1=0;return E(V,function(){U1++}),U1},toArray:function(V){return E(V,function(U1){return U1})||[]},only:function(V){if(!C(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};Aw.Activity=R1,Aw.Children=O5,Aw.Component=K,Aw.Fragment=o,Aw.Profiler=s,Aw.PureComponent=Y,Aw.StrictMode=k,Aw.Suspense=P1,Aw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u1,Aw.__COMPILER_RUNTIME=h1,Aw.act=function(V){var U1=u1.actQueue,O1=H5;H5++;var w1=u1.actQueue=U1!==null?U1:[],y1=!1;try{var r1=V()}catch(x1){u1.thrownErrors.push(x1)}if(0<u1.thrownErrors.length)throw x(U1,O1),V=Q1(u1.thrownErrors),u1.thrownErrors.length=0,V;if(r1!==null&&typeof r1==="object"&&typeof r1.then==="function"){var a1=r1;return w4(function(){y1||m5||(m5=!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,H2){y1=!0,a1.then(function(C2){if(x(U1,O1),O1===0){try{c(w1),q1(function(){return m(C2,x1,H2)})}catch(g5){u1.thrownErrors.push(g5)}if(0<u1.thrownErrors.length){var I5=Q1(u1.thrownErrors);u1.thrownErrors.length=0,H2(I5)}}else x1(C2)},function(C2){x(U1,O1),0<u1.thrownErrors.length?(C2=Q1(u1.thrownErrors),u1.thrownErrors.length=0,H2(C2)):H2(C2)})}}}var W0=r1;if(x(U1,O1),O1===0&&(c(w1),w1.length!==0&&w4(function(){y1||m5||(m5=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),u1.actQueue=null),0<u1.thrownErrors.length)throw V=Q1(u1.thrownErrors),u1.thrownErrors.length=0,V;return{then:function(x1,H2){y1=!0,O1===0?(u1.actQueue=w1,q1(function(){return m(W0,x1,H2)})):x1(W0)}}},Aw.cache=function(V){return function(){return V.apply(null,arguments)}},Aw.cacheSignal=function(){return null},Aw.captureOwnerStack=function(){var V=u1.getCurrentStack;return V===null?null:V()},Aw.cloneElement=function(V,U1,O1){if(V===null||V===void 0)throw Error("The argument must be a React element, but you passed "+V+".");var w1=b1({},V.props),y1=V.key,r1=V._owner;if(U1!=null){var a1;_:{if(E0.call(U1,"ref")&&(a1=Object.getOwnPropertyDescriptor(U1,"ref").get)&&a1.isReactWarning){a1=!1;break _}a1=U1.ref!==void 0}a1&&(r1=A()),P(U1)&&(M(U1.key),y1=""+U1.key);for(W0 in U1)!E0.call(U1,W0)||W0==="key"||W0==="__self"||W0==="__source"||W0==="ref"&&U1.ref===void 0||(w1[W0]=U1[W0])}var W0=arguments.length-2;if(W0===1)w1.children=O1;else if(1<W0){a1=Array(W0);for(var x1=0;x1<W0;x1++)a1[x1]=arguments[x1+2];w1.children=a1}w1=f(V.type,y1,w1,r1,V._debugStack,V._debugTask);for(y1=2;y1<arguments.length;y1++)u(arguments[y1]);return w1},Aw.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},Aw.createElement=function(V,U1,O1){for(var w1=2;w1<arguments.length;w1++)u(arguments[w1]);w1={};var y1=null;if(U1!=null)for(x1 in K2||!("__self"in U1)||"key"in U1||(K2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(U1)&&(M(U1.key),y1=""+U1.key),U1)E0.call(U1,x1)&&x1!=="key"&&x1!=="__self"&&x1!=="__source"&&(w1[x1]=U1[x1]);var r1=arguments.length-2;if(r1===1)w1.children=O1;else if(1<r1){for(var a1=Array(r1),W0=0;W0<r1;W0++)a1[W0]=arguments[W0+2];Object.freeze&&Object.freeze(a1),w1.children=a1}if(V&&V.defaultProps)for(x1 in r1=V.defaultProps,r1)w1[x1]===void 0&&(w1[x1]=r1[x1]);y1&&N(w1,typeof V==="function"?V.displayName||V.name||"Unknown":V);var x1=1e4>u1.recentlyCreatedOwnerStacks++;return f(V,y1,w1,A(),x1?Error("react-stack-top-frame"):I2,x1?J0(T(V)):Z2)},Aw.createRef=function(){var V={current:null};return Object.seal(V),V},Aw.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 U1={$$typeof:H1,render:V},O1;return Object.defineProperty(U1,"displayName",{enumerable:!1,configurable:!0,get:function(){return O1},set:function(w1){O1=w1,V.name||V.displayName||(Object.defineProperty(V,"name",{value:w1}),V.displayName=w1)}}),U1},Aw.isValidElement=C,Aw.lazy=function(V){V={_status:-1,_result:V};var U1={$$typeof:G1,_payload:V,_init:D},O1={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=O1,U1._debugInfo=[{awaited:O1}],U1},Aw.memo=function(V,U1){V==null&&console.error("memo: The first argument must be a component. Instead received: %s",V===null?"null":typeof V),U1={$$typeof:T1,type:V,compare:U1===void 0?null:U1};var O1;return Object.defineProperty(U1,"displayName",{enumerable:!1,configurable:!0,get:function(){return O1},set:function(w1){O1=w1,V.name||V.displayName||(Object.defineProperty(V,"name",{value:w1}),V.displayName=w1)}}),U1},Aw.startTransition=function(V){var U1=u1.T,O1={};O1._updatedFibers=new Set,u1.T=O1;try{var w1=V(),y1=u1.S;y1!==null&&y1(O1,w1),typeof w1==="object"&&w1!==null&&typeof w1.then==="function"&&(u1.asyncTransitions++,w1.then(e,e),w1.then(z,w2))}catch(r1){w2(r1)}finally{U1===null&&O1._updatedFibers&&(V=O1._updatedFibers.size,O1._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.")),U1!==null&&O1.types!==null&&(U1.types!==null&&U1.types!==O1.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."),U1.types=O1.types),u1.T=U1}},Aw.unstable_useCacheRefresh=function(){return g().useCacheRefresh()},Aw.use=function(V){return g().use(V)},Aw.useActionState=function(V,U1,O1){return g().useActionState(V,U1,O1)},Aw.useCallback=function(V,U1){return g().useCallback(V,U1)},Aw.useContext=function(V){var U1=g();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?"),U1.useContext(V)},Aw.useDebugValue=function(V,U1){return g().useDebugValue(V,U1)},Aw.useDeferredValue=function(V,U1){return g().useDeferredValue(V,U1)},Aw.useEffect=function(V,U1){return V==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useEffect(V,U1)},Aw.useEffectEvent=function(V){return g().useEffectEvent(V)},Aw.useId=function(){return g().useId()},Aw.useImperativeHandle=function(V,U1,O1){return g().useImperativeHandle(V,U1,O1)},Aw.useInsertionEffect=function(V,U1){return V==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useInsertionEffect(V,U1)},Aw.useLayoutEffect=function(V,U1){return V==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useLayoutEffect(V,U1)},Aw.useMemo=function(V,U1){return g().useMemo(V,U1)},Aw.useOptimistic=function(V,U1){return g().useOptimistic(V,U1)},Aw.useReducer=function(V,U1,O1){return g().useReducer(V,U1,O1)},Aw.useRef=function(V){return g().useRef(V)},Aw.useState=function(V){return g().useState(V)},Aw.useSyncExternalStore=function(V,U1,O1){return g().useSyncExternalStore(V,U1,O1)},Aw.useTransition=function(){return g().useTransition()},Aw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uA=_3((Mw)=>{var iF=n0(T4());(function(){function Q(){}function U(T){return""+T}function G(T,A,O){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(P);var N=!1}catch(v){N=!0}return N&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object"),U(P)),{$$typeof:M,key:P==null?null:""+P,children:T,containerInfo:A,implementation:O}}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 z(){var T=R.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 n(){b1.asyncTransitions--}function q1(V){if(K5===null)try{var U1=("require"+Math.random()).slice(0,7);K5=(Bq&&Bq[U1]).call(Bq,"timers").setImmediate}catch(P1){K5=function(w1){F4===!1&&(F4=!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 u1=new MessageChannel;u1.port1.onmessage=w1,u1.port2.postMessage(void 0)}}return K5(V)}function Q1(V){return 1<V.length&&typeof AggregateError==="function"?AggregateError(V):V[0]}function m(V,U1){U1!==g5-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. "),g5=U1}function g(V,U1,P1){var w1=b1.actQueue;if(w1!==null)if(w1.length!==0)try{p(w1),q1(function(){return g(V,U1,P1)});return}catch(u1){b1.thrownErrors.push(u1)}else b1.actQueue=null;0<b1.thrownErrors.length?(w1=Q1(b1.thrownErrors),b1.thrownErrors.length=0,P1(w1)):U1(V)}function p(V){if(!p5){p5=!0;var U1=0;try{for(;U1<V.length;U1++){var P1=V[U1];do{b1.didUsePromise=!1;var w1=P1(!1);if(w1!==null){if(b1.didUsePromise){V[U1]=P1,V.splice(0,U1);return}P1=w1}else break}while(1)}V.length=0}catch(u1){V.splice(0,U1+1),b1.thrownErrors.push(u1)}finally{p5=!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"),a=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),$1=Symbol.for("react.consumer"),o=Symbol.for("react.context"),B1=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"),N1=Symbol.iterator,H1={},y1={isMounted:function(){return!1},enqueueForceUpdate:function(V){G(V,"forceUpdate")},enqueueReplaceState:function(V){G(V,"replaceState")},enqueueSetState:function(V){G(V,"setState")}},j1=Object.assign,d1={};Object.freeze(d1),K.prototype.isReactComponent={},K.prototype.setState=function(V,U1){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,U1,"setState")},K.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};var x1={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(I5 in x1)x1.hasOwnProperty(I5)&&Q(I5,x1[I5]);H.prototype=K.prototype,x1=Y.prototype=new H,x1.constructor=Y,j1(x1,K.prototype),x1.isPureReactComponent=!0;var M1=Array.isArray,g1=Symbol.for("react.client.reference"),b1={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,$0=console.createTask?console.createTask:function(){return null};x1={react_stack_bottom_frame:function(V){return V()}};var e0,j2,R2={},v2=x1.react_stack_bottom_frame.bind(x1,O)(),O2=$0(T(O)),q2=!1,I2=/\/+/g,P2=typeof reportError==="function"?reportError:function(V){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U1=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(U1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",V);return}console.error(V)},F4=!1,K5=null,g5=0,H5=!1,p5=!1,H3=typeof queueMicrotask==="function"?function(V){queueMicrotask(function(){return queueMicrotask(V)})}:q1;x1=Object.freeze({__proto__:null,c:function(V){return x().useMemoCache(V)}});var I5={map:E,forEach:function(V,U1,P1){E(V,function(){U1.apply(this,arguments)},P1)},count:function(V){var U1=0;return E(V,function(){U1++}),U1},toArray:function(V){return E(V,function(U1){return U1})||[]},only:function(V){if(!C(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};Aw.Activity=R1,Aw.Children=I5,Aw.Component=K,Aw.Fragment=a,Aw.Profiler=s,Aw.PureComponent=Y,Aw.StrictMode=k,Aw.Suspense=O1,Aw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b1,Aw.__COMPILER_RUNTIME=x1,Aw.act=function(V){var U1=b1.actQueue,P1=g5;g5++;var w1=b1.actQueue=U1!==null?U1:[],u1=!1;try{var a1=V()}catch(m1){b1.thrownErrors.push(m1)}if(0<b1.thrownErrors.length)throw m(U1,P1),V=Q1(b1.thrownErrors),b1.thrownErrors.length=0,V;if(a1!==null&&typeof a1==="object"&&typeof a1.then==="function"){var s1=a1;return H3(function(){u1||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(m1,U2){u1=!0,s1.then(function(E2){if(m(U1,P1),P1===0){try{p(w1),q1(function(){return g(E2,m1,U2)})}catch(C4){b1.thrownErrors.push(C4)}if(0<b1.thrownErrors.length){var Y5=Q1(b1.thrownErrors);b1.thrownErrors.length=0,U2(Y5)}}else m1(E2)},function(E2){m(U1,P1),0<b1.thrownErrors.length?(E2=Q1(b1.thrownErrors),b1.thrownErrors.length=0,U2(E2)):U2(E2)})}}}var B0=a1;if(m(U1,P1),P1===0&&(p(w1),w1.length!==0&&H3(function(){u1||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(() => ...)"))}),b1.actQueue=null),0<b1.thrownErrors.length)throw V=Q1(b1.thrownErrors),b1.thrownErrors.length=0,V;return{then:function(m1,U2){u1=!0,P1===0?(b1.actQueue=w1,q1(function(){return g(B0,m1,U2)})):m1(B0)}}},Aw.cache=function(V){return function(){return V.apply(null,arguments)}},Aw.cacheSignal=function(){return null},Aw.captureOwnerStack=function(){var V=b1.getCurrentStack;return V===null?null:V()},Aw.cloneElement=function(V,U1,P1){if(V===null||V===void 0)throw Error("The argument must be a React element, but you passed "+V+".");var w1=j1({},V.props),u1=V.key,a1=V._owner;if(U1!=null){var s1;_:{if(p0.call(U1,"ref")&&(s1=Object.getOwnPropertyDescriptor(U1,"ref").get)&&s1.isReactWarning){s1=!1;break _}s1=U1.ref!==void 0}s1&&(a1=A()),P(U1)&&(M(U1.key),u1=""+U1.key);for(B0 in U1)!p0.call(U1,B0)||B0==="key"||B0==="__self"||B0==="__source"||B0==="ref"&&U1.ref===void 0||(w1[B0]=U1[B0])}var B0=arguments.length-2;if(B0===1)w1.children=P1;else if(1<B0){s1=Array(B0);for(var m1=0;m1<B0;m1++)s1[m1]=arguments[m1+2];w1.children=s1}w1=f(V.type,u1,w1,a1,V._debugStack,V._debugTask);for(u1=2;u1<arguments.length;u1++)D(arguments[u1]);return w1},Aw.createContext=function(V){return V={$$typeof:o,_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},Aw.createElement=function(V,U1,P1){for(var w1=2;w1<arguments.length;w1++)D(arguments[w1]);w1={};var u1=null;if(U1!=null)for(m1 in j2||!("__self"in U1)||"key"in U1||(j2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(U1)&&(M(U1.key),u1=""+U1.key),U1)p0.call(U1,m1)&&m1!=="key"&&m1!=="__self"&&m1!=="__source"&&(w1[m1]=U1[m1]);var a1=arguments.length-2;if(a1===1)w1.children=P1;else if(1<a1){for(var s1=Array(a1),B0=0;B0<a1;B0++)s1[B0]=arguments[B0+2];Object.freeze&&Object.freeze(s1),w1.children=s1}if(V&&V.defaultProps)for(m1 in a1=V.defaultProps,a1)w1[m1]===void 0&&(w1[m1]=a1[m1]);u1&&N(w1,typeof V==="function"?V.displayName||V.name||"Unknown":V);var m1=1e4>b1.recentlyCreatedOwnerStacks++;return f(V,u1,w1,A(),m1?Error("react-stack-top-frame"):v2,m1?$0(T(V)):O2)},Aw.createRef=function(){var V={current:null};return Object.seal(V),V},Aw.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 U1={$$typeof:B1,render:V},P1;return Object.defineProperty(U1,"displayName",{enumerable:!1,configurable:!0,get:function(){return P1},set:function(w1){P1=w1,V.name||V.displayName||(Object.defineProperty(V,"name",{value:w1}),V.displayName=w1)}}),U1},Aw.isValidElement=C,Aw.lazy=function(V){V={_status:-1,_result:V};var U1={$$typeof:G1,_payload:V,_init:u},P1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return V._ioInfo=P1,U1._debugInfo=[{awaited:P1}],U1},Aw.memo=function(V,U1){V==null&&console.error("memo: The first argument must be a component. Instead received: %s",V===null?"null":typeof V),U1={$$typeof:T1,type:V,compare:U1===void 0?null:U1};var P1;return Object.defineProperty(U1,"displayName",{enumerable:!1,configurable:!0,get:function(){return P1},set:function(w1){P1=w1,V.name||V.displayName||(Object.defineProperty(V,"name",{value:w1}),V.displayName=w1)}}),U1},Aw.startTransition=function(V){var U1=b1.T,P1={};P1._updatedFibers=new Set,b1.T=P1;try{var w1=V(),u1=b1.S;u1!==null&&u1(P1,w1),typeof w1==="object"&&w1!==null&&typeof w1.then==="function"&&(b1.asyncTransitions++,w1.then(n,n),w1.then(z,P2))}catch(a1){P2(a1)}finally{U1===null&&P1._updatedFibers&&(V=P1._updatedFibers.size,P1._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.")),U1!==null&&P1.types!==null&&(U1.types!==null&&U1.types!==P1.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),U1.types=P1.types),b1.T=U1}},Aw.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},Aw.use=function(V){return x().use(V)},Aw.useActionState=function(V,U1,P1){return x().useActionState(V,U1,P1)},Aw.useCallback=function(V,U1){return x().useCallback(V,U1)},Aw.useContext=function(V){var U1=x();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?"),U1.useContext(V)},Aw.useDebugValue=function(V,U1){return x().useDebugValue(V,U1)},Aw.useDeferredValue=function(V,U1){return x().useDeferredValue(V,U1)},Aw.useEffect=function(V,U1){return V==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useEffect(V,U1)},Aw.useEffectEvent=function(V){return x().useEffectEvent(V)},Aw.useId=function(){return x().useId()},Aw.useImperativeHandle=function(V,U1,P1){return x().useImperativeHandle(V,U1,P1)},Aw.useInsertionEffect=function(V,U1){return V==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useInsertionEffect(V,U1)},Aw.useLayoutEffect=function(V,U1){return V==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useLayoutEffect(V,U1)},Aw.useMemo=function(V,U1){return x().useMemo(V,U1)},Aw.useOptimistic=function(V,U1){return x().useOptimistic(V,U1)},Aw.useReducer=function(V,U1,P1){return x().useReducer(V,U1,P1)},Aw.useRef=function(V){return x().useRef(V)},Aw.useState=function(V){return x().useState(V)},Aw.useSyncExternalStore=function(V,U1,P1){return x().useSyncExternalStore(V,U1,P1)},Aw.useTransition=function(){return x().useTransition()},Aw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uA=J3((Mw)=>{var iF=n0(R4());(function(){function Q(){}function U(T){return""+T}function G(T,A,O){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(P);var N=!1}catch(v){N=!0}return N&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object"),U(P)),{$$typeof:M,key:P==null?null:""+P,children:T,containerInfo:A,implementation:O}}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 z(){var T=R.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"),R=iF.__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"),Mw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Mw.createPortal=function(T,A){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return G(T,A,null,O)},Mw.flushSync=function(T){var A=R.T,O=L.p;try{if(R.T=null,L.p=2,T)return T()}finally{R.T=A,L.p=O,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.")}},Mw.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))},Mw.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)},Mw.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 O=A.as,P=K(O,A.crossOrigin),N=typeof A.integrity==="string"?A.integrity:void 0,v=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;O==="style"?L.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:P,integrity:N,fetchPriority:v}):O==="script"&&L.d.X(T,{crossOrigin:P,integrity:N,fetchPriority:v,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},Mw.preinitModule=function(T,A){var O="";if(typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(O+=" The `as` option encountered was "+Y(A.as)+"."),O)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",O);else switch(O=A&&typeof A.as==="string"?A.as:"script",O){case"script":break;default:O=Y(O),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',O,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")O=K(A.as,A.crossOrigin),L.d.M(T,{crossOrigin:O,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)},Mw.preload=function(T,A){var O="";if(typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',O),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){O=A.as;var P=K(O,A.crossOrigin);L.d.L(T,O,{crossOrigin:P,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},Mw.preloadModule=function(T,A){var O="";typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',O),typeof T==="string"&&(A?(O=K(A.as,A.crossOrigin),L.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0})):L.d.m(T))},Mw.requestFormReset=function(T){L.d.r(T)},Mw.unstable_batchedUpdates=function(T,A){return T(A)},Mw.useFormState=function(T,A,O){return z().useFormState(T,A,O)},Mw.useFormStatus=function(){return z().useHostTransitionStatus()},Mw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rF=_3((Hk,bA)=>{var Tw=n0(uA());bA.exports=Tw});var EA=_3((Rw)=>{var I0=n0(DA()),H9=n0(T4()),aF=n0(rF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var Z=J[$],X=S2(_)?_.slice():Y0({},_);return X[Z]=U(_[Z],J,$+1,q),X}function G(_,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 Z=J[q],X=S2(_)?_.slice():Y0({},_);return q+1===J.length?(X[$[q]]=X[Z],S2(X)?X.splice(Z,1):delete X[Z]):X[Z]=K(_[Z],J,$,q+1),X}function H(_,J,$){var q=J[$],Z=S2(_)?_.slice():Y0({},_);if($+1===J.length)return S2(Z)?Z.splice(q,1):delete Z[q],Z;return Z[q]=H(_[q],J,$+1),Z}function Y(){return!1}function z(){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 R(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function O(_,J,$,q){return new nO(_,J,$,q)}function P(_,J){_.context===O6&&(YZ(_.current,2,J,_,null,null),I7())}function N(_,J){if(d5!==null){var $=J.staleFamilies;J=J.updatedFamilies,X_(),xH(_.current,J,$),I7()}}function v(_){d5=_}function f(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function w(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function u(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function C(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function j(_){if(w(_)!==_)throw Error("Unable to find node on an unmounted component.")}function y(_){var J=_.alternate;if(!J){if(J=w(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var Z=$.return;if(Z===null)break;var X=Z.alternate;if(X===null){if(q=Z.return,q!==null){$=q;continue}break}if(Z.child===X.child){for(X=Z.child;X;){if(X===$)return j(Z),_;if(X===q)return j(Z),J;X=X.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=Z,q=X;else{for(var W=!1,B=Z.child;B;){if(B===$){W=!0,$=Z,q=X;break}if(B===q){W=!0,q=Z,$=X;break}B=B.sibling}if(!W){for(B=X.child;B;){if(B===$){W=!0,$=X,q=Z;break}if(B===q){W=!0,q=X,$=Z;break}B=B.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if($.alternate!==q)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function b(_){if(_===null||typeof _!=="object")return null;return _=iW&&_[iW]||_["@@iterator"],typeof _==="function"?_:null}function E(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===TP?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case j7:return"Fragment";case MZ:return"Profiler";case KQ:return"StrictMode";case RZ:return"Suspense";case OZ:return"SuspenseList";case IZ: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 f7:return"Portal";case c4:return _.displayName||"Context";case TZ:return(_._context.displayName||"Context")+".Consumer";case T_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case HQ:return J=_.displayName||null,J!==null?J:E(_.type)||"Memo";case v5:J=_._payload,_=_._init;try{return E(_(J))}catch($){}}return null}function D(_){return typeof _.tag==="number"?g(_):typeof _.name==="string"?_.name:null}function g(_){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 E(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 g(_.return)}return null}function e(_){return{current:_}}function q1(_,J){0>T3?console.error("Unexpected pop."):(J!==NZ[T3]&&console.error("Unexpected Fiber popped."),_.current=PZ[T3],PZ[T3]=null,NZ[T3]=null,T3--)}function Q1(_,J,$){T3++,PZ[T3]=_.current,NZ[T3]=$,_.current=J}function x(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function m(_,J){Q1(L6,J,_),Q1(R_,_,_),Q1(W6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?BW(J):k3:k3;break;default:if($=J.tagName,J=J.namespaceURI)J=BW(J),J=AW(J,$);else switch($){case"svg":J=X9;break;case"math":J=Xq;break;default:J=k3}}$=$.toLowerCase(),$=h9(null,$),$={context:J,ancestorInfo:$},q1(W6,_),Q1(W6,$,_)}function c(_){q1(W6,_),q1(R_,_),q1(L6,_)}function l(){return x(W6.current)}function p(_){_.memoizedState!==null&&Q1(YQ,_,_);var J=x(W6.current),$=_.type,q=AW(J.context,$);$=h9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(Q1(R_,_,_),Q1(W6,q,_))}function o(_){R_.current===_&&(q1(W6,_),q1(R_,_)),YQ.current===_&&(q1(YQ,_),HJ._currentValue=E8)}function k(){}function s(){if(O_===0){rW=console.log,aW=console.info,sW=console.warn,tW=console.error,oW=console.group,nW=console.groupCollapsed,eW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}O_++}function $1(){if(O_--,O_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y0({},_,{value:rW}),info:Y0({},_,{value:aW}),warn:Y0({},_,{value:sW}),error:Y0({},_,{value:tW}),group:Y0({},_,{value:oW}),groupCollapsed:Y0({},_,{value:nW}),groupEnd:Y0({},_,{value:eW})})}0>O_&&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"),R=iF.__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"),Mw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Mw.createPortal=function(T,A){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return G(T,A,null,O)},Mw.flushSync=function(T){var A=R.T,O=L.p;try{if(R.T=null,L.p=2,T)return T()}finally{R.T=A,L.p=O,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.")}},Mw.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))},Mw.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)},Mw.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 O=A.as,P=K(O,A.crossOrigin),N=typeof A.integrity==="string"?A.integrity:void 0,v=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;O==="style"?L.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:P,integrity:N,fetchPriority:v}):O==="script"&&L.d.X(T,{crossOrigin:P,integrity:N,fetchPriority:v,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},Mw.preinitModule=function(T,A){var O="";if(typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(O+=" The `as` option encountered was "+Y(A.as)+"."),O)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",O);else switch(O=A&&typeof A.as==="string"?A.as:"script",O){case"script":break;default:O=Y(O),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',O,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")O=K(A.as,A.crossOrigin),L.d.M(T,{crossOrigin:O,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)},Mw.preload=function(T,A){var O="";if(typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',O),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){O=A.as;var P=K(O,A.crossOrigin);L.d.L(T,O,{crossOrigin:P,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},Mw.preloadModule=function(T,A){var O="";typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(O+=" The `as` option encountered was "+H(A.as)+"."),O&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',O),typeof T==="string"&&(A?(O=K(A.as,A.crossOrigin),L.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0})):L.d.m(T))},Mw.requestFormReset=function(T){L.d.r(T)},Mw.unstable_batchedUpdates=function(T,A){return T(A)},Mw.useFormState=function(T,A,O){return z().useFormState(T,A,O)},Mw.useFormStatus=function(){return z().useHostTransitionStatus()},Mw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rF=J3((Hk,bA)=>{var Tw=n0(uA());bA.exports=Tw});var EA=J3((Rw)=>{var I0=n0(DA()),Y9=n0(R4()),aF=n0(rF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var Z=J[$],X=N2(_)?_.slice():Y0({},_);return X[Z]=U(_[Z],J,$+1,q),X}function G(_,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 Z=J[q],X=N2(_)?_.slice():Y0({},_);return q+1===J.length?(X[$[q]]=X[Z],N2(X)?X.splice(Z,1):delete X[Z]):X[Z]=K(_[Z],J,$,q+1),X}function H(_,J,$){var q=J[$],Z=N2(_)?_.slice():Y0({},_);if($+1===J.length)return N2(Z)?Z.splice(q,1):delete Z[q],Z;return Z[q]=H(_[q],J,$+1),Z}function Y(){return!1}function z(){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 R(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function O(_,J,$,q){return new nO(_,J,$,q)}function P(_,J){_.context===P6&&(YZ(_.current,2,J,_,null,null),P7())}function N(_,J){if(r5!==null){var $=J.staleFamilies;J=J.updatedFamilies,K_(),xH(_.current,J,$),P7()}}function v(_){r5=_}function f(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function w(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function D(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function C(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function j(_){if(w(_)!==_)throw Error("Unable to find node on an unmounted component.")}function y(_){var J=_.alternate;if(!J){if(J=w(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var Z=$.return;if(Z===null)break;var X=Z.alternate;if(X===null){if(q=Z.return,q!==null){$=q;continue}break}if(Z.child===X.child){for(X=Z.child;X;){if(X===$)return j(Z),_;if(X===q)return j(Z),J;X=X.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=Z,q=X;else{for(var W=!1,B=Z.child;B;){if(B===$){W=!0,$=Z,q=X;break}if(B===q){W=!0,q=Z,$=X;break}B=B.sibling}if(!W){for(B=X.child;B;){if(B===$){W=!0,$=X,q=Z;break}if(B===q){W=!0,q=X,$=Z;break}B=B.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if($.alternate!==q)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function b(_){if(_===null||typeof _!=="object")return null;return _=iW&&_[iW]||_["@@iterator"],typeof _==="function"?_:null}function E(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===TP?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case v7:return"Fragment";case MZ:return"Profiler";case KQ:return"StrictMode";case RZ:return"Suspense";case OZ:return"SuspenseList";case IZ: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 j7:return"Portal";case l4:return _.displayName||"Context";case TZ:return(_._context.displayName||"Context")+".Consumer";case R_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case HQ:return J=_.displayName||null,J!==null?J:E(_.type)||"Memo";case V5:J=_._payload,_=_._init;try{return E(_(J))}catch($){}}return null}function u(_){return typeof _.tag==="number"?x(_):typeof _.name==="string"?_.name:null}function x(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E(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 x(_.return)}return null}function n(_){return{current:_}}function q1(_,J){0>P3?console.error("Unexpected pop."):(J!==NZ[P3]&&console.error("Unexpected Fiber popped."),_.current=PZ[P3],PZ[P3]=null,NZ[P3]=null,P3--)}function Q1(_,J,$){P3++,PZ[P3]=_.current,NZ[P3]=$,_.current=J}function m(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function g(_,J){Q1(A6,J,_),Q1(O_,_,_),Q1(B6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?BW(J):E3:E3;break;default:if($=J.tagName,J=J.namespaceURI)J=BW(J),J=AW(J,$);else switch($){case"svg":J=K9;break;case"math":J=Xq;break;default:J=E3}}$=$.toLowerCase(),$=x9(null,$),$={context:J,ancestorInfo:$},q1(B6,_),Q1(B6,$,_)}function p(_){q1(B6,_),q1(O_,_),q1(A6,_)}function c(){return m(B6.current)}function l(_){_.memoizedState!==null&&Q1(YQ,_,_);var J=m(B6.current),$=_.type,q=AW(J.context,$);$=x9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(Q1(O_,_,_),Q1(B6,q,_))}function a(_){O_.current===_&&(q1(B6,_),q1(O_,_)),YQ.current===_&&(q1(YQ,_),YJ._currentValue=h8)}function k(){}function s(){if(I_===0){rW=console.log,aW=console.info,sW=console.warn,tW=console.error,oW=console.group,nW=console.groupCollapsed,eW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}I_++}function $1(){if(I_--,I_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y0({},_,{value:rW}),info:Y0({},_,{value:aW}),warn:Y0({},_,{value:sW}),error:Y0({},_,{value:tW}),group:Y0({},_,{value:oW}),groupCollapsed:Y0({},_,{value:nW}),groupEnd:Y0({},_,{value:eW})})}0>I_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function o(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(_=_.slice(29)),J=_.indexOf(`
19
19
  `),J!==-1&&(_=_.slice(J+1)),J=_.indexOf("react_stack_bottom_frame"),J!==-1&&(J=_.lastIndexOf(`
20
- `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function H1(_){if(wZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);wZ=J&&J[1]||"",_L=-1<$.stack.indexOf(`
20
+ `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function B1(_){if(wZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);wZ=J&&J[1]||"",_L=-1<$.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+wZ+_+_L}function P1(_,J){if(!_||CZ)return"";var $=SZ.get(_);if($!==void 0)return $;CZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=W1.H,W1.H=null,s();try{var Z={DetermineComponentFrameRoot:function(){try{if(J){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(N1){var F1=N1}Reflect.construct(_,[],i)}else{try{i.call()}catch(N1){F1=N1}_.call(i.prototype)}}else{try{throw Error()}catch(N1){F1=N1}(i=_())&&typeof i.catch==="function"&&i.catch(function(){})}}catch(N1){if(N1&&F1&&typeof N1.stack==="string")return[N1.stack,F1.stack]}return[null,null]}};Z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(Z.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(Z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=Z.DetermineComponentFrameRoot(),B=W[0],I=W[1];if(B&&I){var S=B.split(`
22
+ `+wZ+_+_L}function O1(_,J){if(!_||CZ)return"";var $=SZ.get(_);if($!==void 0)return $;CZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=z1.H,z1.H=null,s();try{var Z={DetermineComponentFrameRoot:function(){try{if(J){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(C1){var F1=C1}Reflect.construct(_,[],i)}else{try{i.call()}catch(C1){F1=C1}_.call(i.prototype)}}else{try{throw Error()}catch(C1){F1=C1}(i=_())&&typeof i.catch==="function"&&i.catch(function(){})}}catch(C1){if(C1&&F1&&typeof C1.stack==="string")return[C1.stack,F1.stack]}return[null,null]}};Z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(Z.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(Z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=Z.DetermineComponentFrameRoot(),B=W[0],I=W[1];if(B&&I){var S=B.split(`
23
23
  `),_1=I.split(`
24
24
  `);for(W=X=0;X<S.length&&!S[X].includes("DetermineComponentFrameRoot");)X++;for(;W<_1.length&&!_1[W].includes("DetermineComponentFrameRoot");)W++;if(X===S.length||W===_1.length)for(X=S.length-1,W=_1.length-1;1<=X&&0<=W&&S[X]!==_1[W];)W--;for(;1<=X&&0<=W;X--,W--)if(S[X]!==_1[W]){if(X!==1||W!==1)do if(X--,W--,0>W||S[X]!==_1[W]){var J1=`
25
- `+S[X].replace(" at new "," at ");return _.displayName&&J1.includes("<anonymous>")&&(J1=J1.replace("<anonymous>",_.displayName)),typeof _==="function"&&SZ.set(_,J1),J1}while(1<=X&&0<=W);break}}}finally{CZ=!1,W1.H=q,$1(),Error.prepareStackTrace=$}return S=(S=_?_.displayName||_.name:"")?H1(S):"",typeof _==="function"&&SZ.set(_,S),S}function z1(_,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 P1(_.type,!1);case 11:return P1(_.type.render,!1);case 1:return P1(_.type,!0);case 31:return H1("Activity");default:return""}}function T1(_){try{var J="",$=null;do{J+=z1(_,$);var q=_._debugInfo;if(q)for(var Z=q.length-1;0<=Z;Z--){var X=q[Z];if(typeof X.name==="string"){var W=J;_:{var{name:B,env:I,debugLocation:S}=X;if(S!=null){var _1=a(S),J1=_1.lastIndexOf(`
25
+ `+S[X].replace(" at new "," at ");return _.displayName&&J1.includes("<anonymous>")&&(J1=J1.replace("<anonymous>",_.displayName)),typeof _==="function"&&SZ.set(_,J1),J1}while(1<=X&&0<=W);break}}}finally{CZ=!1,z1.H=q,$1(),Error.prepareStackTrace=$}return S=(S=_?_.displayName||_.name:"")?B1(S):"",typeof _==="function"&&SZ.set(_,S),S}function L1(_,J){switch(_.tag){case 26:case 27:case 5:return B1(_.type);case 16:return B1("Lazy");case 13:return _.child!==J&&J!==null?B1("Suspense Fallback"):B1("Suspense");case 19:return B1("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 B1("Activity");default:return""}}function T1(_){try{var J="",$=null;do{J+=L1(_,$);var q=_._debugInfo;if(q)for(var Z=q.length-1;0<=Z;Z--){var X=q[Z];if(typeof X.name==="string"){var W=J;_:{var{name:B,env:I,debugLocation:S}=X;if(S!=null){var _1=o(S),J1=_1.lastIndexOf(`
26
26
  `),i=J1===-1?_1:_1.slice(J1+1);if(i.indexOf(B)!==-1){var F1=`
27
- `+i;break _}}F1=H1(B+(I?" ["+I+"]":""))}J=W+F1}}$=_,_=_.return}while(_);return J}catch(N1){return`
28
- Error generating stack: `+N1.message+`
29
- `+N1.stack}}function G1(_){return(_=_?_.displayName||_.name:"")?H1(_):""}function R1(){if(V5===null)return null;var _=V5._debugOwner;return _!=null?D(_):null}function C1(){if(V5===null)return"";var _=V5;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 Z=a(q);Z!==""&&(J+=`
27
+ `+i;break _}}F1=B1(B+(I?" ["+I+"]":""))}J=W+F1}}$=_,_=_.return}while(_);return J}catch(C1){return`
28
+ Error generating stack: `+C1.message+`
29
+ `+C1.stack}}function G1(_){return(_=_?_.displayName||_.name:"")?B1(_):""}function R1(){if(y5===null)return null;var _=y5._debugOwner;return _!=null?u(_):null}function N1(){if(y5===null)return"";var _=y5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=B1(_.type);break;case 13:J+=B1("Suspense");break;case 19:J+=B1("SuspenseList");break;case 31:J+=B1("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 Z=o(q);Z!==""&&(J+=`
30
30
  `+Z)}}else if(_.debugStack!=null){var X=_.debugStack;(_=_.owner)&&X&&(J+=`
31
- `+a(X))}else break;var W=J}catch(B){W=`
31
+ `+o(X))}else break;var W=J}catch(B){W=`
32
32
  Error generating stack: `+B.message+`
33
- `+B.stack}return W}function L1(_,J,$,q,Z,X,W){var B=V5;S1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,Z,X,W)):J($,q,Z,X,W)}finally{S1(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function S1(_){W1.getCurrentStack=_===null?null:C1,l4=!1,V5=_}function b1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function l1(_){try{return h1(_),!1}catch(J){return!0}}function h1(_){return""+_}function A1(_,J){if(l1(_))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(_)),h1(_)}function _0(_,J){if(l1(_))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(_)),h1(_)}function u1(_){if(l1(_))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(_)),h1(_)}function E0(_){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{V7=J.inject(_),i2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function J0(_){if(typeof CP==="function"&&SP(_),i2&&typeof i2.setStrictMode==="function")try{i2.setStrictMode(V7,_)}catch(J){d4||(d4=!0,console.error("React instrumentation encountered an error: %o",J))}}function O2(_){return _>>>=0,_===0?32:31-(fP(_)/jP|0)|0}function K2(_){var J=_&42;if(J!==0)return J;switch(_&-_){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),_}}function y2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var Z=0,X=_.suspendedLanes,W=_.pingedLanes;_=_.warmLanes;var B=q&134217727;return B!==0?(q=B&~X,q!==0?Z=K2(q):(W&=B,W!==0?Z=K2(W):$||($=B&~_,$!==0&&(Z=K2($))))):(B=q&~X,B!==0?Z=K2(B):W!==0?Z=K2(W):$||($=q&~_,$!==0&&(Z=K2($)))),Z===0?0:J!==0&&J!==Z&&(J&X)===0&&(X=Z&-Z,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:Z}function I2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function Z2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return J+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function P2(){var _=LQ;return LQ<<=1,(LQ&62914560)===0&&(LQ=4194304),_}function N2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function w2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function G4(_,J,$,q,Z,X){var W=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:B,expirationTimes:I,hiddenUpdates:S}=_;for($=W&~$;0<$;){var _1=31-_5($),J1=1<<_1;B[_1]=0,I[_1]=-1;var i=S[_1];if(i!==null)for(S[_1]=null,_1=0;_1<i.length;_1++){var F1=i[_1];F1!==null&&(F1.lane&=-536870913)}$&=~J1}q!==0&&K5(_,q,0),X!==0&&Z===0&&_.tag!==0&&(_.suspendedLanes|=X&~(W&~J))}function K5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-_5(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function H5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-_5($),Z=1<<q;Z&J|_[q]&J&&(_[q]|=J),$&=~Z}}function m5(_,J){var $=J&-J;return $=($&42)!==0?1:Z4($),($&(_.suspendedLanes|J))!==0?0:$}function Z4(_){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 w4(_,J,$){if(i4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-_5($),Z=1<<q;_[q].add(J),$&=~Z}}function O5(_,J){if(i4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var Z=31-_5(J);_=1<<Z,Z=$[Z],0<Z.size&&(Z.forEach(function(X){var W=X.alternate;W!==null&&q.has(W)||q.add(X)}),Z.clear()),J&=~_}}function V(_){return _&=-_,y5!==0&&y5<_?Y4!==0&&Y4<_?(_&134217727)!==0?r4:BQ:Y4:y5}function U1(){var _=C0.p;if(_!==0)return _;return _=window.event,_===void 0?r4:xW(_.type)}function O1(_,J){var $=C0.p;try{return C0.p=_,J()}finally{C0.p=$}}function w1(_){delete _[p2],delete _[J5],delete _[yZ],delete _[vP],delete _[VP]}function y1(_){var J=_[p2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[A6]||$[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]||_[A6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function a1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function W0(_){var J=_[JL];return J||(J=_[JL]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function x1(_){_[I_]=!0}function H2(_,J){C2(_,J),C2(_+"Capture",J)}function C2(_,J){L8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),L8[_]=J;var $=_.toLowerCase();kZ[$]=_,_==="onDoubleClick"&&(kZ.ondblclick=_);for(_=0;_<J.length;_++)$L.add(J[_])}function I5(_,J){yP[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 g5(_){if(H4.call(qL,_))return!0;if(H4.call(QL,_))return!1;if(kP.test(_))return qL[_]=!0;return QL[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function n6(_,J,$){if(g5(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 s3(_,J,$){if(g5(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 t3(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}A1($,J),_.setAttribute(J,""+$)}}function t(_,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 X1(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return u1(_),_;default:return""}}function j1(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function V1(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:Z,set:X}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return Z.call(this)},set:function(W){u1(W),$=""+W,X.call(this,W)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(W){u1(W),$=""+W},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function Q0(_){if(!_._valueTracker){var J=j1(_)?"checked":"value";_._valueTracker=V1(_,J,""+_[J])}}function k1(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=j1(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function g1(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function D1(_){return _.replace(DP,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function q0(_,J){J.checked===void 0||J.defaultChecked===void 0||GL||(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),GL=!0),J.value===void 0||J.defaultValue===void 0||UL||(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),UL=!0)}function y0(_,J,$,q,Z,X,W,B){if(_.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(A1(W,"type"),_.type=W):_.removeAttribute("type"),J!=null)if(W==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+X1(J)}else _.value!==""+X1(J)&&(_.value=""+X1(J));else W!=="submit"&&W!=="reset"||_.removeAttribute("value");J!=null?h0(_,W,X1(J)):$!=null?h0(_,W,X1($)):q!=null&&_.removeAttribute("value"),Z==null&&X!=null&&(_.defaultChecked=!!X),Z!=null&&(_.checked=Z&&typeof Z!=="function"&&typeof Z!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(A1(B,"name"),_.name=""+X1(B)):_.removeAttribute("name")}function $0(_,J,$,q,Z,X,W,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)){Q0(_);return}$=$!=null?""+X1($):"",J=J!=null?""+X1(J):$,B||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:Z,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=B?_.checked:!!q,_.defaultChecked=!!q,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(A1(W,"name"),_.name=W),Q0(_)}function h0(_,J,$){J==="number"&&g1(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function N0(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?H9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||FL||(FL=!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||XL||(XL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||ZL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ZL=!0)}function o3(){var _=R1();return _?`
33
+ `+B.stack}return W}function H1(_,J,$,q,Z,X,W){var B=y5;y1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,Z,X,W)):J($,q,Z,X,W)}finally{y1(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function y1(_){z1.getCurrentStack=_===null?null:N1,d4=!1,y5=_}function j1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function d1(_){try{return x1(_),!1}catch(J){return!0}}function x1(_){return""+_}function M1(_,J){if(d1(_))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,j1(_)),x1(_)}function g1(_,J){if(d1(_))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,j1(_)),x1(_)}function b1(_){if(d1(_))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.",j1(_)),x1(_)}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{y7=J.inject(_),i2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function $0(_){if(typeof CP==="function"&&SP(_),i2&&typeof i2.setStrictMode==="function")try{i2.setStrictMode(y7,_)}catch(J){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",J))}}function e0(_){return _>>>=0,_===0?32:31-(fP(_)/jP|0)|0}function j2(_){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 R2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var Z=0,X=_.suspendedLanes,W=_.pingedLanes;_=_.warmLanes;var B=q&134217727;return B!==0?(q=B&~X,q!==0?Z=j2(q):(W&=B,W!==0?Z=j2(W):$||($=B&~_,$!==0&&(Z=j2($))))):(B=q&~X,B!==0?Z=j2(B):W!==0?Z=j2(W):$||($=q&~_,$!==0&&(Z=j2($)))),Z===0?0:J!==0&&J!==Z&&(J&X)===0&&(X=Z&-Z,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:Z}function v2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function O2(_,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 q2(){var _=LQ;return LQ<<=1,(LQ&62914560)===0&&(LQ=4194304),_}function I2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function P2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function F4(_,J,$,q,Z,X){var W=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:B,expirationTimes:I,hiddenUpdates:S}=_;for($=W&~$;0<$;){var _1=31-_5($),J1=1<<_1;B[_1]=0,I[_1]=-1;var i=S[_1];if(i!==null)for(S[_1]=null,_1=0;_1<i.length;_1++){var F1=i[_1];F1!==null&&(F1.lane&=-536870913)}$&=~J1}q!==0&&K5(_,q,0),X!==0&&Z===0&&_.tag!==0&&(_.suspendedLanes|=X&~(W&~J))}function K5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-_5(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function g5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-_5($),Z=1<<q;Z&J|_[q]&J&&(_[q]|=J),$&=~Z}}function H5(_,J){var $=J&-J;return $=($&42)!==0?1:p5($),($&(_.suspendedLanes|J))!==0?0:$}function p5(_){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 H3(_,J,$){if(r4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-_5($),Z=1<<q;_[q].add(J),$&=~Z}}function I5(_,J){if(r4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var Z=31-_5(J);_=1<<Z,Z=$[Z],0<Z.size&&(Z.forEach(function(X){var W=X.alternate;W!==null&&q.has(W)||q.add(X)}),Z.clear()),J&=~_}}function V(_){return _&=-_,k5!==0&&k5<_?z4!==0&&z4<_?(_&134217727)!==0?a4:BQ:z4:k5}function U1(){var _=C0.p;if(_!==0)return _;return _=window.event,_===void 0?a4:xW(_.type)}function P1(_,J){var $=C0.p;try{return C0.p=_,J()}finally{C0.p=$}}function w1(_){delete _[g2],delete _[J5],delete _[yZ],delete _[vP],delete _[VP]}function u1(_){var J=_[g2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[T6]||$[g2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=wW(_);_!==null;){if($=_[g2])return $;_=wW(_)}return J}_=$,$=_.parentNode}return null}function a1(_){if(_=_[g2]||_[T6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function s1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function B0(_){var J=_[JL];return J||(J=_[JL]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function m1(_){_[P_]=!0}function U2(_,J){E2(_,J),E2(_+"Capture",J)}function E2(_,J){B8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),B8[_]=J;var $=_.toLowerCase();kZ[$]=_,_==="onDoubleClick"&&(kZ.ondblclick=_);for(_=0;_<J.length;_++)$L.add(J[_])}function Y5(_,J){yP[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 C4(_){if(Y4.call(qL,_))return!0;if(Y4.call(QL,_))return!1;if(kP.test(_))return qL[_]=!0;return QL[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function Y3(_,J,$){if(C4(J)){if(!_.hasAttribute(J)){switch(typeof $){case"symbol":case"object":return $;case"function":return $;case"boolean":if($===!1)return $}return $===void 0?void 0:null}if(_=_.getAttribute(J),_===""&&$===!0)return!0;return M1($,J),_===""+$?$:_}}function z3(_,J,$){if(C4(J))if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":_.removeAttribute(J);return;case"boolean":var q=J.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){_.removeAttribute(J);return}}M1($,J),_.setAttribute(J,""+$)}}function e3(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}M1($,J),_.setAttribute(J,""+$)}}function P5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}M1(q,$),_.setAttributeNS(J,$,""+q)}}function t(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return b1(_),_;default:return""}}function Y1(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function f1(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:Z,set:X}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return Z.call(this)},set:function(W){b1(W),$=""+W,X.call(this,W)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(W){b1(W),$=""+W},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function v1(_){if(!_._valueTracker){var J=Y1(_)?"checked":"value";_._valueTracker=f1(_,J,""+_[J])}}function U0(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=Y1(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function k1(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function D1(_){return _.replace(DP,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function c1(_,J){J.checked===void 0||J.defaultChecked===void 0||GL||(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),GL=!0),J.value===void 0||J.defaultValue===void 0||UL||(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),UL=!0)}function Q0(_,J,$,q,Z,X,W,B){if(_.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(M1(W,"type"),_.type=W):_.removeAttribute("type"),J!=null)if(W==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+t(J)}else _.value!==""+t(J)&&(_.value=""+t(J));else W!=="submit"&&W!=="reset"||_.removeAttribute("value");J!=null?J0(_,W,t(J)):$!=null?J0(_,W,t($)):q!=null&&_.removeAttribute("value"),Z==null&&X!=null&&(_.defaultChecked=!!X),Z!=null&&(_.checked=Z&&typeof Z!=="function"&&typeof Z!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(M1(B,"name"),_.name=""+t(B)):_.removeAttribute("name")}function b0(_,J,$,q,Z,X,W,B){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(M1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){v1(_);return}$=$!=null?""+t($):"",J=J!=null?""+t(J):$,B||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:Z,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=B?_.checked:!!q,_.defaultChecked=!!q,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(M1(W,"name"),_.name=W),v1(_)}function J0(_,J,$){J==="number"&&k1(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function c0(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?Y9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||FL||(FL=!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||XL||(XL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||ZL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ZL=!0)}function N0(){var _=R1();return _?`
34
34
 
35
- Check the render method of \``+_+"`.":""}function Y2(_,J,$,q){if(_=_.options,J){J={};for(var Z=0;Z<$.length;Z++)J["$"+$[Z]]=!0;for($=0;$<_.length;$++)Z=J.hasOwnProperty("$"+_[$].value),_[$].selected!==Z&&(_[$].selected=Z),Z&&q&&(_[$].defaultSelected=!0)}else{$=""+X1($),J=null;for(Z=0;Z<_.length;Z++){if(_[Z].value===$){_[Z].selected=!0,q&&(_[Z].defaultSelected=!0);return}J!==null||_[Z].disabled||(J=_[Z])}J!==null&&(J.selected=!0)}}function k0(_,J){for(_=0;_<HL.length;_++){var $=HL[_];if(J[$]!=null){var q=S2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,o3()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,o3())}}J.value===void 0||J.defaultValue===void 0||KL||(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"),KL=!0)}function nJ(_,J){J.value===void 0||J.defaultValue===void 0||YL||(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"),YL=!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=""+X1(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+X1($):""}function k9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(S2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=X1(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),Q0(_)}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 n3(_){return"+ "+" ".repeat(_)}function K3(_){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 e6(_,J){return zL.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function Y7(_,J,$){var q=120-2*$;if(J===null)return n3($)+e6(_,q)+`
36
- `;if(typeof J==="string"){for(var Z=0;Z<J.length&&Z<_.length&&J.charCodeAt(Z)===_.charCodeAt(Z);Z++);return Z>q-8&&10<Z&&(_="..."+_.slice(Z-8),J="..."+J.slice(Z-8)),n3($)+e6(_,q)+`
37
- `+K3($)+e6(J,q)+`
38
- `}return n2($)+e6(_,q)+`
39
- `}function D9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function e3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(S2(_))return"[...]";if(_.$$typeof===p4)return(J=E(_.type))?"<"+J+">":"<...>";var $=D9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var Z=JSON.stringify(q);if(Z!=='"'+q+'"'&&(q=Z),J-=q.length-2,Z=e3(_[q],15>J?J:15),J-=Z.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+Z}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function _6(_,J){return typeof _!=="string"||zL.test(_)?"{"+e3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function u9(_,J,$){var q=120-$.length-_.length,Z=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var W=_6(J[X],120-$.length-X.length-1);q-=X.length+W.length+2,Z.push(X+"="+W)}return Z.length===0?$+"<"+_+`>
35
+ Check the render method of \``+_+"`.":""}function c5(_,J,$,q){if(_=_.options,J){J={};for(var Z=0;Z<$.length;Z++)J["$"+$[Z]]=!0;for($=0;$<_.length;$++)Z=J.hasOwnProperty("$"+_[$].value),_[$].selected!==Z&&(_[$].selected=Z),Z&&q&&(_[$].defaultSelected=!0)}else{$=""+t($),J=null;for(Z=0;Z<_.length;Z++){if(_[Z].value===$){_[Z].selected=!0,q&&(_[Z].defaultSelected=!0);return}J!==null||_[Z].disabled||(J=_[Z])}J!==null&&(J.selected=!0)}}function l2(_,J){for(_=0;_<HL.length;_++){var $=HL[_];if(J[$]!=null){var q=N2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,N0()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,N0())}}J.value===void 0||J.defaultValue===void 0||KL||(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"),KL=!0)}function y0(_,J){J.value===void 0||J.defaultValue===void 0||YL||(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"),YL=!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=""+t(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+t($):""}function D9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(N2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=t(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),v1(_)}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 _6(_){return"+ "+" ".repeat(_)}function W3(_){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 _8(_,J){return zL.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function z7(_,J,$){var q=120-2*$;if(J===null)return _6($)+_8(_,q)+`
36
+ `;if(typeof J==="string"){for(var Z=0;Z<J.length&&Z<_.length&&J.charCodeAt(Z)===_.charCodeAt(Z);Z++);return Z>q-8&&10<Z&&(_="..."+_.slice(Z-8),J="..."+J.slice(Z-8)),_6($)+_8(_,q)+`
37
+ `+W3($)+_8(J,q)+`
38
+ `}return n2($)+_8(_,q)+`
39
+ `}function u9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function J6(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(N2(_))return"[...]";if(_.$$typeof===c4)return(J=E(_.type))?"<"+J+">":"<...>";var $=u9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var Z=JSON.stringify(q);if(Z!=='"'+q+'"'&&(q=Z),J-=q.length-2,Z=J6(_[q],15>J?J:15),J-=Z.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+Z}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function $6(_,J){return typeof _!=="string"||zL.test(_)?"{"+J6(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function b9(_,J,$){var q=120-$.length-_.length,Z=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var W=$6(J[X],120-$.length-X.length-1);q-=X.length+W.length+2,Z.push(X+"="+W)}return Z.length===0?$+"<"+_+`>
40
40
  `:0<q?$+"<"+_+" "+Z.join(" ")+`>
41
41
  `:$+"<"+_+`
42
42
  `+$+" "+Z.join(`
43
43
  `+$+" ")+`
44
44
  `+$+`>
45
- `}function MU(_,J,$){var q="",Z=Y0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete Z[X];var W=120-2*$-X.length-2,B=e3(_[X],W);J.hasOwnProperty(X)?(W=e3(J[X],W),q+=n3($)+X+": "+B+`
46
- `,q+=K3($)+X+": "+W+`
47
- `):q+=n3($)+X+": "+B+`
48
- `}for(var I in Z)Z.hasOwnProperty(I)&&(_=e3(Z[I],120-2*$-I.length-2),q+=K3($)+I+": "+_+`
49
- `);return q}function TU(_,J,$,q){var Z="",X=new Map;for(S in $)$.hasOwnProperty(S)&&X.set(S.toLowerCase(),S);if(X.size===1&&X.has("children"))Z+=u9(_,J,n2(q));else{for(var W in J)if(J.hasOwnProperty(W)&&W!=="children"){var B=120-2*(q+1)-W.length-1,I=X.get(W.toLowerCase());if(I!==void 0){X.delete(W.toLowerCase());var S=J[W];I=$[I];var _1=_6(S,B);B=_6(I,B),typeof S==="object"&&S!==null&&typeof I==="object"&&I!==null&&D9(S)==="Object"&&D9(I)==="Object"&&(2<Object.keys(S).length||2<Object.keys(I).length||-1<_1.indexOf("...")||-1<B.indexOf("..."))?Z+=n2(q+1)+W+`={{
45
+ `}function MU(_,J,$){var q="",Z=Y0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete Z[X];var W=120-2*$-X.length-2,B=J6(_[X],W);J.hasOwnProperty(X)?(W=J6(J[X],W),q+=_6($)+X+": "+B+`
46
+ `,q+=W3($)+X+": "+W+`
47
+ `):q+=_6($)+X+": "+B+`
48
+ `}for(var I in Z)Z.hasOwnProperty(I)&&(_=J6(Z[I],120-2*$-I.length-2),q+=W3($)+I+": "+_+`
49
+ `);return q}function TU(_,J,$,q){var Z="",X=new Map;for(S in $)$.hasOwnProperty(S)&&X.set(S.toLowerCase(),S);if(X.size===1&&X.has("children"))Z+=b9(_,J,n2(q));else{for(var W in J)if(J.hasOwnProperty(W)&&W!=="children"){var B=120-2*(q+1)-W.length-1,I=X.get(W.toLowerCase());if(I!==void 0){X.delete(W.toLowerCase());var S=J[W];I=$[I];var _1=$6(S,B);B=$6(I,B),typeof S==="object"&&S!==null&&typeof I==="object"&&I!==null&&u9(S)==="Object"&&u9(I)==="Object"&&(2<Object.keys(S).length||2<Object.keys(I).length||-1<_1.indexOf("...")||-1<B.indexOf("..."))?Z+=n2(q+1)+W+`={{
50
50
  `+MU(S,I,q+2)+n2(q+1)+`}}
51
- `:(Z+=n3(q+1)+W+"="+_1+`
52
- `,Z+=K3(q+1)+W+"="+B+`
53
- `)}else Z+=n2(q+1)+W+"="+_6(J[W],B)+`
54
- `}X.forEach(function(J1){if(J1!=="children"){var i=120-2*(q+1)-J1.length-1;Z+=K3(q+1)+J1+"="+_6($[J1],i)+`
51
+ `:(Z+=_6(q+1)+W+"="+_1+`
52
+ `,Z+=W3(q+1)+W+"="+B+`
53
+ `)}else Z+=n2(q+1)+W+"="+$6(J[W],B)+`
54
+ `}X.forEach(function(J1){if(J1!=="children"){var i=120-2*(q+1)-J1.length-1;Z+=W3(q+1)+J1+"="+$6($[J1],i)+`
55
55
  `}}),Z=Z===""?n2(q)+"<"+_+`>
56
56
  `:n2(q)+"<"+_+`
57
57
  `+Z+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;Z+=Y7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")Z=_==null?Z+Y7(""+J,null,q+1):Z+Y7(""+J,void 0,q+1);return Z}function $$(_,J){var $=J$(_);if($===null){$="";for(_=_.child;_;)$+=$$(_,J),_=_.sibling;return $}return n2(J)+"<"+$+`>
59
- `}function b9(_,J){var $=_$(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return n2(J)+`...
60
- `+b9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var Z=0;Z<q.length;Z++){var X=q[Z].name;typeof X==="string"&&($+=n2(J)+"<"+X+`>
61
- `,J++)}if(q="",Z=_.fiber.pendingProps,_.fiber.tag===6)q=Y7(Z,_.serverProps,J),J++;else if(X=J$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var W=120-2*q-X.length-2,B="";for(S in Z)if(Z.hasOwnProperty(S)&&S!=="children"){var I=_6(Z[S],15);if(W-=S.length+I.length+2,0>W){B+=" ...";break}B+=" "+S+"="+I}q=n2(q)+"<"+X+B+`>
62
- `,J++}else _.serverProps===null?(q=u9(X,Z,n3(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=TU(X,Z,_.serverProps,J),J++);var S="";Z=_.fiber.child;for(X=0;Z&&X<_.children.length;)W=_.children[X],W.fiber===Z?(S+=b9(W,J),X++):S+=$$(Z,J),Z=Z.sibling;Z&&0<_.children.length&&(S+=n2(J)+`...
63
- `),Z=_.serverTail,_.serverProps===null&&J--;for(_=0;_<Z.length;_++)X=Z[_],S=typeof X==="string"?S+(K3(J)+e6(X,120-2*J)+`
64
- `):S+u9(X.type,X.props,K3(J));return $+q+S}function E9(_){try{return`
65
-
66
- `+b9(_,0)}catch(J){return""}}function Q$(_,J,$){for(var q=J,Z=null,X=0;q;)q===_&&(X=0),Z={fiber:q,children:Z!==null?[Z]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:X},X++,q=q.return;return Z!==null?E9(Z).replaceAll(/^[+-]/gm,">"):""}function h9(_,J){var $=Y0({},_||LL),q={tag:J};if(WL.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),bP.indexOf(J)!==-1&&($.pTagInButtonScope=null),uP.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 EP.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 x9(_,J){J=J||LL;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 Z=(J=V5)?G$(J.return,q):null,X=J!==null&&Z!==null?Q$(Z,J,null):"",W="<"+_+">";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
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;Z+=z7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")Z=_==null?Z+z7(""+J,null,q+1):Z+z7(""+J,void 0,q+1);return Z}function $$(_,J){var $=J$(_);if($===null){$="";for(_=_.child;_;)$+=$$(_,J),_=_.sibling;return $}return n2(J)+"<"+$+`>
59
+ `}function E9(_,J){var $=_$(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return n2(J)+`...
60
+ `+E9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var Z=0;Z<q.length;Z++){var X=q[Z].name;typeof X==="string"&&($+=n2(J)+"<"+X+`>
61
+ `,J++)}if(q="",Z=_.fiber.pendingProps,_.fiber.tag===6)q=z7(Z,_.serverProps,J),J++;else if(X=J$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var W=120-2*q-X.length-2,B="";for(S in Z)if(Z.hasOwnProperty(S)&&S!=="children"){var I=$6(Z[S],15);if(W-=S.length+I.length+2,0>W){B+=" ...";break}B+=" "+S+"="+I}q=n2(q)+"<"+X+B+`>
62
+ `,J++}else _.serverProps===null?(q=b9(X,Z,_6(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=TU(X,Z,_.serverProps,J),J++);var S="";Z=_.fiber.child;for(X=0;Z&&X<_.children.length;)W=_.children[X],W.fiber===Z?(S+=E9(W,J),X++):S+=$$(Z,J),Z=Z.sibling;Z&&0<_.children.length&&(S+=n2(J)+`...
63
+ `),Z=_.serverTail,_.serverProps===null&&J--;for(_=0;_<Z.length;_++)X=Z[_],S=typeof X==="string"?S+(W3(J)+_8(X,120-2*J)+`
64
+ `):S+b9(X.type,X.props,W3(J));return $+q+S}function h9(_){try{return`
65
+
66
+ `+E9(_,0)}catch(J){return""}}function Q$(_,J,$){for(var q=J,Z=null,X=0;q;)q===_&&(X=0),Z={fiber:q,children:Z!==null?[Z]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:X},X++,q=q.return;return Z!==null?h9(Z).replaceAll(/^[+-]/gm,">"):""}function x9(_,J){var $=Y0({},_||LL),q={tag:J};if(WL.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),bP.indexOf(J)!==-1&&($.pTagInButtonScope=null),uP.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 EP.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 m9(_,J){J=J||LL;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 Z=(J=y5)?G$(J.return,q):null,X=J!==null&&Z!==null?Q$(Z,J,null):"",W="<"+_+">";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`,W,q,$,X)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,W,q,X),J&&(_=J.return,Z===null||_===null||Z===_&&_._debugOwner===J._debugOwner||L1(Z,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,q,W)})),!1}function J6(_,J,$){if($||q$("#text",J,!1))return!0;if($="#text|"+J,AQ[$])return!1;AQ[$]=!0;var q=($=V5)?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`,W,q,X),J&&(_=J.return,Z===null||_===null||Z===_&&_._debugOwner===J._debugOwner||H1(Z,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,q,W)})),!1}function Q6(_,J,$){if($||q$("#text",J,!1))return!0;if($="#text|"+J,AQ[$])return!1;AQ[$]=!0;var q=($=y5)?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 _8(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function RU(_){return _.replace(mP,function(J,$){return $.toUpperCase()})}function m9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?y7.hasOwnProperty(J)&&y7[J]||(y7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,RU(J.replace(xP,"ms-")))):hP.test(J)?y7.hasOwnProperty(J)&&y7[J]||(y7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!ML.test($)||uZ.hasOwnProperty($)&&uZ[$]||(uZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(ML,""))),typeof $==="number"&&(isNaN($)?TL||(TL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||RL||(RL=!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||OL.has(J)?J==="float"?_.cssFloat=$:(_0($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function WH(_,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 Z in $)if($.hasOwnProperty(Z)&&!J.hasOwnProperty(Z))for(var X=DZ[Z]||[Z],W=0;W<X.length;W++)q[X[W]]=Z}for(var B in J)if(J.hasOwnProperty(B)&&(!$||$[B]!==J[B]))for(Z=DZ[B]||[B],X=0;X<Z.length;X++)q[Z[X]]=B;B={};for(var I in J)for(Z=DZ[I]||[I],X=0;X<Z.length;X++)B[Z[X]]=I;I={};for(var S in q)if(Z=q[S],(X=B[S])&&Z!==X&&(W=Z+","+X,!I[W])){I[W]=!0,W=console;var _1=J[Z];W.error.call(W,"%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.",_1==null||typeof _1==="boolean"||_1===""?"Removing":"Updating",Z,X)}}for(var J1 in $)!$.hasOwnProperty(J1)||J!=null&&J.hasOwnProperty(J1)||(J1.indexOf("--")===0?_.setProperty(J1,""):J1==="float"?_.cssFloat="":_[J1]="");for(var i in J)S=J[i],J.hasOwnProperty(i)&&$[i]!==S&&m9(_,i,S)}else for(q in J)J.hasOwnProperty(q)&&m9(_,q,J[q])}function g9(_){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 LH(_){return gP.get(_)||_}function DO(_,J){if(H4.call(D7,J)&&D7[J])return!0;if(cP.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=IL.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),D7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),D7[J]=!0}if(pP.test(J)){if(_=J.toLowerCase(),_=IL.hasOwnProperty(_)?_:null,_==null)return D7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),D7[J]=!0)}return!0}function uO(_,J){var $=[],q;for(q in J)DO(_,q)||$.push(q);J=$.map(function(Z){return"`"+Z+"`"}).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 bO(_,J,$,q){if(H4.call($5,J)&&$5[J])return!0;var Z=J.toLowerCase();if(Z==="onfocusin"||Z==="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(Z)?_[Z]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),$5[J]=!0;if(NL.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),$5[J]=!0}else if(NL.test(J))return lP.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),$5[J]=!0;if(dP.test(J)||iP.test(J))return!0;if(Z==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),$5[J]=!0;if(Z==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),$5[J]=!0;if(Z==="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(Z)){if(Z=TQ[Z],Z!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,Z),$5[J]=!0}else if(J!==Z)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,Z),$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(Z=J.toLowerCase().slice(0,5),Z==="data-"||Z==="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 EO(_,J,$){var q=[],Z;for(Z in J)bO(_,Z,J[Z],$)||q.push(Z);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 p9(_){return rP.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function H3(){}function OU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function BH(_){var J=r1(_);if(J&&(_=J.stateNode)){var $=_[J5]||null;_:switch(_=J.stateNode,J.type){case"input":if(y0(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;A1(J,"name"),$=$.querySelectorAll('input[name="'+D1(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var Z=q[J5]||null;if(!Z)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");y0(q,Z.value,Z.defaultValue,Z.defaultValue,Z.checked,Z.defaultChecked,Z.type,Z.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&k1(q)}break _;case"textarea":eJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&Y2(_,!!$.multiple,J,!1)}}}function AH(_,J,$){if(bZ)return _(J,$);bZ=!0;try{var q=_(J);return q}finally{if(bZ=!1,u7!==null||b7!==null){if(I7(),u7&&(J=u7,_=b7,b7=u7=null,BH(J),_))for(J=0;J<_.length;J++)BH(_[J])}}}function c9(_,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 MH(){if(RQ)return RQ;var _,J=hZ,$=J.length,q,Z="value"in M6?M6.value:M6.textContent,X=Z.length;for(_=0;_<$&&J[_]===Z[_];_++);var W=$-_;for(q=1;q<=W&&J[$-q]===Z[X-q];q++);return RQ=Z.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 TH(){return!1}function Y5(_){function J($,q,Z,X,W){this._reactName=$,this._targetInst=Z,this.type=q,this.nativeEvent=X,this.target=W,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$:TH,this.isPropagationStopped=TH,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 hO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=GN[_])?!!J[_]:!1}function IU(){return hO}function RH(_,J){switch(_){case"keyup":return MN.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==fL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function xO(_,J){switch(_){case"compositionend":return OH(J);case"keypress":if(J.which!==vL)return null;return yL=!0,VL;case"textInput":return _=J.data,_===VL&&yL?null:_;default:return null}}function mO(_,J){if(E7)return _==="compositionend"||!pZ&&RH(_,J)?(_=MH(),RQ=hZ=M6=null,E7=!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 jL&&J.locale!=="ko"?null:J.data;default:return null}}function IH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!RN[_.type]:J==="textarea"?!0:!1}function gO(_){if(!a4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function PH(_,J,$,q){u7?b7?b7.push(q):b7=[q]:u7=q,J=_Q(J,"onChange"),0<J.length&&($=new OQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function pO(_){UW(_,0)}function X$(_){var J=a1(_);if(k1(J))return _}function NH(_,J){if(_==="change")return J}function wH(){f_&&(f_.detachEvent("onpropertychange",CH),j_=f_=null)}function CH(_){if(_.propertyName==="value"&&X$(j_)){var J=[];PH(J,j_,_,OU(_)),AH(pO,J)}}function cO(_,J,$){_==="focusin"?(wH(),f_=J,j_=$,f_.attachEvent("onpropertychange",CH)):_==="focusout"&&wH()}function lO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return X$(j_)}function dO(_,J){if(_==="click")return X$(J)}function iO(_,J){if(_==="input"||_==="change")return X$(J)}function rO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function l9(_,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 Z=$[q];if(!H4.call(J,Z)||!Q5(_[Z],J[Z]))return!1}return!0}function SH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function fH(_,J){var $=SH(_);_=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}$=SH($)}}function jH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?jH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function vH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=g1(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=g1(_.document)}return J}function PU(_){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;lZ||h7==null||h7!==g1(q)||(q=h7,("selectionStart"in q)&&PU(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}),v_&&l9(v_,q)||(v_=q,q=_Q(cZ,"onSelect"),0<q.length&&(J=new OQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=h7)))}function J8(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function $8(_){if(dZ[_])return dZ[_];if(!x7[_])return _;var J=x7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in DL)return dZ[_]=J[$];return _}function F4(_,J){xL.set(_,J),H2(J,[_])}function aO(_){for(var J=PQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(S2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==PQ&&J!==tZ)return aZ;J=tZ}else return aZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==PQ&&J!==sZ)return aZ;J=sZ}}return J}function NU(_,J,$,q){for(var Z in _)H4.call(_,Z)&&Z[0]!=="_"&&C4(Z,_[Z],J,$,q)}function C4(_,J,$,q,Z){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===p4){var X=E(J.type)||"…",W=J.key;J=J.props;var B=Object.keys(J),I=B.length;if(W==null&&I===0){J="<"+X+" />";break}if(3>q||I===1&&B[0]==="children"&&W==null){J="<"+X+" … />";break}$.push([Z+"  ".repeat(q)+_,"<"+X]),W!==null&&C4("key",W,$,q+1,Z),_=!1;for(var S in J)S==="children"?J.children!=null&&(!S2(J.children)||0<J.children.length)&&(_=!0):H4.call(J,S)&&S[0]!=="_"&&C4(S,J[S],$,q+1,Z);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(S=aO(J),S===sZ||S===PQ){J=JSON.stringify(J);break}else if(S===tZ){$.push([Z+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],C4(X[0],X[1],$,q+1,Z);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,C4(_,J.value,$,q,Z),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,C4(_,J.reason,$,q,Z),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}X==="Object"&&(S=Object.getPrototypeOf(J))&&typeof S.constructor==="function"&&(X=S.constructor.name),$.push([Z+"  ".repeat(q)+_,X==="Object"?3>q?"":"…":X]),3>q&&NU(J,$,q+1,Z);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===SN?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([Z+"  ".repeat(q)+_,J])}function yH(_,J,$,q){var Z=!0;for(W in _)W in J||($.push([NQ+"  ".repeat(q)+W,"…"]),Z=!1);for(var X in J)if(X in _){var W=_[X],B=J[X];if(W!==B){if(q===0&&X==="children")Z="  ".repeat(q)+X,$.push([NQ+Z,"…"],[wQ+Z,"…"]);else{if(!(3<=q)){if(typeof W==="object"&&typeof B==="object"&&W!==null&&B!==null&&W.$$typeof===B.$$typeof)if(B.$$typeof===p4){if(W.type===B.type&&W.key===B.key){W=E(B.type)||"…",Z="  ".repeat(q)+X,W="<"+W+" … />",$.push([NQ+Z,W],[wQ+Z,W]),Z=!1;continue}}else{var I=Object.prototype.toString.call(W),S=Object.prototype.toString.call(B);if(I===S&&(S==="[object Object]"||S==="[object Array]")){I=[pL+"  ".repeat(q)+X,S==="[object Array]"?"Array":""],$.push(I),S=$.length,yH(W,B,$,q+1)?S===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):Z=!1;continue}}else if(typeof W==="function"&&typeof B==="function"&&W.name===B.name&&W.length===B.length&&(I=Function.prototype.toString.call(W),S=Function.prototype.toString.call(B),I===S)){W=B.name===""?"() => {}":B.name+"() {}",$.push([pL+"  ".repeat(q)+X,W+" Referentially unequal function closure. Consider memoization."]);continue}}C4(X,W,$,q,NQ),C4(X,B,$,q,wQ)}Z=!1}}else $.push([wQ+"  ".repeat(q)+X,"…"]),Z=!1;return Z}function P5(_){L0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function S4(_,J,$,q){g0&&(R6.start=J,R6.end=$,R3.color="warning",R3.tooltipText=q,R3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,R6)):performance.measure(q,R6))}function K$(_,J,$){S4(_,J,$,"Reconnect")}function H$(_,J,$,q,Z){var X=g(_);if(X!==null&&g0){var{alternate:W,actualDuration:B}=_;if(W===null||W.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 S=_.memoizedProps;B=_._debugTask,S!==null&&W!==null&&W.memoizedProps!==S?(I=[fN],S=yH(W.memoizedProps,S,I,0),1<I.length&&(S&&!T6&&(W.lanes&Z)===0&&100<_.actualDuration?(T6=!0,I[0]=jN,R3.color="warning",R3.tooltipText=cL):(R3.color=q,R3.tooltipText=X),R3.properties=I,R6.start=J,R6.end=$,B!=null?B.run(performance.measure.bind(performance,"​"+X,R6)):performance.measure("​"+X,R6))):B!=null?B.run(console.timeStamp.bind(console,X,J,$,c5,void 0,q)):console.timeStamp(X,J,$,c5,void 0,q)}}function wU(_,J,$,q){if(g0){var Z=g(_);if(Z!==null){for(var X=null,W=[],B=0;B<q.length;B++){var I=q[B];X==null&&I.source!==null&&(X=I.source._debugTask),I=I.value,W.push(["Error",typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I)])}_.key!==null&&C4("key",_.key,W,0,""),_.memoizedProps!==null&&NU(_.memoizedProps,W,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:c5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},X?X.run(performance.measure.bind(performance,"​"+Z,_)):performance.measure("​"+Z,_)}}}function f4(_,J,$,q,Z){if(Z!==null){if(g0){var X=g(_);if(X!==null){q=[];for(var W=0;W<Z.length;W++){var B=Z[W].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&&NU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:c5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+X,J)):performance.measure("​"+X,J)}}}else X=g(_),X!==null&&g0&&(Z=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,c5,void 0,Z)):console.timeStamp(X,J,$,c5,void 0,Z))}function sO(_,J,$,q){if(g0&&!(J<=_)){var Z=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,L0,z0,Z)):console.timeStamp($,_,J,L0,z0,Z)}}function kH(_,J,$,q){!g0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,L0,z0,$)):console.timeStamp("Prewarm",_,J,L0,z0,$))}function DH(_,J,$,q){!g0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,L0,z0,$)):console.timeStamp("Suspended",_,J,L0,z0,$))}function tO(_,J,$,q,Z,X){if(g0&&!(J<=_)){$=[];for(var W=0;W<q.length;W++){var B=q[W].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:Z?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function CU(_,J,$,q){!g0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,L0,z0,"error")):console.timeStamp("Errored",_,J,L0,z0,"error"))}function oO(_,J,$,q){!g0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,L0,z0,"secondary-light")):console.timeStamp($,_,J,L0,z0,"secondary-light"))}function uH(_,J,$,q,Z){if(g0&&!(J<=_)){for(var X=[],W=0;W<$.length;W++){var B=$[W].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}}},Z?Z.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function d9(_,J,$){!g0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,L0,z0,"secondary-dark")):console.timeStamp("Animating",_,J,L0,z0,"secondary-dark"))}function Y$(){for(var _=m7,J=oZ=m7=0;J<_;){var $=l5[J];l5[J++]=null;var q=l5[J];l5[J++]=null;var Z=l5[J];l5[J++]=null;var X=l5[J];if(l5[J++]=null,q!==null&&Z!==null){var W=q.pending;W===null?Z.next=Z:(Z.next=W.next,W.next=Z),q.pending=Z}X!==0&&bH($,Z,X)}}function z$(_,J,$,q){l5[m7++]=_,l5[m7++]=J,l5[m7++]=$,l5[m7++]=q,oZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function SU(_,J,$,q){return z$(_,J,$,q),W$(_)}function d2(_,J){return z$(_,null,null,J),W$(_)}function bH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var Z=!1,X=_.return;X!==null;)X.childLanes|=$,q=X.alternate,q!==null&&(q.childLanes|=$),X.tag===22&&(_=X.stateNode,_===null||_._visibility&V_||(Z=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,Z&&J!==null&&(Z=31-_5($),_=X.hiddenUpdates,q=_[Z],q===null?_[Z]=[J]:q.push(J),J.lane=$|536870912),X):null}function W$(_){if(qJ>lN)throw V8=qJ=0,UJ=vF=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.");V8>dN&&(V8=0,UJ=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&&nz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&nz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function Q8(_){if(d5===null)return _;var J=d5(_);return J===void 0?_:J.current}function fU(_){if(d5===null)return _;var J=d5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=Q8(_.render),_.render!==J)?(J={$$typeof:T_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function EH(_,J){if(d5===null)return!1;var $=_.elementType;J=J.type;var q=!1,Z=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:Z===v5&&(q=!0);break;case 11:Z===T_?q=!0:Z===v5&&(q=!0);break;case 14:case 15:Z===HQ?q=!0:Z===v5&&(q=!0);break;default:return!1}return q&&(_=d5($),_!==void 0&&_===d5(J))?!0:!1}function hH(_){d5!==null&&typeof WeakSet==="function"&&(g7===null&&(g7=new WeakSet),g7.add(_))}function xH(_,J,$){do{var q=_,Z=q.alternate,X=q.child,W=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(d5===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(q=!1,I!==null&&(I=d5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(B===1?q=!0:S=!0))),g7!==null&&(g7.has(_)||Z!==null&&g7.has(Z))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||S)Z=d2(_,2),Z!==null&&e0(Z,_,2);if(X===null||q||xH(X,J,$),W===null)break;_=W}while(1)}function nO(_,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,lL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function jU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function Y3(_,J){var $=_.alternate;switch($===null?($=O(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=Q8(_.type);break;case 1:$.type=Q8(_.type);break;case 11:$.type=fU(_.type)}return $}function mH(_,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 vU(_,J,$,q,Z,X){var W=0,B=_;if(typeof _==="function")jU(_)&&(W=1),B=Q8(B);else if(typeof _==="string")W=l(),W=ZP(_,$,W)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case IZ:return J=O(31,$,J,Z),J.elementType=IZ,J.lanes=X,J;case j7:return q8($.children,Z,X,J);case KQ:W=8,Z|=r2,Z|=z4;break;case MZ:return _=$,q=Z,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=O(12,_,J,q|G0),J.elementType=MZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case RZ:return J=O(13,$,J,Z),J.elementType=RZ,J.lanes=X,J;case OZ:return J=O(19,$,J,Z),J.elementType=OZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case c4:W=10;break _;case TZ:W=9;break _;case T_:W=11,B=fU(B);break _;case HQ:W=14;break _;case v5:W=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":S2(_)?$="array":_!==void 0&&_.$$typeof===p4?($="<"+(E(_.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(W=q?D(q):null)&&(B+=`
71
+ This will cause a hydration error.%s`,J,$),!1}function J8(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function RU(_){return _.replace(mP,function(J,$){return $.toUpperCase()})}function g9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?k7.hasOwnProperty(J)&&k7[J]||(k7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,RU(J.replace(xP,"ms-")))):hP.test(J)?k7.hasOwnProperty(J)&&k7[J]||(k7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!ML.test($)||uZ.hasOwnProperty($)&&uZ[$]||(uZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(ML,""))),typeof $==="number"&&(isNaN($)?TL||(TL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||RL||(RL=!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||OL.has(J)?J==="float"?_.cssFloat=$:(g1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function WH(_,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 Z in $)if($.hasOwnProperty(Z)&&!J.hasOwnProperty(Z))for(var X=DZ[Z]||[Z],W=0;W<X.length;W++)q[X[W]]=Z}for(var B in J)if(J.hasOwnProperty(B)&&(!$||$[B]!==J[B]))for(Z=DZ[B]||[B],X=0;X<Z.length;X++)q[Z[X]]=B;B={};for(var I in J)for(Z=DZ[I]||[I],X=0;X<Z.length;X++)B[Z[X]]=I;I={};for(var S in q)if(Z=q[S],(X=B[S])&&Z!==X&&(W=Z+","+X,!I[W])){I[W]=!0,W=console;var _1=J[Z];W.error.call(W,"%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.",_1==null||typeof _1==="boolean"||_1===""?"Removing":"Updating",Z,X)}}for(var J1 in $)!$.hasOwnProperty(J1)||J!=null&&J.hasOwnProperty(J1)||(J1.indexOf("--")===0?_.setProperty(J1,""):J1==="float"?_.cssFloat="":_[J1]="");for(var i in J)S=J[i],J.hasOwnProperty(i)&&$[i]!==S&&g9(_,i,S)}else for(q in J)J.hasOwnProperty(q)&&g9(_,q,J[q])}function p9(_){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 LH(_){return gP.get(_)||_}function DO(_,J){if(Y4.call(u7,J)&&u7[J])return!0;if(cP.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=IL.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),u7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),u7[J]=!0}if(pP.test(J)){if(_=J.toLowerCase(),_=IL.hasOwnProperty(_)?_:null,_==null)return u7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),u7[J]=!0)}return!0}function uO(_,J){var $=[],q;for(q in J)DO(_,q)||$.push(q);J=$.map(function(Z){return"`"+Z+"`"}).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 bO(_,J,$,q){if(Y4.call($5,J)&&$5[J])return!0;var Z=J.toLowerCase();if(Z==="onfocusin"||Z==="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(Z)?_[Z]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),$5[J]=!0;if(NL.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),$5[J]=!0}else if(NL.test(J))return lP.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),$5[J]=!0;if(dP.test(J)||iP.test(J))return!0;if(Z==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),$5[J]=!0;if(Z==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),$5[J]=!0;if(Z==="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(Z)){if(Z=TQ[Z],Z!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,Z),$5[J]=!0}else if(J!==Z)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,Z),$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(Z=J.toLowerCase().slice(0,5),Z==="data-"||Z==="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 EO(_,J,$){var q=[],Z;for(Z in J)bO(_,Z,J[Z],$)||q.push(Z);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 c9(_){return rP.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function L3(){}function OU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function BH(_){var J=a1(_);if(J&&(_=J.stateNode)){var $=_[J5]||null;_:switch(_=J.stateNode,J.type){case"input":if(Q0(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;M1(J,"name"),$=$.querySelectorAll('input[name="'+D1(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var Z=q[J5]||null;if(!Z)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Q0(q,Z.value,Z.defaultValue,Z.defaultValue,Z.checked,Z.defaultChecked,Z.type,Z.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&U0(q)}break _;case"textarea":eJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&c5(_,!!$.multiple,J,!1)}}}function AH(_,J,$){if(bZ)return _(J,$);bZ=!0;try{var q=_(J);return q}finally{if(bZ=!1,b7!==null||E7!==null){if(P7(),b7&&(J=b7,_=E7,E7=b7=null,BH(J),_))for(J=0;J<_.length;J++)BH(_[J])}}}function l9(_,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 MH(){if(RQ)return RQ;var _,J=hZ,$=J.length,q,Z="value"in R6?R6.value:R6.textContent,X=Z.length;for(_=0;_<$&&J[_]===Z[_];_++);var W=$-_;for(q=1;q<=W&&J[$-q]===Z[X-q];q++);return RQ=Z.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 TH(){return!1}function z5(_){function J($,q,Z,X,W){this._reactName=$,this._targetInst=Z,this.type=q,this.nativeEvent=X,this.target=W,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$:TH,this.isPropagationStopped=TH,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 hO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=GN[_])?!!J[_]:!1}function IU(){return hO}function RH(_,J){switch(_){case"keyup":return MN.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==fL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function xO(_,J){switch(_){case"compositionend":return OH(J);case"keypress":if(J.which!==vL)return null;return yL=!0,VL;case"textInput":return _=J.data,_===VL&&yL?null:_;default:return null}}function mO(_,J){if(h7)return _==="compositionend"||!pZ&&RH(_,J)?(_=MH(),RQ=hZ=R6=null,h7=!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 jL&&J.locale!=="ko"?null:J.data;default:return null}}function IH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!RN[_.type]:J==="textarea"?!0:!1}function gO(_){if(!s4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function PH(_,J,$,q){b7?E7?E7.push(q):E7=[q]:b7=q,J=_Q(J,"onChange"),0<J.length&&($=new OQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function pO(_){UW(_,0)}function X$(_){var J=s1(_);if(U0(J))return _}function NH(_,J){if(_==="change")return J}function wH(){j_&&(j_.detachEvent("onpropertychange",CH),v_=j_=null)}function CH(_){if(_.propertyName==="value"&&X$(v_)){var J=[];PH(J,v_,_,OU(_)),AH(pO,J)}}function cO(_,J,$){_==="focusin"?(wH(),j_=J,v_=$,j_.attachEvent("onpropertychange",CH)):_==="focusout"&&wH()}function lO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return X$(v_)}function dO(_,J){if(_==="click")return X$(J)}function iO(_,J){if(_==="input"||_==="change")return X$(J)}function rO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function d9(_,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 Z=$[q];if(!Y4.call(J,Z)||!Q5(_[Z],J[Z]))return!1}return!0}function SH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function fH(_,J){var $=SH(_);_=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}$=SH($)}}function jH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?jH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function vH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=k1(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=k1(_.document)}return J}function PU(_){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;lZ||x7==null||x7!==k1(q)||(q=x7,("selectionStart"in q)&&PU(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}),V_&&d9(V_,q)||(V_=q,q=_Q(cZ,"onSelect"),0<q.length&&(J=new OQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=x7)))}function $8(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function Q8(_){if(dZ[_])return dZ[_];if(!m7[_])return _;var J=m7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in DL)return dZ[_]=J[$];return _}function X4(_,J){xL.set(_,J),U2(J,[_])}function aO(_){for(var J=PQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(N2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==PQ&&J!==tZ)return aZ;J=tZ}else return aZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==PQ&&J!==sZ)return aZ;J=sZ}}return J}function NU(_,J,$,q){for(var Z in _)Y4.call(_,Z)&&Z[0]!=="_"&&S4(Z,_[Z],J,$,q)}function S4(_,J,$,q,Z){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===c4){var X=E(J.type)||"…",W=J.key;J=J.props;var B=Object.keys(J),I=B.length;if(W==null&&I===0){J="<"+X+" />";break}if(3>q||I===1&&B[0]==="children"&&W==null){J="<"+X+" … />";break}$.push([Z+"  ".repeat(q)+_,"<"+X]),W!==null&&S4("key",W,$,q+1,Z),_=!1;for(var S in J)S==="children"?J.children!=null&&(!N2(J.children)||0<J.children.length)&&(_=!0):Y4.call(J,S)&&S[0]!=="_"&&S4(S,J[S],$,q+1,Z);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(S=aO(J),S===sZ||S===PQ){J=JSON.stringify(J);break}else if(S===tZ){$.push([Z+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],S4(X[0],X[1],$,q+1,Z);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,S4(_,J.value,$,q,Z),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,S4(_,J.reason,$,q,Z),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}X==="Object"&&(S=Object.getPrototypeOf(J))&&typeof S.constructor==="function"&&(X=S.constructor.name),$.push([Z+"  ".repeat(q)+_,X==="Object"?3>q?"":"…":X]),3>q&&NU(J,$,q+1,Z);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===SN?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([Z+"  ".repeat(q)+_,J])}function yH(_,J,$,q){var Z=!0;for(W in _)W in J||($.push([NQ+"  ".repeat(q)+W,"…"]),Z=!1);for(var X in J)if(X in _){var W=_[X],B=J[X];if(W!==B){if(q===0&&X==="children")Z="  ".repeat(q)+X,$.push([NQ+Z,"…"],[wQ+Z,"…"]);else{if(!(3<=q)){if(typeof W==="object"&&typeof B==="object"&&W!==null&&B!==null&&W.$$typeof===B.$$typeof)if(B.$$typeof===c4){if(W.type===B.type&&W.key===B.key){W=E(B.type)||"…",Z="  ".repeat(q)+X,W="<"+W+" … />",$.push([NQ+Z,W],[wQ+Z,W]),Z=!1;continue}}else{var I=Object.prototype.toString.call(W),S=Object.prototype.toString.call(B);if(I===S&&(S==="[object Object]"||S==="[object Array]")){I=[pL+"  ".repeat(q)+X,S==="[object Array]"?"Array":""],$.push(I),S=$.length,yH(W,B,$,q+1)?S===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):Z=!1;continue}}else if(typeof W==="function"&&typeof B==="function"&&W.name===B.name&&W.length===B.length&&(I=Function.prototype.toString.call(W),S=Function.prototype.toString.call(B),I===S)){W=B.name===""?"() => {}":B.name+"() {}",$.push([pL+"  ".repeat(q)+X,W+" Referentially unequal function closure. Consider memoization."]);continue}}S4(X,W,$,q,NQ),S4(X,B,$,q,wQ)}Z=!1}}else $.push([wQ+"  ".repeat(q)+X,"…"]),Z=!1;return Z}function N5(_){W0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function f4(_,J,$,q){x0&&(I6.start=J,I6.end=$,N3.color="warning",N3.tooltipText=q,N3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,I6)):performance.measure(q,I6))}function K$(_,J,$){f4(_,J,$,"Reconnect")}function H$(_,J,$,q,Z){var X=x(_);if(X!==null&&x0){var{alternate:W,actualDuration:B}=_;if(W===null||W.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 S=_.memoizedProps;B=_._debugTask,S!==null&&W!==null&&W.memoizedProps!==S?(I=[fN],S=yH(W.memoizedProps,S,I,0),1<I.length&&(S&&!O6&&(W.lanes&Z)===0&&100<_.actualDuration?(O6=!0,I[0]=jN,N3.color="warning",N3.tooltipText=cL):(N3.color=q,N3.tooltipText=X),N3.properties=I,I6.start=J,I6.end=$,B!=null?B.run(performance.measure.bind(performance,"​"+X,I6)):performance.measure("​"+X,I6))):B!=null?B.run(console.timeStamp.bind(console,X,J,$,d5,void 0,q)):console.timeStamp(X,J,$,d5,void 0,q)}}function wU(_,J,$,q){if(x0){var Z=x(_);if(Z!==null){for(var X=null,W=[],B=0;B<q.length;B++){var I=q[B];X==null&&I.source!==null&&(X=I.source._debugTask),I=I.value,W.push(["Error",typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I)])}_.key!==null&&S4("key",_.key,W,0,""),_.memoizedProps!==null&&NU(_.memoizedProps,W,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:d5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},X?X.run(performance.measure.bind(performance,"​"+Z,_)):performance.measure("​"+Z,_)}}}function j4(_,J,$,q,Z){if(Z!==null){if(x0){var X=x(_);if(X!==null){q=[];for(var W=0;W<Z.length;W++){var B=Z[W].value;q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_.key!==null&&S4("key",_.key,q,0,""),_.memoizedProps!==null&&NU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:d5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+X,J)):performance.measure("​"+X,J)}}}else X=x(_),X!==null&&x0&&(Z=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,d5,void 0,Z)):console.timeStamp(X,J,$,d5,void 0,Z))}function sO(_,J,$,q){if(x0&&!(J<=_)){var Z=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,W0,z0,Z)):console.timeStamp($,_,J,W0,z0,Z)}}function kH(_,J,$,q){!x0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,W0,z0,$)):console.timeStamp("Prewarm",_,J,W0,z0,$))}function DH(_,J,$,q){!x0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,W0,z0,$)):console.timeStamp("Suspended",_,J,W0,z0,$))}function tO(_,J,$,q,Z,X){if(x0&&!(J<=_)){$=[];for(var W=0;W<q.length;W++){var B=q[W].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:Z?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function CU(_,J,$,q){!x0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,W0,z0,"error")):console.timeStamp("Errored",_,J,W0,z0,"error"))}function oO(_,J,$,q){!x0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,W0,z0,"secondary-light")):console.timeStamp($,_,J,W0,z0,"secondary-light"))}function uH(_,J,$,q,Z){if(x0&&!(J<=_)){for(var X=[],W=0;W<$.length;W++){var B=$[W].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}}},Z?Z.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function i9(_,J,$){!x0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,W0,z0,"secondary-dark")):console.timeStamp("Animating",_,J,W0,z0,"secondary-dark"))}function Y$(){for(var _=g7,J=oZ=g7=0;J<_;){var $=i5[J];i5[J++]=null;var q=i5[J];i5[J++]=null;var Z=i5[J];i5[J++]=null;var X=i5[J];if(i5[J++]=null,q!==null&&Z!==null){var W=q.pending;W===null?Z.next=Z:(Z.next=W.next,W.next=Z),q.pending=Z}X!==0&&bH($,Z,X)}}function z$(_,J,$,q){i5[g7++]=_,i5[g7++]=J,i5[g7++]=$,i5[g7++]=q,oZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function SU(_,J,$,q){return z$(_,J,$,q),W$(_)}function d2(_,J){return z$(_,null,null,J),W$(_)}function bH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var Z=!1,X=_.return;X!==null;)X.childLanes|=$,q=X.alternate,q!==null&&(q.childLanes|=$),X.tag===22&&(_=X.stateNode,_===null||_._visibility&y_||(Z=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,Z&&J!==null&&(Z=31-_5($),_=X.hiddenUpdates,q=_[Z],q===null?_[Z]=[J]:q.push(J),J.lane=$|536870912),X):null}function W$(_){if(UJ>lN)throw y8=UJ=0,GJ=vF=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");y8>dN&&(y8=0,GJ=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&&nz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&nz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function q8(_){if(r5===null)return _;var J=r5(_);return J===void 0?_:J.current}function fU(_){if(r5===null)return _;var J=r5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=q8(_.render),_.render!==J)?(J={$$typeof:R_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function EH(_,J){if(r5===null)return!1;var $=_.elementType;J=J.type;var q=!1,Z=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:Z===V5&&(q=!0);break;case 11:Z===R_?q=!0:Z===V5&&(q=!0);break;case 14:case 15:Z===HQ?q=!0:Z===V5&&(q=!0);break;default:return!1}return q&&(_=r5($),_!==void 0&&_===r5(J))?!0:!1}function hH(_){r5!==null&&typeof WeakSet==="function"&&(p7===null&&(p7=new WeakSet),p7.add(_))}function xH(_,J,$){do{var q=_,Z=q.alternate,X=q.child,W=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(r5===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(q=!1,I!==null&&(I=r5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(B===1?q=!0:S=!0))),p7!==null&&(p7.has(_)||Z!==null&&p7.has(Z))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||S)Z=d2(_,2),Z!==null&&_2(Z,_,2);if(X===null||q||xH(X,J,$),W===null)break;_=W}while(1)}function nO(_,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,lL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function jU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function B3(_,J){var $=_.alternate;switch($===null?($=O(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=q8(_.type);break;case 1:$.type=q8(_.type);break;case 11:$.type=fU(_.type)}return $}function mH(_,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 vU(_,J,$,q,Z,X){var W=0,B=_;if(typeof _==="function")jU(_)&&(W=1),B=q8(B);else if(typeof _==="string")W=c(),W=ZP(_,$,W)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case IZ:return J=O(31,$,J,Z),J.elementType=IZ,J.lanes=X,J;case v7:return U8($.children,Z,X,J);case KQ:W=8,Z|=r2,Z|=W4;break;case MZ:return _=$,q=Z,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=O(12,_,J,q|G0),J.elementType=MZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case RZ:return J=O(13,$,J,Z),J.elementType=RZ,J.lanes=X,J;case OZ:return J=O(19,$,J,Z),J.elementType=OZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case l4:W=10;break _;case TZ:W=9;break _;case R_:W=11,B=fU(B);break _;case HQ:W=14;break _;case V5:W=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":N2(_)?$="array":_!==void 0&&_.$$typeof===c4?($="<"+(E(_.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(W=q?u(q):null)&&(B+=`
72
72
 
73
- Check the render method of \``+W+"`."),W=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=O(W,$,J,Z),J.elementType=_,J.type=B,J.lanes=X,J._debugOwner=q,J}function L$(_,J,$){return J=vU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function q8(_,J,$,q){return _=O(7,_,q,J),_.lanes=$,_}function VU(_,J,$){return _=O(6,_,null,J),_.lanes=$,_}function gH(_){var J=O(18,null,null,s1);return J.stateNode=_,J}function yU(_,J,$){return J=O(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function N5(_,J){if(typeof _==="object"&&_!==null){var $=nZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:T1(J)},nZ.set(_,J),J}return{value:_,source:J,stack:T1(J)}}function z3(_,J){$6(),p7[c7++]=y_,p7[c7++]=CQ,CQ=_,y_=J}function pH(_,J,$){$6(),i5[r5++]=I3,i5[r5++]=P3,i5[r5++]=A8,A8=_;var q=I3;_=P3;var Z=32-_5(q)-1;q&=~(1<<Z),$+=1;var X=32-_5(J)+Z;if(30<X){var W=Z-Z%5;X=(q&(1<<W)-1).toString(32),q>>=W,Z-=W,I3=1<<32-_5(J)+Z|$<<Z|q,P3=X+_}else I3=1<<X|$<<Z|q,P3=_}function kU(_){$6(),_.return!==null&&(z3(_,1),pH(_,1,0))}function DU(_){for(;_===CQ;)CQ=p7[--c7],p7[c7]=null,y_=p7[--c7],p7[c7]=null;for(;_===A8;)A8=i5[--r5],i5[r5]=null,P3=i5[--r5],i5[r5]=null,I3=i5[--r5],i5[r5]=null}function cH(){return $6(),A8!==null?{id:I3,overflow:P3}:null}function lH(_,J){$6(),i5[r5++]=I3,i5[r5++]=P3,i5[r5++]=A8,I3=J.id,P3=J.overflow,A8=_}function $6(){A0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function U8(_,J){if(_.return===null){if(k5===null)k5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(k5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");k5.distanceFromLeaf>J&&(k5.distanceFromLeaf=J)}return k5}var $=U8(_.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 dH(){A0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function B$(_,J){s4||(_=U8(_,0),_.serverProps=null,J!==null&&(J=PW(J),_.serverTail.push(J)))}function Q6(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=k5;throw q!==null&&(k5=null,$=E9(q)),i9(N5(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 \``+W+"`."),W=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=O(W,$,J,Z),J.elementType=_,J.type=B,J.lanes=X,J._debugOwner=q,J}function L$(_,J,$){return J=vU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function U8(_,J,$,q){return _=O(7,_,q,J),_.lanes=$,_}function VU(_,J,$){return _=O(6,_,null,J),_.lanes=$,_}function gH(_){var J=O(18,null,null,t1);return J.stateNode=_,J}function yU(_,J,$){return J=O(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 $=nZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:T1(J)},nZ.set(_,J),J}return{value:_,source:J,stack:T1(J)}}function A3(_,J){q6(),c7[l7++]=k_,c7[l7++]=CQ,CQ=_,k_=J}function pH(_,J,$){q6(),a5[s5++]=C3,a5[s5++]=S3,a5[s5++]=M8,M8=_;var q=C3;_=S3;var Z=32-_5(q)-1;q&=~(1<<Z),$+=1;var X=32-_5(J)+Z;if(30<X){var W=Z-Z%5;X=(q&(1<<W)-1).toString(32),q>>=W,Z-=W,C3=1<<32-_5(J)+Z|$<<Z|q,S3=X+_}else C3=1<<X|$<<Z|q,S3=_}function kU(_){q6(),_.return!==null&&(A3(_,1),pH(_,1,0))}function DU(_){for(;_===CQ;)CQ=c7[--l7],c7[l7]=null,k_=c7[--l7],c7[l7]=null;for(;_===M8;)M8=a5[--s5],a5[s5]=null,S3=a5[--s5],a5[s5]=null,C3=a5[--s5],a5[s5]=null}function cH(){return q6(),M8!==null?{id:C3,overflow:S3}:null}function lH(_,J){q6(),a5[s5++]=C3,a5[s5++]=S3,a5[s5++]=M8,C3=J.id,S3=J.overflow,M8=_}function q6(){A0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function G8(_,J){if(_.return===null){if(D5===null)D5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(D5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");D5.distanceFromLeaf>J&&(D5.distanceFromLeaf=J)}return D5}var $=G8(_.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 dH(){A0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function B$(_,J){t4||(_=G8(_,0),_.serverProps=null,J!==null&&(J=PW(J),_.serverTail.push(J)))}function U6(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=D5;throw q!==null&&(D5=null,$=h9(q)),r9(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:
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 \``+W+"`."),W=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`+$),_)),eZ}function iH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[p2]=_,J[J5]=q,_Z($,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;$<GJ.length;$++)M0(GJ[$],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":I5("input",q),M0("invalid",J),q0(J,q),$0(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":N0(J,q);break;case"select":I5("select",q),M0("invalid",J),k0(J,q);break;case"textarea":I5("textarea",q),M0("invalid",J),nJ(J,q),k9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||XW(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=H3),J=!0):J=!1,J||Q6(_,!0)}function rH(_){for(c2=_.return;c2;)switch(c2.tag){case 5:case 31:case 13:a5=!1;return;case 27:case 3:a5=!0;return;default:c2=c2.return}}function z7(_){if(_!==c2)return!1;if(!A0)return rH(_),A0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||UZ(_.type,_.memoizedProps);$=!$}if($&&p0){for($=p0;$;){var q=U8(_,0),Z=PW($);q.serverTail.push(Z),$=Z.type==="Suspense"?XZ($):j5($.nextSibling)}Q6(_)}if(rH(_),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.");p0=XZ(_)}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.");p0=XZ(_)}else J===27?(J=p0,z6(_.type)?(_=pF,pF=null,p0=_):p0=J):p0=c2?j5(_.stateNode.nextSibling):null;return!0}function G8(){p0=c2=null,s4=A0=!1}function uU(){var _=I6;return _!==null&&(Z5===null?Z5=_:Z5.push.apply(Z5,_),I6=null),_}function i9(_){I6===null?I6=[_]:I6.push(_)}function bU(){var _=k5;if(_!==null){k5=null;for(var J=E9(_);0<_.children.length;)_=_.children[0];L1(_.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`+$),_)),eZ}function iH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[g2]=_,J[J5]=q,_Z($,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;$<ZJ.length;$++)M0(ZJ[$],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":Y5("input",q),M0("invalid",J),c1(J,q),b0(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":c0(J,q);break;case"select":Y5("select",q),M0("invalid",J),l2(J,q);break;case"textarea":Y5("textarea",q),M0("invalid",J),y0(J,q),D9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||XW(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=L3),J=!0):J=!1,J||U6(_,!0)}function rH(_){for(p2=_.return;p2;)switch(p2.tag){case 5:case 31:case 13:t5=!1;return;case 27:case 3:t5=!0;return;default:p2=p2.return}}function W7(_){if(_!==p2)return!1;if(!A0)return rH(_),A0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||UZ(_.type,_.memoizedProps);$=!$}if($&&m0){for($=m0;$;){var q=G8(_,0),Z=PW($);q.serverTail.push(Z),$=Z.type==="Suspense"?XZ($):v5($.nextSibling)}U6(_)}if(rH(_),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=XZ(_)}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=XZ(_)}else J===27?(J=m0,L6(_.type)?(_=pF,pF=null,m0=_):m0=J):m0=p2?v5(_.stateNode.nextSibling):null;return!0}function Z8(){m0=p2=null,t4=A0=!1}function uU(){var _=N6;return _!==null&&(Z5===null?Z5=_:Z5.push.apply(Z5,_),N6=null),_}function r9(_){N6===null?N6=[_]:N6.push(_)}function bU(){var _=D5;if(_!==null){D5=null;for(var J=h9(_);0<_.children.length;)_=_.children[0];H1(_.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,33 +90,33 @@ https://react.dev/link/hydration-mismatch`+$),_)),eZ}function iH(_){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$(){l7=SQ=null,d7=!1}function q6(_,J,$){Q1(_F,J._currentValue,_),J._currentValue=$,Q1(JF,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==iL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=iL}function W3(_,J){_._currentValue=_F.current;var $=JF.current;q1(JF,J),_._currentRenderer=$,q1(_F,J)}function EU(_,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 hU(_,J,$,q){var Z=_.child;Z!==null&&(Z.return=_);for(;Z!==null;){var X=Z.dependencies;if(X!==null){var W=Z.child;X=X.firstContext;_:for(;X!==null;){var B=X;X=Z;for(var I=0;I<J.length;I++)if(B.context===J[I]){X.lanes|=$,B=X.alternate,B!==null&&(B.lanes|=$),EU(X.return,$,_),q||(W=null);break _}X=B.next}}else if(Z.tag===18){if(W=Z.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=$,X=W.alternate,X!==null&&(X.lanes|=$),EU(W,$,_),W=null}else W=Z.child;if(W!==null)W.return=Z;else for(W=Z;W!==null;){if(W===_){W=null;break}if(Z=W.sibling,Z!==null){Z.return=W.return,W=Z;break}W=W.return}Z=W}}function W7(_,J,$,q){_=null;for(var Z=J,X=!1;Z!==null;){if(!X){if((Z.flags&524288)!==0)X=!0;else if((Z.flags&262144)!==0)break}if(Z.tag===10){var W=Z.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var B=Z.type;Q5(Z.pendingProps.value,W.value)||(_!==null?_.push(B):_=[B])}}else if(Z===YQ.current){if(W=Z.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==Z.memoizedState.memoizedState&&(_!==null?_.push(HJ):_=[HJ])}Z=Z.return}_!==null&&hU(J,_,$,q),J.flags|=262144}function M$(_){for(_=_.firstContext;_!==null;){if(!Q5(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function Z8(_){SQ=_,l7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function l0(_){return d7&&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()."),aH(SQ,_)}function T$(_,J){return SQ===null&&Z8(_),aH(_,J)}function aH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},l7===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().");l7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else l7=l7.next=J;return $}function xU(){return{controller:new yN,data:new Map,refCount:0}}function F8(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function r9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&kN(DN,function(){_.controller.abort()})}function j4(_,J,$){if((_&127)!==0)0>t4&&(t4=W2(),D_=fQ(J),$F=J,$!=null&&(QF=g($)),(O0&(j2|b5))!==E2&&(_2=!0,w6=k_),_=W_(),J=z_(),_!==i7||J!==u_?i7=-1.1:J!==null&&(w6=k_),T8=_,u_=J);else if((_&4194048)!==0&&0>s5&&(s5=W2(),b_=fQ(J),rL=J,$!=null&&(aL=g($)),0>C3)){if(_=W_(),J=z_(),_!==S6||J!==R8)S6=-1.1;C6=_,R8=J}}function eO(_){if(0>t4){t4=W2(),D_=_._debugTask!=null?_._debugTask:null,(O0&(j2|b5))!==E2&&(w6=k_);var J=W_(),$=z_();J!==i7||$!==u_?i7=-1.1:$!==null&&(w6=k_),T8=J,u_=$}if(0>s5&&(s5=W2(),b_=_._debugTask!=null?_._debugTask:null,0>C3)){if(_=W_(),J=z_(),_!==S6||J!==R8)S6=-1.1;C6=_,R8=J}}function L3(){var _=M8;return M8=0,_}function R$(_){var J=M8;return M8=_,J}function a9(_){var J=M8;return M8+=_,J}function O$(){i1=c1=-1.1}function w5(){var _=c1;return c1=-1.1,_}function C5(_){0<=_&&(c1=_)}function v4(){var _=t0;return t0=-0,_}function V4(_){0<=_&&(t0=_)}function y4(){var _=d0;return d0=null,_}function k4(){var _=_2;return _2=!1,_}function mU(_){q5=W2(),0>_.actualStartTime&&(_.actualStartTime=q5)}function gU(_){if(0<=q5){var J=W2()-q5;_.actualDuration+=J,_.selfBaseDuration=J,q5=-1}}function sH(_){if(0<=q5){var J=W2()-q5;_.actualDuration+=J,q5=-1}}function D4(){if(0<=q5){var _=W2(),J=_-q5;q5=-1,M8+=J,t0+=J,i1=_}}function tH(_){d0===null&&(d0=[]),d0.push(_),w3===null&&(w3=[]),w3.push(_)}function u4(){q5=W2(),0>c1&&(c1=q5)}function s9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function _I(_,J){if(h_===null){var $=h_=[];UF=0,O8=tG(),r7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return UF++,J.then(oH,oH),J}function oH(){if(--UF===0&&(-1<s5||(C3=-1.1),h_!==null)){r7!==null&&(r7.status="fulfilled");var _=h_;h_=null,O8=0,r7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function JI(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(Z){$.push(Z)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var Z=0;Z<$.length;Z++)(0,$[Z])(J)},function(Z){q.status="rejected",q.reason=Z;for(Z=0;Z<$.length;Z++)(0,$[Z])(void 0)}),q}function pU(){var _=I8.current;return _!==null?_:b0.pooledCache}function I$(_,J){J===null?Q1(I8,I8.current,_):Q1(I8,J.pool,_)}function nH(){var _=pU();return _===null?null:{parent:z2._currentValue,pool:_}}function eH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function _Y(_){return _=_.status,_==="fulfilled"||_==="rejected"}function JY(_,J,$){W1.actQueue!==null&&(W1.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(H3,H3),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var Z={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:Z}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){Z.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,QY(_),_;default:if(typeof J.status==="string")J.then(H3,H3);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 W=J;W.status="fulfilled",W.value=X}},function(X){if(J.status==="pending"){var W=J;W.status="rejected",W.reason=X}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,QY(_),_}throw N8=J,d_=!0,a7}}function U6(_){try{return hN(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw N8=J,d_=!0,a7;throw J}}function $Y(){if(N8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=N8;return N8=null,d_=!1,_}function QY(_){if(_===a7||_===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=Z0;return _!=null&&(Z0=J===null?_:J.concat(_)),J}function cU(){var _=Z0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function P$(_,J,$){for(var q=Object.keys(_.props),Z=0;Z<q.length;Z++){var X=q[Z];if(X!=="children"&&X!=="key"){J===null&&(J=L$(_,$.mode,0),J._debugInfo=Z0,J.return=$),L1(J,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},X);break}}}function N$(_){var J=i_;return i_+=1,s7===null&&(s7=eH()),JY(s7,_,J)}function t9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function qY(_,J){if(J.$$typeof===AP)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$(){d7=SQ=null,i7=!1}function G6(_,J,$){Q1(_F,J._currentValue,_),J._currentValue=$,Q1(JF,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==iL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=iL}function M3(_,J){_._currentValue=_F.current;var $=JF.current;q1(JF,J),_._currentRenderer=$,q1(_F,J)}function EU(_,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 hU(_,J,$,q){var Z=_.child;Z!==null&&(Z.return=_);for(;Z!==null;){var X=Z.dependencies;if(X!==null){var W=Z.child;X=X.firstContext;_:for(;X!==null;){var B=X;X=Z;for(var I=0;I<J.length;I++)if(B.context===J[I]){X.lanes|=$,B=X.alternate,B!==null&&(B.lanes|=$),EU(X.return,$,_),q||(W=null);break _}X=B.next}}else if(Z.tag===18){if(W=Z.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=$,X=W.alternate,X!==null&&(X.lanes|=$),EU(W,$,_),W=null}else W=Z.child;if(W!==null)W.return=Z;else for(W=Z;W!==null;){if(W===_){W=null;break}if(Z=W.sibling,Z!==null){Z.return=W.return,W=Z;break}W=W.return}Z=W}}function L7(_,J,$,q){_=null;for(var Z=J,X=!1;Z!==null;){if(!X){if((Z.flags&524288)!==0)X=!0;else if((Z.flags&262144)!==0)break}if(Z.tag===10){var W=Z.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var B=Z.type;Q5(Z.pendingProps.value,W.value)||(_!==null?_.push(B):_=[B])}}else if(Z===YQ.current){if(W=Z.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==Z.memoizedState.memoizedState&&(_!==null?_.push(YJ):_=[YJ])}Z=Z.return}_!==null&&hU(J,_,$,q),J.flags|=262144}function M$(_){for(_=_.firstContext;_!==null;){if(!Q5(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function F8(_){SQ=_,d7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function l0(_){return i7&&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()."),aH(SQ,_)}function T$(_,J){return SQ===null&&F8(_),aH(_,J)}function aH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},d7===null){if(_===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");d7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else d7=d7.next=J;return $}function xU(){return{controller:new yN,data:new Map,refCount:0}}function X8(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function a9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&kN(DN,function(){_.controller.abort()})}function v4(_,J,$){if((_&127)!==0)0>o4&&(o4=z2(),u_=fQ(J),$F=J,$!=null&&(QF=x($)),(O0&(C2|E5))!==u2&&(J2=!0,S6=D_),_=L_(),J=W_(),_!==r7||J!==b_?r7=-1.1:J!==null&&(S6=D_),R8=_,b_=J);else if((_&4194048)!==0&&0>o5&&(o5=z2(),E_=fQ(J),rL=J,$!=null&&(aL=x($)),0>v3)){if(_=L_(),J=W_(),_!==j6||J!==O8)j6=-1.1;f6=_,O8=J}}function eO(_){if(0>o4){o4=z2(),u_=_._debugTask!=null?_._debugTask:null,(O0&(C2|E5))!==u2&&(S6=D_);var J=L_(),$=W_();J!==r7||$!==b_?r7=-1.1:$!==null&&(S6=D_),R8=J,b_=$}if(0>o5&&(o5=z2(),E_=_._debugTask!=null?_._debugTask:null,0>v3)){if(_=L_(),J=W_(),_!==j6||J!==O8)j6=-1.1;f6=_,O8=J}}function T3(){var _=T8;return T8=0,_}function R$(_){var J=T8;return T8=_,J}function s9(_){var J=T8;return T8+=_,J}function O$(){r1=l1=-1.1}function C5(){var _=l1;return l1=-1.1,_}function S5(_){0<=_&&(l1=_)}function V4(){var _=t0;return t0=-0,_}function y4(_){0<=_&&(t0=_)}function k4(){var _=d0;return d0=null,_}function D4(){var _=J2;return J2=!1,_}function mU(_){q5=z2(),0>_.actualStartTime&&(_.actualStartTime=q5)}function gU(_){if(0<=q5){var J=z2()-q5;_.actualDuration+=J,_.selfBaseDuration=J,q5=-1}}function sH(_){if(0<=q5){var J=z2()-q5;_.actualDuration+=J,q5=-1}}function u4(){if(0<=q5){var _=z2(),J=_-q5;q5=-1,T8+=J,t0+=J,r1=_}}function tH(_){d0===null&&(d0=[]),d0.push(_),j3===null&&(j3=[]),j3.push(_)}function b4(){q5=z2(),0>l1&&(l1=q5)}function t9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function _I(_,J){if(x_===null){var $=x_=[];UF=0,I8=tG(),a7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return UF++,J.then(oH,oH),J}function oH(){if(--UF===0&&(-1<o5||(v3=-1.1),x_!==null)){a7!==null&&(a7.status="fulfilled");var _=x_;x_=null,I8=0,a7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function JI(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(Z){$.push(Z)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var Z=0;Z<$.length;Z++)(0,$[Z])(J)},function(Z){q.status="rejected",q.reason=Z;for(Z=0;Z<$.length;Z++)(0,$[Z])(void 0)}),q}function pU(){var _=P8.current;return _!==null?_:u0.pooledCache}function I$(_,J){J===null?Q1(P8,P8.current,_):Q1(P8,J.pool,_)}function nH(){var _=pU();return _===null?null:{parent:Y2._currentValue,pool:_}}function eH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function _Y(_){return _=_.status,_==="fulfilled"||_==="rejected"}function JY(_,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(L3,L3),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var Z={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:Z}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){Z.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,QY(_),_;default:if(typeof J.status==="string")J.then(L3,L3);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 W=J;W.status="fulfilled",W.value=X}},function(X){if(J.status==="pending"){var W=J;W.status="rejected",W.reason=X}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,QY(_),_}throw w8=J,i_=!0,s7}}function Z6(_){try{return hN(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw w8=J,i_=!0,s7;throw J}}function $Y(){if(w8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=w8;return w8=null,i_=!1,_}function QY(_){if(_===s7||_===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=Z0;return _!=null&&(Z0=J===null?_:J.concat(_)),J}function cU(){var _=Z0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function P$(_,J,$){for(var q=Object.keys(_.props),Z=0;Z<q.length;Z++){var X=q[Z];if(X!=="children"&&X!=="key"){J===null&&(J=L$(_,$.mode,0),J._debugInfo=Z0,J.return=$),H1(J,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},X);break}}}function N$(_){var J=r_;return r_+=1,t7===null&&(t7=eH()),JY(t7,_,J)}function o9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function qY(_,J){if(J.$$typeof===AP)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
95
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function w$(_,J){var $=cU();$!==null?$.run(qY.bind(null,_,J)):qY(_,J)}function UY(_,J){var $=g(_)||"Component";WB[$]||(WB[$]=!0,J=J.displayName||J.name||"Component",_.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function w$(_,J){var $=cU();$!==null?$.run(qY.bind(null,_,J)):qY(_,J)}function UY(_,J){var $=x(_)||"Component";WB[$]||(WB[$]=!0,J=J.displayName||J.name||"Component",_.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
97
  root.render(%s)`,J,J,J):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
- <%s>{%s}</%s>`,J,J,$,J,$))}function C$(_,J){var $=cU();$!==null?$.run(UY.bind(null,_,J)):UY(_,J)}function GY(_,J){var $=g(_)||"Component";LB[$]||(LB[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,J,J,$,J,$))}function C$(_,J){var $=cU();$!==null?$.run(UY.bind(null,_,J)):UY(_,J)}function GY(_,J){var $=x(_)||"Component";LB[$]||(LB[$]=!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 S$(_,J){var $=cU();$!==null?$.run(GY.bind(null,_,J)):GY(_,J)}function ZY(_){function J(d,r){if(_){var n=d.deletions;n===null?(d.deletions=[r],d.flags|=16):n.push(r)}}function $(d,r){if(!_)return null;for(;r!==null;)J(d,r),r=r.sibling;return null}function q(d){for(var r=new Map;d!==null;)d.key!==null?r.set(d.key,d):r.set(d.index,d),d=d.sibling;return r}function Z(d,r){return d=Y3(d,r),d.index=0,d.sibling=null,d}function X(d,r,n){if(d.index=n,!_)return d.flags|=1048576,r;if(n=d.alternate,n!==null)return n=n.index,n<r?(d.flags|=67108866,r):n;return d.flags|=67108866,r}function W(d){return _&&d.alternate===null&&(d.flags|=67108866),d}function B(d,r,n,M1){if(r===null||r.tag!==6)return r=VU(n,d.mode,M1),r.return=d,r._debugOwner=d,r._debugTask=d._debugTask,r._debugInfo=Z0,r;return r=Z(r,n),r.return=d,r._debugInfo=Z0,r}function I(d,r,n,M1){var f1=n.type;if(f1===j7)return r=_1(d,r,n.props.children,M1,n.key),P$(n,r,d),r;if(r!==null&&(r.elementType===f1||EH(r,n)||typeof f1==="object"&&f1!==null&&f1.$$typeof===v5&&U6(f1)===r.type))return r=Z(r,n.props),t9(r,n),r.return=d,r._debugOwner=n._owner,r._debugInfo=Z0,r;return r=L$(n,d.mode,M1),t9(r,n),r.return=d,r._debugInfo=Z0,r}function S(d,r,n,M1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==n.containerInfo||r.stateNode.implementation!==n.implementation)return r=yU(n,d.mode,M1),r.return=d,r._debugInfo=Z0,r;return r=Z(r,n.children||[]),r.return=d,r._debugInfo=Z0,r}function _1(d,r,n,M1,f1){if(r===null||r.tag!==7)return r=q8(n,d.mode,M1,f1),r.return=d,r._debugOwner=d,r._debugTask=d._debugTask,r._debugInfo=Z0,r;return r=Z(r,n),r.return=d,r._debugInfo=Z0,r}function J1(d,r,n){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=VU(""+r,d.mode,n),r.return=d,r._debugOwner=d,r._debugTask=d._debugTask,r._debugInfo=Z0,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case p4:return n=L$(r,d.mode,n),t9(n,r),n.return=d,d=x2(r._debugInfo),n._debugInfo=Z0,Z0=d,n;case f7:return r=yU(r,d.mode,n),r.return=d,r._debugInfo=Z0,r;case v5:var M1=x2(r._debugInfo);return r=U6(r),d=J1(d,r,n),Z0=M1,d}if(S2(r)||b(r))return n=q8(r,d.mode,n,null),n.return=d,n._debugOwner=d,n._debugTask=d._debugTask,d=x2(r._debugInfo),n._debugInfo=Z0,Z0=d,n;if(typeof r.then==="function")return M1=x2(r._debugInfo),d=J1(d,N$(r),n),Z0=M1,d;if(r.$$typeof===c4)return J1(d,T$(d,r),n);w$(d,r)}return typeof r==="function"&&C$(d,r),typeof r==="symbol"&&S$(d,r),null}function i(d,r,n,M1){var f1=r!==null?r.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return f1!==null?null:B(d,r,""+n,M1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case p4:return n.key===f1?(f1=x2(n._debugInfo),d=I(d,r,n,M1),Z0=f1,d):null;case f7:return n.key===f1?S(d,r,n,M1):null;case v5:return f1=x2(n._debugInfo),n=U6(n),d=i(d,r,n,M1),Z0=f1,d}if(S2(n)||b(n)){if(f1!==null)return null;return f1=x2(n._debugInfo),d=_1(d,r,n,M1,null),Z0=f1,d}if(typeof n.then==="function")return f1=x2(n._debugInfo),d=i(d,r,N$(n),M1),Z0=f1,d;if(n.$$typeof===c4)return i(d,r,T$(d,n),M1);w$(d,n)}return typeof n==="function"&&C$(d,n),typeof n==="symbol"&&S$(d,n),null}function F1(d,r,n,M1,f1){if(typeof M1==="string"&&M1!==""||typeof M1==="number"||typeof M1==="bigint")return d=d.get(n)||null,B(r,d,""+M1,f1);if(typeof M1==="object"&&M1!==null){switch(M1.$$typeof){case p4:return n=d.get(M1.key===null?n:M1.key)||null,d=x2(M1._debugInfo),r=I(r,n,M1,f1),Z0=d,r;case f7:return d=d.get(M1.key===null?n:M1.key)||null,S(r,d,M1,f1);case v5:var n1=x2(M1._debugInfo);return M1=U6(M1),r=F1(d,r,n,M1,f1),Z0=n1,r}if(S2(M1)||b(M1))return n=d.get(n)||null,d=x2(M1._debugInfo),r=_1(r,n,M1,f1,null),Z0=d,r;if(typeof M1.then==="function")return n1=x2(M1._debugInfo),r=F1(d,r,n,N$(M1),f1),Z0=n1,r;if(M1.$$typeof===c4)return F1(d,r,n,T$(r,M1),f1);w$(r,M1)}return typeof M1==="function"&&C$(r,M1),typeof M1==="symbol"&&S$(r,M1),null}function N1(d,r,n,M1){if(typeof n!=="object"||n===null)return M1;switch(n.$$typeof){case p4:case f7:T(d,r,n);var f1=n.key;if(typeof f1!=="string")break;if(M1===null){M1=new Set,M1.add(f1);break}if(!M1.has(f1)){M1.add(f1);break}L1(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.",f1)});break;case v5:n=U6(n),N1(d,r,n,M1)}return M1}function v1(d,r,n,M1){for(var f1=null,n1=null,p1=null,m1=r,U0=r=0,c0=null;m1!==null&&U0<n.length;U0++){m1.index>U0?(c0=m1,m1=null):c0=m1.sibling;var X2=i(d,m1,n[U0],M1);if(X2===null){m1===null&&(m1=c0);break}f1=N1(d,X2,n[U0],f1),_&&m1&&X2.alternate===null&&J(d,m1),r=X(X2,r,U0),p1===null?n1=X2:p1.sibling=X2,p1=X2,m1=c0}if(U0===n.length)return $(d,m1),A0&&z3(d,U0),n1;if(m1===null){for(;U0<n.length;U0++)m1=J1(d,n[U0],M1),m1!==null&&(f1=N1(d,m1,n[U0],f1),r=X(m1,r,U0),p1===null?n1=m1:p1.sibling=m1,p1=m1);return A0&&z3(d,U0),n1}for(m1=q(m1);U0<n.length;U0++)c0=F1(m1,d,U0,n[U0],M1),c0!==null&&(f1=N1(d,c0,n[U0],f1),_&&c0.alternate!==null&&m1.delete(c0.key===null?U0:c0.key),r=X(c0,r,U0),p1===null?n1=c0:p1.sibling=c0,p1=c0);return _&&m1.forEach(function(u3){return J(d,u3)}),A0&&z3(d,U0),n1}function m0(d,r,n,M1){if(n==null)throw Error("An iterable object provided no iterator.");for(var f1=null,n1=null,p1=r,m1=r=0,U0=null,c0=null,X2=n.next();p1!==null&&!X2.done;m1++,X2=n.next()){p1.index>m1?(U0=p1,p1=null):U0=p1.sibling;var u3=i(d,p1,X2.value,M1);if(u3===null){p1===null&&(p1=U0);break}c0=N1(d,u3,X2.value,c0),_&&p1&&u3.alternate===null&&J(d,p1),r=X(u3,r,m1),n1===null?f1=u3:n1.sibling=u3,n1=u3,p1=U0}if(X2.done)return $(d,p1),A0&&z3(d,m1),f1;if(p1===null){for(;!X2.done;m1++,X2=n.next())p1=J1(d,X2.value,M1),p1!==null&&(c0=N1(d,p1,X2.value,c0),r=X(p1,r,m1),n1===null?f1=p1:n1.sibling=p1,n1=p1);return A0&&z3(d,m1),f1}for(p1=q(p1);!X2.done;m1++,X2=n.next())U0=F1(p1,d,m1,X2.value,M1),U0!==null&&(c0=N1(d,U0,X2.value,c0),_&&U0.alternate!==null&&p1.delete(U0.key===null?m1:U0.key),r=X(U0,r,m1),n1===null?f1=U0:n1.sibling=U0,n1=U0);return _&&p1.forEach(function(Fw){return J(d,Fw)}),A0&&z3(d,m1),f1}function T0(d,r,n,M1){if(typeof n==="object"&&n!==null&&n.type===j7&&n.key===null&&(P$(n,null,d),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case p4:var f1=x2(n._debugInfo);_:{for(var n1=n.key;r!==null;){if(r.key===n1){if(n1=n.type,n1===j7){if(r.tag===7){$(d,r.sibling),M1=Z(r,n.props.children),M1.return=d,M1._debugOwner=n._owner,M1._debugInfo=Z0,P$(n,M1,d),d=M1;break _}}else if(r.elementType===n1||EH(r,n)||typeof n1==="object"&&n1!==null&&n1.$$typeof===v5&&U6(n1)===r.type){$(d,r.sibling),M1=Z(r,n.props),t9(M1,n),M1.return=d,M1._debugOwner=n._owner,M1._debugInfo=Z0,d=M1;break _}$(d,r);break}else J(d,r);r=r.sibling}n.type===j7?(M1=q8(n.props.children,d.mode,M1,n.key),M1.return=d,M1._debugOwner=d,M1._debugTask=d._debugTask,M1._debugInfo=Z0,P$(n,M1,d),d=M1):(M1=L$(n,d.mode,M1),t9(M1,n),M1.return=d,M1._debugInfo=Z0,d=M1)}return d=W(d),Z0=f1,d;case f7:_:{f1=n;for(n=f1.key;r!==null;){if(r.key===n)if(r.tag===4&&r.stateNode.containerInfo===f1.containerInfo&&r.stateNode.implementation===f1.implementation){$(d,r.sibling),M1=Z(r,f1.children||[]),M1.return=d,d=M1;break _}else{$(d,r);break}else J(d,r);r=r.sibling}M1=yU(f1,d.mode,M1),M1.return=d,d=M1}return W(d);case v5:return f1=x2(n._debugInfo),n=U6(n),d=T0(d,r,n,M1),Z0=f1,d}if(S2(n))return f1=x2(n._debugInfo),d=v1(d,r,n,M1),Z0=f1,d;if(b(n)){if(f1=x2(n._debugInfo),n1=b(n),typeof n1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var p1=n1.call(n);if(p1===n){if(d.tag!==0||Object.prototype.toString.call(d.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(p1)!=="[object Generator]")YB||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."),YB=!0}else n.entries!==n1||XF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),XF=!0);return d=m0(d,r,p1,M1),Z0=f1,d}if(typeof n.then==="function")return f1=x2(n._debugInfo),d=T0(d,r,N$(n),M1),Z0=f1,d;if(n.$$typeof===c4)return T0(d,r,T$(d,n),M1);w$(d,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return f1=""+n,r!==null&&r.tag===6?($(d,r.sibling),M1=Z(r,f1),M1.return=d,d=M1):($(d,r),M1=VU(f1,d.mode,M1),M1.return=d,M1._debugOwner=d,M1._debugTask=d._debugTask,M1._debugInfo=Z0,d=M1),W(d);return typeof n==="function"&&C$(d,n),typeof n==="symbol"&&S$(d,n),$(d,r)}return function(d,r,n,M1){var f1=Z0;Z0=null;try{i_=0;var n1=T0(d,r,n,M1);return s7=null,n1}catch(c0){if(c0===a7||c0===bQ)throw c0;var p1=O(29,c0,null,d.mode);p1.lanes=M1,p1.return=d;var m1=p1._debugInfo=Z0;if(p1._debugOwner=d._debugOwner,p1._debugTask=d._debugTask,m1!=null){for(var U0=m1.length-1;0<=U0;U0--)if(typeof m1[U0].stack==="string"){p1._debugOwner=m1[U0],p1._debugTask=m1[U0].debugTask;break}}return p1}finally{Z0=f1}}}function FY(_,J){var $=S2(_);return _=!$&&typeof b(_)==="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 lU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function G6(_){return{lane:_,tag:AB,payload:null,callback:null,next:null}}function Z6(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,HF===q&&!RB){var Z=g(_);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 S$(_,J){var $=cU();$!==null?$.run(GY.bind(null,_,J)):GY(_,J)}function ZY(_){function J(d,r){if(_){var e=d.deletions;e===null?(d.deletions=[r],d.flags|=16):e.push(r)}}function $(d,r){if(!_)return null;for(;r!==null;)J(d,r),r=r.sibling;return null}function q(d){for(var r=new Map;d!==null;)d.key!==null?r.set(d.key,d):r.set(d.index,d),d=d.sibling;return r}function Z(d,r){return d=B3(d,r),d.index=0,d.sibling=null,d}function X(d,r,e){if(d.index=e,!_)return d.flags|=1048576,r;if(e=d.alternate,e!==null)return e=e.index,e<r?(d.flags|=67108866,r):e;return d.flags|=67108866,r}function W(d){return _&&d.alternate===null&&(d.flags|=67108866),d}function B(d,r,e,A1){if(r===null||r.tag!==6)return r=VU(e,d.mode,A1),r.return=d,r._debugOwner=d,r._debugTask=d._debugTask,r._debugInfo=Z0,r;return r=Z(r,e),r.return=d,r._debugInfo=Z0,r}function I(d,r,e,A1){var S1=e.type;if(S1===v7)return r=_1(d,r,e.props.children,A1,e.key),P$(e,r,d),r;if(r!==null&&(r.elementType===S1||EH(r,e)||typeof S1==="object"&&S1!==null&&S1.$$typeof===V5&&Z6(S1)===r.type))return r=Z(r,e.props),o9(r,e),r.return=d,r._debugOwner=e._owner,r._debugInfo=Z0,r;return r=L$(e,d.mode,A1),o9(r,e),r.return=d,r._debugInfo=Z0,r}function S(d,r,e,A1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==e.containerInfo||r.stateNode.implementation!==e.implementation)return r=yU(e,d.mode,A1),r.return=d,r._debugInfo=Z0,r;return r=Z(r,e.children||[]),r.return=d,r._debugInfo=Z0,r}function _1(d,r,e,A1,S1){if(r===null||r.tag!==7)return r=U8(e,d.mode,A1,S1),r.return=d,r._debugOwner=d,r._debugTask=d._debugTask,r._debugInfo=Z0,r;return r=Z(r,e),r.return=d,r._debugInfo=Z0,r}function J1(d,r,e){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=VU(""+r,d.mode,e),r.return=d,r._debugOwner=d,r._debugTask=d._debugTask,r._debugInfo=Z0,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case c4:return e=L$(r,d.mode,e),o9(e,r),e.return=d,d=h2(r._debugInfo),e._debugInfo=Z0,Z0=d,e;case j7:return r=yU(r,d.mode,e),r.return=d,r._debugInfo=Z0,r;case V5:var A1=h2(r._debugInfo);return r=Z6(r),d=J1(d,r,e),Z0=A1,d}if(N2(r)||b(r))return e=U8(r,d.mode,e,null),e.return=d,e._debugOwner=d,e._debugTask=d._debugTask,d=h2(r._debugInfo),e._debugInfo=Z0,Z0=d,e;if(typeof r.then==="function")return A1=h2(r._debugInfo),d=J1(d,N$(r),e),Z0=A1,d;if(r.$$typeof===l4)return J1(d,T$(d,r),e);w$(d,r)}return typeof r==="function"&&C$(d,r),typeof r==="symbol"&&S$(d,r),null}function i(d,r,e,A1){var S1=r!==null?r.key:null;if(typeof e==="string"&&e!==""||typeof e==="number"||typeof e==="bigint")return S1!==null?null:B(d,r,""+e,A1);if(typeof e==="object"&&e!==null){switch(e.$$typeof){case c4:return e.key===S1?(S1=h2(e._debugInfo),d=I(d,r,e,A1),Z0=S1,d):null;case j7:return e.key===S1?S(d,r,e,A1):null;case V5:return S1=h2(e._debugInfo),e=Z6(e),d=i(d,r,e,A1),Z0=S1,d}if(N2(e)||b(e)){if(S1!==null)return null;return S1=h2(e._debugInfo),d=_1(d,r,e,A1,null),Z0=S1,d}if(typeof e.then==="function")return S1=h2(e._debugInfo),d=i(d,r,N$(e),A1),Z0=S1,d;if(e.$$typeof===l4)return i(d,r,T$(d,e),A1);w$(d,e)}return typeof e==="function"&&C$(d,e),typeof e==="symbol"&&S$(d,e),null}function F1(d,r,e,A1,S1){if(typeof A1==="string"&&A1!==""||typeof A1==="number"||typeof A1==="bigint")return d=d.get(e)||null,B(r,d,""+A1,S1);if(typeof A1==="object"&&A1!==null){switch(A1.$$typeof){case c4:return e=d.get(A1.key===null?e:A1.key)||null,d=h2(A1._debugInfo),r=I(r,e,A1,S1),Z0=d,r;case j7:return d=d.get(A1.key===null?e:A1.key)||null,S(r,d,A1,S1);case V5:var e1=h2(A1._debugInfo);return A1=Z6(A1),r=F1(d,r,e,A1,S1),Z0=e1,r}if(N2(A1)||b(A1))return e=d.get(e)||null,d=h2(A1._debugInfo),r=_1(r,e,A1,S1,null),Z0=d,r;if(typeof A1.then==="function")return e1=h2(A1._debugInfo),r=F1(d,r,e,N$(A1),S1),Z0=e1,r;if(A1.$$typeof===l4)return F1(d,r,e,T$(r,A1),S1);w$(r,A1)}return typeof A1==="function"&&C$(r,A1),typeof A1==="symbol"&&S$(r,A1),null}function C1(d,r,e,A1){if(typeof e!=="object"||e===null)return A1;switch(e.$$typeof){case c4:case j7:T(d,r,e);var S1=e.key;if(typeof S1!=="string")break;if(A1===null){A1=new Set,A1.add(S1);break}if(!A1.has(S1)){A1.add(S1);break}H1(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:e=Z6(e),C1(d,r,e,A1)}return A1}function V1(d,r,e,A1){for(var S1=null,e1=null,p1=null,h1=r,q0=r=0,g0=null;h1!==null&&q0<e.length;q0++){h1.index>q0?(g0=h1,h1=null):g0=h1.sibling;var H2=i(d,h1,e[q0],A1);if(H2===null){h1===null&&(h1=g0);break}S1=C1(d,H2,e[q0],S1),_&&h1&&H2.alternate===null&&J(d,h1),r=X(H2,r,q0),p1===null?e1=H2:p1.sibling=H2,p1=H2,h1=g0}if(q0===e.length)return $(d,h1),A0&&A3(d,q0),e1;if(h1===null){for(;q0<e.length;q0++)h1=J1(d,e[q0],A1),h1!==null&&(S1=C1(d,h1,e[q0],S1),r=X(h1,r,q0),p1===null?e1=h1:p1.sibling=h1,p1=h1);return A0&&A3(d,q0),e1}for(h1=q(h1);q0<e.length;q0++)g0=F1(h1,d,q0,e[q0],A1),g0!==null&&(S1=C1(d,g0,e[q0],S1),_&&g0.alternate!==null&&h1.delete(g0.key===null?q0:g0.key),r=X(g0,r,q0),p1===null?e1=g0:p1.sibling=g0,p1=g0);return _&&h1.forEach(function(x3){return J(d,x3)}),A0&&A3(d,q0),e1}function h0(d,r,e,A1){if(e==null)throw Error("An iterable object provided no iterator.");for(var S1=null,e1=null,p1=r,h1=r=0,q0=null,g0=null,H2=e.next();p1!==null&&!H2.done;h1++,H2=e.next()){p1.index>h1?(q0=p1,p1=null):q0=p1.sibling;var x3=i(d,p1,H2.value,A1);if(x3===null){p1===null&&(p1=q0);break}g0=C1(d,x3,H2.value,g0),_&&p1&&x3.alternate===null&&J(d,p1),r=X(x3,r,h1),e1===null?S1=x3:e1.sibling=x3,e1=x3,p1=q0}if(H2.done)return $(d,p1),A0&&A3(d,h1),S1;if(p1===null){for(;!H2.done;h1++,H2=e.next())p1=J1(d,H2.value,A1),p1!==null&&(g0=C1(d,p1,H2.value,g0),r=X(p1,r,h1),e1===null?S1=p1:e1.sibling=p1,e1=p1);return A0&&A3(d,h1),S1}for(p1=q(p1);!H2.done;h1++,H2=e.next())q0=F1(p1,d,h1,H2.value,A1),q0!==null&&(g0=C1(d,q0,H2.value,g0),_&&q0.alternate!==null&&p1.delete(q0.key===null?h1:q0.key),r=X(q0,r,h1),e1===null?S1=q0:e1.sibling=q0,e1=q0);return _&&p1.forEach(function(Fw){return J(d,Fw)}),A0&&A3(d,h1),S1}function T0(d,r,e,A1){if(typeof e==="object"&&e!==null&&e.type===v7&&e.key===null&&(P$(e,null,d),e=e.props.children),typeof e==="object"&&e!==null){switch(e.$$typeof){case c4:var S1=h2(e._debugInfo);_:{for(var e1=e.key;r!==null;){if(r.key===e1){if(e1=e.type,e1===v7){if(r.tag===7){$(d,r.sibling),A1=Z(r,e.props.children),A1.return=d,A1._debugOwner=e._owner,A1._debugInfo=Z0,P$(e,A1,d),d=A1;break _}}else if(r.elementType===e1||EH(r,e)||typeof e1==="object"&&e1!==null&&e1.$$typeof===V5&&Z6(e1)===r.type){$(d,r.sibling),A1=Z(r,e.props),o9(A1,e),A1.return=d,A1._debugOwner=e._owner,A1._debugInfo=Z0,d=A1;break _}$(d,r);break}else J(d,r);r=r.sibling}e.type===v7?(A1=U8(e.props.children,d.mode,A1,e.key),A1.return=d,A1._debugOwner=d,A1._debugTask=d._debugTask,A1._debugInfo=Z0,P$(e,A1,d),d=A1):(A1=L$(e,d.mode,A1),o9(A1,e),A1.return=d,A1._debugInfo=Z0,d=A1)}return d=W(d),Z0=S1,d;case j7:_:{S1=e;for(e=S1.key;r!==null;){if(r.key===e)if(r.tag===4&&r.stateNode.containerInfo===S1.containerInfo&&r.stateNode.implementation===S1.implementation){$(d,r.sibling),A1=Z(r,S1.children||[]),A1.return=d,d=A1;break _}else{$(d,r);break}else J(d,r);r=r.sibling}A1=yU(S1,d.mode,A1),A1.return=d,d=A1}return W(d);case V5:return S1=h2(e._debugInfo),e=Z6(e),d=T0(d,r,e,A1),Z0=S1,d}if(N2(e))return S1=h2(e._debugInfo),d=V1(d,r,e,A1),Z0=S1,d;if(b(e)){if(S1=h2(e._debugInfo),e1=b(e),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 p1=e1.call(e);if(p1===e){if(d.tag!==0||Object.prototype.toString.call(d.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(p1)!=="[object Generator]")YB||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."),YB=!0}else e.entries!==e1||XF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),XF=!0);return d=h0(d,r,p1,A1),Z0=S1,d}if(typeof e.then==="function")return S1=h2(e._debugInfo),d=T0(d,r,N$(e),A1),Z0=S1,d;if(e.$$typeof===l4)return T0(d,r,T$(d,e),A1);w$(d,e)}if(typeof e==="string"&&e!==""||typeof e==="number"||typeof e==="bigint")return S1=""+e,r!==null&&r.tag===6?($(d,r.sibling),A1=Z(r,S1),A1.return=d,d=A1):($(d,r),A1=VU(S1,d.mode,A1),A1.return=d,A1._debugOwner=d,A1._debugTask=d._debugTask,A1._debugInfo=Z0,d=A1),W(d);return typeof e==="function"&&C$(d,e),typeof e==="symbol"&&S$(d,e),$(d,r)}return function(d,r,e,A1){var S1=Z0;Z0=null;try{r_=0;var e1=T0(d,r,e,A1);return t7=null,e1}catch(g0){if(g0===s7||g0===bQ)throw g0;var p1=O(29,g0,null,d.mode);p1.lanes=A1,p1.return=d;var h1=p1._debugInfo=Z0;if(p1._debugOwner=d._debugOwner,p1._debugTask=d._debugTask,h1!=null){for(var q0=h1.length-1;0<=q0;q0--)if(typeof h1[q0].stack==="string"){p1._debugOwner=h1[q0],p1._debugTask=h1[q0].debugTask;break}}return p1}finally{Z0=S1}}}function FY(_,J){var $=N2(_);return _=!$&&typeof b(_)==="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 lU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function F6(_){return{lane:_,tag:AB,payload:null,callback:null,next:null}}function X6(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,HF===q&&!RB){var Z=x(_);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
101
 
102
- Please update the following component: %s`,Z),RB=!0}if((O0&j2)!==E2)return Z=q.pending,Z===null?J.next=J:(J.next=Z.next,Z.next=J),q.pending=J,J=W$(_),bH(_,null,$),J;return z$(_,q,J,$),W$(_)}function o9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,H5(_,$)}}function f$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var Z=null,X=null;if($=$.firstBaseUpdate,$!==null){do{var W={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};X===null?Z=X=W:X=X.next=W,$=$.next}while($!==null);X===null?Z=X=J:X=X.next=J}else Z=X=J;$={baseState:q.baseState,firstBaseUpdate:Z,lastBaseUpdate:X,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function n9(){if(YF){var _=r7;if(_!==null)throw _}}function e9(_,J,$,q){YF=!1;var Z=_.updateQueue;f6=!1,HF=Z.shared;var{firstBaseUpdate:X,lastBaseUpdate:W}=Z,B=Z.shared.pending;if(B!==null){Z.shared.pending=null;var I=B,S=I.next;I.next=null,W===null?X=S:W.next=S,W=I;var _1=_.alternate;_1!==null&&(_1=_1.updateQueue,B=_1.lastBaseUpdate,B!==W&&(B===null?_1.firstBaseUpdate=S:B.next=S,_1.lastBaseUpdate=I))}if(X!==null){var J1=Z.baseState;W=0,_1=S=I=null,B=X;do{var i=B.lane&-536870913,F1=i!==B.lane;if(F1?(F0&i)===i:(q&i)===i){i!==0&&i===O8&&(YF=!0),_1!==null&&(_1=_1.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});_:{i=_;var N1=B,v1=J,m0=$;switch(N1.tag){case MB:if(N1=N1.payload,typeof N1==="function"){d7=!0;var T0=N1.call(m0,J1,v1);if(i.mode&r2){J0(!0);try{N1.call(m0,J1,v1)}finally{J0(!1)}}d7=!1,J1=T0;break _}J1=N1;break _;case KF:i.flags=i.flags&-65537|128;case AB:if(T0=N1.payload,typeof T0==="function"){if(d7=!0,N1=T0.call(m0,J1,v1),i.mode&r2){J0(!0);try{T0.call(m0,J1,v1)}finally{J0(!1)}}d7=!1}else N1=T0;if(N1===null||N1===void 0)break _;J1=Y0({},J1,N1);break _;case TB:f6=!0}}i=B.callback,i!==null&&(_.flags|=64,F1&&(_.flags|=8192),F1=Z.callbacks,F1===null?Z.callbacks=[i]:F1.push(i))}else F1={lane:i,tag:B.tag,payload:B.payload,callback:B.callback,next:null},_1===null?(S=_1=F1,I=J1):_1=_1.next=F1,W|=i;if(B=B.next,B===null)if(B=Z.shared.pending,B===null)break;else F1=B,B=F1.next,F1.next=null,Z.lastBaseUpdate=F1,Z.shared.pending=null}while(1);_1===null&&(I=J1),Z.baseState=I,Z.firstBaseUpdate=S,Z.lastBaseUpdate=_1,X===null&&(Z.shared.lanes=0),V6|=W,_.lanes=W,_.memoizedState=J1}HF=null}function XY(_,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;_++)XY($[_],J)}function KY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)XY($[_],J)}function HY(_,J){var $=e4;Q1(hQ,$,_),Q1(t7,J,_),e4=$|J.baseLanes}function iU(_){Q1(hQ,e4,_),Q1(t7,t7.current,_)}function rU(_){e4=hQ.current,q1(t7,_),q1(hQ,_)}function F6(_){var J=_.alternate;Q1(F2,F2.current&o7,_),Q1(D5,_,_),t5===null&&(J===null||t7.current!==null?t5=_:J.memoizedState!==null&&(t5=_))}function aU(_){Q1(F2,F2.current,_),Q1(D5,_,_),t5===null&&(t5=_)}function YY(_){_.tag===22?(Q1(F2,F2.current,_),Q1(D5,_,_),t5===null&&(t5=_)):X6(_)}function X6(_){Q1(F2,F2.current,_),Q1(D5,D5.current,_)}function S5(_){q1(D5,_),t5===_&&(t5=null),q1(F2,_)}function j$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||ZZ($)||FZ($)))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 _=K1;n5===null?n5=[_]:n5.push(_)}function I1(){var _=K1;if(n5!==null&&(v3++,n5[v3]!==_)){var J=g(o1);if(!OB.has(J)&&(OB.add(J),n5!==null)){for(var $="",q=0;q<=v3;q++){var Z=n5[q],X=q===v3?_:Z;for(Z=q+1+". "+Z;30>Z.length;)Z+=" ";Z+=X+`
102
+ Please update the following component: %s`,Z),RB=!0}if((O0&C2)!==u2)return Z=q.pending,Z===null?J.next=J:(J.next=Z.next,Z.next=J),q.pending=J,J=W$(_),bH(_,null,$),J;return z$(_,q,J,$),W$(_)}function n9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,g5(_,$)}}function f$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var Z=null,X=null;if($=$.firstBaseUpdate,$!==null){do{var W={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};X===null?Z=X=W:X=X.next=W,$=$.next}while($!==null);X===null?Z=X=J:X=X.next=J}else Z=X=J;$={baseState:q.baseState,firstBaseUpdate:Z,lastBaseUpdate:X,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function e9(){if(YF){var _=a7;if(_!==null)throw _}}function __(_,J,$,q){YF=!1;var Z=_.updateQueue;v6=!1,HF=Z.shared;var{firstBaseUpdate:X,lastBaseUpdate:W}=Z,B=Z.shared.pending;if(B!==null){Z.shared.pending=null;var I=B,S=I.next;I.next=null,W===null?X=S:W.next=S,W=I;var _1=_.alternate;_1!==null&&(_1=_1.updateQueue,B=_1.lastBaseUpdate,B!==W&&(B===null?_1.firstBaseUpdate=S:B.next=S,_1.lastBaseUpdate=I))}if(X!==null){var J1=Z.baseState;W=0,_1=S=I=null,B=X;do{var i=B.lane&-536870913,F1=i!==B.lane;if(F1?(F0&i)===i:(q&i)===i){i!==0&&i===I8&&(YF=!0),_1!==null&&(_1=_1.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});_:{i=_;var C1=B,V1=J,h0=$;switch(C1.tag){case MB:if(C1=C1.payload,typeof C1==="function"){i7=!0;var T0=C1.call(h0,J1,V1);if(i.mode&r2){$0(!0);try{C1.call(h0,J1,V1)}finally{$0(!1)}}i7=!1,J1=T0;break _}J1=C1;break _;case KF:i.flags=i.flags&-65537|128;case AB:if(T0=C1.payload,typeof T0==="function"){if(i7=!0,C1=T0.call(h0,J1,V1),i.mode&r2){$0(!0);try{T0.call(h0,J1,V1)}finally{$0(!1)}}i7=!1}else C1=T0;if(C1===null||C1===void 0)break _;J1=Y0({},J1,C1);break _;case TB:v6=!0}}i=B.callback,i!==null&&(_.flags|=64,F1&&(_.flags|=8192),F1=Z.callbacks,F1===null?Z.callbacks=[i]:F1.push(i))}else F1={lane:i,tag:B.tag,payload:B.payload,callback:B.callback,next:null},_1===null?(S=_1=F1,I=J1):_1=_1.next=F1,W|=i;if(B=B.next,B===null)if(B=Z.shared.pending,B===null)break;else F1=B,B=F1.next,F1.next=null,Z.lastBaseUpdate=F1,Z.shared.pending=null}while(1);_1===null&&(I=J1),Z.baseState=I,Z.firstBaseUpdate=S,Z.lastBaseUpdate=_1,X===null&&(Z.shared.lanes=0),k6|=W,_.lanes=W,_.memoizedState=J1}HF=null}function XY(_,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;_++)XY($[_],J)}function KY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)XY($[_],J)}function HY(_,J){var $=_3;Q1(hQ,$,_),Q1(o7,J,_),_3=$|J.baseLanes}function iU(_){Q1(hQ,_3,_),Q1(o7,o7.current,_)}function rU(_){_3=hQ.current,q1(o7,_),q1(hQ,_)}function K6(_){var J=_.alternate;Q1(K2,K2.current&n7,_),Q1(u5,_,_),n5===null&&(J===null||o7.current!==null?n5=_:J.memoizedState!==null&&(n5=_))}function aU(_){Q1(K2,K2.current,_),Q1(u5,_,_),n5===null&&(n5=_)}function YY(_){_.tag===22?(Q1(K2,K2.current,_),Q1(u5,_,_),n5===null&&(n5=_)):H6(_)}function H6(_){Q1(K2,K2.current,_),Q1(u5,u5.current,_)}function f5(_){q1(u5,_),n5===_&&(n5=null),q1(K2,_)}function j$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||ZZ($)||FZ($)))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;_4===null?_4=[_]:_4.push(_)}function I1(){var _=X1;if(_4!==null&&(D3++,_4[D3]!==_)){var J=x(n1);if(!OB.has(J)&&(OB.add(J),_4!==null)){for(var $="",q=0;q<=D3;q++){var Z=_4[q],X=q===D3?_:Z;for(Z=q+1+". "+Z;30>Z.length;)Z+=" ";Z+=X+`
103
103
  `,$+=Z}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 L7(_){_===void 0||_===null||S2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",K1,typeof _)}function v$(){var _=g(o1);PB.has(_)||(PB.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:
108
+ `,J,$)}}}function B7(_){_===void 0||_===null||N2(_)||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 _=x(n1);PB.has(_)||(PB.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function G2(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
112
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function sU(_,J){if(s_)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.",K1),!1;_.length!==J.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function sU(_,J){if(t_)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`,K1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!Q5(_[$],J[$]))return!1;return!0}function tU(_,J,$,q,Z,X){if(f3=X,o1=J,n5=_!==null?_._debugHookTypes:null,v3=-1,s_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=g(o1),zF.has(X)||(zF.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,W1.H=_!==null&&_.memoizedState!==null?LF:n5!==null?NB:WF,C8=X=(J.mode&r2)!==s1;var W=GF($,q,Z);if(C8=!1,e7&&(W=oU(J,$,q,Z)),X){J0(!0);try{W=oU(J,$,q,Z)}finally{J0(!1)}}return zY(_,J),W}function zY(_,J){J._debugHookTypes=n5,J.dependencies===null?j3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:j3}):J.dependencies._debugThenableState=j3,W1.H=t_;var $=u0!==null&&u0.next!==null;if(f3=0,n5=K1=L2=u0=o1=null,v3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),mQ=!1,a_=0,j3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||B2||(_=_.dependencies,_!==null&&M$(_)&&(B2=!0)),d_?(d_=!1,_=!0):_=!1,_&&(J=g(J)||"Unknown",IB.has(J)||zF.has(J)||(IB.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 oU(_,J,$,q){o1=_;var Z=0;do{if(e7&&(j3=null),a_=0,e7=!1,Z>=mN)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(Z+=1,s_=!1,L2=u0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}v3=-1,W1.H=wB,X=GF(J,$,q)}while(e7);return X}function QI(){var _=W1.H,J=_.useState()[0];return J=typeof J.then==="function"?__(J):J,_=_.useState()[0],(u0!==null?u0.memoizedState:null)!==_&&(o1.flags|=1024),J}function nU(){var _=gQ!==0;return gQ=0,_}function eU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&z4)!==s1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function _G(_){if(mQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}mQ=!1}f3=0,n5=L2=u0=o1=null,v3=-1,K1=null,e7=!1,a_=gQ=0,j3=null}function e2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return L2===null?o1.memoizedState=L2=_:L2=L2.next=_,L2}function j0(){if(u0===null){var _=o1.alternate;_=_!==null?_.memoizedState:null}else _=u0.next;var J=L2===null?o1.memoizedState:L2.next;if(J!==null)L2=J,u0=_;else{if(_===null){if(o1.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},L2===null?o1.memoizedState=L2=_:L2=L2.next=_}return L2}function V$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function __(_){var J=a_;return a_+=1,j3===null&&(j3=eH()),_=JY(j3,_,J),J=o1,(L2===null?J.memoizedState:L2.next)===null&&(J=J.alternate,W1.H=J!==null&&J.memoizedState!==null?LF:WF),_}function K6(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return __(_);if(_.$$typeof===c4)return l0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function X8(_){var J=null,$=o1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=o1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(Z){return Z.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=V$(),o1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||s_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=MP;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 X4(_,J){return typeof J==="function"?J(_):J}function JG(_,J,$){var q=e2();if($!==void 0){var Z=$(J);if(C8){J0(!0);try{$(J)}finally{J0(!1)}}}else Z=J;return q.memoizedState=q.baseState=Z,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:Z},q.queue=_,_=_.dispatch=FI.bind(null,o1,_),[q.memoizedState,_]}function B7(_){var J=j0();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 Z=_.baseQueue,X=q.pending;if(X!==null){if(Z!==null){var W=Z.next;Z.next=X.next,X.next=W}J.baseQueue!==Z&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=Z=X,q.pending=null}if(X=_.baseState,Z===null)_.memoizedState=X;else{J=Z.next;var B=W=null,I=null,S=J,_1=!1;do{var J1=S.lane&-536870913;if(J1!==S.lane?(F0&J1)===J1:(f3&J1)===J1){var i=S.revertLane;if(i===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),J1===O8&&(_1=!0);else if((f3&i)===i){S=S.next,i===O8&&(_1=!0);continue}else J1={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},I===null?(B=I=J1,W=X):I=I.next=J1,o1.lanes|=i,V6|=i;J1=S.action,C8&&$(X,J1),X=S.hasEagerState?S.eagerState:$(X,J1)}else i={lane:J1,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},I===null?(B=I=i,W=X):I=I.next=i,o1.lanes|=J1,V6|=J1;S=S.next}while(S!==null&&S!==J);if(I===null?W=X:I.next=B,!Q5(X,_.memoizedState)&&(B2=!0,_1&&($=r7,$!==null)))throw $;_.memoizedState=X,_.baseState=W,_.baseQueue=I,q.lastRenderedState=X}return Z===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function J_(_){var J=j0(),$=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:Z}=$,X=J.memoizedState;if(Z!==null){$.pending=null;var W=Z=Z.next;do X=_(X,W.action),W=W.next;while(W!==Z);Q5(X,J.memoizedState)||(B2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function QG(_,J,$){var q=o1,Z=e2();if(A0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();n7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),n7=!0)}else{if(X=J(),n7||($=J(),Q5(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),n7=!0)),b0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(F0&127)!==0||WY(q,J,X)}return Z.memoizedState=X,$={value:X,getSnapshot:J},Z.queue=$,u$(BY.bind(null,q,$,_),[_]),q.flags|=2048,M7(o5|G5,{destroy:void 0},LY.bind(null,q,$,X,J),null),X}function y$(_,J,$){var q=o1,Z=j0(),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(),!n7){var W=J();Q5($,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),n7=!0)}if(W=!Q5((u0||Z).memoizedState,$))Z.memoizedState=$,B2=!0;Z=Z.queue;var B=BY.bind(null,q,Z,_);if(z5(2048,G5,B,[_]),Z.getSnapshot!==J||W||L2!==null&&L2.memoizedState.tag&o5){if(q.flags|=2048,M7(o5|G5,{destroy:void 0},LY.bind(null,q,Z,$,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||WY(q,J,$)}return $}function WY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=o1.updateQueue,J===null?(J=V$(),o1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function LY(_,J,$,q){J.value=$,J.getSnapshot=q,AY(J)&&MY(_)}function BY(_,J,$){return $(function(){AY(J)&&(j4(2,"updateSyncExternalStore()",_),MY(_))})}function AY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!Q5(_,$)}catch(q){return!0}}function MY(_){var J=d2(_,2);J!==null&&e0(J,_,2)}function qG(_){var J=e2();if(typeof _==="function"){var $=_;if(_=$(),C8){J0(!0);try{$()}finally{J0(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:X4,lastRenderedState:_},J}function UG(_){_=qG(_);var J=_.queue,$=EY.bind(null,o1,J);return J.dispatch=$,[_.memoizedState,$]}function GG(_){var J=e2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=RG.bind(null,o1,!0,$),$.dispatch=J,[_,J]}function TY(_,J){var $=j0();return RY($,u0,_,J)}function RY(_,J,$,q){return _.baseState=$,$G(_,u0,typeof q==="function"?q:X4)}function OY(_,J){var $=j0();if(u0!==null)return RY($,u0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function qI(_,J,$,q,Z){if(g$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var X={payload:Z,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){X.listeners.push(W)}};W1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,IY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function IY(_,J){var{action:$,payload:q}=J,Z=_.state;if(J.isTransition){var X=W1.T,W={};W._updatedFibers=new Set,W1.T=W;try{var B=$(Z,q),I=W1.S;I!==null&&I(W,B),PY(_,J,B)}catch(S){ZG(_,J,S)}finally{X!==null&&W.types!==null&&(X.types!==null&&X.types!==W.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=W.types),W1.T=X,X===null&&W._updatedFibers&&(_=W._updatedFibers.size,W._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{W=$(Z,q),PY(_,J,W)}catch(S){ZG(_,J,S)}}function PY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(W1.asyncTransitions++,$.then(m$,m$),$.then(function(q){NY(_,J,q)},function(q){return ZG(_,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.")):NY(_,J,$)}function NY(_,J,$){J.status="fulfilled",J.value=$,wY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,IY(_,$)))}function ZG(_,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 CY(_,J){return J}function A7(_,J){if(A0){var $=b0.formState;if($!==null){_:{var q=o1;if(A0){if(p0){J:{var Z=p0;for(var X=a5;Z.nodeType!==8;){if(!X){Z=null;break J}if(Z=j5(Z.nextSibling),Z===null){Z=null;break J}}X=Z.data,Z=X===hF||X===KA?Z:null}if(Z){p0=j5(Z.nextSibling),q=Z.data===hF;break _}}Q6(q)}q=!1}q&&(J=$[0])}}return $=e2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:CY,lastRenderedState:J},$.queue=q,$=EY.bind(null,o1,q),q.dispatch=$,q=qG(!1),X=RG.bind(null,o1,!1,q.queue),q=e2(),Z={state:J,dispatch:null,action:_,pending:null},q.queue=Z,$=qI.bind(null,o1,Z,X,$),Z.dispatch=$,q.memoizedState=_,[J,$,!1]}function k$(_){var J=j0();return SY(J,u0,_)}function SY(_,J,$){if(J=$G(_,J,CY)[0],_=B7(X4)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=__(J)}catch(W){if(W===a7)throw bQ;throw W}else q=J;J=j0();var Z=J.queue,X=Z.dispatch;return $!==J.memoizedState&&(o1.flags|=2048,M7(o5|G5,{destroy:void 0},UI.bind(null,Z,$),null)),[q,X,_]}function UI(_,J){_.action=J}function D$(_){var J=j0(),$=u0;if($!==null)return SY(J,$,_);j0(),J=J.memoizedState,$=j0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function M7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=o1.updateQueue,J===null&&(J=V$(),o1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function FG(_){var J=e2();return _={current:_},J.memoizedState=_}function K8(_,J,$,q){var Z=e2();o1.flags|=_,Z.memoizedState=M7(o5|J,{destroy:void 0},$,q===void 0?null:q)}function z5(_,J,$,q){var Z=j0();q=q===void 0?null:q;var X=Z.memoizedState.inst;u0!==null&&q!==null&&sU(q,u0.memoizedState.deps)?Z.memoizedState=M7(J,X,$,q):(o1.flags|=_,Z.memoizedState=M7(o5|J,X,$,q))}function u$(_,J){(o1.mode&z4)!==s1?K8(276826112,G5,_,J):K8(8390656,G5,_,J)}function GI(_){o1.flags|=4;var J=o1.updateQueue;if(J===null)J=V$(),o1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function XG(_){var J=e2(),$={impl:_};return J.memoizedState=$,function(){if((O0&j2)!==E2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function b$(_){var J=j0().memoizedState;return GI({ref:J,nextImpl:_}),function(){if((O0&j2)!==E2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function KG(_,J){var $=4194308;return(o1.mode&z4)!==s1&&($|=134217728),K8($,u5,_,J)}function fY(_,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 HG(_,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;(o1.mode&z4)!==s1&&(q|=134217728),K8(q,u5,fY.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,z5(4,u5,fY.bind(null,J,_),$)}function YG(_,J){return e2().memoizedState=[_,J===void 0?null:J],_}function h$(_,J){var $=j0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&sU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function zG(_,J){var $=e2();J=J===void 0?null:J;var q=_();if(C8){J0(!0);try{_()}finally{J0(!1)}}return $.memoizedState=[q,J],q}function x$(_,J){var $=j0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&sU(J,q[1]))return q[0];if(q=_(),C8){J0(!0);try{_()}finally{J0(!1)}}return $.memoizedState=[q,J],q}function WG(_,J){var $=e2();return LG($,_,J)}function jY(_,J){var $=j0();return VY($,u0.memoizedState,_,J)}function vY(_,J){var $=j0();return u0===null?LG($,_,J):VY($,u0.memoizedState,_,J)}function LG(_,J,$){if($===void 0||(f3&1073741824)!==0&&(F0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=yz(),o1.lanes|=_,V6|=_,$}function VY(_,J,$,q){if(Q5($,J))return $;if(t7.current!==null)return _=LG(_,$,q),Q5(_,J)||(B2=!0),_;if((f3&42)===0||(f3&1073741824)!==0&&(F0&261930)===0)return B2=!0,_.memoizedState=$;return _=yz(),o1.lanes|=_,V6|=_,J}function m$(){W1.asyncTransitions--}function yY(_,J,$,q,Z){var X=C0.p;C0.p=X!==0&&X<Y4?X:Y4;var W=W1.T,B={};B._updatedFibers=new Set,W1.T=B,RG(_,!1,J,$);try{var I=Z(),S=W1.S;if(S!==null&&S(B,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){W1.asyncTransitions++,I.then(m$,m$);var _1=JI(I,q);$_(_,J,_1,f5(_))}else $_(_,J,q,f5(_))}catch(J1){$_(_,J,{then:function(){},status:"rejected",reason:J1},f5(_))}finally{C0.p=X,W!==null&&B.types!==null&&(W.types!==null&&W.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."),W.types=B.types),W1.T=W,W===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 BG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var Z=kY(_).queue;eO(_),yY(_,Z,J,E8,$===null?R:function(){return DY(_),$(q)})}function kY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:E8,baseState:E8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:X4,lastRenderedState:E8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:X4,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function DY(_){W1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=kY(_);J.next===null&&(J=_.alternate.memoizedState),$_(_,J.next.queue,{},f5(_))}function AG(){var _=qG(!1);return _=yY.bind(null,o1,_.queue,!0,!1),e2().memoizedState=_,[!1,_]}function uY(){var _=B7(X4)[0],J=j0().memoizedState;return[typeof _==="boolean"?_:__(_),J]}function bY(){var _=J_(X4)[0],J=j0().memoizedState;return[typeof _==="boolean"?_:__(_),J]}function H8(){return l0(HJ)}function MG(){var _=e2(),J=b0.identifierPrefix;if(A0){var $=P3,q=I3;$=(q&~(1<<32-_5(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=gQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=xN++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function TG(){return e2().memoizedState=ZI.bind(null,o1)}function ZI(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=f5($),Z=G6(q),X=Z6($,Z,q);X!==null&&(j4(q,"refresh()",_),e0(X,$,q),o9(X,$,q)),_=xU(),J!==null&&J!==void 0&&X!==null&&console.error("The seed argument is not enabled outside experimental channels."),Z.payload={cache:_};return}$=$.return}}function FI(_,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 Z={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};g$(_)?hY(J,Z):(Z=SU(_,J,Z,q),Z!==null&&(j4(q,"dispatch()",_),e0(Z,_,q),xY(Z,J,q)))}function EY(_,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(_),$_(_,J,$,q)&&j4(q,"setState()",_)}function $_(_,J,$,q){var Z={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(g$(_))hY(J,Z);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var W=W1.H;W1.H=L4;try{var B=J.lastRenderedState,I=X(B,$);if(Z.hasEagerState=!0,Z.eagerState=I,Q5(I,B))return z$(_,J,Z,0),b0===null&&Y$(),!1}catch(S){}finally{W1.H=W}}if($=SU(_,J,Z,q),$!==null)return e0($,_,q),xY($,J,q),!0}return!1}function RG(_,J,$,q){if(W1.T===null&&O8===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:tG(),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=SU(_,$,q,2),J!==null&&(j4(2,"setOptimistic()",_),e0(J,_,2))}function g$(_){var J=_.alternate;return _===o1||J!==null&&J===o1}function hY(_,J){e7=mQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function xY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,H5(_,$)}}function OG(_){if(_!==null&&typeof _!=="function"){var J=String(_);bB.has(J)||(bB.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function IG(_,J,$,q){var Z=_.memoizedState,X=$(q,Z);if(_.mode&r2){J0(!0);try{X=$(q,Z)}finally{J0(!1)}}X===void 0&&(J=E(J)||"Component",yB.has(J)||(yB.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),Z=X===null||X===void 0?Z:Y0({},Z,X),_.memoizedState=Z,_.lanes===0&&(_.updateQueue.baseState=Z)}function mY(_,J,$,q,Z,X,W){var B=_.stateNode;if(typeof B.shouldComponentUpdate==="function"){if($=B.shouldComponentUpdate(q,X,W),_.mode&r2){J0(!0);try{$=B.shouldComponentUpdate(q,X,W)}finally{J0(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",E(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!l9($,q)||!l9(Z,X):!0}function gY(_,J,$,q){var Z=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==Z&&(_=g(_)||"Component",SB.has(_)||(SB.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),BF.enqueueReplaceState(J,J.state,null))}function Y8(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=Y0({},$));for(var Z in _)$[Z]===void 0&&($[Z]=_[Z])}return $}function pY(_){rZ(_),console.warn(`%s
115
+ Incoming: %s`,X1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!Q5(_[$],J[$]))return!1;return!0}function tU(_,J,$,q,Z,X){if(y3=X,n1=J,_4=_!==null?_._debugHookTypes:null,D3=-1,t_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=x(n1),zF.has(X)||(zF.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?LF:_4!==null?NB:WF,S8=X=(J.mode&r2)!==t1;var W=GF($,q,Z);if(S8=!1,_9&&(W=oU(J,$,q,Z)),X){$0(!0);try{W=oU(J,$,q,Z)}finally{$0(!1)}}return zY(_,J),W}function zY(_,J){J._debugHookTypes=_4,J.dependencies===null?k3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:k3}):J.dependencies._debugThenableState=k3,z1.H=o_;var $=D0!==null&&D0.next!==null;if(y3=0,_4=X1=W2=D0=n1=null,D3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),mQ=!1,s_=0,k3=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)),i_?(i_=!1,_=!0):_=!1,_&&(J=x(J)||"Unknown",IB.has(J)||zF.has(J)||(IB.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 oU(_,J,$,q){n1=_;var Z=0;do{if(_9&&(k3=null),s_=0,_9=!1,Z>=mN)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(Z+=1,t_=!1,W2=D0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}D3=-1,z1.H=wB,X=GF(J,$,q)}while(_9);return X}function QI(){var _=z1.H,J=_.useState()[0];return J=typeof J.then==="function"?J_(J):J,_=_.useState()[0],(D0!==null?D0.memoizedState:null)!==_&&(n1.flags|=1024),J}function nU(){var _=gQ!==0;return gQ=0,_}function eU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&W4)!==t1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function _G(_){if(mQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}mQ=!1}y3=0,_4=W2=D0=n1=null,D3=-1,X1=null,_9=!1,s_=gQ=0,k3=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 j0(){if(D0===null){var _=n1.alternate;_=_!==null?_.memoizedState:null}else _=D0.next;var J=W2===null?n1.memoizedState:W2.next;if(J!==null)W2=J,D0=_;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.")}D0=_,_={memoizedState:D0.memoizedState,baseState:D0.baseState,baseQueue:D0.baseQueue,queue:D0.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 J_(_){var J=s_;return s_+=1,k3===null&&(k3=eH()),_=JY(k3,_,J),J=n1,(W2===null?J.memoizedState:W2.next)===null&&(J=J.alternate,z1.H=J!==null&&J.memoizedState!==null?LF:WF),_}function Y6(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return J_(_);if(_.$$typeof===l4)return l0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function K8(_){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(Z){return Z.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=V$(),n1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||t_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=MP;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 K4(_,J){return typeof J==="function"?J(_):J}function JG(_,J,$){var q=e2();if($!==void 0){var Z=$(J);if(S8){$0(!0);try{$(J)}finally{$0(!1)}}}else Z=J;return q.memoizedState=q.baseState=Z,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:Z},q.queue=_,_=_.dispatch=FI.bind(null,n1,_),[q.memoizedState,_]}function A7(_){var J=j0();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 Z=_.baseQueue,X=q.pending;if(X!==null){if(Z!==null){var W=Z.next;Z.next=X.next,X.next=W}J.baseQueue!==Z&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=Z=X,q.pending=null}if(X=_.baseState,Z===null)_.memoizedState=X;else{J=Z.next;var B=W=null,I=null,S=J,_1=!1;do{var J1=S.lane&-536870913;if(J1!==S.lane?(F0&J1)===J1:(y3&J1)===J1){var i=S.revertLane;if(i===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),J1===I8&&(_1=!0);else if((y3&i)===i){S=S.next,i===I8&&(_1=!0);continue}else J1={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},I===null?(B=I=J1,W=X):I=I.next=J1,n1.lanes|=i,k6|=i;J1=S.action,S8&&$(X,J1),X=S.hasEagerState?S.eagerState:$(X,J1)}else i={lane:J1,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},I===null?(B=I=i,W=X):I=I.next=i,n1.lanes|=J1,k6|=J1;S=S.next}while(S!==null&&S!==J);if(I===null?W=X:I.next=B,!Q5(X,_.memoizedState)&&(L2=!0,_1&&($=a7,$!==null)))throw $;_.memoizedState=X,_.baseState=W,_.baseQueue=I,q.lastRenderedState=X}return Z===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function $_(_){var J=j0(),$=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:Z}=$,X=J.memoizedState;if(Z!==null){$.pending=null;var W=Z=Z.next;do X=_(X,W.action),W=W.next;while(W!==Z);Q5(X,J.memoizedState)||(L2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function QG(_,J,$){var q=n1,Z=e2();if(A0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();e7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),e7=!0)}else{if(X=J(),e7||($=J(),Q5(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),e7=!0)),u0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(F0&127)!==0||WY(q,J,X)}return Z.memoizedState=X,$={value:X,getSnapshot:J},Z.queue=$,u$(BY.bind(null,q,$,_),[_]),q.flags|=2048,T7(e5|G5,{destroy:void 0},LY.bind(null,q,$,X,J),null),X}function y$(_,J,$){var q=n1,Z=j0(),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(),!e7){var W=J();Q5($,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),e7=!0)}if(W=!Q5((D0||Z).memoizedState,$))Z.memoizedState=$,L2=!0;Z=Z.queue;var B=BY.bind(null,q,Z,_);if(W5(2048,G5,B,[_]),Z.getSnapshot!==J||W||W2!==null&&W2.memoizedState.tag&e5){if(q.flags|=2048,T7(e5|G5,{destroy:void 0},LY.bind(null,q,Z,$,J),null),u0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(y3&127)!==0||WY(q,J,$)}return $}function WY(_,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 LY(_,J,$,q){J.value=$,J.getSnapshot=q,AY(J)&&MY(_)}function BY(_,J,$){return $(function(){AY(J)&&(v4(2,"updateSyncExternalStore()",_),MY(_))})}function AY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!Q5(_,$)}catch(q){return!0}}function MY(_){var J=d2(_,2);J!==null&&_2(J,_,2)}function qG(_){var J=e2();if(typeof _==="function"){var $=_;if(_=$(),S8){$0(!0);try{$()}finally{$0(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:K4,lastRenderedState:_},J}function UG(_){_=qG(_);var J=_.queue,$=EY.bind(null,n1,J);return J.dispatch=$,[_.memoizedState,$]}function GG(_){var J=e2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=RG.bind(null,n1,!0,$),$.dispatch=J,[_,J]}function TY(_,J){var $=j0();return RY($,D0,_,J)}function RY(_,J,$,q){return _.baseState=$,$G(_,D0,typeof q==="function"?q:K4)}function OY(_,J){var $=j0();if(D0!==null)return RY($,D0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function qI(_,J,$,q,Z){if(g$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var X={payload:Z,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){X.listeners.push(W)}};z1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,IY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function IY(_,J){var{action:$,payload:q}=J,Z=_.state;if(J.isTransition){var X=z1.T,W={};W._updatedFibers=new Set,z1.T=W;try{var B=$(Z,q),I=z1.S;I!==null&&I(W,B),PY(_,J,B)}catch(S){ZG(_,J,S)}finally{X!==null&&W.types!==null&&(X.types!==null&&X.types!==W.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=W.types),z1.T=X,X===null&&W._updatedFibers&&(_=W._updatedFibers.size,W._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{W=$(Z,q),PY(_,J,W)}catch(S){ZG(_,J,S)}}function PY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(z1.asyncTransitions++,$.then(m$,m$),$.then(function(q){NY(_,J,q)},function(q){return ZG(_,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.")):NY(_,J,$)}function NY(_,J,$){J.status="fulfilled",J.value=$,wY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,IY(_,$)))}function ZG(_,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 CY(_,J){return J}function M7(_,J){if(A0){var $=u0.formState;if($!==null){_:{var q=n1;if(A0){if(m0){J:{var Z=m0;for(var X=t5;Z.nodeType!==8;){if(!X){Z=null;break J}if(Z=v5(Z.nextSibling),Z===null){Z=null;break J}}X=Z.data,Z=X===hF||X===KA?Z:null}if(Z){m0=v5(Z.nextSibling),q=Z.data===hF;break _}}U6(q)}q=!1}q&&(J=$[0])}}return $=e2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:CY,lastRenderedState:J},$.queue=q,$=EY.bind(null,n1,q),q.dispatch=$,q=qG(!1),X=RG.bind(null,n1,!1,q.queue),q=e2(),Z={state:J,dispatch:null,action:_,pending:null},q.queue=Z,$=qI.bind(null,n1,Z,X,$),Z.dispatch=$,q.memoizedState=_,[J,$,!1]}function k$(_){var J=j0();return SY(J,D0,_)}function SY(_,J,$){if(J=$G(_,J,CY)[0],_=A7(K4)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=J_(J)}catch(W){if(W===s7)throw bQ;throw W}else q=J;J=j0();var Z=J.queue,X=Z.dispatch;return $!==J.memoizedState&&(n1.flags|=2048,T7(e5|G5,{destroy:void 0},UI.bind(null,Z,$),null)),[q,X,_]}function UI(_,J){_.action=J}function D$(_){var J=j0(),$=D0;if($!==null)return SY(J,$,_);j0(),J=J.memoizedState,$=j0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function T7(_,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 FG(_){var J=e2();return _={current:_},J.memoizedState=_}function H8(_,J,$,q){var Z=e2();n1.flags|=_,Z.memoizedState=T7(e5|J,{destroy:void 0},$,q===void 0?null:q)}function W5(_,J,$,q){var Z=j0();q=q===void 0?null:q;var X=Z.memoizedState.inst;D0!==null&&q!==null&&sU(q,D0.memoizedState.deps)?Z.memoizedState=T7(J,X,$,q):(n1.flags|=_,Z.memoizedState=T7(e5|J,X,$,q))}function u$(_,J){(n1.mode&W4)!==t1?H8(276826112,G5,_,J):H8(8390656,G5,_,J)}function GI(_){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 XG(_){var J=e2(),$={impl:_};return J.memoizedState=$,function(){if((O0&C2)!==u2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function b$(_){var J=j0().memoizedState;return GI({ref:J,nextImpl:_}),function(){if((O0&C2)!==u2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function KG(_,J){var $=4194308;return(n1.mode&W4)!==t1&&($|=134217728),H8($,b5,_,J)}function fY(_,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 HG(_,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&W4)!==t1&&(q|=134217728),H8(q,b5,fY.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,W5(4,b5,fY.bind(null,J,_),$)}function YG(_,J){return e2().memoizedState=[_,J===void 0?null:J],_}function h$(_,J){var $=j0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&sU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function zG(_,J){var $=e2();J=J===void 0?null:J;var q=_();if(S8){$0(!0);try{_()}finally{$0(!1)}}return $.memoizedState=[q,J],q}function x$(_,J){var $=j0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&sU(J,q[1]))return q[0];if(q=_(),S8){$0(!0);try{_()}finally{$0(!1)}}return $.memoizedState=[q,J],q}function WG(_,J){var $=e2();return LG($,_,J)}function jY(_,J){var $=j0();return VY($,D0.memoizedState,_,J)}function vY(_,J){var $=j0();return D0===null?LG($,_,J):VY($,D0.memoizedState,_,J)}function LG(_,J,$){if($===void 0||(y3&1073741824)!==0&&(F0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=yz(),n1.lanes|=_,k6|=_,$}function VY(_,J,$,q){if(Q5($,J))return $;if(o7.current!==null)return _=LG(_,$,q),Q5(_,J)||(L2=!0),_;if((y3&42)===0||(y3&1073741824)!==0&&(F0&261930)===0)return L2=!0,_.memoizedState=$;return _=yz(),n1.lanes|=_,k6|=_,J}function m$(){z1.asyncTransitions--}function yY(_,J,$,q,Z){var X=C0.p;C0.p=X!==0&&X<z4?X:z4;var W=z1.T,B={};B._updatedFibers=new Set,z1.T=B,RG(_,!1,J,$);try{var I=Z(),S=z1.S;if(S!==null&&S(B,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){z1.asyncTransitions++,I.then(m$,m$);var _1=JI(I,q);Q_(_,J,_1,j5(_))}else Q_(_,J,q,j5(_))}catch(J1){Q_(_,J,{then:function(){},status:"rejected",reason:J1},j5(_))}finally{C0.p=X,W!==null&&B.types!==null&&(W.types!==null&&W.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."),W.types=B.types),z1.T=W,W===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 BG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var Z=kY(_).queue;eO(_),yY(_,Z,J,h8,$===null?R:function(){return DY(_),$(q)})}function kY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:h8,baseState:h8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:K4,lastRenderedState:h8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:K4,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function DY(_){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=kY(_);J.next===null&&(J=_.alternate.memoizedState),Q_(_,J.next.queue,{},j5(_))}function AG(){var _=qG(!1);return _=yY.bind(null,n1,_.queue,!0,!1),e2().memoizedState=_,[!1,_]}function uY(){var _=A7(K4)[0],J=j0().memoizedState;return[typeof _==="boolean"?_:J_(_),J]}function bY(){var _=$_(K4)[0],J=j0().memoizedState;return[typeof _==="boolean"?_:J_(_),J]}function Y8(){return l0(YJ)}function MG(){var _=e2(),J=u0.identifierPrefix;if(A0){var $=S3,q=C3;$=(q&~(1<<32-_5(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=gQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=xN++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function TG(){return e2().memoizedState=ZI.bind(null,n1)}function ZI(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=j5($),Z=F6(q),X=X6($,Z,q);X!==null&&(v4(q,"refresh()",_),_2(X,$,q),n9(X,$,q)),_=xU(),J!==null&&J!==void 0&&X!==null&&console.error("The seed argument is not enabled outside experimental channels."),Z.payload={cache:_};return}$=$.return}}function FI(_,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=j5(_);var Z={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};g$(_)?hY(J,Z):(Z=SU(_,J,Z,q),Z!==null&&(v4(q,"dispatch()",_),_2(Z,_,q),xY(Z,J,q)))}function EY(_,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=j5(_),Q_(_,J,$,q)&&v4(q,"setState()",_)}function Q_(_,J,$,q){var Z={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(g$(_))hY(J,Z);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var W=z1.H;z1.H=B4;try{var B=J.lastRenderedState,I=X(B,$);if(Z.hasEagerState=!0,Z.eagerState=I,Q5(I,B))return z$(_,J,Z,0),u0===null&&Y$(),!1}catch(S){}finally{z1.H=W}}if($=SU(_,J,Z,q),$!==null)return _2($,_,q),xY($,J,q),!0}return!1}function RG(_,J,$,q){if(z1.T===null&&I8===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:tG(),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=SU(_,$,q,2),J!==null&&(v4(2,"setOptimistic()",_),_2(J,_,2))}function g$(_){var J=_.alternate;return _===n1||J!==null&&J===n1}function hY(_,J){_9=mQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function xY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,g5(_,$)}}function OG(_){if(_!==null&&typeof _!=="function"){var J=String(_);bB.has(J)||(bB.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function IG(_,J,$,q){var Z=_.memoizedState,X=$(q,Z);if(_.mode&r2){$0(!0);try{X=$(q,Z)}finally{$0(!1)}}X===void 0&&(J=E(J)||"Component",yB.has(J)||(yB.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),Z=X===null||X===void 0?Z:Y0({},Z,X),_.memoizedState=Z,_.lanes===0&&(_.updateQueue.baseState=Z)}function mY(_,J,$,q,Z,X,W){var B=_.stateNode;if(typeof B.shouldComponentUpdate==="function"){if($=B.shouldComponentUpdate(q,X,W),_.mode&r2){$0(!0);try{$=B.shouldComponentUpdate(q,X,W)}finally{$0(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",E(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!d9($,q)||!d9(Z,X):!0}function gY(_,J,$,q){var Z=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==Z&&(_=x(_)||"Component",SB.has(_)||(SB.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),BF.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 Z in _)$[Z]===void 0&&($[Z]=_[Z])}return $}function pY(_){rZ(_),console.warn(`%s
116
116
 
117
117
  %s
118
- `,_9?"An error occurred in the <"+_9+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function cY(_){var J=_9?"The above error occurred in the <"+_9+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((AF||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
118
+ `,J9?"An error occurred in the <"+J9+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function cY(_){var J=J9?"The above error occurred in the <"+J9+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((AF||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
120
120
 
121
121
  %s
122
122
 
@@ -126,9 +126,9 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
126
126
  %s
127
127
 
128
128
  %s
129
- `,_,J,$)}function lY(_){rZ(_)}function p$(_,J){try{_9=J.source?g(J.source):null,AF=null;var $=J.value;if(W1.actQueue!==null)W1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(Z){setTimeout(function(){throw Z})}}function dY(_,J,$){try{_9=$.source?g($.source):null,AF=g(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(Z){setTimeout(function(){throw Z})}}function PG(_,J,$){return $=G6($),$.tag=KF,$.payload={element:null},$.callback=function(){L1(J.source,p$,_,J)},$}function NG(_){return _=G6(_),_.tag=KF,_}function wG(_,J,$,q){var Z=$.type.getDerivedStateFromError;if(typeof Z==="function"){var X=q.value;_.payload=function(){return Z(X)},_.callback=function(){hH($),L1(q.source,dY,J,$,q)}}var W=$.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&(_.callback=function(){hH($),L1(q.source,dY,J,$,q),typeof Z!=="function"&&(k6===null?k6=new Set([this]):k6.add(this)),uN(this,q),typeof Z==="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.",g($)||"Unknown")})}function XI(_,J,$,q,Z){if($.flags|=32768,i4&&K_(_,Z),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&W7(J,$,Z,!0),A0&&(s4=!0),$=D5.current,$!==null){switch($.tag){case 31:case 13:return t5===null?o$():$.alternate===null&&o0===y3&&(o0=lQ),$.flags&=-257,$.flags|=65536,$.lanes=Z,q===EQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),iG(_,q,Z)),!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)),iG(_,q,Z)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return iG(_,q,Z),o$(),!1}if(A0)return s4=!0,J=D5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=Z,q!==eZ&&i9(N5(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!==eZ&&i9(N5(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,Z&=-Z,_.lanes|=Z,q=N5(q,$),Z=PG(_.stateNode,q,Z),f$(_,Z),o0!==j6&&(o0=S8)),!1;var X=N5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if($J===null?$J=[X]:$J.push(X),o0!==j6&&(o0=S8),J===null)return!0;q=N5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=Z&-Z,$.lanes|=_,_=PG($.stateNode,q,_),f$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(k6===null||!k6.has(X))))return $.flags|=65536,Z&=-Z,$.lanes|=Z,Z=NG(Z),wG(Z,_,$,q),f$($,Z),!1}$=$.return}while($!==null);return!1}function m2(_,J,$,q){J.child=_===null?BB(J,null,$,q):w8(J,_.child,$,q)}function iY(_,J,$,q,Z){$=$.render;var X=J.ref;if("ref"in q){var W={};for(var B in q)B!=="ref"&&(W[B]=q[B])}else W=q;if(Z8(J),q=tU(_,J,$,W,X,Z),B=nU(),_!==null&&!B2)return eU(_,J,Z),B3(_,J,Z);return A0&&B&&kU(J),J.flags|=1,m2(_,J,q,Z),J.child}function rY(_,J,$,q,Z){if(_===null){var X=$.type;if(typeof X==="function"&&!jU(X)&&X.defaultProps===void 0&&$.compare===null)return $=Q8(X),J.tag=15,J.type=$,SG(J,X),aY(_,J,$,q,Z);return _=vU($.type,null,q,J,J.mode,Z),_.ref=J.ref,_.return=J,J.child=_}if(X=_.child,!kG(_,Z)){var W=X.memoizedProps;if($=$.compare,$=$!==null?$:l9,$(W,q)&&_.ref===J.ref)return B3(_,J,Z)}return J.flags|=1,_=Y3(X,q),_.ref=J.ref,_.return=J,J.child=_}function aY(_,J,$,q,Z){if(_!==null){var X=_.memoizedProps;if(l9(X,q)&&_.ref===J.ref&&J.type===_.type)if(B2=!1,J.pendingProps=q=X,kG(_,Z))(_.flags&131072)!==0&&(B2=!0);else return J.lanes=_.lanes,B3(_,J,Z)}return CG(_,J,$,q,Z)}function sY(_,J,$,q){var Z=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:V_,_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(Z=0;q!==null;)Z=Z|q.lanes|q.childLanes,q=q.sibling;q=Z&~X}else q=0,J.child=null;return tY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&I$(J,X!==null?X.cachePool:null),X!==null?HY(J,X):iU(J),YY(J);else return q=J.lanes=536870912,tY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(I$(J,X.cachePool),HY(J,X),X6(J),J.memoizedState=null):(_!==null&&I$(J,null),iU(J),X6(J));return m2(_,J,Z,$),J.child}function Q_(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:V_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function tY(_,J,$,q,Z){var X=pU();return X=X===null?null:{parent:z2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&I$(J,null),iU(J),YY(J),_!==null&&W7(_,J,q,!0),J.childLanes=Z,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 lY(_){rZ(_)}function p$(_,J){try{J9=J.source?x(J.source):null,AF=null;var $=J.value;if(z1.actQueue!==null)z1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(Z){setTimeout(function(){throw Z})}}function dY(_,J,$){try{J9=$.source?x($.source):null,AF=x(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(Z){setTimeout(function(){throw Z})}}function PG(_,J,$){return $=F6($),$.tag=KF,$.payload={element:null},$.callback=function(){H1(J.source,p$,_,J)},$}function NG(_){return _=F6(_),_.tag=KF,_}function wG(_,J,$,q){var Z=$.type.getDerivedStateFromError;if(typeof Z==="function"){var X=q.value;_.payload=function(){return Z(X)},_.callback=function(){hH($),H1(q.source,dY,J,$,q)}}var W=$.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&(_.callback=function(){hH($),H1(q.source,dY,J,$,q),typeof Z!=="function"&&(u6===null?u6=new Set([this]):u6.add(this)),uN(this,q),typeof Z==="function"||($.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",x($)||"Unknown")})}function XI(_,J,$,q,Z){if($.flags|=32768,r4&&H_(_,Z),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&L7(J,$,Z,!0),A0&&(t4=!0),$=u5.current,$!==null){switch($.tag){case 31:case 13:return n5===null?o$():$.alternate===null&&o0===b3&&(o0=lQ),$.flags&=-257,$.flags|=65536,$.lanes=Z,q===EQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),iG(_,q,Z)),!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)),iG(_,q,Z)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return iG(_,q,Z),o$(),!1}if(A0)return t4=!0,J=u5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=Z,q!==eZ&&r9(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!==eZ&&r9(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,Z&=-Z,_.lanes|=Z,q=w5(q,$),Z=PG(_.stateNode,q,Z),f$(_,Z),o0!==V6&&(o0=f8)),!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(QJ===null?QJ=[X]:QJ.push(X),o0!==V6&&(o0=f8),J===null)return!0;q=w5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=Z&-Z,$.lanes|=_,_=PG($.stateNode,q,_),f$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(u6===null||!u6.has(X))))return $.flags|=65536,Z&=-Z,$.lanes|=Z,Z=NG(Z),wG(Z,_,$,q),f$($,Z),!1}$=$.return}while($!==null);return!1}function x2(_,J,$,q){J.child=_===null?BB(J,null,$,q):C8(J,_.child,$,q)}function iY(_,J,$,q,Z){$=$.render;var X=J.ref;if("ref"in q){var W={};for(var B in q)B!=="ref"&&(W[B]=q[B])}else W=q;if(F8(J),q=tU(_,J,$,W,X,Z),B=nU(),_!==null&&!L2)return eU(_,J,Z),R3(_,J,Z);return A0&&B&&kU(J),J.flags|=1,x2(_,J,q,Z),J.child}function rY(_,J,$,q,Z){if(_===null){var X=$.type;if(typeof X==="function"&&!jU(X)&&X.defaultProps===void 0&&$.compare===null)return $=q8(X),J.tag=15,J.type=$,SG(J,X),aY(_,J,$,q,Z);return _=vU($.type,null,q,J,J.mode,Z),_.ref=J.ref,_.return=J,J.child=_}if(X=_.child,!kG(_,Z)){var W=X.memoizedProps;if($=$.compare,$=$!==null?$:d9,$(W,q)&&_.ref===J.ref)return R3(_,J,Z)}return J.flags|=1,_=B3(X,q),_.ref=J.ref,_.return=J,J.child=_}function aY(_,J,$,q,Z){if(_!==null){var X=_.memoizedProps;if(d9(X,q)&&_.ref===J.ref&&J.type===_.type)if(L2=!1,J.pendingProps=q=X,kG(_,Z))(_.flags&131072)!==0&&(L2=!0);else return J.lanes=_.lanes,R3(_,J,Z)}return CG(_,J,$,q,Z)}function sY(_,J,$,q){var Z=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:y_,_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(Z=0;q!==null;)Z=Z|q.lanes|q.childLanes,q=q.sibling;q=Z&~X}else q=0,J.child=null;return tY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&I$(J,X!==null?X.cachePool:null),X!==null?HY(J,X):iU(J),YY(J);else return q=J.lanes=536870912,tY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(I$(J,X.cachePool),HY(J,X),H6(J),J.memoizedState=null):(_!==null&&I$(J,null),iU(J),H6(J));return x2(_,J,Z,$),J.child}function q_(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:y_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function tY(_,J,$,q,Z){var X=pU();return X=X===null?null:{parent:Y2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&I$(J,null),iU(J),YY(J),_!==null&&L7(_,J,q,!0),J.childLanes=Z,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=d$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function oY(_,J,$){return w8(J,_.child,null,$),_=c$(J,J.pendingProps),_.flags|=2,S5(J),J.memoizedState=null,_}function KI(_,J,$){var q=J.pendingProps,Z=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(A0){if(q.mode==="hidden")return _=c$(J,q),J.lanes=536870912,Q_(null,_);if(aU(J),(_=p0)?($=IW(_,a5),$=$!==null&&$.data===k8?$:null,$!==null&&(q={dehydrated:$,treeContext:cH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=gH($),q.return=J,J.child=q,c2=J,p0=null)):$=null,$===null)throw B$(J,_),Q6(J);return J.lanes=536870912,null}return c$(J,q)}var X=_.memoizedState;if(X!==null){var W=X.dehydrated;if(aU(J),Z)if(J.flags&256)J.flags&=-257,J=oY(_,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(dH(),($&536870912)!==0&&t$(J),B2||W7(_,J,$,!1),Z=($&_.childLanes)!==0,B2||Z){if(q=b0,q!==null&&(W=m5(q,$),W!==0&&W!==X.retryLane))throw X.retryLane=W,d2(_,W),e0(q,_,W),MF;o$(),J=oY(_,J,$)}else _=X.treeContext,p0=j5(W.nextSibling),c2=J,A0=!0,I6=null,s4=!1,k5=null,a5=!1,_!==null&&lH(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),_=Y3(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 CG(_,J,$,q,Z){if($.prototype&&typeof $.prototype.render==="function"){var X=E($)||"Unknown";EB[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),EB[X]=!0)}if(J.mode&r2&&W4.recordLegacyContextWarning(J,null),_===null&&(SG(J,J.type),$.contextTypes&&(X=E($)||"Unknown",xB[X]||(xB[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)))),Z8(J),$=tU(_,J,$,q,void 0,Z),q=nU(),_!==null&&!B2)return eU(_,J,Z),B3(_,J,Z);return A0&&q&&kU(J),J.flags|=1,m2(_,J,$,Z),J.child}function nY(_,J,$,q,Z,X){if(Z8(J),v3=-1,s_=_!==null&&_.type!==J.type,J.updateQueue=null,$=oU(J,q,$,Z),zY(_,J),q=nU(),_!==null&&!B2)return eU(_,J,X),B3(_,J,X);return A0&&q&&kU(J),J.flags|=1,m2(_,J,$,X),J.child}function eY(_,J,$,q,Z){switch(z(J)){case!1:var X=J.stateNode,W=new J.type(J.memoizedProps,X.context).state;X.updater.enqueueSetState(X,W,null);break;case!0:J.flags|=128,J.flags|=65536,X=Error("Simulated error coming from DevTools");var B=Z&-Z;if(J.lanes|=B,W=b0,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=NG(B),wG(B,W,J,N5(X,J)),f$(J,B)}if(Z8(J),J.stateNode===null){if(W=O6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==c4)&&!uB.has($)&&(uB.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===TZ?" 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",E($)||"Component",B)),typeof X==="object"&&X!==null&&(W=l0(X)),X=new $(q,W),J.mode&r2){J0(!0);try{X=new $(q,W)}finally{J0(!1)}}if(W=J.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,X.updater=BF,J.stateNode=X,X._reactInternals=J,X._reactInternalInstance=CB,typeof $.getDerivedStateFromProps==="function"&&W===null&&(W=E($)||"Component",fB.has(W)||(fB.add(W),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.",W,X.state===null?"null":"undefined",W))),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"){var I=B=W=null;if(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof X.UNSAFE_componentWillMount==="function"&&(W="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"),W!==null||B!==null||I!==null){X=E($)||"Component";var S=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";vB.has(X)||(vB.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=d$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function oY(_,J,$){return C8(J,_.child,null,$),_=c$(J,J.pendingProps),_.flags|=2,f5(J),J.memoizedState=null,_}function KI(_,J,$){var q=J.pendingProps,Z=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(A0){if(q.mode==="hidden")return _=c$(J,q),J.lanes=536870912,q_(null,_);if(aU(J),(_=m0)?($=IW(_,t5),$=$!==null&&$.data===D8?$:null,$!==null&&(q={dehydrated:$,treeContext:cH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=gH($),q.return=J,J.child=q,p2=J,m0=null)):$=null,$===null)throw B$(J,_),U6(J);return J.lanes=536870912,null}return c$(J,q)}var X=_.memoizedState;if(X!==null){var W=X.dehydrated;if(aU(J),Z)if(J.flags&256)J.flags&=-257,J=oY(_,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(dH(),($&536870912)!==0&&t$(J),L2||L7(_,J,$,!1),Z=($&_.childLanes)!==0,L2||Z){if(q=u0,q!==null&&(W=H5(q,$),W!==0&&W!==X.retryLane))throw X.retryLane=W,d2(_,W),_2(q,_,W),MF;o$(),J=oY(_,J,$)}else _=X.treeContext,m0=v5(W.nextSibling),p2=J,A0=!0,N6=null,t4=!1,D5=null,t5=!1,_!==null&&lH(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),_=B3(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 CG(_,J,$,q,Z){if($.prototype&&typeof $.prototype.render==="function"){var X=E($)||"Unknown";EB[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),EB[X]=!0)}if(J.mode&r2&&L4.recordLegacyContextWarning(J,null),_===null&&(SG(J,J.type),$.contextTypes&&(X=E($)||"Unknown",xB[X]||(xB[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)))),F8(J),$=tU(_,J,$,q,void 0,Z),q=nU(),_!==null&&!L2)return eU(_,J,Z),R3(_,J,Z);return A0&&q&&kU(J),J.flags|=1,x2(_,J,$,Z),J.child}function nY(_,J,$,q,Z,X){if(F8(J),D3=-1,t_=_!==null&&_.type!==J.type,J.updateQueue=null,$=oU(J,q,$,Z),zY(_,J),q=nU(),_!==null&&!L2)return eU(_,J,X),R3(_,J,X);return A0&&q&&kU(J),J.flags|=1,x2(_,J,$,X),J.child}function eY(_,J,$,q,Z){switch(z(J)){case!1:var X=J.stateNode,W=new J.type(J.memoizedProps,X.context).state;X.updater.enqueueSetState(X,W,null);break;case!0:J.flags|=128,J.flags|=65536,X=Error("Simulated error coming from DevTools");var B=Z&-Z;if(J.lanes|=B,W=u0,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=NG(B),wG(B,W,J,w5(X,J)),f$(J,B)}if(F8(J),J.stateNode===null){if(W=P6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==l4)&&!uB.has($)&&(uB.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===TZ?" 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",E($)||"Component",B)),typeof X==="object"&&X!==null&&(W=l0(X)),X=new $(q,W),J.mode&r2){$0(!0);try{X=new $(q,W)}finally{$0(!1)}}if(W=J.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,X.updater=BF,J.stateNode=X,X._reactInternals=J,X._reactInternalInstance=CB,typeof $.getDerivedStateFromProps==="function"&&W===null&&(W=E($)||"Component",fB.has(W)||(fB.add(W),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.",W,X.state===null?"null":"undefined",W))),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"){var I=B=W=null;if(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof X.UNSAFE_componentWillMount==="function"&&(W="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"),W!==null||B!==null||I!==null){X=E($)||"Component";var S=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";vB.has(X)||(vB.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
 
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
136
136
  https://react.dev/link/unsafe-component-lifecycles`,X,S,W!==null?`
137
137
  `+W:"",B!==null?`
138
138
  `+B:"",I!==null?`
139
- `+I:""))}}X=J.stateNode,W=E($)||"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?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!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?",W),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.",W),X.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),$.childContextTypes&&!DB.has($)&&(DB.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)",W)),$.contextTypes&&!kB.has($)&&(kB.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)",W)),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.",W),$.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.",E($)||"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()?",W),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().",W),typeof X.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof X.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),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.",W),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.",W,W),typeof X.getSnapshotBeforeUpdate!=="function"||typeof X.componentDidUpdate==="function"||jB.has($)||(jB.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",E($))),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.",W),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.",W),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(B=X.state)&&(typeof B!=="object"||S2(B))&&console.error("%s.state: must be set to an object or null",W),typeof X.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),X=J.stateNode,X.props=q,X.state=J.memoizedState,X.refs={},lU(J),W=$.contextType,X.context=typeof W==="object"&&W!==null?l0(W):O6,X.state===q&&(W=E($)||"Component",VB.has(W)||(VB.add(W),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.",W))),J.mode&r2&&W4.recordLegacyContextWarning(J,X),W4.recordUnsafeLifecycleWarnings(J,X),X.state=J.memoizedState,W=$.getDerivedStateFromProps,typeof W==="function"&&(IG(J,$,W,q),X.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(W=X.state,typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount(),W!==X.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",g(J)||"Component"),BF.enqueueReplaceState(X,X.state,null)),e9(J,q,X,Z),n9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&z4)!==s1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var _1=J.memoizedProps;B=Y8($,_1),X.props=B;var J1=X.context;I=$.contextType,W=O6,typeof I==="object"&&I!==null&&(W=l0(I)),S=$.getDerivedStateFromProps,I=typeof S==="function"||typeof X.getSnapshotBeforeUpdate==="function",_1=J.pendingProps!==_1,I||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(_1||J1!==W)&&gY(J,X,q,W),f6=!1;var i=J.memoizedState;X.state=i,e9(J,q,X,Z),n9(),J1=J.memoizedState,_1||i!==J1||f6?(typeof S==="function"&&(IG(J,$,S,q),J1=J.memoizedState),(B=f6||mY(J,$,B,q,i,J1,W))?(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&z4)!==s1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&z4)!==s1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=J1),X.props=q,X.state=J1,X.context=W,X=B):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&z4)!==s1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,dU(_,J),W=J.memoizedProps,I=Y8($,W),X.props=I,S=J.pendingProps,i=X.context,J1=$.contextType,B=O6,typeof J1==="object"&&J1!==null&&(B=l0(J1)),_1=$.getDerivedStateFromProps,(J1=typeof _1==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(W!==S||i!==B)&&gY(J,X,q,B),f6=!1,i=J.memoizedState,X.state=i,e9(J,q,X,Z),n9();var F1=J.memoizedState;W!==S||i!==F1||f6||_!==null&&_.dependencies!==null&&M$(_.dependencies)?(typeof _1==="function"&&(IG(J,$,_1,q),F1=J.memoizedState),(I=f6||mY(J,$,I,q,i,F1,B)||_!==null&&_.dependencies!==null&&M$(_.dependencies))?(J1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,F1,B),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,F1,B)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=F1),X.props=q,X.state=F1,X.context=B,X=I):(typeof X.componentDidUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),X=!1)}if(B=X,l$(_,J),W=(J.flags&128)!==0,B||W){if(B=J.stateNode,S1(J),W&&typeof $.getDerivedStateFromError!=="function")$=null,q5=-1;else if($=$B(B),J.mode&r2){J0(!0);try{$B(B)}finally{J0(!1)}}J.flags|=1,_!==null&&W?(J.child=w8(J,_.child,null,Z),J.child=w8(J,null,$,Z)):m2(_,J,$,Z),J.memoizedState=B.state,_=J.child}else _=B3(_,J,Z);return Z=J.stateNode,X&&Z.props!==q&&(J9||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",g(J)||"a component"),J9=!0),_}function _z(_,J,$,q){return G8(),J.flags|=256,m2(_,J,$,q),J.child}function SG(_,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"&&(_=E(J)||"Unknown",mB[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),mB[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=E(J)||"Unknown",hB[J]||(console.error("%s: Function components do not support contextType.",J),hB[J]=!0))}function fG(_){return{baseLanes:_,cachePool:nH()}}function jG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=M5),_}function Jz(_,J,$){var q,Z=J.pendingProps;Y(J)&&(J.flags|=128);var X=!1,W=(J.flags&128)!==0;if((q=W)||(q=_!==null&&_.memoizedState===null?!1:(F2.current&r_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(A0){if(X?F6(J):X6(J),(_=p0)?($=IW(_,a5),$=$!==null&&$.data!==k8?$:null,$!==null&&(q={dehydrated:$,treeContext:cH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=gH($),q.return=J,J.child=q,c2=J,p0=null)):$=null,$===null)throw B$(J,_),Q6(J);return FZ($)?J.lanes=32:J.lanes=536870912,null}var B=Z.children;if(Z=Z.fallback,X){X6(J);var I=J.mode;return B=d$({mode:"hidden",children:B},I),Z=q8(Z,I,$,null),B.return=J,Z.return=J,B.sibling=Z,J.child=B,Z=J.child,Z.memoizedState=fG($),Z.childLanes=jG(_,q,$),J.memoizedState=TF,Q_(null,Z)}return F6(J),vG(J,B)}var S=_.memoizedState;if(S!==null){var _1=S.dehydrated;if(_1!==null){if(W)J.flags&256?(F6(J),J.flags&=-257,J=VG(_,J,$)):J.memoizedState!==null?(X6(J),J.child=_.child,J.flags|=128,J=null):(X6(J),B=Z.fallback,I=J.mode,Z=d$({mode:"visible",children:Z.children},I),B=q8(B,I,$,null),B.flags|=2,Z.return=J,B.return=J,Z.sibling=B,J.child=Z,w8(J,_.child,null,$),Z=J.child,Z.memoizedState=fG($),Z.childLanes=jG(_,q,$),J.memoizedState=TF,J=Q_(null,Z));else if(F6(J),dH(),($&536870912)!==0&&t$(J),FZ(_1)){if(q=_1.nextSibling&&_1.nextSibling.dataset,q){B=q.dgst;var J1=q.msg;I=q.stck;var i=q.cstck}X=J1,q=B,Z=I,_1=i,B=X,I=_1,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=Z||"",B.digest=q,q=I===void 0?null:I,Z={value:B,source:null,stack:q},typeof q==="string"&&nZ.set(B,Z),i9(Z),J=VG(_,J,$)}else if(B2||W7(_,J,$,!1),q=($&_.childLanes)!==0,B2||q){if(q=b0,q!==null&&(Z=m5(q,$),Z!==0&&Z!==S.retryLane))throw S.retryLane=Z,d2(_,Z),e0(q,_,Z),MF;ZZ(_1)||o$(),J=VG(_,J,$)}else ZZ(_1)?(J.flags|=192,J.child=_.child,J=null):(_=S.treeContext,p0=j5(_1.nextSibling),c2=J,A0=!0,I6=null,s4=!1,k5=null,a5=!1,_!==null&&lH(J,_),J=vG(J,Z.children),J.flags|=4096);return J}}if(X)return X6(J),B=Z.fallback,I=J.mode,i=_.child,_1=i.sibling,Z=Y3(i,{mode:"hidden",children:Z.children}),Z.subtreeFlags=i.subtreeFlags&65011712,_1!==null?B=Y3(_1,B):(B=q8(B,I,$,null),B.flags|=2),B.return=J,Z.return=J,Z.sibling=B,J.child=Z,Q_(null,Z),Z=J.child,B=_.child.memoizedState,B===null?B=fG($):(I=B.cachePool,I!==null?(i=z2._currentValue,I=I.parent!==i?{parent:i,pool:i}:I):I=nH(),B={baseLanes:B.baseLanes|$,cachePool:I}),Z.memoizedState=B,Z.childLanes=jG(_,q,$),J.memoizedState=TF,Q_(_.child,Z);return S!==null&&($&62914560)===$&&($&_.lanes)!==0&&t$(J),F6(J),$=_.child,_=$.sibling,$=Y3($,{mode:"visible",children:Z.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function vG(_,J){return J=d$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function d$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function VG(_,J,$){return w8(J,_.child,null,$),_=vG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function $z(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),EU(_.return,J,$)}function yG(_,J,$,q,Z,X){var W=_.memoizedState;W===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:Z,treeForkCount:X}:(W.isBackwards=J,W.rendering=null,W.renderingStartTime=0,W.last=q,W.tail=$,W.tailMode=Z,W.treeForkCount=X)}function Qz(_,J,$){var q=J.pendingProps,Z=q.revealOrder,X=q.tail,W=q.children,B=F2.current;if((q=(B&r_)!==0)?(B=B&o7|r_,J.flags|=128):B&=o7,Q1(F2,B,J),B=Z==null?"null":Z,Z!=="forwards"&&Z!=="unstable_legacy-backwards"&&Z!=="together"&&Z!=="independent"&&!gB[B])if(gB[B]=!0,Z==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(Z==="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 Z==="string")switch(Z.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.',Z,Z.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.',Z,Z.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z);if(B=X==null?"null":X,!cQ[B])if(X==null){if(Z==="forwards"||Z==="backwards"||Z==="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)):Z!=="forwards"&&Z!=="backwards"&&Z!=="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((Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(S2(W)){for(B=0;B<W.length;B++)if(!FY(W[B],B))break _}else if(B=b(W),typeof B==="function"){if(B=B.call(W))for(var I=B.next(),S=0;!I.done;I=B.next()){if(!FY(I.value,S))break _;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',Z);if(m2(_,J,W,$),A0?($6(),W=y_):W=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(Z){case"forwards":$=J.child;for(Z=null;$!==null;)_=$.alternate,_!==null&&j$(_)===null&&(Z=$),$=$.sibling;$=Z,$===null?(Z=J.child,J.child=null):(Z=$.sibling,$.sibling=null),yG(J,!1,Z,$,X,W);break;case"backwards":case"unstable_legacy-backwards":$=null,Z=J.child;for(J.child=null;Z!==null;){if(_=Z.alternate,_!==null&&j$(_)===null){J.child=Z;break}_=Z.sibling,Z.sibling=$,$=Z,Z=_}yG(J,!0,$,null,X,W);break;case"together":yG(J,!1,null,null,void 0,W);break;default:J.memoizedState=null}return J.child}function B3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),q5=-1,V6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(W7(_,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,$=Y3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=Y3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function kG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&M$(_)?!0:!1}function HI(_,J,$){switch(J.tag){case 3:m(J,J.stateNode.containerInfo),q6(J,z2,_.memoizedState.cache),G8();break;case 27:case 5:p(J);break;case 4:m(J,J.stateNode.containerInfo);break;case 10:q6(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,aU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return F6(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return Jz(_,J,$);return F6(J),_=B3(_,J,$),_!==null?_.sibling:null}F6(J);break;case 19:var Z=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(W7(_,J,$,!1),q=($&J.childLanes)!==0),Z){if(q)return Qz(_,J,$);J.flags|=128}if(Z=J.memoizedState,Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),Q1(F2,F2.current,J),q)break;else return null;case 22:return J.lanes=0,sY(_,J,$,J.pendingProps);case 24:q6(J,z2,_.memoizedState.cache)}return B3(_,J,$)}function DG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=vU(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 Z=q.child;if(Z===null)throw Error("Expected parent to have a child.");for(;Z.sibling!==J;)if(Z=Z.sibling,Z===null)throw Error("Expected to find the previous sibling.");Z.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)B2=!0;else{if(!kG(_,$)&&(J.flags&128)===0)return B2=!1,HI(_,J,$);B2=(_.flags&131072)!==0?!0:!1}else{if(B2=!1,q=A0)$6(),q=(J.flags&1048576)!==0;q&&(q=J.index,$6(),pH(J,y_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=U6(J.elementType),J.type=_,typeof _==="function")jU(_)?(q=Y8(_,q),J.tag=1,J.type=_=Q8(_),J=eY(null,J,_,q,$)):(J.tag=0,SG(J,_),J.type=_=Q8(_),J=CG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(Z=_.$$typeof,Z===T_){J.tag=11,J.type=_=fU(_),J=iY(null,J,_,q,$);break _}else if(Z===HQ){J.tag=14,J=rY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===v5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=E(_)||_,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 CG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,Z=Y8(q,J.pendingProps),eY(_,J,q,Z,$);case 3:_:{if(m(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;Z=X.element,dU(_,J),e9(J,q,null,$);var W=J.memoizedState;if(q=W.cache,q6(J,z2,q),q!==X.cache&&hU(J,[z2],$,!0),n9(),q=W.element,X.isDehydrated)if(X={element:q,isDehydrated:!1,cache:W.cache},J.updateQueue.baseState=X,J.memoizedState=X,J.flags&256){J=_z(_,J,q,$);break _}else if(q!==Z){Z=N5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),i9(Z),J=_z(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}p0=j5(_.firstChild),c2=J,A0=!0,I6=null,s4=!1,k5=null,a5=!0,$=BB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(G8(),q===Z){J=B3(_,J,$);break _}m2(_,J,q,$)}J=J.child}return J;case 26:return l$(_,J),_===null?($=fW(J.type,null,J.pendingProps,null))?J.memoizedState=$:A0||($=J.type,_=J.pendingProps,q=x(L6.current),q=JQ(q).createElement($),q[p2]=J,q[J5]=_,g2(q,$,_),x1(q),J.stateNode=q):J.memoizedState=fW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return p(J),_===null&&A0&&(q=x(L6.current),Z=l(),q=J.stateNode=CW(J.type,J.pendingProps,q,Z,!1),s4||(Z=WW(q,J.type,J.pendingProps,Z),Z!==null&&(U8(J,0).serverProps=Z)),c2=J,a5=!0,Z=p0,z6(J.type)?(pF=Z,p0=j5(q.firstChild)):p0=Z),m2(_,J,J.pendingProps.children,$),l$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&A0&&(X=l(),q=x9(J.type,X.ancestorInfo),Z=p0,(W=!Z)||(W=eI(Z,J.type,J.pendingProps,a5),W!==null?(J.stateNode=W,s4||(X=WW(W,J.type,J.pendingProps,X),X!==null&&(U8(J,0).serverProps=X)),c2=J,p0=j5(W.firstChild),a5=!1,X=!0):X=!1,W=!X),W&&(q&&B$(J,Z),Q6(J))),p(J),Z=J.type,X=J.pendingProps,W=_!==null?_.memoizedProps:null,q=X.children,UZ(Z,X)?q=null:W!==null&&UZ(Z,W)&&(J.flags|=32),J.memoizedState!==null&&(Z=tU(_,J,QI,null,null,$),HJ._currentValue=Z),l$(_,J),m2(_,J,q,$),J.child;case 6:return _===null&&A0&&($=J.pendingProps,_=l(),q=_.ancestorInfo.current,$=q!=null?J6($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=p0,(q=!_)||(q=_P(_,J.pendingProps,a5),q!==null?(J.stateNode=q,c2=J,p0=null,q=!0):q=!1,q=!q),q&&($&&B$(J,_),Q6(J))),null;case 13:return Jz(_,J,$);case 4:return m(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=w8(J,null,q,$):m2(_,J,q,$),J.child;case 11:return iY(_,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,Z=J.pendingProps,X=Z.value,"value"in Z||pB||(pB=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),q6(J,q,X),m2(_,J,Z.children,$),J.child;case 9:return Z=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."),Z8(J),Z=l0(Z),q=GF(q,Z,void 0),J.flags|=1,m2(_,J,q,$),J.child;case 14:return rY(_,J,J.type,J.pendingProps,$);case 15:return aY(_,J,J.type,J.pendingProps,$);case 19:return Qz(_,J,$);case 31:return KI(_,J,$);case 22:return sY(_,J,$,J.pendingProps);case 24:return Z8(J),q=l0(z2),_===null?(Z=pU(),Z===null&&(Z=b0,X=xU(),Z.pooledCache=X,F8(X),X!==null&&(Z.pooledCacheLanes|=$),Z=X),J.memoizedState={parent:q,cache:Z},lU(J),q6(J,z2,Z)):((_.lanes&$)!==0&&(dU(_,J),e9(J,null,null,$),n9()),Z=_.memoizedState,X=J.memoizedState,Z.parent!==q?(Z={parent:q,cache:q},J.memoizedState=Z,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=Z),q6(J,z2,q)):(q=X.cache,q6(J,z2,q),q!==Z.cache&&hU(J,[z2],$,!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 A3(_){_.flags|=4}function uG(_,J,$,q,Z){if(J=(_.mode&VN)!==s1)J=!1;if(J){if(_.flags|=16777216,(Z&335544128)===Z)if(_.stateNode.complete)_.flags|=8192;else if(bz())_.flags|=8192;else throw N8=EQ,FF}else _.flags&=-16777217}function qz(_,J){if(J.type!=="stylesheet"||(J.state.loading&e5)!==b8)_.flags&=-16777217;else if(_.flags|=16777216,!kW(J))if(bz())_.flags|=8192;else throw N8=EQ,FF}function i$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?P2():536870912,_.lanes|=J,v8|=J)}function q_(_,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 x0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&G0)!==s1){for(var{selfBaseDuration:Z,child:X}=_;X!==null;)$|=X.lanes|X.childLanes,q|=X.subtreeFlags&65011712,q|=X.flags&65011712,Z+=X.treeBaseDuration,X=X.sibling;_.treeBaseDuration=Z}else for(Z=_.child;Z!==null;)$|=Z.lanes|Z.childLanes,q|=Z.subtreeFlags&65011712,q|=Z.flags&65011712,Z.return=_,Z=Z.sibling;else if((_.mode&G0)!==s1){Z=_.actualDuration,X=_.selfBaseDuration;for(var W=_.child;W!==null;)$|=W.lanes|W.childLanes,q|=W.subtreeFlags,q|=W.flags,Z+=W.actualDuration,X+=W.treeBaseDuration,W=W.sibling;_.actualDuration=Z,_.treeBaseDuration=X}else for(Z=_.child;Z!==null;)$|=Z.lanes|Z.childLanes,q|=Z.subtreeFlags,q|=Z.flags,Z.return=_,Z=Z.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function YI(_,J,$){var q=J.pendingProps;switch(DU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return x0(J),null;case 1:return x0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),W3(z2,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)z7(J)?(bU(),A3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,uU());return x0(J),null;case 26:var{type:Z,memoizedState:X}=J;return _===null?(A3(J),X!==null?(x0(J),qz(J,X)):(x0(J),uG(J,Z,null,q,$))):X?X!==_.memoizedState?(A3(J),x0(J),qz(J,X)):(x0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&A3(J),x0(J),uG(J,Z,_,q,$)),null;case 27:if(o(J),$=x(L6.current),Z=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&A3(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 x0(J),null}_=l(),z7(J)?iH(J,_):(_=CW(Z,q,$,_,!0),J.stateNode=_,A3(J))}return x0(J),null;case 5:if(o(J),Z=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&A3(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 x0(J),null}var W=l();if(z7(J))iH(J,W);else{switch(X=x(L6.current),x9(Z,W.ancestorInfo),W=W.context,X=JQ(X),W){case X9:X=X.createElementNS(k7,Z);break;case Xq:X=X.createElementNS(MQ,Z);break;default:switch(Z){case"svg":X=X.createElementNS(k7,Z);break;case"math":X=X.createElementNS(MQ,Z);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(Z,{is:q.is}):X.createElement(Z),Z.indexOf("-")===-1&&(Z!==Z.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",Z),Object.prototype.toString.call(X)!=="[object HTMLUnknownElement]"||H4.call(YA,Z)||(YA[Z]=!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.",Z)))}}X[p2]=J,X[J5]=q;_:for(W=J.child;W!==null;){if(W.tag===5||W.tag===6)X.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===J)break _;for(;W.sibling===null;){if(W.return===null||W.return===J)break _;W=W.return}W.sibling.return=W.return,W=W.sibling}J.stateNode=X;_:switch(g2(X,Z,q),Z){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&A3(J)}}return x0(J),uG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&A3(J);else{if(typeof q!=="string"&&J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(_=x(L6.current),$=l(),z7(J)){if(_=J.stateNode,$=J.memoizedProps,Z=!s4,q=null,X=c2,X!==null)switch(X.tag){case 3:Z&&(Z=NW(_,$,q),Z!==null&&(U8(J,0).serverProps=Z));break;case 27:case 5:q=X.memoizedProps,Z&&(Z=NW(_,$,q),Z!==null&&(U8(J,0).serverProps=Z))}_[p2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||XW(_.nodeValue,$)?!0:!1,_||Q6(J,!0)}else Z=$.ancestorInfo.current,Z!=null&&J6(q,Z.tag,$.ancestorInfo.implicitRootScope),_=JQ(_).createTextNode(q),_[p2]=J,J.stateNode=_}return x0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=z7(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,x0(J),(J.mode&G0)!==s1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else bU(),G8(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,x0(J),(J.mode&G0)!==s1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=uU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return S5(J),J;return S5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return x0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(Z=q,X=z7(J),Z!==null&&Z.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,x0(J),(J.mode&G0)!==s1&&Z!==null&&(Z=J.child,Z!==null&&(J.treeBaseDuration-=Z.treeBaseDuration))}else bU(),G8(),(J.flags&128)===0&&(Z=J.memoizedState=null),J.flags|=4,x0(J),(J.mode&G0)!==s1&&Z!==null&&(Z=J.child,Z!==null&&(J.treeBaseDuration-=Z.treeBaseDuration));Z=!1}else Z=uU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=Z),Z=!0;if(!Z){if(J.flags&256)return S5(J),J;return S5(J),null}}if(S5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&G0)!==s1&&s9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,Z=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(Z=q.alternate.memoizedState.cachePool.pool),X=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(X=q.memoizedState.cachePool.pool),X!==Z&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),i$(J,J.updateQueue),x0(J),(J.mode&G0)!==s1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&nG(J.stateNode.containerInfo),x0(J),null;case 10:return W3(J.type,J),x0(J),null;case 19:if(q1(F2,J),q=J.memoizedState,q===null)return x0(J),null;if(Z=(J.flags&128)!==0,X=q.rendering,X===null)if(Z)q_(q,!1);else{if(o0!==y3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=j$(_),X!==null){J.flags|=128,q_(q,!1),_=X.updateQueue,J.updateQueue=_,i$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)mH($,_),$=$.sibling;return Q1(F2,F2.current&o7|r_,J),A0&&z3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&D2()>tQ&&(J.flags|=128,Z=!0,q_(q,!1),J.lanes=4194304)}else{if(!Z)if(_=j$(X),_!==null){if(J.flags|=128,Z=!0,_=_.updateQueue,J.updateQueue=_,i$(J,_),q_(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!A0)return x0(J),null}else 2*D2()-q.renderingStartTime>tQ&&$!==536870912&&(J.flags|=128,Z=!0,q_(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=D2(),_.sibling=null,$=F2.current,$=Z?$&o7|r_:$&o7,Q1(F2,$,J),A0&&z3(J,q.treeForkCount),_;return x0(J),null;case 22:case 23:return S5(J),rU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(x0(J),J.subtreeFlags&6&&(J.flags|=8192)):x0(J),$=J.updateQueue,$!==null&&i$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&q1(I8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),W3(z2,J),x0(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 zI(_,J){switch(DU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==s1&&s9(J),J):null;case 3:return W3(z2,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return o(J),null;case 31:if(J.memoizedState!==null){if(S5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");G8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==s1&&s9(J),J):null;case 13:if(S5(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.");G8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==s1&&s9(J),J):null;case 19:return q1(F2,J),null;case 4:return c(J),null;case 10:return W3(J.type,J),null;case 22:case 23:return S5(J),rU(J),_!==null&&q1(I8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==s1&&s9(J),J):null;case 24:return W3(z2,J),null;case 25:return null;default:return null}}function Uz(_,J){switch(DU(J),J.tag){case 3:W3(z2,J),c(J);break;case 26:case 27:case 5:o(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&S5(J);break;case 13:S5(J);break;case 19:q1(F2,J);break;case 10:W3(J.type,J);break;case 22:case 23:S5(J),rU(J),_!==null&&q1(I8,J);break;case 24:W3(z2,J)}}function b4(_){return(_.mode&G0)!==s1}function Gz(_,J){b4(_)?(u4(),U_(J,_),D4()):U_(J,_)}function bG(_,J,$){b4(_)?(u4(),T7($,_,J),D4()):T7($,_,J)}function U_(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var Z=q.next;$=Z;do{if(($.tag&_)===_&&(q=void 0,(_&U5)!==xQ&&(G9=!0),q=L1(J,bN,$),(_&U5)!==xQ&&(G9=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&u5)!==0?"useLayoutEffect":($.tag&U5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
139
+ `+I:""))}}X=J.stateNode,W=E($)||"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?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!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?",W),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.",W),X.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),$.childContextTypes&&!DB.has($)&&(DB.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)",W)),$.contextTypes&&!kB.has($)&&(kB.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)",W)),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.",W),$.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.",E($)||"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()?",W),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().",W),typeof X.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof X.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),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.",W),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.",W,W),typeof X.getSnapshotBeforeUpdate!=="function"||typeof X.componentDidUpdate==="function"||jB.has($)||(jB.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",E($))),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.",W),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.",W),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(B=X.state)&&(typeof B!=="object"||N2(B))&&console.error("%s.state: must be set to an object or null",W),typeof X.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),X=J.stateNode,X.props=q,X.state=J.memoizedState,X.refs={},lU(J),W=$.contextType,X.context=typeof W==="object"&&W!==null?l0(W):P6,X.state===q&&(W=E($)||"Component",VB.has(W)||(VB.add(W),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.",W))),J.mode&r2&&L4.recordLegacyContextWarning(J,X),L4.recordUnsafeLifecycleWarnings(J,X),X.state=J.memoizedState,W=$.getDerivedStateFromProps,typeof W==="function"&&(IG(J,$,W,q),X.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(W=X.state,typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount(),W!==X.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x(J)||"Component"),BF.enqueueReplaceState(X,X.state,null)),__(J,q,X,Z),e9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&W4)!==t1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var _1=J.memoizedProps;B=z8($,_1),X.props=B;var J1=X.context;I=$.contextType,W=P6,typeof I==="object"&&I!==null&&(W=l0(I)),S=$.getDerivedStateFromProps,I=typeof S==="function"||typeof X.getSnapshotBeforeUpdate==="function",_1=J.pendingProps!==_1,I||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(_1||J1!==W)&&gY(J,X,q,W),v6=!1;var i=J.memoizedState;X.state=i,__(J,q,X,Z),e9(),J1=J.memoizedState,_1||i!==J1||v6?(typeof S==="function"&&(IG(J,$,S,q),J1=J.memoizedState),(B=v6||mY(J,$,B,q,i,J1,W))?(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&W4)!==t1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&W4)!==t1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=J1),X.props=q,X.state=J1,X.context=W,X=B):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&W4)!==t1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,dU(_,J),W=J.memoizedProps,I=z8($,W),X.props=I,S=J.pendingProps,i=X.context,J1=$.contextType,B=P6,typeof J1==="object"&&J1!==null&&(B=l0(J1)),_1=$.getDerivedStateFromProps,(J1=typeof _1==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(W!==S||i!==B)&&gY(J,X,q,B),v6=!1,i=J.memoizedState,X.state=i,__(J,q,X,Z),e9();var F1=J.memoizedState;W!==S||i!==F1||v6||_!==null&&_.dependencies!==null&&M$(_.dependencies)?(typeof _1==="function"&&(IG(J,$,_1,q),F1=J.memoizedState),(I=v6||mY(J,$,I,q,i,F1,B)||_!==null&&_.dependencies!==null&&M$(_.dependencies))?(J1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,F1,B),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,F1,B)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=F1),X.props=q,X.state=F1,X.context=B,X=I):(typeof X.componentDidUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||W===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),X=!1)}if(B=X,l$(_,J),W=(J.flags&128)!==0,B||W){if(B=J.stateNode,y1(J),W&&typeof $.getDerivedStateFromError!=="function")$=null,q5=-1;else if($=$B(B),J.mode&r2){$0(!0);try{$B(B)}finally{$0(!1)}}J.flags|=1,_!==null&&W?(J.child=C8(J,_.child,null,Z),J.child=C8(J,null,$,Z)):x2(_,J,$,Z),J.memoizedState=B.state,_=J.child}else _=R3(_,J,Z);return Z=J.stateNode,X&&Z.props!==q&&($9||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",x(J)||"a component"),$9=!0),_}function _z(_,J,$,q){return Z8(),J.flags|=256,x2(_,J,$,q),J.child}function SG(_,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"&&(_=E(J)||"Unknown",mB[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),mB[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=E(J)||"Unknown",hB[J]||(console.error("%s: Function components do not support contextType.",J),hB[J]=!0))}function fG(_){return{baseLanes:_,cachePool:nH()}}function jG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=T5),_}function Jz(_,J,$){var q,Z=J.pendingProps;Y(J)&&(J.flags|=128);var X=!1,W=(J.flags&128)!==0;if((q=W)||(q=_!==null&&_.memoizedState===null?!1:(K2.current&a_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(A0){if(X?K6(J):H6(J),(_=m0)?($=IW(_,t5),$=$!==null&&$.data!==D8?$:null,$!==null&&(q={dehydrated:$,treeContext:cH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=gH($),q.return=J,J.child=q,p2=J,m0=null)):$=null,$===null)throw B$(J,_),U6(J);return FZ($)?J.lanes=32:J.lanes=536870912,null}var B=Z.children;if(Z=Z.fallback,X){H6(J);var I=J.mode;return B=d$({mode:"hidden",children:B},I),Z=U8(Z,I,$,null),B.return=J,Z.return=J,B.sibling=Z,J.child=B,Z=J.child,Z.memoizedState=fG($),Z.childLanes=jG(_,q,$),J.memoizedState=TF,q_(null,Z)}return K6(J),vG(J,B)}var S=_.memoizedState;if(S!==null){var _1=S.dehydrated;if(_1!==null){if(W)J.flags&256?(K6(J),J.flags&=-257,J=VG(_,J,$)):J.memoizedState!==null?(H6(J),J.child=_.child,J.flags|=128,J=null):(H6(J),B=Z.fallback,I=J.mode,Z=d$({mode:"visible",children:Z.children},I),B=U8(B,I,$,null),B.flags|=2,Z.return=J,B.return=J,Z.sibling=B,J.child=Z,C8(J,_.child,null,$),Z=J.child,Z.memoizedState=fG($),Z.childLanes=jG(_,q,$),J.memoizedState=TF,J=q_(null,Z));else if(K6(J),dH(),($&536870912)!==0&&t$(J),FZ(_1)){if(q=_1.nextSibling&&_1.nextSibling.dataset,q){B=q.dgst;var J1=q.msg;I=q.stck;var i=q.cstck}X=J1,q=B,Z=I,_1=i,B=X,I=_1,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=Z||"",B.digest=q,q=I===void 0?null:I,Z={value:B,source:null,stack:q},typeof q==="string"&&nZ.set(B,Z),r9(Z),J=VG(_,J,$)}else if(L2||L7(_,J,$,!1),q=($&_.childLanes)!==0,L2||q){if(q=u0,q!==null&&(Z=H5(q,$),Z!==0&&Z!==S.retryLane))throw S.retryLane=Z,d2(_,Z),_2(q,_,Z),MF;ZZ(_1)||o$(),J=VG(_,J,$)}else ZZ(_1)?(J.flags|=192,J.child=_.child,J=null):(_=S.treeContext,m0=v5(_1.nextSibling),p2=J,A0=!0,N6=null,t4=!1,D5=null,t5=!1,_!==null&&lH(J,_),J=vG(J,Z.children),J.flags|=4096);return J}}if(X)return H6(J),B=Z.fallback,I=J.mode,i=_.child,_1=i.sibling,Z=B3(i,{mode:"hidden",children:Z.children}),Z.subtreeFlags=i.subtreeFlags&65011712,_1!==null?B=B3(_1,B):(B=U8(B,I,$,null),B.flags|=2),B.return=J,Z.return=J,Z.sibling=B,J.child=Z,q_(null,Z),Z=J.child,B=_.child.memoizedState,B===null?B=fG($):(I=B.cachePool,I!==null?(i=Y2._currentValue,I=I.parent!==i?{parent:i,pool:i}:I):I=nH(),B={baseLanes:B.baseLanes|$,cachePool:I}),Z.memoizedState=B,Z.childLanes=jG(_,q,$),J.memoizedState=TF,q_(_.child,Z);return S!==null&&($&62914560)===$&&($&_.lanes)!==0&&t$(J),K6(J),$=_.child,_=$.sibling,$=B3($,{mode:"visible",children:Z.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function vG(_,J){return J=d$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function d$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function VG(_,J,$){return C8(J,_.child,null,$),_=vG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function $z(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),EU(_.return,J,$)}function yG(_,J,$,q,Z,X){var W=_.memoizedState;W===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:Z,treeForkCount:X}:(W.isBackwards=J,W.rendering=null,W.renderingStartTime=0,W.last=q,W.tail=$,W.tailMode=Z,W.treeForkCount=X)}function Qz(_,J,$){var q=J.pendingProps,Z=q.revealOrder,X=q.tail,W=q.children,B=K2.current;if((q=(B&a_)!==0)?(B=B&n7|a_,J.flags|=128):B&=n7,Q1(K2,B,J),B=Z==null?"null":Z,Z!=="forwards"&&Z!=="unstable_legacy-backwards"&&Z!=="together"&&Z!=="independent"&&!gB[B])if(gB[B]=!0,Z==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(Z==="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 Z==="string")switch(Z.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.',Z,Z.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.',Z,Z.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z);if(B=X==null?"null":X,!cQ[B])if(X==null){if(Z==="forwards"||Z==="backwards"||Z==="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)):Z!=="forwards"&&Z!=="backwards"&&Z!=="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((Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(N2(W)){for(B=0;B<W.length;B++)if(!FY(W[B],B))break _}else if(B=b(W),typeof B==="function"){if(B=B.call(W))for(var I=B.next(),S=0;!I.done;I=B.next()){if(!FY(I.value,S))break _;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',Z);if(x2(_,J,W,$),A0?(q6(),W=k_):W=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(Z){case"forwards":$=J.child;for(Z=null;$!==null;)_=$.alternate,_!==null&&j$(_)===null&&(Z=$),$=$.sibling;$=Z,$===null?(Z=J.child,J.child=null):(Z=$.sibling,$.sibling=null),yG(J,!1,Z,$,X,W);break;case"backwards":case"unstable_legacy-backwards":$=null,Z=J.child;for(J.child=null;Z!==null;){if(_=Z.alternate,_!==null&&j$(_)===null){J.child=Z;break}_=Z.sibling,Z.sibling=$,$=Z,Z=_}yG(J,!0,$,null,X,W);break;case"together":yG(J,!1,null,null,void 0,W);break;default:J.memoizedState=null}return J.child}function R3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),q5=-1,k6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(L7(_,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,$=B3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=B3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function kG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&M$(_)?!0:!1}function HI(_,J,$){switch(J.tag){case 3:g(J,J.stateNode.containerInfo),G6(J,Y2,_.memoizedState.cache),Z8();break;case 27:case 5:l(J);break;case 4:g(J,J.stateNode.containerInfo);break;case 10:G6(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,aU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return K6(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return Jz(_,J,$);return K6(J),_=R3(_,J,$),_!==null?_.sibling:null}K6(J);break;case 19:var Z=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(L7(_,J,$,!1),q=($&J.childLanes)!==0),Z){if(q)return Qz(_,J,$);J.flags|=128}if(Z=J.memoizedState,Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),Q1(K2,K2.current,J),q)break;else return null;case 22:return J.lanes=0,sY(_,J,$,J.pendingProps);case 24:G6(J,Y2,_.memoizedState.cache)}return R3(_,J,$)}function DG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=vU(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 Z=q.child;if(Z===null)throw Error("Expected parent to have a child.");for(;Z.sibling!==J;)if(Z=Z.sibling,Z===null)throw Error("Expected to find the previous sibling.");Z.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(!kG(_,$)&&(J.flags&128)===0)return L2=!1,HI(_,J,$);L2=(_.flags&131072)!==0?!0:!1}else{if(L2=!1,q=A0)q6(),q=(J.flags&1048576)!==0;q&&(q=J.index,q6(),pH(J,k_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=Z6(J.elementType),J.type=_,typeof _==="function")jU(_)?(q=z8(_,q),J.tag=1,J.type=_=q8(_),J=eY(null,J,_,q,$)):(J.tag=0,SG(J,_),J.type=_=q8(_),J=CG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(Z=_.$$typeof,Z===R_){J.tag=11,J.type=_=fU(_),J=iY(null,J,_,q,$);break _}else if(Z===HQ){J.tag=14,J=rY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===V5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=E(_)||_,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 CG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,Z=z8(q,J.pendingProps),eY(_,J,q,Z,$);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;Z=X.element,dU(_,J),__(J,q,null,$);var W=J.memoizedState;if(q=W.cache,G6(J,Y2,q),q!==X.cache&&hU(J,[Y2],$,!0),e9(),q=W.element,X.isDehydrated)if(X={element:q,isDehydrated:!1,cache:W.cache},J.updateQueue.baseState=X,J.memoizedState=X,J.flags&256){J=_z(_,J,q,$);break _}else if(q!==Z){Z=w5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),r9(Z),J=_z(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}m0=v5(_.firstChild),p2=J,A0=!0,N6=null,t4=!1,D5=null,t5=!0,$=BB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(Z8(),q===Z){J=R3(_,J,$);break _}x2(_,J,q,$)}J=J.child}return J;case 26:return l$(_,J),_===null?($=fW(J.type,null,J.pendingProps,null))?J.memoizedState=$:A0||($=J.type,_=J.pendingProps,q=m(A6.current),q=JQ(q).createElement($),q[g2]=J,q[J5]=_,m2(q,$,_),m1(q),J.stateNode=q):J.memoizedState=fW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return l(J),_===null&&A0&&(q=m(A6.current),Z=c(),q=J.stateNode=CW(J.type,J.pendingProps,q,Z,!1),t4||(Z=WW(q,J.type,J.pendingProps,Z),Z!==null&&(G8(J,0).serverProps=Z)),p2=J,t5=!0,Z=m0,L6(J.type)?(pF=Z,m0=v5(q.firstChild)):m0=Z),x2(_,J,J.pendingProps.children,$),l$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&A0&&(X=c(),q=m9(J.type,X.ancestorInfo),Z=m0,(W=!Z)||(W=eI(Z,J.type,J.pendingProps,t5),W!==null?(J.stateNode=W,t4||(X=WW(W,J.type,J.pendingProps,X),X!==null&&(G8(J,0).serverProps=X)),p2=J,m0=v5(W.firstChild),t5=!1,X=!0):X=!1,W=!X),W&&(q&&B$(J,Z),U6(J))),l(J),Z=J.type,X=J.pendingProps,W=_!==null?_.memoizedProps:null,q=X.children,UZ(Z,X)?q=null:W!==null&&UZ(Z,W)&&(J.flags|=32),J.memoizedState!==null&&(Z=tU(_,J,QI,null,null,$),YJ._currentValue=Z),l$(_,J),x2(_,J,q,$),J.child;case 6:return _===null&&A0&&($=J.pendingProps,_=c(),q=_.ancestorInfo.current,$=q!=null?Q6($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=m0,(q=!_)||(q=_P(_,J.pendingProps,t5),q!==null?(J.stateNode=q,p2=J,m0=null,q=!0):q=!1,q=!q),q&&($&&B$(J,_),U6(J))),null;case 13:return Jz(_,J,$);case 4:return g(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=C8(J,null,q,$):x2(_,J,q,$),J.child;case 11:return iY(_,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,Z=J.pendingProps,X=Z.value,"value"in Z||pB||(pB=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),G6(J,q,X),x2(_,J,Z.children,$),J.child;case 9:return Z=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."),F8(J),Z=l0(Z),q=GF(q,Z,void 0),J.flags|=1,x2(_,J,q,$),J.child;case 14:return rY(_,J,J.type,J.pendingProps,$);case 15:return aY(_,J,J.type,J.pendingProps,$);case 19:return Qz(_,J,$);case 31:return KI(_,J,$);case 22:return sY(_,J,$,J.pendingProps);case 24:return F8(J),q=l0(Y2),_===null?(Z=pU(),Z===null&&(Z=u0,X=xU(),Z.pooledCache=X,X8(X),X!==null&&(Z.pooledCacheLanes|=$),Z=X),J.memoizedState={parent:q,cache:Z},lU(J),G6(J,Y2,Z)):((_.lanes&$)!==0&&(dU(_,J),__(J,null,null,$),e9()),Z=_.memoizedState,X=J.memoizedState,Z.parent!==q?(Z={parent:q,cache:q},J.memoizedState=Z,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=Z),G6(J,Y2,q)):(q=X.cache,G6(J,Y2,q),q!==Z.cache&&hU(J,[Y2],$,!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 O3(_){_.flags|=4}function uG(_,J,$,q,Z){if(J=(_.mode&VN)!==t1)J=!1;if(J){if(_.flags|=16777216,(Z&335544128)===Z)if(_.stateNode.complete)_.flags|=8192;else if(bz())_.flags|=8192;else throw w8=EQ,FF}else _.flags&=-16777217}function qz(_,J){if(J.type!=="stylesheet"||(J.state.loading&J4)!==E8)_.flags&=-16777217;else if(_.flags|=16777216,!kW(J))if(bz())_.flags|=8192;else throw w8=EQ,FF}function i$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?q2():536870912,_.lanes|=J,V8|=J)}function U_(_,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&G0)!==t1){for(var{selfBaseDuration:Z,child:X}=_;X!==null;)$|=X.lanes|X.childLanes,q|=X.subtreeFlags&65011712,q|=X.flags&65011712,Z+=X.treeBaseDuration,X=X.sibling;_.treeBaseDuration=Z}else for(Z=_.child;Z!==null;)$|=Z.lanes|Z.childLanes,q|=Z.subtreeFlags&65011712,q|=Z.flags&65011712,Z.return=_,Z=Z.sibling;else if((_.mode&G0)!==t1){Z=_.actualDuration,X=_.selfBaseDuration;for(var W=_.child;W!==null;)$|=W.lanes|W.childLanes,q|=W.subtreeFlags,q|=W.flags,Z+=W.actualDuration,X+=W.treeBaseDuration,W=W.sibling;_.actualDuration=Z,_.treeBaseDuration=X}else for(Z=_.child;Z!==null;)$|=Z.lanes|Z.childLanes,q|=Z.subtreeFlags,q|=Z.flags,Z.return=_,Z=Z.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function YI(_,J,$){var q=J.pendingProps;switch(DU(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),M3(Y2,J),p(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)W7(J)?(bU(),O3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,uU());return E0(J),null;case 26:var{type:Z,memoizedState:X}=J;return _===null?(O3(J),X!==null?(E0(J),qz(J,X)):(E0(J),uG(J,Z,null,q,$))):X?X!==_.memoizedState?(O3(J),E0(J),qz(J,X)):(E0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&O3(J),E0(J),uG(J,Z,_,q,$)),null;case 27:if(a(J),$=m(A6.current),Z=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&O3(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(),W7(J)?iH(J,_):(_=CW(Z,q,$,_,!0),J.stateNode=_,O3(J))}return E0(J),null;case 5:if(a(J),Z=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&O3(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 W=c();if(W7(J))iH(J,W);else{switch(X=m(A6.current),m9(Z,W.ancestorInfo),W=W.context,X=JQ(X),W){case K9:X=X.createElementNS(D7,Z);break;case Xq:X=X.createElementNS(MQ,Z);break;default:switch(Z){case"svg":X=X.createElementNS(D7,Z);break;case"math":X=X.createElementNS(MQ,Z);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(Z,{is:q.is}):X.createElement(Z),Z.indexOf("-")===-1&&(Z!==Z.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",Z),Object.prototype.toString.call(X)!=="[object HTMLUnknownElement]"||Y4.call(YA,Z)||(YA[Z]=!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.",Z)))}}X[g2]=J,X[J5]=q;_:for(W=J.child;W!==null;){if(W.tag===5||W.tag===6)X.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===J)break _;for(;W.sibling===null;){if(W.return===null||W.return===J)break _;W=W.return}W.sibling.return=W.return,W=W.sibling}J.stateNode=X;_:switch(m2(X,Z,q),Z){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&O3(J)}}return E0(J),uG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&O3(J);else{if(typeof q!=="string"&&J.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(_=m(A6.current),$=c(),W7(J)){if(_=J.stateNode,$=J.memoizedProps,Z=!t4,q=null,X=p2,X!==null)switch(X.tag){case 3:Z&&(Z=NW(_,$,q),Z!==null&&(G8(J,0).serverProps=Z));break;case 27:case 5:q=X.memoizedProps,Z&&(Z=NW(_,$,q),Z!==null&&(G8(J,0).serverProps=Z))}_[g2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||XW(_.nodeValue,$)?!0:!1,_||U6(J,!0)}else Z=$.ancestorInfo.current,Z!=null&&Q6(q,Z.tag,$.ancestorInfo.implicitRootScope),_=JQ(_).createTextNode(q),_[g2]=J,J.stateNode=_}return E0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=W7(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,E0(J),(J.mode&G0)!==t1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else bU(),Z8(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,E0(J),(J.mode&G0)!==t1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=uU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return f5(J),J;return f5(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(Z=q,X=W7(J),Z!==null&&Z.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,E0(J),(J.mode&G0)!==t1&&Z!==null&&(Z=J.child,Z!==null&&(J.treeBaseDuration-=Z.treeBaseDuration))}else bU(),Z8(),(J.flags&128)===0&&(Z=J.memoizedState=null),J.flags|=4,E0(J),(J.mode&G0)!==t1&&Z!==null&&(Z=J.child,Z!==null&&(J.treeBaseDuration-=Z.treeBaseDuration));Z=!1}else Z=uU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=Z),Z=!0;if(!Z){if(J.flags&256)return f5(J),J;return f5(J),null}}if(f5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&G0)!==t1&&t9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,Z=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(Z=q.alternate.memoizedState.cachePool.pool),X=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(X=q.memoizedState.cachePool.pool),X!==Z&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),i$(J,J.updateQueue),E0(J),(J.mode&G0)!==t1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return p(J),_===null&&nG(J.stateNode.containerInfo),E0(J),null;case 10:return M3(J.type,J),E0(J),null;case 19:if(q1(K2,J),q=J.memoizedState,q===null)return E0(J),null;if(Z=(J.flags&128)!==0,X=q.rendering,X===null)if(Z)U_(q,!1);else{if(o0!==b3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=j$(_),X!==null){J.flags|=128,U_(q,!1),_=X.updateQueue,J.updateQueue=_,i$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)mH($,_),$=$.sibling;return Q1(K2,K2.current&n7|a_,J),A0&&A3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&y2()>tQ&&(J.flags|=128,Z=!0,U_(q,!1),J.lanes=4194304)}else{if(!Z)if(_=j$(X),_!==null){if(J.flags|=128,Z=!0,_=_.updateQueue,J.updateQueue=_,i$(J,_),U_(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,Z=!0,U_(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,$=Z?$&n7|a_:$&n7,Q1(K2,$,J),A0&&A3(J,q.treeForkCount),_;return E0(J),null;case 22:case 23:return f5(J),rU(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&&i$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&q1(P8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),M3(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 zI(_,J){switch(DU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==t1&&t9(J),J):null;case 3:return M3(Y2,J),p(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return a(J),null;case 31:if(J.memoizedState!==null){if(f5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Z8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==t1&&t9(J),J):null;case 13:if(f5(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.");Z8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==t1&&t9(J),J):null;case 19:return q1(K2,J),null;case 4:return p(J),null;case 10:return M3(J.type,J),null;case 22:case 23:return f5(J),rU(J),_!==null&&q1(P8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&G0)!==t1&&t9(J),J):null;case 24:return M3(Y2,J),null;case 25:return null;default:return null}}function Uz(_,J){switch(DU(J),J.tag){case 3:M3(Y2,J),p(J);break;case 26:case 27:case 5:a(J);break;case 4:p(J);break;case 31:J.memoizedState!==null&&f5(J);break;case 13:f5(J);break;case 19:q1(K2,J);break;case 10:M3(J.type,J);break;case 22:case 23:f5(J),rU(J),_!==null&&q1(P8,J);break;case 24:M3(Y2,J)}}function E4(_){return(_.mode&G0)!==t1}function Gz(_,J){E4(_)?(b4(),G_(J,_),u4()):G_(J,_)}function bG(_,J,$){E4(_)?(b4(),R7($,_,J),u4()):R7($,_,J)}function G_(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var Z=q.next;$=Z;do{if(($.tag&_)===_&&(q=void 0,(_&U5)!==xQ&&(Z9=!0),q=H1(J,bN,$),(_&U5)!==xQ&&(Z9=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&b5)!==0?"useLayoutEffect":($.tag&U5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=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,L1(J,function(B,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,I)},X,W)}$=$.next}while($!==Z)}}catch(B){w0(J,J.return,B)}}function T7(_,J,$){try{var q=J.updateQueue,Z=q!==null?q.lastEffect:null;if(Z!==null){var X=Z.next;q=X;do{if((q.tag&_)===_){var W=q.inst,B=W.destroy;B!==void 0&&(W.destroy=void 0,(_&U5)!==xQ&&(G9=!0),Z=J,L1(Z,EN,Z,$,B),(_&U5)!==xQ&&(G9=!1))}q=q.next}while(q!==X)}}catch(I){w0(J,J.return,I)}}function Zz(_,J){b4(_)?(u4(),U_(J,_),D4()):U_(J,_)}function EG(_,J,$){b4(_)?(u4(),T7($,_,J),D4()):T7($,_,J)}function Fz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||J9||($.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.",g(_)||"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.",g(_)||"instance"));try{L1(_,KY,J,$)}catch(q){w0(_,_.return,q)}}}function WI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function LI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||J9||(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.",g(_)||"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.",g(_)||"instance"));try{var Z=Y8(_.type,$),X=L1(_,WI,J,Z,q);$=cB,X!==void 0||$.has(_.type)||($.add(_.type),L1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",g(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(W){w0(_,_.return,W)}}function Xz(_,J,$){$.props=Y8(_.type,_.memoizedProps),$.state=_.memoizedState,b4(_)?(u4(),L1(_,FB,_,J,$),D4()):L1(_,FB,_,J,$)}function BI(_){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().",g(_)),J.current=$}}function G_(_,J){try{L1(_,BI,_)}catch($){w0(_,J,$)}}function E4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(b4(_))try{u4(),L1(_,q)}finally{D4(_)}else L1(_,q)}catch(Z){w0(_,J,Z)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(b4(_))try{u4(),L1(_,$,null)}finally{D4(_)}else L1(_,$,null)}catch(Z){w0(_,J,Z)}else $.current=null}function Kz(_,J,$,q){var Z=_.memoizedProps,X=Z.id,W=Z.onCommit;Z=Z.onRender,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof Z==="function"&&Z(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof W==="function"&&W(X,J,q,$)}function AI(_,J,$,q){var Z=_.memoizedProps;_=Z.id,Z=Z.onPostCommit,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof Z==="function"&&Z(_,J,q,$)}function Hz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{L1(_,gI,q,J,$,_)}catch(Z){w0(_,_.return,Z)}}function hG(_,J,$){try{L1(_,cI,_.stateNode,_.type,$,J,_)}catch(q){w0(_,_.return,q)}}function Yz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&z6(_.type)||_.tag===4}function xG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Yz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&z6(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function mG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(TW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(TW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=H3));else if(q!==4&&(q===27&&z6(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(mG(_,J,$),_=_.sibling;_!==null;)mG(_,J,$),_=_.sibling}function r$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&z6(_.type)&&($=_.stateNode),_=_.child,_!==null))for(r$(_,J,$),_=_.sibling;_!==null;)r$(_,J,$),_=_.sibling}function MI(_){for(var J,$=_.return;$!==null;){if(Yz($)){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,$=xG(_),r$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(MW($),J.flags&=-33),J=xG(_),r$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=xG(_),mG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function zz(_){var{stateNode:J,memoizedProps:$}=_;try{L1(_,UP,_.type,$,J,_)}catch(q){w0(_,_.return,q)}}function Wz(_,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 TI(_,J){if(_=_.containerInfo,xF=zq,_=vH(_),PU(_)){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:Z,focusNode:X}=q;q=q.focusOffset;try{$.nodeType,X.nodeType}catch(N1){$=null;break _}var W=0,B=-1,I=-1,S=0,_1=0,J1=_,i=null;J:for(;;){for(var F1;;){if(J1!==$||Z!==0&&J1.nodeType!==3||(B=W+Z),J1!==X||q!==0&&J1.nodeType!==3||(I=W+q),J1.nodeType===3&&(W+=J1.nodeValue.length),(F1=J1.firstChild)===null)break;i=J1,J1=F1}for(;;){if(J1===_)break J;if(i===$&&++S===Z&&(B=W),i===X&&++_1===q&&(I=W),(F1=J1.nextSibling)!==null)break;J1=i,i=J1.parentNode}J1=F1}$=B===-1||I===-1?null:{start:B,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;mF={focusedElem:_,selectionRange:$},zq=!1;for(b2=J;b2!==null;)if(J=b2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,b2=_;else for(;b2!==null;){switch(_=J=b2,$=_.alternate,Z=_.flags,_.tag){case 0:if((Z&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)Z=_[$],Z.ref.impl=Z.nextImpl;break;case 11:case 15:break;case 1:(Z&1024)!==0&&$!==null&&LI(_,$);break;case 3:if((Z&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)GZ(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":GZ(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((Z&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(_=J.sibling,_!==null){_.return=J.return,b2=_;break}b2=J.return}}function Lz(_,J,$){var q=w5(),Z=v4(),X=y4(),W=k4(),B=$.flags;switch($.tag){case 0:case 11:case 15:h4(_,$),B&4&&Gz($,u5|o5);break;case 1:if(h4(_,$),B&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||J9||(_.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.",g($)||"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.",g($)||"instance")),b4($)?(u4(),L1($,ZF,$,_),D4()):L1($,ZF,$,_);else{var I=Y8($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||J9||(_.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.",g($)||"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.",g($)||"instance")),b4($)?(u4(),L1($,UB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),D4()):L1($,UB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}B&64&&Fz($),B&512&&G_($,$.return);break;case 3:if(J=L3(),h4(_,$),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{L1($,KY,B,I)}catch(_1){w0($,$.return,_1)}}_.effectDuration+=R$(J);break;case 27:J===null&&B&4&&zz($);case 26:case 5:if(h4(_,$),J===null){if(B&4)Hz($);else if(B&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{L1($,pI,I,_,J,$)}catch(_1){w0($,$.return,_1)}}}B&512&&G_($,$.return);break;case 12:if(B&4){B=L3(),h4(_,$),_=$.stateNode,_.effectDuration+=a9(B);try{L1($,Kz,$,J,P6,_.effectDuration)}catch(_1){w0($,$.return,_1)}}else h4(_,$);break;case 31:h4(_,$),B&4&&Mz(_,$);break;case 13:h4(_,$),B&4&&Tz(_,$),B&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(B=fI.bind(null,$),JP(_,B))));break;case 22:if(B=$.memoizedState!==null||V3,!B){J=J!==null&&J.memoizedState!==null||A2,I=V3;var S=A2;V3=B,(A2=J)&&!S?(x4(_,$,($.subtreeFlags&8772)!==0),($.mode&G0)!==s1&&0<=c1&&0<=i1&&0.05<i1-c1&&K$($,c1,i1)):h4(_,$),V3=I,A2=S}break;case 30:break;default:h4(_,$)}($.mode&G0)!==s1&&0<=c1&&0<=i1&&((_2||0.05<t0)&&f4($,c1,i1,t0,d0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<i1-c1&&(Wz($.return.alternate,$.return)||S4($,c1,i1,"Mount"))),C5(q),V4(Z),d0=X,_2=W}function Bz(_){var J=_.alternate;J!==null&&(_.alternate=null,Bz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&w1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function M3(_,J,$){for($=$.child;$!==null;)Az(_,J,$),$=$.sibling}function Az(_,J,$){if(i2&&typeof i2.onCommitFiberUnmount==="function")try{i2.onCommitFiberUnmount(V7,$)}catch(S){d4||(d4=!0,console.error("React instrumentation encountered an error: %o",S))}var q=w5(),Z=v4(),X=y4(),W=k4();switch($.tag){case 26:A2||E4($,J),M3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:A2||E4($,J);var B=M2,I=B5;z6($.type)&&(M2=$.stateNode,B5=!1),M3(_,J,$),L1($,L_,$.stateNode),M2=B,B5=I;break;case 5:A2||E4($,J);case 6:if(B=M2,I=B5,M2=null,M3(_,J,$),M2=B,B5=I,M2!==null)if(B5)try{L1($,iI,M2,$.stateNode)}catch(S){w0($,J,S)}else try{L1($,dI,M2,$.stateNode)}catch(S){w0($,J,S)}break;case 18:M2!==null&&(B5?(_=M2,RW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),S7(_)):RW(M2,$.stateNode));break;case 4:B=M2,I=B5,M2=$.stateNode.containerInfo,B5=!0,M3(_,J,$),M2=B,B5=I;break;case 0:case 11:case 14:case 15:T7(U5,$,J),A2||bG($,J,u5),M3(_,J,$);break;case 1:A2||(E4($,J),B=$.stateNode,typeof B.componentWillUnmount==="function"&&Xz($,J,B)),M3(_,J,$);break;case 21:M3(_,J,$);break;case 22:A2=(B=A2)||$.memoizedState!==null,M3(_,J,$),A2=B;break;default:M3(_,J,$)}($.mode&G0)!==s1&&0<=c1&&0<=i1&&(_2||0.05<t0)&&f4($,c1,i1,t0,d0),C5(q),V4(Z),d0=X,_2=W}function Mz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{L1(J,QP,_)}catch($){w0(J,J.return,$)}}}function Tz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{L1(J,qP,_)}catch($){w0(J,J.return,$)}}function RI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new lB),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new lB),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function a$(_,J){var $=RI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),i4)if($9!==null&&Q9!==null)K_(Q9,$9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var Z=jI.bind(null,_,q);q.then(Z,Z)}})}function W5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var Z=_,X=J,W=$[q],B=w5(),I=X;_:for(;I!==null;){switch(I.tag){case 27:if(z6(I.type)){M2=I.stateNode,B5=!1;break _}break;case 5:M2=I.stateNode,B5=!1;break _;case 3:case 4:M2=I.stateNode.containerInfo,B5=!0;break _}I=I.return}if(M2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Az(Z,X,W),M2=null,B5=!1,(W.mode&G0)!==s1&&0<=c1&&0<=i1&&0.05<i1-c1&&S4(W,c1,i1,"Unmount"),C5(B),Z=W,X=Z.alternate,X!==null&&(X.return=null),Z.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Rz(J,_),J=J.sibling}function Rz(_,J){var $=w5(),q=v4(),Z=y4(),X=k4(),W=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:W5(J,_),L5(_),B&4&&(T7(U5|o5,_,_.return),U_(U5|o5,_),bG(_,_.return,u5|o5));break;case 1:if(W5(J,_),L5(_),B&512&&(A2||W===null||E4(W,W.return)),B&64&&V3&&(B=_.updateQueue,B!==null&&(W=B.callbacks,W!==null))){var I=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=I===null?W:I.concat(W)}break;case 26:if(I=B4,W5(J,_),L5(_),B&512&&(A2||W===null||E4(W,W.return)),B&4){var S=W!==null?W.memoizedState:null;if(B=_.memoizedState,W===null)if(B===null)if(_.stateNode===null){_:{B=_.type,W=_.memoizedProps,I=I.ownerDocument||I;J:switch(B){case"title":if(S=I.getElementsByTagName("title")[0],!S||S[I_]||S[p2]||S.namespaceURI===k7||S.hasAttribute("itemprop"))S=I.createElement(B),I.head.insertBefore(S,I.querySelector("head > title"));g2(S,B,W),S[p2]=_,x1(S),B=S;break _;case"link":var _1=VW("link","href",I).get(B+(W.href||""));if(_1){for(var J1=0;J1<_1.length;J1++)if(S=_1[J1],S.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&S.getAttribute("rel")===(W.rel==null?null:W.rel)&&S.getAttribute("title")===(W.title==null?null:W.title)&&S.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){_1.splice(J1,1);break J}}S=I.createElement(B),g2(S,B,W),I.head.appendChild(S);break;case"meta":if(_1=VW("meta","content",I).get(B+(W.content||""))){for(J1=0;J1<_1.length;J1++)if(S=_1[J1],A1(W.content,"content"),S.getAttribute("content")===(W.content==null?null:""+W.content)&&S.getAttribute("name")===(W.name==null?null:W.name)&&S.getAttribute("property")===(W.property==null?null:W.property)&&S.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&S.getAttribute("charset")===(W.charSet==null?null:W.charSet)){_1.splice(J1,1);break J}}S=I.createElement(B),g2(S,B,W),I.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}S[p2]=_,x1(S),B=S}_.stateNode=B}else yW(I,_.type,_.stateNode);else _.stateNode=vW(I,B,_.memoizedProps);else S!==B?(S===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):S.count--,B===null?yW(I,_.type,_.stateNode):vW(I,B,_.memoizedProps)):B===null&&_.stateNode!==null&&hG(_,_.memoizedProps,W.memoizedProps)}break;case 27:W5(J,_),L5(_),B&512&&(A2||W===null||E4(W,W.return)),W!==null&&B&4&&hG(_,_.memoizedProps,W.memoizedProps);break;case 5:if(W5(J,_),L5(_),B&512&&(A2||W===null||E4(W,W.return)),_.flags&32){I=_.stateNode;try{L1(_,MW,I)}catch(v1){w0(_,_.return,v1)}}B&4&&_.stateNode!=null&&(I=_.memoizedProps,hG(_,I,W!==null?W.memoizedProps:I)),B&1024&&(RF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(W5(J,_),L5(_),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,W=W!==null?W.memoizedProps:B,I=_.stateNode;try{L1(_,lI,I,W,B)}catch(v1){w0(_,_.return,v1)}}break;case 3:if(I=L3(),Kq=null,S=B4,B4=$Q(J.containerInfo),W5(J,_),B4=S,L5(_),B&4&&W!==null&&W.memoizedState.isDehydrated)try{L1(_,$P,J.containerInfo)}catch(v1){w0(_,_.return,v1)}RF&&(RF=!1,Oz(_)),J.effectDuration+=R$(I);break;case 4:B=B4,B4=$Q(_.stateNode.containerInfo),W5(J,_),L5(_),B4=B;break;case 12:B=L3(),W5(J,_),L5(_),_.stateNode.effectDuration+=a9(B);break;case 31:W5(J,_),L5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 13:W5(J,_),L5(_),_.child.flags&8192&&_.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(sQ=D2()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 22:I=_.memoizedState!==null;var i=W!==null&&W.memoizedState!==null,F1=V3,N1=A2;if(V3=F1||I,A2=N1||i,W5(J,_),A2=N1,V3=F1,i&&!I&&!F1&&!N1&&(_.mode&G0)!==s1&&0<=c1&&0<=i1&&0.05<i1-c1&&K$(_,c1,i1),L5(_),B&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~V_:J._visibility|V_,!I||W===null||i||V3||A2||(z8(_),(_.mode&G0)!==s1&&0<=c1&&0<=i1&&0.05<i1-c1&&S4(_,c1,i1,"Disconnect")),W=null,J=_;;){if(J.tag===5||J.tag===26){if(W===null){i=W=J;try{S=i.stateNode,I?L1(i,aI,S):L1(i,oI,i.stateNode,i.memoizedProps)}catch(v1){w0(i,i.return,v1)}}}else if(J.tag===6){if(W===null){i=J;try{_1=i.stateNode,I?L1(i,sI,_1):L1(i,nI,_1,i.memoizedProps)}catch(v1){w0(i,i.return,v1)}}}else if(J.tag===18){if(W===null){i=J;try{J1=i.stateNode,I?L1(i,rI,J1):L1(i,tI,i.stateNode)}catch(v1){w0(i,i.return,v1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;W===J&&(W=null),J=J.return}W===J&&(W=null),J.sibling.return=J.return,J=J.sibling}B&4&&(B=_.updateQueue,B!==null&&(W=B.retryQueue,W!==null&&(B.retryQueue=null,a$(_,W))));break;case 19:W5(J,_),L5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 30:break;case 21:break;default:W5(J,_),L5(_)}(_.mode&G0)!==s1&&0<=c1&&0<=i1&&((_2||0.05<t0)&&f4(_,c1,i1,t0,d0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<i1-c1&&(Wz(_.return.alternate,_.return)||S4(_,c1,i1,"Mount"))),C5($),V4(q),d0=Z,_2=X}function L5(_){var J=_.flags;if(J&2){try{L1(_,MI,_)}catch($){w0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Oz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Oz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function h4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Lz(_,J.alternate,J),J=J.sibling}function Iz(_){var J=w5(),$=v4(),q=y4(),Z=k4();switch(_.tag){case 0:case 11:case 14:case 15:bG(_,_.return,u5),z8(_);break;case 1:E4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Xz(_,_.return,X),z8(_);break;case 27:L1(_,L_,_.stateNode);case 26:case 5:E4(_,_.return),z8(_);break;case 22:_.memoizedState===null&&z8(_);break;case 30:z8(_);break;default:z8(_)}(_.mode&G0)!==s1&&0<=c1&&0<=i1&&(_2||0.05<t0)&&f4(_,c1,i1,t0,d0),C5(J),V4($),d0=q,_2=Z}function z8(_){for(_=_.child;_!==null;)Iz(_),_=_.sibling}function Pz(_,J,$,q){var Z=w5(),X=v4(),W=y4(),B=k4(),I=$.flags;switch($.tag){case 0:case 11:case 15:x4(_,$,q),Gz($,u5);break;case 1:if(x4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&L1($,ZF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{L1($,$I,J,_)}catch(S){w0($,$.return,S)}}q&&I&64&&Fz($),G_($,$.return);break;case 27:zz($);case 26:case 5:x4(_,$,q),q&&J===null&&I&4&&Hz($),G_($,$.return);break;case 12:if(q&&I&4){I=L3(),x4(_,$,q),q=$.stateNode,q.effectDuration+=a9(I);try{L1($,Kz,$,J,P6,q.effectDuration)}catch(S){w0($,$.return,S)}}else x4(_,$,q);break;case 31:x4(_,$,q),q&&I&4&&Mz(_,$);break;case 13:x4(_,$,q),q&&I&4&&Tz(_,$);break;case 22:$.memoizedState===null&&x4(_,$,q),G_($,$.return);break;case 30:break;default:x4(_,$,q)}($.mode&G0)!==s1&&0<=c1&&0<=i1&&(_2||0.05<t0)&&f4($,c1,i1,t0,d0),C5(Z),V4(X),d0=W,_2=B}function x4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Pz(_,J.alternate,J,$),J=J.sibling}function gG(_,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&&F8(_),$!=null&&r9($))}function pG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(F8(J),_!=null&&r9(_))}function K4(_,J,$,q,Z){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;Nz(_,J,$,q,X!==null?X.actualStartTime:Z),J=X}}function Nz(_,J,$,q,Z){var X=w5(),W=v4(),B=y4(),I=k4(),S=T6,_1=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&G0)!==s1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,Z,f2,$),K4(_,J,$,q,Z),_1&2048&&Zz(J,G5|o5);break;case 1:(J.mode&G0)!==s1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,Z,[]):(J.flags&1)!==0&&H$(J,J.actualStartTime,Z,f2,$)),K4(_,J,$,q,Z);break;case 3:var J1=L3(),i=f2;f2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,K4(_,J,$,q,Z),f2=i,_1&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(F8(q),$!=null&&r9($))),_.passiveEffectDuration+=R$(J1);break;case 12:if(_1&2048){_1=L3(),K4(_,J,$,q,Z),_=J.stateNode,_.passiveEffectDuration+=a9(_1);try{L1(J,AI,J,J.alternate,P6,_.passiveEffectDuration)}catch(F1){w0(J,J.return,F1)}}else K4(_,J,$,q,Z);break;case 31:_1=f2,J1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,J1!==null&&i===null?(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(f2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,Z,J1)):f2=!0):f2=!1,K4(_,J,$,q,Z),f2=_1;break;case 13:_1=f2,J1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,J1===null||J1.dehydrated===null||i!==null&&i.dehydrated!==null?f2=!1:(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(f2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,Z,J1)):f2=!0),K4(_,J,$,q,Z),f2=_1;break;case 23:break;case 22:i=J.stateNode,J1=J.alternate,J.memoizedState!==null?i._visibility&O3?K4(_,J,$,q,Z):Z_(_,J,$,q,Z):i._visibility&O3?K4(_,J,$,q,Z):(i._visibility|=O3,R7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),Z),(J.mode&G0)===s1||f2||(_=J.actualStartTime,0<=_&&0.05<Z-_&&K$(J,_,Z),0<=c1&&0<=i1&&0.05<i1-c1&&K$(J,c1,i1))),_1&2048&&gG(J1,J);break;case 24:K4(_,J,$,q,Z),_1&2048&&pG(J.alternate,J);break;default:K4(_,J,$,q,Z)}if((J.mode&G0)!==s1){if(_=!f2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<Z-$&&S4(J,$,Z,"Mount");0<=c1&&0<=i1&&((_2||0.05<t0)&&f4(J,c1,i1,t0,d0),_&&0.05<i1-c1&&S4(J,c1,i1,"Mount"))}C5(X),V4(W),d0=B,_2=I,T6=S}function R7(_,J,$,q,Z,X){Z=Z&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var W=J.sibling;wz(_,J,$,q,Z,W!==null?W.actualStartTime:X),J=W}}function wz(_,J,$,q,Z,X){var W=w5(),B=v4(),I=y4(),S=k4(),_1=T6;Z&&(J.mode&G0)!==s1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,X,f2,$);var J1=J.flags;switch(J.tag){case 0:case 11:case 15:R7(_,J,$,q,Z,X),Zz(J,G5);break;case 23:break;case 22:var i=J.stateNode;J.memoizedState!==null?i._visibility&O3?R7(_,J,$,q,Z,X):Z_(_,J,$,q,X):(i._visibility|=O3,R7(_,J,$,q,Z,X)),Z&&J1&2048&&gG(J.alternate,J);break;case 24:R7(_,J,$,q,Z,X),Z&&J1&2048&&pG(J.alternate,J);break;default:R7(_,J,$,q,Z,X)}(J.mode&G0)!==s1&&0<=c1&&0<=i1&&(_2||0.05<t0)&&f4(J,c1,i1,t0,d0),C5(W),V4(B),d0=I,_2=S,T6=_1}function Z_(_,J,$,q,Z){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 W=_,B=$,I=q,S=J!==null?J.actualStartTime:Z,_1=T6;(X.mode&G0)!==s1&&0<X.actualStartTime&&(X.flags&1)!==0&&H$(X,X.actualStartTime,S,f2,B);var J1=X.flags;switch(X.tag){case 22:Z_(W,X,B,I,S),J1&2048&&gG(X.alternate,X);break;case 24:Z_(W,X,B,I,S),J1&2048&&pG(X.alternate,X);break;default:Z_(W,X,B,I,S)}T6=_1,X=J}}function O7(_,J,$){if(_.subtreeFlags&o_)for(_=_.child;_!==null;)Cz(_,J,$),_=_.sibling}function Cz(_,J,$){switch(_.tag){case 26:O7(_,J,$),_.flags&o_&&_.memoizedState!==null&&FP($,B4,_.memoizedState,_.memoizedProps);break;case 5:O7(_,J,$);break;case 3:case 4:var q=B4;B4=$Q(_.stateNode.containerInfo),O7(_,J,$),B4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=o_,o_=16777216,O7(_,J,$),o_=q):O7(_,J,$));break;default:O7(_,J,$)}}function Sz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function F_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],Z=w5();b2=q,vz(q,_),(q.mode&G0)!==s1&&0<=c1&&0<=i1&&0.05<i1-c1&&S4(q,c1,i1,"Unmount"),C5(Z)}Sz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)fz(_),_=_.sibling}function fz(_){var J=w5(),$=v4(),q=y4(),Z=k4();switch(_.tag){case 0:case 11:case 15:F_(_),_.flags&2048&&EG(_,_.return,G5|o5);break;case 3:var X=L3();F_(_),_.stateNode.passiveEffectDuration+=R$(X);break;case 12:X=L3(),F_(_),_.stateNode.passiveEffectDuration+=a9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&O3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~O3,s$(_),(_.mode&G0)!==s1&&0<=c1&&0<=i1&&0.05<i1-c1&&S4(_,c1,i1,"Disconnect")):F_(_);break;default:F_(_)}(_.mode&G0)!==s1&&0<=c1&&0<=i1&&(_2||0.05<t0)&&f4(_,c1,i1,t0,d0),C5(J),V4($),_2=Z,d0=q}function s$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],Z=w5();b2=q,vz(q,_),(q.mode&G0)!==s1&&0<=c1&&0<=i1&&0.05<i1-c1&&S4(q,c1,i1,"Unmount"),C5(Z)}Sz(_)}for(_=_.child;_!==null;)jz(_),_=_.sibling}function jz(_){var J=w5(),$=v4(),q=y4(),Z=k4();switch(_.tag){case 0:case 11:case 15:EG(_,_.return,G5),s$(_);break;case 22:var X=_.stateNode;X._visibility&O3&&(X._visibility&=~O3,s$(_));break;default:s$(_)}(_.mode&G0)!==s1&&0<=c1&&0<=i1&&(_2||0.05<t0)&&f4(_,c1,i1,t0,d0),C5(J),V4($),_2=Z,d0=q}function vz(_,J){for(;b2!==null;){var $=b2,q=$,Z=J,X=w5(),W=v4(),B=y4(),I=k4();switch(q.tag){case 0:case 11:case 15:EG(q,Z,G5);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(Z=q.memoizedState.cachePool.pool,Z!=null&&F8(Z));break;case 24:r9(q.memoizedState.cache)}if((q.mode&G0)!==s1&&0<=c1&&0<=i1&&(_2||0.05<t0)&&f4(q,c1,i1,t0,d0),C5(X),V4(W),_2=I,d0=B,q=$.child,q!==null)q.return=$,b2=q;else _:for($=_;b2!==null;){if(q=b2,X=q.sibling,W=q.return,Bz(q),q===$){b2=null;break _}if(X!==null){X.return=W,b2=X;break _}b2=W}}}function OI(){pN.forEach(function(_){return _()})}function Vz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||W1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function f5(_){if((O0&j2)!==E2&&F0!==0)return F0&-F0;var J=W1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),tG()):U1()}function yz(){if(M5===0)if((F0&536870912)===0||A0){var _=WQ;WQ<<=1,(WQ&3932160)===0&&(WQ=262144),M5=_}else M5=536870912;return _=D5.current,_!==null&&(_.flags|=32),M5}function e0(_,J,$){if(G9&&console.error("useInsertionEffect must not schedule updates."),VF&&(eQ=!0),_===b0&&(v0===f8||v0===j8)||_.cancelPendingCommit!==null)P7(_,0),H6(_,F0,M5,!1);if(w2(_,$),(O0&j2)!==E2&&_===b0){if(l4)switch(J.tag){case 0:case 11:case 15:_=K0&&g(K0)||"Unknown",UA.has(_)||(UA.add(_),J=g(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:qA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),qA=!0)}}else i4&&w4(_,J,$),VI(J),_===b0&&((O0&j2)===E2&&(y6|=$),o0===j6&&H6(_,F0,M5,!1)),m4(_)}function kz(_,J,$){if((O0&(j2|b5))!==E2)throw Error("Should not already be working.");if(F0!==0&&K0!==null){var q=K0,Z=D2();switch(oL){case _J:case f8:var X=E_;g0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,Z,c5,void 0,"primary-light")):console.timeStamp("Suspended",X,Z,c5,void 0,"primary-light"));break;case j8:X=E_,g0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,Z,c5,void 0,"primary-light")):console.timeStamp("Action",X,Z,c5,void 0,"primary-light"));break;default:g0&&(q=Z-E_,3>q||console.timeStamp("Blocked",E_,Z,c5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||I2(_,J))?PI(_,J):lG(_,J,!0);var W=$;do{if(X===y3){q9&&!$&&H6(_,J,0,!1),J=v0,E_=W2(),oL=J;break}else{if(q=D2(),Z=_.current.alternate,W&&!II(Z)){P5(J),Z=u2,X=q,!g0||X<=Z||(q2?q2.run(console.timeStamp.bind(console,"Teared Render",Z,X,L0,z0,"error")):console.timeStamp("Teared Render",Z,X,L0,z0,"error")),W8(J,q),X=lG(_,J,!1),W=!1;continue}if(X===S8){if(W=J,_.errorRecoveryDisabledLanes&W)var B=0;else B=_.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){P5(J),CU(u2,q,J,q2),W8(J,q),J=B;_:{q=_,X=W,W=$J;var I=q.current.memoizedState.isDehydrated;if(I&&(P7(q,B).flags|=256),B=lG(q,B,!1),B!==S8){if(PF&&!I){q.errorRecoveryDisabledLanes|=X,y6|=X,X=j6;break _}q=Z5,Z5=W,q!==null&&(Z5===null?Z5=q:Z5.push.apply(Z5,q))}X=B}if(W=!1,X!==S8)continue;else q=D2()}}if(X===e_){P5(J),CU(u2,q,J,q2),W8(J,q),P7(_,0),H6(_,J,0,!0);break}_:{switch($=_,X){case y3:case e_:throw Error("Root did not complete. This is a bug in React.");case j6:if((J&4194048)!==J)break;case dQ:P5(J),kH(u2,q,J,q2),W8(J,q),Z=J,(Z&127)!==0?vQ=q:(Z&4194048)!==0&&(VQ=q),H6($,J,M5,!v6);break _;case S8:Z5=null;break;case lQ:case dB:break;default:throw Error("Unknown root exit status.")}if(W1.actQueue!==null)dG($,Z,J,Z5,QJ,aQ,M5,y6,v8,X,null,null,u2,q);else{if((J&62914560)===J&&(W=sQ+aB-D2(),10<W)){if(H6($,J,M5,!v6),y2($,0,!0)!==0)break _;A4=J,$.timeoutHandle=zA(Dz.bind(null,$,Z,Z5,QJ,aQ,J,M5,y6,v8,v6,X,"Throttled",u2,q),W);break _}Dz($,Z,Z5,QJ,aQ,J,M5,y6,v8,v6,X,null,u2,q)}}}break}while(1);m4(_)}function Dz(_,J,$,q,Z,X,W,B,I,S,_1,J1,i,F1){_.timeoutHandle=u8;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:H3},Cz(J,X,v1),N1=(X&62914560)===X?sQ-D2():(X&4194048)===X?rB-D2():0,N1=XP(v1,N1),N1!==null){A4=X,_.cancelPendingCommit=N1(dG.bind(null,_,J,X,$,q,Z,W,B,I,_1,v1,v1.waitingForViewTransition?"Waiting for the previous Animation":0<v1.count?0<v1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":v1.imgCount===1?"Suspended on an Image":0<v1.imgCount?"Suspended on Images":null,i,F1)),H6(_,X,W,!S);return}}dG(_,J,X,$,q,Z,W,B,I,_1,v1,J1,i,F1)}function II(_){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 Z=$[q],X=Z.getSnapshot;Z=Z.value;try{if(!Q5(X(),Z))return!1}catch(W){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 H6(_,J,$,q){J&=~NF,J&=~y6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var Z=J;0<Z;){var X=31-_5(Z),W=1<<X;q[X]=-1,Z&=~W}$!==0&&K5(_,$,J)}function I7(){return(O0&(j2|b5))===E2?(H_(0,!1),!1):!0}function cG(){if(K0!==null){if(v0===A5)var _=K0.return;else _=K0,A$(),_G(_),s7=null,i_=0,_=K0;for(;_!==null;)Uz(_.alternate,_),_=_.return;K0=null}}function W8(_,J){(_&127)!==0&&(N6=J),(_&4194048)!==0&&(o4=J),(_&62914560)!==0&&(sL=J),(_&2080374784)!==0&&(tL=J)}function P7(_,J){g0&&(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 $=u2;if(u2=W2(),F0!==0&&0<$){if(P5(F0),o0===lQ||o0===j6)kH($,u2,J,q2);else{var q=u2,Z=q2;if(g0&&!(q<=$)){var X=(J&738197653)===J?"tertiary-dark":"primary-dark",W=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";Z?Z.run(console.timeStamp.bind(console,W,$,q,L0,z0,X)):console.timeStamp(W,$,q,L0,z0,X)}}W8(F0,u2)}if($=q2,q2=null,(J&127)!==0){q2=D_,Z=0<=t4&&t4<N6?N6:t4,q=0<=T8&&T8<N6?N6:T8,X=0<=q?q:0<=Z?Z:u2,0<=vQ?(P5(2),DH(vQ,X,J,$)):(yQ&127)!==0&&(P5(2),d9(N6,X,S3)),$=Z;var B=q,I=u_,S=0<i7,_1=w6===k_,J1=w6===jQ;if(Z=u2,q=D_,X=$F,W=QF,g0){if(L0="Blocking",0<$?$>Z&&($=Z):$=Z,0<B?B>$&&(B=$):B=$,I!==null&&$>B){var i=S?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+I,B,$,L0,z0,i)):console.timeStamp(S?"Consecutive":"Event: "+I,B,$,L0,z0,i)}Z>$&&(B=_1?"error":(J&738197653)===J?"tertiary-light":"primary-light",_1=J1?"Promise Resolved":_1?"Cascading Update":5<Z-$?"Update Blocked":"Update",J1=[],W!=null&&J1.push(["Component name",W]),X!=null&&J1.push(["Method name",X]),$={start:$,end:Z,detail:{devtools:{properties:J1,track:L0,trackGroup:z0,color:B}}},q?q.run(performance.measure.bind(performance,_1,$)):performance.measure(_1,$))}t4=-1.1,w6=0,QF=$F=null,vQ=-1.1,i7=T8,T8=-1.1,N6=W2()}if((J&4194048)!==0&&(q2=b_,Z=0<=C3&&C3<o4?o4:C3,$=0<=s5&&s5<o4?o4:s5,q=0<=C6&&C6<o4?o4:C6,X=0<=q?q:0<=$?$:u2,0<=VQ?(P5(256),DH(VQ,X,J,q2)):(yQ&4194048)!==0&&(P5(256),d9(o4,X,S3)),J1=q,B=R8,I=0<S6,S=qF===jQ,X=u2,q=b_,W=rL,_1=aL,g0&&(L0="Transition",0<$?$>X&&($=X):$=X,0<Z?Z>$&&(Z=$):Z=$,0<J1?J1>Z&&(J1=Z):J1=Z,Z>J1&&B!==null&&(i=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+B,J1,Z,L0,z0,i)):console.timeStamp(I?"Consecutive":"Event: "+B,J1,Z,L0,z0,i)),$>Z&&(q?q.run(console.timeStamp.bind(console,"Action",Z,$,L0,z0,"primary-dark")):console.timeStamp("Action",Z,$,L0,z0,"primary-dark")),X>$&&(Z=S?"Promise Resolved":5<X-$?"Update Blocked":"Update",J1=[],_1!=null&&J1.push(["Component name",_1]),W!=null&&J1.push(["Method name",W]),$={start:$,end:X,detail:{devtools:{properties:J1,track:L0,trackGroup:z0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,Z,$)):performance.measure(Z,$))),s5=C3=-1.1,qF=0,VQ=-1.1,S6=C6,C6=-1.1,o4=W2()),(J&62914560)!==0&&(yQ&62914560)!==0&&(P5(4194304),d9(sL,u2,S3)),(J&2080374784)!==0&&(yQ&2080374784)!==0&&(P5(268435456),d9(tL,u2,S3)),$=_.timeoutHandle,$!==u8&&(_.timeoutHandle=u8,Jw($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),A4=0,cG(),b0=_,K0=$=Y3(_.current,null),F0=J,v0=A5,E5=null,v6=!1,q9=I2(_,J),PF=!1,o0=y3,v8=M5=NF=y6=V6=0,Z5=$J=null,aQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)Z=31-_5(q),X=1<<Z,J|=_[Z],q&=~X;return e4=J,Y$(),_=gL(),1000<_-mL&&(W1.recentlyCreatedOwnerStacks=0,mL=_),W4.discardPendingWarnings(),$}function uz(_,J){o1=null,W1.H=t_,W1.getCurrentStack=null,l4=!1,V5=null,J===a7||J===bQ?(J=$Y(),v0=_J):J===FF?(J=$Y(),v0=iB):v0=J===MF?IF:J!==null&&typeof J==="object"&&typeof J.then==="function"?JJ:iQ,E5=J;var $=K0;$===null?(o0=e_,p$(_,N5(J,_.current))):$.mode&G0&&gU($)}function bz(){var _=D5.current;return _===null?!0:(F0&4194048)===F0?t5===null?!0:!1:(F0&62914560)===F0||(F0&536870912)!==0?_===t5:!1}function Ez(){var _=W1.H;return W1.H=t_,_===null?t_:_}function hz(){var _=W1.A;return W1.A=gN,_}function t$(_){q2===null&&(q2=_._debugTask==null?null:_._debugTask)}function o$(){o0=j6,v6||(F0&4194048)!==F0&&D5.current!==null||(q9=!0),(V6&134217727)===0&&(y6&134217727)===0||b0===null||H6(b0,F0,M5,!1)}function lG(_,J,$){var q=O0;O0|=j2;var Z=Ez(),X=hz();if(b0!==_||F0!==J){if(i4){var W=_.memoizedUpdaters;0<W.size&&(K_(_,F0),W.clear()),O5(_,J)}QJ=null,P7(_,J)}J=!1,W=o0;_:do try{if(v0!==A5&&K0!==null){var B=K0,I=E5;switch(v0){case IF:cG(),W=dQ;break _;case _J:case f8:case j8:case JJ:D5.current===null&&(J=!0);var S=v0;if(v0=A5,E5=null,N7(_,B,I,S),$&&q9){W=y3;break _}break;default:S=v0,v0=A5,E5=null,N7(_,B,I,S)}}xz(),W=o0;break}catch(_1){uz(_,_1)}while(1);return J&&_.shellSuspendCounter++,A$(),O0=q,W1.H=Z,W1.A=X,K0===null&&(b0=null,F0=0,Y$()),W}function xz(){for(;K0!==null;)mz(K0)}function PI(_,J){var $=O0;O0|=j2;var q=Ez(),Z=hz();if(b0!==_||F0!==J){if(i4){var X=_.memoizedUpdaters;0<X.size&&(K_(_,F0),X.clear()),O5(_,J)}QJ=null,tQ=D2()+sB,P7(_,J)}else q9=I2(_,J);_:do try{if(v0!==A5&&K0!==null)J:switch(J=K0,X=E5,v0){case iQ:v0=A5,E5=null,N7(_,J,X,iQ);break;case f8:case j8:if(_Y(X)){v0=A5,E5=null,gz(J);break}J=function(){v0!==f8&&v0!==j8||b0!==_||(v0=rQ),m4(_)},X.then(J,J);break _;case _J:v0=rQ;break _;case iB:v0=OF;break _;case rQ:_Y(X)?(v0=A5,E5=null,gz(J)):(v0=A5,E5=null,N7(_,J,X,rQ));break;case OF:var W=null;switch(K0.tag){case 26:W=K0.memoizedState;case 5:case 27:var B=K0;if(W?kW(W):B.stateNode.complete){v0=A5,E5=null;var I=B.sibling;if(I!==null)K0=I;else{var S=B.return;S!==null?(K0=S,n$(S)):K0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}v0=A5,E5=null,N7(_,J,X,OF);break;case JJ:v0=A5,E5=null,N7(_,J,X,JJ);break;case IF:cG(),o0=dQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}W1.actQueue!==null?xz():NI();break}catch(_1){uz(_,_1)}while(1);if(A$(),W1.H=q,W1.A=Z,O0=$,K0!==null)return y3;return b0=null,F0=0,Y$(),o0}function NI(){for(;K0!==null&&!IP();)mz(K0)}function mz(_){var J=_.alternate;(_.mode&G0)!==s1?(mU(_),J=L1(_,DG,J,_,e4),gU(_)):J=L1(_,DG,J,_,e4),_.memoizedProps=_.pendingProps,J===null?n$(_):K0=J}function gz(_){var J=L1(_,wI,_);_.memoizedProps=_.pendingProps,J===null?n$(_):K0=J}function wI(_){var J=_.alternate,$=(_.mode&G0)!==s1;switch($&&mU(_),_.tag){case 15:case 0:J=nY(J,_,_.pendingProps,_.type,void 0,F0);break;case 11:J=nY(J,_,_.pendingProps,_.type.render,_.ref,F0);break;case 5:_G(_);default:Uz(J,_),_=K0=mH(_,e4),J=DG(J,_,e4)}return $&&gU(_),J}function N7(_,J,$,q){A$(),_G(J),s7=null,i_=0;var Z=J.return;try{if(XI(_,Z,J,$,F0)){o0=e_,p$(_,N5($,_.current)),K0=null;return}}catch(X){if(Z!==null)throw K0=Z,X;o0=e_,p$(_,N5($,_.current)),K0=null;return}if(J.flags&32768){if(A0||q===iQ)_=!0;else if(q9||(F0&536870912)!==0)_=!1;else if(v6=_=!0,q===f8||q===j8||q===_J||q===JJ)q=D5.current,q!==null&&q.tag===13&&(q.flags|=16384);pz(J,_)}else n$(J)}function n$(_){var J=_;do{if((J.flags&32768)!==0){pz(J,v6);return}var $=J.alternate;if(_=J.return,mU(J),$=L1(J,YI,$,J,e4),(J.mode&G0)!==s1&&sH(J),$!==null){K0=$;return}if(J=J.sibling,J!==null){K0=J;return}K0=J=_}while(J!==null);o0===y3&&(o0=dB)}function pz(_,J){do{var $=zI(_.alternate,_);if($!==null){$.flags&=32767,K0=$;return}if((_.mode&G0)!==s1){sH(_),$=_.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);o0=dQ,K0=null}function dG(_,J,$,q,Z,X,W,B,I,S,_1,J1,i,F1){_.cancelPendingCommit=null;do X_();while(T2!==D6);if(W4.flushLegacyContextWarning(),W4.flushPendingUnsafeLifecycleWarnings(),(O0&(j2|b5))!==E2)throw Error("Should not already be working.");if(P5($),S===S8?CU(i,F1,$,q2):q!==null?tO(i,F1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,q2):sO(i,F1,$,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|=oZ,G4(_,$,X,W,B,I),_===b0&&(K0=b0=null,F0=0),U9=J,u6=_,A4=$,SF=X,jF=Z,JA=q,fF=F1,$A=J1,M4=oQ,QA=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,vI(v7,function(){return XJ=window.event,M4===oQ&&(M4=CF),rz(),null})):(_.callbackNode=null,_.callbackPriority=0),w3=null,P6=W2(),J1!==null&&oO(F1,P6,J1,q2),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=W1.T,W1.T=null,Z=C0.p,C0.p=y5,W=O0,O0|=b5;try{TI(_,J,$)}finally{O0=W,C0.p=Z,W1.T=q}}T2=oB,cz(),lz(),dz()}}function cz(){if(T2===oB){T2=D6;var _=u6,J=U9,$=A4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=W1.T,W1.T=null;var Z=C0.p;C0.p=y5;var X=O0;O0|=b5;try{$9=$,Q9=_,O$(),Rz(J,_),Q9=$9=null,$=mF;var W=vH(_.containerInfo),B=$.focusedElem,I=$.selectionRange;if(W!==B&&B&&B.ownerDocument&&jH(B.ownerDocument.documentElement,B)){if(I!==null&&PU(B)){var{start:S,end:_1}=I;if(_1===void 0&&(_1=S),"selectionStart"in B)B.selectionStart=S,B.selectionEnd=Math.min(_1,B.value.length);else{var J1=B.ownerDocument||document,i=J1&&J1.defaultView||window;if(i.getSelection){var F1=i.getSelection(),N1=B.textContent.length,v1=Math.min(I.start,N1),m0=I.end===void 0?v1:Math.min(I.end,N1);!F1.extend&&v1>m0&&(W=m0,m0=v1,v1=W);var T0=fH(B,v1),d=fH(B,m0);if(T0&&d&&(F1.rangeCount!==1||F1.anchorNode!==T0.node||F1.anchorOffset!==T0.offset||F1.focusNode!==d.node||F1.focusOffset!==d.offset)){var r=J1.createRange();r.setStart(T0.node,T0.offset),F1.removeAllRanges(),v1>m0?(F1.addRange(r),F1.extend(d.node,d.offset)):(r.setEnd(d.node,d.offset),F1.addRange(r))}}}}J1=[];for(F1=B;F1=F1.parentNode;)F1.nodeType===1&&J1.push({element:F1,left:F1.scrollLeft,top:F1.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=!!xF,mF=xF=null}finally{O0=X,C0.p=Z,W1.T=q}}_.current=J,T2=nB}}function lz(){if(T2===nB){T2=D6;var _=QA;if(_!==null){P6=W2();var J=N3,$=P6;!g0||$<=J||(S3?S3.run(console.timeStamp.bind(console,_,J,$,L0,z0,"secondary-light")):console.timeStamp(_,J,$,L0,z0,"secondary-light"))}_=u6,J=U9,$=A4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=W1.T,W1.T=null;var Z=C0.p;C0.p=y5;var X=O0;O0|=b5;try{$9=$,Q9=_,O$(),Lz(_,J.alternate,J),Q9=$9=null}finally{O0=X,C0.p=Z,W1.T=q}}_=fF,J=$A,N3=W2(),_=J===null?_:P6,J=N3,$=M4===wF,q=q2,w3!==null?uH(_,J,w3,!1,q):!g0||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")),T2=eB}}function dz(){if(T2===_A||T2===eB){if(T2===_A){var _=N3;N3=W2();var J=N3,$=M4===wF;!g0||J<=_||(S3?S3.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")),M4!==wF&&(M4=tB)}T2=D6,PP(),_=u6;var q=U9;J=A4,$=JA;var Z=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;Z?T2=nQ:(T2=D6,U9=u6=null,iz(_,_.pendingLanes),V8=0,UJ=null);var X=_.pendingLanes;if(X===0&&(k6=null),Z||oz(_),X=V(J),q=q.stateNode,i2&&typeof i2.onCommitFiberRoot==="function")try{var W=(q.current.flags&128)===128;switch(X){case y5:var B=jZ;break;case Y4:B=vZ;break;case r4:B=v7;break;case BQ:B=VZ;break;default:B=v7}i2.onCommitFiberRoot(V7,q,B,W)}catch(J1){d4||(d4=!0,console.error("React instrumentation encountered an error: %o",J1))}if(i4&&_.memoizedUpdaters.clear(),OI(),$!==null){W=W1.T,B=C0.p,C0.p=y5,W1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var S=$[q],_1=CI(S.stack);L1(S.source,I,S.value,_1)}}finally{W1.T=W,C0.p=B}}(A4&3)!==0&&X_(),m4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(DQ=!0,_===vF?qJ++:(qJ=0,vF=_)):qJ=0,Z||W8(J,N3),H_(0,!1)}}function CI(_){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 iz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,r9(J)))}function X_(){return cz(),lz(),dz(),rz()}function rz(){if(T2!==nQ)return!1;var _=u6,J=SF;SF=0;var $=V(A4),q=r4===0||r4>$?r4:$;$=W1.T;var Z=C0.p;try{C0.p=q,W1.T=null;var X=jF;jF=null,q=u6;var W=A4;if(T2=D6,U9=u6=null,A4=0,(O0&(j2|b5))!==E2)throw Error("Cannot flush passive effects while already rendering.");P5(W),VF=!0,eQ=!1;var B=0;if(w3=null,B=D2(),M4===tB)d9(N3,B,S3);else{var I=N3,S=B,_1=M4===CF;!g0||S<=I||(q2?q2.run(console.timeStamp.bind(console,_1?"Waiting for Paint":"Waiting",I,S,L0,z0,"secondary-light")):console.timeStamp(_1?"Waiting for Paint":"Waiting",I,S,L0,z0,"secondary-light"))}I=O0,O0|=b5;var J1=q.current;O$(),fz(J1);var i=q.current;J1=fF,O$(),Nz(q,i,W,X,J1),oz(q),O0=I;var F1=D2();if(i=B,J1=q2,w3!==null?uH(i,F1,w3,!0,J1):!g0||F1<=i||(J1?J1.run(console.timeStamp.bind(console,"Remaining Effects",i,F1,L0,z0,"secondary-dark")):console.timeStamp("Remaining Effects",i,F1,L0,z0,"secondary-dark")),W8(W,F1),H_(0,!1),eQ?q===UJ?V8++:(V8=0,UJ=q):V8=0,eQ=VF=!1,i2&&typeof i2.onPostCommitFiberRoot==="function")try{i2.onPostCommitFiberRoot(V7,q)}catch(v1){d4||(d4=!0,console.error("React instrumentation encountered an error: %o",v1))}var N1=q.current.stateNode;return N1.effectDuration=0,N1.passiveEffectDuration=0,!0}finally{C0.p=Z,W1.T=$,iz(_,J)}}function az(_,J,$){J=N5($,J),tH(J),J=PG(_.stateNode,J,2),_=Z6(_,J,2),_!==null&&(w2(_,2),m4(_))}function w0(_,J,$){if(G9=!1,_.tag===3)az(_,_,$);else{for(;J!==null;){if(J.tag===3){az(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(k6===null||!k6.has(q))){_=N5($,_),tH(_),$=NG(2),q=Z6(J,$,2),q!==null&&(wG($,q,J,_),w2(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.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,H1(J,function(B,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,I)},X,W)}$=$.next}while($!==Z)}}catch(B){w0(J,J.return,B)}}function R7(_,J,$){try{var q=J.updateQueue,Z=q!==null?q.lastEffect:null;if(Z!==null){var X=Z.next;q=X;do{if((q.tag&_)===_){var W=q.inst,B=W.destroy;B!==void 0&&(W.destroy=void 0,(_&U5)!==xQ&&(Z9=!0),Z=J,H1(Z,EN,Z,$,B),(_&U5)!==xQ&&(Z9=!1))}q=q.next}while(q!==X)}}catch(I){w0(J,J.return,I)}}function Zz(_,J){E4(_)?(b4(),G_(J,_),u4()):G_(J,_)}function EG(_,J,$){E4(_)?(b4(),R7($,_,J),u4()):R7($,_,J)}function Fz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||$9||($.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x(_)||"instance"),$.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x(_)||"instance"));try{H1(_,KY,J,$)}catch(q){w0(_,_.return,q)}}}function WI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function LI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||$9||(J.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x(_)||"instance"),J.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x(_)||"instance"));try{var Z=z8(_.type,$),X=H1(_,WI,J,Z,q);$=cB,X!==void 0||$.has(_.type)||($.add(_.type),H1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",x(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(W){w0(_,_.return,W)}}function Xz(_,J,$){$.props=z8(_.type,_.memoizedProps),$.state=_.memoizedState,E4(_)?(b4(),H1(_,FB,_,J,$),u4()):H1(_,FB,_,J,$)}function BI(_){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(E4(_))try{b4(),_.refCleanup=J($)}finally{u4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",x(_)),J.current=$}}function Z_(_,J){try{H1(_,BI,_)}catch($){w0(_,J,$)}}function h4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(E4(_))try{b4(),H1(_,q)}finally{u4(_)}else H1(_,q)}catch(Z){w0(_,J,Z)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(E4(_))try{b4(),H1(_,$,null)}finally{u4(_)}else H1(_,$,null)}catch(Z){w0(_,J,Z)}else $.current=null}function Kz(_,J,$,q){var Z=_.memoizedProps,X=Z.id,W=Z.onCommit;Z=Z.onRender,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof Z==="function"&&Z(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof W==="function"&&W(X,J,q,$)}function AI(_,J,$,q){var Z=_.memoizedProps;_=Z.id,Z=Z.onPostCommit,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof Z==="function"&&Z(_,J,q,$)}function Hz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{H1(_,gI,q,J,$,_)}catch(Z){w0(_,_.return,Z)}}function hG(_,J,$){try{H1(_,cI,_.stateNode,_.type,$,J,_)}catch(q){w0(_,_.return,q)}}function Yz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&L6(_.type)||_.tag===4}function xG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Yz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&L6(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function mG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(TW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(TW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=L3));else if(q!==4&&(q===27&&L6(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(mG(_,J,$),_=_.sibling;_!==null;)mG(_,J,$),_=_.sibling}function r$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&L6(_.type)&&($=_.stateNode),_=_.child,_!==null))for(r$(_,J,$),_=_.sibling;_!==null;)r$(_,J,$),_=_.sibling}function MI(_){for(var J,$=_.return;$!==null;){if(Yz($)){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,$=xG(_),r$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(MW($),J.flags&=-33),J=xG(_),r$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=xG(_),mG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function zz(_){var{stateNode:J,memoizedProps:$}=_;try{H1(_,UP,_.type,$,J,_)}catch(q){w0(_,_.return,q)}}function Wz(_,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 TI(_,J){if(_=_.containerInfo,xF=zq,_=vH(_),PU(_)){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:Z,focusNode:X}=q;q=q.focusOffset;try{$.nodeType,X.nodeType}catch(C1){$=null;break _}var W=0,B=-1,I=-1,S=0,_1=0,J1=_,i=null;J:for(;;){for(var F1;;){if(J1!==$||Z!==0&&J1.nodeType!==3||(B=W+Z),J1!==X||q!==0&&J1.nodeType!==3||(I=W+q),J1.nodeType===3&&(W+=J1.nodeValue.length),(F1=J1.firstChild)===null)break;i=J1,J1=F1}for(;;){if(J1===_)break J;if(i===$&&++S===Z&&(B=W),i===X&&++_1===q&&(I=W),(F1=J1.nextSibling)!==null)break;J1=i,i=J1.parentNode}J1=F1}$=B===-1||I===-1?null:{start:B,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;mF={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,Z=_.flags,_.tag){case 0:if((Z&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)Z=_[$],Z.ref.impl=Z.nextImpl;break;case 11:case 15:break;case 1:(Z&1024)!==0&&$!==null&&LI(_,$);break;case 3:if((Z&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)GZ(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":GZ(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((Z&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 Lz(_,J,$){var q=C5(),Z=V4(),X=k4(),W=D4(),B=$.flags;switch($.tag){case 0:case 11:case 15:x4(_,$),B&4&&Gz($,b5|e5);break;case 1:if(x4(_,$),B&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||$9||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x($)||"instance")),E4($)?(b4(),H1($,ZF,$,_),u4()):H1($,ZF,$,_);else{var I=z8($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||$9||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x($)||"instance")),E4($)?(b4(),H1($,UB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),u4()):H1($,UB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}B&64&&Fz($),B&512&&Z_($,$.return);break;case 3:if(J=T3(),x4(_,$),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{H1($,KY,B,I)}catch(_1){w0($,$.return,_1)}}_.effectDuration+=R$(J);break;case 27:J===null&&B&4&&zz($);case 26:case 5:if(x4(_,$),J===null){if(B&4)Hz($);else if(B&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{H1($,pI,I,_,J,$)}catch(_1){w0($,$.return,_1)}}}B&512&&Z_($,$.return);break;case 12:if(B&4){B=T3(),x4(_,$),_=$.stateNode,_.effectDuration+=s9(B);try{H1($,Kz,$,J,w6,_.effectDuration)}catch(_1){w0($,$.return,_1)}}else x4(_,$);break;case 31:x4(_,$),B&4&&Mz(_,$);break;case 13:x4(_,$),B&4&&Tz(_,$),B&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(B=fI.bind(null,$),JP(_,B))));break;case 22:if(B=$.memoizedState!==null||u3,!B){J=J!==null&&J.memoizedState!==null||B2,I=u3;var S=B2;u3=B,(B2=J)&&!S?(m4(_,$,($.subtreeFlags&8772)!==0),($.mode&G0)!==t1&&0<=l1&&0<=r1&&0.05<r1-l1&&K$($,l1,r1)):x4(_,$),u3=I,B2=S}break;case 30:break;default:x4(_,$)}($.mode&G0)!==t1&&0<=l1&&0<=r1&&((J2||0.05<t0)&&j4($,l1,r1,t0,d0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<r1-l1&&(Wz($.return.alternate,$.return)||f4($,l1,r1,"Mount"))),S5(q),y4(Z),d0=X,J2=W}function Bz(_){var J=_.alternate;J!==null&&(_.alternate=null,Bz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&w1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function I3(_,J,$){for($=$.child;$!==null;)Az(_,J,$),$=$.sibling}function Az(_,J,$){if(i2&&typeof i2.onCommitFiberUnmount==="function")try{i2.onCommitFiberUnmount(y7,$)}catch(S){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",S))}var q=C5(),Z=V4(),X=k4(),W=D4();switch($.tag){case 26:B2||h4($,J),I3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:B2||h4($,J);var B=A2,I=A5;L6($.type)&&(A2=$.stateNode,A5=!1),I3(_,J,$),H1($,B_,$.stateNode),A2=B,A5=I;break;case 5:B2||h4($,J);case 6:if(B=A2,I=A5,A2=null,I3(_,J,$),A2=B,A5=I,A2!==null)if(A5)try{H1($,iI,A2,$.stateNode)}catch(S){w0($,J,S)}else try{H1($,dI,A2,$.stateNode)}catch(S){w0($,J,S)}break;case 18:A2!==null&&(A5?(_=A2,RW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),f7(_)):RW(A2,$.stateNode));break;case 4:B=A2,I=A5,A2=$.stateNode.containerInfo,A5=!0,I3(_,J,$),A2=B,A5=I;break;case 0:case 11:case 14:case 15:R7(U5,$,J),B2||bG($,J,b5),I3(_,J,$);break;case 1:B2||(h4($,J),B=$.stateNode,typeof B.componentWillUnmount==="function"&&Xz($,J,B)),I3(_,J,$);break;case 21:I3(_,J,$);break;case 22:B2=(B=B2)||$.memoizedState!==null,I3(_,J,$),B2=B;break;default:I3(_,J,$)}($.mode&G0)!==t1&&0<=l1&&0<=r1&&(J2||0.05<t0)&&j4($,l1,r1,t0,d0),S5(q),y4(Z),d0=X,J2=W}function Mz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{H1(J,QP,_)}catch($){w0(J,J.return,$)}}}function Tz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{H1(J,qP,_)}catch($){w0(J,J.return,$)}}function RI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new lB),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new lB),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function a$(_,J){var $=RI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),r4)if(Q9!==null&&q9!==null)H_(q9,Q9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var Z=jI.bind(null,_,q);q.then(Z,Z)}})}function L5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var Z=_,X=J,W=$[q],B=C5(),I=X;_:for(;I!==null;){switch(I.tag){case 27:if(L6(I.type)){A2=I.stateNode,A5=!1;break _}break;case 5:A2=I.stateNode,A5=!1;break _;case 3:case 4:A2=I.stateNode.containerInfo,A5=!0;break _}I=I.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.");Az(Z,X,W),A2=null,A5=!1,(W.mode&G0)!==t1&&0<=l1&&0<=r1&&0.05<r1-l1&&f4(W,l1,r1,"Unmount"),S5(B),Z=W,X=Z.alternate,X!==null&&(X.return=null),Z.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Rz(J,_),J=J.sibling}function Rz(_,J){var $=C5(),q=V4(),Z=k4(),X=D4(),W=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:L5(J,_),B5(_),B&4&&(R7(U5|e5,_,_.return),G_(U5|e5,_),bG(_,_.return,b5|e5));break;case 1:if(L5(J,_),B5(_),B&512&&(B2||W===null||h4(W,W.return)),B&64&&u3&&(B=_.updateQueue,B!==null&&(W=B.callbacks,W!==null))){var I=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=I===null?W:I.concat(W)}break;case 26:if(I=A4,L5(J,_),B5(_),B&512&&(B2||W===null||h4(W,W.return)),B&4){var S=W!==null?W.memoizedState:null;if(B=_.memoizedState,W===null)if(B===null)if(_.stateNode===null){_:{B=_.type,W=_.memoizedProps,I=I.ownerDocument||I;J:switch(B){case"title":if(S=I.getElementsByTagName("title")[0],!S||S[P_]||S[g2]||S.namespaceURI===D7||S.hasAttribute("itemprop"))S=I.createElement(B),I.head.insertBefore(S,I.querySelector("head > title"));m2(S,B,W),S[g2]=_,m1(S),B=S;break _;case"link":var _1=VW("link","href",I).get(B+(W.href||""));if(_1){for(var J1=0;J1<_1.length;J1++)if(S=_1[J1],S.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&S.getAttribute("rel")===(W.rel==null?null:W.rel)&&S.getAttribute("title")===(W.title==null?null:W.title)&&S.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){_1.splice(J1,1);break J}}S=I.createElement(B),m2(S,B,W),I.head.appendChild(S);break;case"meta":if(_1=VW("meta","content",I).get(B+(W.content||""))){for(J1=0;J1<_1.length;J1++)if(S=_1[J1],M1(W.content,"content"),S.getAttribute("content")===(W.content==null?null:""+W.content)&&S.getAttribute("name")===(W.name==null?null:W.name)&&S.getAttribute("property")===(W.property==null?null:W.property)&&S.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&S.getAttribute("charset")===(W.charSet==null?null:W.charSet)){_1.splice(J1,1);break J}}S=I.createElement(B),m2(S,B,W),I.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}S[g2]=_,m1(S),B=S}_.stateNode=B}else yW(I,_.type,_.stateNode);else _.stateNode=vW(I,B,_.memoizedProps);else S!==B?(S===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):S.count--,B===null?yW(I,_.type,_.stateNode):vW(I,B,_.memoizedProps)):B===null&&_.stateNode!==null&&hG(_,_.memoizedProps,W.memoizedProps)}break;case 27:L5(J,_),B5(_),B&512&&(B2||W===null||h4(W,W.return)),W!==null&&B&4&&hG(_,_.memoizedProps,W.memoizedProps);break;case 5:if(L5(J,_),B5(_),B&512&&(B2||W===null||h4(W,W.return)),_.flags&32){I=_.stateNode;try{H1(_,MW,I)}catch(V1){w0(_,_.return,V1)}}B&4&&_.stateNode!=null&&(I=_.memoizedProps,hG(_,I,W!==null?W.memoizedProps:I)),B&1024&&(RF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(L5(J,_),B5(_),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,W=W!==null?W.memoizedProps:B,I=_.stateNode;try{H1(_,lI,I,W,B)}catch(V1){w0(_,_.return,V1)}}break;case 3:if(I=T3(),Kq=null,S=A4,A4=$Q(J.containerInfo),L5(J,_),A4=S,B5(_),B&4&&W!==null&&W.memoizedState.isDehydrated)try{H1(_,$P,J.containerInfo)}catch(V1){w0(_,_.return,V1)}RF&&(RF=!1,Oz(_)),J.effectDuration+=R$(I);break;case 4:B=A4,A4=$Q(_.stateNode.containerInfo),L5(J,_),B5(_),A4=B;break;case 12:B=T3(),L5(J,_),B5(_),_.stateNode.effectDuration+=s9(B);break;case 31:L5(J,_),B5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 13:L5(J,_),B5(_),_.child.flags&8192&&_.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(sQ=y2()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 22:I=_.memoizedState!==null;var i=W!==null&&W.memoizedState!==null,F1=u3,C1=B2;if(u3=F1||I,B2=C1||i,L5(J,_),B2=C1,u3=F1,i&&!I&&!F1&&!C1&&(_.mode&G0)!==t1&&0<=l1&&0<=r1&&0.05<r1-l1&&K$(_,l1,r1),B5(_),B&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~y_:J._visibility|y_,!I||W===null||i||u3||B2||(W8(_),(_.mode&G0)!==t1&&0<=l1&&0<=r1&&0.05<r1-l1&&f4(_,l1,r1,"Disconnect")),W=null,J=_;;){if(J.tag===5||J.tag===26){if(W===null){i=W=J;try{S=i.stateNode,I?H1(i,aI,S):H1(i,oI,i.stateNode,i.memoizedProps)}catch(V1){w0(i,i.return,V1)}}}else if(J.tag===6){if(W===null){i=J;try{_1=i.stateNode,I?H1(i,sI,_1):H1(i,nI,_1,i.memoizedProps)}catch(V1){w0(i,i.return,V1)}}}else if(J.tag===18){if(W===null){i=J;try{J1=i.stateNode,I?H1(i,rI,J1):H1(i,tI,i.stateNode)}catch(V1){w0(i,i.return,V1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;W===J&&(W=null),J=J.return}W===J&&(W=null),J.sibling.return=J.return,J=J.sibling}B&4&&(B=_.updateQueue,B!==null&&(W=B.retryQueue,W!==null&&(B.retryQueue=null,a$(_,W))));break;case 19:L5(J,_),B5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 30:break;case 21:break;default:L5(J,_),B5(_)}(_.mode&G0)!==t1&&0<=l1&&0<=r1&&((J2||0.05<t0)&&j4(_,l1,r1,t0,d0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<r1-l1&&(Wz(_.return.alternate,_.return)||f4(_,l1,r1,"Mount"))),S5($),y4(q),d0=Z,J2=X}function B5(_){var J=_.flags;if(J&2){try{H1(_,MI,_)}catch($){w0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Oz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Oz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function x4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Lz(_,J.alternate,J),J=J.sibling}function Iz(_){var J=C5(),$=V4(),q=k4(),Z=D4();switch(_.tag){case 0:case 11:case 14:case 15:bG(_,_.return,b5),W8(_);break;case 1:h4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Xz(_,_.return,X),W8(_);break;case 27:H1(_,B_,_.stateNode);case 26:case 5:h4(_,_.return),W8(_);break;case 22:_.memoizedState===null&&W8(_);break;case 30:W8(_);break;default:W8(_)}(_.mode&G0)!==t1&&0<=l1&&0<=r1&&(J2||0.05<t0)&&j4(_,l1,r1,t0,d0),S5(J),y4($),d0=q,J2=Z}function W8(_){for(_=_.child;_!==null;)Iz(_),_=_.sibling}function Pz(_,J,$,q){var Z=C5(),X=V4(),W=k4(),B=D4(),I=$.flags;switch($.tag){case 0:case 11:case 15:m4(_,$,q),Gz($,b5);break;case 1:if(m4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&H1($,ZF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{H1($,$I,J,_)}catch(S){w0($,$.return,S)}}q&&I&64&&Fz($),Z_($,$.return);break;case 27:zz($);case 26:case 5:m4(_,$,q),q&&J===null&&I&4&&Hz($),Z_($,$.return);break;case 12:if(q&&I&4){I=T3(),m4(_,$,q),q=$.stateNode,q.effectDuration+=s9(I);try{H1($,Kz,$,J,w6,q.effectDuration)}catch(S){w0($,$.return,S)}}else m4(_,$,q);break;case 31:m4(_,$,q),q&&I&4&&Mz(_,$);break;case 13:m4(_,$,q),q&&I&4&&Tz(_,$);break;case 22:$.memoizedState===null&&m4(_,$,q),Z_($,$.return);break;case 30:break;default:m4(_,$,q)}($.mode&G0)!==t1&&0<=l1&&0<=r1&&(J2||0.05<t0)&&j4($,l1,r1,t0,d0),S5(Z),y4(X),d0=W,J2=B}function m4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Pz(_,J.alternate,J,$),J=J.sibling}function gG(_,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&&X8(_),$!=null&&a9($))}function pG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(X8(J),_!=null&&a9(_))}function H4(_,J,$,q,Z){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;Nz(_,J,$,q,X!==null?X.actualStartTime:Z),J=X}}function Nz(_,J,$,q,Z){var X=C5(),W=V4(),B=k4(),I=D4(),S=O6,_1=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&G0)!==t1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,Z,w2,$),H4(_,J,$,q,Z),_1&2048&&Zz(J,G5|e5);break;case 1:(J.mode&G0)!==t1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,Z,[]):(J.flags&1)!==0&&H$(J,J.actualStartTime,Z,w2,$)),H4(_,J,$,q,Z);break;case 3:var J1=T3(),i=w2;w2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,H4(_,J,$,q,Z),w2=i,_1&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(X8(q),$!=null&&a9($))),_.passiveEffectDuration+=R$(J1);break;case 12:if(_1&2048){_1=T3(),H4(_,J,$,q,Z),_=J.stateNode,_.passiveEffectDuration+=s9(_1);try{H1(J,AI,J,J.alternate,w6,_.passiveEffectDuration)}catch(F1){w0(J,J.return,F1)}}else H4(_,J,$,q,Z);break;case 31:_1=w2,J1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,J1!==null&&i===null?(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(w2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,Z,J1)):w2=!0):w2=!1,H4(_,J,$,q,Z),w2=_1;break;case 13:_1=w2,J1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,J1===null||J1.dehydrated===null||i!==null&&i.dehydrated!==null?w2=!1:(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(w2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,Z,J1)):w2=!0),H4(_,J,$,q,Z),w2=_1;break;case 23:break;case 22:i=J.stateNode,J1=J.alternate,J.memoizedState!==null?i._visibility&w3?H4(_,J,$,q,Z):F_(_,J,$,q,Z):i._visibility&w3?H4(_,J,$,q,Z):(i._visibility|=w3,O7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),Z),(J.mode&G0)===t1||w2||(_=J.actualStartTime,0<=_&&0.05<Z-_&&K$(J,_,Z),0<=l1&&0<=r1&&0.05<r1-l1&&K$(J,l1,r1))),_1&2048&&gG(J1,J);break;case 24:H4(_,J,$,q,Z),_1&2048&&pG(J.alternate,J);break;default:H4(_,J,$,q,Z)}if((J.mode&G0)!==t1){if(_=!w2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<Z-$&&f4(J,$,Z,"Mount");0<=l1&&0<=r1&&((J2||0.05<t0)&&j4(J,l1,r1,t0,d0),_&&0.05<r1-l1&&f4(J,l1,r1,"Mount"))}S5(X),y4(W),d0=B,J2=I,O6=S}function O7(_,J,$,q,Z,X){Z=Z&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var W=J.sibling;wz(_,J,$,q,Z,W!==null?W.actualStartTime:X),J=W}}function wz(_,J,$,q,Z,X){var W=C5(),B=V4(),I=k4(),S=D4(),_1=O6;Z&&(J.mode&G0)!==t1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,X,w2,$);var J1=J.flags;switch(J.tag){case 0:case 11:case 15:O7(_,J,$,q,Z,X),Zz(J,G5);break;case 23:break;case 22:var i=J.stateNode;J.memoizedState!==null?i._visibility&w3?O7(_,J,$,q,Z,X):F_(_,J,$,q,X):(i._visibility|=w3,O7(_,J,$,q,Z,X)),Z&&J1&2048&&gG(J.alternate,J);break;case 24:O7(_,J,$,q,Z,X),Z&&J1&2048&&pG(J.alternate,J);break;default:O7(_,J,$,q,Z,X)}(J.mode&G0)!==t1&&0<=l1&&0<=r1&&(J2||0.05<t0)&&j4(J,l1,r1,t0,d0),S5(W),y4(B),d0=I,J2=S,O6=_1}function F_(_,J,$,q,Z){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 W=_,B=$,I=q,S=J!==null?J.actualStartTime:Z,_1=O6;(X.mode&G0)!==t1&&0<X.actualStartTime&&(X.flags&1)!==0&&H$(X,X.actualStartTime,S,w2,B);var J1=X.flags;switch(X.tag){case 22:F_(W,X,B,I,S),J1&2048&&gG(X.alternate,X);break;case 24:F_(W,X,B,I,S),J1&2048&&pG(X.alternate,X);break;default:F_(W,X,B,I,S)}O6=_1,X=J}}function I7(_,J,$){if(_.subtreeFlags&n_)for(_=_.child;_!==null;)Cz(_,J,$),_=_.sibling}function Cz(_,J,$){switch(_.tag){case 26:I7(_,J,$),_.flags&n_&&_.memoizedState!==null&&FP($,A4,_.memoizedState,_.memoizedProps);break;case 5:I7(_,J,$);break;case 3:case 4:var q=A4;A4=$Q(_.stateNode.containerInfo),I7(_,J,$),A4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=n_,n_=16777216,I7(_,J,$),n_=q):I7(_,J,$));break;default:I7(_,J,$)}}function Sz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function X_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],Z=C5();D2=q,vz(q,_),(q.mode&G0)!==t1&&0<=l1&&0<=r1&&0.05<r1-l1&&f4(q,l1,r1,"Unmount"),S5(Z)}Sz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)fz(_),_=_.sibling}function fz(_){var J=C5(),$=V4(),q=k4(),Z=D4();switch(_.tag){case 0:case 11:case 15:X_(_),_.flags&2048&&EG(_,_.return,G5|e5);break;case 3:var X=T3();X_(_),_.stateNode.passiveEffectDuration+=R$(X);break;case 12:X=T3(),X_(_),_.stateNode.passiveEffectDuration+=s9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&w3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~w3,s$(_),(_.mode&G0)!==t1&&0<=l1&&0<=r1&&0.05<r1-l1&&f4(_,l1,r1,"Disconnect")):X_(_);break;default:X_(_)}(_.mode&G0)!==t1&&0<=l1&&0<=r1&&(J2||0.05<t0)&&j4(_,l1,r1,t0,d0),S5(J),y4($),J2=Z,d0=q}function s$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],Z=C5();D2=q,vz(q,_),(q.mode&G0)!==t1&&0<=l1&&0<=r1&&0.05<r1-l1&&f4(q,l1,r1,"Unmount"),S5(Z)}Sz(_)}for(_=_.child;_!==null;)jz(_),_=_.sibling}function jz(_){var J=C5(),$=V4(),q=k4(),Z=D4();switch(_.tag){case 0:case 11:case 15:EG(_,_.return,G5),s$(_);break;case 22:var X=_.stateNode;X._visibility&w3&&(X._visibility&=~w3,s$(_));break;default:s$(_)}(_.mode&G0)!==t1&&0<=l1&&0<=r1&&(J2||0.05<t0)&&j4(_,l1,r1,t0,d0),S5(J),y4($),J2=Z,d0=q}function vz(_,J){for(;D2!==null;){var $=D2,q=$,Z=J,X=C5(),W=V4(),B=k4(),I=D4();switch(q.tag){case 0:case 11:case 15:EG(q,Z,G5);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(Z=q.memoizedState.cachePool.pool,Z!=null&&X8(Z));break;case 24:a9(q.memoizedState.cache)}if((q.mode&G0)!==t1&&0<=l1&&0<=r1&&(J2||0.05<t0)&&j4(q,l1,r1,t0,d0),S5(X),y4(W),J2=I,d0=B,q=$.child,q!==null)q.return=$,D2=q;else _:for($=_;D2!==null;){if(q=D2,X=q.sibling,W=q.return,Bz(q),q===$){D2=null;break _}if(X!==null){X.return=W,D2=X;break _}D2=W}}}function OI(){pN.forEach(function(_){return _()})}function Vz(){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 j5(_){if((O0&C2)!==u2&&F0!==0)return F0&-F0;var J=z1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),tG()):U1()}function yz(){if(T5===0)if((F0&536870912)===0||A0){var _=WQ;WQ<<=1,(WQ&3932160)===0&&(WQ=262144),T5=_}else T5=536870912;return _=u5.current,_!==null&&(_.flags|=32),T5}function _2(_,J,$){if(Z9&&console.error("useInsertionEffect must not schedule updates."),VF&&(eQ=!0),_===u0&&(v0===j8||v0===v8)||_.cancelPendingCommit!==null)N7(_,0),z6(_,F0,T5,!1);if(P2(_,$),(O0&C2)!==u2&&_===u0){if(d4)switch(J.tag){case 0:case 11:case 15:_=K0&&x(K0)||"Unknown",UA.has(_)||(UA.add(_),J=x(J)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",J,_,_));break;case 1:qA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),qA=!0)}}else r4&&H3(_,J,$),VI(J),_===u0&&((O0&C2)===u2&&(D6|=$),o0===V6&&z6(_,F0,T5,!1)),g4(_)}function kz(_,J,$){if((O0&(C2|E5))!==u2)throw Error("Should not already be working.");if(F0!==0&&K0!==null){var q=K0,Z=y2();switch(oL){case JJ:case j8:var X=h_;x0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,Z,d5,void 0,"primary-light")):console.timeStamp("Suspended",X,Z,d5,void 0,"primary-light"));break;case v8:X=h_,x0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,Z,d5,void 0,"primary-light")):console.timeStamp("Action",X,Z,d5,void 0,"primary-light"));break;default:x0&&(q=Z-h_,3>q||console.timeStamp("Blocked",h_,Z,d5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||v2(_,J))?PI(_,J):lG(_,J,!0);var W=$;do{if(X===b3){U9&&!$&&z6(_,J,0,!1),J=v0,h_=z2(),oL=J;break}else{if(q=y2(),Z=_.current.alternate,W&&!II(Z)){N5(J),Z=k2,X=q,!x0||X<=Z||(Z2?Z2.run(console.timeStamp.bind(console,"Teared Render",Z,X,W0,z0,"error")):console.timeStamp("Teared Render",Z,X,W0,z0,"error")),L8(J,q),X=lG(_,J,!1),W=!1;continue}if(X===f8){if(W=J,_.errorRecoveryDisabledLanes&W)var B=0;else B=_.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){N5(J),CU(k2,q,J,Z2),L8(J,q),J=B;_:{q=_,X=W,W=QJ;var I=q.current.memoizedState.isDehydrated;if(I&&(N7(q,B).flags|=256),B=lG(q,B,!1),B!==f8){if(PF&&!I){q.errorRecoveryDisabledLanes|=X,D6|=X,X=V6;break _}q=Z5,Z5=W,q!==null&&(Z5===null?Z5=q:Z5.push.apply(Z5,q))}X=B}if(W=!1,X!==f8)continue;else q=y2()}}if(X===_J){N5(J),CU(k2,q,J,Z2),L8(J,q),N7(_,0),z6(_,J,0,!0);break}_:{switch($=_,X){case b3:case _J:throw Error("Root did not complete. This is a bug in React.");case V6:if((J&4194048)!==J)break;case dQ:N5(J),kH(k2,q,J,Z2),L8(J,q),Z=J,(Z&127)!==0?vQ=q:(Z&4194048)!==0&&(VQ=q),z6($,J,T5,!y6);break _;case f8:Z5=null;break;case lQ:case dB:break;default:throw Error("Unknown root exit status.")}if(z1.actQueue!==null)dG($,Z,J,Z5,qJ,aQ,T5,D6,V8,X,null,null,k2,q);else{if((J&62914560)===J&&(W=sQ+aB-y2(),10<W)){if(z6($,J,T5,!y6),R2($,0,!0)!==0)break _;M4=J,$.timeoutHandle=zA(Dz.bind(null,$,Z,Z5,qJ,aQ,J,T5,D6,V8,y6,X,"Throttled",k2,q),W);break _}Dz($,Z,Z5,qJ,aQ,J,T5,D6,V8,y6,X,null,k2,q)}}}break}while(1);g4(_)}function Dz(_,J,$,q,Z,X,W,B,I,S,_1,J1,i,F1){_.timeoutHandle=b8;var C1=J.subtreeFlags,V1=null;if(C1&8192||(C1&16785408)===16785408){if(V1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:L3},Cz(J,X,V1),C1=(X&62914560)===X?sQ-y2():(X&4194048)===X?rB-y2():0,C1=XP(V1,C1),C1!==null){M4=X,_.cancelPendingCommit=C1(dG.bind(null,_,J,X,$,q,Z,W,B,I,_1,V1,V1.waitingForViewTransition?"Waiting for the previous Animation":0<V1.count?0<V1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":V1.imgCount===1?"Suspended on an Image":0<V1.imgCount?"Suspended on Images":null,i,F1)),z6(_,X,W,!S);return}}dG(_,J,X,$,q,Z,W,B,I,_1,V1,J1,i,F1)}function II(_){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 Z=$[q],X=Z.getSnapshot;Z=Z.value;try{if(!Q5(X(),Z))return!1}catch(W){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&=~NF,J&=~D6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var Z=J;0<Z;){var X=31-_5(Z),W=1<<X;q[X]=-1,Z&=~W}$!==0&&K5(_,$,J)}function P7(){return(O0&(C2|E5))===u2?(Y_(0,!1),!1):!0}function cG(){if(K0!==null){if(v0===M5)var _=K0.return;else _=K0,A$(),_G(_),t7=null,r_=0,_=K0;for(;_!==null;)Uz(_.alternate,_),_=_.return;K0=null}}function L8(_,J){(_&127)!==0&&(C6=J),(_&4194048)!==0&&(n4=J),(_&62914560)!==0&&(sL=J),(_&2080374784)!==0&&(tL=J)}function N7(_,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(),F0!==0&&0<$){if(N5(F0),o0===lQ||o0===V6)kH($,k2,J,Z2);else{var q=k2,Z=Z2;if(x0&&!(q<=$)){var X=(J&738197653)===J?"tertiary-dark":"primary-dark",W=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";Z?Z.run(console.timeStamp.bind(console,W,$,q,W0,z0,X)):console.timeStamp(W,$,q,W0,z0,X)}}L8(F0,k2)}if($=Z2,Z2=null,(J&127)!==0){Z2=u_,Z=0<=o4&&o4<C6?C6:o4,q=0<=R8&&R8<C6?C6:R8,X=0<=q?q:0<=Z?Z:k2,0<=vQ?(N5(2),DH(vQ,X,J,$)):(yQ&127)!==0&&(N5(2),i9(C6,X,V3)),$=Z;var B=q,I=b_,S=0<r7,_1=S6===D_,J1=S6===jQ;if(Z=k2,q=u_,X=$F,W=QF,x0){if(W0="Blocking",0<$?$>Z&&($=Z):$=Z,0<B?B>$&&(B=$):B=$,I!==null&&$>B){var i=S?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+I,B,$,W0,z0,i)):console.timeStamp(S?"Consecutive":"Event: "+I,B,$,W0,z0,i)}Z>$&&(B=_1?"error":(J&738197653)===J?"tertiary-light":"primary-light",_1=J1?"Promise Resolved":_1?"Cascading Update":5<Z-$?"Update Blocked":"Update",J1=[],W!=null&&J1.push(["Component name",W]),X!=null&&J1.push(["Method name",X]),$={start:$,end:Z,detail:{devtools:{properties:J1,track:W0,trackGroup:z0,color:B}}},q?q.run(performance.measure.bind(performance,_1,$)):performance.measure(_1,$))}o4=-1.1,S6=0,QF=$F=null,vQ=-1.1,r7=R8,R8=-1.1,C6=z2()}if((J&4194048)!==0&&(Z2=E_,Z=0<=v3&&v3<n4?n4:v3,$=0<=o5&&o5<n4?n4:o5,q=0<=f6&&f6<n4?n4:f6,X=0<=q?q:0<=$?$:k2,0<=VQ?(N5(256),DH(VQ,X,J,Z2)):(yQ&4194048)!==0&&(N5(256),i9(n4,X,V3)),J1=q,B=O8,I=0<j6,S=qF===jQ,X=k2,q=E_,W=rL,_1=aL,x0&&(W0="Transition",0<$?$>X&&($=X):$=X,0<Z?Z>$&&(Z=$):Z=$,0<J1?J1>Z&&(J1=Z):J1=Z,Z>J1&&B!==null&&(i=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+B,J1,Z,W0,z0,i)):console.timeStamp(I?"Consecutive":"Event: "+B,J1,Z,W0,z0,i)),$>Z&&(q?q.run(console.timeStamp.bind(console,"Action",Z,$,W0,z0,"primary-dark")):console.timeStamp("Action",Z,$,W0,z0,"primary-dark")),X>$&&(Z=S?"Promise Resolved":5<X-$?"Update Blocked":"Update",J1=[],_1!=null&&J1.push(["Component name",_1]),W!=null&&J1.push(["Method name",W]),$={start:$,end:X,detail:{devtools:{properties:J1,track:W0,trackGroup:z0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,Z,$)):performance.measure(Z,$))),o5=v3=-1.1,qF=0,VQ=-1.1,j6=f6,f6=-1.1,n4=z2()),(J&62914560)!==0&&(yQ&62914560)!==0&&(N5(4194304),i9(sL,k2,V3)),(J&2080374784)!==0&&(yQ&2080374784)!==0&&(N5(268435456),i9(tL,k2,V3)),$=_.timeoutHandle,$!==b8&&(_.timeoutHandle=b8,Jw($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),M4=0,cG(),u0=_,K0=$=B3(_.current,null),F0=J,v0=M5,h5=null,y6=!1,U9=v2(_,J),PF=!1,o0=b3,V8=T5=NF=D6=k6=0,Z5=QJ=null,aQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)Z=31-_5(q),X=1<<Z,J|=_[Z],q&=~X;return _3=J,Y$(),_=gL(),1000<_-mL&&(z1.recentlyCreatedOwnerStacks=0,mL=_),L4.discardPendingWarnings(),$}function uz(_,J){n1=null,z1.H=o_,z1.getCurrentStack=null,d4=!1,y5=null,J===s7||J===bQ?(J=$Y(),v0=JJ):J===FF?(J=$Y(),v0=iB):v0=J===MF?IF:J!==null&&typeof J==="object"&&typeof J.then==="function"?$J:iQ,h5=J;var $=K0;$===null?(o0=_J,p$(_,w5(J,_.current))):$.mode&G0&&gU($)}function bz(){var _=u5.current;return _===null?!0:(F0&4194048)===F0?n5===null?!0:!1:(F0&62914560)===F0||(F0&536870912)!==0?_===n5:!1}function Ez(){var _=z1.H;return z1.H=o_,_===null?o_:_}function hz(){var _=z1.A;return z1.A=gN,_}function t$(_){Z2===null&&(Z2=_._debugTask==null?null:_._debugTask)}function o$(){o0=V6,y6||(F0&4194048)!==F0&&u5.current!==null||(U9=!0),(k6&134217727)===0&&(D6&134217727)===0||u0===null||z6(u0,F0,T5,!1)}function lG(_,J,$){var q=O0;O0|=C2;var Z=Ez(),X=hz();if(u0!==_||F0!==J){if(r4){var W=_.memoizedUpdaters;0<W.size&&(H_(_,F0),W.clear()),I5(_,J)}qJ=null,N7(_,J)}J=!1,W=o0;_:do try{if(v0!==M5&&K0!==null){var B=K0,I=h5;switch(v0){case IF:cG(),W=dQ;break _;case JJ:case j8:case v8:case $J:u5.current===null&&(J=!0);var S=v0;if(v0=M5,h5=null,w7(_,B,I,S),$&&U9){W=b3;break _}break;default:S=v0,v0=M5,h5=null,w7(_,B,I,S)}}xz(),W=o0;break}catch(_1){uz(_,_1)}while(1);return J&&_.shellSuspendCounter++,A$(),O0=q,z1.H=Z,z1.A=X,K0===null&&(u0=null,F0=0,Y$()),W}function xz(){for(;K0!==null;)mz(K0)}function PI(_,J){var $=O0;O0|=C2;var q=Ez(),Z=hz();if(u0!==_||F0!==J){if(r4){var X=_.memoizedUpdaters;0<X.size&&(H_(_,F0),X.clear()),I5(_,J)}qJ=null,tQ=y2()+sB,N7(_,J)}else U9=v2(_,J);_:do try{if(v0!==M5&&K0!==null)J:switch(J=K0,X=h5,v0){case iQ:v0=M5,h5=null,w7(_,J,X,iQ);break;case j8:case v8:if(_Y(X)){v0=M5,h5=null,gz(J);break}J=function(){v0!==j8&&v0!==v8||u0!==_||(v0=rQ),g4(_)},X.then(J,J);break _;case JJ:v0=rQ;break _;case iB:v0=OF;break _;case rQ:_Y(X)?(v0=M5,h5=null,gz(J)):(v0=M5,h5=null,w7(_,J,X,rQ));break;case OF:var W=null;switch(K0.tag){case 26:W=K0.memoizedState;case 5:case 27:var B=K0;if(W?kW(W):B.stateNode.complete){v0=M5,h5=null;var I=B.sibling;if(I!==null)K0=I;else{var S=B.return;S!==null?(K0=S,n$(S)):K0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}v0=M5,h5=null,w7(_,J,X,OF);break;case $J:v0=M5,h5=null,w7(_,J,X,$J);break;case IF:cG(),o0=dQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}z1.actQueue!==null?xz():NI();break}catch(_1){uz(_,_1)}while(1);if(A$(),z1.H=q,z1.A=Z,O0=$,K0!==null)return b3;return u0=null,F0=0,Y$(),o0}function NI(){for(;K0!==null&&!IP();)mz(K0)}function mz(_){var J=_.alternate;(_.mode&G0)!==t1?(mU(_),J=H1(_,DG,J,_,_3),gU(_)):J=H1(_,DG,J,_,_3),_.memoizedProps=_.pendingProps,J===null?n$(_):K0=J}function gz(_){var J=H1(_,wI,_);_.memoizedProps=_.pendingProps,J===null?n$(_):K0=J}function wI(_){var J=_.alternate,$=(_.mode&G0)!==t1;switch($&&mU(_),_.tag){case 15:case 0:J=nY(J,_,_.pendingProps,_.type,void 0,F0);break;case 11:J=nY(J,_,_.pendingProps,_.type.render,_.ref,F0);break;case 5:_G(_);default:Uz(J,_),_=K0=mH(_,_3),J=DG(J,_,_3)}return $&&gU(_),J}function w7(_,J,$,q){A$(),_G(J),t7=null,r_=0;var Z=J.return;try{if(XI(_,Z,J,$,F0)){o0=_J,p$(_,w5($,_.current)),K0=null;return}}catch(X){if(Z!==null)throw K0=Z,X;o0=_J,p$(_,w5($,_.current)),K0=null;return}if(J.flags&32768){if(A0||q===iQ)_=!0;else if(U9||(F0&536870912)!==0)_=!1;else if(y6=_=!0,q===j8||q===v8||q===JJ||q===$J)q=u5.current,q!==null&&q.tag===13&&(q.flags|=16384);pz(J,_)}else n$(J)}function n$(_){var J=_;do{if((J.flags&32768)!==0){pz(J,y6);return}var $=J.alternate;if(_=J.return,mU(J),$=H1(J,YI,$,J,_3),(J.mode&G0)!==t1&&sH(J),$!==null){K0=$;return}if(J=J.sibling,J!==null){K0=J;return}K0=J=_}while(J!==null);o0===b3&&(o0=dB)}function pz(_,J){do{var $=zI(_.alternate,_);if($!==null){$.flags&=32767,K0=$;return}if((_.mode&G0)!==t1){sH(_),$=_.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);o0=dQ,K0=null}function dG(_,J,$,q,Z,X,W,B,I,S,_1,J1,i,F1){_.cancelPendingCommit=null;do K_();while(M2!==b6);if(L4.flushLegacyContextWarning(),L4.flushPendingUnsafeLifecycleWarnings(),(O0&(C2|E5))!==u2)throw Error("Should not already be working.");if(N5($),S===f8?CU(i,F1,$,Z2):q!==null?tO(i,F1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,Z2):sO(i,F1,$,Z2),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|=oZ,F4(_,$,X,W,B,I),_===u0&&(K0=u0=null,F0=0),G9=J,E6=_,M4=$,SF=X,jF=Z,JA=q,fF=F1,$A=J1,T4=oQ,QA=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,vI(V7,function(){return KJ=window.event,T4===oQ&&(T4=CF),rz(),null})):(_.callbackNode=null,_.callbackPriority=0),j3=null,w6=z2(),J1!==null&&oO(F1,w6,J1,Z2),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=z1.T,z1.T=null,Z=C0.p,C0.p=k5,W=O0,O0|=E5;try{TI(_,J,$)}finally{O0=W,C0.p=Z,z1.T=q}}M2=oB,cz(),lz(),dz()}}function cz(){if(M2===oB){M2=b6;var _=E6,J=G9,$=M4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=z1.T,z1.T=null;var Z=C0.p;C0.p=k5;var X=O0;O0|=E5;try{Q9=$,q9=_,O$(),Rz(J,_),q9=Q9=null,$=mF;var W=vH(_.containerInfo),B=$.focusedElem,I=$.selectionRange;if(W!==B&&B&&B.ownerDocument&&jH(B.ownerDocument.documentElement,B)){if(I!==null&&PU(B)){var{start:S,end:_1}=I;if(_1===void 0&&(_1=S),"selectionStart"in B)B.selectionStart=S,B.selectionEnd=Math.min(_1,B.value.length);else{var J1=B.ownerDocument||document,i=J1&&J1.defaultView||window;if(i.getSelection){var F1=i.getSelection(),C1=B.textContent.length,V1=Math.min(I.start,C1),h0=I.end===void 0?V1:Math.min(I.end,C1);!F1.extend&&V1>h0&&(W=h0,h0=V1,V1=W);var T0=fH(B,V1),d=fH(B,h0);if(T0&&d&&(F1.rangeCount!==1||F1.anchorNode!==T0.node||F1.anchorOffset!==T0.offset||F1.focusNode!==d.node||F1.focusOffset!==d.offset)){var r=J1.createRange();r.setStart(T0.node,T0.offset),F1.removeAllRanges(),V1>h0?(F1.addRange(r),F1.extend(d.node,d.offset)):(r.setEnd(d.node,d.offset),F1.addRange(r))}}}}J1=[];for(F1=B;F1=F1.parentNode;)F1.nodeType===1&&J1.push({element:F1,left:F1.scrollLeft,top:F1.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<J1.length;B++){var e=J1[B];e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}zq=!!xF,mF=xF=null}finally{O0=X,C0.p=Z,z1.T=q}}_.current=J,M2=nB}}function lz(){if(M2===nB){M2=b6;var _=QA;if(_!==null){w6=z2();var J=f3,$=w6;!x0||$<=J||(V3?V3.run(console.timeStamp.bind(console,_,J,$,W0,z0,"secondary-light")):console.timeStamp(_,J,$,W0,z0,"secondary-light"))}_=E6,J=G9,$=M4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=z1.T,z1.T=null;var Z=C0.p;C0.p=k5;var X=O0;O0|=E5;try{Q9=$,q9=_,O$(),Lz(_,J.alternate,J),q9=Q9=null}finally{O0=X,C0.p=Z,z1.T=q}}_=fF,J=$A,f3=z2(),_=J===null?_:w6,J=f3,$=T4===wF,q=Z2,j3!==null?uH(_,J,j3,!1,q):!x0||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")),M2=eB}}function dz(){if(M2===_A||M2===eB){if(M2===_A){var _=f3;f3=z2();var J=f3,$=T4===wF;!x0||J<=_||(V3?V3.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")),T4!==wF&&(T4=tB)}M2=b6,PP(),_=E6;var q=G9;J=M4,$=JA;var Z=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;Z?M2=nQ:(M2=b6,G9=E6=null,iz(_,_.pendingLanes),y8=0,GJ=null);var X=_.pendingLanes;if(X===0&&(u6=null),Z||oz(_),X=V(J),q=q.stateNode,i2&&typeof i2.onCommitFiberRoot==="function")try{var W=(q.current.flags&128)===128;switch(X){case k5:var B=jZ;break;case z4:B=vZ;break;case a4:B=V7;break;case BQ:B=VZ;break;default:B=V7}i2.onCommitFiberRoot(y7,q,B,W)}catch(J1){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",J1))}if(r4&&_.memoizedUpdaters.clear(),OI(),$!==null){W=z1.T,B=C0.p,C0.p=k5,z1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var S=$[q],_1=CI(S.stack);H1(S.source,I,S.value,_1)}}finally{z1.T=W,C0.p=B}}(M4&3)!==0&&K_(),g4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(DQ=!0,_===vF?UJ++:(UJ=0,vF=_)):UJ=0,Z||L8(J,f3),Y_(0,!1)}}function CI(_){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 iz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,a9(J)))}function K_(){return cz(),lz(),dz(),rz()}function rz(){if(M2!==nQ)return!1;var _=E6,J=SF;SF=0;var $=V(M4),q=a4===0||a4>$?a4:$;$=z1.T;var Z=C0.p;try{C0.p=q,z1.T=null;var X=jF;jF=null,q=E6;var W=M4;if(M2=b6,G9=E6=null,M4=0,(O0&(C2|E5))!==u2)throw Error("Cannot flush passive effects while already rendering.");N5(W),VF=!0,eQ=!1;var B=0;if(j3=null,B=y2(),T4===tB)i9(f3,B,V3);else{var I=f3,S=B,_1=T4===CF;!x0||S<=I||(Z2?Z2.run(console.timeStamp.bind(console,_1?"Waiting for Paint":"Waiting",I,S,W0,z0,"secondary-light")):console.timeStamp(_1?"Waiting for Paint":"Waiting",I,S,W0,z0,"secondary-light"))}I=O0,O0|=E5;var J1=q.current;O$(),fz(J1);var i=q.current;J1=fF,O$(),Nz(q,i,W,X,J1),oz(q),O0=I;var F1=y2();if(i=B,J1=Z2,j3!==null?uH(i,F1,j3,!0,J1):!x0||F1<=i||(J1?J1.run(console.timeStamp.bind(console,"Remaining Effects",i,F1,W0,z0,"secondary-dark")):console.timeStamp("Remaining Effects",i,F1,W0,z0,"secondary-dark")),L8(W,F1),Y_(0,!1),eQ?q===GJ?y8++:(y8=0,GJ=q):y8=0,eQ=VF=!1,i2&&typeof i2.onPostCommitFiberRoot==="function")try{i2.onPostCommitFiberRoot(y7,q)}catch(V1){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",V1))}var C1=q.current.stateNode;return C1.effectDuration=0,C1.passiveEffectDuration=0,!0}finally{C0.p=Z,z1.T=$,iz(_,J)}}function az(_,J,$){J=w5($,J),tH(J),J=PG(_.stateNode,J,2),_=X6(_,J,2),_!==null&&(P2(_,2),g4(_))}function w0(_,J,$){if(Z9=!1,_.tag===3)az(_,_,$);else{for(;J!==null;){if(J.tag===3){az(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(u6===null||!u6.has(q))){_=w5($,_),tH(_),$=NG(2),q=X6(J,$,2),q!==null&&(wG($,q,J,_),P2(q,2),g4(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 iG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new cN;var Z=new Set;q.set(J,Z)}else Z=q.get(J),Z===void 0&&(Z=new Set,q.set(J,Z));Z.has($)||(PF=!0,Z.add($),q=SI.bind(null,_,J,$),i4&&K_(_,$),J.then(q,q))}function SI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>t4&&(N6=t4=W2(),D_=fQ("Promise Resolved"),w6=jQ):($&4194048)!==0&&0>s5&&(o4=s5=W2(),b_=fQ("Promise Resolved"),qF=jQ),Vz()&&W1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,$)}}function iG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new cN;var Z=new Set;q.set(J,Z)}else Z=q.get(J),Z===void 0&&(Z=new Set,q.set(J,Z));Z.has($)||(PF=!0,Z.add($),q=SI.bind(null,_,J,$),r4&&H_(_,$),J.then(q,q))}function SI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>o4&&(C6=o4=z2(),u_=fQ("Promise Resolved"),S6=jQ):($&4194048)!==0&&0>o5&&(n4=o5=z2(),E_=fQ("Promise Resolved"),qF=jQ),Vz()&&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`),b0===_&&(F0&$)===$&&(o0===j6||o0===lQ&&(F0&62914560)===F0&&D2()-sQ<aB?(O0&j2)===E2&&P7(_,0):NF|=$,v8===F0&&(v8=0)),m4(_)}function sz(_,J){J===0&&(J=P2()),_=d2(_,J),_!==null&&(w2(_,J),m4(_))}function fI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),sz(_,$)}function jI(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:Z}=_;Z!==null&&($=Z.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),sz(_,$)}function rG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,Z=J,X=Z.type===KQ;X=$||X,Z.tag!==22?Z.flags&67108864?X&&L1(Z,tz,q,Z):rG(q,Z,X):Z.memoizedState===null&&(X&&Z.flags&8192?L1(Z,tz,q,Z):Z.subtreeFlags&67108864&&L1(Z,rG,q,Z,X)),J=J.sibling}}function tz(_,J){J0(!0);try{Iz(J),jz(J),Pz(_,J.alternate,J,!1),wz(_,J,0,null,!1,0)}finally{J0(!1)}}function oz(_){var J=!0;_.current.mode&(r2|z4)||(J=!1),rG(_,_.current,J)}function nz(_){if((O0&j2)===E2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=g(_)||"ReactComponent",_q!==null){if(_q.has(J))return;_q.add(J)}else _q=new Set([J]);L1(_,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 K_(_,J){i4&&_.memoizedUpdaters.forEach(function($){w4(_,$,J)})}function vI(_,J){var $=W1.actQueue;return $!==null?($.push(J),iN):fZ(_,J)}function VI(_){Vz()&&W1.actQueue===null&&L1(_,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`),u0===_&&(F0&$)===$&&(o0===V6||o0===lQ&&(F0&62914560)===F0&&y2()-sQ<aB?(O0&C2)===u2&&N7(_,0):NF|=$,V8===F0&&(V8=0)),g4(_)}function sz(_,J){J===0&&(J=q2()),_=d2(_,J),_!==null&&(P2(_,J),g4(_))}function fI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),sz(_,$)}function jI(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:Z}=_;Z!==null&&($=Z.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),sz(_,$)}function rG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,Z=J,X=Z.type===KQ;X=$||X,Z.tag!==22?Z.flags&67108864?X&&H1(Z,tz,q,Z):rG(q,Z,X):Z.memoizedState===null&&(X&&Z.flags&8192?H1(Z,tz,q,Z):Z.subtreeFlags&67108864&&H1(Z,rG,q,Z,X)),J=J.sibling}}function tz(_,J){$0(!0);try{Iz(J),jz(J),Pz(_,J.alternate,J,!1),wz(_,J,0,null,!1,0)}finally{$0(!1)}}function oz(_){var J=!0;_.current.mode&(r2|W4)||(J=!1),rG(_,_.current,J)}function nz(_){if((O0&C2)===u2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=x(_)||"ReactComponent",_q!==null){if(_q.has(J))return;_q.add(J)}else _q=new Set([J]);H1(_,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 H_(_,J){r4&&_.memoizedUpdaters.forEach(function($){H3(_,$,J)})}function vI(_,J){var $=z1.actQueue;return $!==null?($.push(J),iN):fZ(_,J)}function VI(_){Vz()&&z1.actQueue===null&&H1(_,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`,g(_))})}function m4(_){_!==Z9&&_.next===null&&(Z9===null?Jq=Z9=_:Z9=Z9.next=_),$q=!0,W1.actQueue!==null?kF||(kF=!0,$W()):yF||(yF=!0,$W())}function H_(_,J){if(!DF&&$q){DF=!0;do{var $=!1;for(var q=Jq;q!==null;){if(!J)if(_!==0){var Z=q.pendingLanes;if(Z===0)var X=0;else{var{suspendedLanes:W,pingedLanes:B}=q;X=(1<<31-_5(42|_)+1)-1,X&=Z&~(W&~B),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,JW(q,X))}else X=F0,X=y2(q,q===b0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==u8),(X&3)===0||I2(q,X)||($=!0,JW(q,X));q=q.next}}while($);DF=!1}}function yI(){XJ=window.event,aG()}function aG(){$q=kF=yF=!1;var _=0;b6!==0&&xI()&&(_=b6);for(var J=D2(),$=null,q=Jq;q!==null;){var Z=q.next,X=ez(q,J);if(X===0)q.next=null,$===null?Jq=Z:$.next=Z,Z===null&&(Z9=$);else if($=q,_!==0||(X&3)!==0)$q=!0;q=Z}T2!==D6&&T2!==nQ||H_(_,!1),b6!==0&&(b6=0)}function ez(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:Z}=_,X=_.pendingLanes&-62914561;0<X;){var W=31-_5(X),B=1<<W,I=Z[W];if(I===-1){if((B&$)===0||(B&q)!==0)Z[W]=Z2(B,J)}else I<=J&&(_.expiredLanes|=B);X&=~B}if(J=b0,$=F0,$=y2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==u8),q=_.callbackNode,$===0||_===J&&(v0===f8||v0===j8)||_.cancelPendingCommit!==null)return q!==null&&sG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||I2(_,$)){if(J=$&-$,J!==_.callbackPriority||W1.actQueue!==null&&q!==uF)sG(q);else return J;switch(V($)){case y5:case Y4:$=vZ;break;case r4:$=v7;break;case BQ:$=VZ;break;default:$=v7}return q=_W.bind(null,_),W1.actQueue!==null?(W1.actQueue.push(q),$=uF):$=fZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&sG(q),_.callbackPriority=2,_.callbackNode=null,2}function _W(_,J){if(DQ=kQ=!1,XJ=window.event,T2!==D6&&T2!==nQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(M4===oQ&&(M4=CF),X_()&&_.callbackNode!==$)return null;var q=F0;if(q=y2(_,_===b0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==u8),q===0)return null;return kz(_,q,J),ez(_,D2()),_.callbackNode!=null&&_.callbackNode===$?_W.bind(null,_):null}function JW(_,J){if(X_())return null;kQ=DQ,DQ=!1,kz(_,J,!0)}function sG(_){_!==uF&&_!==null&&OP(_)}function $W(){W1.actQueue!==null&&W1.actQueue.push(function(){return aG(),null}),$w(function(){(O0&(j2|b5))!==E2?fZ(jZ,yI):aG()})}function tG(){if(b6===0){var _=O8;_===0&&(_=zQ,zQ<<=1,(zQ&261888)===0&&(zQ=256)),b6=_}return b6}function QW(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return A1(_,"action"),p9(""+_)}function qW(_,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 kI(_,J,$,q,Z){if(J==="submit"&&$&&$.stateNode===Z){var X=QW((Z[J5]||null).action),W=q.submitter;W&&(J=(J=W[J5]||null)?QW(J.formAction):W.getAttribute("formAction"),J!==null&&(X=J,W=null));var B=new OQ("action","action",null,q,Z);_.push({event:B,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(b6!==0){var I=W?qW(Z,W):new FormData(Z),S={pending:!0,data:I,method:Z.method,action:X};Object.freeze(S),BG($,S,null,I)}}else typeof X==="function"&&(B.preventDefault(),I=W?qW(Z,W):new FormData(Z),S={pending:!0,data:I,method:Z.method,action:X},Object.freeze(S),BG($,S,X,I))},currentTarget:Z}]})}}function e$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){rZ(q)}_.currentTarget=null}function UW(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var Z=void 0,X=q.event;if(q=q.listeners,J)for(var W=q.length-1;0<=W;W--){var B=q[W],I=B.instance,S=B.currentTarget;if(B=B.listener,I!==Z&&X.isPropagationStopped())break _;I!==null?L1(I,e$,X,B,S):e$(X,B,S),Z=I}else for(W=0;W<q.length;W++){if(B=q[W],I=B.instance,S=B.currentTarget,B=B.listener,I!==Z&&X.isPropagationStopped())break _;I!==null?L1(I,e$,X,B,S):e$(X,B,S),Z=I}}}}function M0(_,J){bF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[yZ];$===void 0&&($=J[yZ]=new Set);var q=_+"__bubble";$.has(q)||(GW(J,_,2,!1),$.add(q))}function oG(_,J,$){bF.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),GW($,_,q,J)}function nG(_){if(!_[Qq]){_[Qq]=!0,$L.forEach(function($){$!=="selectionchange"&&(bF.has($)||oG($,!1,_),oG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[Qq]||(J[Qq]=!0,oG("selectionchange",!1,J))}}function GW(_,J,$,q){switch(xW(J)){case y5:var Z=zP;break;case Y4:Z=WP;break;default:Z=WZ}$=Z.bind(null,J,$,_),Z=void 0,!EZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(Z=!0),q?Z!==void 0?_.addEventListener(J,$,{capture:!0,passive:Z}):_.addEventListener(J,$,!0):Z!==void 0?_.addEventListener(J,$,{passive:Z}):_.addEventListener(J,$,!1)}function eG(_,J,$,q,Z){var X=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var W=q.tag;if(W===3||W===4){var B=q.stateNode.containerInfo;if(B===Z)break;if(W===4)for(W=q.return;W!==null;){var I=W.tag;if((I===3||I===4)&&W.stateNode.containerInfo===Z)return;W=W.return}for(;B!==null;){if(W=y1(B),W===null)return;if(I=W.tag,I===5||I===6||I===26||I===27){q=X=W;continue _}B=B.parentNode}}q=q.return}AH(function(){var S=X,_1=OU($),J1=[];_:{var i=xL.get(_);if(i!==void 0){var F1=OQ,N1=_;switch(_){case"keypress":if(Z$($)===0)break _;case"keydown":case"keyup":F1=FN;break;case"focusin":N1="focus",F1=gZ;break;case"focusout":N1="blur",F1=gZ;break;case"beforeblur":case"afterblur":F1=gZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F1=wL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F1=tP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F1=HN;break;case uL:case bL:case EL:F1=eP;break;case hL:F1=zN;break;case"scroll":case"scrollend":F1=aP;break;case"wheel":F1=LN;break;case"copy":case"cut":case"paste":F1=JN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F1=SL;break;case"toggle":case"beforetoggle":F1=AN}var v1=(J&4)!==0,m0=!v1&&(_==="scroll"||_==="scrollend"),T0=v1?i!==null?i+"Capture":null:i;v1=[];for(var d=S,r;d!==null;){var n=d;if(r=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||r===null||T0===null||(n=c9(d,T0),n!=null&&v1.push(Y_(d,n,r))),m0)break;d=d.return}0<v1.length&&(i=new F1(i,N1,null,$,_1),J1.push({event:i,listeners:v1}))}}if((J&7)===0){_:{if(i=_==="mouseover"||_==="pointerover",F1=_==="mouseout"||_==="pointerout",i&&$!==P_&&(N1=$.relatedTarget||$.fromElement)&&(y1(N1)||N1[A6]))break _;if(F1||i){if(i=_1.window===_1?_1:(i=_1.ownerDocument)?i.defaultView||i.parentWindow:window,F1){if(N1=$.relatedTarget||$.toElement,F1=S,N1=N1?y1(N1):null,N1!==null&&(m0=w(N1),v1=N1.tag,N1!==m0||v1!==5&&v1!==27&&v1!==6))N1=null}else F1=null,N1=S;if(F1!==N1){if(v1=wL,n="onMouseLeave",T0="onMouseEnter",d="mouse",_==="pointerout"||_==="pointerover")v1=SL,n="onPointerLeave",T0="onPointerEnter",d="pointer";if(m0=F1==null?i:a1(F1),r=N1==null?i:a1(N1),i=new v1(n,d+"leave",F1,$,_1),i.target=m0,i.relatedTarget=r,n=null,y1(_1)===S&&(v1=new v1(T0,d+"enter",N1,$,_1),v1.target=r,v1.relatedTarget=m0,n=v1),m0=n,F1&&N1)J:{v1=DI,T0=F1,d=N1,r=0;for(n=T0;n;n=v1(n))r++;n=0;for(var M1=d;M1;M1=v1(M1))n++;for(;0<r-n;)T0=v1(T0),r--;for(;0<n-r;)d=v1(d),n--;for(;r--;){if(T0===d||d!==null&&T0===d.alternate){v1=T0;break J}T0=v1(T0),d=v1(d)}v1=null}else v1=null;F1!==null&&ZW(J1,i,F1,v1,!1),N1!==null&&m0!==null&&ZW(J1,m0,N1,v1,!0)}}}_:{if(i=S?a1(S):window,F1=i.nodeName&&i.nodeName.toLowerCase(),F1==="select"||F1==="input"&&i.type==="file")var f1=NH;else if(IH(i))if(kL)f1=iO;else{f1=lO;var n1=cO}else F1=i.nodeName,!F1||F1.toLowerCase()!=="input"||i.type!=="checkbox"&&i.type!=="radio"?S&&g9(S.elementType)&&(f1=NH):f1=dO;if(f1&&(f1=f1(_,S))){PH(J1,f1,$,_1);break _}n1&&n1(_,i,S),_==="focusout"&&S&&i.type==="number"&&S.memoizedProps.value!=null&&h0(i,"number",i.value)}switch(n1=S?a1(S):window,_){case"focusin":if(IH(n1)||n1.contentEditable==="true")h7=n1,cZ=S,v_=null;break;case"focusout":v_=cZ=h7=null;break;case"mousedown":lZ=!0;break;case"contextmenu":case"mouseup":case"dragend":lZ=!1,VH(J1,$,_1);break;case"selectionchange":if(ON)break;case"keydown":case"keyup":VH(J1,$,_1)}var p1;if(pZ)_:{switch(_){case"compositionstart":var m1="onCompositionStart";break _;case"compositionend":m1="onCompositionEnd";break _;case"compositionupdate":m1="onCompositionUpdate";break _}m1=void 0}else E7?RH(_,$)&&(m1="onCompositionEnd"):_==="keydown"&&$.keyCode===fL&&(m1="onCompositionStart");if(m1&&(jL&&$.locale!=="ko"&&(E7||m1!=="onCompositionStart"?m1==="onCompositionEnd"&&E7&&(p1=MH()):(M6=_1,hZ=("value"in M6)?M6.value:M6.textContent,E7=!0)),n1=_Q(S,m1),0<n1.length&&(m1=new CL(m1,_,null,$,_1),J1.push({event:m1,listeners:n1}),p1?m1.data=p1:(p1=OH($),p1!==null&&(m1.data=p1)))),p1=TN?xO(_,$):mO(_,$))m1=_Q(S,"onBeforeInput"),0<m1.length&&(n1=new QN("onBeforeInput","beforeinput",null,$,_1),J1.push({event:n1,listeners:m1}),n1.data=p1);kI(J1,_,S,$,_1)}UW(J1,J)})}function Y_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function _Q(_,J){for(var $=J+"Capture",q=[];_!==null;){var Z=_,X=Z.stateNode;if(Z=Z.tag,Z!==5&&Z!==26&&Z!==27||X===null||(Z=c9(_,$),Z!=null&&q.unshift(Y_(_,Z,X)),Z=c9(_,J),Z!=null&&q.push(Y_(_,Z,X))),_.tag===3)return q;_=_.return}return[]}function DI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function ZW(_,J,$,q,Z){for(var X=J._reactName,W=[];$!==null&&$!==q;){var B=$,I=B.alternate,S=B.stateNode;if(B=B.tag,I!==null&&I===q)break;B!==5&&B!==26&&B!==27||S===null||(I=S,Z?(S=c9($,X),S!=null&&W.unshift(Y_($,S,I))):Z||(S=c9($,X),S!=null&&W.push(Y_($,S,I)))),$=$.return}W.length!==0&&_.push({event:J,listeners:W})}function _Z(_,J){uO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||PL||(PL=!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:L8,possibleRegistrationNames:kZ};g9(_)||typeof J.is==="string"||EO(_,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 k2(_,J,$,q){J!==$&&($=Y6($),Y6(J)!==$&&(q[_]=J))}function uI(_,J,$){J.forEach(function(q){$[KW(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 FW(_,J){return _=_.namespaceURI===MQ||_.namespaceURI===k7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function Y6(_){return l1(_)&&(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(_)),h1(_)),(typeof _==="string"?_:""+_).replace(rN,`
176
- `).replace(aN,"")}function XW(_,J){return J=Y6(J),Y6(_)===J?!0:!1}function D0(_,J,$,q,Z,X){switch($){case"children":if(typeof q==="string")J6(q,J,!1),J==="body"||J==="textarea"&&q===""||_8(_,q);else if(typeof q==="number"||typeof q==="bigint")J6(""+q,J,!1),J!=="body"&&_8(_,""+q);break;case"className":t3(_,"class",q);break;case"tabIndex":t3(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":t3(_,$,q);break;case"style":WH(_,q,X);break;case"data":if(J!=="object"){t3(_,"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=p9(""+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"&&(Z.encType==null&&Z.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.")),Z.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"||Z.type==="submit"||Z.type==="image"||qq?J!=="button"||Z.type==null||Z.type==="submit"||qq?typeof q==="function"&&(Z.name==null||FA||(FA=!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.')),Z.formEncType==null&&Z.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.")),Z.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",Z.name,Z,null),D0(_,J,"formEncType",Z.formEncType,Z,null),D0(_,J,"formMethod",Z.formMethod,Z,null),D0(_,J,"formTarget",Z.formTarget,Z,null)):(D0(_,J,"encType",Z.encType,Z,null),D0(_,J,"method",Z.method,Z,null),D0(_,J,"target",Z.target,Z,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}A1(q,$),q=p9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&g4($,q),_.onclick=H3);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(Z.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,$),$=p9(""+q),_.setAttributeNS(y8,"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",_),s3(_,"popover",q);break;case"xlinkActuate":t(_,y8,"xlink:actuate",q);break;case"xlinkArcrole":t(_,y8,"xlink:arcrole",q);break;case"xlinkRole":t(_,y8,"xlink:role",q);break;case"xlinkShow":t(_,y8,"xlink:show",q);break;case"xlinkTitle":t(_,y8,"xlink:title",q);break;case"xlinkType":t(_,y8,"xlink:type",q);break;case"xmlBase":t(_,EF,"xml:base",q);break;case"xmlLang":t(_,EF,"xml:lang",q);break;case"xmlSpace":t(_,EF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),s3(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":XA||q==null||typeof q!=="object"||(XA=!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"?($=LH($),s3(_,$,q)):L8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&g4($,q)}}function JZ(_,J,$,q,Z,X){switch($){case"style":WH(_,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(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?_8(_,q):(typeof q==="number"||typeof q==="bigint")&&_8(_,""+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=H3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(L8.hasOwnProperty($))q!=null&&typeof q!=="function"&&g4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(Z=$.endsWith("Capture"),J=$.slice(2,Z?$.length-7:void 0),X=_[J5]||null,X=X!=null?X[$]:null,typeof X==="function"&&_.removeEventListener(J,X,Z),typeof q==="function")){typeof X!=="function"&&X!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,Z);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):s3(_,$,q)}}}function g2(_,J,$){switch(_Z(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,Z=!1,X;for(X in $)if($.hasOwnProperty(X)){var W=$[X];if(W!=null)switch(X){case"src":q=!0;break;case"srcSet":Z=!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,W,$,null)}}Z&&D0(_,J,"srcSet",$.srcSet,$,null),q&&D0(_,J,"src",$.src,$,null);return;case"input":I5("input",$),M0("invalid",_);var B=X=W=Z=null,I=null,S=null;for(q in $)if($.hasOwnProperty(q)){var _1=$[q];if(_1!=null)switch(q){case"name":Z=_1;break;case"type":W=_1;break;case"checked":I=_1;break;case"defaultChecked":S=_1;break;case"value":X=_1;break;case"defaultValue":B=_1;break;case"children":case"dangerouslySetInnerHTML":if(_1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:D0(_,J,q,_1,$,null)}}q0(_,$),$0(_,X,B,I,S,W,Z,!1);return;case"select":I5("select",$),M0("invalid",_),q=W=X=null;for(Z in $)if($.hasOwnProperty(Z)&&(B=$[Z],B!=null))switch(Z){case"value":X=B;break;case"defaultValue":W=B;break;case"multiple":q=B;default:D0(_,J,Z,B,$,null)}k0(_,$),J=X,$=W,_.multiple=!!q,J!=null?Y2(_,!!q,J,!1):$!=null&&Y2(_,!!q,$,!0);return;case"textarea":I5("textarea",$),M0("invalid",_),X=Z=q=null;for(W in $)if($.hasOwnProperty(W)&&(B=$[W],B!=null))switch(W){case"value":q=B;break;case"defaultValue":Z=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,W,B,$,null)}nJ(_,$),k9(_,q,Z,X);return;case"option":N0(_,$);for(I in $)if($.hasOwnProperty(I)&&(q=$[I],q!=null))switch(I){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:D0(_,J,I,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<GJ.length;q++)M0(GJ[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(S in $)if($.hasOwnProperty(S)&&(q=$[S],q!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:D0(_,J,S,q,$,null)}return;default:if(g9(J)){for(_1 in $)$.hasOwnProperty(_1)&&(q=$[_1],q!==void 0&&JZ(_,J,_1,q,$,void 0));return}}for(B in $)$.hasOwnProperty(B)&&(q=$[B],q!=null&&D0(_,J,B,q,$,null))}function bI(_,J,$,q){switch(_Z(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var Z=null,X=null,W=null,B=null,I=null,S=null,_1=null;for(F1 in $){var J1=$[F1];if($.hasOwnProperty(F1)&&J1!=null)switch(F1){case"checked":break;case"value":break;case"defaultValue":I=J1;default:q.hasOwnProperty(F1)||D0(_,J,F1,null,q,J1)}}for(var i in q){var F1=q[i];if(J1=$[i],q.hasOwnProperty(i)&&(F1!=null||J1!=null))switch(i){case"type":X=F1;break;case"name":Z=F1;break;case"checked":S=F1;break;case"defaultChecked":_1=F1;break;case"value":W=F1;break;case"defaultValue":B=F1;break;case"children":case"dangerouslySetInnerHTML":if(F1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1!==J1&&D0(_,J,i,F1,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||ZA||(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"),ZA=!0),!J||q||GA||(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"),GA=!0),y0(_,W,B,I,S,_1,X,Z);return;case"select":F1=W=B=i=null;for(X in $)if(I=$[X],$.hasOwnProperty(X)&&I!=null)switch(X){case"value":break;case"multiple":F1=I;default:q.hasOwnProperty(X)||D0(_,J,X,null,q,I)}for(Z in q)if(X=q[Z],I=$[Z],q.hasOwnProperty(Z)&&(X!=null||I!=null))switch(Z){case"value":i=X;break;case"defaultValue":B=X;break;case"multiple":W=X;default:X!==I&&D0(_,J,Z,X,q,I)}q=B,J=W,$=F1,i!=null?Y2(_,!!J,i,!1):!!$!==!!J&&(q!=null?Y2(_,!!J,q,!0):Y2(_,!!J,J?[]:"",!1));return;case"textarea":F1=i=null;for(B in $)if(Z=$[B],$.hasOwnProperty(B)&&Z!=null&&!q.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:D0(_,J,B,null,q,Z)}for(W in q)if(Z=q[W],X=$[W],q.hasOwnProperty(W)&&(Z!=null||X!=null))switch(W){case"value":i=Z;break;case"defaultValue":F1=Z;break;case"children":break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Z!==X&&D0(_,J,W,Z,q,X)}eJ(_,i,F1);return;case"option":for(var N1 in $)if(i=$[N1],$.hasOwnProperty(N1)&&i!=null&&!q.hasOwnProperty(N1))switch(N1){case"selected":_.selected=!1;break;default:D0(_,J,N1,null,q,i)}for(I in q)if(i=q[I],F1=$[I],q.hasOwnProperty(I)&&i!==F1&&(i!=null||F1!=null))switch(I){case"selected":_.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:D0(_,J,I,i,q,F1)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v1 in $)i=$[v1],$.hasOwnProperty(v1)&&i!=null&&!q.hasOwnProperty(v1)&&D0(_,J,v1,null,q,i);for(S in q)if(i=q[S],F1=$[S],q.hasOwnProperty(S)&&i!==F1&&(i!=null||F1!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(i!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:D0(_,J,S,i,q,F1)}return;default:if(g9(J)){for(var m0 in $)i=$[m0],$.hasOwnProperty(m0)&&i!==void 0&&!q.hasOwnProperty(m0)&&JZ(_,J,m0,void 0,q,i);for(_1 in q)i=q[_1],F1=$[_1],!q.hasOwnProperty(_1)||i===F1||i===void 0&&F1===void 0||JZ(_,J,_1,i,q,F1);return}}for(var T0 in $)i=$[T0],$.hasOwnProperty(T0)&&i!=null&&!q.hasOwnProperty(T0)&&D0(_,J,T0,null,q,i);for(J1 in q)i=q[J1],F1=$[J1],!q.hasOwnProperty(J1)||i===F1||i==null&&F1==null||D0(_,J,J1,i,q,F1)}function KW(_){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 HW(_,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,Z=q="",X;for(X in J)if(J.hasOwnProperty(X)){var W=J[X];W!=null&&typeof W!=="boolean"&&W!==""&&(X.indexOf("--")===0?(_0(W,X),q+=Z+X+":"+(""+W).trim()):typeof W!=="number"||W===0||OL.has(X)?(_0(W,X),q+=Z+X.replace(BL,"-$1").toLowerCase().replace(AL,"-ms-")+":"+(""+W).trim()):q+=Z+X.replace(BL,"-$1").toLowerCase().replace(AL,"-ms-")+":"+W+"px",Z=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=Y6(q),Y6(J)!==q&&($.style=$Z(_)))}}function p5(_,J,$,q,Z,X){if(Z.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}k2(J,_,q,X)}function YW(_,J,$,q,Z,X){if(Z.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}k2(J,_,q,X)}function QZ(_,J,$,q,Z,X){if(Z.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}k2(J,_,q,X)}function zW(_,J,$,q,Z,X){if(Z.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}k2(J,_,q,X)}function qZ(_,J,$,q,Z,X){if(Z.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),$=p9(""+q),_===$)return}k2(J,_,q,X)}function WW(_,J,$,q){for(var Z={},X=new Set,W=_.attributes,B=0;B<W.length;B++)switch(W[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(W[B].name)}if(g9(J)){for(var I in $)if($.hasOwnProperty(I)){var S=$[I];if(S!=null){if(L8.hasOwnProperty(I))typeof S!=="function"&&g4(I,S);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof S!=="string"&&typeof S!=="number"||k2("children",_.textContent,S,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=_.innerHTML,S=S?S.__html:void 0,S!=null&&(S=FW(_,S),k2(I,W,S,Z));continue;case"style":X.delete(I),HW(_,S,Z);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"),W=n6(_,"class",S),k2("className",W,S,Z);continue;default:q.context===k3&&J!=="svg"&&J!=="math"?X.delete(I.toLowerCase()):X.delete(I),W=n6(_,I,S),k2(I,W,S,Z)}}}}else for(S in $)if($.hasOwnProperty(S)&&(I=$[S],I!=null)){if(L8.hasOwnProperty(S))typeof I!=="function"&&g4(S,I);else if($.suppressHydrationWarning!==!0)switch(S){case"children":typeof I!=="string"&&typeof I!=="number"||k2("children",_.textContent,I,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=_.innerHTML,I=I?I.__html:void 0,I!=null&&(I=FW(_,I),W!==I&&(Z[S]={__html:W}));continue;case"className":p5(_,S,"class",I,X,Z);continue;case"tabIndex":p5(_,S,"tabindex",I,X,Z);continue;case"style":X.delete(S),HW(_,I,Z);continue;case"multiple":X.delete(S),k2(S,_.multiple,I,Z);continue;case"muted":X.delete(S),k2(S,_.muted,I,Z);continue;case"autoFocus":X.delete("autofocus"),k2(S,_.autofocus,I,Z);continue;case"data":if(J!=="object"){X.delete(S),W=_.getAttribute("data"),k2(S,W,I,Z);continue}case"src":case"href":if(!(I!==""||J==="a"&&S==="href"||J==="object"&&S==="data")){S==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}qZ(_,S,S,I,X,Z);continue;case"action":case"formAction":if(W=_.getAttribute(S),typeof I==="function"){X.delete(S.toLowerCase()),S==="formAction"?(X.delete("name"),X.delete("formenctype"),X.delete("formmethod"),X.delete("formtarget")):(X.delete("enctype"),X.delete("method"),X.delete("target"));continue}else if(W===sN){X.delete(S.toLowerCase()),k2(S,"function",I,Z);continue}qZ(_,S,S.toLowerCase(),I,X,Z);continue;case"xlinkHref":qZ(_,S,"xlink:href",I,X,Z);continue;case"contentEditable":QZ(_,S,"contenteditable",I,X,Z);continue;case"spellCheck":QZ(_,S,"spellcheck",I,X,Z);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":QZ(_,S,S,I,X,Z);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":YW(_,S,S.toLowerCase(),I,X,Z);continue;case"capture":case"download":_:{B=_;var _1=W=S,J1=Z;if(X.delete(_1),B=B.getAttribute(_1),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,W),B===""+I)break _}k2(W,B,I,J1)}continue;case"cols":case"rows":case"size":case"span":_:{if(B=_,_1=W=S,J1=Z,X.delete(_1),B=B.getAttribute(_1),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,W),B===""+I))break _}k2(W,B,I,J1)}continue;case"rowSpan":zW(_,S,"rowspan",I,X,Z);continue;case"start":zW(_,S,S,I,X,Z);continue;case"xHeight":p5(_,S,"x-height",I,X,Z);continue;case"xlinkActuate":p5(_,S,"xlink:actuate",I,X,Z);continue;case"xlinkArcrole":p5(_,S,"xlink:arcrole",I,X,Z);continue;case"xlinkRole":p5(_,S,"xlink:role",I,X,Z);continue;case"xlinkShow":p5(_,S,"xlink:show",I,X,Z);continue;case"xlinkTitle":p5(_,S,"xlink:title",I,X,Z);continue;case"xlinkType":p5(_,S,"xlink:type",I,X,Z);continue;case"xmlBase":p5(_,S,"xml:base",I,X,Z);continue;case"xmlLang":p5(_,S,"xml:lang",I,X,Z);continue;case"xmlSpace":p5(_,S,"xml:space",I,X,Z);continue;case"inert":I!==""||Zq[S]||(Zq[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),YW(_,S,S,I,X,Z);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){B=LH(S),W=!1,q.context===k3&&J!=="svg"&&J!=="math"?X.delete(B.toLowerCase()):(_1=S.toLowerCase(),_1=TQ.hasOwnProperty(_1)?TQ[_1]||null:null,_1!==null&&_1!==S&&(W=!0,X.delete(_1)),X.delete(B));_:if(_1=_,J1=B,B=I,g5(J1))if(_1.hasAttribute(J1))_1=_1.getAttribute(J1),A1(B,J1),B=_1===""+B?B:_1;else{switch(typeof B){case"function":case"symbol":break _;case"boolean":if(_1=J1.toLowerCase().slice(0,5),_1!=="data-"&&_1!=="aria-")break _}B=B===void 0?void 0:null}else B=void 0;W||k2(S,B,I,Z)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&uI(_,X,Z),Object.keys(Z).length===0?null:Z}function EI(_,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 LW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var Z=$[q],X=Z.transferSize,W=Z.initiatorType,B=Z.duration;if(X&&B&&LW(W)){W=0,B=Z.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],S=I.startTime;if(S>B)break;var{transferSize:_1,initiatorType:J1}=I;_1&&LW(J1)&&(I=I.responseEnd,W+=_1*(I<B?1:(B-S)/(I-S)))}if(--q,J+=8*(X+W)/(Z.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 BW(_){switch(_){case k7:return X9;case MQ:return Xq;default:return k3}}function AW(_,J){if(_===k3)switch(J){case"svg":return X9;case"math":return Xq;default:return k3}return _===X9&&J==="foreignObject"?k3:_}function UZ(_,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 xI(){var _=window.event;if(_&&_.type==="popstate"){if(_===gF)return!1;return gF=_,!0}return gF=null,!1}function z_(){var _=window.event;return _&&_!==XJ?_.type:null}function W_(){var _=window.event;return _&&_!==XJ?_.timeStamp:-1.1}function mI(_){setTimeout(function(){throw _})}function gI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function pI(){}function cI(_,J,$,q){bI(_,J,$,q),_[J5]=q}function MW(_){_8(_,"")}function lI(_,J,$){_.nodeValue=$}function TW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[J5]||null;if(J!==null){var $=r1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,L1($,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,L1($,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 z6(_){return _==="head"}function dI(_,J){_.removeChild(J)}function iI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function RW(_,J){var $=J,q=0;do{var Z=$.nextSibling;if(_.removeChild($),Z&&Z.nodeType===8)if($=Z.data,$===FJ||$===Fq){if(q===0){_.removeChild(Z),S7(J);return}q--}else if($===ZJ||$===E6||$===D8||$===F9||$===k8)q++;else if($===oN)L_(_.ownerDocument.documentElement);else if($===eN){$=_.ownerDocument.head,L_($);for(var X=$.firstChild;X;){var{nextSibling:W,nodeName:B}=X;X[I_]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=W}}else $===nN&&L_(_.ownerDocument.body);$=Z}while($);S7(J)}function OW(_,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,$===FJ)if(_===0)break;else _--;else $!==ZJ&&$!==E6&&$!==D8&&$!==F9||_++;$=q}while($)}function rI(_){OW(_,!0)}function aI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function sI(_){_.nodeValue=""}function tI(_){OW(_,!1)}function oI(_,J){J=J[_w],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function nI(_,J){_.nodeValue=J}function GZ(_){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":GZ($),w1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function eI(_,J,$,q){for(;_.nodeType===1;){var Z=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){A1(Z.name,"name");var X=Z.name==null?null:""+Z.name;if(Z.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[I_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(X=_.getAttribute("rel"),X==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(X!==Z.rel||_.getAttribute("href")!==(Z.href==null||Z.href===""?null:Z.href)||_.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin)||_.getAttribute("title")!==(Z.title==null?null:Z.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(X=_.getAttribute("src"),(X!==(Z.src==null?null:Z.src)||_.getAttribute("type")!==(Z.type==null?null:Z.type)||_.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin))&&X&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=j5(_.nextSibling),_===null)break}return null}function _P(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=j5(_.nextSibling),_===null)return null}return _}function IW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=j5(_.nextSibling),_===null)return null}return _}function ZZ(_){return _.data===E6||_.data===D8}function FZ(_){return _.data===F9||_.data===E6&&_.ownerDocument.readyState!==HA}function JP(_,J){var $=_.ownerDocument;if(_.data===D8)_._reactRetry=J;else if(_.data!==E6||$.readyState!==HA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function j5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===ZJ||J===F9||J===E6||J===D8||J===k8||J===hF||J===KA)break;if(J===FJ||J===Fq)return null}}return _}function PW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,Z=0;Z<q.length;Z++){var X=q[Z];$[KW(X.name)]=X.name.toLowerCase()==="style"?$Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===k8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function NW(_,J,$){return $===null||$[tN]!==!0?(_.nodeValue===J?_=null:(J=Y6(J),_=Y6(_.nodeValue)===J?null:_.nodeValue),_):null}function XZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===FJ||$===Fq){if(J===0)return j5(_.nextSibling);J--}else $!==ZJ&&$!==F9&&$!==E6&&$!==D8&&$!==k8||J++}_=_.nextSibling}return null}function wW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===ZJ||$===F9||$===E6||$===D8||$===k8){if(J===0)return _;J--}else $!==FJ&&$!==Fq||J++}_=_.previousSibling}return null}function $P(_){S7(_)}function QP(_){S7(_)}function qP(_){S7(_)}function CW(_,J,$,q,Z){switch(Z&&x9(_,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 UP(_,J,$,q){if(!$[A6]&&r1($)){var Z=$.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.",Z,Z,Z)}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(Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);g2($,_,J),$[p2]=q,$[J5]=J}function L_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);w1(_)}function $Q(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function SW(_,J,$){var q=K9;if(q&&typeof J==="string"&&J){var Z=D1(J);Z='link[rel="'+_+'"][href="'+Z+'"]',typeof $==="string"&&(Z+='[crossorigin="'+$+'"]'),AA.has(Z)||(AA.add(Z),_={rel:_,crossOrigin:$,href:J},q.querySelector(Z)===null&&(J=q.createElement("link"),g2(J,"link",_),x1(J),q.head.appendChild(J)))}}function fW(_,J,$,q){var Z=(Z=L6.current)?$Q(Z):null;if(!Z)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"?($=w7($.href),J=W0(Z).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"){_=w7($.href);var X=W0(Z).hoistableStyles,W=X.get(_);if(!W&&(Z=Z.ownerDocument||Z,W={type:"stylesheet",instance:null,count:0,state:{loading:b8,preload:null}},X.set(_,W),(X=Z.querySelector(B_(_)))&&!X._p&&(W.instance=X,W.state.loading=KJ|e5),!_4.has(_))){var B={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};_4.set(_,B),X||GP(Z,_,B,W.state)}if(J&&q===null)throw $=`
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,x(_))})}function g4(_){_!==F9&&_.next===null&&(F9===null?Jq=F9=_:F9=F9.next=_),$q=!0,z1.actQueue!==null?kF||(kF=!0,$W()):yF||(yF=!0,$W())}function Y_(_,J){if(!DF&&$q){DF=!0;do{var $=!1;for(var q=Jq;q!==null;){if(!J)if(_!==0){var Z=q.pendingLanes;if(Z===0)var X=0;else{var{suspendedLanes:W,pingedLanes:B}=q;X=(1<<31-_5(42|_)+1)-1,X&=Z&~(W&~B),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,JW(q,X))}else X=F0,X=R2(q,q===u0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==b8),(X&3)===0||v2(q,X)||($=!0,JW(q,X));q=q.next}}while($);DF=!1}}function yI(){KJ=window.event,aG()}function aG(){$q=kF=yF=!1;var _=0;h6!==0&&xI()&&(_=h6);for(var J=y2(),$=null,q=Jq;q!==null;){var Z=q.next,X=ez(q,J);if(X===0)q.next=null,$===null?Jq=Z:$.next=Z,Z===null&&(F9=$);else if($=q,_!==0||(X&3)!==0)$q=!0;q=Z}M2!==b6&&M2!==nQ||Y_(_,!1),h6!==0&&(h6=0)}function ez(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:Z}=_,X=_.pendingLanes&-62914561;0<X;){var W=31-_5(X),B=1<<W,I=Z[W];if(I===-1){if((B&$)===0||(B&q)!==0)Z[W]=O2(B,J)}else I<=J&&(_.expiredLanes|=B);X&=~B}if(J=u0,$=F0,$=R2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==b8),q=_.callbackNode,$===0||_===J&&(v0===j8||v0===v8)||_.cancelPendingCommit!==null)return q!==null&&sG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||v2(_,$)){if(J=$&-$,J!==_.callbackPriority||z1.actQueue!==null&&q!==uF)sG(q);else return J;switch(V($)){case k5:case z4:$=vZ;break;case a4:$=V7;break;case BQ:$=VZ;break;default:$=V7}return q=_W.bind(null,_),z1.actQueue!==null?(z1.actQueue.push(q),$=uF):$=fZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&sG(q),_.callbackPriority=2,_.callbackNode=null,2}function _W(_,J){if(DQ=kQ=!1,KJ=window.event,M2!==b6&&M2!==nQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(T4===oQ&&(T4=CF),K_()&&_.callbackNode!==$)return null;var q=F0;if(q=R2(_,_===u0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==b8),q===0)return null;return kz(_,q,J),ez(_,y2()),_.callbackNode!=null&&_.callbackNode===$?_W.bind(null,_):null}function JW(_,J){if(K_())return null;kQ=DQ,DQ=!1,kz(_,J,!0)}function sG(_){_!==uF&&_!==null&&OP(_)}function $W(){z1.actQueue!==null&&z1.actQueue.push(function(){return aG(),null}),$w(function(){(O0&(C2|E5))!==u2?fZ(jZ,yI):aG()})}function tG(){if(h6===0){var _=I8;_===0&&(_=zQ,zQ<<=1,(zQ&261888)===0&&(zQ=256)),h6=_}return h6}function QW(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return M1(_,"action"),c9(""+_)}function qW(_,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 kI(_,J,$,q,Z){if(J==="submit"&&$&&$.stateNode===Z){var X=QW((Z[J5]||null).action),W=q.submitter;W&&(J=(J=W[J5]||null)?QW(J.formAction):W.getAttribute("formAction"),J!==null&&(X=J,W=null));var B=new OQ("action","action",null,q,Z);_.push({event:B,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(h6!==0){var I=W?qW(Z,W):new FormData(Z),S={pending:!0,data:I,method:Z.method,action:X};Object.freeze(S),BG($,S,null,I)}}else typeof X==="function"&&(B.preventDefault(),I=W?qW(Z,W):new FormData(Z),S={pending:!0,data:I,method:Z.method,action:X},Object.freeze(S),BG($,S,X,I))},currentTarget:Z}]})}}function e$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){rZ(q)}_.currentTarget=null}function UW(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var Z=void 0,X=q.event;if(q=q.listeners,J)for(var W=q.length-1;0<=W;W--){var B=q[W],I=B.instance,S=B.currentTarget;if(B=B.listener,I!==Z&&X.isPropagationStopped())break _;I!==null?H1(I,e$,X,B,S):e$(X,B,S),Z=I}else for(W=0;W<q.length;W++){if(B=q[W],I=B.instance,S=B.currentTarget,B=B.listener,I!==Z&&X.isPropagationStopped())break _;I!==null?H1(I,e$,X,B,S):e$(X,B,S),Z=I}}}}function M0(_,J){bF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[yZ];$===void 0&&($=J[yZ]=new Set);var q=_+"__bubble";$.has(q)||(GW(J,_,2,!1),$.add(q))}function oG(_,J,$){bF.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),GW($,_,q,J)}function nG(_){if(!_[Qq]){_[Qq]=!0,$L.forEach(function($){$!=="selectionchange"&&(bF.has($)||oG($,!1,_),oG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[Qq]||(J[Qq]=!0,oG("selectionchange",!1,J))}}function GW(_,J,$,q){switch(xW(J)){case k5:var Z=zP;break;case z4:Z=WP;break;default:Z=WZ}$=Z.bind(null,J,$,_),Z=void 0,!EZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(Z=!0),q?Z!==void 0?_.addEventListener(J,$,{capture:!0,passive:Z}):_.addEventListener(J,$,!0):Z!==void 0?_.addEventListener(J,$,{passive:Z}):_.addEventListener(J,$,!1)}function eG(_,J,$,q,Z){var X=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var W=q.tag;if(W===3||W===4){var B=q.stateNode.containerInfo;if(B===Z)break;if(W===4)for(W=q.return;W!==null;){var I=W.tag;if((I===3||I===4)&&W.stateNode.containerInfo===Z)return;W=W.return}for(;B!==null;){if(W=u1(B),W===null)return;if(I=W.tag,I===5||I===6||I===26||I===27){q=X=W;continue _}B=B.parentNode}}q=q.return}AH(function(){var S=X,_1=OU($),J1=[];_:{var i=xL.get(_);if(i!==void 0){var F1=OQ,C1=_;switch(_){case"keypress":if(Z$($)===0)break _;case"keydown":case"keyup":F1=FN;break;case"focusin":C1="focus",F1=gZ;break;case"focusout":C1="blur",F1=gZ;break;case"beforeblur":case"afterblur":F1=gZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F1=wL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F1=tP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F1=HN;break;case uL:case bL:case EL:F1=eP;break;case hL:F1=zN;break;case"scroll":case"scrollend":F1=aP;break;case"wheel":F1=LN;break;case"copy":case"cut":case"paste":F1=JN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F1=SL;break;case"toggle":case"beforetoggle":F1=AN}var V1=(J&4)!==0,h0=!V1&&(_==="scroll"||_==="scrollend"),T0=V1?i!==null?i+"Capture":null:i;V1=[];for(var d=S,r;d!==null;){var e=d;if(r=e.stateNode,e=e.tag,e!==5&&e!==26&&e!==27||r===null||T0===null||(e=l9(d,T0),e!=null&&V1.push(z_(d,e,r))),h0)break;d=d.return}0<V1.length&&(i=new F1(i,C1,null,$,_1),J1.push({event:i,listeners:V1}))}}if((J&7)===0){_:{if(i=_==="mouseover"||_==="pointerover",F1=_==="mouseout"||_==="pointerout",i&&$!==N_&&(C1=$.relatedTarget||$.fromElement)&&(u1(C1)||C1[T6]))break _;if(F1||i){if(i=_1.window===_1?_1:(i=_1.ownerDocument)?i.defaultView||i.parentWindow:window,F1){if(C1=$.relatedTarget||$.toElement,F1=S,C1=C1?u1(C1):null,C1!==null&&(h0=w(C1),V1=C1.tag,C1!==h0||V1!==5&&V1!==27&&V1!==6))C1=null}else F1=null,C1=S;if(F1!==C1){if(V1=wL,e="onMouseLeave",T0="onMouseEnter",d="mouse",_==="pointerout"||_==="pointerover")V1=SL,e="onPointerLeave",T0="onPointerEnter",d="pointer";if(h0=F1==null?i:s1(F1),r=C1==null?i:s1(C1),i=new V1(e,d+"leave",F1,$,_1),i.target=h0,i.relatedTarget=r,e=null,u1(_1)===S&&(V1=new V1(T0,d+"enter",C1,$,_1),V1.target=r,V1.relatedTarget=h0,e=V1),h0=e,F1&&C1)J:{V1=DI,T0=F1,d=C1,r=0;for(e=T0;e;e=V1(e))r++;e=0;for(var A1=d;A1;A1=V1(A1))e++;for(;0<r-e;)T0=V1(T0),r--;for(;0<e-r;)d=V1(d),e--;for(;r--;){if(T0===d||d!==null&&T0===d.alternate){V1=T0;break J}T0=V1(T0),d=V1(d)}V1=null}else V1=null;F1!==null&&ZW(J1,i,F1,V1,!1),C1!==null&&h0!==null&&ZW(J1,h0,C1,V1,!0)}}}_:{if(i=S?s1(S):window,F1=i.nodeName&&i.nodeName.toLowerCase(),F1==="select"||F1==="input"&&i.type==="file")var S1=NH;else if(IH(i))if(kL)S1=iO;else{S1=lO;var e1=cO}else F1=i.nodeName,!F1||F1.toLowerCase()!=="input"||i.type!=="checkbox"&&i.type!=="radio"?S&&p9(S.elementType)&&(S1=NH):S1=dO;if(S1&&(S1=S1(_,S))){PH(J1,S1,$,_1);break _}e1&&e1(_,i,S),_==="focusout"&&S&&i.type==="number"&&S.memoizedProps.value!=null&&J0(i,"number",i.value)}switch(e1=S?s1(S):window,_){case"focusin":if(IH(e1)||e1.contentEditable==="true")x7=e1,cZ=S,V_=null;break;case"focusout":V_=cZ=x7=null;break;case"mousedown":lZ=!0;break;case"contextmenu":case"mouseup":case"dragend":lZ=!1,VH(J1,$,_1);break;case"selectionchange":if(ON)break;case"keydown":case"keyup":VH(J1,$,_1)}var p1;if(pZ)_:{switch(_){case"compositionstart":var h1="onCompositionStart";break _;case"compositionend":h1="onCompositionEnd";break _;case"compositionupdate":h1="onCompositionUpdate";break _}h1=void 0}else h7?RH(_,$)&&(h1="onCompositionEnd"):_==="keydown"&&$.keyCode===fL&&(h1="onCompositionStart");if(h1&&(jL&&$.locale!=="ko"&&(h7||h1!=="onCompositionStart"?h1==="onCompositionEnd"&&h7&&(p1=MH()):(R6=_1,hZ=("value"in R6)?R6.value:R6.textContent,h7=!0)),e1=_Q(S,h1),0<e1.length&&(h1=new CL(h1,_,null,$,_1),J1.push({event:h1,listeners:e1}),p1?h1.data=p1:(p1=OH($),p1!==null&&(h1.data=p1)))),p1=TN?xO(_,$):mO(_,$))h1=_Q(S,"onBeforeInput"),0<h1.length&&(e1=new QN("onBeforeInput","beforeinput",null,$,_1),J1.push({event:e1,listeners:h1}),e1.data=p1);kI(J1,_,S,$,_1)}UW(J1,J)})}function z_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function _Q(_,J){for(var $=J+"Capture",q=[];_!==null;){var Z=_,X=Z.stateNode;if(Z=Z.tag,Z!==5&&Z!==26&&Z!==27||X===null||(Z=l9(_,$),Z!=null&&q.unshift(z_(_,Z,X)),Z=l9(_,J),Z!=null&&q.push(z_(_,Z,X))),_.tag===3)return q;_=_.return}return[]}function DI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function ZW(_,J,$,q,Z){for(var X=J._reactName,W=[];$!==null&&$!==q;){var B=$,I=B.alternate,S=B.stateNode;if(B=B.tag,I!==null&&I===q)break;B!==5&&B!==26&&B!==27||S===null||(I=S,Z?(S=l9($,X),S!=null&&W.unshift(z_($,S,I))):Z||(S=l9($,X),S!=null&&W.push(z_($,S,I)))),$=$.return}W.length!==0&&_.push({event:J,listeners:W})}function _Z(_,J){uO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||PL||(PL=!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:B8,possibleRegistrationNames:kZ};p9(_)||typeof J.is==="string"||EO(_,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!==$&&($=W6($),W6(J)!==$&&(q[_]=J))}function uI(_,J,$){J.forEach(function(q){$[KW(q)]=q==="style"?$Z(_):_.getAttribute(q)})}function p4(_,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 FW(_,J){return _=_.namespaceURI===MQ||_.namespaceURI===D7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function W6(_){return d1(_)&&(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.",j1(_)),x1(_)),(typeof _==="string"?_:""+_).replace(rN,`
176
+ `).replace(aN,"")}function XW(_,J){return J=W6(J),W6(_)===J?!0:!1}function k0(_,J,$,q,Z,X){switch($){case"children":if(typeof q==="string")Q6(q,J,!1),J==="body"||J==="textarea"&&q===""||J8(_,q);else if(typeof q==="number"||typeof q==="bigint")Q6(""+q,J,!1),J!=="body"&&J8(_,""+q);break;case"className":e3(_,"class",q);break;case"tabIndex":e3(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":e3(_,$,q);break;case"style":WH(_,q,X);break;case"data":if(J!=="object"){e3(_,"data",q);break}case"src":case"href":if(q===""&&(J!=="a"||$!=="href")){$==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$),_.removeAttribute($);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=c9(""+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"&&(Z.encType==null&&Z.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.")),Z.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"||Z.type==="submit"||Z.type==="image"||qq?J!=="button"||Z.type==null||Z.type==="submit"||qq?typeof q==="function"&&(Z.name==null||FA||(FA=!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.')),Z.formEncType==null&&Z.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.")),Z.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",Z.name,Z,null),k0(_,J,"formEncType",Z.formEncType,Z,null),k0(_,J,"formMethod",Z.formMethod,Z,null),k0(_,J,"formTarget",Z.formTarget,Z,null)):(k0(_,J,"encType",Z.encType,Z,null),k0(_,J,"method",Z.method,Z,null),k0(_,J,"target",Z.target,Z,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=c9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&p4($,q),_.onclick=L3);break;case"onScroll":q!=null&&(typeof q!=="function"&&p4($,q),M0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&p4($,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(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}M1(q,$),$=c9(""+q),_.setAttributeNS(k8,"xlink:href",$);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(M1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||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"?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(M1(q,$),_.setAttribute($,q));break;case"popover":M0("beforetoggle",_),M0("toggle",_),z3(_,"popover",q);break;case"xlinkActuate":P5(_,k8,"xlink:actuate",q);break;case"xlinkArcrole":P5(_,k8,"xlink:arcrole",q);break;case"xlinkRole":P5(_,k8,"xlink:role",q);break;case"xlinkShow":P5(_,k8,"xlink:show",q);break;case"xlinkTitle":P5(_,k8,"xlink:title",q);break;case"xlinkType":P5(_,k8,"xlink:type",q);break;case"xmlBase":P5(_,EF,"xml:base",q);break;case"xmlLang":P5(_,EF,"xml:lang",q);break;case"xmlSpace":P5(_,EF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),z3(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":XA||q==null||typeof q!=="object"||(XA=!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"?($=LH($),z3(_,$,q)):B8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&p4($,q)}}function JZ(_,J,$,q,Z,X){switch($){case"style":WH(_,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(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?J8(_,q):(typeof q==="number"||typeof q==="bigint")&&J8(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&p4($,q),M0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&p4($,q),M0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&p4($,q),_.onclick=L3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(B8.hasOwnProperty($))q!=null&&typeof q!=="function"&&p4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(Z=$.endsWith("Capture"),J=$.slice(2,Z?$.length-7:void 0),X=_[J5]||null,X=X!=null?X[$]:null,typeof X==="function"&&_.removeEventListener(J,X,Z),typeof q==="function")){typeof X!=="function"&&X!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,Z);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):z3(_,$,q)}}}function m2(_,J,$){switch(_Z(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,Z=!1,X;for(X in $)if($.hasOwnProperty(X)){var W=$[X];if(W!=null)switch(X){case"src":q=!0;break;case"srcSet":Z=!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,W,$,null)}}Z&&k0(_,J,"srcSet",$.srcSet,$,null),q&&k0(_,J,"src",$.src,$,null);return;case"input":Y5("input",$),M0("invalid",_);var B=X=W=Z=null,I=null,S=null;for(q in $)if($.hasOwnProperty(q)){var _1=$[q];if(_1!=null)switch(q){case"name":Z=_1;break;case"type":W=_1;break;case"checked":I=_1;break;case"defaultChecked":S=_1;break;case"value":X=_1;break;case"defaultValue":B=_1;break;case"children":case"dangerouslySetInnerHTML":if(_1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:k0(_,J,q,_1,$,null)}}c1(_,$),b0(_,X,B,I,S,W,Z,!1);return;case"select":Y5("select",$),M0("invalid",_),q=W=X=null;for(Z in $)if($.hasOwnProperty(Z)&&(B=$[Z],B!=null))switch(Z){case"value":X=B;break;case"defaultValue":W=B;break;case"multiple":q=B;default:k0(_,J,Z,B,$,null)}l2(_,$),J=X,$=W,_.multiple=!!q,J!=null?c5(_,!!q,J,!1):$!=null&&c5(_,!!q,$,!0);return;case"textarea":Y5("textarea",$),M0("invalid",_),X=Z=q=null;for(W in $)if($.hasOwnProperty(W)&&(B=$[W],B!=null))switch(W){case"value":q=B;break;case"defaultValue":Z=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,W,B,$,null)}y0(_,$),D9(_,q,Z,X);return;case"option":c0(_,$);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":M0("beforetoggle",_),M0("toggle",_),M0("cancel",_),M0("close",_);break;case"iframe":case"object":M0("load",_);break;case"video":case"audio":for(q=0;q<ZJ.length;q++)M0(ZJ[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(S in $)if($.hasOwnProperty(S)&&(q=$[S],q!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:k0(_,J,S,q,$,null)}return;default:if(p9(J)){for(_1 in $)$.hasOwnProperty(_1)&&(q=$[_1],q!==void 0&&JZ(_,J,_1,q,$,void 0));return}}for(B in $)$.hasOwnProperty(B)&&(q=$[B],q!=null&&k0(_,J,B,q,$,null))}function bI(_,J,$,q){switch(_Z(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var Z=null,X=null,W=null,B=null,I=null,S=null,_1=null;for(F1 in $){var J1=$[F1];if($.hasOwnProperty(F1)&&J1!=null)switch(F1){case"checked":break;case"value":break;case"defaultValue":I=J1;default:q.hasOwnProperty(F1)||k0(_,J,F1,null,q,J1)}}for(var i in q){var F1=q[i];if(J1=$[i],q.hasOwnProperty(i)&&(F1!=null||J1!=null))switch(i){case"type":X=F1;break;case"name":Z=F1;break;case"checked":S=F1;break;case"defaultChecked":_1=F1;break;case"value":W=F1;break;case"defaultValue":B=F1;break;case"children":case"dangerouslySetInnerHTML":if(F1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1!==J1&&k0(_,J,i,F1,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||ZA||(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"),ZA=!0),!J||q||GA||(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"),GA=!0),Q0(_,W,B,I,S,_1,X,Z);return;case"select":F1=W=B=i=null;for(X in $)if(I=$[X],$.hasOwnProperty(X)&&I!=null)switch(X){case"value":break;case"multiple":F1=I;default:q.hasOwnProperty(X)||k0(_,J,X,null,q,I)}for(Z in q)if(X=q[Z],I=$[Z],q.hasOwnProperty(Z)&&(X!=null||I!=null))switch(Z){case"value":i=X;break;case"defaultValue":B=X;break;case"multiple":W=X;default:X!==I&&k0(_,J,Z,X,q,I)}q=B,J=W,$=F1,i!=null?c5(_,!!J,i,!1):!!$!==!!J&&(q!=null?c5(_,!!J,q,!0):c5(_,!!J,J?[]:"",!1));return;case"textarea":F1=i=null;for(B in $)if(Z=$[B],$.hasOwnProperty(B)&&Z!=null&&!q.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:k0(_,J,B,null,q,Z)}for(W in q)if(Z=q[W],X=$[W],q.hasOwnProperty(W)&&(Z!=null||X!=null))switch(W){case"value":i=Z;break;case"defaultValue":F1=Z;break;case"children":break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Z!==X&&k0(_,J,W,Z,q,X)}eJ(_,i,F1);return;case"option":for(var C1 in $)if(i=$[C1],$.hasOwnProperty(C1)&&i!=null&&!q.hasOwnProperty(C1))switch(C1){case"selected":_.selected=!1;break;default:k0(_,J,C1,null,q,i)}for(I in q)if(i=q[I],F1=$[I],q.hasOwnProperty(I)&&i!==F1&&(i!=null||F1!=null))switch(I){case"selected":_.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:k0(_,J,I,i,q,F1)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var V1 in $)i=$[V1],$.hasOwnProperty(V1)&&i!=null&&!q.hasOwnProperty(V1)&&k0(_,J,V1,null,q,i);for(S in q)if(i=q[S],F1=$[S],q.hasOwnProperty(S)&&i!==F1&&(i!=null||F1!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(i!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:k0(_,J,S,i,q,F1)}return;default:if(p9(J)){for(var h0 in $)i=$[h0],$.hasOwnProperty(h0)&&i!==void 0&&!q.hasOwnProperty(h0)&&JZ(_,J,h0,void 0,q,i);for(_1 in q)i=q[_1],F1=$[_1],!q.hasOwnProperty(_1)||i===F1||i===void 0&&F1===void 0||JZ(_,J,_1,i,q,F1);return}}for(var T0 in $)i=$[T0],$.hasOwnProperty(T0)&&i!=null&&!q.hasOwnProperty(T0)&&k0(_,J,T0,null,q,i);for(J1 in q)i=q[J1],F1=$[J1],!q.hasOwnProperty(J1)||i===F1||i==null&&F1==null||k0(_,J,J1,i,q,F1)}function KW(_){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 HW(_,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,Z=q="",X;for(X in J)if(J.hasOwnProperty(X)){var W=J[X];W!=null&&typeof W!=="boolean"&&W!==""&&(X.indexOf("--")===0?(g1(W,X),q+=Z+X+":"+(""+W).trim()):typeof W!=="number"||W===0||OL.has(X)?(g1(W,X),q+=Z+X.replace(BL,"-$1").toLowerCase().replace(AL,"-ms-")+":"+(""+W).trim()):q+=Z+X.replace(BL,"-$1").toLowerCase().replace(AL,"-ms-")+":"+W+"px",Z=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=W6(q),W6(J)!==q&&($.style=$Z(_)))}}function l5(_,J,$,q,Z,X){if(Z.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(M1(q,J),_===""+q)return}V2(J,_,q,X)}function YW(_,J,$,q,Z,X){if(Z.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 QZ(_,J,$,q,Z,X){if(Z.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(M1(q,$),_===""+q)return}V2(J,_,q,X)}function zW(_,J,$,q,Z,X){if(Z.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(M1(q,J),_===""+q))return}V2(J,_,q,X)}function qZ(_,J,$,q,Z,X){if(Z.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(M1(q,J),$=c9(""+q),_===$)return}V2(J,_,q,X)}function WW(_,J,$,q){for(var Z={},X=new Set,W=_.attributes,B=0;B<W.length;B++)switch(W[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(W[B].name)}if(p9(J)){for(var I in $)if($.hasOwnProperty(I)){var S=$[I];if(S!=null){if(B8.hasOwnProperty(I))typeof S!=="function"&&p4(I,S);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof S!=="string"&&typeof S!=="number"||V2("children",_.textContent,S,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=_.innerHTML,S=S?S.__html:void 0,S!=null&&(S=FW(_,S),V2(I,W,S,Z));continue;case"style":X.delete(I),HW(_,S,Z);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"),W=Y3(_,"class",S),V2("className",W,S,Z);continue;default:q.context===E3&&J!=="svg"&&J!=="math"?X.delete(I.toLowerCase()):X.delete(I),W=Y3(_,I,S),V2(I,W,S,Z)}}}}else for(S in $)if($.hasOwnProperty(S)&&(I=$[S],I!=null)){if(B8.hasOwnProperty(S))typeof I!=="function"&&p4(S,I);else if($.suppressHydrationWarning!==!0)switch(S){case"children":typeof I!=="string"&&typeof I!=="number"||V2("children",_.textContent,I,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=_.innerHTML,I=I?I.__html:void 0,I!=null&&(I=FW(_,I),W!==I&&(Z[S]={__html:W}));continue;case"className":l5(_,S,"class",I,X,Z);continue;case"tabIndex":l5(_,S,"tabindex",I,X,Z);continue;case"style":X.delete(S),HW(_,I,Z);continue;case"multiple":X.delete(S),V2(S,_.multiple,I,Z);continue;case"muted":X.delete(S),V2(S,_.muted,I,Z);continue;case"autoFocus":X.delete("autofocus"),V2(S,_.autofocus,I,Z);continue;case"data":if(J!=="object"){X.delete(S),W=_.getAttribute("data"),V2(S,W,I,Z);continue}case"src":case"href":if(!(I!==""||J==="a"&&S==="href"||J==="object"&&S==="data")){S==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}qZ(_,S,S,I,X,Z);continue;case"action":case"formAction":if(W=_.getAttribute(S),typeof I==="function"){X.delete(S.toLowerCase()),S==="formAction"?(X.delete("name"),X.delete("formenctype"),X.delete("formmethod"),X.delete("formtarget")):(X.delete("enctype"),X.delete("method"),X.delete("target"));continue}else if(W===sN){X.delete(S.toLowerCase()),V2(S,"function",I,Z);continue}qZ(_,S,S.toLowerCase(),I,X,Z);continue;case"xlinkHref":qZ(_,S,"xlink:href",I,X,Z);continue;case"contentEditable":QZ(_,S,"contenteditable",I,X,Z);continue;case"spellCheck":QZ(_,S,"spellcheck",I,X,Z);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":QZ(_,S,S,I,X,Z);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":YW(_,S,S.toLowerCase(),I,X,Z);continue;case"capture":case"download":_:{B=_;var _1=W=S,J1=Z;if(X.delete(_1),B=B.getAttribute(_1),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(M1(I,W),B===""+I)break _}V2(W,B,I,J1)}continue;case"cols":case"rows":case"size":case"span":_:{if(B=_,_1=W=S,J1=Z,X.delete(_1),B=B.getAttribute(_1),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)&&(M1(I,W),B===""+I))break _}V2(W,B,I,J1)}continue;case"rowSpan":zW(_,S,"rowspan",I,X,Z);continue;case"start":zW(_,S,S,I,X,Z);continue;case"xHeight":l5(_,S,"x-height",I,X,Z);continue;case"xlinkActuate":l5(_,S,"xlink:actuate",I,X,Z);continue;case"xlinkArcrole":l5(_,S,"xlink:arcrole",I,X,Z);continue;case"xlinkRole":l5(_,S,"xlink:role",I,X,Z);continue;case"xlinkShow":l5(_,S,"xlink:show",I,X,Z);continue;case"xlinkTitle":l5(_,S,"xlink:title",I,X,Z);continue;case"xlinkType":l5(_,S,"xlink:type",I,X,Z);continue;case"xmlBase":l5(_,S,"xml:base",I,X,Z);continue;case"xmlLang":l5(_,S,"xml:lang",I,X,Z);continue;case"xmlSpace":l5(_,S,"xml:space",I,X,Z);continue;case"inert":I!==""||Zq[S]||(Zq[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),YW(_,S,S,I,X,Z);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){B=LH(S),W=!1,q.context===E3&&J!=="svg"&&J!=="math"?X.delete(B.toLowerCase()):(_1=S.toLowerCase(),_1=TQ.hasOwnProperty(_1)?TQ[_1]||null:null,_1!==null&&_1!==S&&(W=!0,X.delete(_1)),X.delete(B));_:if(_1=_,J1=B,B=I,C4(J1))if(_1.hasAttribute(J1))_1=_1.getAttribute(J1),M1(B,J1),B=_1===""+B?B:_1;else{switch(typeof B){case"function":case"symbol":break _;case"boolean":if(_1=J1.toLowerCase().slice(0,5),_1!=="data-"&&_1!=="aria-")break _}B=B===void 0?void 0:null}else B=void 0;W||V2(S,B,I,Z)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&uI(_,X,Z),Object.keys(Z).length===0?null:Z}function EI(_,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 LW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var Z=$[q],X=Z.transferSize,W=Z.initiatorType,B=Z.duration;if(X&&B&&LW(W)){W=0,B=Z.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],S=I.startTime;if(S>B)break;var{transferSize:_1,initiatorType:J1}=I;_1&&LW(J1)&&(I=I.responseEnd,W+=_1*(I<B?1:(B-S)/(I-S)))}if(--q,J+=8*(X+W)/(Z.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 BW(_){switch(_){case D7:return K9;case MQ:return Xq;default:return E3}}function AW(_,J){if(_===E3)switch(J){case"svg":return K9;case"math":return Xq;default:return E3}return _===K9&&J==="foreignObject"?E3:_}function UZ(_,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 xI(){var _=window.event;if(_&&_.type==="popstate"){if(_===gF)return!1;return gF=_,!0}return gF=null,!1}function W_(){var _=window.event;return _&&_!==KJ?_.type:null}function L_(){var _=window.event;return _&&_!==KJ?_.timeStamp:-1.1}function mI(_){setTimeout(function(){throw _})}function gI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function pI(){}function cI(_,J,$,q){bI(_,J,$,q),_[J5]=q}function MW(_){J8(_,"")}function lI(_,J,$){_.nodeValue=$}function TW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[J5]||null;if(J!==null){var $=a1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,H1($,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,H1($,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 L6(_){return _==="head"}function dI(_,J){_.removeChild(J)}function iI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function RW(_,J){var $=J,q=0;do{var Z=$.nextSibling;if(_.removeChild($),Z&&Z.nodeType===8)if($=Z.data,$===XJ||$===Fq){if(q===0){_.removeChild(Z),f7(J);return}q--}else if($===FJ||$===x6||$===u8||$===X9||$===D8)q++;else if($===oN)B_(_.ownerDocument.documentElement);else if($===eN){$=_.ownerDocument.head,B_($);for(var X=$.firstChild;X;){var{nextSibling:W,nodeName:B}=X;X[P_]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=W}}else $===nN&&B_(_.ownerDocument.body);$=Z}while($);f7(J)}function OW(_,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,$===XJ)if(_===0)break;else _--;else $!==FJ&&$!==x6&&$!==u8&&$!==X9||_++;$=q}while($)}function rI(_){OW(_,!0)}function aI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function sI(_){_.nodeValue=""}function tI(_){OW(_,!1)}function oI(_,J){J=J[_w],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function nI(_,J){_.nodeValue=J}function GZ(_){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":GZ($),w1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function eI(_,J,$,q){for(;_.nodeType===1;){var Z=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){M1(Z.name,"name");var X=Z.name==null?null:""+Z.name;if(Z.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[P_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(X=_.getAttribute("rel"),X==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(X!==Z.rel||_.getAttribute("href")!==(Z.href==null||Z.href===""?null:Z.href)||_.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin)||_.getAttribute("title")!==(Z.title==null?null:Z.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(X=_.getAttribute("src"),(X!==(Z.src==null?null:Z.src)||_.getAttribute("type")!==(Z.type==null?null:Z.type)||_.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin))&&X&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=v5(_.nextSibling),_===null)break}return null}function _P(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=v5(_.nextSibling),_===null)return null}return _}function IW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=v5(_.nextSibling),_===null)return null}return _}function ZZ(_){return _.data===x6||_.data===u8}function FZ(_){return _.data===X9||_.data===x6&&_.ownerDocument.readyState!==HA}function JP(_,J){var $=_.ownerDocument;if(_.data===u8)_._reactRetry=J;else if(_.data!==x6||$.readyState!==HA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function v5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===FJ||J===X9||J===x6||J===u8||J===D8||J===hF||J===KA)break;if(J===XJ||J===Fq)return null}}return _}function PW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,Z=0;Z<q.length;Z++){var X=q[Z];$[KW(X.name)]=X.name.toLowerCase()==="style"?$Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===D8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function NW(_,J,$){return $===null||$[tN]!==!0?(_.nodeValue===J?_=null:(J=W6(J),_=W6(_.nodeValue)===J?null:_.nodeValue),_):null}function XZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===XJ||$===Fq){if(J===0)return v5(_.nextSibling);J--}else $!==FJ&&$!==X9&&$!==x6&&$!==u8&&$!==D8||J++}_=_.nextSibling}return null}function wW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===FJ||$===X9||$===x6||$===u8||$===D8){if(J===0)return _;J--}else $!==XJ&&$!==Fq||J++}_=_.previousSibling}return null}function $P(_){f7(_)}function QP(_){f7(_)}function qP(_){f7(_)}function CW(_,J,$,q,Z){switch(Z&&m9(_,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 UP(_,J,$,q){if(!$[T6]&&a1($)){var Z=$.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.",Z,Z,Z)}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(Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);m2($,_,J),$[g2]=q,$[J5]=J}function B_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);w1(_)}function $Q(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function SW(_,J,$){var q=H9;if(q&&typeof J==="string"&&J){var Z=D1(J);Z='link[rel="'+_+'"][href="'+Z+'"]',typeof $==="string"&&(Z+='[crossorigin="'+$+'"]'),AA.has(Z)||(AA.add(Z),_={rel:_,crossOrigin:$,href:J},q.querySelector(Z)===null&&(J=q.createElement("link"),m2(J,"link",_),m1(J),q.head.appendChild(J)))}}function fW(_,J,$,q){var Z=(Z=A6.current)?$Q(Z):null;if(!Z)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"?($=C7($.href),J=B0(Z).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"){_=C7($.href);var X=B0(Z).hoistableStyles,W=X.get(_);if(!W&&(Z=Z.ownerDocument||Z,W={type:"stylesheet",instance:null,count:0,state:{loading:E8,preload:null}},X.set(_,W),(X=Z.querySelector(A_(_)))&&!X._p&&(W.instance=X,W.state.loading=HJ|J4),!$4.has(_))){var B={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};$4.set(_,B),X||GP(Z,_,B,W.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 W}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"?($=C7($),J=W0(Z).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+'"'):H4.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):H4.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):H4.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function w7(_){return'href="'+D1(_)+'"'}function B_(_){return'link[rel="stylesheet"]['+_+"]"}function jW(_){return Y0({},_,{"data-precedence":_.precedence,precedence:null})}function GP(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=KJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=KJ}),J.addEventListener("error",function(){return q.loading|=LA}),g2(J,"link",$),x1(J),_.head.appendChild(J))}function C7(_){return'[src="'+D1(_)+'"]'}function A_(_){return"script[async]"+_}function vW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+D1($.href)+'"]');if(q)return J.instance=q,x1(q),q;var Z=Y0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),x1(q),g2(q,"style",Z),qQ(q,$.precedence,_),J.instance=q;case"stylesheet":Z=w7($.href);var X=_.querySelector(B_(Z));if(X)return J.state.loading|=e5,J.instance=X,x1(X),X;q=jW($),(Z=_4.get(Z))&&KZ(q,Z),X=(_.ownerDocument||_).createElement("link"),x1(X);var W=X;return W._p=new Promise(function(B,I){W.onload=B,W.onerror=I}),g2(X,"link",q),J.state.loading|=e5,qQ(X,$.precedence,_),J.instance=X;case"script":if(X=C7($.src),Z=_.querySelector(A_(X)))return J.instance=Z,x1(Z),Z;if(q=$,Z=_4.get(X))q=Y0({},$),HZ(q,Z);return _=_.ownerDocument||_,Z=_.createElement("script"),x1(Z),g2(Z,"link",q),_.head.appendChild(Z),J.instance=Z;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&e5)===b8&&(q=J.instance,J.state.loading|=e5,qQ(q,$.precedence,_));return J.instance}function qQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),Z=q.length?q[q.length-1]:null,X=Z,W=0;W<q.length;W++){var B=q[W];if(B.dataset.precedence===J)X=B;else if(X!==Z)break}X?X.parentNode.insertBefore(_,X.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function KZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function HZ(_,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,Z=Kq=new Map;Z.set($,q)}else Z=Kq,q=Z.get($),q||(q=new Map,Z.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(Z=0;Z<$.length;Z++){var X=$[Z];if(!(X[I_]||X[p2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==k7){var W=X.getAttribute(J)||"";W=_+W;var B=q.get(W);B?B.push(X):q.set(W,[X])}}return q}function yW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function ZP(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===X9||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:Z,disabled:X}=J;$=[],J.onLoad&&$.push("`onLoad`"),Z&&$.push("`onError`"),X!=null&&$.push("`disabled`"),Z=EI($,"and"),Z+=$.length===1?" prop":" props",X=$.length===1?"an "+Z:"the "+Z,$.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,Z)}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 kW(_){return _.type==="stylesheet"&&(_.state.loading&BA)===b8?!1:!0}function FP(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&e5)===b8){if($.instance===null){var Z=w7(q.href),X=J.querySelector(B_(Z));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=UQ.bind(_),J.then(_,_)),$.state.loading|=e5,$.instance=X,x1(X);return}X=J.ownerDocument||J,q=jW(q),(Z=_4.get(Z))&&KZ(q,Z),X=X.createElement("link"),x1(X);var W=X;W._p=new Promise(function(B,I){W.onload=B,W.onerror=I}),g2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&BA)===b8&&(_.count++,$=UQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function XP(_,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()}},Qw+J);0<_.imgBytes&&cF===0&&(cF=125*hI()*Uw);var Z=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>cF?50:qw)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(Z)}}: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(KP,_),Hq=null,UQ.call(_))}function KP(_,J){if(!(J.state.loading&e5)){var $=Hq.get(_);if($)var q=$.get(lF);else{$=new Map,Hq.set(_,$);for(var Z=_.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X<Z.length;X++){var W=Z[X];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")$.set(W.dataset.precedence,W),q=W}q&&$.set(lF,q)}Z=J.instance,W=Z.getAttribute("data-precedence"),X=$.get(W)||q,X===q&&$.set(lF,Z),$.set(W,Z),this.count++,q=UQ.bind(this),Z.addEventListener("load",q),Z.addEventListener("error",q),X?X.parentNode.insertBefore(Z,X.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(Z,_.firstChild)),J.state.loading|=e5}}function HP(_,J,$,q,Z,X,W,B,I){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=u8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=N2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N2(0),this.hiddenUpdates=N2(null),this.identifierPrefix=q,this.onUncaughtError=Z,this.onCaughtError=X,this.onRecoverableError=W,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 DW(_,J,$,q,Z,X,W,B,I,S,_1,J1){return _=new HP(_,J,$,W,I,S,_1,J1,B),J=vN,X===!0&&(J|=r2|z4),J|=G0,X=O(3,null,null,J),_.current=X,X.stateNode=_,J=xU(),F8(J),_.pooledCache=J,F8(J),X.memoizedState={element:q,isDehydrated:$,cache:J},lU(X),_}function uW(_){if(!_)return O6;return _=O6,_}function YZ(_,J,$,q,Z,X){if(i2&&typeof i2.onScheduleFiberRoot==="function")try{i2.onScheduleFiberRoot(V7,q,$)}catch(W){d4||(d4=!0,console.error("React instrumentation encountered an error: %o",W))}Z=uW(Z),q.context===null?q.context=Z:q.pendingContext=Z,l4&&V5!==null&&!OA&&(OA=!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"?($=S7($),J=B0(Z).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+'"'):Y4.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):Y4.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):Y4.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function C7(_){return'href="'+D1(_)+'"'}function A_(_){return'link[rel="stylesheet"]['+_+"]"}function jW(_){return Y0({},_,{"data-precedence":_.precedence,precedence:null})}function GP(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=HJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=HJ}),J.addEventListener("error",function(){return q.loading|=LA}),m2(J,"link",$),m1(J),_.head.appendChild(J))}function S7(_){return'[src="'+D1(_)+'"]'}function M_(_){return"script[async]"+_}function vW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+D1($.href)+'"]');if(q)return J.instance=q,m1(q),q;var Z=Y0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),m1(q),m2(q,"style",Z),qQ(q,$.precedence,_),J.instance=q;case"stylesheet":Z=C7($.href);var X=_.querySelector(A_(Z));if(X)return J.state.loading|=J4,J.instance=X,m1(X),X;q=jW($),(Z=$4.get(Z))&&KZ(q,Z),X=(_.ownerDocument||_).createElement("link"),m1(X);var W=X;return W._p=new Promise(function(B,I){W.onload=B,W.onerror=I}),m2(X,"link",q),J.state.loading|=J4,qQ(X,$.precedence,_),J.instance=X;case"script":if(X=S7($.src),Z=_.querySelector(M_(X)))return J.instance=Z,m1(Z),Z;if(q=$,Z=$4.get(X))q=Y0({},$),HZ(q,Z);return _=_.ownerDocument||_,Z=_.createElement("script"),m1(Z),m2(Z,"link",q),_.head.appendChild(Z),J.instance=Z;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&J4)===E8&&(q=J.instance,J.state.loading|=J4,qQ(q,$.precedence,_));return J.instance}function qQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),Z=q.length?q[q.length-1]:null,X=Z,W=0;W<q.length;W++){var B=q[W];if(B.dataset.precedence===J)X=B;else if(X!==Z)break}X?X.parentNode.insertBefore(_,X.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function KZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function HZ(_,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,Z=Kq=new Map;Z.set($,q)}else Z=Kq,q=Z.get($),q||(q=new Map,Z.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(Z=0;Z<$.length;Z++){var X=$[Z];if(!(X[P_]||X[g2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==D7){var W=X.getAttribute(J)||"";W=_+W;var B=q.get(W);B?B.push(X):q.set(W,[X])}}return q}function yW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function ZP(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===K9||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:Z,disabled:X}=J;$=[],J.onLoad&&$.push("`onLoad`"),Z&&$.push("`onError`"),X!=null&&$.push("`disabled`"),Z=EI($,"and"),Z+=$.length===1?" prop":" props",X=$.length===1?"an "+Z:"the "+Z,$.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,Z)}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 kW(_){return _.type==="stylesheet"&&(_.state.loading&BA)===E8?!1:!0}function FP(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&J4)===E8){if($.instance===null){var Z=C7(q.href),X=J.querySelector(A_(Z));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=UQ.bind(_),J.then(_,_)),$.state.loading|=J4,$.instance=X,m1(X);return}X=J.ownerDocument||J,q=jW(q),(Z=$4.get(Z))&&KZ(q,Z),X=X.createElement("link"),m1(X);var W=X;W._p=new Promise(function(B,I){W.onload=B,W.onerror=I}),m2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&BA)===E8&&(_.count++,$=UQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function XP(_,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()}},Qw+J);0<_.imgBytes&&cF===0&&(cF=125*hI()*Uw);var Z=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>cF?50:qw)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(Z)}}: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(KP,_),Hq=null,UQ.call(_))}function KP(_,J){if(!(J.state.loading&J4)){var $=Hq.get(_);if($)var q=$.get(lF);else{$=new Map,Hq.set(_,$);for(var Z=_.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X<Z.length;X++){var W=Z[X];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")$.set(W.dataset.precedence,W),q=W}q&&$.set(lF,q)}Z=J.instance,W=Z.getAttribute("data-precedence"),X=$.get(W)||q,X===q&&$.set(lF,Z),$.set(W,Z),this.count++,q=UQ.bind(this),Z.addEventListener("load",q),Z.addEventListener("error",q),X?X.parentNode.insertBefore(Z,X.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(Z,_.firstChild)),J.state.loading|=J4}}function HP(_,J,$,q,Z,X,W,B,I){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=b8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=I2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=I2(0),this.hiddenUpdates=I2(null),this.identifierPrefix=q,this.onUncaughtError=Z,this.onCaughtError=X,this.onRecoverableError=W,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 DW(_,J,$,q,Z,X,W,B,I,S,_1,J1){return _=new HP(_,J,$,W,I,S,_1,J1,B),J=vN,X===!0&&(J|=r2|W4),J|=G0,X=O(3,null,null,J),_.current=X,X.stateNode=_,J=xU(),X8(J),_.pooledCache=J,X8(J),X.memoizedState={element:q,isDehydrated:$,cache:J},lU(X),_}function uW(_){if(!_)return P6;return _=P6,_}function YZ(_,J,$,q,Z,X){if(i2&&typeof i2.onScheduleFiberRoot==="function")try{i2.onScheduleFiberRoot(y7,q,$)}catch(W){i4||(i4=!0,console.error("React instrumentation encountered an error: %o",W))}Z=uW(Z),q.context===null?q.context=Z:q.pendingContext=Z,d4&&y5!==null&&!OA&&(OA=!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.`,g(V5)||"Unknown")),q=G6(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),$=Z6(_,q,J),$!==null&&(j4(J,"root.render()",null),e0($,_,J),o9($,_,J))}function bW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function zZ(_,J){bW(_,J),(_=_.alternate)&&bW(_,J)}function EW(_){if(_.tag===13||_.tag===31){var J=d2(_,67108864);J!==null&&e0(J,_,67108864),zZ(_,67108864)}}function hW(_){if(_.tag===13||_.tag===31){var J=f5(_);J=Z4(J);var $=d2(_,J);$!==null&&e0($,_,J),zZ(_,J)}}function YP(){return V5}function zP(_,J,$,q){var Z=W1.T;W1.T=null;var X=C0.p;try{C0.p=y5,WZ(_,J,$,q)}finally{C0.p=X,W1.T=Z}}function WP(_,J,$,q){var Z=W1.T;W1.T=null;var X=C0.p;try{C0.p=Y4,WZ(_,J,$,q)}finally{C0.p=X,W1.T=Z}}function WZ(_,J,$,q){if(zq){var Z=LZ(q);if(Z===null)eG(_,J,q,Wq,$),mW(_,q);else if(LP(Z,_,J,$,q))q.stopPropagation();else if(mW(_,q),J&4&&-1<Zw.indexOf(_)){for(;Z!==null;){var X=r1(Z);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var W=K2(X.pendingLanes);if(W!==0){var B=X;B.pendingLanes|=2;for(B.entangledLanes|=2;W;){var I=1<<31-_5(W);B.entanglements[1]|=I,W&=~I}m4(X),(O0&(j2|b5))===E2&&(tQ=D2()+sB,H_(0,!1))}}break;case 31:case 13:B=d2(X,2),B!==null&&e0(B,X,2),I7(),zZ(X,2)}if(X=LZ(q),X===null&&eG(_,J,q,Wq,$),X===Z)break;Z=X}Z!==null&&q.stopPropagation()}else eG(_,J,q,null,$)}}function LZ(_){return _=OU(_),BZ(_)}function BZ(_){if(Wq=null,_=y1(_),_!==null){var J=w(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=u(J),_!==null)return _;_=null}else if($===31){if(_=C(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return Wq=_,null}function xW(_){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 y5;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 Y4;case"message":switch(NP()){case jZ:return y5;case vZ:return Y4;case v7:case wP:return r4;case VZ:return BQ;default:return r4}default:return r4}}function mW(_,J){switch(_){case"focusin":case"focusout":h6=null;break;case"dragenter":case"dragleave":x6=null;break;case"mouseover":case"mouseout":m6=null;break;case"pointerover":case"pointerout":YJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":zJ.delete(J.pointerId)}}function M_(_,J,$,q,Z,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[Z]},J!==null&&(J=r1(J),J!==null&&EW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,Z!==null&&J.indexOf(Z)===-1&&J.push(Z),_}function LP(_,J,$,q,Z){switch(J){case"focusin":return h6=M_(h6,_,J,$,q,Z),!0;case"dragenter":return x6=M_(x6,_,J,$,q,Z),!0;case"mouseover":return m6=M_(m6,_,J,$,q,Z),!0;case"pointerover":var X=Z.pointerId;return YJ.set(X,M_(YJ.get(X)||null,_,J,$,q,Z)),!0;case"gotpointercapture":return X=Z.pointerId,zJ.set(X,M_(zJ.get(X)||null,_,J,$,q,Z)),!0}return!1}function gW(_){var J=y1(_.target);if(J!==null){var $=w(J);if($!==null){if(J=$.tag,J===13){if(J=u($),J!==null){_.blockedOn=J,O1(_.priority,function(){hW($)});return}}else if(J===31){if(J=C($),J!==null){_.blockedOn=J,O1(_.priority,function(){hW($)});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 $=LZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),Z=q;P_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),P_=Z,$.target.dispatchEvent(q),P_===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."),P_=null}else return J=r1($),J!==null&&EW(J),_.blockedOn=$,!1;J.shift()}return!0}function pW(_,J,$){ZQ(_)&&$.delete(J)}function BP(){dF=!1,h6!==null&&ZQ(h6)&&(h6=null),x6!==null&&ZQ(x6)&&(x6=null),m6!==null&&ZQ(m6)&&(m6=null),YJ.forEach(pW),zJ.forEach(pW)}function FQ(_,J){_.blockedOn===J&&(_.blockedOn=null,dF||(dF=!0,I0.unstable_scheduleCallback(I0.unstable_NormalPriority,BP)))}function cW(_){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],Z=_[J+2];if(typeof q!=="function")if(BZ(q||$)===null)continue;else break;var X=r1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:Z,method:$.method,action:q},Object.freeze($),BG(X,$,q,Z))}}))}function S7(_){function J(I){return FQ(I,_)}h6!==null&&FQ(h6,_),x6!==null&&FQ(x6,_),m6!==null&&FQ(m6,_),YJ.forEach(J),zJ.forEach(J);for(var $=0;$<g6.length;$++){var q=g6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<g6.length&&($=g6[0],$.blockedOn===null);)gW($),$.blockedOn===null&&g6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var Z=$[q],X=$[q+1],W=Z[J5]||null;if(typeof X==="function")W||cW($);else if(W){var B=null;if(X&&X.hasAttribute("formAction")){if(Z=X,W=X[J5]||null)B=W.formAction;else if(BZ(Z)!==null)continue}else B=W.action;typeof B==="function"?$[q+1]=B:($.splice(q,3),q-=3),cW($)}}}function lW(){function _(X){X.canIntercept&&X.info==="react-transition"&&X.intercept({handler:function(){return new Promise(function(W){return Z=W})},focusReset:"manual",scroll:"manual"})}function J(){Z!==null&&(Z(),Z=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,Z=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),Z!==null&&(Z(),Z=null)}}}function AZ(_){this._internalRoot=_}function XQ(_){this._internalRoot=_}function dW(_){_[A6]&&(_._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,AP=Symbol.for("react.element"),p4=Symbol.for("react.transitional.element"),f7=Symbol.for("react.portal"),j7=Symbol.for("react.fragment"),KQ=Symbol.for("react.strict_mode"),MZ=Symbol.for("react.profiler"),TZ=Symbol.for("react.consumer"),c4=Symbol.for("react.context"),T_=Symbol.for("react.forward_ref"),RZ=Symbol.for("react.suspense"),OZ=Symbol.for("react.suspense_list"),HQ=Symbol.for("react.memo"),v5=Symbol.for("react.lazy"),IZ=Symbol.for("react.activity"),MP=Symbol.for("react.memo_cache_sentinel"),iW=Symbol.iterator,TP=Symbol.for("react.client.reference"),S2=Array.isArray,W1=H9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C0=aF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,RP=Object.freeze({pending:!1,data:null,method:null,action:null}),PZ=[],NZ=[],T3=-1,W6=e(null),R_=e(null),L6=e(null),YQ=e(null),O_=0,rW,aW,sW,tW,oW,nW,eW;k.__reactDisabledLog=!0;var wZ,_L,CZ=!1,SZ=new(typeof WeakMap==="function"?WeakMap:Map),V5=null,l4=!1,H4=Object.prototype.hasOwnProperty,fZ=I0.unstable_scheduleCallback,OP=I0.unstable_cancelCallback,IP=I0.unstable_shouldYield,PP=I0.unstable_requestPaint,D2=I0.unstable_now,NP=I0.unstable_getCurrentPriorityLevel,jZ=I0.unstable_ImmediatePriority,vZ=I0.unstable_UserBlockingPriority,v7=I0.unstable_NormalPriority,wP=I0.unstable_LowPriority,VZ=I0.unstable_IdlePriority,CP=I0.log,SP=I0.unstable_setDisableYieldValue,V7=null,i2=null,d4=!1,i4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",_5=Math.clz32?Math.clz32:O2,fP=Math.log,jP=Math.LN2,zQ=256,WQ=262144,LQ=4194304,y5=2,Y4=8,r4=32,BQ=268435456,B6=Math.random().toString(36).slice(2),p2="__reactFiber$"+B6,J5="__reactProps$"+B6,A6="__reactContainer$"+B6,yZ="__reactEvents$"+B6,vP="__reactListeners$"+B6,VP="__reactHandles$"+B6,JL="__reactResources$"+B6,I_="__reactMarker$"+B6,$L=new Set,L8={},kZ={},yP={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},kP=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]*$"),QL={},qL={},DP=/[\n"\\]/g,UL=!1,GL=!1,ZL=!1,FL=!1,XL=!1,KL=!1,HL=["value","defaultValue"],YL=!1,zL=/["'&<>\n\t]|^\s|\s$/,uP="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(" "),WL="applet caption html table td th marquee object template foreignObject desc title".split(" "),bP=WL.concat(["button"]),EP="dd dt li option optgroup p rp rt".split(" "),LL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},AQ={},DZ={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"]},BL=/([A-Z])/g,AL=/^ms-/,hP=/^(?:webkit|moz|o)[A-Z]/,xP=/^-ms-/,mP=/-(.)/g,ML=/;\s*$/,y7={},uZ={},TL=!1,RL=!1,OL=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",k7="http://www.w3.org/2000/svg",gP=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"},IL={"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},D7={},pP=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]*$"),cP=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]*$"),PL=!1,$5={},NL=/^on./,lP=/^on[^A-Z]/,dP=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]*$"),iP=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]*$"),rP=/^[\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,P_=null,u7=null,b7=null,bZ=!1,a4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),EZ=!1;if(a4)try{var N_={};Object.defineProperty(N_,"passive",{get:function(){EZ=!0}}),window.addEventListener("test",N_,N_),window.removeEventListener("test",N_,N_)}catch(_){EZ=!1}var M6=null,hZ=null,RQ=null,B8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OQ=Y5(B8),w_=Y0({},B8,{view:0,detail:0}),aP=Y5(w_),xZ,mZ,C_,IQ=Y0({},w_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:IU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==C_&&(C_&&_.type==="mousemove"?(xZ=_.screenX-C_.screenX,mZ=_.screenY-C_.screenY):mZ=xZ=0,C_=_),xZ},movementY:function(_){return"movementY"in _?_.movementY:mZ}}),wL=Y5(IQ),sP=Y0({},IQ,{dataTransfer:0}),tP=Y5(sP),oP=Y0({},w_,{relatedTarget:0}),gZ=Y5(oP),nP=Y0({},B8,{animationName:0,elapsedTime:0,pseudoElement:0}),eP=Y5(nP),_N=Y0({},B8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),JN=Y5(_N),$N=Y0({},B8,{data:0}),CL=Y5($N),QN=CL,qN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UN={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"},GN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},ZN=Y0({},w_,{key:function(_){if(_.key){var J=qN[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=Z$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?UN[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:IU,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}}),FN=Y5(ZN),XN=Y0({},IQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SL=Y5(XN),KN=Y0({},w_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:IU}),HN=Y5(KN),YN=Y0({},B8,{propertyName:0,elapsedTime:0,pseudoElement:0}),zN=Y5(YN),WN=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}),LN=Y5(WN),BN=Y0({},B8,{newState:0,oldState:0}),AN=Y5(BN),MN=[9,13,27,32],fL=229,pZ=a4&&"CompositionEvent"in window,S_=null;a4&&"documentMode"in document&&(S_=document.documentMode);var TN=a4&&"TextEvent"in window&&!S_,jL=a4&&(!pZ||S_&&8<S_&&11>=S_),vL=32,VL=String.fromCharCode(vL),yL=!1,E7=!1,RN={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},f_=null,j_=null,kL=!1;a4&&(kL=gO("input")&&(!document.documentMode||9<document.documentMode));var Q5=typeof Object.is==="function"?Object.is:rO,ON=a4&&"documentMode"in document&&11>=document.documentMode,h7=null,cZ=null,v_=null,lZ=!1,x7={animationend:J8("Animation","AnimationEnd"),animationiteration:J8("Animation","AnimationIteration"),animationstart:J8("Animation","AnimationStart"),transitionrun:J8("Transition","TransitionRun"),transitionstart:J8("Transition","TransitionStart"),transitioncancel:J8("Transition","TransitionCancel"),transitionend:J8("Transition","TransitionEnd")},dZ={},DL={};a4&&(DL=document.createElement("div").style,("AnimationEvent"in window)||(delete x7.animationend.animation,delete x7.animationiteration.animation,delete x7.animationstart.animation),("TransitionEvent"in window)||delete x7.transitionend.transition);var uL=$8("animationend"),bL=$8("animationiteration"),EL=$8("animationstart"),IN=$8("transitionrun"),PN=$8("transitionstart"),NN=$8("transitioncancel"),hL=$8("transitionend"),xL=new Map,iZ="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(" ");iZ.push("scrollEnd");var mL=0;if(typeof performance==="object"&&typeof performance.now==="function")var wN=performance,gL=function(){return wN.now()};else{var CN=Date;gL=function(){return CN.now()}}var rZ=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(_)},SN="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.",PQ=0,aZ=1,sZ=2,tZ=3,NQ="– ",wQ="+ ",pL="  ",g0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",c5="Components ⚛",z0="Scheduler ⚛",L0="Blocking",T6=!1,R3={color:"primary",properties:null,tooltipText:"",track:c5},R6={start:-0,end:-0,detail:{devtools:R3}},fN=["Changed Props",""],cL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",jN=["Changed Props",cL],V_=1,O3=2,l5=[],m7=0,oZ=0,O6={};Object.freeze(O6);var d5=null,g7=null,s1=0,vN=1,G0=2,r2=8,z4=16,VN=32,lL=!1;try{var dL=Object.preventExtensions({})}catch(_){lL=!0}var nZ=new WeakMap,p7=[],c7=0,CQ=null,y_=0,i5=[],r5=0,A8=null,I3=1,P3="",c2=null,p0=null,A0=!1,s4=!1,k5=null,I6=null,a5=!1,eZ=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."),_F=e(null),JF=e(null),iL={},SQ=null,l7=null,d7=!1,yN=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 $()})}},kN=I0.unstable_scheduleCallback,DN=I0.unstable_NormalPriority,z2={$$typeof:c4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},W2=I0.unstable_now,fQ=console.createTask?console.createTask:function(){return null},k_=1,jQ=2,u2=-0,P6=-0,N3=-0,w3=null,q5=-1.1,M8=-0,t0=-0,c1=-1.1,i1=-1.1,d0=null,_2=!1,N6=-0,t4=-1.1,D_=null,w6=0,$F=null,QF=null,T8=-1.1,u_=null,i7=-1.1,vQ=-1.1,o4=-0,C3=-1.1,s5=-1.1,qF=0,b_=null,rL=null,aL=null,C6=-1.1,R8=null,S6=-1.1,VQ=-1.1,sL=-0,tL=-0,yQ=0,S3=null,oL=0,E_=-1.1,kQ=!1,DQ=!1,h_=null,UF=0,O8=0,r7=null,nL=W1.S;W1.S=function(_,J){if(rB=D2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>C3&&0>s5){C3=W2();var $=W_(),q=z_();if($!==S6||q!==R8)S6=-1.1;C6=$,R8=q}_I(_,J)}nL!==null&&nL(_,J)};var I8=e(null),W4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},x_=[],m_=[],g_=[],p_=[],c_=[],l_=[],P8=new Set;W4.recordUnsafeLifecycleWarnings=function(_,J){P8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&x_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillMount==="function"&&m_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&g_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&p_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&c_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillUpdate==="function"&&l_.push(_))},W4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<x_.length&&(x_.forEach(function(B){_.add(g(B)||"Component"),P8.add(B.type)}),x_=[]);var J=new Set;0<m_.length&&(m_.forEach(function(B){J.add(g(B)||"Component"),P8.add(B.type)}),m_=[]);var $=new Set;0<g_.length&&(g_.forEach(function(B){$.add(g(B)||"Component"),P8.add(B.type)}),g_=[]);var q=new Set;0<p_.length&&(p_.forEach(function(B){q.add(g(B)||"Component"),P8.add(B.type)}),p_=[]);var Z=new Set;0<c_.length&&(c_.forEach(function(B){Z.add(g(B)||"Component"),P8.add(B.type)}),c_=[]);var X=new Set;if(0<l_.length&&(l_.forEach(function(B){X.add(g(B)||"Component"),P8.add(B.type)}),l_=[]),0<J.size){var W=A(J);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
184
+ Check the render method of %s.`,x(y5)||"Unknown")),q=F6(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),$=X6(_,q,J),$!==null&&(v4(J,"root.render()",null),_2($,_,J),n9($,_,J))}function bW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function zZ(_,J){bW(_,J),(_=_.alternate)&&bW(_,J)}function EW(_){if(_.tag===13||_.tag===31){var J=d2(_,67108864);J!==null&&_2(J,_,67108864),zZ(_,67108864)}}function hW(_){if(_.tag===13||_.tag===31){var J=j5(_);J=p5(J);var $=d2(_,J);$!==null&&_2($,_,J),zZ(_,J)}}function YP(){return y5}function zP(_,J,$,q){var Z=z1.T;z1.T=null;var X=C0.p;try{C0.p=k5,WZ(_,J,$,q)}finally{C0.p=X,z1.T=Z}}function WP(_,J,$,q){var Z=z1.T;z1.T=null;var X=C0.p;try{C0.p=z4,WZ(_,J,$,q)}finally{C0.p=X,z1.T=Z}}function WZ(_,J,$,q){if(zq){var Z=LZ(q);if(Z===null)eG(_,J,q,Wq,$),mW(_,q);else if(LP(Z,_,J,$,q))q.stopPropagation();else if(mW(_,q),J&4&&-1<Zw.indexOf(_)){for(;Z!==null;){var X=a1(Z);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var W=j2(X.pendingLanes);if(W!==0){var B=X;B.pendingLanes|=2;for(B.entangledLanes|=2;W;){var I=1<<31-_5(W);B.entanglements[1]|=I,W&=~I}g4(X),(O0&(C2|E5))===u2&&(tQ=y2()+sB,Y_(0,!1))}}break;case 31:case 13:B=d2(X,2),B!==null&&_2(B,X,2),P7(),zZ(X,2)}if(X=LZ(q),X===null&&eG(_,J,q,Wq,$),X===Z)break;Z=X}Z!==null&&q.stopPropagation()}else eG(_,J,q,null,$)}}function LZ(_){return _=OU(_),BZ(_)}function BZ(_){if(Wq=null,_=u1(_),_!==null){var J=w(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=D(J),_!==null)return _;_=null}else if($===31){if(_=C(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return Wq=_,null}function xW(_){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 k5;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 z4;case"message":switch(NP()){case jZ:return k5;case vZ:return z4;case V7:case wP:return a4;case VZ:return BQ;default:return a4}default:return a4}}function mW(_,J){switch(_){case"focusin":case"focusout":m6=null;break;case"dragenter":case"dragleave":g6=null;break;case"mouseover":case"mouseout":p6=null;break;case"pointerover":case"pointerout":zJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":WJ.delete(J.pointerId)}}function T_(_,J,$,q,Z,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[Z]},J!==null&&(J=a1(J),J!==null&&EW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,Z!==null&&J.indexOf(Z)===-1&&J.push(Z),_}function LP(_,J,$,q,Z){switch(J){case"focusin":return m6=T_(m6,_,J,$,q,Z),!0;case"dragenter":return g6=T_(g6,_,J,$,q,Z),!0;case"mouseover":return p6=T_(p6,_,J,$,q,Z),!0;case"pointerover":var X=Z.pointerId;return zJ.set(X,T_(zJ.get(X)||null,_,J,$,q,Z)),!0;case"gotpointercapture":return X=Z.pointerId,WJ.set(X,T_(WJ.get(X)||null,_,J,$,q,Z)),!0}return!1}function gW(_){var J=u1(_.target);if(J!==null){var $=w(J);if($!==null){if(J=$.tag,J===13){if(J=D($),J!==null){_.blockedOn=J,P1(_.priority,function(){hW($)});return}}else if(J===31){if(J=C($),J!==null){_.blockedOn=J,P1(_.priority,function(){hW($)});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 $=LZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),Z=q;N_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),N_=Z,$.target.dispatchEvent(q),N_===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."),N_=null}else return J=a1($),J!==null&&EW(J),_.blockedOn=$,!1;J.shift()}return!0}function pW(_,J,$){ZQ(_)&&$.delete(J)}function BP(){dF=!1,m6!==null&&ZQ(m6)&&(m6=null),g6!==null&&ZQ(g6)&&(g6=null),p6!==null&&ZQ(p6)&&(p6=null),zJ.forEach(pW),WJ.forEach(pW)}function FQ(_,J){_.blockedOn===J&&(_.blockedOn=null,dF||(dF=!0,I0.unstable_scheduleCallback(I0.unstable_NormalPriority,BP)))}function cW(_){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],Z=_[J+2];if(typeof q!=="function")if(BZ(q||$)===null)continue;else break;var X=a1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:Z,method:$.method,action:q},Object.freeze($),BG(X,$,q,Z))}}))}function f7(_){function J(I){return FQ(I,_)}m6!==null&&FQ(m6,_),g6!==null&&FQ(g6,_),p6!==null&&FQ(p6,_),zJ.forEach(J),WJ.forEach(J);for(var $=0;$<c6.length;$++){var q=c6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<c6.length&&($=c6[0],$.blockedOn===null);)gW($),$.blockedOn===null&&c6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var Z=$[q],X=$[q+1],W=Z[J5]||null;if(typeof X==="function")W||cW($);else if(W){var B=null;if(X&&X.hasAttribute("formAction")){if(Z=X,W=X[J5]||null)B=W.formAction;else if(BZ(Z)!==null)continue}else B=W.action;typeof B==="function"?$[q+1]=B:($.splice(q,3),q-=3),cW($)}}}function lW(){function _(X){X.canIntercept&&X.info==="react-transition"&&X.intercept({handler:function(){return new Promise(function(W){return Z=W})},focusReset:"manual",scroll:"manual"})}function J(){Z!==null&&(Z(),Z=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,Z=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),Z!==null&&(Z(),Z=null)}}}function AZ(_){this._internalRoot=_}function XQ(_){this._internalRoot=_}function dW(_){_[T6]&&(_._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,AP=Symbol.for("react.element"),c4=Symbol.for("react.transitional.element"),j7=Symbol.for("react.portal"),v7=Symbol.for("react.fragment"),KQ=Symbol.for("react.strict_mode"),MZ=Symbol.for("react.profiler"),TZ=Symbol.for("react.consumer"),l4=Symbol.for("react.context"),R_=Symbol.for("react.forward_ref"),RZ=Symbol.for("react.suspense"),OZ=Symbol.for("react.suspense_list"),HQ=Symbol.for("react.memo"),V5=Symbol.for("react.lazy"),IZ=Symbol.for("react.activity"),MP=Symbol.for("react.memo_cache_sentinel"),iW=Symbol.iterator,TP=Symbol.for("react.client.reference"),N2=Array.isArray,z1=Y9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C0=aF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,RP=Object.freeze({pending:!1,data:null,method:null,action:null}),PZ=[],NZ=[],P3=-1,B6=n(null),O_=n(null),A6=n(null),YQ=n(null),I_=0,rW,aW,sW,tW,oW,nW,eW;k.__reactDisabledLog=!0;var wZ,_L,CZ=!1,SZ=new(typeof WeakMap==="function"?WeakMap:Map),y5=null,d4=!1,Y4=Object.prototype.hasOwnProperty,fZ=I0.unstable_scheduleCallback,OP=I0.unstable_cancelCallback,IP=I0.unstable_shouldYield,PP=I0.unstable_requestPaint,y2=I0.unstable_now,NP=I0.unstable_getCurrentPriorityLevel,jZ=I0.unstable_ImmediatePriority,vZ=I0.unstable_UserBlockingPriority,V7=I0.unstable_NormalPriority,wP=I0.unstable_LowPriority,VZ=I0.unstable_IdlePriority,CP=I0.log,SP=I0.unstable_setDisableYieldValue,y7=null,i2=null,i4=!1,r4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",_5=Math.clz32?Math.clz32:e0,fP=Math.log,jP=Math.LN2,zQ=256,WQ=262144,LQ=4194304,k5=2,z4=8,a4=32,BQ=268435456,M6=Math.random().toString(36).slice(2),g2="__reactFiber$"+M6,J5="__reactProps$"+M6,T6="__reactContainer$"+M6,yZ="__reactEvents$"+M6,vP="__reactListeners$"+M6,VP="__reactHandles$"+M6,JL="__reactResources$"+M6,P_="__reactMarker$"+M6,$L=new Set,B8={},kZ={},yP={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},kP=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]*$"),QL={},qL={},DP=/[\n"\\]/g,UL=!1,GL=!1,ZL=!1,FL=!1,XL=!1,KL=!1,HL=["value","defaultValue"],YL=!1,zL=/["'&<>\n\t]|^\s|\s$/,uP="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(" "),WL="applet caption html table td th marquee object template foreignObject desc title".split(" "),bP=WL.concat(["button"]),EP="dd dt li option optgroup p rp rt".split(" "),LL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},AQ={},DZ={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"]},BL=/([A-Z])/g,AL=/^ms-/,hP=/^(?:webkit|moz|o)[A-Z]/,xP=/^-ms-/,mP=/-(.)/g,ML=/;\s*$/,k7={},uZ={},TL=!1,RL=!1,OL=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",D7="http://www.w3.org/2000/svg",gP=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"},IL={"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},u7={},pP=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]*$"),cP=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]*$"),PL=!1,$5={},NL=/^on./,lP=/^on[^A-Z]/,dP=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]*$"),iP=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]*$"),rP=/^[\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,N_=null,b7=null,E7=null,bZ=!1,s4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),EZ=!1;if(s4)try{var w_={};Object.defineProperty(w_,"passive",{get:function(){EZ=!0}}),window.addEventListener("test",w_,w_),window.removeEventListener("test",w_,w_)}catch(_){EZ=!1}var R6=null,hZ=null,RQ=null,A8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OQ=z5(A8),C_=Y0({},A8,{view:0,detail:0}),aP=z5(C_),xZ,mZ,S_,IQ=Y0({},C_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:IU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==S_&&(S_&&_.type==="mousemove"?(xZ=_.screenX-S_.screenX,mZ=_.screenY-S_.screenY):mZ=xZ=0,S_=_),xZ},movementY:function(_){return"movementY"in _?_.movementY:mZ}}),wL=z5(IQ),sP=Y0({},IQ,{dataTransfer:0}),tP=z5(sP),oP=Y0({},C_,{relatedTarget:0}),gZ=z5(oP),nP=Y0({},A8,{animationName:0,elapsedTime:0,pseudoElement:0}),eP=z5(nP),_N=Y0({},A8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),JN=z5(_N),$N=Y0({},A8,{data:0}),CL=z5($N),QN=CL,qN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UN={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"},GN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},ZN=Y0({},C_,{key:function(_){if(_.key){var J=qN[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=Z$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?UN[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:IU,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}}),FN=z5(ZN),XN=Y0({},IQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SL=z5(XN),KN=Y0({},C_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:IU}),HN=z5(KN),YN=Y0({},A8,{propertyName:0,elapsedTime:0,pseudoElement:0}),zN=z5(YN),WN=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}),LN=z5(WN),BN=Y0({},A8,{newState:0,oldState:0}),AN=z5(BN),MN=[9,13,27,32],fL=229,pZ=s4&&"CompositionEvent"in window,f_=null;s4&&"documentMode"in document&&(f_=document.documentMode);var TN=s4&&"TextEvent"in window&&!f_,jL=s4&&(!pZ||f_&&8<f_&&11>=f_),vL=32,VL=String.fromCharCode(vL),yL=!1,h7=!1,RN={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},j_=null,v_=null,kL=!1;s4&&(kL=gO("input")&&(!document.documentMode||9<document.documentMode));var Q5=typeof Object.is==="function"?Object.is:rO,ON=s4&&"documentMode"in document&&11>=document.documentMode,x7=null,cZ=null,V_=null,lZ=!1,m7={animationend:$8("Animation","AnimationEnd"),animationiteration:$8("Animation","AnimationIteration"),animationstart:$8("Animation","AnimationStart"),transitionrun:$8("Transition","TransitionRun"),transitionstart:$8("Transition","TransitionStart"),transitioncancel:$8("Transition","TransitionCancel"),transitionend:$8("Transition","TransitionEnd")},dZ={},DL={};s4&&(DL=document.createElement("div").style,("AnimationEvent"in window)||(delete m7.animationend.animation,delete m7.animationiteration.animation,delete m7.animationstart.animation),("TransitionEvent"in window)||delete m7.transitionend.transition);var uL=Q8("animationend"),bL=Q8("animationiteration"),EL=Q8("animationstart"),IN=Q8("transitionrun"),PN=Q8("transitionstart"),NN=Q8("transitioncancel"),hL=Q8("transitionend"),xL=new Map,iZ="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(" ");iZ.push("scrollEnd");var mL=0;if(typeof performance==="object"&&typeof performance.now==="function")var wN=performance,gL=function(){return wN.now()};else{var CN=Date;gL=function(){return CN.now()}}var rZ=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(_)},SN="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.",PQ=0,aZ=1,sZ=2,tZ=3,NQ="– ",wQ="+ ",pL="  ",x0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",d5="Components ⚛",z0="Scheduler ⚛",W0="Blocking",O6=!1,N3={color:"primary",properties:null,tooltipText:"",track:d5},I6={start:-0,end:-0,detail:{devtools:N3}},fN=["Changed Props",""],cL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",jN=["Changed Props",cL],y_=1,w3=2,i5=[],g7=0,oZ=0,P6={};Object.freeze(P6);var r5=null,p7=null,t1=0,vN=1,G0=2,r2=8,W4=16,VN=32,lL=!1;try{var dL=Object.preventExtensions({})}catch(_){lL=!0}var nZ=new WeakMap,c7=[],l7=0,CQ=null,k_=0,a5=[],s5=0,M8=null,C3=1,S3="",p2=null,m0=null,A0=!1,t4=!1,D5=null,N6=null,t5=!1,eZ=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."),_F=n(null),JF=n(null),iL={},SQ=null,d7=null,i7=!1,yN=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 $()})}},kN=I0.unstable_scheduleCallback,DN=I0.unstable_NormalPriority,Y2={$$typeof:l4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},z2=I0.unstable_now,fQ=console.createTask?console.createTask:function(){return null},D_=1,jQ=2,k2=-0,w6=-0,f3=-0,j3=null,q5=-1.1,T8=-0,t0=-0,l1=-1.1,r1=-1.1,d0=null,J2=!1,C6=-0,o4=-1.1,u_=null,S6=0,$F=null,QF=null,R8=-1.1,b_=null,r7=-1.1,vQ=-1.1,n4=-0,v3=-1.1,o5=-1.1,qF=0,E_=null,rL=null,aL=null,f6=-1.1,O8=null,j6=-1.1,VQ=-1.1,sL=-0,tL=-0,yQ=0,V3=null,oL=0,h_=-1.1,kQ=!1,DQ=!1,x_=null,UF=0,I8=0,a7=null,nL=z1.S;z1.S=function(_,J){if(rB=y2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>v3&&0>o5){v3=z2();var $=L_(),q=W_();if($!==j6||q!==O8)j6=-1.1;f6=$,O8=q}_I(_,J)}nL!==null&&nL(_,J)};var P8=n(null),L4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},m_=[],g_=[],p_=[],c_=[],l_=[],d_=[],N8=new Set;L4.recordUnsafeLifecycleWarnings=function(_,J){N8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&m_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillMount==="function"&&g_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&p_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&c_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&l_.push(_),_.mode&r2&&typeof J.UNSAFE_componentWillUpdate==="function"&&d_.push(_))},L4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<m_.length&&(m_.forEach(function(B){_.add(x(B)||"Component"),N8.add(B.type)}),m_=[]);var J=new Set;0<g_.length&&(g_.forEach(function(B){J.add(x(B)||"Component"),N8.add(B.type)}),g_=[]);var $=new Set;0<p_.length&&(p_.forEach(function(B){$.add(x(B)||"Component"),N8.add(B.type)}),p_=[]);var q=new Set;0<c_.length&&(c_.forEach(function(B){q.add(x(B)||"Component"),N8.add(B.type)}),c_=[]);var Z=new Set;0<l_.length&&(l_.forEach(function(B){Z.add(x(B)||"Component"),N8.add(B.type)}),l_=[]);var X=new Set;if(0<d_.length&&(d_.forEach(function(B){X.add(x(B)||"Component"),N8.add(B.type)}),d_=[]),0<J.size){var W=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`,W)),0<Z.size&&(W=A(Z),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`,W))};var uQ=new Map,eL=new Set;W4.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."):!eL.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(_))},W4.flushLegacyContextWarning=function(){uQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(Z){$.add(g(Z)||"Component"),eL.add(Z.type)});var q=A($);L1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,W))};var uQ=new Map,eL=new Set;L4.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."):!eL.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(_))},L4.flushLegacyContextWarning=function(){uQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(Z){$.add(x(Z)||"Component"),eL.add(Z.type)});var q=A($);H1(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)})}})},W4.discardPendingWarnings=function(){x_=[],m_=[],g_=[],p_=[],c_=[],l_=[],uQ=new Map};var _B={react_stack_bottom_frame:function(_,J,$){var q=l4;l4=!0;try{return _(J,$)}finally{l4=q}}},GF=_B.react_stack_bottom_frame.bind(_B),JB={react_stack_bottom_frame:function(_){var J=l4;l4=!0;try{return _.render()}finally{l4=J}}},$B=JB.react_stack_bottom_frame.bind(JB),QB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){w0(_,_.return,$)}}},ZF=QB.react_stack_bottom_frame.bind(QB),qB={react_stack_bottom_frame:function(_,J,$,q,Z){try{J.componentDidUpdate($,q,Z)}catch(X){w0(_,_.return,X)}}},UB=qB.react_stack_bottom_frame.bind(qB),GB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},uN=GB.react_stack_bottom_frame.bind(GB),ZB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){w0(_,J,q)}}},FB=ZB.react_stack_bottom_frame.bind(ZB),XB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},bN=XB.react_stack_bottom_frame.bind(XB),KB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){w0(_,J,q)}}},EN=KB.react_stack_bottom_frame.bind(KB),HB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},hN=HB.react_stack_bottom_frame.bind(HB),a7=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`."),FF=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.')}},N8=null,d_=!1,s7=null,i_=0,Z0=null,XF,YB=XF=!1,zB={},WB={},LB={};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=g(_),Z=q||"null";if(!zB[Z]){zB[Z]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(Z=g(_))&&(X=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},L4.discardPendingWarnings=function(){m_=[],g_=[],p_=[],c_=[],l_=[],d_=[],uQ=new Map};var _B={react_stack_bottom_frame:function(_,J,$){var q=d4;d4=!0;try{return _(J,$)}finally{d4=q}}},GF=_B.react_stack_bottom_frame.bind(_B),JB={react_stack_bottom_frame:function(_){var J=d4;d4=!0;try{return _.render()}finally{d4=J}}},$B=JB.react_stack_bottom_frame.bind(JB),QB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){w0(_,_.return,$)}}},ZF=QB.react_stack_bottom_frame.bind(QB),qB={react_stack_bottom_frame:function(_,J,$,q,Z){try{J.componentDidUpdate($,q,Z)}catch(X){w0(_,_.return,X)}}},UB=qB.react_stack_bottom_frame.bind(qB),GB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},uN=GB.react_stack_bottom_frame.bind(GB),ZB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){w0(_,J,q)}}},FB=ZB.react_stack_bottom_frame.bind(ZB),XB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},bN=XB.react_stack_bottom_frame.bind(XB),KB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){w0(_,J,q)}}},EN=KB.react_stack_bottom_frame.bind(KB),HB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},hN=HB.react_stack_bottom_frame.bind(HB),s7=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`."),FF=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.')}},w8=null,i_=!1,t7=null,r_=0,Z0=null,XF,YB=XF=!1,zB={},WB={},LB={};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=x(_),Z=q||"null";if(!zB[Z]){zB[Z]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(Z=x(_))&&(X=`
220
220
 
221
221
  Check the render method of \``+Z+"`."),X||q&&(X=`
222
222
 
223
- Check the top-level render call using <`+q+">.");var W="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=g($):typeof $.name==="string"&&(q=$.name),q&&(W=" It was passed a child from "+q+".")),L1(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,W)})}}};var w8=ZY(!0),BB=ZY(!1),AB=0,MB=1,TB=2,KF=3,f6=!1,RB=!1,HF=null,YF=!1,t7=e(null),hQ=e(0),D5=e(null),t5=null,o7=1,r_=2,F2=e(0),xQ=0,o5=1,U5=2,u5=4,G5=8,n7,OB=new Set,IB=new Set,zF=new Set,PB=new Set,f3=0,o1=null,u0=null,L2=null,mQ=!1,e7=!1,C8=!1,gQ=0,a_=0,j3=null,xN=0,mN=25,K1=null,n5=null,v3=-1,s_=!1,t_={readContext:l0,use:K6,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};t_.useEffectEvent=Q2;var WF=null,NB=null,LF=null,wB=null,n4=null,L4=null,pQ=null;WF={readContext:function(_){return l0(_)},use:K6,useCallback:function(_,J){return K1="useCallback",H0(),L7(J),YG(_,J)},useContext:function(_){return K1="useContext",H0(),l0(_)},useEffect:function(_,J){return K1="useEffect",H0(),L7(J),u$(_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",H0(),L7($),HG(_,J,$)},useInsertionEffect:function(_,J){K1="useInsertionEffect",H0(),L7(J),K8(4,U5,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",H0(),L7(J),KG(_,J)},useMemo:function(_,J){K1="useMemo",H0(),L7(J);var $=W1.H;W1.H=n4;try{return zG(_,J)}finally{W1.H=$}},useReducer:function(_,J,$){K1="useReducer",H0();var q=W1.H;W1.H=n4;try{return JG(_,J,$)}finally{W1.H=q}},useRef:function(_){return K1="useRef",H0(),FG(_)},useState:function(_){K1="useState",H0();var J=W1.H;W1.H=n4;try{return UG(_)}finally{W1.H=J}},useDebugValue:function(){K1="useDebugValue",H0()},useDeferredValue:function(_,J){return K1="useDeferredValue",H0(),WG(_,J)},useTransition:function(){return K1="useTransition",H0(),AG()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",H0(),QG(_,J,$)},useId:function(){return K1="useId",H0(),MG()},useFormState:function(_,J){return K1="useFormState",H0(),v$(),A7(_,J)},useActionState:function(_,J){return K1="useActionState",H0(),A7(_,J)},useOptimistic:function(_){return K1="useOptimistic",H0(),GG(_)},useHostTransitionStatus:H8,useMemoCache:X8,useCacheRefresh:function(){return K1="useCacheRefresh",H0(),TG()},useEffectEvent:function(_){return K1="useEffectEvent",H0(),XG(_)}},NB={readContext:function(_){return l0(_)},use:K6,useCallback:function(_,J){return K1="useCallback",I1(),YG(_,J)},useContext:function(_){return K1="useContext",I1(),l0(_)},useEffect:function(_,J){return K1="useEffect",I1(),u$(_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",I1(),HG(_,J,$)},useInsertionEffect:function(_,J){K1="useInsertionEffect",I1(),K8(4,U5,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",I1(),KG(_,J)},useMemo:function(_,J){K1="useMemo",I1();var $=W1.H;W1.H=n4;try{return zG(_,J)}finally{W1.H=$}},useReducer:function(_,J,$){K1="useReducer",I1();var q=W1.H;W1.H=n4;try{return JG(_,J,$)}finally{W1.H=q}},useRef:function(_){return K1="useRef",I1(),FG(_)},useState:function(_){K1="useState",I1();var J=W1.H;W1.H=n4;try{return UG(_)}finally{W1.H=J}},useDebugValue:function(){K1="useDebugValue",I1()},useDeferredValue:function(_,J){return K1="useDeferredValue",I1(),WG(_,J)},useTransition:function(){return K1="useTransition",I1(),AG()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",I1(),QG(_,J,$)},useId:function(){return K1="useId",I1(),MG()},useActionState:function(_,J){return K1="useActionState",I1(),A7(_,J)},useFormState:function(_,J){return K1="useFormState",I1(),v$(),A7(_,J)},useOptimistic:function(_){return K1="useOptimistic",I1(),GG(_)},useHostTransitionStatus:H8,useMemoCache:X8,useCacheRefresh:function(){return K1="useCacheRefresh",I1(),TG()},useEffectEvent:function(_){return K1="useEffectEvent",I1(),XG(_)}},LF={readContext:function(_){return l0(_)},use:K6,useCallback:function(_,J){return K1="useCallback",I1(),h$(_,J)},useContext:function(_){return K1="useContext",I1(),l0(_)},useEffect:function(_,J){K1="useEffect",I1(),z5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",I1(),z5(4,U5,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",I1(),z5(4,u5,_,J)},useMemo:function(_,J){K1="useMemo",I1();var $=W1.H;W1.H=L4;try{return x$(_,J)}finally{W1.H=$}},useReducer:function(_,J,$){K1="useReducer",I1();var q=W1.H;W1.H=L4;try{return B7(_,J,$)}finally{W1.H=q}},useRef:function(){return K1="useRef",I1(),j0().memoizedState},useState:function(){K1="useState",I1();var _=W1.H;W1.H=L4;try{return B7(X4)}finally{W1.H=_}},useDebugValue:function(){K1="useDebugValue",I1()},useDeferredValue:function(_,J){return K1="useDeferredValue",I1(),jY(_,J)},useTransition:function(){return K1="useTransition",I1(),uY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",I1(),y$(_,J,$)},useId:function(){return K1="useId",I1(),j0().memoizedState},useFormState:function(_){return K1="useFormState",I1(),v$(),k$(_)},useActionState:function(_){return K1="useActionState",I1(),k$(_)},useOptimistic:function(_,J){return K1="useOptimistic",I1(),TY(_,J)},useHostTransitionStatus:H8,useMemoCache:X8,useCacheRefresh:function(){return K1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",I1(),b$(_)}},wB={readContext:function(_){return l0(_)},use:K6,useCallback:function(_,J){return K1="useCallback",I1(),h$(_,J)},useContext:function(_){return K1="useContext",I1(),l0(_)},useEffect:function(_,J){K1="useEffect",I1(),z5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",I1(),z5(4,U5,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",I1(),z5(4,u5,_,J)},useMemo:function(_,J){K1="useMemo",I1();var $=W1.H;W1.H=pQ;try{return x$(_,J)}finally{W1.H=$}},useReducer:function(_,J,$){K1="useReducer",I1();var q=W1.H;W1.H=pQ;try{return J_(_,J,$)}finally{W1.H=q}},useRef:function(){return K1="useRef",I1(),j0().memoizedState},useState:function(){K1="useState",I1();var _=W1.H;W1.H=pQ;try{return J_(X4)}finally{W1.H=_}},useDebugValue:function(){K1="useDebugValue",I1()},useDeferredValue:function(_,J){return K1="useDeferredValue",I1(),vY(_,J)},useTransition:function(){return K1="useTransition",I1(),bY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",I1(),y$(_,J,$)},useId:function(){return K1="useId",I1(),j0().memoizedState},useFormState:function(_){return K1="useFormState",I1(),v$(),D$(_)},useActionState:function(_){return K1="useActionState",I1(),D$(_)},useOptimistic:function(_,J){return K1="useOptimistic",I1(),OY(_,J)},useHostTransitionStatus:H8,useMemoCache:X8,useCacheRefresh:function(){return K1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",I1(),b$(_)}},n4={readContext:function(_){return M(),l0(_)},use:function(_){return L(),K6(_)},useCallback:function(_,J){return K1="useCallback",L(),H0(),YG(_,J)},useContext:function(_){return K1="useContext",L(),H0(),l0(_)},useEffect:function(_,J){return K1="useEffect",L(),H0(),u$(_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",L(),H0(),HG(_,J,$)},useInsertionEffect:function(_,J){K1="useInsertionEffect",L(),H0(),K8(4,U5,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",L(),H0(),KG(_,J)},useMemo:function(_,J){K1="useMemo",L(),H0();var $=W1.H;W1.H=n4;try{return zG(_,J)}finally{W1.H=$}},useReducer:function(_,J,$){K1="useReducer",L(),H0();var q=W1.H;W1.H=n4;try{return JG(_,J,$)}finally{W1.H=q}},useRef:function(_){return K1="useRef",L(),H0(),FG(_)},useState:function(_){K1="useState",L(),H0();var J=W1.H;W1.H=n4;try{return UG(_)}finally{W1.H=J}},useDebugValue:function(){K1="useDebugValue",L(),H0()},useDeferredValue:function(_,J){return K1="useDeferredValue",L(),H0(),WG(_,J)},useTransition:function(){return K1="useTransition",L(),H0(),AG()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",L(),H0(),QG(_,J,$)},useId:function(){return K1="useId",L(),H0(),MG()},useFormState:function(_,J){return K1="useFormState",L(),H0(),A7(_,J)},useActionState:function(_,J){return K1="useActionState",L(),H0(),A7(_,J)},useOptimistic:function(_){return K1="useOptimistic",L(),H0(),GG(_)},useMemoCache:function(_){return L(),X8(_)},useHostTransitionStatus:H8,useCacheRefresh:function(){return K1="useCacheRefresh",H0(),TG()},useEffectEvent:function(_){return K1="useEffectEvent",L(),H0(),XG(_)}},L4={readContext:function(_){return M(),l0(_)},use:function(_){return L(),K6(_)},useCallback:function(_,J){return K1="useCallback",L(),I1(),h$(_,J)},useContext:function(_){return K1="useContext",L(),I1(),l0(_)},useEffect:function(_,J){K1="useEffect",L(),I1(),z5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",L(),I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",L(),I1(),z5(4,U5,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",L(),I1(),z5(4,u5,_,J)},useMemo:function(_,J){K1="useMemo",L(),I1();var $=W1.H;W1.H=L4;try{return x$(_,J)}finally{W1.H=$}},useReducer:function(_,J,$){K1="useReducer",L(),I1();var q=W1.H;W1.H=L4;try{return B7(_,J,$)}finally{W1.H=q}},useRef:function(){return K1="useRef",L(),I1(),j0().memoizedState},useState:function(){K1="useState",L(),I1();var _=W1.H;W1.H=L4;try{return B7(X4)}finally{W1.H=_}},useDebugValue:function(){K1="useDebugValue",L(),I1()},useDeferredValue:function(_,J){return K1="useDeferredValue",L(),I1(),jY(_,J)},useTransition:function(){return K1="useTransition",L(),I1(),uY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",L(),I1(),y$(_,J,$)},useId:function(){return K1="useId",L(),I1(),j0().memoizedState},useFormState:function(_){return K1="useFormState",L(),I1(),k$(_)},useActionState:function(_){return K1="useActionState",L(),I1(),k$(_)},useOptimistic:function(_,J){return K1="useOptimistic",L(),I1(),TY(_,J)},useMemoCache:function(_){return L(),X8(_)},useHostTransitionStatus:H8,useCacheRefresh:function(){return K1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",L(),I1(),b$(_)}},pQ={readContext:function(_){return M(),l0(_)},use:function(_){return L(),K6(_)},useCallback:function(_,J){return K1="useCallback",L(),I1(),h$(_,J)},useContext:function(_){return K1="useContext",L(),I1(),l0(_)},useEffect:function(_,J){K1="useEffect",L(),I1(),z5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",L(),I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",L(),I1(),z5(4,U5,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",L(),I1(),z5(4,u5,_,J)},useMemo:function(_,J){K1="useMemo",L(),I1();var $=W1.H;W1.H=L4;try{return x$(_,J)}finally{W1.H=$}},useReducer:function(_,J,$){K1="useReducer",L(),I1();var q=W1.H;W1.H=L4;try{return J_(_,J,$)}finally{W1.H=q}},useRef:function(){return K1="useRef",L(),I1(),j0().memoizedState},useState:function(){K1="useState",L(),I1();var _=W1.H;W1.H=L4;try{return J_(X4)}finally{W1.H=_}},useDebugValue:function(){K1="useDebugValue",L(),I1()},useDeferredValue:function(_,J){return K1="useDeferredValue",L(),I1(),vY(_,J)},useTransition:function(){return K1="useTransition",L(),I1(),bY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",L(),I1(),y$(_,J,$)},useId:function(){return K1="useId",L(),I1(),j0().memoizedState},useFormState:function(_){return K1="useFormState",L(),I1(),D$(_)},useActionState:function(_){return K1="useActionState",L(),I1(),D$(_)},useOptimistic:function(_,J){return K1="useOptimistic",L(),I1(),OY(_,J)},useMemoCache:function(_){return L(),X8(_)},useHostTransitionStatus:H8,useCacheRefresh:function(){return K1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",L(),I1(),b$(_)}};var CB={},SB=new Set,fB=new Set,jB=new Set,vB=new Set,VB=new Set,yB=new Set,kB=new Set,DB=new Set,uB=new Set,bB=new Set;Object.freeze(CB);var BF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=f5(_),Z=G6(q);Z.payload=J,$!==void 0&&$!==null&&(OG($),Z.callback=$),J=Z6(_,Z,q),J!==null&&(j4(q,"this.setState()",_),e0(J,_,q),o9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=f5(_),Z=G6(q);Z.tag=MB,Z.payload=J,$!==void 0&&$!==null&&(OG($),Z.callback=$),J=Z6(_,Z,q),J!==null&&(j4(q,"this.replaceState()",_),e0(J,_,q),o9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=f5(_),q=G6($);q.tag=TB,J!==void 0&&J!==null&&(OG(J),q.callback=J),J=Z6(_,q,$),J!==null&&(j4($,"this.forceUpdate()",_),e0(J,_,$),o9(J,_,$))}},_9=null,AF=null,MF=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."),B2=!1,EB={},hB={},xB={},mB={},J9=!1,gB={},cQ={},TF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},pB=!1,cB=null;cB=new Set;var V3=!1,A2=!1,RF=!1,lB=typeof WeakSet==="function"?WeakSet:Set,b2=null,$9=null,Q9=null,M2=null,B5=!1,B4=null,f2=!1,o_=8192,gN={getCacheForType:function(_){var J=l0(z2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return l0(z2).controller.signal},getOwner:function(){return V5}};if(typeof Symbol==="function"&&Symbol.for){var n_=Symbol.for;n_("selector.component"),n_("selector.has_pseudo_class"),n_("selector.role"),n_("selector.test_id"),n_("selector.text")}var pN=[],cN=typeof WeakMap==="function"?WeakMap:Map,E2=0,j2=2,b5=4,y3=0,e_=1,S8=2,lQ=3,j6=4,dQ=6,dB=5,O0=E2,b0=null,K0=null,F0=0,A5=0,iQ=1,f8=2,_J=3,iB=4,OF=5,JJ=6,rQ=7,IF=8,j8=9,v0=A5,E5=null,v6=!1,q9=!1,PF=!1,e4=0,o0=y3,V6=0,y6=0,NF=0,M5=0,v8=0,$J=null,Z5=null,aQ=!1,sQ=0,rB=0,aB=300,tQ=1/0,sB=500,QJ=null,q2=null,k6=null,oQ=0,wF=1,CF=2,tB=3,D6=0,oB=1,nB=2,eB=3,_A=4,nQ=5,T2=0,u6=null,U9=null,A4=0,SF=0,fF=-0,jF=null,JA=null,$A=null,M4=oQ,QA=null,lN=50,qJ=0,vF=null,VF=!1,eQ=!1,dN=50,V8=0,UJ=null,G9=!1,_q=null,qA=!1,UA=new Set,iN={},Jq=null,Z9=null,yF=!1,kF=!1,$q=!1,DF=!1,b6=0,uF={};(function(){for(var _=0;_<iZ.length;_++){var J=iZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),F4($,"on"+J)}F4(uL,"onAnimationEnd"),F4(bL,"onAnimationIteration"),F4(EL,"onAnimationStart"),F4("dblclick","onDoubleClick"),F4("focusin","onFocus"),F4("focusout","onBlur"),F4(IN,"onTransitionRun"),F4(PN,"onTransitionStart"),F4(NN,"onTransitionCancel"),F4(hL,"onTransitionEnd")})(),C2("onMouseEnter",["mouseout","mouseover"]),C2("onMouseLeave",["mouseout","mouseover"]),C2("onPointerEnter",["pointerout","pointerover"]),C2("onPointerLeave",["pointerout","pointerover"]),H2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),H2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),H2("onBeforeInput",["compositionend","keypress","textInput","paste"]),H2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),H2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),H2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var GJ="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(" "),bF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(GJ)),Qq="_reactListening"+Math.random().toString(36).slice(2),GA=!1,ZA=!1,qq=!1,FA=!1,Uq=!1,Gq=!1,XA=!1,Zq={},rN=/\r\n?/g,aN=/\u0000|\uFFFD/g,y8="http://www.w3.org/1999/xlink",EF="http://www.w3.org/XML/1998/namespace",sN="javascript:throw new Error('React form unexpectedly submitted.')",tN="suppressHydrationWarning",k8="&",Fq="/&",ZJ="$",FJ="/$",E6="$?",D8="$~",F9="$!",oN="html",nN="body",eN="head",hF="F!",KA="F",HA="loading",_w="style",k3=0,X9=1,Xq=2,xF=null,mF=null,YA={dialog:!0,webview:!0},gF=null,XJ=void 0,zA=typeof setTimeout==="function"?setTimeout:void 0,Jw=typeof clearTimeout==="function"?clearTimeout:void 0,u8=-1,WA=typeof Promise==="function"?Promise:void 0,$w=typeof queueMicrotask==="function"?queueMicrotask:typeof WA<"u"?function(_){return WA.resolve(null).then(_).catch(mI)}:zA,pF=null,b8=0,KJ=1,LA=2,BA=3,e5=4,_4=new Map,AA=new Set,D3=C0.d;C0.d={f:function(){var _=D3.f(),J=I7();return _||J},r:function(_){var J=r1(_);J!==null&&J.tag===5&&J.type==="form"?DY(J):D3.r(_)},D:function(_){D3.D(_),SW("dns-prefetch",_,null)},C:function(_,J){D3.C(_,J),SW("preconnect",_,J)},L:function(_,J,$){D3.L(_,J,$);var q=K9;if(q&&_&&J){var Z='link[rel="preload"][as="'+D1(J)+'"]';J==="image"?$&&$.imageSrcSet?(Z+='[imagesrcset="'+D1($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(Z+='[imagesizes="'+D1($.imageSizes)+'"]')):Z+='[href="'+D1(_)+'"]':Z+='[href="'+D1(_)+'"]';var X=Z;switch(J){case"style":X=w7(_);break;case"script":X=C7(_)}_4.has(X)||(_=Y0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),_4.set(X,_),q.querySelector(Z)!==null||J==="style"&&q.querySelector(B_(X))||J==="script"&&q.querySelector(A_(X))||(J=q.createElement("link"),g2(J,"link",_),x1(J),q.head.appendChild(J)))}},m:function(_,J){D3.m(_,J);var $=K9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",Z='link[rel="modulepreload"][as="'+D1(q)+'"][href="'+D1(_)+'"]',X=Z;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=C7(_)}if(!_4.has(X)&&(_=Y0({rel:"modulepreload",href:_},J),_4.set(X,_),$.querySelector(Z)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(A_(X)))return}q=$.createElement("link"),g2(q,"link",_),x1(q),$.head.appendChild(q)}}},X:function(_,J){D3.X(_,J);var $=K9;if($&&_){var q=W0($).hoistableScripts,Z=C7(_),X=q.get(Z);X||(X=$.querySelector(A_(Z)),X||(_=Y0({src:_,async:!0},J),(J=_4.get(Z))&&HZ(_,J),X=$.createElement("script"),x1(X),g2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(Z,X))}},S:function(_,J,$){D3.S(_,J,$);var q=K9;if(q&&_){var Z=W0(q).hoistableStyles,X=w7(_);J=J||"default";var W=Z.get(X);if(!W){var B={loading:b8,preload:null};if(W=q.querySelector(B_(X)))B.loading=KJ|e5;else{_=Y0({rel:"stylesheet",href:_,"data-precedence":J},$),($=_4.get(X))&&KZ(_,$);var I=W=q.createElement("link");x1(I),g2(I,"link",_),I._p=new Promise(function(S,_1){I.onload=S,I.onerror=_1}),I.addEventListener("load",function(){B.loading|=KJ}),I.addEventListener("error",function(){B.loading|=LA}),B.loading|=e5,qQ(W,J,q)}W={type:"stylesheet",instance:W,count:1,state:B},Z.set(X,W)}}},M:function(_,J){D3.M(_,J);var $=K9;if($&&_){var q=W0($).hoistableScripts,Z=C7(_),X=q.get(Z);X||(X=$.querySelector(A_(Z)),X||(_=Y0({src:_,async:!0,type:"module"},J),(J=_4.get(Z))&&HZ(_,J),X=$.createElement("script"),x1(X),g2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(Z,X))}}};var K9=typeof document>"u"?null:document,Kq=null,Qw=60000,qw=800,Uw=500,cF=0,lF=null,Hq=null,E8=RP,HJ={$$typeof:c4,Provider:null,Consumer:null,_currentValue:E8,_currentValue2:E8,_threadCount:0},MA="%c%s%c",TA="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",RA="",Yq=" ",Gw=Function.prototype.bind,OA=!1,IA=null,PA=null,NA=null,wA=null,CA=null,SA=null,fA=null,jA=null,vA=null,VA=null;IA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=d2(_,2),$!==null&&e0($,_,2))},PA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=d2(_,2),$!==null&&e0($,_,2))},NA=function(_,J,$,q){J=Q(_,J),J!==null&&($=G(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=d2(_,2),$!==null&&e0($,_,2))},wA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=d2(_,2),J!==null&&e0(J,_,2)},CA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=d2(_,2),J!==null&&e0(J,_,2)},SA=function(_,J,$){_.pendingProps=G(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=d2(_,2),J!==null&&e0(J,_,2)},fA=function(_){var J=d2(_,2);J!==null&&e0(J,_,2)},jA=function(_){var J=P2(),$=d2(_,J);$!==null&&e0($,_,J)},vA=function(_){z=_},VA=function(_){Y=_};var zq=!0,Wq=null,dF=!1,h6=null,x6=null,m6=null,YJ=new Map,zJ=new Map,g6=[],Zw="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=AZ.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()."):f($[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,Z=f5(q);YZ(q,Z,$,J,null,null)},XQ.prototype.unmount=AZ.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&(j2|b5))!==E2&&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."),YZ(_.current,2,null,_,null,null),I7(),J[A6]=null}},XQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=U1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<g6.length&&J!==0&&J<g6[$].priority;$++);g6.splice($,0,_),$===0&&gW(_)}},function(){var _=H9.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 W="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=x($):typeof $.name==="string"&&(q=$.name),q&&(W=" It was passed a child from "+q+".")),H1(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,W)})}}};var C8=ZY(!0),BB=ZY(!1),AB=0,MB=1,TB=2,KF=3,v6=!1,RB=!1,HF=null,YF=!1,o7=n(null),hQ=n(0),u5=n(null),n5=null,n7=1,a_=2,K2=n(0),xQ=0,e5=1,U5=2,b5=4,G5=8,e7,OB=new Set,IB=new Set,zF=new Set,PB=new Set,y3=0,n1=null,D0=null,W2=null,mQ=!1,_9=!1,S8=!1,gQ=0,s_=0,k3=null,xN=0,mN=25,X1=null,_4=null,D3=-1,t_=!1,o_={readContext:l0,use:Y6,useCallback:G2,useContext:G2,useEffect:G2,useImperativeHandle:G2,useLayoutEffect:G2,useInsertionEffect:G2,useMemo:G2,useReducer:G2,useRef:G2,useState:G2,useDebugValue:G2,useDeferredValue:G2,useTransition:G2,useSyncExternalStore:G2,useId:G2,useHostTransitionStatus:G2,useFormState:G2,useActionState:G2,useOptimistic:G2,useMemoCache:G2,useCacheRefresh:G2};o_.useEffectEvent=G2;var WF=null,NB=null,LF=null,wB=null,e4=null,B4=null,pQ=null;WF={readContext:function(_){return l0(_)},use:Y6,useCallback:function(_,J){return X1="useCallback",H0(),B7(J),YG(_,J)},useContext:function(_){return X1="useContext",H0(),l0(_)},useEffect:function(_,J){return X1="useEffect",H0(),B7(J),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",H0(),B7($),HG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",H0(),B7(J),H8(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",H0(),B7(J),KG(_,J)},useMemo:function(_,J){X1="useMemo",H0(),B7(J);var $=z1.H;z1.H=e4;try{return zG(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",H0();var q=z1.H;z1.H=e4;try{return JG(_,J,$)}finally{z1.H=q}},useRef:function(_){return X1="useRef",H0(),FG(_)},useState:function(_){X1="useState",H0();var J=z1.H;z1.H=e4;try{return UG(_)}finally{z1.H=J}},useDebugValue:function(){X1="useDebugValue",H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",H0(),WG(_,J)},useTransition:function(){return X1="useTransition",H0(),AG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",H0(),QG(_,J,$)},useId:function(){return X1="useId",H0(),MG()},useFormState:function(_,J){return X1="useFormState",H0(),v$(),M7(_,J)},useActionState:function(_,J){return X1="useActionState",H0(),M7(_,J)},useOptimistic:function(_){return X1="useOptimistic",H0(),GG(_)},useHostTransitionStatus:Y8,useMemoCache:K8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),TG()},useEffectEvent:function(_){return X1="useEffectEvent",H0(),XG(_)}},NB={readContext:function(_){return l0(_)},use:Y6,useCallback:function(_,J){return X1="useCallback",I1(),YG(_,J)},useContext:function(_){return X1="useContext",I1(),l0(_)},useEffect:function(_,J){return X1="useEffect",I1(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",I1(),HG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",I1(),H8(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",I1(),KG(_,J)},useMemo:function(_,J){X1="useMemo",I1();var $=z1.H;z1.H=e4;try{return zG(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",I1();var q=z1.H;z1.H=e4;try{return JG(_,J,$)}finally{z1.H=q}},useRef:function(_){return X1="useRef",I1(),FG(_)},useState:function(_){X1="useState",I1();var J=z1.H;z1.H=e4;try{return UG(_)}finally{z1.H=J}},useDebugValue:function(){X1="useDebugValue",I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",I1(),WG(_,J)},useTransition:function(){return X1="useTransition",I1(),AG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",I1(),QG(_,J,$)},useId:function(){return X1="useId",I1(),MG()},useActionState:function(_,J){return X1="useActionState",I1(),M7(_,J)},useFormState:function(_,J){return X1="useFormState",I1(),v$(),M7(_,J)},useOptimistic:function(_){return X1="useOptimistic",I1(),GG(_)},useHostTransitionStatus:Y8,useMemoCache:K8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),TG()},useEffectEvent:function(_){return X1="useEffectEvent",I1(),XG(_)}},LF={readContext:function(_){return l0(_)},use:Y6,useCallback:function(_,J){return X1="useCallback",I1(),h$(_,J)},useContext:function(_){return X1="useContext",I1(),l0(_)},useEffect:function(_,J){X1="useEffect",I1(),W5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",I1(),W5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",I1(),W5(4,b5,_,J)},useMemo:function(_,J){X1="useMemo",I1();var $=z1.H;z1.H=B4;try{return x$(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",I1();var q=z1.H;z1.H=B4;try{return A7(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",I1(),j0().memoizedState},useState:function(){X1="useState",I1();var _=z1.H;z1.H=B4;try{return A7(K4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",I1(),jY(_,J)},useTransition:function(){return X1="useTransition",I1(),uY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",I1(),y$(_,J,$)},useId:function(){return X1="useId",I1(),j0().memoizedState},useFormState:function(_){return X1="useFormState",I1(),v$(),k$(_)},useActionState:function(_){return X1="useActionState",I1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",I1(),TY(_,J)},useHostTransitionStatus:Y8,useMemoCache:K8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",I1(),b$(_)}},wB={readContext:function(_){return l0(_)},use:Y6,useCallback:function(_,J){return X1="useCallback",I1(),h$(_,J)},useContext:function(_){return X1="useContext",I1(),l0(_)},useEffect:function(_,J){X1="useEffect",I1(),W5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",I1(),W5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",I1(),W5(4,b5,_,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 $_(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",I1(),j0().memoizedState},useState:function(){X1="useState",I1();var _=z1.H;z1.H=pQ;try{return $_(K4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",I1(),vY(_,J)},useTransition:function(){return X1="useTransition",I1(),bY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",I1(),y$(_,J,$)},useId:function(){return X1="useId",I1(),j0().memoizedState},useFormState:function(_){return X1="useFormState",I1(),v$(),D$(_)},useActionState:function(_){return X1="useActionState",I1(),D$(_)},useOptimistic:function(_,J){return X1="useOptimistic",I1(),OY(_,J)},useHostTransitionStatus:Y8,useMemoCache:K8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",I1(),b$(_)}},e4={readContext:function(_){return M(),l0(_)},use:function(_){return L(),Y6(_)},useCallback:function(_,J){return X1="useCallback",L(),H0(),YG(_,J)},useContext:function(_){return X1="useContext",L(),H0(),l0(_)},useEffect:function(_,J){return X1="useEffect",L(),H0(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),H0(),HG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",L(),H0(),H8(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),H0(),KG(_,J)},useMemo:function(_,J){X1="useMemo",L(),H0();var $=z1.H;z1.H=e4;try{return zG(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),H0();var q=z1.H;z1.H=e4;try{return JG(_,J,$)}finally{z1.H=q}},useRef:function(_){return X1="useRef",L(),H0(),FG(_)},useState:function(_){X1="useState",L(),H0();var J=z1.H;z1.H=e4;try{return UG(_)}finally{z1.H=J}},useDebugValue:function(){X1="useDebugValue",L(),H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),H0(),WG(_,J)},useTransition:function(){return X1="useTransition",L(),H0(),AG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),H0(),QG(_,J,$)},useId:function(){return X1="useId",L(),H0(),MG()},useFormState:function(_,J){return X1="useFormState",L(),H0(),M7(_,J)},useActionState:function(_,J){return X1="useActionState",L(),H0(),M7(_,J)},useOptimistic:function(_){return X1="useOptimistic",L(),H0(),GG(_)},useMemoCache:function(_){return L(),K8(_)},useHostTransitionStatus:Y8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),TG()},useEffectEvent:function(_){return X1="useEffectEvent",L(),H0(),XG(_)}},B4={readContext:function(_){return M(),l0(_)},use:function(_){return L(),Y6(_)},useCallback:function(_,J){return X1="useCallback",L(),I1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),I1(),l0(_)},useEffect:function(_,J){X1="useEffect",L(),I1(),W5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),I1(),W5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),I1(),W5(4,b5,_,J)},useMemo:function(_,J){X1="useMemo",L(),I1();var $=z1.H;z1.H=B4;try{return x$(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),I1();var q=z1.H;z1.H=B4;try{return A7(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",L(),I1(),j0().memoizedState},useState:function(){X1="useState",L(),I1();var _=z1.H;z1.H=B4;try{return A7(K4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),I1(),jY(_,J)},useTransition:function(){return X1="useTransition",L(),I1(),uY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),I1(),y$(_,J,$)},useId:function(){return X1="useId",L(),I1(),j0().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(),TY(_,J)},useMemoCache:function(_){return L(),K8(_)},useHostTransitionStatus:Y8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),I1(),b$(_)}},pQ={readContext:function(_){return M(),l0(_)},use:function(_){return L(),Y6(_)},useCallback:function(_,J){return X1="useCallback",L(),I1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),I1(),l0(_)},useEffect:function(_,J){X1="useEffect",L(),I1(),W5(2048,G5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),I1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),I1(),W5(4,U5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),I1(),W5(4,b5,_,J)},useMemo:function(_,J){X1="useMemo",L(),I1();var $=z1.H;z1.H=B4;try{return x$(_,J)}finally{z1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),I1();var q=z1.H;z1.H=B4;try{return $_(_,J,$)}finally{z1.H=q}},useRef:function(){return X1="useRef",L(),I1(),j0().memoizedState},useState:function(){X1="useState",L(),I1();var _=z1.H;z1.H=B4;try{return $_(K4)}finally{z1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),I1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),I1(),vY(_,J)},useTransition:function(){return X1="useTransition",L(),I1(),bY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),I1(),y$(_,J,$)},useId:function(){return X1="useId",L(),I1(),j0().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(),OY(_,J)},useMemoCache:function(_){return L(),K8(_)},useHostTransitionStatus:Y8,useCacheRefresh:function(){return X1="useCacheRefresh",I1(),j0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),I1(),b$(_)}};var CB={},SB=new Set,fB=new Set,jB=new Set,vB=new Set,VB=new Set,yB=new Set,kB=new Set,DB=new Set,uB=new Set,bB=new Set;Object.freeze(CB);var BF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=j5(_),Z=F6(q);Z.payload=J,$!==void 0&&$!==null&&(OG($),Z.callback=$),J=X6(_,Z,q),J!==null&&(v4(q,"this.setState()",_),_2(J,_,q),n9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=j5(_),Z=F6(q);Z.tag=MB,Z.payload=J,$!==void 0&&$!==null&&(OG($),Z.callback=$),J=X6(_,Z,q),J!==null&&(v4(q,"this.replaceState()",_),_2(J,_,q),n9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=j5(_),q=F6($);q.tag=TB,J!==void 0&&J!==null&&(OG(J),q.callback=J),J=X6(_,q,$),J!==null&&(v4($,"this.forceUpdate()",_),_2(J,_,$),n9(J,_,$))}},J9=null,AF=null,MF=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,EB={},hB={},xB={},mB={},$9=!1,gB={},cQ={},TF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},pB=!1,cB=null;cB=new Set;var u3=!1,B2=!1,RF=!1,lB=typeof WeakSet==="function"?WeakSet:Set,D2=null,Q9=null,q9=null,A2=null,A5=!1,A4=null,w2=!1,n_=8192,gN={getCacheForType:function(_){var J=l0(Y2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return l0(Y2).controller.signal},getOwner:function(){return y5}};if(typeof Symbol==="function"&&Symbol.for){var e_=Symbol.for;e_("selector.component"),e_("selector.has_pseudo_class"),e_("selector.role"),e_("selector.test_id"),e_("selector.text")}var pN=[],cN=typeof WeakMap==="function"?WeakMap:Map,u2=0,C2=2,E5=4,b3=0,_J=1,f8=2,lQ=3,V6=4,dQ=6,dB=5,O0=u2,u0=null,K0=null,F0=0,M5=0,iQ=1,j8=2,JJ=3,iB=4,OF=5,$J=6,rQ=7,IF=8,v8=9,v0=M5,h5=null,y6=!1,U9=!1,PF=!1,_3=0,o0=b3,k6=0,D6=0,NF=0,T5=0,V8=0,QJ=null,Z5=null,aQ=!1,sQ=0,rB=0,aB=300,tQ=1/0,sB=500,qJ=null,Z2=null,u6=null,oQ=0,wF=1,CF=2,tB=3,b6=0,oB=1,nB=2,eB=3,_A=4,nQ=5,M2=0,E6=null,G9=null,M4=0,SF=0,fF=-0,jF=null,JA=null,$A=null,T4=oQ,QA=null,lN=50,UJ=0,vF=null,VF=!1,eQ=!1,dN=50,y8=0,GJ=null,Z9=!1,_q=null,qA=!1,UA=new Set,iN={},Jq=null,F9=null,yF=!1,kF=!1,$q=!1,DF=!1,h6=0,uF={};(function(){for(var _=0;_<iZ.length;_++){var J=iZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),X4($,"on"+J)}X4(uL,"onAnimationEnd"),X4(bL,"onAnimationIteration"),X4(EL,"onAnimationStart"),X4("dblclick","onDoubleClick"),X4("focusin","onFocus"),X4("focusout","onBlur"),X4(IN,"onTransitionRun"),X4(PN,"onTransitionStart"),X4(NN,"onTransitionCancel"),X4(hL,"onTransitionEnd")})(),E2("onMouseEnter",["mouseout","mouseover"]),E2("onMouseLeave",["mouseout","mouseover"]),E2("onPointerEnter",["pointerout","pointerover"]),E2("onPointerLeave",["pointerout","pointerover"]),U2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),U2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),U2("onBeforeInput",["compositionend","keypress","textInput","paste"]),U2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),U2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),U2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ZJ="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(" "),bF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ZJ)),Qq="_reactListening"+Math.random().toString(36).slice(2),GA=!1,ZA=!1,qq=!1,FA=!1,Uq=!1,Gq=!1,XA=!1,Zq={},rN=/\r\n?/g,aN=/\u0000|\uFFFD/g,k8="http://www.w3.org/1999/xlink",EF="http://www.w3.org/XML/1998/namespace",sN="javascript:throw new Error('React form unexpectedly submitted.')",tN="suppressHydrationWarning",D8="&",Fq="/&",FJ="$",XJ="/$",x6="$?",u8="$~",X9="$!",oN="html",nN="body",eN="head",hF="F!",KA="F",HA="loading",_w="style",E3=0,K9=1,Xq=2,xF=null,mF=null,YA={dialog:!0,webview:!0},gF=null,KJ=void 0,zA=typeof setTimeout==="function"?setTimeout:void 0,Jw=typeof clearTimeout==="function"?clearTimeout:void 0,b8=-1,WA=typeof Promise==="function"?Promise:void 0,$w=typeof queueMicrotask==="function"?queueMicrotask:typeof WA<"u"?function(_){return WA.resolve(null).then(_).catch(mI)}:zA,pF=null,E8=0,HJ=1,LA=2,BA=3,J4=4,$4=new Map,AA=new Set,h3=C0.d;C0.d={f:function(){var _=h3.f(),J=P7();return _||J},r:function(_){var J=a1(_);J!==null&&J.tag===5&&J.type==="form"?DY(J):h3.r(_)},D:function(_){h3.D(_),SW("dns-prefetch",_,null)},C:function(_,J){h3.C(_,J),SW("preconnect",_,J)},L:function(_,J,$){h3.L(_,J,$);var q=H9;if(q&&_&&J){var Z='link[rel="preload"][as="'+D1(J)+'"]';J==="image"?$&&$.imageSrcSet?(Z+='[imagesrcset="'+D1($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(Z+='[imagesizes="'+D1($.imageSizes)+'"]')):Z+='[href="'+D1(_)+'"]':Z+='[href="'+D1(_)+'"]';var X=Z;switch(J){case"style":X=C7(_);break;case"script":X=S7(_)}$4.has(X)||(_=Y0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),$4.set(X,_),q.querySelector(Z)!==null||J==="style"&&q.querySelector(A_(X))||J==="script"&&q.querySelector(M_(X))||(J=q.createElement("link"),m2(J,"link",_),m1(J),q.head.appendChild(J)))}},m:function(_,J){h3.m(_,J);var $=H9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",Z='link[rel="modulepreload"][as="'+D1(q)+'"][href="'+D1(_)+'"]',X=Z;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=S7(_)}if(!$4.has(X)&&(_=Y0({rel:"modulepreload",href:_},J),$4.set(X,_),$.querySelector(Z)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(M_(X)))return}q=$.createElement("link"),m2(q,"link",_),m1(q),$.head.appendChild(q)}}},X:function(_,J){h3.X(_,J);var $=H9;if($&&_){var q=B0($).hoistableScripts,Z=S7(_),X=q.get(Z);X||(X=$.querySelector(M_(Z)),X||(_=Y0({src:_,async:!0},J),(J=$4.get(Z))&&HZ(_,J),X=$.createElement("script"),m1(X),m2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(Z,X))}},S:function(_,J,$){h3.S(_,J,$);var q=H9;if(q&&_){var Z=B0(q).hoistableStyles,X=C7(_);J=J||"default";var W=Z.get(X);if(!W){var B={loading:E8,preload:null};if(W=q.querySelector(A_(X)))B.loading=HJ|J4;else{_=Y0({rel:"stylesheet",href:_,"data-precedence":J},$),($=$4.get(X))&&KZ(_,$);var I=W=q.createElement("link");m1(I),m2(I,"link",_),I._p=new Promise(function(S,_1){I.onload=S,I.onerror=_1}),I.addEventListener("load",function(){B.loading|=HJ}),I.addEventListener("error",function(){B.loading|=LA}),B.loading|=J4,qQ(W,J,q)}W={type:"stylesheet",instance:W,count:1,state:B},Z.set(X,W)}}},M:function(_,J){h3.M(_,J);var $=H9;if($&&_){var q=B0($).hoistableScripts,Z=S7(_),X=q.get(Z);X||(X=$.querySelector(M_(Z)),X||(_=Y0({src:_,async:!0,type:"module"},J),(J=$4.get(Z))&&HZ(_,J),X=$.createElement("script"),m1(X),m2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(Z,X))}}};var H9=typeof document>"u"?null:document,Kq=null,Qw=60000,qw=800,Uw=500,cF=0,lF=null,Hq=null,h8=RP,YJ={$$typeof:l4,Provider:null,Consumer:null,_currentValue:h8,_currentValue2:h8,_threadCount:0},MA="%c%s%c",TA="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",RA="",Yq=" ",Gw=Function.prototype.bind,OA=!1,IA=null,PA=null,NA=null,wA=null,CA=null,SA=null,fA=null,jA=null,vA=null,VA=null;IA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=d2(_,2),$!==null&&_2($,_,2))},PA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=d2(_,2),$!==null&&_2($,_,2))},NA=function(_,J,$,q){J=Q(_,J),J!==null&&($=G(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=d2(_,2),$!==null&&_2($,_,2))},wA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=d2(_,2),J!==null&&_2(J,_,2)},CA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=d2(_,2),J!==null&&_2(J,_,2)},SA=function(_,J,$){_.pendingProps=G(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=d2(_,2),J!==null&&_2(J,_,2)},fA=function(_){var J=d2(_,2);J!==null&&_2(J,_,2)},jA=function(_){var J=q2(),$=d2(_,J);$!==null&&_2($,_,J)},vA=function(_){z=_},VA=function(_){Y=_};var zq=!0,Wq=null,dF=!1,m6=null,g6=null,p6=null,zJ=new Map,WJ=new Map,c6=[],Zw="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=AZ.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()."):f($[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,Z=j5(q);YZ(q,Z,$,J,null,null)},XQ.prototype.unmount=AZ.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&(C2|E5))!==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."),YZ(_.current,2,null,_,null,null),P7(),J[T6]=null}},XQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=U1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<c6.length&&J!==0&&J<c6[$].priority;$++);c6.splice($,0,_),$===0&&gW(_)}},function(){var _=Y9.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 _=y(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:W1,reconcilerVersion:"19.2.7"};return _.overrideHookState=IA,_.overrideHookStateDeletePath=PA,_.overrideHookStateRenamePath=NA,_.overrideProps=wA,_.overridePropsDeletePath=CA,_.overridePropsRenamePath=SA,_.scheduleUpdate=fA,_.scheduleRetry=jA,_.setErrorHandler=vA,_.setSuspenseHandler=VA,_.scheduleRefresh=N,_.scheduleRoot=P,_.setRefreshHandler=v,_.getCurrentFiber=YP,E0(_)}()&&a4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var yA=window.location.protocol;/^(https?|file):$/.test(yA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(yA==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Rw.createRoot=function(_,J){if(!f(_))throw Error("Target container is not a DOM element.");dW(_);var $=!1,q="",Z=pY,X=cY,W=lY;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:
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 _=y(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z1,reconcilerVersion:"19.2.7"};return _.overrideHookState=IA,_.overrideHookStateDeletePath=PA,_.overrideHookStateRenamePath=NA,_.overrideProps=wA,_.overridePropsDeletePath=CA,_.overridePropsRenamePath=SA,_.scheduleUpdate=fA,_.scheduleRetry=jA,_.setErrorHandler=vA,_.setSuspenseHandler=VA,_.scheduleRefresh=N,_.scheduleRoot=P,_.setRefreshHandler=v,_.getCurrentFiber=YP,p0(_)}()&&s4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var yA=window.location.protocol;/^(https?|file):$/.test(yA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(yA==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Rw.createRoot=function(_,J){if(!f(_))throw Error("Target container is not a DOM element.");dW(_);var $=!1,q="",Z=pY,X=cY,W=lY;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===c4&&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&&(Z=J.onUncaughtError),J.onCaughtError!==void 0&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(W=J.onRecoverableError)),J=DW(_,1,!1,null,null,$,q,null,Z,X,W,lW),_[A6]=J.current,nG(_),new AZ(J)},Rw.hydrateRoot=function(_,J,$){if(!f(_))throw Error("Target container is not a DOM element.");dW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,Z="",X=pY,W=cY,B=lY,I=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(Z=$.identifierPrefix),$.onUncaughtError!==void 0&&(X=$.onUncaughtError),$.onCaughtError!==void 0&&(W=$.onCaughtError),$.onRecoverableError!==void 0&&(B=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=DW(_,1,!0,J,$!=null?$:null,q,Z,I,X,W,B,lW),J.context=uW(null),$=J.current,q=f5($),q=Z4(q),Z=G6(q),Z.callback=null,Z6($,Z,q),j4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,w2(J,$),m4(J),_[A6]=J.current,nG(_),new XQ(J)},Rw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xA=_3((Tk,hA)=>{var Ow=n0(EA());hA.exports=Ow});var m8=_3((Iw)=>{var x8=n0(T4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===g?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case v:return"Fragment";case w:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case h:return"SuspenseList";case D: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 N:return"Portal";case C:return k.displayName||"Context";case u:return(k._context.displayName||"Context")+".Consumer";case j:var s=k.render;return k=k.displayName,k||(k=s.displayName||s.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case b:return s=k.displayName||null,s!==null?s:Q(k.type)||"Memo";case E:s=k._payload,k=k._init;try{return Q(k(s))}catch($1){}}return null}function U(k){return""+k}function G(k){try{U(k);var s=!1}catch(H1){s=!0}if(s){s=console;var $1=s.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return $1.call(s,"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===E)return"<...>";try{var s=Q(k);return s?"<"+s+">":"<...>"}catch($1){return"<...>"}}function H(){var k=e.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function z(k){if(q1.call(k,"key")){var s=Object.getOwnPropertyDescriptor(k,"key").get;if(s&&s.isReactWarning)return!1}return k.key!==void 0}function L(k,s){function $1(){m||(m=!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)",s))}$1.isReactWarning=!0,Object.defineProperty(k,"key",{get:$1,configurable:!0})}function M(){var k=Q(this.type);return c[k]||(c[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 R(k,s,$1,a,H1,P1){var z1=$1.ref;return k={$$typeof:P,type:k,key:s,props:$1,_owner:a},(z1!==void 0?z1: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:P1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,s,$1,a,H1,P1){var z1=s.children;if(z1!==void 0)if(a)if(Q1(z1)){for(a=0;a<z1.length;a++)A(z1[a]);Object.freeze&&Object.freeze(z1)}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(z1);if(q1.call(s,"key")){z1=Q(k);var T1=Object.keys(s).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[z1+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&&(Z=J.onUncaughtError),J.onCaughtError!==void 0&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(W=J.onRecoverableError)),J=DW(_,1,!1,null,null,$,q,null,Z,X,W,lW),_[T6]=J.current,nG(_),new AZ(J)},Rw.hydrateRoot=function(_,J,$){if(!f(_))throw Error("Target container is not a DOM element.");dW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,Z="",X=pY,W=cY,B=lY,I=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(Z=$.identifierPrefix),$.onUncaughtError!==void 0&&(X=$.onUncaughtError),$.onCaughtError!==void 0&&(W=$.onCaughtError),$.onRecoverableError!==void 0&&(B=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=DW(_,1,!0,J,$!=null?$:null,q,Z,I,X,W,B,lW),J.context=uW(null),$=J.current,q=j5($),q=p5(q),Z=F6(q),Z.callback=null,X6($,Z,q),v4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,P2(J,$),g4(J),_[T6]=J.current,nG(_),new XQ(J)},Rw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xA=J3((Tk,hA)=>{var Ow=n0(EA());hA.exports=Ow});var g8=J3((Iw)=>{var m8=n0(R4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===x?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case v:return"Fragment";case w:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case h:return"SuspenseList";case u: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 N:return"Portal";case C:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case j:var s=k.render;return k=k.displayName,k||(k=s.displayName||s.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case b:return s=k.displayName||null,s!==null?s:Q(k.type)||"Memo";case E:s=k._payload,k=k._init;try{return Q(k(s))}catch($1){}}return null}function U(k){return""+k}function G(k){try{U(k);var s=!1}catch(B1){s=!0}if(s){s=console;var $1=s.error,o=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return $1.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),U(k)}}function K(k){if(k===v)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===E)return"<...>";try{var s=Q(k);return s?"<"+s+">":"<...>"}catch($1){return"<...>"}}function H(){var k=n.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function z(k){if(q1.call(k,"key")){var s=Object.getOwnPropertyDescriptor(k,"key").get;if(s&&s.isReactWarning)return!1}return k.key!==void 0}function L(k,s){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)",s))}$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 R(k,s,$1,o,B1,O1){var L1=$1.ref;return k={$$typeof:P,type:k,key:s,props:$1,_owner:o},(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:B1}),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,s,$1,o,B1,O1){var L1=s.children;if(L1!==void 0)if(o)if(Q1(L1)){for(o=0;o<L1.length;o++)A(L1[o]);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(q1.call(s,"key")){L1=Q(k);var T1=Object.keys(s).filter(function(R1){return R1!=="key"});o=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",a[L1+o]||(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,z1,T1,z1),o[z1+a]=!0)}if(z1=null,$1!==void 0&&(G($1),z1=""+$1),z(s)&&(G(s.key),z1=""+s.key),"key"in s){$1={};for(var G1 in s)G1!=="key"&&($1[G1]=s[G1])}else $1=s;return z1&&L($1,typeof k==="function"?k.displayName||k.name||"Unknown":k),R(k,z1,$1,H(),H1,P1)}function A(k){O(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===E&&(k._payload.status==="fulfilled"?O(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function O(k){return typeof k==="object"&&k!==null&&k.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),g=Symbol.for("react.client.reference"),e=x8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=Object.prototype.hasOwnProperty,Q1=Array.isArray,x=console.createTask?console.createTask:function(){return null};x8={react_stack_bottom_frame:function(k){return k()}};var m,c={},l=x8.react_stack_bottom_frame.bind(x8,Y)(),p=x(K(Y)),o={};Iw.Fragment=v,Iw.jsxDEV=function(k,s,$1,a){var H1=1e4>e.recentlyCreatedOwnerStacks++;return T(k,s,$1,a,H1?Error("react-stack-top-frame"):l,H1?x(K(k)):p)}})()});var aA=_3((fw)=>{var c8=n0(T4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===g?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case v:return"Fragment";case w:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case h:return"SuspenseList";case D: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 N:return"Portal";case C:return k.displayName||"Context";case u:return(k._context.displayName||"Context")+".Consumer";case j:var s=k.render;return k=k.displayName,k||(k=s.displayName||s.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case b:return s=k.displayName||null,s!==null?s:Q(k.type)||"Memo";case E:s=k._payload,k=k._init;try{return Q(k(s))}catch($1){}}return null}function U(k){return""+k}function G(k){try{U(k);var s=!1}catch(H1){s=!0}if(s){s=console;var $1=s.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return $1.call(s,"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===E)return"<...>";try{var s=Q(k);return s?"<"+s+">":"<...>"}catch($1){return"<...>"}}function H(){var k=e.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function z(k){if(q1.call(k,"key")){var s=Object.getOwnPropertyDescriptor(k,"key").get;if(s&&s.isReactWarning)return!1}return k.key!==void 0}function L(k,s){function $1(){m||(m=!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)",s))}$1.isReactWarning=!0,Object.defineProperty(k,"key",{get:$1,configurable:!0})}function M(){var k=Q(this.type);return c[k]||(c[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 R(k,s,$1,a,H1,P1){var z1=$1.ref;return k={$$typeof:P,type:k,key:s,props:$1,_owner:a},(z1!==void 0?z1: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:P1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,s,$1,a,H1,P1){var z1=s.children;if(z1!==void 0)if(a)if(Q1(z1)){for(a=0;a<z1.length;a++)A(z1[a]);Object.freeze&&Object.freeze(z1)}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(z1);if(q1.call(s,"key")){z1=Q(k);var T1=Object.keys(s).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[z1+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} />`,o,L1,T1,L1),a[L1+o]=!0)}if(L1=null,$1!==void 0&&(G($1),L1=""+$1),z(s)&&(G(s.key),L1=""+s.key),"key"in s){$1={};for(var G1 in s)G1!=="key"&&($1[G1]=s[G1])}else $1=s;return L1&&L($1,typeof k==="function"?k.displayName||k.name||"Unknown":k),R(k,L1,$1,H(),B1,O1)}function A(k){O(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===E&&(k._payload.status==="fulfilled"?O(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function O(k){return typeof k==="object"&&k!==null&&k.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),u=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),n=m8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=Object.prototype.hasOwnProperty,Q1=Array.isArray,m=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=m(K(Y)),a={};Iw.Fragment=v,Iw.jsxDEV=function(k,s,$1,o){var B1=1e4>n.recentlyCreatedOwnerStacks++;return T(k,s,$1,o,B1?Error("react-stack-top-frame"):c,B1?m(K(k)):l)}})()});var aA=J3((fw)=>{var l8=n0(R4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===x?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case v:return"Fragment";case w:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case h:return"SuspenseList";case u: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 N:return"Portal";case C:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case j:var s=k.render;return k=k.displayName,k||(k=s.displayName||s.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case b:return s=k.displayName||null,s!==null?s:Q(k.type)||"Memo";case E:s=k._payload,k=k._init;try{return Q(k(s))}catch($1){}}return null}function U(k){return""+k}function G(k){try{U(k);var s=!1}catch(B1){s=!0}if(s){s=console;var $1=s.error,o=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return $1.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),U(k)}}function K(k){if(k===v)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===E)return"<...>";try{var s=Q(k);return s?"<"+s+">":"<...>"}catch($1){return"<...>"}}function H(){var k=n.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function z(k){if(q1.call(k,"key")){var s=Object.getOwnPropertyDescriptor(k,"key").get;if(s&&s.isReactWarning)return!1}return k.key!==void 0}function L(k,s){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)",s))}$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 R(k,s,$1,o,B1,O1){var L1=$1.ref;return k={$$typeof:P,type:k,key:s,props:$1,_owner:o},(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:B1}),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,s,$1,o,B1,O1){var L1=s.children;if(L1!==void 0)if(o)if(Q1(L1)){for(o=0;o<L1.length;o++)A(L1[o]);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(q1.call(s,"key")){L1=Q(k);var T1=Object.keys(s).filter(function(R1){return R1!=="key"});o=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",a[L1+o]||(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,z1,T1,z1),o[z1+a]=!0)}if(z1=null,$1!==void 0&&(G($1),z1=""+$1),z(s)&&(G(s.key),z1=""+s.key),"key"in s){$1={};for(var G1 in s)G1!=="key"&&($1[G1]=s[G1])}else $1=s;return z1&&L($1,typeof k==="function"?k.displayName||k.name||"Unknown":k),R(k,z1,$1,H(),H1,P1)}function A(k){O(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===E&&(k._payload.status==="fulfilled"?O(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function O(k){return typeof k==="object"&&k!==null&&k.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),g=Symbol.for("react.client.reference"),e=c8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=Object.prototype.hasOwnProperty,Q1=Array.isArray,x=console.createTask?console.createTask:function(){return null};c8={react_stack_bottom_frame:function(k){return k()}};var m,c={},l=c8.react_stack_bottom_frame.bind(c8,Y)(),p=x(K(Y)),o={};fw.Fragment=v,fw.jsx=function(k,s,$1){var a=1e4>e.recentlyCreatedOwnerStacks++;return T(k,s,$1,!1,a?Error("react-stack-top-frame"):l,a?x(K(k)):p)},fw.jsxs=function(k,s,$1){var a=1e4>e.recentlyCreatedOwnerStacks++;return T(k,s,$1,!0,a?Error("react-stack-top-frame"):l,a?x(K(k)):p)}})()});var ST=_3((Pf)=>{var x5=n0(T4());(function(){function Q(O,P){return O===P&&(O!==0||1/O===1/P)||O!==O&&P!==P}function U(O,P){R||x5.startTransition===void 0||(R=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var N=P();if(!T){var v=P();H(N,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}v=Y({inst:{value:N,getSnapshot:P}});var f=v[0].inst,w=v[1];return L(function(){f.value=N,f.getSnapshot=P,G(f)&&w({inst:f})},[O,N,P]),z(function(){return G(f)&&w({inst:f}),O(function(){G(f)&&w({inst:f})})},[O]),M(N),N}function G(O){var P=O.getSnapshot;O=O.value;try{var N=P();return!H(O,N)}catch(v){return!0}}function K(O,P){return P()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=x5.useState,z=x5.useEffect,L=x5.useLayoutEffect,M=x5.useDebugValue,R=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;Pf.useSyncExternalStore=x5.useSyncExternalStore!==void 0?x5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fT=_3((Nf)=>{var c3=n0(T4());(function(){function Q(M,R){return M===R&&(M!==0||1/M===1/R)||M!==M&&R!==R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=ST(),G=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=c3.useRef,Y=c3.useEffect,z=c3.useMemo,L=c3.useDebugValue;Nf.useSyncExternalStoreWithSelector=function(M,R,T,A,O){var P=H(null);if(P.current===null){var N={hasValue:!1,value:null};P.current=N}else N=P.current;P=z(function(){function f(y){if(!w){if(w=!0,u=y,y=A(y),O!==void 0&&N.hasValue){var h=N.value;if(O(h,y))return C=h}return C=y}if(h=C,G(u,y))return h;var b=A(y);if(O!==void 0&&O(h,b))return u=y,h;return u=y,C=b}var w=!1,u,C,j=T===void 0?null:T;return[function(){return f(R())},j===null?void 0:function(){return f(j())}]},[R,T,A,O]);var v=K(M,P[0],P[1]);return Y(function(){N.hasValue=!0,N.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 yO=n0(xA(),1);var h2=n0(T4(),1);var mA={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 d1=n0(m8(),1),Pw="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function WJ({href:Q,onClick:U}){return d1.jsxDEV("h1",{children:d1.jsxDEV("a",{href:Q,onClick:U,children:[d1.jsxDEV("img",{src:Pw,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),d1.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 b3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function pA(Q,U,G=0,K=""){let[H,Y]=h2.useState({state:"loading"});return h2.useEffect(()=>{Y({state:"loading"})},[K,U]),h2.useEffect(()=>{if(!U)return;let z=!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 b3(L)};if(z)Y(M)}catch(L){if(z)Y({state:"error",status:0,error:String(L)})}})(),()=>{z=!1}},[K,U,G]),H}function a2({load:Q,what:U,retry:G,lines:K=3}){if(Q.state==="loading")return d1.jsxDEV(Nw,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return d1.jsxDEV("div",{role:"alert",className:"error-state",children:[d1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),G?d1.jsxDEV("button",{type:"button",onClick:G,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function Nw({lines:Q=3,label:U="Loading…"}){return d1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(G,K)=>d1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function V0({iso:Q,time:U}){if(!Q)return d1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let G=new Date(Q);return d1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(G.getTime())?Q:U?G.toLocaleTimeString():G.toLocaleString()},void 0,!1,void 0,this)}var g8=(Q)=>Q?new Date(Q).toLocaleString():"—";function oF(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let G=Math.max(0,Math.round((Date.now()-U)/1000));return G<60?"just now":G<3600?`${Math.round(G/60)}m ago`:G<86400?`${Math.round(G/3600)}h ago`:`${Math.round(G/86400)}d ago`}function i0(Q,U){let G=U.replace(/[_-]+/g," "),K=G.endsWith("s")?G:/[^aeiou]y$/.test(G)?`${G.slice(0,-1)}ies`:/(ch|sh|x)$/.test(G)?`${G}es`:`${G}s`;return`${Q} ${Q===1?G:K}`}var p8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,ww={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)=>ww[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function U2({vendor:Q}){let U=mA[Q];return d1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?d1.jsxDEV("svg",{viewBox:"0 0 24 24",children:d1.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 gA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},Cw="volter.theme",nF=()=>{try{let Q=localStorage.getItem(Cw);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Aq(Q=nF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function cA(){return h2.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()},G=(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",G),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",G)}},[]),null}function h5({open:Q,onClose:U,title:G,children:K,footer:H,wide:Y}){let z=h2.useRef(null),L=h2.useId();return h2.useEffect(()=>{let M=z.current;if(!M)return;if(Q&&!M.open){M.showModal();let R=M.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(R?.focus(),R instanceof HTMLInputElement&&R.value&&/^(text|search|email|url)$/.test(R.type))R.select()}if(!Q&&M.open)M.close()},[Q]),d1.jsxDEV("dialog",{ref:z,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":L,onClose:U,onCancel:(M)=>{M.preventDefault(),U()},onMouseDown:(M)=>{if(M.target===z.current)U()},children:Q?d1.jsxDEV(d1.Fragment,{children:[d1.jsxDEV("div",{className:"dialog-head",children:[d1.jsxDEV("h2",{id:L,children:G},void 0,!1,void 0,this),d1.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),d1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?d1.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 sF="volter:confirm";function J3(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(sF,{detail:{ask:Q,resolve:U}}))})}function lA(){let[Q,U]=h2.useState(null),[G,K]=h2.useState("");h2.useEffect(()=>{let L=(M)=>{K(""),U(M.detail)};return window.addEventListener(sF,L),()=>window.removeEventListener(sF,L)},[]);let H=(L)=>{Q?.resolve(L),U(null)},Y=Q?.ask,z=!Y?.typed||G===Y.typed;return d1.jsxDEV(h5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:d1.jsxDEV(d1.Fragment,{children:[d1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),d1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!z,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?d1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?d1.jsxDEV("div",{className:"typed-confirm",children:[d1.jsxDEV("p",{children:["Type ",d1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),d1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:G,onChange:(L)=>K(L.target.value),onKeyDown:(L)=>{if(L.key==="Enter"&&z)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 tF="volter:toast";function J2(Q,U="ok"){window.dispatchEvent(new CustomEvent(tF,{detail:{text:Q,kind:U}}))}function dA(){let[Q,U]=h2.useState([]);return h2.useEffect(()=>{let G=0,K=(H)=>{let{text:Y,kind:z}=H.detail,L=++G;if(U((M)=>[...M.slice(-3),{id:L,text:Y,kind:z}]),z!=="error")setTimeout(()=>U((M)=>M.filter((R)=>R.id!==L)),4500)};return window.addEventListener(tF,K),()=>window.removeEventListener(tF,K)},[]),d1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((G)=>d1.jsxDEV("div",{className:`toast ${G.kind}`,role:G.kind==="error"?"alert":"status",children:[d1.jsxDEV("span",{children:G.text},void 0,!1,void 0,this),d1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.filter((H)=>H.id!==G.id)),children:"✕"},void 0,!1,void 0,this)]},G.id,!0,void 0,this))},void 0,!1,void 0,this)}function eF({value:Q,label:U,secret:G}){let[K,H]=h2.useState(!1);return d1.jsxDEV("div",{className:"copy-field",children:[U?d1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,d1.jsxDEV("div",{className:"copy-row",children:[d1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(z)=>z.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),d1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),J2(G?"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 iA({label:Q,items:U}){return d1.jsxDEV("details",{className:"menu row-menu",children:[d1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),d1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((G)=>Boolean(G)).map((G)=>G.href?d1.jsxDEV("a",{role:"menuitem",href:G.href,className:G.danger?"danger-item":void 0,onClick:gA,children:G.label},G.label,!1,void 0,this):d1.jsxDEV("button",{type:"button",role:"menuitem",disabled:G.disabled,className:G.danger?"danger-item":void 0,onClick:(K)=>{gA(K),G.onSelect?.()},children:G.label},G.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Y9({title:Q,children:U,action:G}){return d1.jsxDEV("div",{className:"empty-state",children:[d1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?d1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,G?d1.jsxDEV("div",{className:"empty-action",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function rA(){return h2.useEffect(()=>{let Q=(G)=>{let K=document.querySelector("main.app"),H=G.target;if(K?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(G)=>{if(G.key==="Escape")Sw()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),d1.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 Sw=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var Z1=n0(T4(),1);var Y1=n0(aA(),1),B1=n0(T4(),1);function $2(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let G=0,K;G<Q.length;G++)if((K=$2(Q[G]))!=="")U+=(U&&" ")+K}else for(let G in Q)if(Q[G])U+=(U&&" ")+G;return U}var jw={value:()=>{}};function tA(){for(var Q=0,U=arguments.length,G={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in G||/[\s.]/.test(K))throw Error("illegal type: "+K);G[K]=[]}return new Mq(G)}function Mq(Q){this._=Q}function vw(Q,U){return Q.trim().split(/^|\s+/).map(function(G){var K="",H=G.indexOf(".");if(H>=0)K=G.slice(H+1),G=G.slice(0,H);if(G&&!U.hasOwnProperty(G))throw Error("unknown type: "+G);return{type:G,name:K}})}Mq.prototype=tA.prototype={constructor:Mq,on:function(Q,U){var G=this._,K=vw(Q+"",G),H,Y=-1,z=K.length;if(arguments.length<2){while(++Y<z)if((H=(Q=K[Y]).type)&&(H=Vw(G[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<z)if(H=(Q=K[Y]).type)G[H]=sA(G[H],Q.name,U);else if(U==null)for(H in G)G[H]=sA(G[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var G in U)Q[G]=U[G].slice();return new Mq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var G=Array(H),K=0,H,Y;K<H;++K)G[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,G)},apply:function(Q,U,G){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,G)}};function Vw(Q,U){for(var G=0,K=Q.length,H;G<K;++G)if((H=Q[G]).name===U)return H.value}function sA(Q,U,G){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=jw,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(G!=null)Q.push({name:U,value:G});return Q}var l8=tA;function z9(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",_X={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+="",G=U.indexOf(":");if(G>=0&&(U=Q.slice(0,G))!=="xmlns")Q=Q.slice(G+1);return _X.hasOwnProperty(U)?{space:_X[U],local:Q}:Q}function JX(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function s2(Q,U){if(Q=JX(Q),U===void 0)U=Q.currentTarget;if(U){var G=U.ownerSVGElement||U;if(G.createSVGPoint){var K=G.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 yw(){}function p6(Q){return Q==null?yw:function(){return this.querySelector(Q)}}function $X(Q){if(typeof Q!=="function")Q=p6(Q);for(var U=this._groups,G=U.length,K=Array(G),H=0;H<G;++H)for(var Y=U[H],z=Y.length,L=K[H]=Array(z),M,R,T=0;T<z;++T)if((M=Y[T])&&(R=Q.call(M,M.__data__,T,Y))){if("__data__"in M)R.__data__=M.__data__;L[T]=R}return new G2(K,this._parents)}function QX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function kw(){return[]}function W9(Q){return Q==null?kw:function(){return this.querySelectorAll(Q)}}function Dw(Q){return function(){return QX(Q.apply(this,arguments))}}function qX(Q){if(typeof Q==="function")Q=Dw(Q);else Q=W9(Q);for(var U=this._groups,G=U.length,K=[],H=[],Y=0;Y<G;++Y)for(var z=U[Y],L=z.length,M,R=0;R<L;++R)if(M=z[R])K.push(Q.call(M,M.__data__,R,z)),H.push(M);return new G2(K,H)}var uw=Array.prototype.find;function bw(Q){return function(){return uw.call(this.children,Q)}}function Ew(){return this.firstElementChild}function UX(Q){return this.select(Q==null?Ew:bw(typeof Q==="function"?Q:Tq(Q)))}var hw=Array.prototype.filter;function xw(){return Array.from(this.children)}function mw(Q){return function(){return hw.call(this.children,Q)}}function GX(Q){return this.selectAll(Q==null?xw:mw(typeof Q==="function"?Q:Tq(Q)))}function ZX(Q){if(typeof Q!=="function")Q=z9(Q);for(var U=this._groups,G=U.length,K=Array(G),H=0;H<G;++H)for(var Y=U[H],z=Y.length,L=K[H]=[],M,R=0;R<z;++R)if((M=Y[R])&&Q.call(M,M.__data__,R,Y))L.push(M);return new G2(K,this._parents)}function LJ(Q){return Array(Q.length)}function FX(){return new G2(this._enter||this._groups.map(LJ),this._parents)}function BJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}BJ.prototype={constructor:BJ,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 XX(Q){return function(){return Q}}function gw(Q,U,G,K,H,Y){var z=0,L,M=U.length,R=Y.length;for(;z<R;++z)if(L=U[z])L.__data__=Y[z],K[z]=L;else G[z]=new BJ(Q,Y[z]);for(;z<M;++z)if(L=U[z])H[z]=L}function pw(Q,U,G,K,H,Y,z){var L,M,R=new Map,T=U.length,A=Y.length,O=Array(T),P;for(L=0;L<T;++L)if(M=U[L])if(O[L]=P=z.call(M,M.__data__,L,U)+"",R.has(P))H[L]=M;else R.set(P,M);for(L=0;L<A;++L)if(P=z.call(Q,Y[L],L,Y)+"",M=R.get(P))K[L]=M,M.__data__=Y[L],R.delete(P);else G[L]=new BJ(Q,Y[L]);for(L=0;L<T;++L)if((M=U[L])&&R.get(O[L])===M)H[L]=M}function cw(Q){return Q.__data__}function KX(Q,U){if(!arguments.length)return Array.from(this,cw);var G=U?pw:gw,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=XX(Q);for(var Y=H.length,z=Array(Y),L=Array(Y),M=Array(Y),R=0;R<Y;++R){var T=K[R],A=H[R],O=A.length,P=lw(Q.call(T,T&&T.__data__,R,K)),N=P.length,v=L[R]=Array(N),f=z[R]=Array(N),w=M[R]=Array(O);G(T,A,v,f,w,P,U);for(var u=0,C=0,j,y;u<N;++u)if(j=v[u]){if(u>=C)C=u+1;while(!(y=f[C])&&++C<N);j._next=y||null}}return z=new G2(z,K),z._enter=L,z._exit=M,z}function lw(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function HX(){return new G2(this._exit||this._groups.map(LJ),this._parents)}function YX(Q,U,G){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(G==null)Y.remove();else G(Y);return K&&H?K.merge(H).order():H}function zX(Q){var U=Q.selection?Q.selection():Q;for(var G=this._groups,K=U._groups,H=G.length,Y=K.length,z=Math.min(H,Y),L=Array(H),M=0;M<z;++M)for(var R=G[M],T=K[M],A=R.length,O=L[M]=Array(A),P,N=0;N<A;++N)if(P=R[N]||T[N])O[N]=P;for(;M<H;++M)L[M]=G[M];return new G2(L,this._parents)}function WX(){for(var Q=this._groups,U=-1,G=Q.length;++U<G;)for(var K=Q[U],H=K.length-1,Y=K[H],z;--H>=0;)if(z=K[H]){if(Y&&z.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(z,Y);Y=z}return this}function LX(Q){if(!Q)Q=dw;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var G=this._groups,K=G.length,H=Array(K),Y=0;Y<K;++Y){for(var z=G[Y],L=z.length,M=H[Y]=Array(L),R,T=0;T<L;++T)if(R=z[T])M[T]=R;M.sort(U)}return new G2(H,this._parents).order()}function dw(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function BX(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function AX(){return Array.from(this)}function MX(){for(var Q=this._groups,U=0,G=Q.length;U<G;++U)for(var K=Q[U],H=0,Y=K.length;H<Y;++H){var z=K[H];if(z)return z}return null}function TX(){let Q=0;for(let U of this)++Q;return Q}function RX(){return!this.node()}function OX(Q){for(var U=this._groups,G=0,K=U.length;G<K;++G)for(var H=U[G],Y=0,z=H.length,L;Y<z;++Y)if(L=H[Y])Q.call(L,L.__data__,Y,H);return this}function iw(Q){return function(){this.removeAttribute(Q)}}function rw(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function aw(Q,U){return function(){this.setAttribute(Q,U)}}function sw(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function tw(Q,U){return function(){var G=U.apply(this,arguments);if(G==null)this.removeAttribute(Q);else this.setAttribute(Q,G)}}function ow(Q,U){return function(){var G=U.apply(this,arguments);if(G==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,G)}}function IX(Q,U){var G=$3(Q);if(arguments.length<2){var K=this.node();return G.local?K.getAttributeNS(G.space,G.local):K.getAttribute(G)}return this.each((U==null?G.local?rw:iw:typeof U==="function"?G.local?ow:tw:G.local?sw:aw)(G,U))}function AJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function nw(Q){return function(){this.style.removeProperty(Q)}}function ew(Q,U,G){return function(){this.style.setProperty(Q,U,G)}}function _C(Q,U,G){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,G)}}function PX(Q,U,G){return arguments.length>1?this.each((U==null?nw:typeof U==="function"?_C:ew)(Q,U,G==null?"":G)):c6(this.node(),Q)}function c6(Q,U){return Q.style.getPropertyValue(U)||AJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function JC(Q){return function(){delete this[Q]}}function $C(Q,U){return function(){this[Q]=U}}function QC(Q,U){return function(){var G=U.apply(this,arguments);if(G==null)delete this[Q];else this[Q]=G}}function NX(Q,U){return arguments.length>1?this.each((U==null?JC:typeof U==="function"?QC:$C)(Q,U)):this.node()[Q]}function oA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new nA(Q)}function nA(Q){this._node=Q,this._names=oA(Q.getAttribute("class")||"")}nA.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 eA(Q,U){var G=wX(Q),K=-1,H=U.length;while(++K<H)G.add(U[K])}function _M(Q,U){var G=wX(Q),K=-1,H=U.length;while(++K<H)G.remove(U[K])}function qC(Q){return function(){eA(this,Q)}}function UC(Q){return function(){_M(this,Q)}}function GC(Q,U){return function(){(U.apply(this,arguments)?eA:_M)(this,Q)}}function CX(Q,U){var G=oA(Q+"");if(arguments.length<2){var K=wX(this.node()),H=-1,Y=G.length;while(++H<Y)if(!K.contains(G[H]))return!1;return!0}return this.each((typeof U==="function"?GC:U?qC:UC)(G,U))}function ZC(){this.textContent=""}function FC(Q){return function(){this.textContent=Q}}function XC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function SX(Q){return arguments.length?this.each(Q==null?ZC:(typeof Q==="function"?XC:FC)(Q)):this.node().textContent}function KC(){this.innerHTML=""}function HC(Q){return function(){this.innerHTML=Q}}function YC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function fX(Q){return arguments.length?this.each(Q==null?KC:(typeof Q==="function"?YC:HC)(Q)):this.node().innerHTML}function zC(){if(this.nextSibling)this.parentNode.appendChild(this)}function jX(){return this.each(zC)}function WC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vX(){return this.each(WC)}function LC(Q){return function(){var U=this.ownerDocument,G=this.namespaceURI;return G===Rq&&U.documentElement.namespaceURI===Rq?U.createElement(Q):U.createElementNS(G,Q)}}function BC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function MJ(Q){var U=$3(Q);return(U.local?BC:LC)(U)}function VX(Q){var U=typeof Q==="function"?Q:MJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function AC(){return null}function yX(Q,U){var G=typeof Q==="function"?Q:MJ(Q),K=U==null?AC:typeof U==="function"?U:p6(U);return this.select(function(){return this.insertBefore(G.apply(this,arguments),K.apply(this,arguments)||null)})}function MC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function kX(){return this.each(MC)}function TC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function RC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function DX(Q){return this.select(Q?RC:TC)}function uX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function OC(Q){return function(U){Q.call(this,U,this.__data__)}}function IC(Q){return Q.trim().split(/^|\s+/).map(function(U){var G="",K=U.indexOf(".");if(K>=0)G=U.slice(K+1),U=U.slice(0,K);return{type:U,name:G}})}function PC(Q){return function(){var U=this.__on;if(!U)return;for(var G=0,K=-1,H=U.length,Y;G<H;++G)if(Y=U[G],(!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 NC(Q,U,G){return function(){var K=this.__on,H,Y=OC(U);if(K){for(var z=0,L=K.length;z<L;++z)if((H=K[z]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=G),H.value=U;return}}if(this.addEventListener(Q.type,Y,G),H={type:Q.type,name:Q.name,value:U,listener:Y,options:G},!K)this.__on=[H];else K.push(H)}}function bX(Q,U,G){var K=IC(Q+""),H,Y=K.length,z;if(arguments.length<2){var L=this.node().__on;if(L){for(var M=0,R=L.length,T;M<R;++M)for(H=0,T=L[M];H<Y;++H)if((z=K[H]).type===T.type&&z.name===T.name)return T.value}return}L=U?NC:PC;for(H=0;H<Y;++H)this.each(L(K[H],U,G));return this}function JM(Q,U,G){var K=AJ(Q),H=K.CustomEvent;if(typeof H==="function")H=new H(U,G);else if(H=K.document.createEvent("Event"),G)H.initEvent(U,G.bubbles,G.cancelable),H.detail=G.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function wC(Q,U){return function(){return JM(this,Q,U)}}function CC(Q,U){return function(){return JM(this,Q,U.apply(this,arguments))}}function EX(Q,U){return this.each((typeof U==="function"?CC:wC)(Q,U))}function*hX(){for(var Q=this._groups,U=0,G=Q.length;U<G;++U)for(var K=Q[U],H=0,Y=K.length,z;H<Y;++H)if(z=K[H])yield z}var xX=[null];function G2(Q,U){this._groups=Q,this._parents=U}function $M(){return new G2([[document.documentElement]],xX)}function SC(){return this}G2.prototype=$M.prototype={constructor:G2,select:$X,selectAll:qX,selectChild:UX,selectChildren:GX,filter:ZX,data:KX,enter:FX,exit:HX,join:YX,merge:zX,selection:SC,order:WX,sort:LX,call:BX,nodes:AX,node:MX,size:TX,empty:RX,each:OX,attr:IX,style:PX,property:NX,classed:CX,text:SX,html:fX,raise:jX,lower:vX,append:VX,insert:yX,remove:kX,clone:DX,datum:uX,on:bX,dispatch:EX,[Symbol.iterator]:hX};var E3=$M;function v2(Q){return typeof Q==="string"?new G2([[document.querySelector(Q)]],[document.documentElement]):new G2([[Q]],xX)}var QM={passive:!1},d8={capture:!0,passive:!1};function Oq(Q){Q.stopImmediatePropagation()}function h3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function L9(Q){var U=Q.document.documentElement,G=v2(Q).on("dragstart.drag",h3,d8);if("onselectstart"in U)G.on("selectstart.drag",h3,d8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function TJ(Q,U){var G=Q.document.documentElement,K=v2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",h3,d8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in G)K.on("selectstart.drag",null);else G.style.MozUserSelect=G.__noselect,delete G.__noselect}var RJ=(Q)=>()=>Q;function OJ(Q,{sourceEvent:U,subject:G,target:K,identifier:H,active:Y,x:z,y:L,dx:M,dy:R,dispatch:T}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:G,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:z,enumerable:!0,configurable:!0},y:{value:L,enumerable:!0,configurable:!0},dx:{value:M,enumerable:!0,configurable:!0},dy:{value:R,enumerable:!0,configurable:!0},_:{value:T}})}OJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function fC(Q){return!Q.ctrlKey&&!Q.button}function jC(){return this.parentNode}function vC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function VC(){return navigator.maxTouchPoints||"ontouchstart"in this}function IJ(){var Q=fC,U=jC,G=vC,K=VC,H={},Y=l8("start","drag","end"),z=0,L,M,R,T,A=0;function O(j){j.on("mousedown.drag",P).filter(K).on("touchstart.drag",f).on("touchmove.drag",w,QM).on("touchend.drag touchcancel.drag",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(j,y){if(T||!Q.call(this,j,y))return;var h=C(this,U.call(this,j,y),j,y,"mouse");if(!h)return;v2(j.view).on("mousemove.drag",N,d8).on("mouseup.drag",v,d8),L9(j.view),Oq(j),R=!1,L=j.clientX,M=j.clientY,h("start",j)}function N(j){if(h3(j),!R){var y=j.clientX-L,h=j.clientY-M;R=y*y+h*h>A}H.mouse("drag",j)}function v(j){v2(j.view).on("mousemove.drag mouseup.drag",null),TJ(j.view,R),h3(j),H.mouse("end",j)}function f(j,y){if(!Q.call(this,j,y))return;var h=j.changedTouches,b=U.call(this,j,y),E=h.length,D,g;for(D=0;D<E;++D)if(g=C(this,b,j,y,h[D].identifier,h[D]))Oq(j),g("start",j,h[D])}function w(j){var y=j.changedTouches,h=y.length,b,E;for(b=0;b<h;++b)if(E=H[y[b].identifier])h3(j),E("drag",j,y[b])}function u(j){var y=j.changedTouches,h=y.length,b,E;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(b=0;b<h;++b)if(E=H[y[b].identifier])Oq(j),E("end",j,y[b])}function C(j,y,h,b,E,D){var g=Y.copy(),e=s2(D||h,y),q1,Q1,x;if((x=G.call(j,new OJ("beforestart",{sourceEvent:h,target:O,identifier:E,active:z,x:e[0],y:e[1],dx:0,dy:0,dispatch:g}),b))==null)return;return q1=x.x-e[0]||0,Q1=x.y-e[1]||0,function m(c,l,p){var o=e,k;switch(c){case"start":H[E]=m,k=z++;break;case"end":delete H[E],--z;case"drag":e=s2(p||l,y),k=z;break}g.call(c,j,new OJ(c,{sourceEvent:l,subject:x,target:O,identifier:E,active:k,x:e[0]+q1,y:e[1]+Q1,dx:e[0]-o[0],dy:e[1]-o[1],dispatch:g}),b)}}return O.filter=function(j){return arguments.length?(Q=typeof j==="function"?j:RJ(!!j),O):Q},O.container=function(j){return arguments.length?(U=typeof j==="function"?j:RJ(j),O):U},O.subject=function(j){return arguments.length?(G=typeof j==="function"?j:RJ(j),O):G},O.touchable=function(j){return arguments.length?(K=typeof j==="function"?j:RJ(!!j),O):K},O.on=function(){var j=Y.on.apply(Y,arguments);return j===Y?O:j},O.clickDistance=function(j){return arguments.length?(A=(j=+j)*j,O):Math.sqrt(A)},O}function PJ(Q,U,G){Q.prototype=U.prototype=G,G.constructor=Q}function mX(Q,U){var G=Object.create(Q.prototype);for(var K in U)G[K]=U[K];return G}function CJ(){}var NJ=0.7,Nq=1/NJ,B9="\\s*([+-]?\\d+)\\s*",wJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Q3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yC=/^#([0-9a-f]{3,8})$/,kC=new RegExp(`^rgb\\(${B9},${B9},${B9}\\)$`),DC=new RegExp(`^rgb\\(${Q3},${Q3},${Q3}\\)$`),uC=new RegExp(`^rgba\\(${B9},${B9},${B9},${wJ}\\)$`),bC=new RegExp(`^rgba\\(${Q3},${Q3},${Q3},${wJ}\\)$`),EC=new RegExp(`^hsl\\(${wJ},${Q3},${Q3}\\)$`),hC=new RegExp(`^hsla\\(${wJ},${Q3},${Q3},${wJ}\\)$`),qM={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};PJ(CJ,O4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:UM,formatHex:UM,formatHex8:xC,formatHsl:mC,formatRgb:GM,toString:GM});function UM(){return this.rgb().formatHex()}function xC(){return this.rgb().formatHex8()}function mC(){return YM(this).formatHsl()}function GM(){return this.rgb().formatRgb()}function O4(Q){var U,G;return Q=(Q+"").trim().toLowerCase(),(U=yC.exec(Q))?(G=U[1].length,U=parseInt(U[1],16),G===6?ZM(U):G===3?new T5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):G===8?Iq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):G===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=kC.exec(Q))?new T5(U[1],U[2],U[3],1):(U=DC.exec(Q))?new T5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=uC.exec(Q))?Iq(U[1],U[2],U[3],U[4]):(U=bC.exec(Q))?Iq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=EC.exec(Q))?KM(U[1],U[2]/100,U[3]/100,1):(U=hC.exec(Q))?KM(U[1],U[2]/100,U[3]/100,U[4]):qM.hasOwnProperty(Q)?ZM(qM[Q]):Q==="transparent"?new T5(NaN,NaN,NaN,0):null}function ZM(Q){return new T5(Q>>16&255,Q>>8&255,Q&255,1)}function Iq(Q,U,G,K){if(K<=0)Q=U=G=NaN;return new T5(Q,U,G,K)}function gC(Q){if(!(Q instanceof CJ))Q=O4(Q);if(!Q)return new T5;return Q=Q.rgb(),new T5(Q.r,Q.g,Q.b,Q.opacity)}function A9(Q,U,G,K){return arguments.length===1?gC(Q):new T5(Q,U,G,K==null?1:K)}function T5(Q,U,G,K){this.r=+Q,this.g=+U,this.b=+G,this.opacity=+K}PJ(T5,A9,mX(CJ,{brighter(Q){return Q=Q==null?Nq:Math.pow(Nq,Q),new T5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?NJ:Math.pow(NJ,Q),new T5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new T5(r8(this.r),r8(this.g),r8(this.b),wq(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:FM,formatHex:FM,formatHex8:pC,formatRgb:XM,toString:XM}));function FM(){return`#${i8(this.r)}${i8(this.g)}${i8(this.b)}`}function pC(){return`#${i8(this.r)}${i8(this.g)}${i8(this.b)}${i8((isNaN(this.opacity)?1:this.opacity)*255)}`}function XM(){let Q=wq(this.opacity);return`${Q===1?"rgb(":"rgba("}${r8(this.r)}, ${r8(this.g)}, ${r8(this.b)}${Q===1?")":`, ${Q})`}`}function wq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function r8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function i8(Q){return Q=r8(Q),(Q<16?"0":"")+Q.toString(16)}function KM(Q,U,G,K){if(K<=0)Q=U=G=NaN;else if(G<=0||G>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new R4(Q,U,G,K)}function YM(Q){if(Q instanceof R4)return new R4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof CJ))Q=O4(Q);if(!Q)return new R4;if(Q instanceof R4)return Q;Q=Q.rgb();var U=Q.r/255,G=Q.g/255,K=Q.b/255,H=Math.min(U,G,K),Y=Math.max(U,G,K),z=NaN,L=Y-H,M=(Y+H)/2;if(L){if(U===Y)z=(G-K)/L+(G<K)*6;else if(G===Y)z=(K-U)/L+2;else z=(U-G)/L+4;L/=M<0.5?Y+H:2-Y-H,z*=60}else L=M>0&&M<1?0:z;return new R4(z,L,M,Q.opacity)}function zM(Q,U,G,K){return arguments.length===1?YM(Q):new R4(Q,U,G,K==null?1:K)}function R4(Q,U,G,K){this.h=+Q,this.s=+U,this.l=+G,this.opacity=+K}PJ(R4,zM,mX(CJ,{brighter(Q){return Q=Q==null?Nq:Math.pow(Nq,Q),new R4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?NJ:Math.pow(NJ,Q),new R4(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,G=this.l,K=G+(G<0.5?G:1-G)*U,H=2*G-K;return new T5(gX(Q>=240?Q-240:Q+120,H,K),gX(Q,H,K),gX(Q<120?Q+240:Q-120,H,K),this.opacity)},clamp(){return new R4(HM(this.h),Pq(this.s),Pq(this.l),wq(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=wq(this.opacity);return`${Q===1?"hsl(":"hsla("}${HM(this.h)}, ${Pq(this.s)*100}%, ${Pq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function HM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Pq(Q){return Math.max(0,Math.min(1,Q||0))}function gX(Q,U,G){return(Q<60?U+(G-U)*Q/60:Q<180?G:Q<240?U+(G-U)*(240-Q)/60:U)*255}function pX(Q,U,G,K,H){var Y=Q*Q,z=Y*Q;return((1-3*Q+3*Y-z)*U+(4-6*Y+3*z)*G+(1+3*Q+3*Y-3*z)*K+z*H)/6}function cX(Q){var U=Q.length-1;return function(G){var K=G<=0?G=0:G>=1?(G=1,U-1):Math.floor(G*U),H=Q[K],Y=Q[K+1],z=K>0?Q[K-1]:2*H-Y,L=K<U-1?Q[K+2]:2*Y-H;return pX((G-K/U)*U,z,H,Y,L)}}function lX(Q){var U=Q.length;return function(G){var K=Math.floor(((G%=1)<0?++G:G)*U),H=Q[(K+U-1)%U],Y=Q[K%U],z=Q[(K+1)%U],L=Q[(K+2)%U];return pX((G-K/U)*U,H,Y,z,L)}}var SJ=(Q)=>()=>Q;function cC(Q,U){return function(G){return Q+G*U}}function lC(Q,U,G){return Q=Math.pow(Q,G),U=Math.pow(U,G)-Q,G=1/G,function(K){return Math.pow(Q+K*U,G)}}function WM(Q){return(Q=+Q)===1?Cq:function(U,G){return G-U?lC(U,G,Q):SJ(isNaN(U)?G:U)}}function Cq(Q,U){var G=U-Q;return G?cC(Q,G):SJ(isNaN(Q)?U:Q)}var a8=function Q(U){var G=WM(U);function K(H,Y){var z=G((H=A9(H)).r,(Y=A9(Y)).r),L=G(H.g,Y.g),M=G(H.b,Y.b),R=Cq(H.opacity,Y.opacity);return function(T){return H.r=z(T),H.g=L(T),H.b=M(T),H.opacity=R(T),H+""}}return K.gamma=Q,K}(1);function LM(Q){return function(U){var G=U.length,K=Array(G),H=Array(G),Y=Array(G),z,L;for(z=0;z<G;++z)L=A9(U[z]),K[z]=L.r||0,H[z]=L.g||0,Y[z]=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 dC=LM(cX),iC=LM(lX);function dX(Q,U){if(!U)U=[];var G=Q?Math.min(U.length,Q.length):0,K=U.slice(),H;return function(Y){for(H=0;H<G;++H)K[H]=Q[H]*(1-Y)+U[H]*Y;return K}}function BM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function AM(Q,U){var G=U?U.length:0,K=Q?Math.min(G,Q.length):0,H=Array(K),Y=Array(G),z;for(z=0;z<K;++z)H[z]=q3(Q[z],U[z]);for(;z<G;++z)Y[z]=U[z];return function(L){for(z=0;z<K;++z)Y[z]=H[z](L);return Y}}function iX(Q,U){var G=new Date;return Q=+Q,U=+U,function(K){return G.setTime(Q*(1-K)+U*K),G}}function t2(Q,U){return Q=+Q,U=+U,function(G){return Q*(1-G)+U*G}}function rX(Q,U){var G={},K={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)G[H]=q3(Q[H],U[H]);else K[H]=U[H];return function(Y){for(H in G)K[H]=G[H](Y);return K}}var sX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aX=new RegExp(sX.source,"g");function rC(Q){return function(){return Q}}function aC(Q){return function(U){return Q(U)+""}}function M9(Q,U){var G=sX.lastIndex=aX.lastIndex=0,K,H,Y,z=-1,L=[],M=[];Q=Q+"",U=U+"";while((K=sX.exec(Q))&&(H=aX.exec(U))){if((Y=H.index)>G)if(Y=U.slice(G,Y),L[z])L[z]+=Y;else L[++z]=Y;if((K=K[0])===(H=H[0]))if(L[z])L[z]+=H;else L[++z]=H;else L[++z]=null,M.push({i:z,x:t2(K,H)});G=aX.lastIndex}if(G<U.length)if(Y=U.slice(G),L[z])L[z]+=Y;else L[++z]=Y;return L.length<2?M[0]?aC(M[0].x):rC(U):(U=M.length,function(R){for(var T=0,A;T<U;++T)L[(A=M[T]).i]=A.x(R);return L.join("")})}function q3(Q,U){var G=typeof U,K;return U==null||G==="boolean"?SJ(U):(G==="number"?t2:G==="string"?(K=O4(U))?(U=K,a8):M9:U instanceof O4?a8:U instanceof Date?iX:BM(U)?dX:Array.isArray(U)?AM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?rX:t2)(Q,U)}var MM=180/Math.PI,Sq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fq(Q,U,G,K,H,Y){var z,L,M;if(z=Math.sqrt(Q*Q+U*U))Q/=z,U/=z;if(M=Q*G+U*K)G-=Q*M,K-=U*M;if(L=Math.sqrt(G*G+K*K))G/=L,K/=L,M/=L;if(Q*K<U*G)Q=-Q,U=-U,M=-M,z=-z;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*MM,skewX:Math.atan(M)*MM,scaleX:z,scaleY:L}}var jq;function TM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Sq:fq(U.a,U.b,U.c,U.d,U.e,U.f)}function RM(Q){if(Q==null)return Sq;if(!jq)jq=document.createElementNS("http://www.w3.org/2000/svg","g");if(jq.setAttribute("transform",Q),!(Q=jq.transform.baseVal.consolidate()))return Sq;return Q=Q.matrix,fq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function OM(Q,U,G,K){function H(R){return R.length?R.pop()+" ":""}function Y(R,T,A,O,P,N){if(R!==A||T!==O){var v=P.push("translate(",null,U,null,G);N.push({i:v-4,x:t2(R,A)},{i:v-2,x:t2(T,O)})}else if(A||O)P.push("translate("+A+U+O+G)}function z(R,T,A,O){if(R!==T){if(R-T>180)T+=360;else if(T-R>180)R+=360;O.push({i:A.push(H(A)+"rotate(",null,K)-2,x:t2(R,T)})}else if(T)A.push(H(A)+"rotate("+T+K)}function L(R,T,A,O){if(R!==T)O.push({i:A.push(H(A)+"skewX(",null,K)-2,x:t2(R,T)});else if(T)A.push(H(A)+"skewX("+T+K)}function M(R,T,A,O,P,N){if(R!==A||T!==O){var v=P.push(H(P)+"scale(",null,",",null,")");N.push({i:v-4,x:t2(R,A)},{i:v-2,x:t2(T,O)})}else if(A!==1||O!==1)P.push(H(P)+"scale("+A+","+O+")")}return function(R,T){var A=[],O=[];return R=Q(R),T=Q(T),Y(R.translateX,R.translateY,T.translateX,T.translateY,A,O),z(R.rotate,T.rotate,A,O),L(R.skewX,T.skewX,A,O),M(R.scaleX,R.scaleY,T.scaleX,T.scaleY,A,O),R=T=null,function(P){var N=-1,v=O.length,f;while(++N<v)A[(f=O[N]).i]=f.x(P);return A.join("")}}}var tX=OM(TM,"px, ","px)","deg)"),oX=OM(RM,", ",")",")");var sC=0.000000000001;function IM(Q){return((Q=Math.exp(Q))+1/Q)/2}function tC(Q){return((Q=Math.exp(Q))-1/Q)/2}function oC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var s8=function Q(U,G,K){function H(Y,z){var L=Y[0],M=Y[1],R=Y[2],T=z[0],A=z[1],O=z[2],P=T-L,N=A-M,v=P*P+N*N,f,w;if(v<sC)w=Math.log(O/R)/U,f=function(b){return[L+b*P,M+b*N,R*Math.exp(U*b*w)]};else{var u=Math.sqrt(v),C=(O*O-R*R+K*v)/(2*R*G*u),j=(O*O-R*R-K*v)/(2*O*G*u),y=Math.log(Math.sqrt(C*C+1)-C),h=Math.log(Math.sqrt(j*j+1)-j);w=(h-y)/U,f=function(b){var E=b*w,D=IM(y),g=R/(G*u)*(D*oC(U*E+y)-tC(y));return[L+g*P,M+g*N,R*D/IM(U*E+y)]}}return f.duration=w*1000*U/Math.SQRT2,f}return H.rho=function(Y){var z=Math.max(0.001,+Y),L=z*z,M=L*L;return Q(z,L,M)},H}(Math.SQRT2,2,4);var T9=0,jJ=0,fJ=0,NM=1000,vq,vJ,Vq=0,t8=0,yq=0,VJ=typeof performance==="object"&&performance.now?performance:Date,wM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function kJ(){return t8||(wM(nC),t8=VJ.now()+yq)}function nC(){t8=0}function yJ(){this._call=this._time=this._next=null}yJ.prototype=kq.prototype={constructor:yJ,restart:function(Q,U,G){if(typeof Q!=="function")throw TypeError("callback is not a function");if(G=(G==null?kJ():+G)+(U==null?0:+U),!this._next&&vJ!==this){if(vJ)vJ._next=this;else vq=this;vJ=this}this._call=Q,this._time=G,nX()},stop:function(){if(this._call)this._call=null,this._time=1/0,nX()}};function kq(Q,U,G){var K=new yJ;return K.restart(Q,U,G),K}function CM(){kJ(),++T9;var Q=vq,U;while(Q){if((U=t8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--T9}function PM(){t8=(Vq=VJ.now())+yq,T9=jJ=0;try{CM()}finally{T9=0,_S(),t8=0}}function eC(){var Q=VJ.now(),U=Q-Vq;if(U>NM)yq-=U,Vq=Q}function _S(){var Q,U=vq,G,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else G=U._next,U._next=null,U=Q?Q._next=G:vq=G;vJ=Q,nX(K)}function nX(Q){if(T9)return;if(jJ)jJ=clearTimeout(jJ);var U=Q-t8;if(U>24){if(Q<1/0)jJ=setTimeout(PM,Q-VJ.now()-yq);if(fJ)fJ=clearInterval(fJ)}else{if(!fJ)Vq=VJ.now(),fJ=setInterval(eC,NM);T9=1,wM(PM)}}function DJ(Q,U,G){var K=new yJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,G),K}var JS=l8("start","end","cancel","interrupt"),$S=[],jM=0,SM=1,uq=2,Dq=3,fM=4,bq=5,uJ=6;function x3(Q,U,G,K,H,Y){var z=Q.__transition;if(!z)Q.__transition={};else if(G in z)return;QS(Q,G,{name:U,index:K,group:H,on:JS,tween:$S,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:jM})}function bJ(Q,U){var G=V2(Q,U);if(G.state>jM)throw Error("too late; already scheduled");return G}function l2(Q,U){var G=V2(Q,U);if(G.state>Dq)throw Error("too late; already running");return G}function V2(Q,U){var G=Q.__transition;if(!G||!(G=G[U]))throw Error("transition not found");return G}function QS(Q,U,G){var K=Q.__transition,H;K[U]=G,G.timer=kq(Y,0,G.time);function Y(R){if(G.state=SM,G.timer.restart(z,G.delay,G.time),G.delay<=R)z(R-G.delay)}function z(R){var T,A,O,P;if(G.state!==SM)return M();for(T in K){if(P=K[T],P.name!==G.name)continue;if(P.state===Dq)return DJ(z);if(P.state===fM)P.state=uJ,P.timer.stop(),P.on.call("interrupt",Q,Q.__data__,P.index,P.group),delete K[T];else if(+T<U)P.state=uJ,P.timer.stop(),P.on.call("cancel",Q,Q.__data__,P.index,P.group),delete K[T]}if(DJ(function(){if(G.state===Dq)G.state=fM,G.timer.restart(L,G.delay,G.time),L(R)}),G.state=uq,G.on.call("start",Q,Q.__data__,G.index,G.group),G.state!==uq)return;G.state=Dq,H=Array(O=G.tween.length);for(T=0,A=-1;T<O;++T)if(P=G.tween[T].value.call(Q,Q.__data__,G.index,G.group))H[++A]=P;H.length=A+1}function L(R){var T=R<G.duration?G.ease.call(null,R/G.duration):(G.timer.restart(M),G.state=bq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,T);if(G.state===bq)G.on.call("end",Q,Q.__data__,G.index,G.group),M()}function M(){G.state=uJ,G.timer.stop(),delete K[U];for(var R in K)return;delete Q.__transition}}function l6(Q,U){var G=Q.__transition,K,H,Y=!0,z;if(!G)return;U=U==null?null:U+"";for(z in G){if((K=G[z]).name!==U){Y=!1;continue}H=K.state>uq&&K.state<bq,K.state=uJ,K.timer.stop(),K.on.call(H?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete G[z]}if(Y)delete Q.__transition}function eX(Q){return this.each(function(){l6(this,Q)})}function qS(Q,U){var G,K;return function(){var H=l2(this,Q),Y=H.tween;if(Y!==G){K=G=Y;for(var z=0,L=K.length;z<L;++z)if(K[z].name===U){K=K.slice(),K.splice(z,1);break}}H.tween=K}}function US(Q,U,G){var K,H;if(typeof G!=="function")throw Error();return function(){var Y=l2(this,Q),z=Y.tween;if(z!==K){H=(K=z).slice();for(var L={name:U,value:G},M=0,R=H.length;M<R;++M)if(H[M].name===U){H[M]=L;break}if(M===R)H.push(L)}Y.tween=H}}function _K(Q,U){var G=this._id;if(Q+="",arguments.length<2){var K=V2(this.node(),G).tween;for(var H=0,Y=K.length,z;H<Y;++H)if((z=K[H]).name===Q)return z.value;return null}return this.each((U==null?qS:US)(G,Q,U))}function R9(Q,U,G){var K=Q._id;return Q.each(function(){var H=l2(this,K);(H.value||(H.value={}))[U]=G.apply(this,arguments)}),function(H){return V2(H,K).value[U]}}function EJ(Q,U){var G;return(typeof U==="number"?t2:U instanceof O4?a8:(G=O4(U))?(U=G,a8):M9)(Q,U)}function GS(Q){return function(){this.removeAttribute(Q)}}function ZS(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function FS(Q,U,G){var K,H=G+"",Y;return function(){var z=this.getAttribute(Q);return z===H?null:z===K?Y:Y=U(K=z,G)}}function XS(Q,U,G){var K,H=G+"",Y;return function(){var z=this.getAttributeNS(Q.space,Q.local);return z===H?null:z===K?Y:Y=U(K=z,G)}}function KS(Q,U,G){var K,H,Y;return function(){var z,L=G(this),M;if(L==null)return void this.removeAttribute(Q);return z=this.getAttribute(Q),M=L+"",z===M?null:z===K&&M===H?Y:(H=M,Y=U(K=z,L))}}function HS(Q,U,G){var K,H,Y;return function(){var z,L=G(this),M;if(L==null)return void this.removeAttributeNS(Q.space,Q.local);return z=this.getAttributeNS(Q.space,Q.local),M=L+"",z===M?null:z===K&&M===H?Y:(H=M,Y=U(K=z,L))}}function JK(Q,U){var G=$3(Q),K=G==="transform"?oX:EJ;return this.attrTween(Q,typeof U==="function"?(G.local?HS:KS)(G,K,R9(this,"attr."+Q,U)):U==null?(G.local?ZS:GS)(G):(G.local?XS:FS)(G,K,U))}function YS(Q,U){return function(G){this.setAttribute(Q,U.call(this,G))}}function zS(Q,U){return function(G){this.setAttributeNS(Q.space,Q.local,U.call(this,G))}}function WS(Q,U){var G,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)G=(K=Y)&&zS(Q,Y);return G}return H._value=U,H}function LS(Q,U){var G,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)G=(K=Y)&&YS(Q,Y);return G}return H._value=U,H}function $K(Q,U){var G="attr."+Q;if(arguments.length<2)return(G=this.tween(G))&&G._value;if(U==null)return this.tween(G,null);if(typeof U!=="function")throw Error();var K=$3(Q);return this.tween(G,(K.local?WS:LS)(K,U))}function BS(Q,U){return function(){bJ(this,Q).delay=+U.apply(this,arguments)}}function AS(Q,U){return U=+U,function(){bJ(this,Q).delay=U}}function QK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?BS:AS)(U,Q)):V2(this.node(),U).delay}function MS(Q,U){return function(){l2(this,Q).duration=+U.apply(this,arguments)}}function TS(Q,U){return U=+U,function(){l2(this,Q).duration=U}}function qK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?MS:TS)(U,Q)):V2(this.node(),U).duration}function RS(Q,U){if(typeof U!=="function")throw Error();return function(){l2(this,Q).ease=U}}function UK(Q){var U=this._id;return arguments.length?this.each(RS(U,Q)):V2(this.node(),U).ease}function OS(Q,U){return function(){var G=U.apply(this,arguments);if(typeof G!=="function")throw Error();l2(this,Q).ease=G}}function GK(Q){if(typeof Q!=="function")throw Error();return this.each(OS(this._id,Q))}function ZK(Q){if(typeof Q!=="function")Q=z9(Q);for(var U=this._groups,G=U.length,K=Array(G),H=0;H<G;++H)for(var Y=U[H],z=Y.length,L=K[H]=[],M,R=0;R<z;++R)if((M=Y[R])&&Q.call(M,M.__data__,R,Y))L.push(M);return new F5(K,this._parents,this._name,this._id)}function FK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,G=Q._groups,K=U.length,H=G.length,Y=Math.min(K,H),z=Array(K),L=0;L<Y;++L)for(var M=U[L],R=G[L],T=M.length,A=z[L]=Array(T),O,P=0;P<T;++P)if(O=M[P]||R[P])A[P]=O;for(;L<K;++L)z[L]=U[L];return new F5(z,this._parents,this._name,this._id)}function IS(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var G=U.indexOf(".");if(G>=0)U=U.slice(0,G);return!U||U==="start"})}function PS(Q,U,G){var K,H,Y=IS(U)?bJ:l2;return function(){var z=Y(this,Q),L=z.on;if(L!==K)(H=(K=L).copy()).on(U,G);z.on=H}}function XK(Q,U){var G=this._id;return arguments.length<2?V2(this.node(),G).on.on(Q):this.each(PS(G,Q,U))}function NS(Q){return function(){var U=this.parentNode;for(var G in this.__transition)if(+G!==Q)return;if(U)U.removeChild(this)}}function KK(){return this.on("end.remove",NS(this._id))}function HK(Q){var U=this._name,G=this._id;if(typeof Q!=="function")Q=p6(Q);for(var K=this._groups,H=K.length,Y=Array(H),z=0;z<H;++z)for(var L=K[z],M=L.length,R=Y[z]=Array(M),T,A,O=0;O<M;++O)if((T=L[O])&&(A=Q.call(T,T.__data__,O,L))){if("__data__"in T)A.__data__=T.__data__;R[O]=A,x3(R[O],U,G,O,R,V2(T,G))}return new F5(Y,this._parents,U,G)}function YK(Q){var U=this._name,G=this._id;if(typeof Q!=="function")Q=W9(Q);for(var K=this._groups,H=K.length,Y=[],z=[],L=0;L<H;++L)for(var M=K[L],R=M.length,T,A=0;A<R;++A)if(T=M[A]){for(var O=Q.call(T,T.__data__,A,M),P,N=V2(T,G),v=0,f=O.length;v<f;++v)if(P=O[v])x3(P,U,G,v,O,N);Y.push(O),z.push(T)}return new F5(Y,z,U,G)}var wS=E3.prototype.constructor;function zK(){return new wS(this._groups,this._parents)}function CS(Q,U){var G,K,H;return function(){var Y=c6(this,Q),z=(this.style.removeProperty(Q),c6(this,Q));return Y===z?null:Y===G&&z===K?H:H=U(G=Y,K=z)}}function vM(Q){return function(){this.style.removeProperty(Q)}}function SS(Q,U,G){var K,H=G+"",Y;return function(){var z=c6(this,Q);return z===H?null:z===K?Y:Y=U(K=z,G)}}function fS(Q,U,G){var K,H,Y;return function(){var z=c6(this,Q),L=G(this),M=L+"";if(L==null)M=L=(this.style.removeProperty(Q),c6(this,Q));return z===M?null:z===K&&M===H?Y:(H=M,Y=U(K=z,L))}}function jS(Q,U){var G,K,H,Y="style."+U,z="end."+Y,L;return function(){var M=l2(this,Q),R=M.on,T=M.value[Y]==null?L||(L=vM(U)):void 0;if(R!==G||H!==T)(K=(G=R).copy()).on(z,H=T);M.on=K}}function WK(Q,U,G){var K=(Q+="")==="transform"?tX:EJ;return U==null?this.styleTween(Q,CS(Q,K)).on("end.style."+Q,vM(Q)):typeof U==="function"?this.styleTween(Q,fS(Q,K,R9(this,"style."+Q,U))).each(jS(this._id,Q)):this.styleTween(Q,SS(Q,K,U),G).on("end.style."+Q,null)}function vS(Q,U,G){return function(K){this.style.setProperty(Q,U.call(this,K),G)}}function VS(Q,U,G){var K,H;function Y(){var z=U.apply(this,arguments);if(z!==H)K=(H=z)&&vS(Q,z,G);return K}return Y._value=U,Y}function LK(Q,U,G){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,VS(Q,U,G==null?"":G))}function yS(Q){return function(){this.textContent=Q}}function kS(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function BK(Q){return this.tween("text",typeof Q==="function"?kS(R9(this,"text",Q)):yS(Q==null?"":Q+""))}function DS(Q){return function(U){this.textContent=Q.call(this,U)}}function uS(Q){var U,G;function K(){var H=Q.apply(this,arguments);if(H!==G)U=(G=H)&&DS(H);return U}return K._value=Q,K}function AK(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,uS(Q))}function MK(){var Q=this._name,U=this._id,G=Eq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var z=K[Y],L=z.length,M,R=0;R<L;++R)if(M=z[R]){var T=V2(M,U);x3(M,Q,G,R,z,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new F5(K,this._parents,Q,G)}function TK(){var Q,U,G=this,K=G._id,H=G.size();return new Promise(function(Y,z){var L={value:z},M={value:function(){if(--H===0)Y()}};if(G.each(function(){var R=l2(this,K),T=R.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(L),U._.interrupt.push(L),U._.end.push(M);R.on=U}),H===0)Y()})}var bS=0;function F5(Q,U,G,K){this._groups=Q,this._parents=U,this._name=G,this._id=K}function VM(Q){return E3().transition(Q)}function Eq(){return++bS}var m3=E3.prototype;F5.prototype=VM.prototype={constructor:F5,select:HK,selectAll:YK,selectChild:m3.selectChild,selectChildren:m3.selectChildren,filter:ZK,merge:FK,selection:zK,transition:MK,call:m3.call,nodes:m3.nodes,node:m3.node,size:m3.size,empty:m3.empty,each:m3.each,on:XK,attr:JK,attrTween:$K,style:WK,styleTween:LK,text:BK,textTween:AK,remove:KK,tween:_K,delay:QK,duration:qK,ease:UK,easeVarying:GK,end:TK,[Symbol.iterator]:m3[Symbol.iterator]};function hq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var ES={time:null,delay:0,duration:250,ease:hq};function hS(Q,U){var G;while(!(G=Q.__transition)||!(G=G[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return G}function RK(Q){var U,G;if(Q instanceof F5)U=Q._id,Q=Q._name;else U=Eq(),(G=ES).time=kJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var z=K[Y],L=z.length,M,R=0;R<L;++R)if(M=z[R])x3(M,Q,U,R,z,G||hS(M,U));return new F5(K,this._parents,Q,U)}E3.prototype.interrupt=eX;E3.prototype.transition=RK;var hJ=(Q)=>()=>Q;function OK(Q,{sourceEvent:U,target:G,transform:K,dispatch:H}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:G,enumerable:!0,configurable:!0},transform:{value:K,enumerable:!0,configurable:!0},_:{value:H}})}function I4(Q,U,G){this.k=Q,this.x=U,this.y=G}I4.prototype={constructor:I4,scale:function(Q){return Q===1?this:new I4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new I4(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 o8=new I4(1,0,0);xJ.prototype=I4.prototype;function xJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return o8;return Q.__zoom}function xq(Q){Q.stopImmediatePropagation()}function n8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function xS(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function mS(){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 yM(){return this.__zoom||o8}function gS(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function pS(){return navigator.maxTouchPoints||"ontouchstart"in this}function cS(Q,U,G){var K=Q.invertX(U[0][0])-G[0][0],H=Q.invertX(U[1][0])-G[1][0],Y=Q.invertY(U[0][1])-G[0][1],z=Q.invertY(U[1][1])-G[1][1];return Q.translate(H>K?(K+H)/2:Math.min(0,K)||Math.max(0,H),z>Y?(Y+z)/2:Math.min(0,Y)||Math.max(0,z))}function mJ(){var Q=xS,U=mS,G=cS,K=gS,H=pS,Y=[0,1/0],z=[[-1/0,-1/0],[1/0,1/0]],L=250,M=s8,R=l8("start","zoom","end"),T,A,O,P=500,N=150,v=0,f=10;function w(x){x.property("__zoom",yM).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",g).filter(H).on("touchstart.zoom",e).on("touchmove.zoom",q1).on("touchend.zoom touchcancel.zoom",Q1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(x,m,c,l){var p=x.selection?x.selection():x;if(p.property("__zoom",yM),x!==p)y(x,m,c,l);else p.interrupt().each(function(){h(this,arguments).event(l).start().zoom(null,typeof m==="function"?m.apply(this,arguments):m).end()})},w.scaleBy=function(x,m,c,l){w.scaleTo(x,function(){var p=this.__zoom.k,o=typeof m==="function"?m.apply(this,arguments):m;return p*o},c,l)},w.scaleTo=function(x,m,c,l){w.transform(x,function(){var p=U.apply(this,arguments),o=this.__zoom,k=c==null?j(p):typeof c==="function"?c.apply(this,arguments):c,s=o.invert(k),$1=typeof m==="function"?m.apply(this,arguments):m;return G(C(u(o,$1),k,s),p,z)},c,l)},w.translateBy=function(x,m,c,l){w.transform(x,function(){return G(this.__zoom.translate(typeof m==="function"?m.apply(this,arguments):m,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),z)},null,l)},w.translateTo=function(x,m,c,l,p){w.transform(x,function(){var o=U.apply(this,arguments),k=this.__zoom,s=l==null?j(o):typeof l==="function"?l.apply(this,arguments):l;return G(o8.translate(s[0],s[1]).scale(k.k).translate(typeof m==="function"?-m.apply(this,arguments):-m,typeof c==="function"?-c.apply(this,arguments):-c),o,z)},l,p)};function u(x,m){return m=Math.max(Y[0],Math.min(Y[1],m)),m===x.k?x:new I4(m,x.x,x.y)}function C(x,m,c){var l=m[0]-c[0]*x.k,p=m[1]-c[1]*x.k;return l===x.x&&p===x.y?x:new I4(x.k,l,p)}function j(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function y(x,m,c,l){x.on("start.zoom",function(){h(this,arguments).event(l).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(l).end()}).tween("zoom",function(){var p=this,o=arguments,k=h(p,o).event(l),s=U.apply(p,o),$1=c==null?j(s):typeof c==="function"?c.apply(p,o):c,a=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),H1=p.__zoom,P1=typeof m==="function"?m.apply(p,o):m,z1=M(H1.invert($1).concat(a/H1.k),P1.invert($1).concat(a/P1.k));return function(T1){if(T1===1)T1=P1;else{var G1=z1(T1),R1=a/G1[2];T1=new I4(R1,$1[0]-G1[0]*R1,$1[1]-G1[1]*R1)}k.zoom(null,T1)}})}function h(x,m,c){return!c&&x.__zooming||new b(x,m)}function b(x,m){this.that=x,this.args=m,this.active=0,this.sourceEvent=null,this.extent=U.apply(x,m),this.taps=0}b.prototype={event:function(x){if(x)this.sourceEvent=x;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(x,m){if(this.mouse&&x!=="mouse")this.mouse[1]=m.invert(this.mouse[0]);if(this.touch0&&x!=="touch")this.touch0[1]=m.invert(this.touch0[0]);if(this.touch1&&x!=="touch")this.touch1[1]=m.invert(this.touch1[0]);return this.that.__zoom=m,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(x){var m=v2(this.that).datum();R.call(x,this.that,new OK(x,{sourceEvent:this.sourceEvent,target:w,type:x,transform:this.that.__zoom,dispatch:R}),m)}};function E(x,...m){if(!Q.apply(this,arguments))return;var c=h(this,m).event(x),l=this.__zoom,p=Math.max(Y[0],Math.min(Y[1],l.k*Math.pow(2,K.apply(this,arguments)))),o=s2(x);if(c.wheel){if(c.mouse[0][0]!==o[0]||c.mouse[0][1]!==o[1])c.mouse[1]=l.invert(c.mouse[0]=o);clearTimeout(c.wheel)}else if(l.k===p)return;else c.mouse=[o,l.invert(o)],l6(this),c.start();n8(x),c.wheel=setTimeout(k,N),c.zoom("mouse",G(C(u(l,p),c.mouse[0],c.mouse[1]),c.extent,z));function k(){c.wheel=null,c.end()}}function D(x,...m){if(O||!Q.apply(this,arguments))return;var c=x.currentTarget,l=h(this,m,!0).event(x),p=v2(x.view).on("mousemove.zoom",$1,!0).on("mouseup.zoom",a,!0),o=s2(x,c),k=x.clientX,s=x.clientY;L9(x.view),xq(x),l.mouse=[o,this.__zoom.invert(o)],l6(this),l.start();function $1(H1){if(n8(H1),!l.moved){var P1=H1.clientX-k,z1=H1.clientY-s;l.moved=P1*P1+z1*z1>v}l.event(H1).zoom("mouse",G(C(l.that.__zoom,l.mouse[0]=s2(H1,c),l.mouse[1]),l.extent,z))}function a(H1){p.on("mousemove.zoom mouseup.zoom",null),TJ(H1.view,l.moved),n8(H1),l.event(H1).end()}}function g(x,...m){if(!Q.apply(this,arguments))return;var c=this.__zoom,l=s2(x.changedTouches?x.changedTouches[0]:x,this),p=c.invert(l),o=c.k*(x.shiftKey?0.5:2),k=G(C(u(c,o),l,p),U.apply(this,m),z);if(n8(x),L>0)v2(this).transition().duration(L).call(y,k,l,x);else v2(this).call(w.transform,k,l,x)}function e(x,...m){if(!Q.apply(this,arguments))return;var c=x.touches,l=c.length,p=h(this,m,x.changedTouches.length===l).event(x),o,k,s,$1;xq(x);for(k=0;k<l;++k)if(s=c[k],$1=s2(s,this),$1=[$1,this.__zoom.invert($1),s.identifier],!p.touch0)p.touch0=$1,o=!0,p.taps=1+!!T;else if(!p.touch1&&p.touch0[2]!==$1[2])p.touch1=$1,p.taps=0;if(T)T=clearTimeout(T);if(o){if(p.taps<2)A=$1[0],T=setTimeout(function(){T=null},P);l6(this),p.start()}}function q1(x,...m){if(!this.__zooming)return;var c=h(this,m).event(x),l=x.changedTouches,p=l.length,o,k,s,$1;n8(x);for(o=0;o<p;++o)if(k=l[o],s=s2(k,this),c.touch0&&c.touch0[2]===k.identifier)c.touch0[0]=s;else if(c.touch1&&c.touch1[2]===k.identifier)c.touch1[0]=s;if(k=c.that.__zoom,c.touch1){var a=c.touch0[0],H1=c.touch0[1],P1=c.touch1[0],z1=c.touch1[1],T1=(T1=P1[0]-a[0])*T1+(T1=P1[1]-a[1])*T1,G1=(G1=z1[0]-H1[0])*G1+(G1=z1[1]-H1[1])*G1;k=u(k,Math.sqrt(T1/G1)),s=[(a[0]+P1[0])/2,(a[1]+P1[1])/2],$1=[(H1[0]+z1[0])/2,(H1[1]+z1[1])/2]}else if(c.touch0)s=c.touch0[0],$1=c.touch0[1];else return;c.zoom("touch",G(C(k,s,$1),c.extent,z))}function Q1(x,...m){if(!this.__zooming)return;var c=h(this,m).event(x),l=x.changedTouches,p=l.length,o,k;if(xq(x),O)clearTimeout(O);O=setTimeout(function(){O=null},P);for(o=0;o<p;++o)if(k=l[o],c.touch0&&c.touch0[2]===k.identifier)delete c.touch0;else if(c.touch1&&c.touch1[2]===k.identifier)delete c.touch1;if(c.touch1&&!c.touch0)c.touch0=c.touch1,delete c.touch1;if(c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),c.taps===2){if(k=s2(k,this),Math.hypot(A[0]-k[0],A[1]-k[1])<f){var s=v2(this).on("dblclick.zoom");if(s)s.apply(this,arguments)}}}return w.wheelDelta=function(x){return arguments.length?(K=typeof x==="function"?x:hJ(+x),w):K},w.filter=function(x){return arguments.length?(Q=typeof x==="function"?x:hJ(!!x),w):Q},w.touchable=function(x){return arguments.length?(H=typeof x==="function"?x:hJ(!!x),w):H},w.extent=function(x){return arguments.length?(U=typeof x==="function"?x:hJ([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),w):U},w.scaleExtent=function(x){return arguments.length?(Y[0]=+x[0],Y[1]=+x[1],w):[Y[0],Y[1]]},w.translateExtent=function(x){return arguments.length?(z[0][0]=+x[0][0],z[1][0]=+x[1][0],z[0][1]=+x[0][1],z[1][1]=+x[1][1],w):[[z[0][0],z[0][1]],[z[1][0],z[1][1]]]},w.constrain=function(x){return arguments.length?(G=x,w):G},w.duration=function(x){return arguments.length?(L=+x,w):L},w.interpolate=function(x){return arguments.length?(M=x,w):M},w.on=function(){var x=R.on.apply(R,arguments);return x===R?w:x},w.clickDistance=function(x){return arguments.length?(v=(x=+x)*x,w):Math.sqrt(v)},w.tapDistance=function(x){return arguments.length?(f=+x,w):f},w}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:G,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?G: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.`},N9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],CK=["Enter"," ","Escape"],SK={"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:G})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${G}`,"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"},a6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(a6||(a6={}));var g3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(g3||(g3={}));var e8;(function(Q){Q.Partial="partial",Q.Full="full"})(e8||(e8={}));var fK={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 I9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(I9||(I9={}));var E1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(E1||(E1={}));var kM={[E1.Left]:E1.Right,[E1.Right]:E1.Left,[E1.Top]:E1.Bottom,[E1.Bottom]:E1.Top},jK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),rM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),vK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var pJ=(Q,U=[0,0])=>{let{width:G,height:K}=Q4(Q),H=Q.origin??U,Y=G*H[0],z=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-z}},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 G=!1,K=Q.reduce((H,Y)=>{let z=typeof Y==="string",L=!U.nodeLookup&&!z?Y:void 0;if(U.nodeLookup)L=z?U.nodeLookup.get(Y):!vK(Y)?U.nodeLookup.get(Y.id):Y;if(!L)return H;return G=!0,dq(H,pq(L,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return G?iq(K):{x:0,y:0,width:0,height:0}},Q7=(Q,U={})=>{let G={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))G=dq(G,pq(H)),K=!0}),K?iq(G):{x:0,y:0,width:0,height:0}},cq=(Q,U,[G,K,H]=[0,0,1],Y=!1,z=!1)=>{let L=(U.x-G)/H,M=(U.y-K)/H,R=U.width/H,T=U.height/H,A=[];for(let O of Q.values()){let{measured:P,selectable:N=!0,hidden:v=!1}=O;if(z&&!N||v)continue;let f=P.width??O.width??O.initialWidth??0,w=P.height??O.height??O.initialHeight??0,{x:u,y:C}=O.internals.positionAbsolute,j=nM(L,M,R,T,u,C,f,w),y=f*w,h=Y&&j>0;if(!O.internals.handleBounds||h||j>=y||O.dragging)A.push(O)}return A},aM=(Q,U)=>{let G=new Set;return Q.forEach((K)=>{G.add(K.id)}),U.filter((K)=>G.has(K.source)||G.has(K.target))};function lS(Q,U){let G=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:z,height:L}=Q4(H);Y=z>0&&L>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!K||K.has(H.id)))G.set(H.id,H)}),G}async function sM({nodes:Q,width:U,height:G,panZoom:K,minZoom:H,maxZoom:Y},z){if(Q.size===0)return!0;let L=lS(Q,z),M=Q7(L),R=lJ(M,U,G,z?.minZoom??H,z?.maxZoom??Y,z?.padding??0.1);return await K.setViewport(R,{duration:z?.duration,ease:z?.ease,interpolate:z?.interpolate}),!0}function yK({nodeId:Q,nextPosition:U,nodeLookup:G,nodeOrigin:K=[0,0],nodeExtent:H,onError:Y}){let z=G.get(Q),L=z.parentId?G.get(z.parentId):void 0,{x:M,y:R}=L?L.internals.positionAbsolute:{x:0,y:0},T=z.origin??K,A=z.extent||H;if(z.extent==="parent"&&!z.expandParent)if(!L)Y?.("005",X5.error005());else{let{width:P,height:N}=Q4(L);if(P&&N)A=[[M,R],[M+P,R+N]]}else if(L&&$7(z.extent))A=[[z.extent[0][0]+M,z.extent[0][1]+R],[z.extent[1][0]+M,z.extent[1][1]+R]];let O=$7(A)?_7(U,A,z.measured):U;if(z.measured.width===void 0||z.measured.height===void 0)Y?.("015",X5.error015());return{position:{x:O.x-M+(z.measured.width??0)*T[0],y:O.y-R+(z.measured.height??0)*T[1]},positionAbsolute:O}}async function tM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:G,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),z=[];for(let O of G){if(O.deletable===!1)continue;let P=Y.has(O.id),N=!P&&O.parentId&&z.find((v)=>v.id===O.parentId);if(P||N)z.push(O)}let L=new Set(U.map((O)=>O.id)),M=K.filter((O)=>O.deletable!==!1),T=aM(z,M);for(let O of M)if(L.has(O.id)&&!T.find((N)=>N.id===O.id))T.push(O);if(!H)return{edges:T,nodes:z};let A=await H({nodes:z,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:z}:{edges:[],nodes:[]};return A}var P9=(Q,U=0,G=1)=>Math.min(Math.max(Q,U),G),_7=(Q={x:0,y:0},U,G)=>({x:P9(Q.x,U[0][0],U[1][0]-(G?.width??0)),y:P9(Q.y,U[0][1],U[1][1]-(G?.height??0))});function oM(Q,U,G){let{width:K,height:H}=Q4(G),{x:Y,y:z}=G.internals.positionAbsolute;return _7(Q,[[Y,z],[Y+K,z+H]],U)}var DM=(Q,U,G)=>{if(Q<U)return P9(Math.abs(Q-U),1,U)/U;else if(Q>G)return-P9(Math.abs(Q-G),1,U)/U;return 0},lq=(Q,U,G=15,K=40)=>{let H=DM(Q.x,K,U.width-K)*G,Y=DM(Q.y,K,U.height-K)*G;return[H,Y]},dq=(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:G,height:K})=>({x:Q,y:U,x2:Q+G,y2:U+K}),iq=({x:Q,y:U,x2:G,y2:K})=>({x:Q,y:U,width:G-Q,height:K-U}),w9=(Q,U=[0,0])=>{let{x:G,y:K}=vK(Q)?Q.internals.positionAbsolute:pJ(Q,U);return{x:G,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:G,y:K}=vK(Q)?Q.internals.positionAbsolute:pJ(Q,U);return{x:G,y:K,x2:G+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},kK=(Q,U)=>iq(dq(wK(Q),wK(U))),nM=(Q,U,G,K,H,Y,z,L)=>{let M=Math.max(0,Math.min(Q+G,H+z)-Math.max(Q,H)),R=Math.max(0,Math.min(U+K,Y+L)-Math.max(U,Y));return Math.ceil(M*R)},cJ=(Q,U)=>nM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),DK=(Q)=>J4(Q.width)&&J4(Q.height)&&J4(Q.x)&&J4(Q.y),J4=(Q)=>!isNaN(Q)&&isFinite(Q),uK=(Q,U)=>(G,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${G}`)},C9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},S9=({x:Q,y:U},[G,K,H],Y=!1,z=[1,1])=>{let L={x:(Q-G)/H,y:(U-K)/H};return Y?C9(L,z):L},J7=({x:Q,y:U},[G,K,H])=>{return{x:Q*H+G,y:U*H+K}};function O9(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let G=parseFloat(Q);if(!Number.isNaN(G))return Math.floor(G)}if(typeof Q==="string"&&Q.endsWith("%")){let G=parseFloat(Q);if(!Number.isNaN(G))return Math.floor(U*G*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 dS(Q,U,G){if(typeof Q==="string"||typeof Q==="number"){let K=O9(Q,G),H=O9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=O9(Q.top??Q.y??0,G),H=O9(Q.bottom??Q.y??0,G),Y=O9(Q.left??Q.x??0,U),z=O9(Q.right??Q.x??0,U);return{top:K,right:z,bottom:H,left:Y,x:Y+z,y:K+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function iS(Q,U,G,K,H,Y){let{x:z,y:L}=J7(Q,[U,G,K]),{x:M,y:R}=J7({x:Q.x+Q.width,y:Q.y+Q.height},[U,G,K]),T=H-M,A=Y-R;return{left:Math.floor(z),top:Math.floor(L),right:Math.floor(T),bottom:Math.floor(A)}}var lJ=(Q,U,G,K,H,Y)=>{let z=dS(Y,U,G),L=(U-z.x)/Q.width,M=(G-z.y)/Q.height,R=Math.min(L,M),T=P9(R,K,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,P=U/2-A*T,N=G/2-O*T,v=iS(Q,P,N,T,U,G),f={left:Math.min(v.left-z.left,0),top:Math.min(v.top-z.top,0),right:Math.min(v.right-z.right,0),bottom:Math.min(v.bottom-z.bottom,0)};return{x:P-f.left+f.right,y:N-f.top+f.bottom,zoom:T}},f9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function $7(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function Q4(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function bK(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function EK(Q,U={width:0,height:0},G,K,H){let Y={...Q},z=K.get(G);if(z){let L=z.origin||H;Y.x+=z.internals.positionAbsolute.x-(U.width??0)*L[0],Y.y+=z.internals.positionAbsolute.y-(U.height??0)*L[1]}return Y}function hK(Q,U){if(Q.size!==U.size)return!1;for(let G of Q)if(!U.has(G))return!1;return!0}function eM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function _T(Q){return{...SK,...Q||{}}}function rS(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let G=getComputedStyle(U);if(G.display==="none")return!0;if(G.visibility==="hidden"||G.visibility==="collapse")return!0;if(G.opacity==="0")return!0;if(G.width==="0"&&G.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 z=H.getBoundingClientRect();if(z.width===0&&z.height===0)return!1;return!0}var uM=!1;function JT(Q){if(uM)return;uM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!rS(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 xK(Q){return Q===null?null:Q?"valid":"invalid"}function gJ(Q,{snapGrid:U=[0,0],snapToGrid:G=!1,transform:K,containerBounds:H}){let{x:Y,y:z}=$4(Q),L=S9({x:Y-(H?.left??0),y:z-(H?.top??0)},K),{x:M,y:R}=G?C9(L,U):L;return{xSnapped:M,ySnapped:R,...L}}var rq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),mK=(Q)=>Q?.getRootNode?.()||window?.document,aS=["INPUT","SELECT","TEXTAREA"];function gK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return aS.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var pK=(Q)=>("clientX"in Q),$4=(Q,U)=>{let G=pK(Q),K=G?Q.clientX:Q.touches?.[0].clientX,H=G?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:H-(U?.top??0)}},bM=(Q,U,G,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((z)=>{let L=z.getBoundingClientRect();return{id:z.getAttribute("data-handleid"),type:Q,nodeId:H,position:z.getAttribute("data-handlepos"),x:(L.left-G.left)/K,y:(L.top-G.top)/K,...rq(z)}})};function aq({sourceX:Q,sourceY:U,targetX:G,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:z,targetControlY:L}){let M=Q*0.125+H*0.375+z*0.375+G*0.125,R=U*0.125+Y*0.375+L*0.375+K*0.125,T=Math.abs(M-Q),A=Math.abs(R-U);return[M,R,T,A]}function mq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function EM({pos:Q,x1:U,y1:G,x2:K,y2:H,c:Y}){switch(Q){case E1.Left:return[U-mq(U-K,Y),G];case E1.Right:return[U+mq(K-U,Y),G];case E1.Top:return[U,G-mq(G-H,Y)];case E1.Bottom:return[U,G+mq(H-G,Y)]}}function sq({sourceX:Q,sourceY:U,sourcePosition:G=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,curvature:z=0.25}){let[L,M]=EM({pos:G,x1:Q,y1:U,x2:K,y2:H,c:z}),[R,T]=EM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:z}),[A,O,P,N]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:L,sourceControlY:M,targetControlX:R,targetControlY:T});return[`M${Q},${U} C${L},${M} ${R},${T} ${K},${H}`,A,O,P,N]}function cK({sourceX:Q,sourceY:U,targetX:G,targetY:K}){let H=Math.abs(G-Q)/2,Y=G<Q?G+H:G-H,z=Math.abs(K-U)/2,L=K<U?K+z:K-z;return[Y,L,H,z]}function $T({sourceNode:Q,targetNode:U,selected:G=!1,zIndex:K=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let z=H&&G?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 z+L}function QT({sourceNode:Q,targetNode:U,width:G,height:K,transform:H}){let Y=dq(pq(Q),pq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let z={x:-H[0]/H[2],y:-H[1]/H[2],width:G/H[2],height:K/H[2]};return cJ(z,iq(Y))>0}var sS=({source:Q,sourceHandle:U,target:G,targetHandle:K})=>`xy-edge__${Q}${U||""}-${G}${K||""}`,tS=(Q,U)=>{return U.some((G)=>G.source===Q.source&&G.target===Q.target&&(G.sourceHandle===Q.sourceHandle||!G.sourceHandle&&!Q.sourceHandle)&&(G.targetHandle===Q.targetHandle||!G.targetHandle&&!Q.targetHandle))},qT=(Q,U,G={})=>{if(!Q.source||!Q.target)return G.onError?.("006",X5.error006()),U;let K=G.getEdgeId||sS,H;if(jK(Q))H={...Q};else H={...Q,id:K(Q)};if(tS(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:G,targetY:K}){let[H,Y,z,L]=cK({sourceX:Q,sourceY:U,targetX:G,targetY:K});return[`M ${Q},${U}L ${G},${K}`,H,Y,z,L]}var hM={[E1.Left]:{x:-1,y:0},[E1.Right]:{x:1,y:0},[E1.Top]:{x:0,y:-1},[E1.Bottom]:{x:0,y:1}},oS=({source:Q,sourcePosition:U=E1.Bottom,target:G})=>{if(U===E1.Left||U===E1.Right)return Q.x<G.x?{x:1,y:0}:{x:-1,y:0};return Q.y<G.y?{x:0,y:1}:{x:0,y:-1}},xM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function nS({source:Q,sourcePosition:U=E1.Bottom,target:G,targetPosition:K=E1.Top,center:H,offset:Y,stepPosition:z}){let L=hM[U],M=hM[K],R={x:Q.x+L.x*Y,y:Q.y+L.y*Y},T={x:G.x+M.x*Y,y:G.y+M.y*Y},A=oS({source:R,sourcePosition:U,target:T}),O=A.x!==0?"x":"y",P=A[O],N=[],v,f,w={x:0,y:0},u={x:0,y:0},[,,C,j]=cK({sourceX:Q.x,sourceY:Q.y,targetX:G.x,targetY:G.y});if(L[O]*M[O]===-1){if(O==="x")v=H.x??R.x+(T.x-R.x)*z,f=H.y??(R.y+T.y)/2;else v=H.x??(R.x+T.x)/2,f=H.y??R.y+(T.y-R.y)*z;let E=[{x:v,y:R.y},{x:v,y:T.y}],D=[{x:R.x,y:f},{x:T.x,y:f}];if(L[O]===P)N=O==="x"?E:D;else N=O==="x"?D:E}else{let E=[{x:R.x,y:T.y}],D=[{x:T.x,y:R.y}];if(O==="x")N=L.x===P?D:E;else N=L.y===P?E:D;if(U===K){let x=Math.abs(Q[O]-G[O]);if(x<=Y){let m=Math.min(Y-1,Y-x);if(L[O]===P)w[O]=(R[O]>Q[O]?-1:1)*m;else u[O]=(T[O]>G[O]?-1:1)*m}}if(U!==K){let x=O==="x"?"y":"x",m=L[O]===M[x],c=R[x]>T[x],l=R[x]<T[x];if(L[O]===1&&(!m&&c||m&&l)||L[O]!==1&&(!m&&l||m&&c))N=O==="x"?E:D}let g={x:R.x+w.x,y:R.y+w.y},e={x:T.x+u.x,y:T.y+u.y},q1=Math.max(Math.abs(g.x-N[0].x),Math.abs(e.x-N[0].x)),Q1=Math.max(Math.abs(g.y-N[0].y),Math.abs(e.y-N[0].y));if(q1>=Q1)v=(g.x+e.x)/2,f=N[0].y;else v=N[0].x,f=(g.y+e.y)/2}let y={x:R.x+w.x,y:R.y+w.y},h={x:T.x+u.x,y:T.y+u.y};return[[Q,...y.x!==N[0].x||y.y!==N[0].y?[y]:[],...N,...h.x!==N[N.length-1].x||h.y!==N[N.length-1].y?[h]:[],G],v,f,C,j]}function eS(Q,U,G,K){let H=Math.min(xM(Q,U)/2,xM(U,G)/2,K),{x:Y,y:z}=U;if(Q.x===Y&&Y===G.x||Q.y===z&&z===G.y)return`L${Y} ${z}`;if(Q.y===z){let R=Q.x<G.x?-1:1,T=Q.y<G.y?1:-1;return`L ${Y+H*R},${z}Q ${Y},${z} ${Y},${z+H*T}`}let L=Q.x<G.x?1:-1,M=Q.y<G.y?-1:1;return`L ${Y},${z+H*M}Q ${Y},${z} ${Y+H*L},${z}`}function dJ({sourceX:Q,sourceY:U,sourcePosition:G=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,borderRadius:z=5,centerX:L,centerY:M,offset:R=20,stepPosition:T=0.5}){let[A,O,P,N,v]=nS({source:{x:Q,y:U},sourcePosition:G,target:{x:K,y:H},targetPosition:Y,center:{x:L,y:M},offset:R,stepPosition:T}),f=`M${A[0].x} ${A[0].y}`;for(let w=1;w<A.length-1;w++)f+=eS(A[w-1],A[w],A[w+1],z);return f+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[f,O,P,N,v]}function mM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function UT(Q){let{sourceNode:U,targetNode:G}=Q;if(!mM(U)||!mM(G))return null;let K=U.internals.handleBounds||gM(U.handles),H=G.internals.handleBounds||gM(G.handles),Y=pM(K?.source??[],Q.sourceHandle),z=pM(Q.connectionMode===a6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!z)return Q.onError?.("008",X5.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let L=Y?.position||E1.Bottom,M=z?.position||E1.Top,R=s6(U,Y,L),T=s6(G,z,M);return{sourceX:R.x,sourceY:R.y,targetX:T.x,targetY:T.y,sourcePosition:L,targetPosition:M}}function gM(Q){if(!Q)return null;let U=[],G=[];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")G.push(K);return{source:U,target:G}}function s6(Q,U,G=E1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:z,height:L}=U??Q4(Q);if(K)return{x:H+z/2,y:Y+L/2};switch(U?.position??G){case E1.Top:return{x:H+z/2,y:Y};case E1.Right:return{x:H+z,y:Y+L/2};case E1.Bottom:return{x:H+z/2,y:Y+L};case E1.Left:return{x:H,y:Y+L/2}}}function pM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((G)=>G.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 GT(Q,{id:U,defaultColor:G,defaultMarkerStart:K,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((z,L)=>{return[L.markerStart||K,L.markerEnd||H].forEach((M)=>{if(M&&typeof M==="object"){let R=oq(M,U);if(!Y.has(R))z.push({id:R,color:M.color||G,...M}),Y.add(R)}}),z},[]).sort((z,L)=>z.id.localeCompare(L.id))}function ZT(Q,U,G,K,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let z=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-K],L=[-100*Y,-100];switch(G){case E1.Right:z=[(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:z[1]=(Q.y+Q.height)*U.zoom+U.y+K,L[1]=0;break;case E1.Left:z=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[-100,-100*Y];break}return`translate(${z[0]}px, ${z[1]}px) translate(${L[0]}%, ${L[1]}%)`}var FT=1000,_f=10,lK={nodeOrigin:[0,0],nodeExtent:N9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Jf={...lK,checkEquality:!0};function dK(Q,U){let G={...Q};for(let K in U)if(U[K]!==void 0)G[K]=U[K];return G}function XT(Q,U,G){let K=dK(lK,G);for(let H of Q.values())if(H.parentId)rK(H,Q,U,K);else{let Y=pJ(H,K.nodeOrigin),z=$7(H.extent)?H.extent:K.nodeExtent,L=_7(Y,z,Q4(H));H.internals.positionAbsolute=L}}function $f(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let G=[],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")G.push(Y);else if(H.type==="target")K.push(Y)}return{source:G,target:K}}function iK(Q){return Q==="manual"}function nq(Q,U,G,K={}){let H=dK(Jf,K),Y={i:0},z=new Map(U),L=H?.elevateNodesOnSelect&&!iK(H.zIndexMode)?FT:0,M=Q.length>0,R=!1;U.clear(),G.clear();for(let T of Q){let A=z.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let O=pJ(T,H.nodeOrigin),P=$7(T.extent)?T.extent:H.nodeExtent,N=_7(O,P,Q4(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:N,handleBounds:$f(T,A),z:KT(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)rK(A,U,G,K,Y);R||=T.selected??!1}return{nodesInitialized:M,hasSelectedNodes:R}}function Qf(Q,U){if(!Q.parentId)return;let G=U.get(Q.parentId);if(G)G.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function rK(Q,U,G,K,H){let{elevateNodesOnSelect:Y,nodeOrigin:z,nodeExtent:L,zIndexMode:M}=dK(lK,K),R=Q.parentId,T=U.get(R);if(!T){console.warn(`Parent node ${R} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(Qf(Q,G),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&M==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*_f;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!iK(M)?FT:0,{x:O,y:P,z:N}=qf(Q,T,z,L,A,M),{positionAbsolute:v}=Q.internals,f=O!==v.x||P!==v.y;if(f||N!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:f?{x:O,y:P}:v,z:N}})}function KT(Q,U,G){let K=J4(Q.zIndex)?Q.zIndex:0;if(iK(G))return K;return K+(Q.selected?U:0)}function qf(Q,U,G,K,H,Y){let{x:z,y:L}=U.internals.positionAbsolute,M=Q4(Q),R=pJ(Q,G),T=$7(Q.extent)?_7(R,Q.extent,M):R,A=_7({x:z+T.x,y:L+T.y},K,M);if(Q.extent==="parent")A=oM(A,M,U);let O=KT(Q,H,Y),P=U.internals.z??0;return{x:A.x,y:A.y,z:P>=O?P+1:O}}function eq(Q,U,G,K=[0,0]){let H=[],Y=new Map;for(let z of Q){let L=U.get(z.parentId);if(!L)continue;let M=Y.get(z.parentId)?.expandedRect??w9(L),R=kK(M,z.rect);Y.set(z.parentId,{expandedRect:R,parent:L})}if(Y.size>0)Y.forEach(({expandedRect:z,parent:L},M)=>{let R=L.internals.positionAbsolute,T=Q4(L),A=L.origin??K,O=z.x<R.x?Math.round(Math.abs(R.x-z.x)):0,P=z.y<R.y?Math.round(Math.abs(R.y-z.y)):0,N=Math.max(T.width,Math.round(z.width)),v=Math.max(T.height,Math.round(z.height)),f=(N-T.width)*A[0],w=(v-T.height)*A[1];if(O>0||P>0||f||w)H.push({id:M,type:"position",position:{x:L.position.x-O+f,y:L.position.y-P+w}}),G.get(M)?.forEach((u)=>{if(!Q.some((C)=>C.id===u.id))H.push({id:u.id,type:"position",position:{x:u.position.x+O,y:u.position.y+P}})});if(T.width<z.width||T.height<z.height||O||P)H.push({id:M,type:"dimensions",setAttributes:!0,dimensions:{width:N+(O?A[0]*O-f:0),height:v+(P?A[1]*P-w:0)}})});return H}function HT(Q,U,G,K,H,Y,z){let L=K?.querySelector(".xyflow__viewport"),M=!1;if(!L)return{changes:[],updatedInternals:M};let R=[],T=window.getComputedStyle(L),{m22:A}=new window.DOMMatrixReadOnly(T.transform),O=[];for(let P of Q.values()){let N=U.get(P.id);if(!N)continue;if(N.hidden){U.set(N.id,{...N,internals:{...N.internals,handleBounds:void 0}}),M=!0;continue}let v=rq(P.nodeElement),f=N.measured.width!==v.width||N.measured.height!==v.height;if(!!(v.width&&v.height&&(f||!N.internals.handleBounds||P.force))){let u=P.nodeElement.getBoundingClientRect(),C=$7(N.extent)?N.extent:Y,{positionAbsolute:j}=N.internals;if(N.parentId&&N.extent==="parent"){let h=U.get(N.parentId);if(h)j=oM(j,v,h)}else if(C)j=_7(j,C,v);let y={...N,measured:v,internals:{...N.internals,positionAbsolute:j,handleBounds:{source:bM("source",P.nodeElement,u,A,N.id),target:bM("target",P.nodeElement,u,A,N.id)}}};if(U.set(N.id,y),N.parentId)rK(y,U,G,{nodeOrigin:H,zIndexMode:z});if(M=!0,f){if(R.push({id:N.id,type:"dimensions",dimensions:v}),N.expandParent&&N.parentId)O.push({id:N.id,parentId:N.parentId,rect:w9(y,H)})}}}if(O.length>0){let P=eq(O,U,G,H);R.push(...P)}return{changes:R,updatedInternals:M}}async function YT({delta:Q,panZoom:U,transform:G,translateExtent:K,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let z=await U.setViewportConstrained({x:G[0]+Q.x,y:G[1]+Q.y,zoom:G[2]},[[0,0],[H,Y]],K);return!!z&&(z.x!==G[0]||z.y!==G[1]||z.k!==G[2])}function cM(Q,U,G,K,H,Y){let z=H,L=K.get(z)||new Map;K.set(z,L.set(G,U)),z=`${H}-${Q}`;let M=K.get(z)||new Map;if(K.set(z,M.set(G,U)),Y){z=`${H}-${Q}-${Y}`;let R=K.get(z)||new Map;K.set(z,R.set(G,U))}}function aK(Q,U,G){Q.clear(),U.clear();for(let K of G){let{source:H,target:Y,sourceHandle:z=null,targetHandle:L=null}=K,M={edgeId:K.id,source:H,target:Y,sourceHandle:z,targetHandle:L},R=`${H}-${z}--${Y}-${L}`,T=`${Y}-${L}--${H}-${z}`;cM("source",M,T,Q,H,z),cM("target",M,R,Q,Y,L),U.set(K.id,K)}}function zT(Q,U){if(!Q.parentId)return!1;let G=U.get(Q.parentId);if(!G)return!1;if(G.selected)return!0;return zT(G,U)}function lM(Q,U,G){let K=Q;do{if(K?.matches?.(U))return!0;if(K===G)return!1;K=K?.parentElement}while(K);return!1}function Uf(Q,U,G,K){let H=new Map;for(let[Y,z]of Q)if((z.selected||z.id===K)&&(!z.parentId||!zT(z,Q))&&(z.draggable||U&&typeof z.draggable>"u")){let L=Q.get(Y);if(L)H.set(Y,{id:Y,position:L.position||{x:0,y:0},distance:{x:G.x-L.internals.positionAbsolute.x,y:G.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 IK({nodeId:Q,dragItems:U,nodeLookup:G,dragging:K=!0}){let H=[];for(let[z,L]of U){let M=G.get(z)?.internals.userNode;if(M)H.push({...M,position:L.position,dragging:K})}if(!Q)return[H[0],H];let Y=G.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:K},H]}function Gf({dragItems:Q,snapGrid:U,x:G,y:K}){let H=Q.values().next().value;if(!H)return null;let Y={x:G-H.distance.x,y:K-H.distance.y},z=C9(Y,U);return{x:z.x-Y.x,y:z.y-Y.y}}function WT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:G,onDrag:K,onDragStop:H}){let Y={x:null,y:null},z=0,L=new Map,M=!1,R={x:0,y:0},T=null,A=!1,O=null,P=!1,N=!1,v=null;function f({noDragClassName:u,handleSelector:C,domNode:j,isSelectable:y,nodeId:h,nodeClickDistance:b=0}){O=v2(j);function E({x:q1,y:Q1}){let{nodeLookup:x,nodeExtent:m,snapGrid:c,snapToGrid:l,nodeOrigin:p,onNodeDrag:o,onSelectionDrag:k,onError:s,updateNodePositions:$1}=U();Y={x:q1,y:Q1};let a=!1,H1=L.size>1,P1=H1&&m?wK(Q7(L)):null,z1=H1&&l?Gf({dragItems:L,snapGrid:c,x:q1,y:Q1}):null;for(let[T1,G1]of L){if(!x.has(T1))continue;let R1={x:q1-G1.distance.x,y:Q1-G1.distance.y};if(l)R1=z1?{x:Math.round(R1.x+z1.x),y:Math.round(R1.y+z1.y)}:C9(R1,c);let C1=null;if(H1&&m&&!G1.extent&&P1){let{positionAbsolute:b1}=G1.internals,l1=b1.x-P1.x+m[0][0],h1=b1.x+G1.measured.width-P1.x2+m[1][0],A1=b1.y-P1.y+m[0][1],_0=b1.y+G1.measured.height-P1.y2+m[1][1];C1=[[l1,A1],[h1,_0]]}let{position:L1,positionAbsolute:S1}=yK({nodeId:T1,nextPosition:R1,nodeLookup:x,nodeExtent:C1?C1:m,nodeOrigin:p,onError:s});a=a||G1.position.x!==L1.x||G1.position.y!==L1.y,G1.position=L1,G1.internals.positionAbsolute=S1}if(N=N||a,!a)return;if($1(L,!0),v&&(K||o||!h&&k)){let[T1,G1]=IK({nodeId:h,dragItems:L,nodeLookup:x});if(K?.(v,L,T1,G1),o?.(v,T1,G1),!h)k?.(v,G1)}}async function D(){if(!T)return;let{transform:q1,panBy:Q1,autoPanSpeed:x,autoPanOnNodeDrag:m}=U();if(!m){M=!1,cancelAnimationFrame(z);return}let[c,l]=lq(R,T,x);if(c!==0||l!==0){if(Y.x=(Y.x??0)-c/q1[2],Y.y=(Y.y??0)-l/q1[2],await Q1({x:c,y:l}))E(Y)}z=requestAnimationFrame(D)}function g(q1){let{nodeLookup:Q1,multiSelectionActive:x,nodesDraggable:m,transform:c,snapGrid:l,snapToGrid:p,selectNodesOnDrag:o,onNodeDragStart:k,onSelectionDragStart:s,unselectNodesAndEdges:$1}=U();if(A=!0,(!o||!y)&&!x&&h){if(!Q1.get(h)?.selected)$1()}if(y&&o&&h)Q?.(h);let a=gJ(q1.sourceEvent,{transform:c,snapGrid:l,snapToGrid:p,containerBounds:T});if(Y=a,L=Uf(Q1,m,a,h),L.size>0&&(G||k||!h&&s)){let[H1,P1]=IK({nodeId:h,dragItems:L,nodeLookup:Q1});if(G?.(q1.sourceEvent,L,H1,P1),k?.(q1.sourceEvent,H1,P1),!h)s?.(q1.sourceEvent,P1)}}let e=IJ().clickDistance(b).on("start",(q1)=>{let{domNode:Q1,nodeDragThreshold:x,transform:m,snapGrid:c,snapToGrid:l}=U();if(T=Q1?.getBoundingClientRect()||null,P=!1,N=!1,v=q1.sourceEvent,x===0)g(q1);Y=gJ(q1.sourceEvent,{transform:m,snapGrid:c,snapToGrid:l,containerBounds:T}),R=$4(q1.sourceEvent,T)}).on("drag",(q1)=>{let{autoPanOnNodeDrag:Q1,transform:x,snapGrid:m,snapToGrid:c,nodeDragThreshold:l,nodeLookup:p}=U(),o=gJ(q1.sourceEvent,{transform:x,snapGrid:m,snapToGrid:c,containerBounds:T});if(v=q1.sourceEvent,q1.sourceEvent.type==="touchmove"&&q1.sourceEvent.touches.length>1||h&&!p.has(h))P=!0;if(P)return;if(!M&&Q1&&A)M=!0,D();if(!A){let k=$4(q1.sourceEvent,T),s=k.x-R.x,$1=k.y-R.y;if(Math.sqrt(s*s+$1*$1)>l)g(q1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&L&&A)R=$4(q1.sourceEvent,T),E(o)}).on("end",(q1)=>{if(!A||P){if(P&&L.size>0)U().updateNodePositions(L,!1);return}if(M=!1,A=!1,cancelAnimationFrame(z),L.size>0){let{nodeLookup:Q1,updateNodePositions:x,onNodeDragStop:m,onSelectionDragStop:c}=U();if(N)x(L,!1),N=!1;if(H||m||!h&&c){let[l,p]=IK({nodeId:h,dragItems:L,nodeLookup:Q1,dragging:!1});if(H?.(q1.sourceEvent,L,l,p),m?.(q1.sourceEvent,l,p),!h)c?.(q1.sourceEvent,p)}}}).filter((q1)=>{let Q1=q1.target;return!q1.button&&(!u||!lM(Q1,`.${u}`,j))&&(!C||lM(Q1,C,j))});O.call(e)}function w(){O?.on(".drag",null)}return{update:f,destroy:w}}function Zf(Q,U,G){let K=[],H={x:Q.x-G,y:Q.y-G,width:G*2,height:G*2};for(let Y of U.values())if(cJ(H,w9(Y))>0)K.push(Y);return K}var Ff=250;function Xf(Q,U,G,K){let H=[],Y=1/0,z=Zf(Q,G,U+Ff);for(let L of z){let M=[...L.internals.handleBounds?.source??[],...L.internals.handleBounds?.target??[]];for(let R of M){if(K.nodeId===R.nodeId&&K.type===R.type&&K.id===R.id)continue;let{x:T,y:A}=s6(L,R,R.position,!0),O=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(O>U)continue;if(O<Y)H=[{...R,x:T,y:A}],Y=O;else if(O===Y)H.push({...R,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 LT(Q,U,G,K,H,Y=!1){let z=K.get(Q);if(!z)return null;let L=H==="strict"?z.internals.handleBounds?.[U]:[...z.internals.handleBounds?.source??[],...z.internals.handleBounds?.target??[]],M=(G?L?.find((R)=>R.id===G):L?.[0])??null;return M&&Y?{...M,...s6(z,M,M.position,!0)}:M}function BT(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 Kf(Q,U){let G=null;if(U)G=!0;else if(Q&&!U)G=!1;return G}var AT=()=>!0;function Hf(Q,{connectionMode:U,connectionRadius:G,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:z,domNode:L,nodeLookup:M,lib:R,autoPanOnConnect:T,flowId:A,panBy:O,cancelConnection:P,onConnectStart:N,onConnect:v,onConnectEnd:f,isValidConnection:w=AT,onReconnectEnd:u,updateConnection:C,getTransform:j,getFromHandle:y,autoPanSpeed:h,dragThreshold:b=1,handleDomNode:E}){let D=mK(Q.target),g=0,e,{x:q1,y:Q1}=$4(Q),x=BT(Y,E),m=L?.getBoundingClientRect(),c=!1;if(!m||!x)return;let l=LT(H,x,K,M,U);if(!l)return;let p=$4(Q,m),o=!1,k=null,s=!1,$1=null;function a(){if(!T||!m)return;let[L1,S1]=lq(p,m,h);O({x:L1,y:S1}),g=requestAnimationFrame(a)}let H1={...l,nodeId:H,type:x,position:l.position},P1=M.get(H),T1={inProgress:!0,isValid:null,from:s6(P1,H1,E1.Left,!0),fromHandle:H1,fromPosition:H1.position,fromNode:P1,to:p,toHandle:null,toPosition:kM[H1.position],toNode:null,pointer:p};function G1(){c=!0,C(T1),N?.(Q,{nodeId:H,handleId:K,handleType:x})}if(b===0)G1();function R1(L1){if(!c){let{x:_0,y:u1}=$4(L1),E0=_0-q1,J0=u1-Q1;if(!(E0*E0+J0*J0>b*b))return;G1()}if(!y()||!H1){C1(L1);return}let S1=j();if(p=$4(L1,m),e=Xf(S9(p,S1,!1,[1,1]),G,M,H1),!o)a(),o=!0;let b1=MT(L1,{handle:e,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:z?"target":"source",isValidConnection:w,doc:D,lib:R,flowId:A,nodeLookup:M});$1=b1.handleDomNode,k=b1.connection,s=Kf(!!e,b1.isValid);let l1=M.get(H),h1=l1?s6(l1,H1,E1.Left,!0):T1.from,A1={...T1,from:h1,isValid:s,to:b1.toHandle&&s?J7({x:b1.toHandle.x,y:b1.toHandle.y},S1):p,toHandle:b1.toHandle,toPosition:s&&b1.toHandle?b1.toHandle.position:kM[H1.position],toNode:b1.toHandle?M.get(b1.toHandle.nodeId):null,pointer:p};C(A1),T1=A1}function C1(L1){if("touches"in L1&&L1.touches.length>0)return;if(c){if((e||$1)&&k&&s)v?.(k);let{inProgress:S1,...b1}=T1,l1={...b1,toPosition:T1.toHandle?T1.toPosition:null};if(f?.(L1,l1),Y)u?.(L1,l1)}P(),cancelAnimationFrame(g),o=!1,s=!1,k=null,$1=null,D.removeEventListener("mousemove",R1),D.removeEventListener("mouseup",C1),D.removeEventListener("touchmove",R1),D.removeEventListener("touchend",C1)}D.addEventListener("mousemove",R1),D.addEventListener("mouseup",C1),D.addEventListener("touchmove",R1),D.addEventListener("touchend",C1)}function MT(Q,{handle:U,connectionMode:G,fromNodeId:K,fromHandleId:H,fromType:Y,doc:z,lib:L,flowId:M,isValidConnection:R=AT,nodeLookup:T}){let A=Y==="target",O=U?z.querySelector(`.${L}-flow__handle[data-id="${M}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:P,y:N}=$4(Q),v=z.elementFromPoint(P,N),f=v?.classList.contains(`${L}-flow__handle`)?v:O,w={handleDomNode:f,isValid:!1,connection:null,toHandle:null};if(f){let u=BT(void 0,f),C=f.getAttribute("data-nodeid"),j=f.getAttribute("data-handleid"),y=f.classList.contains("connectable"),h=f.classList.contains("connectableend");if(!C||!u)return w;let b={source:A?C:K,sourceHandle:A?j:H,target:A?K:C,targetHandle:A?H:j};w.connection=b;let D=y&&h&&(G===a6.Strict?A&&u==="source"||!A&&u==="target":C!==K||j!==H);w.isValid=D&&R(b),w.toHandle=LT(C,u,j,T,G,!0)}return w}var _U={onPointerDown:Hf,isValid:MT};function TT({domNode:Q,panZoom:U,getTransform:G,getViewScale:K}){let H=v2(Q);function Y({translateExtent:L,width:M,height:R,zoomStep:T=1,pannable:A=!0,zoomable:O=!0,inversePan:P=!1}){let N=(C)=>{if(C.sourceEvent.type!=="wheel"||!U)return;let j=G(),y=C.sourceEvent.ctrlKey&&f9()?10:1,h=-C.sourceEvent.deltaY*(C.sourceEvent.deltaMode===1?0.05:C.sourceEvent.deltaMode?1:0.002)*T,b=j[2]*Math.pow(2,h*y);U.scaleTo(b)},v=[0,0],f=(C)=>{if(C.sourceEvent.type==="mousedown"||C.sourceEvent.type==="touchstart")v=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY]},w=(C)=>{let j=G();if(C.sourceEvent.type!=="mousemove"&&C.sourceEvent.type!=="touchmove"||!U)return;let y=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY],h=[y[0]-v[0],y[1]-v[1]];v=y;let b=K()*Math.max(j[2],Math.log(j[2]))*(P?-1:1),E={x:j[0]-h[0]*b,y:j[1]-h[1]*b},D=[[0,0],[M,R]];U.setViewportConstrained({x:E.x,y:E.y,zoom:j[2]},D,L)},u=mJ().on("start",f).on("zoom",A?w:null).on("zoom.wheel",O?N:null);H.call(u,{})}function z(){H.on("zoom",null)}return{update:Y,destroy:z,pointer:s2}}var JU=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),PK=({x:Q,y:U,zoom:G})=>o8.translate(Q,U).scale(G),r6=(Q,U)=>Q.target.closest(`.${U}`),RT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),Yf=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,NK=(Q,U=0,G=Yf,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(G).on("end",K):Q},OT=(Q)=>{let U=Q.ctrlKey&&f9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function zf({zoomPanValues:Q,noWheelClassName:U,d3Selection:G,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:z,onPanZoomStart:L,onPanZoom:M,onPanZoomEnd:R}){return(T)=>{if(r6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=G.property("__zoom").k||1;if(T.ctrlKey&&z){let f=s2(T),w=OT(T),u=A*Math.pow(2,w);K.scaleTo(G,u,f,T);return}let O=T.deltaMode===1?20:1,P=H===g3.Vertical?0:T.deltaX*O,N=H===g3.Horizontal?0:T.deltaY*O;if(!f9()&&T.shiftKey&&H!==g3.Vertical)P=T.deltaY*O,N=0;K.translateBy(G,-(P/A)*Y,-(N/A)*Y,{internal:!0});let v=JU(G.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,L?.(T,v);else M?.(T,v);Q.panScrollTimeout=setTimeout(()=>{R?.(T,v),Q.isPanScrolling=!1},150)}}function Wf({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:G}){return function(K,H){let Y=K.type==="wheel",z=!U&&Y&&!K.ctrlKey,L=r6(K,Q);if(K.ctrlKey&&Y&&L)K.preventDefault();if(z||L)return null;K.preventDefault(),G.call(this,K,H)}}function Lf({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:G}){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(G)G?.(K.sourceEvent,H)}}function Bf({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:G,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(G&&RT(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 Af({zoomPanValues:Q,panOnDrag:U,panOnScroll:G,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(z)=>{if(z.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&RT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&z.sourceEvent)Y(z.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let L=JU(z.transform);Q.prevViewport=L,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(z.sourceEvent,L)},G?150:0)}}}function Mf({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:G,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:z,userSelectionActive:L,noWheelClassName:M,noPanClassName:R,lib:T,connectionInProgress:A}){return(O)=>{let P=U||G,N=K&&O.ctrlKey,v=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(r6(O,`${T}-flow__node`)||r6(O,`${T}-flow__edge`)||r6(O,`${T}-flow__selection`)||r6(O,`${T}-flow__nodesselection`)))return!0;if(!H&&!P&&!Y&&!z&&!K)return!1;if(L)return!1;if(A&&!v)return!1;if(r6(O,M)&&v)return!1;if(r6(O,R)&&(!v||Y&&v&&!U))return!1;if(!K&&O.ctrlKey&&v)return!1;if(!K&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!P&&!Y&&!N&&v)return!1;if(!H&&(O.type==="mousedown"||O.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(O.button)&&O.type==="mousedown")return!1;let f=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||v||Q)&&f}}function IT({domNode:Q,minZoom:U,maxZoom:G,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:z,onPanZoomEnd:L,onDraggingChange:M}){let R={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 x=Q1[0];if(x)A=[[0,0],[x.contentRect.width,x.contentRect.height]]}):null)?.observe(Q);let P=mJ().extent(()=>A).scaleExtent([U,G]).translateExtent(K),N=v2(Q).call(P);j({x:H.x,y:H.y,zoom:P9(H.zoom,U,G)},[[0,0],[T.width,T.height]],K);let v=N.on("wheel.zoom"),f=N.on("dblclick.zoom");P.wheelDelta(OT);async function w(Q1,x){if(N)return new Promise((m)=>{P?.interpolate(x?.interpolate==="linear"?q3:s8).transform(NK(N,x?.duration,x?.ease,()=>m(!0)),Q1)});return!1}function u({noWheelClassName:Q1,noPanClassName:x,onPaneContextMenu:m,userSelectionActive:c,panOnScroll:l,panOnDrag:p,panOnScrollMode:o,panOnScrollSpeed:k,preventScrolling:s,zoomOnPinch:$1,zoomOnScroll:a,zoomOnDoubleClick:H1,panActivationKeyPressed:P1=!1,zoomActivationKeyPressed:z1,lib:T1,onTransformChange:G1,connectionInProgress:R1,paneClickDistance:C1,selectionOnDrag:L1}){if(c&&!R.isZoomingOrPanning)C();let S1=l&&!z1&&!c;P.clickDistance(L1?1/0:!J4(C1)||C1<0?0:C1);let b1=S1?zf({zoomPanValues:R,noWheelClassName:Q1,d3Selection:N,d3Zoom:P,panOnScrollMode:o,panOnScrollSpeed:k,zoomOnPinch:$1,onPanZoomStart:z,onPanZoom:Y,onPanZoomEnd:L}):Wf({noWheelClassName:Q1,preventScrolling:s,d3ZoomHandler:v});N.on("wheel.zoom",b1,{passive:!1});let l1=Lf({zoomPanValues:R,onDraggingChange:M,onPanZoomStart:z});P.on("start",l1);let h1=Bf({zoomPanValues:R,panOnDrag:p,onPaneContextMenu:!!m,onPanZoom:Y,onTransformChange:G1});P.on("zoom",h1);let A1=Af({zoomPanValues:R,panOnDrag:p,panOnScroll:l,onPaneContextMenu:m,onPanZoomEnd:L,onDraggingChange:M});P.on("end",A1);let _0=Mf({panActivationKeyPressed:P1,zoomActivationKeyPressed:z1,panOnDrag:p,zoomOnScroll:a,panOnScroll:l,zoomOnDoubleClick:H1,zoomOnPinch:$1,userSelectionActive:c,noPanClassName:x,noWheelClassName:Q1,lib:T1,connectionInProgress:R1});if(P.filter(_0),H1)N.on("dblclick.zoom",f);else N.on("dblclick.zoom",null)}function C(){P.on("zoom",null)}async function j(Q1,x,m){let c=PK(Q1),l=P?.constrain()(c,x,m);if(l)await w(l);return l}async function y(Q1,x){let m=PK(Q1);return await w(m,x),m}function h(Q1){if(N){let x=PK(Q1),m=N.property("__zoom");if(m.k!==Q1.zoom||m.x!==Q1.x||m.y!==Q1.y)P?.transform(N,x,null,{sync:!0})}}function b(){let Q1=N?xJ(N.node()):{x:0,y:0,k:1};return{x:Q1.x,y:Q1.y,zoom:Q1.k}}async function E(Q1,x){if(N)return new Promise((m)=>{P?.interpolate(x?.interpolate==="linear"?q3:s8).scaleTo(NK(N,x?.duration,x?.ease,()=>m(!0)),Q1)});return!1}async function D(Q1,x){if(N)return new Promise((m)=>{P?.interpolate(x?.interpolate==="linear"?q3:s8).scaleBy(NK(N,x?.duration,x?.ease,()=>m(!0)),Q1)});return!1}function g(Q1){P?.scaleExtent(Q1)}function e(Q1){P?.translateExtent(Q1)}function q1(Q1){let x=!J4(Q1)||Q1<0?0:Q1;P?.clickDistance(x)}return{update:u,destroy:C,setViewport:y,setViewportConstrained:j,getViewport:b,scaleTo:E,scaleBy:D,setScaleExtent:g,setTranslateExtent:e,syncViewport:h,setClickDistance:q1}}var p3;(function(Q){Q.Line="line",Q.Handle="handle"})(p3||(p3={}));var PT=["top-left","top-right","bottom-left","bottom-right"],NT=["top","right","bottom","left"];function Tf({width:Q,prevWidth:U,height:G,prevHeight:K,affectsX:H,affectsY:Y}){let z=Q-U,L=G-K,M=[z>0?1:z<0?-1:0,L>0?1:L<0?-1:0];if(z&&H)M[0]=M[0]*-1;if(L&&Y)M[1]=M[1]*-1;return M}function dM(Q){let U=Q.includes("right")||Q.includes("left"),G=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:G,affectsX:K,affectsY:H}}function d6(Q,U){return Math.max(0,U-Q)}function i6(Q,U){return Math.max(0,Q-U)}function gq(Q,U,G){return Math.max(0,U-Q,Q-G)}function iM(Q,U){return Q?!U:U}function Rf(Q,U,G,K,H,Y,z,L){let{affectsX:M,affectsY:R}=U,{isHorizontal:T,isVertical:A}=U,O=T&&A,{xSnapped:P,ySnapped:N}=G,{minWidth:v,maxWidth:f,minHeight:w,maxHeight:u}=K,{x:C,y:j,width:y,height:h,aspectRatio:b}=Q,E=Math.floor(T?P-Q.pointerX:0),D=Math.floor(A?N-Q.pointerY:0),g=y+(M?-E:E),e=h+(R?-D:D),q1=-Y[0]*y,Q1=-Y[1]*h,x=gq(g,v,f),m=gq(e,w,u);if(z){let p=0,o=0;if(M&&E<0)p=d6(C+E+q1,z[0][0]);else if(!M&&E>0)p=i6(C+g+q1,z[1][0]);if(R&&D<0)o=d6(j+D+Q1,z[0][1]);else if(!R&&D>0)o=i6(j+e+Q1,z[1][1]);x=Math.max(x,p),m=Math.max(m,o)}if(L){let p=0,o=0;if(M&&E>0)p=i6(C+E,L[0][0]);else if(!M&&E<0)p=d6(C+g,L[1][0]);if(R&&D>0)o=i6(j+D,L[0][1]);else if(!R&&D<0)o=d6(j+e,L[1][1]);x=Math.max(x,p),m=Math.max(m,o)}if(H){if(T){let p=gq(g/b,w,u)*b;if(x=Math.max(x,p),z){let o=0;if(!M&&!R||M&&!R&&O)o=i6(j+Q1+g/b,z[1][1])*b;else o=d6(j+Q1+(M?E:-E)/b,z[0][1])*b;x=Math.max(x,o)}if(L){let o=0;if(!M&&!R||M&&!R&&O)o=d6(j+g/b,L[1][1])*b;else o=i6(j+(M?E:-E)/b,L[0][1])*b;x=Math.max(x,o)}}if(A){let p=gq(e*b,v,f)/b;if(m=Math.max(m,p),z){let o=0;if(!M&&!R||R&&!M&&O)o=i6(C+e*b+q1,z[1][0])/b;else o=d6(C+(R?D:-D)*b+q1,z[0][0])/b;m=Math.max(m,o)}if(L){let o=0;if(!M&&!R||R&&!M&&O)o=d6(C+e*b,L[1][0])/b;else o=i6(C+(R?D:-D)*b,L[0][0])/b;m=Math.max(m,o)}}}if(D=D+(D<0?m:-m),E=E+(E<0?x:-x),H)if(O)if(g>e*b)D=(iM(M,R)?-E:E)/b;else E=(iM(M,R)?-D:D)*b;else if(T)D=E/b,R=M;else E=D*b,M=R;let c=M?C+E:C,l=R?j+D:j;return{width:y+(M?-E:E),height:h+(R?-D:D),x:Y[0]*E*(!M?1:-1)+c,y:Y[1]*D*(!R?1:-1)+l}}var wT={width:0,height:0,x:0,y:0},Of={...wT,pointerX:0,pointerY:0,aspectRatio:1};function If(Q,U,G){let K=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,z=Q.measured.height??0,L=G[0]*Y,M=G[1]*z;return[[K-L,H-M],[K+Y-L,H+z-M]]}function CT({domNode:Q,nodeId:U,getStoreItems:G,onChange:K,onEnd:H}){let Y=v2(Q),z={controlDirection:dM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function L({controlPosition:R,boundaries:T,keepAspectRatio:A,resizeDirection:O,onResizeStart:P,onResize:N,onResizeEnd:v,shouldResize:f}){let w={...wT},u={...Of};z={boundaries:T,resizeDirection:O,keepAspectRatio:A,controlDirection:dM(R)};let C=void 0,j=null,y=[],h=void 0,b=void 0,E=void 0,D=IJ().on("start",(g)=>{let{nodeLookup:e,transform:q1,snapGrid:Q1,snapToGrid:x,nodeOrigin:m,paneDomNode:c}=G();if(C=e.get(U),!C)return;j=c?.getBoundingClientRect()??null;let{xSnapped:l,ySnapped:p}=gJ(g.sourceEvent,{transform:q1,snapGrid:Q1,snapToGrid:x,containerBounds:j});if(w={width:C.measured.width??0,height:C.measured.height??0,x:C.position.x??0,y:C.position.y??0},u={...w,pointerX:l,pointerY:p,aspectRatio:w.width/w.height},h=void 0,b=$7(C.extent)?C.extent:void 0,C.parentId&&(C.extent==="parent"||C.expandParent))h=e.get(C.parentId);if(h&&C.extent==="parent")b=[[0,0],[h.measured.width,h.measured.height]];y=[],E=void 0;for(let[o,k]of e)if(k.parentId===U){if(y.push({id:o,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let s=If(k,C,k.origin??m);if(E)E=[[Math.min(s[0][0],E[0][0]),Math.min(s[0][1],E[0][1])],[Math.max(s[1][0],E[1][0]),Math.max(s[1][1],E[1][1])]];else E=s}}P?.(g,{...w})}).on("drag",(g)=>{let{transform:e,snapGrid:q1,snapToGrid:Q1,nodeOrigin:x}=G(),m=gJ(g.sourceEvent,{transform:e,snapGrid:q1,snapToGrid:Q1,containerBounds:j}),c=[];if(!C)return;let{x:l,y:p,width:o,height:k}=w,s={},$1=C.origin??x,{width:a,height:H1,x:P1,y:z1}=Rf(u,z.controlDirection,m,z.boundaries,z.keepAspectRatio,$1,b,E),T1=a!==o,G1=H1!==k,R1=P1!==l&&T1,C1=z1!==p&&G1;if(!R1&&!C1&&!T1&&!G1)return;let L1={prevValues:{...w},startX:u.x,startY:u.y,childNodes:y.map((h1)=>({...h1,position:{...h1.position}}))};if(R1||C1||$1[0]===1||$1[1]===1){if(s.x=R1?P1:w.x,s.y=C1?z1:w.y,w.x=s.x,w.y=s.y,y.length>0){let h1=P1-l,A1=z1-p;for(let _0 of y)_0.position={x:_0.position.x-h1+$1[0]*(a-o),y:_0.position.y-A1+$1[1]*(H1-k)},c.push(_0)}}if(T1||G1)s.width=T1&&(!z.resizeDirection||z.resizeDirection==="horizontal")?a:w.width,s.height=G1&&(!z.resizeDirection||z.resizeDirection==="vertical")?H1:w.height,w.width=s.width,w.height=s.height;if(h&&C.expandParent){let h1=$1[0]*(s.width??0);if(s.x&&s.x<h1)w.x=h1,u.x=u.x-(s.x-h1);let A1=$1[1]*(s.height??0);if(s.y&&s.y<A1)w.y=A1,u.y=u.y-(s.y-A1)}let S1=Tf({width:w.width,prevWidth:o,height:w.height,prevHeight:k,affectsX:z.controlDirection.affectsX,affectsY:z.controlDirection.affectsY}),b1={...w,direction:S1};if(f?.(g,b1)===!1){w=L1.prevValues,u.x=L1.startX,u.y=L1.startY,y.forEach((h1,A1)=>{h1.position=L1.childNodes[A1].position});return}N?.(g,b1),K(s,c)}).on("end",(g)=>{v?.(g,{...w}),H?.({...w})});Y.call(D)}function M(){Y.on(".drag",null)}return{update:L,destroy:M}}var yT=n0(T4(),1),kT=n0(fT(),1);var jT=(Q)=>{let U,G=new Set,K=(T,A)=>{let O=typeof T==="function"?T(U):T;if(!Object.is(O,U)){let P=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),G.forEach((N)=>N(U,P))}},H=()=>U,M={setState:K,getState:H,getInitialState:()=>R,subscribe:(T)=>{return G.add(T),()=>G.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.");G.clear()}},R=U=Q(K,H,M);return M},vT=(Q)=>Q?jT(Q):jT;var{useDebugValue:wf}=yT.default,{useSyncExternalStoreWithSelector:Cf}=kT.default,Sf=(Q)=>Q;function sK(Q,U=Sf,G){let K=Cf(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,G);return wf(K),K}var VT=(Q,U)=>{let G=vT(Q),K=(H,Y=U)=>sK(G,H,Y);return Object.assign(K,G),K},DT=(Q,U)=>Q?VT(Q,U):VT;function r0(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 G=Object.keys(Q);if(G.length!==Object.keys(U).length)return!1;for(let K of G)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var FR=n0(rF(),1),GU=B1.createContext(null),ff=GU.Provider,XR=X5.error001("react");function B0(Q,U){let G=B1.useContext(GU);if(G===null)throw Error(XR);return sK(G,Q,U)}function a0(){let Q=B1.useContext(GU);if(Q===null)throw Error(XR);return B1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var uT={display:"none"},jf={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},KR="react-flow__node-desc",HR="react-flow__edge-desc",vf="react-flow__aria-live",Vf=(Q)=>Q.ariaLiveMessage,yf=(Q)=>Q.ariaLabelConfig;function kf({rfId:Q}){let U=B0(Vf);return Y1.jsx("div",{id:`${vf}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:jf,children:U})}function Df({rfId:Q,disableKeyboardA11y:U}){let G=B0(yf);return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx("div",{id:`${KR}-${Q}`,style:uT,children:U?G["node.a11yDescription.default"]:G["node.a11yDescription.keyboardDisabled"]}),Y1.jsx("div",{id:`${HR}-${Q}`,style:uT,children:G["edge.a11yDescription.default"]}),!U&&Y1.jsx(kf,{rfId:Q})]})}var Z3=B1.forwardRef(({position:Q="top-left",children:U,className:G,style:K,...H},Y)=>{let z=`${Q}`.split("-");return Y1.jsx("div",{className:$2(["react-flow__panel",G,...z]),style:K,ref:Y,...H,children:U})});Z3.displayName="Panel";var bT="https://reactflow.dev/attribution";function uf({proOptions:Q,position:U="bottom-right"}){if(B1.useEffect(()=>{JT("react")},[]),Q?.hideAttribution)return null;return Y1.jsx(Z3,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${bT}`,children:Y1.jsx("a",{href:bT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var bf=(Q)=>{let U=[],G=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)G.push(K);return{selectedNodes:U,selectedEdges:G}},$U=(Q)=>Q.id;function Ef(Q,U){return r0(Q.selectedNodes.map($U),U.selectedNodes.map($U))&&r0(Q.selectedEdges.map($U),U.selectedEdges.map($U))}function hf({onSelectionChange:Q}){let U=a0(),{selectedNodes:G,selectedEdges:K}=B0(bf,Ef);return B1.useEffect(()=>{let H={nodes:G,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[G,K,Q]),null}var xf=(Q)=>!!Q.onSelectionChangeHandlers;function mf({onSelectionChange:Q}){let U=B0(xf);if(Q||U)return Y1.jsx(hf,{onSelectionChange:Q});return null}var YR=[0,0],gf={x:0,y:0,zoom:1},pf=["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"],ET=[...pf,"rfId"],cf=(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}),hT={translateExtent:N9,nodeOrigin:YR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function lf(Q){let{setNodes:U,setEdges:G,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:z,reset:L,setDefaultNodesAndEdges:M}=B0(cf,r0),R=a0();B1.useEffect(()=>{return M(Q.defaultNodes,Q.defaultEdges),()=>{T.current=hT,L()}},[]);let T=B1.useRef(hT);return B1.useEffect(()=>{for(let A of ET){let O=Q[A],P=T.current[A];if(O===P)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")G(O);else if(A==="minZoom")K(O);else if(A==="maxZoom")H(O);else if(A==="translateExtent")Y(O);else if(A==="nodeExtent")z(O);else if(A==="ariaLabelConfig")R.setState({ariaLabelConfig:_T(O)});else if(A==="fitView")R.setState({fitViewQueued:O});else if(A==="fitViewOptions")R.setState({fitViewOptions:O});else R.setState({[A]:O})}T.current=Q},ET.map((A)=>Q[A])),null}function xT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function df(Q){let[U,G]=B1.useState(Q==="system"?null:Q);return B1.useEffect(()=>{if(Q!=="system"){G(Q);return}let K=xT(),H=()=>G(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:xT()?.matches?"dark":"light"}var mT=typeof document<"u"?document:null;function iJ(Q=null,U={target:mT,actInsideInputWithModifier:!0}){let[G,K]=B1.useState(!1),H=B1.useRef(!1),Y=B1.useRef(new Set([])),[z,L]=B1.useMemo(()=>{if(Q!==null){let R=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
240
+ <%s key={someKey} {...props} />`,o,L1,T1,L1),a[L1+o]=!0)}if(L1=null,$1!==void 0&&(G($1),L1=""+$1),z(s)&&(G(s.key),L1=""+s.key),"key"in s){$1={};for(var G1 in s)G1!=="key"&&($1[G1]=s[G1])}else $1=s;return L1&&L($1,typeof k==="function"?k.displayName||k.name||"Unknown":k),R(k,L1,$1,H(),B1,O1)}function A(k){O(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===E&&(k._payload.status==="fulfilled"?O(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function O(k){return typeof k==="object"&&k!==null&&k.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),u=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),n=l8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=Object.prototype.hasOwnProperty,Q1=Array.isArray,m=console.createTask?console.createTask:function(){return null};l8={react_stack_bottom_frame:function(k){return k()}};var g,p={},c=l8.react_stack_bottom_frame.bind(l8,Y)(),l=m(K(Y)),a={};fw.Fragment=v,fw.jsx=function(k,s,$1){var o=1e4>n.recentlyCreatedOwnerStacks++;return T(k,s,$1,!1,o?Error("react-stack-top-frame"):c,o?m(K(k)):l)},fw.jsxs=function(k,s,$1){var o=1e4>n.recentlyCreatedOwnerStacks++;return T(k,s,$1,!0,o?Error("react-stack-top-frame"):c,o?m(K(k)):l)}})()});var ST=J3((Pf)=>{var m5=n0(R4());(function(){function Q(O,P){return O===P&&(O!==0||1/O===1/P)||O!==O&&P!==P}function U(O,P){R||m5.startTransition===void 0||(R=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var N=P();if(!T){var v=P();H(N,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}v=Y({inst:{value:N,getSnapshot:P}});var f=v[0].inst,w=v[1];return L(function(){f.value=N,f.getSnapshot=P,G(f)&&w({inst:f})},[O,N,P]),z(function(){return G(f)&&w({inst:f}),O(function(){G(f)&&w({inst:f})})},[O]),M(N),N}function G(O){var P=O.getSnapshot;O=O.value;try{var N=P();return!H(O,N)}catch(v){return!0}}function K(O,P){return P()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=m5.useState,z=m5.useEffect,L=m5.useLayoutEffect,M=m5.useDebugValue,R=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;Pf.useSyncExternalStore=m5.useSyncExternalStore!==void 0?m5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fT=J3((Nf)=>{var r3=n0(R4());(function(){function Q(M,R){return M===R&&(M!==0||1/M===1/R)||M!==M&&R!==R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=ST(),G=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=r3.useRef,Y=r3.useEffect,z=r3.useMemo,L=r3.useDebugValue;Nf.useSyncExternalStoreWithSelector=function(M,R,T,A,O){var P=H(null);if(P.current===null){var N={hasValue:!1,value:null};P.current=N}else N=P.current;P=z(function(){function f(y){if(!w){if(w=!0,D=y,y=A(y),O!==void 0&&N.hasValue){var h=N.value;if(O(h,y))return C=h}return C=y}if(h=C,G(D,y))return h;var b=A(y);if(O!==void 0&&O(h,b))return D=y,h;return D=y,C=b}var w=!1,D,C,j=T===void 0?null:T;return[function(){return f(R())},j===null?void 0:function(){return f(j())}]},[R,T,A,O]);var v=K(M,P[0],P[1]);return Y(function(){N.hasValue=!0,N.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 yO=n0(xA(),1);var b2=n0(R4(),1);var mA={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 i1=n0(g8(),1),Pw="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function LJ({href:Q,onClick:U}){return i1.jsxDEV("h1",{children:i1.jsxDEV("a",{href:Q,onClick:U,children:[i1.jsxDEV("img",{src:Pw,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),i1.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 m3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function pA(Q,U,G=0,K=""){let[H,Y]=b2.useState({state:"loading"});return b2.useEffect(()=>{Y({state:"loading"})},[K,U]),b2.useEffect(()=>{if(!U)return;let z=!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 m3(L)};if(z)Y(M)}catch(L){if(z)Y({state:"error",status:0,error:String(L)})}})(),()=>{z=!1}},[K,U,G]),H}function a2({load:Q,what:U,retry:G,lines:K=3}){if(Q.state==="loading")return i1.jsxDEV(Nw,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return i1.jsxDEV("div",{role:"alert",className:"error-state",children:[i1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),G?i1.jsxDEV("button",{type:"button",onClick:G,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function Nw({lines:Q=3,label:U="Loading…"}){return i1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(G,K)=>i1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function V0({iso:Q,time:U}){if(!Q)return i1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let G=new Date(Q);return i1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(G.getTime())?Q:U?G.toLocaleTimeString():G.toLocaleString()},void 0,!1,void 0,this)}var p8=(Q)=>Q?new Date(Q).toLocaleString():"—";function oF(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let G=Math.max(0,Math.round((Date.now()-U)/1000));return G<60?"just now":G<3600?`${Math.round(G/60)}m ago`:G<86400?`${Math.round(G/3600)}h ago`:`${Math.round(G/86400)}d ago`}function i0(Q,U){let G=U.replace(/[_-]+/g," "),K=G.endsWith("s")?G:/[^aeiou]y$/.test(G)?`${G.slice(0,-1)}ies`:/(ch|sh|x)$/.test(G)?`${G}es`:`${G}s`;return`${Q} ${Q===1?G:K}`}var c8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,ww={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"},o1=(Q)=>ww[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function F2({vendor:Q}){let U=mA[Q];return i1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?i1.jsxDEV("svg",{viewBox:"0 0 24 24",children:i1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):o1(Q).charAt(0)},void 0,!1,void 0,this)}var gA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},Cw="volter.theme",nF=()=>{try{let Q=localStorage.getItem(Cw);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Aq(Q=nF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function cA(){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()},G=(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",G),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",G)}},[]),null}function x5({open:Q,onClose:U,title:G,children:K,footer:H,wide:Y}){let z=b2.useRef(null),L=b2.useId();return b2.useEffect(()=>{let M=z.current;if(!M)return;if(Q&&!M.open){M.showModal();let R=M.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(R?.focus(),R instanceof HTMLInputElement&&R.value&&/^(text|search|email|url)$/.test(R.type))R.select()}if(!Q&&M.open)M.close()},[Q]),i1.jsxDEV("dialog",{ref:z,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":L,onClose:U,onCancel:(M)=>{M.preventDefault(),U()},onMouseDown:(M)=>{if(M.target===z.current)U()},children:Q?i1.jsxDEV(i1.Fragment,{children:[i1.jsxDEV("div",{className:"dialog-head",children:[i1.jsxDEV("h2",{id:L,children:G},void 0,!1,void 0,this),i1.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),i1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?i1.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 sF="volter:confirm";function $3(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(sF,{detail:{ask:Q,resolve:U}}))})}function lA(){let[Q,U]=b2.useState(null),[G,K]=b2.useState("");b2.useEffect(()=>{let L=(M)=>{K(""),U(M.detail)};return window.addEventListener(sF,L),()=>window.removeEventListener(sF,L)},[]);let H=(L)=>{Q?.resolve(L),U(null)},Y=Q?.ask,z=!Y?.typed||G===Y.typed;return i1.jsxDEV(x5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:i1.jsxDEV(i1.Fragment,{children:[i1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),i1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!z,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?i1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?i1.jsxDEV("div",{className:"typed-confirm",children:[i1.jsxDEV("p",{children:["Type ",i1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),i1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:G,onChange:(L)=>K(L.target.value),onKeyDown:(L)=>{if(L.key==="Enter"&&z)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 tF="volter:toast";function $2(Q,U="ok"){window.dispatchEvent(new CustomEvent(tF,{detail:{text:Q,kind:U}}))}function dA(){let[Q,U]=b2.useState([]);return b2.useEffect(()=>{let G=0,K=(H)=>{let{text:Y,kind:z}=H.detail,L=++G;if(U((M)=>[...M.slice(-3),{id:L,text:Y,kind:z}]),z!=="error")setTimeout(()=>U((M)=>M.filter((R)=>R.id!==L)),4500)};return window.addEventListener(tF,K),()=>window.removeEventListener(tF,K)},[]),i1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((G)=>i1.jsxDEV("div",{className:`toast ${G.kind}`,role:G.kind==="error"?"alert":"status",children:[i1.jsxDEV("span",{children:G.text},void 0,!1,void 0,this),i1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.filter((H)=>H.id!==G.id)),children:"✕"},void 0,!1,void 0,this)]},G.id,!0,void 0,this))},void 0,!1,void 0,this)}function eF({value:Q,label:U,secret:G}){let[K,H]=b2.useState(!1);return i1.jsxDEV("div",{className:"copy-field",children:[U?i1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,i1.jsxDEV("div",{className:"copy-row",children:[i1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(z)=>z.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),i1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),$2(G?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>$2("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 iA({label:Q,items:U}){return i1.jsxDEV("details",{className:"menu row-menu",children:[i1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),i1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((G)=>Boolean(G)).map((G)=>G.href?i1.jsxDEV("a",{role:"menuitem",href:G.href,className:G.danger?"danger-item":void 0,onClick:gA,children:G.label},G.label,!1,void 0,this):i1.jsxDEV("button",{type:"button",role:"menuitem",disabled:G.disabled,className:G.danger?"danger-item":void 0,onClick:(K)=>{gA(K),G.onSelect?.()},children:G.label},G.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function z9({title:Q,children:U,action:G}){return i1.jsxDEV("div",{className:"empty-state",children:[i1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?i1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,G?i1.jsxDEV("div",{className:"empty-action",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function rA(){return b2.useEffect(()=>{let Q=(G)=>{let K=document.querySelector("main.app"),H=G.target;if(K?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(G)=>{if(G.key==="Escape")Sw()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),i1.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 Sw=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var Z1=n0(R4(),1);var K1=n0(aA(),1),W1=n0(R4(),1);function Q2(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let G=0,K;G<Q.length;G++)if((K=Q2(Q[G]))!=="")U+=(U&&" ")+K}else for(let G in Q)if(Q[G])U+=(U&&" ")+G;return U}var jw={value:()=>{}};function tA(){for(var Q=0,U=arguments.length,G={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in G||/[\s.]/.test(K))throw Error("illegal type: "+K);G[K]=[]}return new Mq(G)}function Mq(Q){this._=Q}function vw(Q,U){return Q.trim().split(/^|\s+/).map(function(G){var K="",H=G.indexOf(".");if(H>=0)K=G.slice(H+1),G=G.slice(0,H);if(G&&!U.hasOwnProperty(G))throw Error("unknown type: "+G);return{type:G,name:K}})}Mq.prototype=tA.prototype={constructor:Mq,on:function(Q,U){var G=this._,K=vw(Q+"",G),H,Y=-1,z=K.length;if(arguments.length<2){while(++Y<z)if((H=(Q=K[Y]).type)&&(H=Vw(G[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<z)if(H=(Q=K[Y]).type)G[H]=sA(G[H],Q.name,U);else if(U==null)for(H in G)G[H]=sA(G[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var G in U)Q[G]=U[G].slice();return new Mq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var G=Array(H),K=0,H,Y;K<H;++K)G[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,G)},apply:function(Q,U,G){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,G)}};function Vw(Q,U){for(var G=0,K=Q.length,H;G<K;++G)if((H=Q[G]).name===U)return H.value}function sA(Q,U,G){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=jw,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(G!=null)Q.push({name:U,value:G});return Q}var d8=tA;function W9(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",_X={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 Q3(Q){var U=Q+="",G=U.indexOf(":");if(G>=0&&(U=Q.slice(0,G))!=="xmlns")Q=Q.slice(G+1);return _X.hasOwnProperty(U)?{space:_X[U],local:Q}:Q}function JX(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function s2(Q,U){if(Q=JX(Q),U===void 0)U=Q.currentTarget;if(U){var G=U.ownerSVGElement||U;if(G.createSVGPoint){var K=G.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 yw(){}function l6(Q){return Q==null?yw:function(){return this.querySelector(Q)}}function $X(Q){if(typeof Q!=="function")Q=l6(Q);for(var U=this._groups,G=U.length,K=Array(G),H=0;H<G;++H)for(var Y=U[H],z=Y.length,L=K[H]=Array(z),M,R,T=0;T<z;++T)if((M=Y[T])&&(R=Q.call(M,M.__data__,T,Y))){if("__data__"in M)R.__data__=M.__data__;L[T]=R}return new X2(K,this._parents)}function QX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function kw(){return[]}function L9(Q){return Q==null?kw:function(){return this.querySelectorAll(Q)}}function Dw(Q){return function(){return QX(Q.apply(this,arguments))}}function qX(Q){if(typeof Q==="function")Q=Dw(Q);else Q=L9(Q);for(var U=this._groups,G=U.length,K=[],H=[],Y=0;Y<G;++Y)for(var z=U[Y],L=z.length,M,R=0;R<L;++R)if(M=z[R])K.push(Q.call(M,M.__data__,R,z)),H.push(M);return new X2(K,H)}var uw=Array.prototype.find;function bw(Q){return function(){return uw.call(this.children,Q)}}function Ew(){return this.firstElementChild}function UX(Q){return this.select(Q==null?Ew:bw(typeof Q==="function"?Q:Tq(Q)))}var hw=Array.prototype.filter;function xw(){return Array.from(this.children)}function mw(Q){return function(){return hw.call(this.children,Q)}}function GX(Q){return this.selectAll(Q==null?xw:mw(typeof Q==="function"?Q:Tq(Q)))}function ZX(Q){if(typeof Q!=="function")Q=W9(Q);for(var U=this._groups,G=U.length,K=Array(G),H=0;H<G;++H)for(var Y=U[H],z=Y.length,L=K[H]=[],M,R=0;R<z;++R)if((M=Y[R])&&Q.call(M,M.__data__,R,Y))L.push(M);return new X2(K,this._parents)}function BJ(Q){return Array(Q.length)}function FX(){return new X2(this._enter||this._groups.map(BJ),this._parents)}function AJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}AJ.prototype={constructor:AJ,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 XX(Q){return function(){return Q}}function gw(Q,U,G,K,H,Y){var z=0,L,M=U.length,R=Y.length;for(;z<R;++z)if(L=U[z])L.__data__=Y[z],K[z]=L;else G[z]=new AJ(Q,Y[z]);for(;z<M;++z)if(L=U[z])H[z]=L}function pw(Q,U,G,K,H,Y,z){var L,M,R=new Map,T=U.length,A=Y.length,O=Array(T),P;for(L=0;L<T;++L)if(M=U[L])if(O[L]=P=z.call(M,M.__data__,L,U)+"",R.has(P))H[L]=M;else R.set(P,M);for(L=0;L<A;++L)if(P=z.call(Q,Y[L],L,Y)+"",M=R.get(P))K[L]=M,M.__data__=Y[L],R.delete(P);else G[L]=new AJ(Q,Y[L]);for(L=0;L<T;++L)if((M=U[L])&&R.get(O[L])===M)H[L]=M}function cw(Q){return Q.__data__}function KX(Q,U){if(!arguments.length)return Array.from(this,cw);var G=U?pw:gw,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=XX(Q);for(var Y=H.length,z=Array(Y),L=Array(Y),M=Array(Y),R=0;R<Y;++R){var T=K[R],A=H[R],O=A.length,P=lw(Q.call(T,T&&T.__data__,R,K)),N=P.length,v=L[R]=Array(N),f=z[R]=Array(N),w=M[R]=Array(O);G(T,A,v,f,w,P,U);for(var D=0,C=0,j,y;D<N;++D)if(j=v[D]){if(D>=C)C=D+1;while(!(y=f[C])&&++C<N);j._next=y||null}}return z=new X2(z,K),z._enter=L,z._exit=M,z}function lw(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function HX(){return new X2(this._exit||this._groups.map(BJ),this._parents)}function YX(Q,U,G){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(G==null)Y.remove();else G(Y);return K&&H?K.merge(H).order():H}function zX(Q){var U=Q.selection?Q.selection():Q;for(var G=this._groups,K=U._groups,H=G.length,Y=K.length,z=Math.min(H,Y),L=Array(H),M=0;M<z;++M)for(var R=G[M],T=K[M],A=R.length,O=L[M]=Array(A),P,N=0;N<A;++N)if(P=R[N]||T[N])O[N]=P;for(;M<H;++M)L[M]=G[M];return new X2(L,this._parents)}function WX(){for(var Q=this._groups,U=-1,G=Q.length;++U<G;)for(var K=Q[U],H=K.length-1,Y=K[H],z;--H>=0;)if(z=K[H]){if(Y&&z.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(z,Y);Y=z}return this}function LX(Q){if(!Q)Q=dw;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var G=this._groups,K=G.length,H=Array(K),Y=0;Y<K;++Y){for(var z=G[Y],L=z.length,M=H[Y]=Array(L),R,T=0;T<L;++T)if(R=z[T])M[T]=R;M.sort(U)}return new X2(H,this._parents).order()}function dw(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function BX(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function AX(){return Array.from(this)}function MX(){for(var Q=this._groups,U=0,G=Q.length;U<G;++U)for(var K=Q[U],H=0,Y=K.length;H<Y;++H){var z=K[H];if(z)return z}return null}function TX(){let Q=0;for(let U of this)++Q;return Q}function RX(){return!this.node()}function OX(Q){for(var U=this._groups,G=0,K=U.length;G<K;++G)for(var H=U[G],Y=0,z=H.length,L;Y<z;++Y)if(L=H[Y])Q.call(L,L.__data__,Y,H);return this}function iw(Q){return function(){this.removeAttribute(Q)}}function rw(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function aw(Q,U){return function(){this.setAttribute(Q,U)}}function sw(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function tw(Q,U){return function(){var G=U.apply(this,arguments);if(G==null)this.removeAttribute(Q);else this.setAttribute(Q,G)}}function ow(Q,U){return function(){var G=U.apply(this,arguments);if(G==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,G)}}function IX(Q,U){var G=Q3(Q);if(arguments.length<2){var K=this.node();return G.local?K.getAttributeNS(G.space,G.local):K.getAttribute(G)}return this.each((U==null?G.local?rw:iw:typeof U==="function"?G.local?ow:tw:G.local?sw:aw)(G,U))}function MJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function nw(Q){return function(){this.style.removeProperty(Q)}}function ew(Q,U,G){return function(){this.style.setProperty(Q,U,G)}}function _C(Q,U,G){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,G)}}function PX(Q,U,G){return arguments.length>1?this.each((U==null?nw:typeof U==="function"?_C:ew)(Q,U,G==null?"":G)):d6(this.node(),Q)}function d6(Q,U){return Q.style.getPropertyValue(U)||MJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function JC(Q){return function(){delete this[Q]}}function $C(Q,U){return function(){this[Q]=U}}function QC(Q,U){return function(){var G=U.apply(this,arguments);if(G==null)delete this[Q];else this[Q]=G}}function NX(Q,U){return arguments.length>1?this.each((U==null?JC:typeof U==="function"?QC:$C)(Q,U)):this.node()[Q]}function oA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new nA(Q)}function nA(Q){this._node=Q,this._names=oA(Q.getAttribute("class")||"")}nA.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 eA(Q,U){var G=wX(Q),K=-1,H=U.length;while(++K<H)G.add(U[K])}function _M(Q,U){var G=wX(Q),K=-1,H=U.length;while(++K<H)G.remove(U[K])}function qC(Q){return function(){eA(this,Q)}}function UC(Q){return function(){_M(this,Q)}}function GC(Q,U){return function(){(U.apply(this,arguments)?eA:_M)(this,Q)}}function CX(Q,U){var G=oA(Q+"");if(arguments.length<2){var K=wX(this.node()),H=-1,Y=G.length;while(++H<Y)if(!K.contains(G[H]))return!1;return!0}return this.each((typeof U==="function"?GC:U?qC:UC)(G,U))}function ZC(){this.textContent=""}function FC(Q){return function(){this.textContent=Q}}function XC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function SX(Q){return arguments.length?this.each(Q==null?ZC:(typeof Q==="function"?XC:FC)(Q)):this.node().textContent}function KC(){this.innerHTML=""}function HC(Q){return function(){this.innerHTML=Q}}function YC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function fX(Q){return arguments.length?this.each(Q==null?KC:(typeof Q==="function"?YC:HC)(Q)):this.node().innerHTML}function zC(){if(this.nextSibling)this.parentNode.appendChild(this)}function jX(){return this.each(zC)}function WC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vX(){return this.each(WC)}function LC(Q){return function(){var U=this.ownerDocument,G=this.namespaceURI;return G===Rq&&U.documentElement.namespaceURI===Rq?U.createElement(Q):U.createElementNS(G,Q)}}function BC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function TJ(Q){var U=Q3(Q);return(U.local?BC:LC)(U)}function VX(Q){var U=typeof Q==="function"?Q:TJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function AC(){return null}function yX(Q,U){var G=typeof Q==="function"?Q:TJ(Q),K=U==null?AC:typeof U==="function"?U:l6(U);return this.select(function(){return this.insertBefore(G.apply(this,arguments),K.apply(this,arguments)||null)})}function MC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function kX(){return this.each(MC)}function TC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function RC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function DX(Q){return this.select(Q?RC:TC)}function uX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function OC(Q){return function(U){Q.call(this,U,this.__data__)}}function IC(Q){return Q.trim().split(/^|\s+/).map(function(U){var G="",K=U.indexOf(".");if(K>=0)G=U.slice(K+1),U=U.slice(0,K);return{type:U,name:G}})}function PC(Q){return function(){var U=this.__on;if(!U)return;for(var G=0,K=-1,H=U.length,Y;G<H;++G)if(Y=U[G],(!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 NC(Q,U,G){return function(){var K=this.__on,H,Y=OC(U);if(K){for(var z=0,L=K.length;z<L;++z)if((H=K[z]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=G),H.value=U;return}}if(this.addEventListener(Q.type,Y,G),H={type:Q.type,name:Q.name,value:U,listener:Y,options:G},!K)this.__on=[H];else K.push(H)}}function bX(Q,U,G){var K=IC(Q+""),H,Y=K.length,z;if(arguments.length<2){var L=this.node().__on;if(L){for(var M=0,R=L.length,T;M<R;++M)for(H=0,T=L[M];H<Y;++H)if((z=K[H]).type===T.type&&z.name===T.name)return T.value}return}L=U?NC:PC;for(H=0;H<Y;++H)this.each(L(K[H],U,G));return this}function JM(Q,U,G){var K=MJ(Q),H=K.CustomEvent;if(typeof H==="function")H=new H(U,G);else if(H=K.document.createEvent("Event"),G)H.initEvent(U,G.bubbles,G.cancelable),H.detail=G.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function wC(Q,U){return function(){return JM(this,Q,U)}}function CC(Q,U){return function(){return JM(this,Q,U.apply(this,arguments))}}function EX(Q,U){return this.each((typeof U==="function"?CC:wC)(Q,U))}function*hX(){for(var Q=this._groups,U=0,G=Q.length;U<G;++U)for(var K=Q[U],H=0,Y=K.length,z;H<Y;++H)if(z=K[H])yield z}var xX=[null];function X2(Q,U){this._groups=Q,this._parents=U}function $M(){return new X2([[document.documentElement]],xX)}function SC(){return this}X2.prototype=$M.prototype={constructor:X2,select:$X,selectAll:qX,selectChild:UX,selectChildren:GX,filter:ZX,data:KX,enter:FX,exit:HX,join:YX,merge:zX,selection:SC,order:WX,sort:LX,call:BX,nodes:AX,node:MX,size:TX,empty:RX,each:OX,attr:IX,style:PX,property:NX,classed:CX,text:SX,html:fX,raise:jX,lower:vX,append:VX,insert:yX,remove:kX,clone:DX,datum:uX,on:bX,dispatch:EX,[Symbol.iterator]:hX};var g3=$M;function S2(Q){return typeof Q==="string"?new X2([[document.querySelector(Q)]],[document.documentElement]):new X2([[Q]],xX)}var QM={passive:!1},i8={capture:!0,passive:!1};function Oq(Q){Q.stopImmediatePropagation()}function p3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function B9(Q){var U=Q.document.documentElement,G=S2(Q).on("dragstart.drag",p3,i8);if("onselectstart"in U)G.on("selectstart.drag",p3,i8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function RJ(Q,U){var G=Q.document.documentElement,K=S2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",p3,i8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in G)K.on("selectstart.drag",null);else G.style.MozUserSelect=G.__noselect,delete G.__noselect}var OJ=(Q)=>()=>Q;function IJ(Q,{sourceEvent:U,subject:G,target:K,identifier:H,active:Y,x:z,y:L,dx:M,dy:R,dispatch:T}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:G,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:z,enumerable:!0,configurable:!0},y:{value:L,enumerable:!0,configurable:!0},dx:{value:M,enumerable:!0,configurable:!0},dy:{value:R,enumerable:!0,configurable:!0},_:{value:T}})}IJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function fC(Q){return!Q.ctrlKey&&!Q.button}function jC(){return this.parentNode}function vC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function VC(){return navigator.maxTouchPoints||"ontouchstart"in this}function PJ(){var Q=fC,U=jC,G=vC,K=VC,H={},Y=d8("start","drag","end"),z=0,L,M,R,T,A=0;function O(j){j.on("mousedown.drag",P).filter(K).on("touchstart.drag",f).on("touchmove.drag",w,QM).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(j,y){if(T||!Q.call(this,j,y))return;var h=C(this,U.call(this,j,y),j,y,"mouse");if(!h)return;S2(j.view).on("mousemove.drag",N,i8).on("mouseup.drag",v,i8),B9(j.view),Oq(j),R=!1,L=j.clientX,M=j.clientY,h("start",j)}function N(j){if(p3(j),!R){var y=j.clientX-L,h=j.clientY-M;R=y*y+h*h>A}H.mouse("drag",j)}function v(j){S2(j.view).on("mousemove.drag mouseup.drag",null),RJ(j.view,R),p3(j),H.mouse("end",j)}function f(j,y){if(!Q.call(this,j,y))return;var h=j.changedTouches,b=U.call(this,j,y),E=h.length,u,x;for(u=0;u<E;++u)if(x=C(this,b,j,y,h[u].identifier,h[u]))Oq(j),x("start",j,h[u])}function w(j){var y=j.changedTouches,h=y.length,b,E;for(b=0;b<h;++b)if(E=H[y[b].identifier])p3(j),E("drag",j,y[b])}function D(j){var y=j.changedTouches,h=y.length,b,E;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(b=0;b<h;++b)if(E=H[y[b].identifier])Oq(j),E("end",j,y[b])}function C(j,y,h,b,E,u){var x=Y.copy(),n=s2(u||h,y),q1,Q1,m;if((m=G.call(j,new IJ("beforestart",{sourceEvent:h,target:O,identifier:E,active:z,x:n[0],y:n[1],dx:0,dy:0,dispatch:x}),b))==null)return;return q1=m.x-n[0]||0,Q1=m.y-n[1]||0,function g(p,c,l){var a=n,k;switch(p){case"start":H[E]=g,k=z++;break;case"end":delete H[E],--z;case"drag":n=s2(l||c,y),k=z;break}x.call(p,j,new IJ(p,{sourceEvent:c,subject:m,target:O,identifier:E,active:k,x:n[0]+q1,y:n[1]+Q1,dx:n[0]-a[0],dy:n[1]-a[1],dispatch:x}),b)}}return O.filter=function(j){return arguments.length?(Q=typeof j==="function"?j:OJ(!!j),O):Q},O.container=function(j){return arguments.length?(U=typeof j==="function"?j:OJ(j),O):U},O.subject=function(j){return arguments.length?(G=typeof j==="function"?j:OJ(j),O):G},O.touchable=function(j){return arguments.length?(K=typeof j==="function"?j:OJ(!!j),O):K},O.on=function(){var j=Y.on.apply(Y,arguments);return j===Y?O:j},O.clickDistance=function(j){return arguments.length?(A=(j=+j)*j,O):Math.sqrt(A)},O}function NJ(Q,U,G){Q.prototype=U.prototype=G,G.constructor=Q}function mX(Q,U){var G=Object.create(Q.prototype);for(var K in U)G[K]=U[K];return G}function SJ(){}var wJ=0.7,Nq=1/wJ,A9="\\s*([+-]?\\d+)\\s*",CJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",q3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yC=/^#([0-9a-f]{3,8})$/,kC=new RegExp(`^rgb\\(${A9},${A9},${A9}\\)$`),DC=new RegExp(`^rgb\\(${q3},${q3},${q3}\\)$`),uC=new RegExp(`^rgba\\(${A9},${A9},${A9},${CJ}\\)$`),bC=new RegExp(`^rgba\\(${q3},${q3},${q3},${CJ}\\)$`),EC=new RegExp(`^hsl\\(${CJ},${q3},${q3}\\)$`),hC=new RegExp(`^hsla\\(${CJ},${q3},${q3},${CJ}\\)$`),qM={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};NJ(SJ,I4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:UM,formatHex:UM,formatHex8:xC,formatHsl:mC,formatRgb:GM,toString:GM});function UM(){return this.rgb().formatHex()}function xC(){return this.rgb().formatHex8()}function mC(){return YM(this).formatHsl()}function GM(){return this.rgb().formatRgb()}function I4(Q){var U,G;return Q=(Q+"").trim().toLowerCase(),(U=yC.exec(Q))?(G=U[1].length,U=parseInt(U[1],16),G===6?ZM(U):G===3?new R5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):G===8?Iq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):G===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=kC.exec(Q))?new R5(U[1],U[2],U[3],1):(U=DC.exec(Q))?new R5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=uC.exec(Q))?Iq(U[1],U[2],U[3],U[4]):(U=bC.exec(Q))?Iq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=EC.exec(Q))?KM(U[1],U[2]/100,U[3]/100,1):(U=hC.exec(Q))?KM(U[1],U[2]/100,U[3]/100,U[4]):qM.hasOwnProperty(Q)?ZM(qM[Q]):Q==="transparent"?new R5(NaN,NaN,NaN,0):null}function ZM(Q){return new R5(Q>>16&255,Q>>8&255,Q&255,1)}function Iq(Q,U,G,K){if(K<=0)Q=U=G=NaN;return new R5(Q,U,G,K)}function gC(Q){if(!(Q instanceof SJ))Q=I4(Q);if(!Q)return new R5;return Q=Q.rgb(),new R5(Q.r,Q.g,Q.b,Q.opacity)}function M9(Q,U,G,K){return arguments.length===1?gC(Q):new R5(Q,U,G,K==null?1:K)}function R5(Q,U,G,K){this.r=+Q,this.g=+U,this.b=+G,this.opacity=+K}NJ(R5,M9,mX(SJ,{brighter(Q){return Q=Q==null?Nq:Math.pow(Nq,Q),new R5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?wJ:Math.pow(wJ,Q),new R5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new R5(a8(this.r),a8(this.g),a8(this.b),wq(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:FM,formatHex:FM,formatHex8:pC,formatRgb:XM,toString:XM}));function FM(){return`#${r8(this.r)}${r8(this.g)}${r8(this.b)}`}function pC(){return`#${r8(this.r)}${r8(this.g)}${r8(this.b)}${r8((isNaN(this.opacity)?1:this.opacity)*255)}`}function XM(){let Q=wq(this.opacity);return`${Q===1?"rgb(":"rgba("}${a8(this.r)}, ${a8(this.g)}, ${a8(this.b)}${Q===1?")":`, ${Q})`}`}function wq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function a8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function r8(Q){return Q=a8(Q),(Q<16?"0":"")+Q.toString(16)}function KM(Q,U,G,K){if(K<=0)Q=U=G=NaN;else if(G<=0||G>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new O4(Q,U,G,K)}function YM(Q){if(Q instanceof O4)return new O4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof SJ))Q=I4(Q);if(!Q)return new O4;if(Q instanceof O4)return Q;Q=Q.rgb();var U=Q.r/255,G=Q.g/255,K=Q.b/255,H=Math.min(U,G,K),Y=Math.max(U,G,K),z=NaN,L=Y-H,M=(Y+H)/2;if(L){if(U===Y)z=(G-K)/L+(G<K)*6;else if(G===Y)z=(K-U)/L+2;else z=(U-G)/L+4;L/=M<0.5?Y+H:2-Y-H,z*=60}else L=M>0&&M<1?0:z;return new O4(z,L,M,Q.opacity)}function zM(Q,U,G,K){return arguments.length===1?YM(Q):new O4(Q,U,G,K==null?1:K)}function O4(Q,U,G,K){this.h=+Q,this.s=+U,this.l=+G,this.opacity=+K}NJ(O4,zM,mX(SJ,{brighter(Q){return Q=Q==null?Nq:Math.pow(Nq,Q),new O4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?wJ:Math.pow(wJ,Q),new O4(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,G=this.l,K=G+(G<0.5?G:1-G)*U,H=2*G-K;return new R5(gX(Q>=240?Q-240:Q+120,H,K),gX(Q,H,K),gX(Q<120?Q+240:Q-120,H,K),this.opacity)},clamp(){return new O4(HM(this.h),Pq(this.s),Pq(this.l),wq(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=wq(this.opacity);return`${Q===1?"hsl(":"hsla("}${HM(this.h)}, ${Pq(this.s)*100}%, ${Pq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function HM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Pq(Q){return Math.max(0,Math.min(1,Q||0))}function gX(Q,U,G){return(Q<60?U+(G-U)*Q/60:Q<180?G:Q<240?U+(G-U)*(240-Q)/60:U)*255}function pX(Q,U,G,K,H){var Y=Q*Q,z=Y*Q;return((1-3*Q+3*Y-z)*U+(4-6*Y+3*z)*G+(1+3*Q+3*Y-3*z)*K+z*H)/6}function cX(Q){var U=Q.length-1;return function(G){var K=G<=0?G=0:G>=1?(G=1,U-1):Math.floor(G*U),H=Q[K],Y=Q[K+1],z=K>0?Q[K-1]:2*H-Y,L=K<U-1?Q[K+2]:2*Y-H;return pX((G-K/U)*U,z,H,Y,L)}}function lX(Q){var U=Q.length;return function(G){var K=Math.floor(((G%=1)<0?++G:G)*U),H=Q[(K+U-1)%U],Y=Q[K%U],z=Q[(K+1)%U],L=Q[(K+2)%U];return pX((G-K/U)*U,H,Y,z,L)}}var fJ=(Q)=>()=>Q;function cC(Q,U){return function(G){return Q+G*U}}function lC(Q,U,G){return Q=Math.pow(Q,G),U=Math.pow(U,G)-Q,G=1/G,function(K){return Math.pow(Q+K*U,G)}}function WM(Q){return(Q=+Q)===1?Cq:function(U,G){return G-U?lC(U,G,Q):fJ(isNaN(U)?G:U)}}function Cq(Q,U){var G=U-Q;return G?cC(Q,G):fJ(isNaN(Q)?U:Q)}var s8=function Q(U){var G=WM(U);function K(H,Y){var z=G((H=M9(H)).r,(Y=M9(Y)).r),L=G(H.g,Y.g),M=G(H.b,Y.b),R=Cq(H.opacity,Y.opacity);return function(T){return H.r=z(T),H.g=L(T),H.b=M(T),H.opacity=R(T),H+""}}return K.gamma=Q,K}(1);function LM(Q){return function(U){var G=U.length,K=Array(G),H=Array(G),Y=Array(G),z,L;for(z=0;z<G;++z)L=M9(U[z]),K[z]=L.r||0,H[z]=L.g||0,Y[z]=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 dC=LM(cX),iC=LM(lX);function dX(Q,U){if(!U)U=[];var G=Q?Math.min(U.length,Q.length):0,K=U.slice(),H;return function(Y){for(H=0;H<G;++H)K[H]=Q[H]*(1-Y)+U[H]*Y;return K}}function BM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function AM(Q,U){var G=U?U.length:0,K=Q?Math.min(G,Q.length):0,H=Array(K),Y=Array(G),z;for(z=0;z<K;++z)H[z]=U3(Q[z],U[z]);for(;z<G;++z)Y[z]=U[z];return function(L){for(z=0;z<K;++z)Y[z]=H[z](L);return Y}}function iX(Q,U){var G=new Date;return Q=+Q,U=+U,function(K){return G.setTime(Q*(1-K)+U*K),G}}function t2(Q,U){return Q=+Q,U=+U,function(G){return Q*(1-G)+U*G}}function rX(Q,U){var G={},K={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)G[H]=U3(Q[H],U[H]);else K[H]=U[H];return function(Y){for(H in G)K[H]=G[H](Y);return K}}var sX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aX=new RegExp(sX.source,"g");function rC(Q){return function(){return Q}}function aC(Q){return function(U){return Q(U)+""}}function T9(Q,U){var G=sX.lastIndex=aX.lastIndex=0,K,H,Y,z=-1,L=[],M=[];Q=Q+"",U=U+"";while((K=sX.exec(Q))&&(H=aX.exec(U))){if((Y=H.index)>G)if(Y=U.slice(G,Y),L[z])L[z]+=Y;else L[++z]=Y;if((K=K[0])===(H=H[0]))if(L[z])L[z]+=H;else L[++z]=H;else L[++z]=null,M.push({i:z,x:t2(K,H)});G=aX.lastIndex}if(G<U.length)if(Y=U.slice(G),L[z])L[z]+=Y;else L[++z]=Y;return L.length<2?M[0]?aC(M[0].x):rC(U):(U=M.length,function(R){for(var T=0,A;T<U;++T)L[(A=M[T]).i]=A.x(R);return L.join("")})}function U3(Q,U){var G=typeof U,K;return U==null||G==="boolean"?fJ(U):(G==="number"?t2:G==="string"?(K=I4(U))?(U=K,s8):T9:U instanceof I4?s8:U instanceof Date?iX:BM(U)?dX:Array.isArray(U)?AM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?rX:t2)(Q,U)}var MM=180/Math.PI,Sq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fq(Q,U,G,K,H,Y){var z,L,M;if(z=Math.sqrt(Q*Q+U*U))Q/=z,U/=z;if(M=Q*G+U*K)G-=Q*M,K-=U*M;if(L=Math.sqrt(G*G+K*K))G/=L,K/=L,M/=L;if(Q*K<U*G)Q=-Q,U=-U,M=-M,z=-z;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*MM,skewX:Math.atan(M)*MM,scaleX:z,scaleY:L}}var jq;function TM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Sq:fq(U.a,U.b,U.c,U.d,U.e,U.f)}function RM(Q){if(Q==null)return Sq;if(!jq)jq=document.createElementNS("http://www.w3.org/2000/svg","g");if(jq.setAttribute("transform",Q),!(Q=jq.transform.baseVal.consolidate()))return Sq;return Q=Q.matrix,fq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function OM(Q,U,G,K){function H(R){return R.length?R.pop()+" ":""}function Y(R,T,A,O,P,N){if(R!==A||T!==O){var v=P.push("translate(",null,U,null,G);N.push({i:v-4,x:t2(R,A)},{i:v-2,x:t2(T,O)})}else if(A||O)P.push("translate("+A+U+O+G)}function z(R,T,A,O){if(R!==T){if(R-T>180)T+=360;else if(T-R>180)R+=360;O.push({i:A.push(H(A)+"rotate(",null,K)-2,x:t2(R,T)})}else if(T)A.push(H(A)+"rotate("+T+K)}function L(R,T,A,O){if(R!==T)O.push({i:A.push(H(A)+"skewX(",null,K)-2,x:t2(R,T)});else if(T)A.push(H(A)+"skewX("+T+K)}function M(R,T,A,O,P,N){if(R!==A||T!==O){var v=P.push(H(P)+"scale(",null,",",null,")");N.push({i:v-4,x:t2(R,A)},{i:v-2,x:t2(T,O)})}else if(A!==1||O!==1)P.push(H(P)+"scale("+A+","+O+")")}return function(R,T){var A=[],O=[];return R=Q(R),T=Q(T),Y(R.translateX,R.translateY,T.translateX,T.translateY,A,O),z(R.rotate,T.rotate,A,O),L(R.skewX,T.skewX,A,O),M(R.scaleX,R.scaleY,T.scaleX,T.scaleY,A,O),R=T=null,function(P){var N=-1,v=O.length,f;while(++N<v)A[(f=O[N]).i]=f.x(P);return A.join("")}}}var tX=OM(TM,"px, ","px)","deg)"),oX=OM(RM,", ",")",")");var sC=0.000000000001;function IM(Q){return((Q=Math.exp(Q))+1/Q)/2}function tC(Q){return((Q=Math.exp(Q))-1/Q)/2}function oC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var t8=function Q(U,G,K){function H(Y,z){var L=Y[0],M=Y[1],R=Y[2],T=z[0],A=z[1],O=z[2],P=T-L,N=A-M,v=P*P+N*N,f,w;if(v<sC)w=Math.log(O/R)/U,f=function(b){return[L+b*P,M+b*N,R*Math.exp(U*b*w)]};else{var D=Math.sqrt(v),C=(O*O-R*R+K*v)/(2*R*G*D),j=(O*O-R*R-K*v)/(2*O*G*D),y=Math.log(Math.sqrt(C*C+1)-C),h=Math.log(Math.sqrt(j*j+1)-j);w=(h-y)/U,f=function(b){var E=b*w,u=IM(y),x=R/(G*D)*(u*oC(U*E+y)-tC(y));return[L+x*P,M+x*N,R*u/IM(U*E+y)]}}return f.duration=w*1000*U/Math.SQRT2,f}return H.rho=function(Y){var z=Math.max(0.001,+Y),L=z*z,M=L*L;return Q(z,L,M)},H}(Math.SQRT2,2,4);var R9=0,vJ=0,jJ=0,NM=1000,vq,VJ,Vq=0,o8=0,yq=0,yJ=typeof performance==="object"&&performance.now?performance:Date,wM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function DJ(){return o8||(wM(nC),o8=yJ.now()+yq)}function nC(){o8=0}function kJ(){this._call=this._time=this._next=null}kJ.prototype=kq.prototype={constructor:kJ,restart:function(Q,U,G){if(typeof Q!=="function")throw TypeError("callback is not a function");if(G=(G==null?DJ():+G)+(U==null?0:+U),!this._next&&VJ!==this){if(VJ)VJ._next=this;else vq=this;VJ=this}this._call=Q,this._time=G,nX()},stop:function(){if(this._call)this._call=null,this._time=1/0,nX()}};function kq(Q,U,G){var K=new kJ;return K.restart(Q,U,G),K}function CM(){DJ(),++R9;var Q=vq,U;while(Q){if((U=o8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--R9}function PM(){o8=(Vq=yJ.now())+yq,R9=vJ=0;try{CM()}finally{R9=0,_S(),o8=0}}function eC(){var Q=yJ.now(),U=Q-Vq;if(U>NM)yq-=U,Vq=Q}function _S(){var Q,U=vq,G,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else G=U._next,U._next=null,U=Q?Q._next=G:vq=G;VJ=Q,nX(K)}function nX(Q){if(R9)return;if(vJ)vJ=clearTimeout(vJ);var U=Q-o8;if(U>24){if(Q<1/0)vJ=setTimeout(PM,Q-yJ.now()-yq);if(jJ)jJ=clearInterval(jJ)}else{if(!jJ)Vq=yJ.now(),jJ=setInterval(eC,NM);R9=1,wM(PM)}}function uJ(Q,U,G){var K=new kJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,G),K}var JS=d8("start","end","cancel","interrupt"),$S=[],jM=0,SM=1,uq=2,Dq=3,fM=4,bq=5,bJ=6;function c3(Q,U,G,K,H,Y){var z=Q.__transition;if(!z)Q.__transition={};else if(G in z)return;QS(Q,G,{name:U,index:K,group:H,on:JS,tween:$S,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:jM})}function EJ(Q,U){var G=f2(Q,U);if(G.state>jM)throw Error("too late; already scheduled");return G}function c2(Q,U){var G=f2(Q,U);if(G.state>Dq)throw Error("too late; already running");return G}function f2(Q,U){var G=Q.__transition;if(!G||!(G=G[U]))throw Error("transition not found");return G}function QS(Q,U,G){var K=Q.__transition,H;K[U]=G,G.timer=kq(Y,0,G.time);function Y(R){if(G.state=SM,G.timer.restart(z,G.delay,G.time),G.delay<=R)z(R-G.delay)}function z(R){var T,A,O,P;if(G.state!==SM)return M();for(T in K){if(P=K[T],P.name!==G.name)continue;if(P.state===Dq)return uJ(z);if(P.state===fM)P.state=bJ,P.timer.stop(),P.on.call("interrupt",Q,Q.__data__,P.index,P.group),delete K[T];else if(+T<U)P.state=bJ,P.timer.stop(),P.on.call("cancel",Q,Q.__data__,P.index,P.group),delete K[T]}if(uJ(function(){if(G.state===Dq)G.state=fM,G.timer.restart(L,G.delay,G.time),L(R)}),G.state=uq,G.on.call("start",Q,Q.__data__,G.index,G.group),G.state!==uq)return;G.state=Dq,H=Array(O=G.tween.length);for(T=0,A=-1;T<O;++T)if(P=G.tween[T].value.call(Q,Q.__data__,G.index,G.group))H[++A]=P;H.length=A+1}function L(R){var T=R<G.duration?G.ease.call(null,R/G.duration):(G.timer.restart(M),G.state=bq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,T);if(G.state===bq)G.on.call("end",Q,Q.__data__,G.index,G.group),M()}function M(){G.state=bJ,G.timer.stop(),delete K[U];for(var R in K)return;delete Q.__transition}}function i6(Q,U){var G=Q.__transition,K,H,Y=!0,z;if(!G)return;U=U==null?null:U+"";for(z in G){if((K=G[z]).name!==U){Y=!1;continue}H=K.state>uq&&K.state<bq,K.state=bJ,K.timer.stop(),K.on.call(H?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete G[z]}if(Y)delete Q.__transition}function eX(Q){return this.each(function(){i6(this,Q)})}function qS(Q,U){var G,K;return function(){var H=c2(this,Q),Y=H.tween;if(Y!==G){K=G=Y;for(var z=0,L=K.length;z<L;++z)if(K[z].name===U){K=K.slice(),K.splice(z,1);break}}H.tween=K}}function US(Q,U,G){var K,H;if(typeof G!=="function")throw Error();return function(){var Y=c2(this,Q),z=Y.tween;if(z!==K){H=(K=z).slice();for(var L={name:U,value:G},M=0,R=H.length;M<R;++M)if(H[M].name===U){H[M]=L;break}if(M===R)H.push(L)}Y.tween=H}}function _K(Q,U){var G=this._id;if(Q+="",arguments.length<2){var K=f2(this.node(),G).tween;for(var H=0,Y=K.length,z;H<Y;++H)if((z=K[H]).name===Q)return z.value;return null}return this.each((U==null?qS:US)(G,Q,U))}function O9(Q,U,G){var K=Q._id;return Q.each(function(){var H=c2(this,K);(H.value||(H.value={}))[U]=G.apply(this,arguments)}),function(H){return f2(H,K).value[U]}}function hJ(Q,U){var G;return(typeof U==="number"?t2:U instanceof I4?s8:(G=I4(U))?(U=G,s8):T9)(Q,U)}function GS(Q){return function(){this.removeAttribute(Q)}}function ZS(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function FS(Q,U,G){var K,H=G+"",Y;return function(){var z=this.getAttribute(Q);return z===H?null:z===K?Y:Y=U(K=z,G)}}function XS(Q,U,G){var K,H=G+"",Y;return function(){var z=this.getAttributeNS(Q.space,Q.local);return z===H?null:z===K?Y:Y=U(K=z,G)}}function KS(Q,U,G){var K,H,Y;return function(){var z,L=G(this),M;if(L==null)return void this.removeAttribute(Q);return z=this.getAttribute(Q),M=L+"",z===M?null:z===K&&M===H?Y:(H=M,Y=U(K=z,L))}}function HS(Q,U,G){var K,H,Y;return function(){var z,L=G(this),M;if(L==null)return void this.removeAttributeNS(Q.space,Q.local);return z=this.getAttributeNS(Q.space,Q.local),M=L+"",z===M?null:z===K&&M===H?Y:(H=M,Y=U(K=z,L))}}function JK(Q,U){var G=Q3(Q),K=G==="transform"?oX:hJ;return this.attrTween(Q,typeof U==="function"?(G.local?HS:KS)(G,K,O9(this,"attr."+Q,U)):U==null?(G.local?ZS:GS)(G):(G.local?XS:FS)(G,K,U))}function YS(Q,U){return function(G){this.setAttribute(Q,U.call(this,G))}}function zS(Q,U){return function(G){this.setAttributeNS(Q.space,Q.local,U.call(this,G))}}function WS(Q,U){var G,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)G=(K=Y)&&zS(Q,Y);return G}return H._value=U,H}function LS(Q,U){var G,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)G=(K=Y)&&YS(Q,Y);return G}return H._value=U,H}function $K(Q,U){var G="attr."+Q;if(arguments.length<2)return(G=this.tween(G))&&G._value;if(U==null)return this.tween(G,null);if(typeof U!=="function")throw Error();var K=Q3(Q);return this.tween(G,(K.local?WS:LS)(K,U))}function BS(Q,U){return function(){EJ(this,Q).delay=+U.apply(this,arguments)}}function AS(Q,U){return U=+U,function(){EJ(this,Q).delay=U}}function QK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?BS:AS)(U,Q)):f2(this.node(),U).delay}function MS(Q,U){return function(){c2(this,Q).duration=+U.apply(this,arguments)}}function TS(Q,U){return U=+U,function(){c2(this,Q).duration=U}}function qK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?MS:TS)(U,Q)):f2(this.node(),U).duration}function RS(Q,U){if(typeof U!=="function")throw Error();return function(){c2(this,Q).ease=U}}function UK(Q){var U=this._id;return arguments.length?this.each(RS(U,Q)):f2(this.node(),U).ease}function OS(Q,U){return function(){var G=U.apply(this,arguments);if(typeof G!=="function")throw Error();c2(this,Q).ease=G}}function GK(Q){if(typeof Q!=="function")throw Error();return this.each(OS(this._id,Q))}function ZK(Q){if(typeof Q!=="function")Q=W9(Q);for(var U=this._groups,G=U.length,K=Array(G),H=0;H<G;++H)for(var Y=U[H],z=Y.length,L=K[H]=[],M,R=0;R<z;++R)if((M=Y[R])&&Q.call(M,M.__data__,R,Y))L.push(M);return new F5(K,this._parents,this._name,this._id)}function FK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,G=Q._groups,K=U.length,H=G.length,Y=Math.min(K,H),z=Array(K),L=0;L<Y;++L)for(var M=U[L],R=G[L],T=M.length,A=z[L]=Array(T),O,P=0;P<T;++P)if(O=M[P]||R[P])A[P]=O;for(;L<K;++L)z[L]=U[L];return new F5(z,this._parents,this._name,this._id)}function IS(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var G=U.indexOf(".");if(G>=0)U=U.slice(0,G);return!U||U==="start"})}function PS(Q,U,G){var K,H,Y=IS(U)?EJ:c2;return function(){var z=Y(this,Q),L=z.on;if(L!==K)(H=(K=L).copy()).on(U,G);z.on=H}}function XK(Q,U){var G=this._id;return arguments.length<2?f2(this.node(),G).on.on(Q):this.each(PS(G,Q,U))}function NS(Q){return function(){var U=this.parentNode;for(var G in this.__transition)if(+G!==Q)return;if(U)U.removeChild(this)}}function KK(){return this.on("end.remove",NS(this._id))}function HK(Q){var U=this._name,G=this._id;if(typeof Q!=="function")Q=l6(Q);for(var K=this._groups,H=K.length,Y=Array(H),z=0;z<H;++z)for(var L=K[z],M=L.length,R=Y[z]=Array(M),T,A,O=0;O<M;++O)if((T=L[O])&&(A=Q.call(T,T.__data__,O,L))){if("__data__"in T)A.__data__=T.__data__;R[O]=A,c3(R[O],U,G,O,R,f2(T,G))}return new F5(Y,this._parents,U,G)}function YK(Q){var U=this._name,G=this._id;if(typeof Q!=="function")Q=L9(Q);for(var K=this._groups,H=K.length,Y=[],z=[],L=0;L<H;++L)for(var M=K[L],R=M.length,T,A=0;A<R;++A)if(T=M[A]){for(var O=Q.call(T,T.__data__,A,M),P,N=f2(T,G),v=0,f=O.length;v<f;++v)if(P=O[v])c3(P,U,G,v,O,N);Y.push(O),z.push(T)}return new F5(Y,z,U,G)}var wS=g3.prototype.constructor;function zK(){return new wS(this._groups,this._parents)}function CS(Q,U){var G,K,H;return function(){var Y=d6(this,Q),z=(this.style.removeProperty(Q),d6(this,Q));return Y===z?null:Y===G&&z===K?H:H=U(G=Y,K=z)}}function vM(Q){return function(){this.style.removeProperty(Q)}}function SS(Q,U,G){var K,H=G+"",Y;return function(){var z=d6(this,Q);return z===H?null:z===K?Y:Y=U(K=z,G)}}function fS(Q,U,G){var K,H,Y;return function(){var z=d6(this,Q),L=G(this),M=L+"";if(L==null)M=L=(this.style.removeProperty(Q),d6(this,Q));return z===M?null:z===K&&M===H?Y:(H=M,Y=U(K=z,L))}}function jS(Q,U){var G,K,H,Y="style."+U,z="end."+Y,L;return function(){var M=c2(this,Q),R=M.on,T=M.value[Y]==null?L||(L=vM(U)):void 0;if(R!==G||H!==T)(K=(G=R).copy()).on(z,H=T);M.on=K}}function WK(Q,U,G){var K=(Q+="")==="transform"?tX:hJ;return U==null?this.styleTween(Q,CS(Q,K)).on("end.style."+Q,vM(Q)):typeof U==="function"?this.styleTween(Q,fS(Q,K,O9(this,"style."+Q,U))).each(jS(this._id,Q)):this.styleTween(Q,SS(Q,K,U),G).on("end.style."+Q,null)}function vS(Q,U,G){return function(K){this.style.setProperty(Q,U.call(this,K),G)}}function VS(Q,U,G){var K,H;function Y(){var z=U.apply(this,arguments);if(z!==H)K=(H=z)&&vS(Q,z,G);return K}return Y._value=U,Y}function LK(Q,U,G){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,VS(Q,U,G==null?"":G))}function yS(Q){return function(){this.textContent=Q}}function kS(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function BK(Q){return this.tween("text",typeof Q==="function"?kS(O9(this,"text",Q)):yS(Q==null?"":Q+""))}function DS(Q){return function(U){this.textContent=Q.call(this,U)}}function uS(Q){var U,G;function K(){var H=Q.apply(this,arguments);if(H!==G)U=(G=H)&&DS(H);return U}return K._value=Q,K}function AK(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,uS(Q))}function MK(){var Q=this._name,U=this._id,G=Eq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var z=K[Y],L=z.length,M,R=0;R<L;++R)if(M=z[R]){var T=f2(M,U);c3(M,Q,G,R,z,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new F5(K,this._parents,Q,G)}function TK(){var Q,U,G=this,K=G._id,H=G.size();return new Promise(function(Y,z){var L={value:z},M={value:function(){if(--H===0)Y()}};if(G.each(function(){var R=c2(this,K),T=R.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(L),U._.interrupt.push(L),U._.end.push(M);R.on=U}),H===0)Y()})}var bS=0;function F5(Q,U,G,K){this._groups=Q,this._parents=U,this._name=G,this._id=K}function VM(Q){return g3().transition(Q)}function Eq(){return++bS}var l3=g3.prototype;F5.prototype=VM.prototype={constructor:F5,select:HK,selectAll:YK,selectChild:l3.selectChild,selectChildren:l3.selectChildren,filter:ZK,merge:FK,selection:zK,transition:MK,call:l3.call,nodes:l3.nodes,node:l3.node,size:l3.size,empty:l3.empty,each:l3.each,on:XK,attr:JK,attrTween:$K,style:WK,styleTween:LK,text:BK,textTween:AK,remove:KK,tween:_K,delay:QK,duration:qK,ease:UK,easeVarying:GK,end:TK,[Symbol.iterator]:l3[Symbol.iterator]};function hq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var ES={time:null,delay:0,duration:250,ease:hq};function hS(Q,U){var G;while(!(G=Q.__transition)||!(G=G[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return G}function RK(Q){var U,G;if(Q instanceof F5)U=Q._id,Q=Q._name;else U=Eq(),(G=ES).time=DJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var z=K[Y],L=z.length,M,R=0;R<L;++R)if(M=z[R])c3(M,Q,U,R,z,G||hS(M,U));return new F5(K,this._parents,Q,U)}g3.prototype.interrupt=eX;g3.prototype.transition=RK;var xJ=(Q)=>()=>Q;function OK(Q,{sourceEvent:U,target:G,transform:K,dispatch:H}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:G,enumerable:!0,configurable:!0},transform:{value:K,enumerable:!0,configurable:!0},_:{value:H}})}function P4(Q,U,G){this.k=Q,this.x=U,this.y=G}P4.prototype={constructor:P4,scale:function(Q){return Q===1?this:new P4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new P4(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 n8=new P4(1,0,0);mJ.prototype=P4.prototype;function mJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return n8;return Q.__zoom}function xq(Q){Q.stopImmediatePropagation()}function e8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function xS(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function mS(){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 yM(){return this.__zoom||n8}function gS(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function pS(){return navigator.maxTouchPoints||"ontouchstart"in this}function cS(Q,U,G){var K=Q.invertX(U[0][0])-G[0][0],H=Q.invertX(U[1][0])-G[1][0],Y=Q.invertY(U[0][1])-G[0][1],z=Q.invertY(U[1][1])-G[1][1];return Q.translate(H>K?(K+H)/2:Math.min(0,K)||Math.max(0,H),z>Y?(Y+z)/2:Math.min(0,Y)||Math.max(0,z))}function gJ(){var Q=xS,U=mS,G=cS,K=gS,H=pS,Y=[0,1/0],z=[[-1/0,-1/0],[1/0,1/0]],L=250,M=t8,R=d8("start","zoom","end"),T,A,O,P=500,N=150,v=0,f=10;function w(m){m.property("__zoom",yM).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",u).on("dblclick.zoom",x).filter(H).on("touchstart.zoom",n).on("touchmove.zoom",q1).on("touchend.zoom touchcancel.zoom",Q1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(m,g,p,c){var l=m.selection?m.selection():m;if(l.property("__zoom",yM),m!==l)y(m,g,p,c);else l.interrupt().each(function(){h(this,arguments).event(c).start().zoom(null,typeof g==="function"?g.apply(this,arguments):g).end()})},w.scaleBy=function(m,g,p,c){w.scaleTo(m,function(){var l=this.__zoom.k,a=typeof g==="function"?g.apply(this,arguments):g;return l*a},p,c)},w.scaleTo=function(m,g,p,c){w.transform(m,function(){var l=U.apply(this,arguments),a=this.__zoom,k=p==null?j(l):typeof p==="function"?p.apply(this,arguments):p,s=a.invert(k),$1=typeof g==="function"?g.apply(this,arguments):g;return G(C(D(a,$1),k,s),l,z)},p,c)},w.translateBy=function(m,g,p,c){w.transform(m,function(){return G(this.__zoom.translate(typeof g==="function"?g.apply(this,arguments):g,typeof p==="function"?p.apply(this,arguments):p),U.apply(this,arguments),z)},null,c)},w.translateTo=function(m,g,p,c,l){w.transform(m,function(){var a=U.apply(this,arguments),k=this.__zoom,s=c==null?j(a):typeof c==="function"?c.apply(this,arguments):c;return G(n8.translate(s[0],s[1]).scale(k.k).translate(typeof g==="function"?-g.apply(this,arguments):-g,typeof p==="function"?-p.apply(this,arguments):-p),a,z)},c,l)};function D(m,g){return g=Math.max(Y[0],Math.min(Y[1],g)),g===m.k?m:new P4(g,m.x,m.y)}function C(m,g,p){var c=g[0]-p[0]*m.k,l=g[1]-p[1]*m.k;return c===m.x&&l===m.y?m:new P4(m.k,c,l)}function j(m){return[(+m[0][0]+ +m[1][0])/2,(+m[0][1]+ +m[1][1])/2]}function y(m,g,p,c){m.on("start.zoom",function(){h(this,arguments).event(c).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(c).end()}).tween("zoom",function(){var l=this,a=arguments,k=h(l,a).event(c),s=U.apply(l,a),$1=p==null?j(s):typeof p==="function"?p.apply(l,a):p,o=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),B1=l.__zoom,O1=typeof g==="function"?g.apply(l,a):g,L1=M(B1.invert($1).concat(o/B1.k),O1.invert($1).concat(o/O1.k));return function(T1){if(T1===1)T1=O1;else{var G1=L1(T1),R1=o/G1[2];T1=new P4(R1,$1[0]-G1[0]*R1,$1[1]-G1[1]*R1)}k.zoom(null,T1)}})}function h(m,g,p){return!p&&m.__zooming||new b(m,g)}function b(m,g){this.that=m,this.args=g,this.active=0,this.sourceEvent=null,this.extent=U.apply(m,g),this.taps=0}b.prototype={event:function(m){if(m)this.sourceEvent=m;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(m,g){if(this.mouse&&m!=="mouse")this.mouse[1]=g.invert(this.mouse[0]);if(this.touch0&&m!=="touch")this.touch0[1]=g.invert(this.touch0[0]);if(this.touch1&&m!=="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(m){var g=S2(this.that).datum();R.call(m,this.that,new OK(m,{sourceEvent:this.sourceEvent,target:w,type:m,transform:this.that.__zoom,dispatch:R}),g)}};function E(m,...g){if(!Q.apply(this,arguments))return;var p=h(this,g).event(m),c=this.__zoom,l=Math.max(Y[0],Math.min(Y[1],c.k*Math.pow(2,K.apply(this,arguments)))),a=s2(m);if(p.wheel){if(p.mouse[0][0]!==a[0]||p.mouse[0][1]!==a[1])p.mouse[1]=c.invert(p.mouse[0]=a);clearTimeout(p.wheel)}else if(c.k===l)return;else p.mouse=[a,c.invert(a)],i6(this),p.start();e8(m),p.wheel=setTimeout(k,N),p.zoom("mouse",G(C(D(c,l),p.mouse[0],p.mouse[1]),p.extent,z));function k(){p.wheel=null,p.end()}}function u(m,...g){if(O||!Q.apply(this,arguments))return;var p=m.currentTarget,c=h(this,g,!0).event(m),l=S2(m.view).on("mousemove.zoom",$1,!0).on("mouseup.zoom",o,!0),a=s2(m,p),k=m.clientX,s=m.clientY;B9(m.view),xq(m),c.mouse=[a,this.__zoom.invert(a)],i6(this),c.start();function $1(B1){if(e8(B1),!c.moved){var O1=B1.clientX-k,L1=B1.clientY-s;c.moved=O1*O1+L1*L1>v}c.event(B1).zoom("mouse",G(C(c.that.__zoom,c.mouse[0]=s2(B1,p),c.mouse[1]),c.extent,z))}function o(B1){l.on("mousemove.zoom mouseup.zoom",null),RJ(B1.view,c.moved),e8(B1),c.event(B1).end()}}function x(m,...g){if(!Q.apply(this,arguments))return;var p=this.__zoom,c=s2(m.changedTouches?m.changedTouches[0]:m,this),l=p.invert(c),a=p.k*(m.shiftKey?0.5:2),k=G(C(D(p,a),c,l),U.apply(this,g),z);if(e8(m),L>0)S2(this).transition().duration(L).call(y,k,c,m);else S2(this).call(w.transform,k,c,m)}function n(m,...g){if(!Q.apply(this,arguments))return;var p=m.touches,c=p.length,l=h(this,g,m.changedTouches.length===c).event(m),a,k,s,$1;xq(m);for(k=0;k<c;++k)if(s=p[k],$1=s2(s,this),$1=[$1,this.__zoom.invert($1),s.identifier],!l.touch0)l.touch0=$1,a=!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(a){if(l.taps<2)A=$1[0],T=setTimeout(function(){T=null},P);i6(this),l.start()}}function q1(m,...g){if(!this.__zooming)return;var p=h(this,g).event(m),c=m.changedTouches,l=c.length,a,k,s,$1;e8(m);for(a=0;a<l;++a)if(k=c[a],s=s2(k,this),p.touch0&&p.touch0[2]===k.identifier)p.touch0[0]=s;else if(p.touch1&&p.touch1[2]===k.identifier)p.touch1[0]=s;if(k=p.that.__zoom,p.touch1){var o=p.touch0[0],B1=p.touch0[1],O1=p.touch1[0],L1=p.touch1[1],T1=(T1=O1[0]-o[0])*T1+(T1=O1[1]-o[1])*T1,G1=(G1=L1[0]-B1[0])*G1+(G1=L1[1]-B1[1])*G1;k=D(k,Math.sqrt(T1/G1)),s=[(o[0]+O1[0])/2,(o[1]+O1[1])/2],$1=[(B1[0]+L1[0])/2,(B1[1]+L1[1])/2]}else if(p.touch0)s=p.touch0[0],$1=p.touch0[1];else return;p.zoom("touch",G(C(k,s,$1),p.extent,z))}function Q1(m,...g){if(!this.__zooming)return;var p=h(this,g).event(m),c=m.changedTouches,l=c.length,a,k;if(xq(m),O)clearTimeout(O);O=setTimeout(function(){O=null},P);for(a=0;a<l;++a)if(k=c[a],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])<f){var s=S2(this).on("dblclick.zoom");if(s)s.apply(this,arguments)}}}return w.wheelDelta=function(m){return arguments.length?(K=typeof m==="function"?m:xJ(+m),w):K},w.filter=function(m){return arguments.length?(Q=typeof m==="function"?m:xJ(!!m),w):Q},w.touchable=function(m){return arguments.length?(H=typeof m==="function"?m:xJ(!!m),w):H},w.extent=function(m){return arguments.length?(U=typeof m==="function"?m:xJ([[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]]),w):U},w.scaleExtent=function(m){return arguments.length?(Y[0]=+m[0],Y[1]=+m[1],w):[Y[0],Y[1]]},w.translateExtent=function(m){return arguments.length?(z[0][0]=+m[0][0],z[1][0]=+m[1][0],z[0][1]=+m[0][1],z[1][1]=+m[1][1],w):[[z[0][0],z[0][1]],[z[1][0],z[1][1]]]},w.constrain=function(m){return arguments.length?(G=m,w):G},w.duration=function(m){return arguments.length?(L=+m,w):L},w.interpolate=function(m){return arguments.length?(M=m,w):M},w.on=function(){var m=R.on.apply(R,arguments);return m===R?w:m},w.clickDistance=function(m){return arguments.length?(v=(m=+m)*m,w):Math.sqrt(v)},w.tapDistance=function(m){return arguments.length?(f=+m,w):f},w}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:G,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?G: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.`},w9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],CK=["Enter"," ","Escape"],SK={"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:G})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${G}`,"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"},t6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(t6||(t6={}));var d3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(d3||(d3={}));var _7;(function(Q){Q.Partial="partial",Q.Full="full"})(_7||(_7={}));var fK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},G3;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(G3||(G3={}));var P9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(P9||(P9={}));var E1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(E1||(E1={}));var kM={[E1.Left]:E1.Right,[E1.Right]:E1.Left,[E1.Top]:E1.Bottom,[E1.Bottom]:E1.Top},jK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),rM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),vK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var cJ=(Q,U=[0,0])=>{let{width:G,height:K}=U4(Q),H=Q.origin??U,Y=G*H[0],z=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-z}},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 G=!1,K=Q.reduce((H,Y)=>{let z=typeof Y==="string",L=!U.nodeLookup&&!z?Y:void 0;if(U.nodeLookup)L=z?U.nodeLookup.get(Y):!vK(Y)?U.nodeLookup.get(Y.id):Y;if(!L)return H;return G=!0,dq(H,pq(L,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return G?iq(K):{x:0,y:0,width:0,height:0}},q7=(Q,U={})=>{let G={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))G=dq(G,pq(H)),K=!0}),K?iq(G):{x:0,y:0,width:0,height:0}},cq=(Q,U,[G,K,H]=[0,0,1],Y=!1,z=!1)=>{let L=(U.x-G)/H,M=(U.y-K)/H,R=U.width/H,T=U.height/H,A=[];for(let O of Q.values()){let{measured:P,selectable:N=!0,hidden:v=!1}=O;if(z&&!N||v)continue;let f=P.width??O.width??O.initialWidth??0,w=P.height??O.height??O.initialHeight??0,{x:D,y:C}=O.internals.positionAbsolute,j=nM(L,M,R,T,D,C,f,w),y=f*w,h=Y&&j>0;if(!O.internals.handleBounds||h||j>=y||O.dragging)A.push(O)}return A},aM=(Q,U)=>{let G=new Set;return Q.forEach((K)=>{G.add(K.id)}),U.filter((K)=>G.has(K.source)||G.has(K.target))};function lS(Q,U){let G=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:z,height:L}=U4(H);Y=z>0&&L>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!K||K.has(H.id)))G.set(H.id,H)}),G}async function sM({nodes:Q,width:U,height:G,panZoom:K,minZoom:H,maxZoom:Y},z){if(Q.size===0)return!0;let L=lS(Q,z),M=q7(L),R=dJ(M,U,G,z?.minZoom??H,z?.maxZoom??Y,z?.padding??0.1);return await K.setViewport(R,{duration:z?.duration,ease:z?.ease,interpolate:z?.interpolate}),!0}function yK({nodeId:Q,nextPosition:U,nodeLookup:G,nodeOrigin:K=[0,0],nodeExtent:H,onError:Y}){let z=G.get(Q),L=z.parentId?G.get(z.parentId):void 0,{x:M,y:R}=L?L.internals.positionAbsolute:{x:0,y:0},T=z.origin??K,A=z.extent||H;if(z.extent==="parent"&&!z.expandParent)if(!L)Y?.("005",X5.error005());else{let{width:P,height:N}=U4(L);if(P&&N)A=[[M,R],[M+P,R+N]]}else if(L&&Q7(z.extent))A=[[z.extent[0][0]+M,z.extent[0][1]+R],[z.extent[1][0]+M,z.extent[1][1]+R]];let O=Q7(A)?J7(U,A,z.measured):U;if(z.measured.width===void 0||z.measured.height===void 0)Y?.("015",X5.error015());return{position:{x:O.x-M+(z.measured.width??0)*T[0],y:O.y-R+(z.measured.height??0)*T[1]},positionAbsolute:O}}async function tM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:G,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),z=[];for(let O of G){if(O.deletable===!1)continue;let P=Y.has(O.id),N=!P&&O.parentId&&z.find((v)=>v.id===O.parentId);if(P||N)z.push(O)}let L=new Set(U.map((O)=>O.id)),M=K.filter((O)=>O.deletable!==!1),T=aM(z,M);for(let O of M)if(L.has(O.id)&&!T.find((N)=>N.id===O.id))T.push(O);if(!H)return{edges:T,nodes:z};let A=await H({nodes:z,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:z}:{edges:[],nodes:[]};return A}var N9=(Q,U=0,G=1)=>Math.min(Math.max(Q,U),G),J7=(Q={x:0,y:0},U,G)=>({x:N9(Q.x,U[0][0],U[1][0]-(G?.width??0)),y:N9(Q.y,U[0][1],U[1][1]-(G?.height??0))});function oM(Q,U,G){let{width:K,height:H}=U4(G),{x:Y,y:z}=G.internals.positionAbsolute;return J7(Q,[[Y,z],[Y+K,z+H]],U)}var DM=(Q,U,G)=>{if(Q<U)return N9(Math.abs(Q-U),1,U)/U;else if(Q>G)return-N9(Math.abs(Q-G),1,U)/U;return 0},lq=(Q,U,G=15,K=40)=>{let H=DM(Q.x,K,U.width-K)*G,Y=DM(Q.y,K,U.height-K)*G;return[H,Y]},dq=(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:G,height:K})=>({x:Q,y:U,x2:Q+G,y2:U+K}),iq=({x:Q,y:U,x2:G,y2:K})=>({x:Q,y:U,width:G-Q,height:K-U}),C9=(Q,U=[0,0])=>{let{x:G,y:K}=vK(Q)?Q.internals.positionAbsolute:cJ(Q,U);return{x:G,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:G,y:K}=vK(Q)?Q.internals.positionAbsolute:cJ(Q,U);return{x:G,y:K,x2:G+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},kK=(Q,U)=>iq(dq(wK(Q),wK(U))),nM=(Q,U,G,K,H,Y,z,L)=>{let M=Math.max(0,Math.min(Q+G,H+z)-Math.max(Q,H)),R=Math.max(0,Math.min(U+K,Y+L)-Math.max(U,Y));return Math.ceil(M*R)},lJ=(Q,U)=>nM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),DK=(Q)=>Q4(Q.width)&&Q4(Q.height)&&Q4(Q.x)&&Q4(Q.y),Q4=(Q)=>!isNaN(Q)&&isFinite(Q),uK=(Q,U)=>(G,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${G}`)},S9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},f9=({x:Q,y:U},[G,K,H],Y=!1,z=[1,1])=>{let L={x:(Q-G)/H,y:(U-K)/H};return Y?S9(L,z):L},$7=({x:Q,y:U},[G,K,H])=>{return{x:Q*H+G,y:U*H+K}};function I9(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let G=parseFloat(Q);if(!Number.isNaN(G))return Math.floor(G)}if(typeof Q==="string"&&Q.endsWith("%")){let G=parseFloat(Q);if(!Number.isNaN(G))return Math.floor(U*G*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 dS(Q,U,G){if(typeof Q==="string"||typeof Q==="number"){let K=I9(Q,G),H=I9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=I9(Q.top??Q.y??0,G),H=I9(Q.bottom??Q.y??0,G),Y=I9(Q.left??Q.x??0,U),z=I9(Q.right??Q.x??0,U);return{top:K,right:z,bottom:H,left:Y,x:Y+z,y:K+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function iS(Q,U,G,K,H,Y){let{x:z,y:L}=$7(Q,[U,G,K]),{x:M,y:R}=$7({x:Q.x+Q.width,y:Q.y+Q.height},[U,G,K]),T=H-M,A=Y-R;return{left:Math.floor(z),top:Math.floor(L),right:Math.floor(T),bottom:Math.floor(A)}}var dJ=(Q,U,G,K,H,Y)=>{let z=dS(Y,U,G),L=(U-z.x)/Q.width,M=(G-z.y)/Q.height,R=Math.min(L,M),T=N9(R,K,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,P=U/2-A*T,N=G/2-O*T,v=iS(Q,P,N,T,U,G),f={left:Math.min(v.left-z.left,0),top:Math.min(v.top-z.top,0),right:Math.min(v.right-z.right,0),bottom:Math.min(v.bottom-z.bottom,0)};return{x:P-f.left+f.right,y:N-f.top+f.bottom,zoom:T}},j9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function Q7(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function U4(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function bK(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function EK(Q,U={width:0,height:0},G,K,H){let Y={...Q},z=K.get(G);if(z){let L=z.origin||H;Y.x+=z.internals.positionAbsolute.x-(U.width??0)*L[0],Y.y+=z.internals.positionAbsolute.y-(U.height??0)*L[1]}return Y}function hK(Q,U){if(Q.size!==U.size)return!1;for(let G of Q)if(!U.has(G))return!1;return!0}function eM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function _T(Q){return{...SK,...Q||{}}}function rS(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let G=getComputedStyle(U);if(G.display==="none")return!0;if(G.visibility==="hidden"||G.visibility==="collapse")return!0;if(G.opacity==="0")return!0;if(G.width==="0"&&G.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 z=H.getBoundingClientRect();if(z.width===0&&z.height===0)return!1;return!0}var uM=!1;function JT(Q){if(uM)return;uM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!rS(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 xK(Q){return Q===null?null:Q?"valid":"invalid"}function pJ(Q,{snapGrid:U=[0,0],snapToGrid:G=!1,transform:K,containerBounds:H}){let{x:Y,y:z}=q4(Q),L=f9({x:Y-(H?.left??0),y:z-(H?.top??0)},K),{x:M,y:R}=G?S9(L,U):L;return{xSnapped:M,ySnapped:R,...L}}var rq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),mK=(Q)=>Q?.getRootNode?.()||window?.document,aS=["INPUT","SELECT","TEXTAREA"];function gK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return aS.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var pK=(Q)=>("clientX"in Q),q4=(Q,U)=>{let G=pK(Q),K=G?Q.clientX:Q.touches?.[0].clientX,H=G?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:H-(U?.top??0)}},bM=(Q,U,G,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((z)=>{let L=z.getBoundingClientRect();return{id:z.getAttribute("data-handleid"),type:Q,nodeId:H,position:z.getAttribute("data-handlepos"),x:(L.left-G.left)/K,y:(L.top-G.top)/K,...rq(z)}})};function aq({sourceX:Q,sourceY:U,targetX:G,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:z,targetControlY:L}){let M=Q*0.125+H*0.375+z*0.375+G*0.125,R=U*0.125+Y*0.375+L*0.375+K*0.125,T=Math.abs(M-Q),A=Math.abs(R-U);return[M,R,T,A]}function mq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function EM({pos:Q,x1:U,y1:G,x2:K,y2:H,c:Y}){switch(Q){case E1.Left:return[U-mq(U-K,Y),G];case E1.Right:return[U+mq(K-U,Y),G];case E1.Top:return[U,G-mq(G-H,Y)];case E1.Bottom:return[U,G+mq(H-G,Y)]}}function sq({sourceX:Q,sourceY:U,sourcePosition:G=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,curvature:z=0.25}){let[L,M]=EM({pos:G,x1:Q,y1:U,x2:K,y2:H,c:z}),[R,T]=EM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:z}),[A,O,P,N]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:L,sourceControlY:M,targetControlX:R,targetControlY:T});return[`M${Q},${U} C${L},${M} ${R},${T} ${K},${H}`,A,O,P,N]}function cK({sourceX:Q,sourceY:U,targetX:G,targetY:K}){let H=Math.abs(G-Q)/2,Y=G<Q?G+H:G-H,z=Math.abs(K-U)/2,L=K<U?K+z:K-z;return[Y,L,H,z]}function $T({sourceNode:Q,targetNode:U,selected:G=!1,zIndex:K=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let z=H&&G?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 z+L}function QT({sourceNode:Q,targetNode:U,width:G,height:K,transform:H}){let Y=dq(pq(Q),pq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let z={x:-H[0]/H[2],y:-H[1]/H[2],width:G/H[2],height:K/H[2]};return lJ(z,iq(Y))>0}var sS=({source:Q,sourceHandle:U,target:G,targetHandle:K})=>`xy-edge__${Q}${U||""}-${G}${K||""}`,tS=(Q,U)=>{return U.some((G)=>G.source===Q.source&&G.target===Q.target&&(G.sourceHandle===Q.sourceHandle||!G.sourceHandle&&!Q.sourceHandle)&&(G.targetHandle===Q.targetHandle||!G.targetHandle&&!Q.targetHandle))},qT=(Q,U,G={})=>{if(!Q.source||!Q.target)return G.onError?.("006",X5.error006()),U;let K=G.getEdgeId||sS,H;if(jK(Q))H={...Q};else H={...Q,id:K(Q)};if(tS(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:G,targetY:K}){let[H,Y,z,L]=cK({sourceX:Q,sourceY:U,targetX:G,targetY:K});return[`M ${Q},${U}L ${G},${K}`,H,Y,z,L]}var hM={[E1.Left]:{x:-1,y:0},[E1.Right]:{x:1,y:0},[E1.Top]:{x:0,y:-1},[E1.Bottom]:{x:0,y:1}},oS=({source:Q,sourcePosition:U=E1.Bottom,target:G})=>{if(U===E1.Left||U===E1.Right)return Q.x<G.x?{x:1,y:0}:{x:-1,y:0};return Q.y<G.y?{x:0,y:1}:{x:0,y:-1}},xM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function nS({source:Q,sourcePosition:U=E1.Bottom,target:G,targetPosition:K=E1.Top,center:H,offset:Y,stepPosition:z}){let L=hM[U],M=hM[K],R={x:Q.x+L.x*Y,y:Q.y+L.y*Y},T={x:G.x+M.x*Y,y:G.y+M.y*Y},A=oS({source:R,sourcePosition:U,target:T}),O=A.x!==0?"x":"y",P=A[O],N=[],v,f,w={x:0,y:0},D={x:0,y:0},[,,C,j]=cK({sourceX:Q.x,sourceY:Q.y,targetX:G.x,targetY:G.y});if(L[O]*M[O]===-1){if(O==="x")v=H.x??R.x+(T.x-R.x)*z,f=H.y??(R.y+T.y)/2;else v=H.x??(R.x+T.x)/2,f=H.y??R.y+(T.y-R.y)*z;let E=[{x:v,y:R.y},{x:v,y:T.y}],u=[{x:R.x,y:f},{x:T.x,y:f}];if(L[O]===P)N=O==="x"?E:u;else N=O==="x"?u:E}else{let E=[{x:R.x,y:T.y}],u=[{x:T.x,y:R.y}];if(O==="x")N=L.x===P?u:E;else N=L.y===P?E:u;if(U===K){let m=Math.abs(Q[O]-G[O]);if(m<=Y){let g=Math.min(Y-1,Y-m);if(L[O]===P)w[O]=(R[O]>Q[O]?-1:1)*g;else D[O]=(T[O]>G[O]?-1:1)*g}}if(U!==K){let m=O==="x"?"y":"x",g=L[O]===M[m],p=R[m]>T[m],c=R[m]<T[m];if(L[O]===1&&(!g&&p||g&&c)||L[O]!==1&&(!g&&c||g&&p))N=O==="x"?E:u}let x={x:R.x+w.x,y:R.y+w.y},n={x:T.x+D.x,y:T.y+D.y},q1=Math.max(Math.abs(x.x-N[0].x),Math.abs(n.x-N[0].x)),Q1=Math.max(Math.abs(x.y-N[0].y),Math.abs(n.y-N[0].y));if(q1>=Q1)v=(x.x+n.x)/2,f=N[0].y;else v=N[0].x,f=(x.y+n.y)/2}let y={x:R.x+w.x,y:R.y+w.y},h={x:T.x+D.x,y:T.y+D.y};return[[Q,...y.x!==N[0].x||y.y!==N[0].y?[y]:[],...N,...h.x!==N[N.length-1].x||h.y!==N[N.length-1].y?[h]:[],G],v,f,C,j]}function eS(Q,U,G,K){let H=Math.min(xM(Q,U)/2,xM(U,G)/2,K),{x:Y,y:z}=U;if(Q.x===Y&&Y===G.x||Q.y===z&&z===G.y)return`L${Y} ${z}`;if(Q.y===z){let R=Q.x<G.x?-1:1,T=Q.y<G.y?1:-1;return`L ${Y+H*R},${z}Q ${Y},${z} ${Y},${z+H*T}`}let L=Q.x<G.x?1:-1,M=Q.y<G.y?-1:1;return`L ${Y},${z+H*M}Q ${Y},${z} ${Y+H*L},${z}`}function iJ({sourceX:Q,sourceY:U,sourcePosition:G=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,borderRadius:z=5,centerX:L,centerY:M,offset:R=20,stepPosition:T=0.5}){let[A,O,P,N,v]=nS({source:{x:Q,y:U},sourcePosition:G,target:{x:K,y:H},targetPosition:Y,center:{x:L,y:M},offset:R,stepPosition:T}),f=`M${A[0].x} ${A[0].y}`;for(let w=1;w<A.length-1;w++)f+=eS(A[w-1],A[w],A[w+1],z);return f+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[f,O,P,N,v]}function mM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function UT(Q){let{sourceNode:U,targetNode:G}=Q;if(!mM(U)||!mM(G))return null;let K=U.internals.handleBounds||gM(U.handles),H=G.internals.handleBounds||gM(G.handles),Y=pM(K?.source??[],Q.sourceHandle),z=pM(Q.connectionMode===t6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!z)return Q.onError?.("008",X5.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let L=Y?.position||E1.Bottom,M=z?.position||E1.Top,R=o6(U,Y,L),T=o6(G,z,M);return{sourceX:R.x,sourceY:R.y,targetX:T.x,targetY:T.y,sourcePosition:L,targetPosition:M}}function gM(Q){if(!Q)return null;let U=[],G=[];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")G.push(K);return{source:U,target:G}}function o6(Q,U,G=E1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:z,height:L}=U??U4(Q);if(K)return{x:H+z/2,y:Y+L/2};switch(U?.position??G){case E1.Top:return{x:H+z/2,y:Y};case E1.Right:return{x:H+z,y:Y+L/2};case E1.Bottom:return{x:H+z/2,y:Y+L};case E1.Left:return{x:H,y:Y+L/2}}}function pM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((G)=>G.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 GT(Q,{id:U,defaultColor:G,defaultMarkerStart:K,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((z,L)=>{return[L.markerStart||K,L.markerEnd||H].forEach((M)=>{if(M&&typeof M==="object"){let R=oq(M,U);if(!Y.has(R))z.push({id:R,color:M.color||G,...M}),Y.add(R)}}),z},[]).sort((z,L)=>z.id.localeCompare(L.id))}function ZT(Q,U,G,K,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let z=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-K],L=[-100*Y,-100];switch(G){case E1.Right:z=[(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:z[1]=(Q.y+Q.height)*U.zoom+U.y+K,L[1]=0;break;case E1.Left:z=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[-100,-100*Y];break}return`translate(${z[0]}px, ${z[1]}px) translate(${L[0]}%, ${L[1]}%)`}var FT=1000,_f=10,lK={nodeOrigin:[0,0],nodeExtent:w9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Jf={...lK,checkEquality:!0};function dK(Q,U){let G={...Q};for(let K in U)if(U[K]!==void 0)G[K]=U[K];return G}function XT(Q,U,G){let K=dK(lK,G);for(let H of Q.values())if(H.parentId)rK(H,Q,U,K);else{let Y=cJ(H,K.nodeOrigin),z=Q7(H.extent)?H.extent:K.nodeExtent,L=J7(Y,z,U4(H));H.internals.positionAbsolute=L}}function $f(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let G=[],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")G.push(Y);else if(H.type==="target")K.push(Y)}return{source:G,target:K}}function iK(Q){return Q==="manual"}function nq(Q,U,G,K={}){let H=dK(Jf,K),Y={i:0},z=new Map(U),L=H?.elevateNodesOnSelect&&!iK(H.zIndexMode)?FT:0,M=Q.length>0,R=!1;U.clear(),G.clear();for(let T of Q){let A=z.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let O=cJ(T,H.nodeOrigin),P=Q7(T.extent)?T.extent:H.nodeExtent,N=J7(O,P,U4(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:N,handleBounds:$f(T,A),z:KT(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)rK(A,U,G,K,Y);R||=T.selected??!1}return{nodesInitialized:M,hasSelectedNodes:R}}function Qf(Q,U){if(!Q.parentId)return;let G=U.get(Q.parentId);if(G)G.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function rK(Q,U,G,K,H){let{elevateNodesOnSelect:Y,nodeOrigin:z,nodeExtent:L,zIndexMode:M}=dK(lK,K),R=Q.parentId,T=U.get(R);if(!T){console.warn(`Parent node ${R} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(Qf(Q,G),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&M==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*_f;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!iK(M)?FT:0,{x:O,y:P,z:N}=qf(Q,T,z,L,A,M),{positionAbsolute:v}=Q.internals,f=O!==v.x||P!==v.y;if(f||N!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:f?{x:O,y:P}:v,z:N}})}function KT(Q,U,G){let K=Q4(Q.zIndex)?Q.zIndex:0;if(iK(G))return K;return K+(Q.selected?U:0)}function qf(Q,U,G,K,H,Y){let{x:z,y:L}=U.internals.positionAbsolute,M=U4(Q),R=cJ(Q,G),T=Q7(Q.extent)?J7(R,Q.extent,M):R,A=J7({x:z+T.x,y:L+T.y},K,M);if(Q.extent==="parent")A=oM(A,M,U);let O=KT(Q,H,Y),P=U.internals.z??0;return{x:A.x,y:A.y,z:P>=O?P+1:O}}function eq(Q,U,G,K=[0,0]){let H=[],Y=new Map;for(let z of Q){let L=U.get(z.parentId);if(!L)continue;let M=Y.get(z.parentId)?.expandedRect??C9(L),R=kK(M,z.rect);Y.set(z.parentId,{expandedRect:R,parent:L})}if(Y.size>0)Y.forEach(({expandedRect:z,parent:L},M)=>{let R=L.internals.positionAbsolute,T=U4(L),A=L.origin??K,O=z.x<R.x?Math.round(Math.abs(R.x-z.x)):0,P=z.y<R.y?Math.round(Math.abs(R.y-z.y)):0,N=Math.max(T.width,Math.round(z.width)),v=Math.max(T.height,Math.round(z.height)),f=(N-T.width)*A[0],w=(v-T.height)*A[1];if(O>0||P>0||f||w)H.push({id:M,type:"position",position:{x:L.position.x-O+f,y:L.position.y-P+w}}),G.get(M)?.forEach((D)=>{if(!Q.some((C)=>C.id===D.id))H.push({id:D.id,type:"position",position:{x:D.position.x+O,y:D.position.y+P}})});if(T.width<z.width||T.height<z.height||O||P)H.push({id:M,type:"dimensions",setAttributes:!0,dimensions:{width:N+(O?A[0]*O-f:0),height:v+(P?A[1]*P-w:0)}})});return H}function HT(Q,U,G,K,H,Y,z){let L=K?.querySelector(".xyflow__viewport"),M=!1;if(!L)return{changes:[],updatedInternals:M};let R=[],T=window.getComputedStyle(L),{m22:A}=new window.DOMMatrixReadOnly(T.transform),O=[];for(let P of Q.values()){let N=U.get(P.id);if(!N)continue;if(N.hidden){U.set(N.id,{...N,internals:{...N.internals,handleBounds:void 0}}),M=!0;continue}let v=rq(P.nodeElement),f=N.measured.width!==v.width||N.measured.height!==v.height;if(!!(v.width&&v.height&&(f||!N.internals.handleBounds||P.force))){let D=P.nodeElement.getBoundingClientRect(),C=Q7(N.extent)?N.extent:Y,{positionAbsolute:j}=N.internals;if(N.parentId&&N.extent==="parent"){let h=U.get(N.parentId);if(h)j=oM(j,v,h)}else if(C)j=J7(j,C,v);let y={...N,measured:v,internals:{...N.internals,positionAbsolute:j,handleBounds:{source:bM("source",P.nodeElement,D,A,N.id),target:bM("target",P.nodeElement,D,A,N.id)}}};if(U.set(N.id,y),N.parentId)rK(y,U,G,{nodeOrigin:H,zIndexMode:z});if(M=!0,f){if(R.push({id:N.id,type:"dimensions",dimensions:v}),N.expandParent&&N.parentId)O.push({id:N.id,parentId:N.parentId,rect:C9(y,H)})}}}if(O.length>0){let P=eq(O,U,G,H);R.push(...P)}return{changes:R,updatedInternals:M}}async function YT({delta:Q,panZoom:U,transform:G,translateExtent:K,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let z=await U.setViewportConstrained({x:G[0]+Q.x,y:G[1]+Q.y,zoom:G[2]},[[0,0],[H,Y]],K);return!!z&&(z.x!==G[0]||z.y!==G[1]||z.k!==G[2])}function cM(Q,U,G,K,H,Y){let z=H,L=K.get(z)||new Map;K.set(z,L.set(G,U)),z=`${H}-${Q}`;let M=K.get(z)||new Map;if(K.set(z,M.set(G,U)),Y){z=`${H}-${Q}-${Y}`;let R=K.get(z)||new Map;K.set(z,R.set(G,U))}}function aK(Q,U,G){Q.clear(),U.clear();for(let K of G){let{source:H,target:Y,sourceHandle:z=null,targetHandle:L=null}=K,M={edgeId:K.id,source:H,target:Y,sourceHandle:z,targetHandle:L},R=`${H}-${z}--${Y}-${L}`,T=`${Y}-${L}--${H}-${z}`;cM("source",M,T,Q,H,z),cM("target",M,R,Q,Y,L),U.set(K.id,K)}}function zT(Q,U){if(!Q.parentId)return!1;let G=U.get(Q.parentId);if(!G)return!1;if(G.selected)return!0;return zT(G,U)}function lM(Q,U,G){let K=Q;do{if(K?.matches?.(U))return!0;if(K===G)return!1;K=K?.parentElement}while(K);return!1}function Uf(Q,U,G,K){let H=new Map;for(let[Y,z]of Q)if((z.selected||z.id===K)&&(!z.parentId||!zT(z,Q))&&(z.draggable||U&&typeof z.draggable>"u")){let L=Q.get(Y);if(L)H.set(Y,{id:Y,position:L.position||{x:0,y:0},distance:{x:G.x-L.internals.positionAbsolute.x,y:G.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 IK({nodeId:Q,dragItems:U,nodeLookup:G,dragging:K=!0}){let H=[];for(let[z,L]of U){let M=G.get(z)?.internals.userNode;if(M)H.push({...M,position:L.position,dragging:K})}if(!Q)return[H[0],H];let Y=G.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:K},H]}function Gf({dragItems:Q,snapGrid:U,x:G,y:K}){let H=Q.values().next().value;if(!H)return null;let Y={x:G-H.distance.x,y:K-H.distance.y},z=S9(Y,U);return{x:z.x-Y.x,y:z.y-Y.y}}function WT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:G,onDrag:K,onDragStop:H}){let Y={x:null,y:null},z=0,L=new Map,M=!1,R={x:0,y:0},T=null,A=!1,O=null,P=!1,N=!1,v=null;function f({noDragClassName:D,handleSelector:C,domNode:j,isSelectable:y,nodeId:h,nodeClickDistance:b=0}){O=S2(j);function E({x:q1,y:Q1}){let{nodeLookup:m,nodeExtent:g,snapGrid:p,snapToGrid:c,nodeOrigin:l,onNodeDrag:a,onSelectionDrag:k,onError:s,updateNodePositions:$1}=U();Y={x:q1,y:Q1};let o=!1,B1=L.size>1,O1=B1&&g?wK(q7(L)):null,L1=B1&&c?Gf({dragItems:L,snapGrid:p,x:q1,y:Q1}):null;for(let[T1,G1]of L){if(!m.has(T1))continue;let R1={x:q1-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)}:S9(R1,p);let N1=null;if(B1&&g&&!G1.extent&&O1){let{positionAbsolute:j1}=G1.internals,d1=j1.x-O1.x+g[0][0],x1=j1.x+G1.measured.width-O1.x2+g[1][0],M1=j1.y-O1.y+g[0][1],g1=j1.y+G1.measured.height-O1.y2+g[1][1];N1=[[d1,M1],[x1,g1]]}let{position:H1,positionAbsolute:y1}=yK({nodeId:T1,nextPosition:R1,nodeLookup:m,nodeExtent:N1?N1:g,nodeOrigin:l,onError:s});o=o||G1.position.x!==H1.x||G1.position.y!==H1.y,G1.position=H1,G1.internals.positionAbsolute=y1}if(N=N||o,!o)return;if($1(L,!0),v&&(K||a||!h&&k)){let[T1,G1]=IK({nodeId:h,dragItems:L,nodeLookup:m});if(K?.(v,L,T1,G1),a?.(v,T1,G1),!h)k?.(v,G1)}}async function u(){if(!T)return;let{transform:q1,panBy:Q1,autoPanSpeed:m,autoPanOnNodeDrag:g}=U();if(!g){M=!1,cancelAnimationFrame(z);return}let[p,c]=lq(R,T,m);if(p!==0||c!==0){if(Y.x=(Y.x??0)-p/q1[2],Y.y=(Y.y??0)-c/q1[2],await Q1({x:p,y:c}))E(Y)}z=requestAnimationFrame(u)}function x(q1){let{nodeLookup:Q1,multiSelectionActive:m,nodesDraggable:g,transform:p,snapGrid:c,snapToGrid:l,selectNodesOnDrag:a,onNodeDragStart:k,onSelectionDragStart:s,unselectNodesAndEdges:$1}=U();if(A=!0,(!a||!y)&&!m&&h){if(!Q1.get(h)?.selected)$1()}if(y&&a&&h)Q?.(h);let o=pJ(q1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:l,containerBounds:T});if(Y=o,L=Uf(Q1,g,o,h),L.size>0&&(G||k||!h&&s)){let[B1,O1]=IK({nodeId:h,dragItems:L,nodeLookup:Q1});if(G?.(q1.sourceEvent,L,B1,O1),k?.(q1.sourceEvent,B1,O1),!h)s?.(q1.sourceEvent,O1)}}let n=PJ().clickDistance(b).on("start",(q1)=>{let{domNode:Q1,nodeDragThreshold:m,transform:g,snapGrid:p,snapToGrid:c}=U();if(T=Q1?.getBoundingClientRect()||null,P=!1,N=!1,v=q1.sourceEvent,m===0)x(q1);Y=pJ(q1.sourceEvent,{transform:g,snapGrid:p,snapToGrid:c,containerBounds:T}),R=q4(q1.sourceEvent,T)}).on("drag",(q1)=>{let{autoPanOnNodeDrag:Q1,transform:m,snapGrid:g,snapToGrid:p,nodeDragThreshold:c,nodeLookup:l}=U(),a=pJ(q1.sourceEvent,{transform:m,snapGrid:g,snapToGrid:p,containerBounds:T});if(v=q1.sourceEvent,q1.sourceEvent.type==="touchmove"&&q1.sourceEvent.touches.length>1||h&&!l.has(h))P=!0;if(P)return;if(!M&&Q1&&A)M=!0,u();if(!A){let k=q4(q1.sourceEvent,T),s=k.x-R.x,$1=k.y-R.y;if(Math.sqrt(s*s+$1*$1)>c)x(q1)}if((Y.x!==a.xSnapped||Y.y!==a.ySnapped)&&L&&A)R=q4(q1.sourceEvent,T),E(a)}).on("end",(q1)=>{if(!A||P){if(P&&L.size>0)U().updateNodePositions(L,!1);return}if(M=!1,A=!1,cancelAnimationFrame(z),L.size>0){let{nodeLookup:Q1,updateNodePositions:m,onNodeDragStop:g,onSelectionDragStop:p}=U();if(N)m(L,!1),N=!1;if(H||g||!h&&p){let[c,l]=IK({nodeId:h,dragItems:L,nodeLookup:Q1,dragging:!1});if(H?.(q1.sourceEvent,L,c,l),g?.(q1.sourceEvent,c,l),!h)p?.(q1.sourceEvent,l)}}}).filter((q1)=>{let Q1=q1.target;return!q1.button&&(!D||!lM(Q1,`.${D}`,j))&&(!C||lM(Q1,C,j))});O.call(n)}function w(){O?.on(".drag",null)}return{update:f,destroy:w}}function Zf(Q,U,G){let K=[],H={x:Q.x-G,y:Q.y-G,width:G*2,height:G*2};for(let Y of U.values())if(lJ(H,C9(Y))>0)K.push(Y);return K}var Ff=250;function Xf(Q,U,G,K){let H=[],Y=1/0,z=Zf(Q,G,U+Ff);for(let L of z){let M=[...L.internals.handleBounds?.source??[],...L.internals.handleBounds?.target??[]];for(let R of M){if(K.nodeId===R.nodeId&&K.type===R.type&&K.id===R.id)continue;let{x:T,y:A}=o6(L,R,R.position,!0),O=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(O>U)continue;if(O<Y)H=[{...R,x:T,y:A}],Y=O;else if(O===Y)H.push({...R,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 LT(Q,U,G,K,H,Y=!1){let z=K.get(Q);if(!z)return null;let L=H==="strict"?z.internals.handleBounds?.[U]:[...z.internals.handleBounds?.source??[],...z.internals.handleBounds?.target??[]],M=(G?L?.find((R)=>R.id===G):L?.[0])??null;return M&&Y?{...M,...o6(z,M,M.position,!0)}:M}function BT(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 Kf(Q,U){let G=null;if(U)G=!0;else if(Q&&!U)G=!1;return G}var AT=()=>!0;function Hf(Q,{connectionMode:U,connectionRadius:G,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:z,domNode:L,nodeLookup:M,lib:R,autoPanOnConnect:T,flowId:A,panBy:O,cancelConnection:P,onConnectStart:N,onConnect:v,onConnectEnd:f,isValidConnection:w=AT,onReconnectEnd:D,updateConnection:C,getTransform:j,getFromHandle:y,autoPanSpeed:h,dragThreshold:b=1,handleDomNode:E}){let u=mK(Q.target),x=0,n,{x:q1,y:Q1}=q4(Q),m=BT(Y,E),g=L?.getBoundingClientRect(),p=!1;if(!g||!m)return;let c=LT(H,m,K,M,U);if(!c)return;let l=q4(Q,g),a=!1,k=null,s=!1,$1=null;function o(){if(!T||!g)return;let[H1,y1]=lq(l,g,h);O({x:H1,y:y1}),x=requestAnimationFrame(o)}let B1={...c,nodeId:H,type:m,position:c.position},O1=M.get(H),T1={inProgress:!0,isValid:null,from:o6(O1,B1,E1.Left,!0),fromHandle:B1,fromPosition:B1.position,fromNode:O1,to:l,toHandle:null,toPosition:kM[B1.position],toNode:null,pointer:l};function G1(){p=!0,C(T1),N?.(Q,{nodeId:H,handleId:K,handleType:m})}if(b===0)G1();function R1(H1){if(!p){let{x:g1,y:b1}=q4(H1),p0=g1-q1,$0=b1-Q1;if(!(p0*p0+$0*$0>b*b))return;G1()}if(!y()||!B1){N1(H1);return}let y1=j();if(l=q4(H1,g),n=Xf(f9(l,y1,!1,[1,1]),G,M,B1),!a)o(),a=!0;let j1=MT(H1,{handle:n,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:z?"target":"source",isValidConnection:w,doc:u,lib:R,flowId:A,nodeLookup:M});$1=j1.handleDomNode,k=j1.connection,s=Kf(!!n,j1.isValid);let d1=M.get(H),x1=d1?o6(d1,B1,E1.Left,!0):T1.from,M1={...T1,from:x1,isValid:s,to:j1.toHandle&&s?$7({x:j1.toHandle.x,y:j1.toHandle.y},y1):l,toHandle:j1.toHandle,toPosition:s&&j1.toHandle?j1.toHandle.position:kM[B1.position],toNode:j1.toHandle?M.get(j1.toHandle.nodeId):null,pointer:l};C(M1),T1=M1}function N1(H1){if("touches"in H1&&H1.touches.length>0)return;if(p){if((n||$1)&&k&&s)v?.(k);let{inProgress:y1,...j1}=T1,d1={...j1,toPosition:T1.toHandle?T1.toPosition:null};if(f?.(H1,d1),Y)D?.(H1,d1)}P(),cancelAnimationFrame(x),a=!1,s=!1,k=null,$1=null,u.removeEventListener("mousemove",R1),u.removeEventListener("mouseup",N1),u.removeEventListener("touchmove",R1),u.removeEventListener("touchend",N1)}u.addEventListener("mousemove",R1),u.addEventListener("mouseup",N1),u.addEventListener("touchmove",R1),u.addEventListener("touchend",N1)}function MT(Q,{handle:U,connectionMode:G,fromNodeId:K,fromHandleId:H,fromType:Y,doc:z,lib:L,flowId:M,isValidConnection:R=AT,nodeLookup:T}){let A=Y==="target",O=U?z.querySelector(`.${L}-flow__handle[data-id="${M}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:P,y:N}=q4(Q),v=z.elementFromPoint(P,N),f=v?.classList.contains(`${L}-flow__handle`)?v:O,w={handleDomNode:f,isValid:!1,connection:null,toHandle:null};if(f){let D=BT(void 0,f),C=f.getAttribute("data-nodeid"),j=f.getAttribute("data-handleid"),y=f.classList.contains("connectable"),h=f.classList.contains("connectableend");if(!C||!D)return w;let b={source:A?C:K,sourceHandle:A?j:H,target:A?K:C,targetHandle:A?H:j};w.connection=b;let u=y&&h&&(G===t6.Strict?A&&D==="source"||!A&&D==="target":C!==K||j!==H);w.isValid=u&&R(b),w.toHandle=LT(C,D,j,T,G,!0)}return w}var _U={onPointerDown:Hf,isValid:MT};function TT({domNode:Q,panZoom:U,getTransform:G,getViewScale:K}){let H=S2(Q);function Y({translateExtent:L,width:M,height:R,zoomStep:T=1,pannable:A=!0,zoomable:O=!0,inversePan:P=!1}){let N=(C)=>{if(C.sourceEvent.type!=="wheel"||!U)return;let j=G(),y=C.sourceEvent.ctrlKey&&j9()?10:1,h=-C.sourceEvent.deltaY*(C.sourceEvent.deltaMode===1?0.05:C.sourceEvent.deltaMode?1:0.002)*T,b=j[2]*Math.pow(2,h*y);U.scaleTo(b)},v=[0,0],f=(C)=>{if(C.sourceEvent.type==="mousedown"||C.sourceEvent.type==="touchstart")v=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY]},w=(C)=>{let j=G();if(C.sourceEvent.type!=="mousemove"&&C.sourceEvent.type!=="touchmove"||!U)return;let y=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY],h=[y[0]-v[0],y[1]-v[1]];v=y;let b=K()*Math.max(j[2],Math.log(j[2]))*(P?-1:1),E={x:j[0]-h[0]*b,y:j[1]-h[1]*b},u=[[0,0],[M,R]];U.setViewportConstrained({x:E.x,y:E.y,zoom:j[2]},u,L)},D=gJ().on("start",f).on("zoom",A?w:null).on("zoom.wheel",O?N:null);H.call(D,{})}function z(){H.on("zoom",null)}return{update:Y,destroy:z,pointer:s2}}var JU=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),PK=({x:Q,y:U,zoom:G})=>n8.translate(Q,U).scale(G),s6=(Q,U)=>Q.target.closest(`.${U}`),RT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),Yf=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,NK=(Q,U=0,G=Yf,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(G).on("end",K):Q},OT=(Q)=>{let U=Q.ctrlKey&&j9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function zf({zoomPanValues:Q,noWheelClassName:U,d3Selection:G,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:z,onPanZoomStart:L,onPanZoom:M,onPanZoomEnd:R}){return(T)=>{if(s6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=G.property("__zoom").k||1;if(T.ctrlKey&&z){let f=s2(T),w=OT(T),D=A*Math.pow(2,w);K.scaleTo(G,D,f,T);return}let O=T.deltaMode===1?20:1,P=H===d3.Vertical?0:T.deltaX*O,N=H===d3.Horizontal?0:T.deltaY*O;if(!j9()&&T.shiftKey&&H!==d3.Vertical)P=T.deltaY*O,N=0;K.translateBy(G,-(P/A)*Y,-(N/A)*Y,{internal:!0});let v=JU(G.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,L?.(T,v);else M?.(T,v);Q.panScrollTimeout=setTimeout(()=>{R?.(T,v),Q.isPanScrolling=!1},150)}}function Wf({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:G}){return function(K,H){let Y=K.type==="wheel",z=!U&&Y&&!K.ctrlKey,L=s6(K,Q);if(K.ctrlKey&&Y&&L)K.preventDefault();if(z||L)return null;K.preventDefault(),G.call(this,K,H)}}function Lf({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:G}){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(G)G?.(K.sourceEvent,H)}}function Bf({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:G,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(G&&RT(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 Af({zoomPanValues:Q,panOnDrag:U,panOnScroll:G,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(z)=>{if(z.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&RT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&z.sourceEvent)Y(z.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let L=JU(z.transform);Q.prevViewport=L,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(z.sourceEvent,L)},G?150:0)}}}function Mf({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:G,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:z,userSelectionActive:L,noWheelClassName:M,noPanClassName:R,lib:T,connectionInProgress:A}){return(O)=>{let P=U||G,N=K&&O.ctrlKey,v=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(s6(O,`${T}-flow__node`)||s6(O,`${T}-flow__edge`)||s6(O,`${T}-flow__selection`)||s6(O,`${T}-flow__nodesselection`)))return!0;if(!H&&!P&&!Y&&!z&&!K)return!1;if(L)return!1;if(A&&!v)return!1;if(s6(O,M)&&v)return!1;if(s6(O,R)&&(!v||Y&&v&&!U))return!1;if(!K&&O.ctrlKey&&v)return!1;if(!K&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!P&&!Y&&!N&&v)return!1;if(!H&&(O.type==="mousedown"||O.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(O.button)&&O.type==="mousedown")return!1;let f=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||v||Q)&&f}}function IT({domNode:Q,minZoom:U,maxZoom:G,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:z,onPanZoomEnd:L,onDraggingChange:M}){let R={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 m=Q1[0];if(m)A=[[0,0],[m.contentRect.width,m.contentRect.height]]}):null)?.observe(Q);let P=gJ().extent(()=>A).scaleExtent([U,G]).translateExtent(K),N=S2(Q).call(P);j({x:H.x,y:H.y,zoom:N9(H.zoom,U,G)},[[0,0],[T.width,T.height]],K);let v=N.on("wheel.zoom"),f=N.on("dblclick.zoom");P.wheelDelta(OT);async function w(Q1,m){if(N)return new Promise((g)=>{P?.interpolate(m?.interpolate==="linear"?U3:t8).transform(NK(N,m?.duration,m?.ease,()=>g(!0)),Q1)});return!1}function D({noWheelClassName:Q1,noPanClassName:m,onPaneContextMenu:g,userSelectionActive:p,panOnScroll:c,panOnDrag:l,panOnScrollMode:a,panOnScrollSpeed:k,preventScrolling:s,zoomOnPinch:$1,zoomOnScroll:o,zoomOnDoubleClick:B1,panActivationKeyPressed:O1=!1,zoomActivationKeyPressed:L1,lib:T1,onTransformChange:G1,connectionInProgress:R1,paneClickDistance:N1,selectionOnDrag:H1}){if(p&&!R.isZoomingOrPanning)C();let y1=c&&!L1&&!p;P.clickDistance(H1?1/0:!Q4(N1)||N1<0?0:N1);let j1=y1?zf({zoomPanValues:R,noWheelClassName:Q1,d3Selection:N,d3Zoom:P,panOnScrollMode:a,panOnScrollSpeed:k,zoomOnPinch:$1,onPanZoomStart:z,onPanZoom:Y,onPanZoomEnd:L}):Wf({noWheelClassName:Q1,preventScrolling:s,d3ZoomHandler:v});N.on("wheel.zoom",j1,{passive:!1});let d1=Lf({zoomPanValues:R,onDraggingChange:M,onPanZoomStart:z});P.on("start",d1);let x1=Bf({zoomPanValues:R,panOnDrag:l,onPaneContextMenu:!!g,onPanZoom:Y,onTransformChange:G1});P.on("zoom",x1);let M1=Af({zoomPanValues:R,panOnDrag:l,panOnScroll:c,onPaneContextMenu:g,onPanZoomEnd:L,onDraggingChange:M});P.on("end",M1);let g1=Mf({panActivationKeyPressed:O1,zoomActivationKeyPressed:L1,panOnDrag:l,zoomOnScroll:o,panOnScroll:c,zoomOnDoubleClick:B1,zoomOnPinch:$1,userSelectionActive:p,noPanClassName:m,noWheelClassName:Q1,lib:T1,connectionInProgress:R1});if(P.filter(g1),B1)N.on("dblclick.zoom",f);else N.on("dblclick.zoom",null)}function C(){P.on("zoom",null)}async function j(Q1,m,g){let p=PK(Q1),c=P?.constrain()(p,m,g);if(c)await w(c);return c}async function y(Q1,m){let g=PK(Q1);return await w(g,m),g}function h(Q1){if(N){let m=PK(Q1),g=N.property("__zoom");if(g.k!==Q1.zoom||g.x!==Q1.x||g.y!==Q1.y)P?.transform(N,m,null,{sync:!0})}}function b(){let Q1=N?mJ(N.node()):{x:0,y:0,k:1};return{x:Q1.x,y:Q1.y,zoom:Q1.k}}async function E(Q1,m){if(N)return new Promise((g)=>{P?.interpolate(m?.interpolate==="linear"?U3:t8).scaleTo(NK(N,m?.duration,m?.ease,()=>g(!0)),Q1)});return!1}async function u(Q1,m){if(N)return new Promise((g)=>{P?.interpolate(m?.interpolate==="linear"?U3:t8).scaleBy(NK(N,m?.duration,m?.ease,()=>g(!0)),Q1)});return!1}function x(Q1){P?.scaleExtent(Q1)}function n(Q1){P?.translateExtent(Q1)}function q1(Q1){let m=!Q4(Q1)||Q1<0?0:Q1;P?.clickDistance(m)}return{update:D,destroy:C,setViewport:y,setViewportConstrained:j,getViewport:b,scaleTo:E,scaleBy:u,setScaleExtent:x,setTranslateExtent:n,syncViewport:h,setClickDistance:q1}}var i3;(function(Q){Q.Line="line",Q.Handle="handle"})(i3||(i3={}));var PT=["top-left","top-right","bottom-left","bottom-right"],NT=["top","right","bottom","left"];function Tf({width:Q,prevWidth:U,height:G,prevHeight:K,affectsX:H,affectsY:Y}){let z=Q-U,L=G-K,M=[z>0?1:z<0?-1:0,L>0?1:L<0?-1:0];if(z&&H)M[0]=M[0]*-1;if(L&&Y)M[1]=M[1]*-1;return M}function dM(Q){let U=Q.includes("right")||Q.includes("left"),G=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:G,affectsX:K,affectsY:H}}function r6(Q,U){return Math.max(0,U-Q)}function a6(Q,U){return Math.max(0,Q-U)}function gq(Q,U,G){return Math.max(0,U-Q,Q-G)}function iM(Q,U){return Q?!U:U}function Rf(Q,U,G,K,H,Y,z,L){let{affectsX:M,affectsY:R}=U,{isHorizontal:T,isVertical:A}=U,O=T&&A,{xSnapped:P,ySnapped:N}=G,{minWidth:v,maxWidth:f,minHeight:w,maxHeight:D}=K,{x:C,y:j,width:y,height:h,aspectRatio:b}=Q,E=Math.floor(T?P-Q.pointerX:0),u=Math.floor(A?N-Q.pointerY:0),x=y+(M?-E:E),n=h+(R?-u:u),q1=-Y[0]*y,Q1=-Y[1]*h,m=gq(x,v,f),g=gq(n,w,D);if(z){let l=0,a=0;if(M&&E<0)l=r6(C+E+q1,z[0][0]);else if(!M&&E>0)l=a6(C+x+q1,z[1][0]);if(R&&u<0)a=r6(j+u+Q1,z[0][1]);else if(!R&&u>0)a=a6(j+n+Q1,z[1][1]);m=Math.max(m,l),g=Math.max(g,a)}if(L){let l=0,a=0;if(M&&E>0)l=a6(C+E,L[0][0]);else if(!M&&E<0)l=r6(C+x,L[1][0]);if(R&&u>0)a=a6(j+u,L[0][1]);else if(!R&&u<0)a=r6(j+n,L[1][1]);m=Math.max(m,l),g=Math.max(g,a)}if(H){if(T){let l=gq(x/b,w,D)*b;if(m=Math.max(m,l),z){let a=0;if(!M&&!R||M&&!R&&O)a=a6(j+Q1+x/b,z[1][1])*b;else a=r6(j+Q1+(M?E:-E)/b,z[0][1])*b;m=Math.max(m,a)}if(L){let a=0;if(!M&&!R||M&&!R&&O)a=r6(j+x/b,L[1][1])*b;else a=a6(j+(M?E:-E)/b,L[0][1])*b;m=Math.max(m,a)}}if(A){let l=gq(n*b,v,f)/b;if(g=Math.max(g,l),z){let a=0;if(!M&&!R||R&&!M&&O)a=a6(C+n*b+q1,z[1][0])/b;else a=r6(C+(R?u:-u)*b+q1,z[0][0])/b;g=Math.max(g,a)}if(L){let a=0;if(!M&&!R||R&&!M&&O)a=r6(C+n*b,L[1][0])/b;else a=a6(C+(R?u:-u)*b,L[0][0])/b;g=Math.max(g,a)}}}if(u=u+(u<0?g:-g),E=E+(E<0?m:-m),H)if(O)if(x>n*b)u=(iM(M,R)?-E:E)/b;else E=(iM(M,R)?-u:u)*b;else if(T)u=E/b,R=M;else E=u*b,M=R;let p=M?C+E:C,c=R?j+u:j;return{width:y+(M?-E:E),height:h+(R?-u:u),x:Y[0]*E*(!M?1:-1)+p,y:Y[1]*u*(!R?1:-1)+c}}var wT={width:0,height:0,x:0,y:0},Of={...wT,pointerX:0,pointerY:0,aspectRatio:1};function If(Q,U,G){let K=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,z=Q.measured.height??0,L=G[0]*Y,M=G[1]*z;return[[K-L,H-M],[K+Y-L,H+z-M]]}function CT({domNode:Q,nodeId:U,getStoreItems:G,onChange:K,onEnd:H}){let Y=S2(Q),z={controlDirection:dM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function L({controlPosition:R,boundaries:T,keepAspectRatio:A,resizeDirection:O,onResizeStart:P,onResize:N,onResizeEnd:v,shouldResize:f}){let w={...wT},D={...Of};z={boundaries:T,resizeDirection:O,keepAspectRatio:A,controlDirection:dM(R)};let C=void 0,j=null,y=[],h=void 0,b=void 0,E=void 0,u=PJ().on("start",(x)=>{let{nodeLookup:n,transform:q1,snapGrid:Q1,snapToGrid:m,nodeOrigin:g,paneDomNode:p}=G();if(C=n.get(U),!C)return;j=p?.getBoundingClientRect()??null;let{xSnapped:c,ySnapped:l}=pJ(x.sourceEvent,{transform:q1,snapGrid:Q1,snapToGrid:m,containerBounds:j});if(w={width:C.measured.width??0,height:C.measured.height??0,x:C.position.x??0,y:C.position.y??0},D={...w,pointerX:c,pointerY:l,aspectRatio:w.width/w.height},h=void 0,b=Q7(C.extent)?C.extent:void 0,C.parentId&&(C.extent==="parent"||C.expandParent))h=n.get(C.parentId);if(h&&C.extent==="parent")b=[[0,0],[h.measured.width,h.measured.height]];y=[],E=void 0;for(let[a,k]of n)if(k.parentId===U){if(y.push({id:a,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let s=If(k,C,k.origin??g);if(E)E=[[Math.min(s[0][0],E[0][0]),Math.min(s[0][1],E[0][1])],[Math.max(s[1][0],E[1][0]),Math.max(s[1][1],E[1][1])]];else E=s}}P?.(x,{...w})}).on("drag",(x)=>{let{transform:n,snapGrid:q1,snapToGrid:Q1,nodeOrigin:m}=G(),g=pJ(x.sourceEvent,{transform:n,snapGrid:q1,snapToGrid:Q1,containerBounds:j}),p=[];if(!C)return;let{x:c,y:l,width:a,height:k}=w,s={},$1=C.origin??m,{width:o,height:B1,x:O1,y:L1}=Rf(D,z.controlDirection,g,z.boundaries,z.keepAspectRatio,$1,b,E),T1=o!==a,G1=B1!==k,R1=O1!==c&&T1,N1=L1!==l&&G1;if(!R1&&!N1&&!T1&&!G1)return;let H1={prevValues:{...w},startX:D.x,startY:D.y,childNodes:y.map((x1)=>({...x1,position:{...x1.position}}))};if(R1||N1||$1[0]===1||$1[1]===1){if(s.x=R1?O1:w.x,s.y=N1?L1:w.y,w.x=s.x,w.y=s.y,y.length>0){let x1=O1-c,M1=L1-l;for(let g1 of y)g1.position={x:g1.position.x-x1+$1[0]*(o-a),y:g1.position.y-M1+$1[1]*(B1-k)},p.push(g1)}}if(T1||G1)s.width=T1&&(!z.resizeDirection||z.resizeDirection==="horizontal")?o:w.width,s.height=G1&&(!z.resizeDirection||z.resizeDirection==="vertical")?B1:w.height,w.width=s.width,w.height=s.height;if(h&&C.expandParent){let x1=$1[0]*(s.width??0);if(s.x&&s.x<x1)w.x=x1,D.x=D.x-(s.x-x1);let M1=$1[1]*(s.height??0);if(s.y&&s.y<M1)w.y=M1,D.y=D.y-(s.y-M1)}let y1=Tf({width:w.width,prevWidth:a,height:w.height,prevHeight:k,affectsX:z.controlDirection.affectsX,affectsY:z.controlDirection.affectsY}),j1={...w,direction:y1};if(f?.(x,j1)===!1){w=H1.prevValues,D.x=H1.startX,D.y=H1.startY,y.forEach((x1,M1)=>{x1.position=H1.childNodes[M1].position});return}N?.(x,j1),K(s,p)}).on("end",(x)=>{v?.(x,{...w}),H?.({...w})});Y.call(u)}function M(){Y.on(".drag",null)}return{update:L,destroy:M}}var yT=n0(R4(),1),kT=n0(fT(),1);var jT=(Q)=>{let U,G=new Set,K=(T,A)=>{let O=typeof T==="function"?T(U):T;if(!Object.is(O,U)){let P=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),G.forEach((N)=>N(U,P))}},H=()=>U,M={setState:K,getState:H,getInitialState:()=>R,subscribe:(T)=>{return G.add(T),()=>G.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.");G.clear()}},R=U=Q(K,H,M);return M},vT=(Q)=>Q?jT(Q):jT;var{useDebugValue:wf}=yT.default,{useSyncExternalStoreWithSelector:Cf}=kT.default,Sf=(Q)=>Q;function sK(Q,U=Sf,G){let K=Cf(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,G);return wf(K),K}var VT=(Q,U)=>{let G=vT(Q),K=(H,Y=U)=>sK(G,H,Y);return Object.assign(K,G),K},DT=(Q,U)=>Q?VT(Q,U):VT;function r0(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 G=Object.keys(Q);if(G.length!==Object.keys(U).length)return!1;for(let K of G)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var FR=n0(rF(),1),GU=W1.createContext(null),ff=GU.Provider,XR=X5.error001("react");function L0(Q,U){let G=W1.useContext(GU);if(G===null)throw Error(XR);return sK(G,Q,U)}function a0(){let Q=W1.useContext(GU);if(Q===null)throw Error(XR);return W1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var uT={display:"none"},jf={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},KR="react-flow__node-desc",HR="react-flow__edge-desc",vf="react-flow__aria-live",Vf=(Q)=>Q.ariaLiveMessage,yf=(Q)=>Q.ariaLabelConfig;function kf({rfId:Q}){let U=L0(Vf);return K1.jsx("div",{id:`${vf}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:jf,children:U})}function Df({rfId:Q,disableKeyboardA11y:U}){let G=L0(yf);return K1.jsxs(K1.Fragment,{children:[K1.jsx("div",{id:`${KR}-${Q}`,style:uT,children:U?G["node.a11yDescription.default"]:G["node.a11yDescription.keyboardDisabled"]}),K1.jsx("div",{id:`${HR}-${Q}`,style:uT,children:G["edge.a11yDescription.default"]}),!U&&K1.jsx(kf,{rfId:Q})]})}var F3=W1.forwardRef(({position:Q="top-left",children:U,className:G,style:K,...H},Y)=>{let z=`${Q}`.split("-");return K1.jsx("div",{className:Q2(["react-flow__panel",G,...z]),style:K,ref:Y,...H,children:U})});F3.displayName="Panel";var bT="https://reactflow.dev/attribution";function uf({proOptions:Q,position:U="bottom-right"}){if(W1.useEffect(()=>{JT("react")},[]),Q?.hideAttribution)return null;return K1.jsx(F3,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${bT}`,children:K1.jsx("a",{href:bT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var bf=(Q)=>{let U=[],G=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)G.push(K);return{selectedNodes:U,selectedEdges:G}},$U=(Q)=>Q.id;function Ef(Q,U){return r0(Q.selectedNodes.map($U),U.selectedNodes.map($U))&&r0(Q.selectedEdges.map($U),U.selectedEdges.map($U))}function hf({onSelectionChange:Q}){let U=a0(),{selectedNodes:G,selectedEdges:K}=L0(bf,Ef);return W1.useEffect(()=>{let H={nodes:G,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[G,K,Q]),null}var xf=(Q)=>!!Q.onSelectionChangeHandlers;function mf({onSelectionChange:Q}){let U=L0(xf);if(Q||U)return K1.jsx(hf,{onSelectionChange:Q});return null}var YR=[0,0],gf={x:0,y:0,zoom:1},pf=["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"],ET=[...pf,"rfId"],cf=(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}),hT={translateExtent:w9,nodeOrigin:YR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function lf(Q){let{setNodes:U,setEdges:G,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:z,reset:L,setDefaultNodesAndEdges:M}=L0(cf,r0),R=a0();W1.useEffect(()=>{return M(Q.defaultNodes,Q.defaultEdges),()=>{T.current=hT,L()}},[]);let T=W1.useRef(hT);return W1.useEffect(()=>{for(let A of ET){let O=Q[A],P=T.current[A];if(O===P)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")G(O);else if(A==="minZoom")K(O);else if(A==="maxZoom")H(O);else if(A==="translateExtent")Y(O);else if(A==="nodeExtent")z(O);else if(A==="ariaLabelConfig")R.setState({ariaLabelConfig:_T(O)});else if(A==="fitView")R.setState({fitViewQueued:O});else if(A==="fitViewOptions")R.setState({fitViewOptions:O});else R.setState({[A]:O})}T.current=Q},ET.map((A)=>Q[A])),null}function xT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function df(Q){let[U,G]=W1.useState(Q==="system"?null:Q);return W1.useEffect(()=>{if(Q!=="system"){G(Q);return}let K=xT(),H=()=>G(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:xT()?.matches?"dark":"light"}var mT=typeof document<"u"?document:null;function rJ(Q=null,U={target:mT,actInsideInputWithModifier:!0}){let[G,K]=W1.useState(!1),H=W1.useRef(!1),Y=W1.useRef(new Set([])),[z,L]=W1.useMemo(()=>{if(Q!==null){let R=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
242
242
  `).replace(`
243
243
 
244
244
  `,`
245
245
  +`).split(`
246
- `)),T=R.reduce((A,O)=>A.concat(...O),[]);return[R,T]}return[[],[]]},[Q]);return B1.useEffect(()=>{let M=U?.target??mT,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(P)=>{if(H.current=P.ctrlKey||P.metaKey||P.shiftKey||P.altKey,(!H.current||H.current&&!R)&&gK(P))return!1;let v=pT(P.code,L);if(Y.current.add(P[v]),gT(z,Y.current,!1)){let f=P.composedPath?.()?.[0]||P.target,w=f?.nodeName==="BUTTON"||f?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!w))P.preventDefault();K(!0)}},A=(P)=>{let N=pT(P.code,L);if(gT(z,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(P[N]);if(P.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),K(!1)};return M?.addEventListener("keydown",T),M?.addEventListener("keyup",A),window.addEventListener("blur",O),window.addEventListener("contextmenu",O),()=>{M?.removeEventListener("keydown",T),M?.removeEventListener("keyup",A),window.removeEventListener("blur",O),window.removeEventListener("contextmenu",O)}}},[Q,K]),G}function gT(Q,U,G){return Q.filter((K)=>G||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function pT(Q,U){return U.includes(Q)?"code":"key"}var rf=()=>{let Q=a0();return B1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:G}=Q.getState();return G?G.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:G}=Q.getState();return G?G.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,G)=>{let{panZoom:K}=Q.getState();return K?K.scaleTo(U,G):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,G)=>{let{transform:[K,H,Y],panZoom:z}=Q.getState();if(!z)return!1;return await z.setViewport({x:U.x??K,y:U.y??H,zoom:U.zoom??Y},G),!0},getViewport:()=>{let[U,G,K]=Q.getState().transform;return{x:U,y:G,zoom:K}},setCenter:async(U,G,K)=>{return Q.getState().setCenter(U,G,K)},fitBounds:async(U,G)=>{let{width:K,height:H,minZoom:Y,maxZoom:z,panZoom:L}=Q.getState(),M=lJ(U,K,H,Y,z,G?.padding??0.1);if(!L)return!1;return await L.setViewport(M,{duration:G?.duration,ease:G?.ease,interpolate:G?.interpolate}),!0},screenToFlowPosition:(U,G={})=>{let{transform:K,snapGrid:H,snapToGrid:Y,domNode:z}=Q.getState();if(!z)return U;let{x:L,y:M}=z.getBoundingClientRect(),R={x:U.x-L,y:U.y-M},T=G.snapGrid??H,A=G.snapToGrid??Y;return S9(R,K,A,T)},flowToScreenPosition:(U)=>{let{transform:G,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),z=J7(U,G);return{x:z.x+H,y:z.y+Y}}}},[])};function zR(Q,U){let G=[],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 z=K.get(Y.id);if(z)z.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let z=K.get(Y.id);if(!z){G.push(Y);continue}if(z[0].type==="remove")continue;if(z[0].type==="replace"){G.push({...z[0].item});continue}let L={...Y};for(let M of z)af(M,L);G.push(L)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)G.splice(Y.index,0,{...Y.item});else G.push({...Y.item})});return G}function af(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 WR(Q,U){return zR(Q,U)}function sf(Q,U){return zR(Q,U)}function q7(Q,U){return{id:Q,type:"select",selected:U}}function j9(Q,U=new Set,G=!1){let K=[];for(let[H,Y]of Q){let z=U.has(H);if(!(Y.selected===void 0&&!z)&&Y.selected!==z){if(G)Y.selected=z;K.push(q7(Y.id,z))}}return K}function cT({items:Q=[],lookup:U}){let G=[],K=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let z=U.get(Y.id),L=z?.internals?.userNode??z;if(L!==void 0&&L!==Y)G.push({id:Y.id,item:Y,type:"replace"});if(L===void 0)G.push({item:Y,type:"add",index:H})}for(let[H]of U)if(K.get(H)===void 0)G.push({id:H,type:"remove"});return G}function lT(Q){return{id:Q.id,type:"remove"}}var tf=uK("React Flow","https://reactflow.dev/");function of(Q,U,G={}){return qT(Q,U,{...G,onError:G.onError??tf})}var dT=(Q)=>rM(Q),nf=(Q)=>jK(Q);function LR(Q){return B1.forwardRef(Q)}var BR=typeof window<"u"?B1.useLayoutEffect:B1.useEffect;function iT(Q){let[U,G]=B1.useState(BigInt(0)),[K]=B1.useState(()=>ef(()=>G((H)=>H+BigInt(1))));return BR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function ef(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(G)=>{U.push(G),Q()}}}var AR=B1.createContext(null);function _j({children:Q}){let U=a0(),G=B1.useCallback((L)=>{let{nodes:M=[],setNodes:R,hasDefaultNodes:T,onNodesChange:A,nodeLookup:O,fitViewQueued:P,onNodesChangeMiddlewareMap:N}=U.getState(),v=M;for(let w of L)v=typeof w==="function"?w(v):w;let f=cT({items:v,lookup:O});for(let w of N.values())f=w(f);if(T)R(v);if(f.length>0)A?.(f);else if(P)window.requestAnimationFrame(()=>{let{fitViewQueued:w,nodes:u,setNodes:C}=U.getState();if(w)C(u)})},[]),K=iT(G),H=B1.useCallback((L)=>{let{edges:M=[],setEdges:R,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:O}=U.getState(),P=M;for(let N of L)P=typeof N==="function"?N(P):N;if(T)R(P);else if(A)A(cT({items:P,lookup:O}))},[]),Y=iT(H),z=B1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return Y1.jsx(AR.Provider,{value:z,children:Q})}function Jj(){let Q=B1.useContext(AR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var $j=(Q)=>!!Q.panZoom;function rJ(){let Q=rf(),U=a0(),G=Jj(),K=B0($j),H=B1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),z=(A)=>{G.nodeQueue.push(A)},L=(A)=>{G.edgeQueue.push(A)},M=(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState(),N=dT(A)?A:O.get(A.id),v=N.parentId?EK(N.position,N.measured,N.parentId,O,P):N.position,f={...N,position:v,width:N.measured?.width??N.width,height:N.measured?.height??N.height};return w9(f)},R=(A,O,P={replace:!1})=>{z((N)=>N.map((v)=>{if(v.id===A){let f=typeof O==="function"?O(v):O;return P.replace&&dT(f)?f:{...v,...f}}return v}))},T=(A,O,P={replace:!1})=>{L((N)=>N.map((v)=>{if(v.id===A){let f=typeof O==="function"?O(v):O;return P.replace&&nf(f)?f:{...v,...f}}return v}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((O)=>({...O}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:z,setEdges:L,addNodes:(A)=>{let O=Array.isArray(A)?A:[A];G.nodeQueue.push((P)=>[...P,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];G.edgeQueue.push((P)=>[...P,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:P}=U.getState(),[N,v,f]=P;return{nodes:A.map((w)=>({...w})),edges:O.map((w)=>({...w})),viewport:{x:N,y:v,zoom:f}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:P,edges:N,onNodesDelete:v,onEdgesDelete:f,triggerNodeChanges:w,triggerEdgeChanges:u,onDelete:C,onBeforeDelete:j}=U.getState(),{nodes:y,edges:h}=await tM({nodesToRemove:A,edgesToRemove:O,nodes:P,edges:N,onBeforeDelete:j}),b=h.length>0,E=y.length>0;if(b){let D=h.map(lT);f?.(h),u(D)}if(E){let D=y.map(lT);v?.(y),w(D)}if(E||b)C?.({nodes:y,edges:h});return{deletedNodes:y,deletedEdges:h}},getIntersectingNodes:(A,O=!0,P)=>{let N=DK(A),v=N?A:M(A),f=P!==void 0;if(!v)return[];return(P||U.getState().nodes).filter((w)=>{let u=U.getState().nodeLookup.get(w.id);if(u&&!N&&(w.id===A.id||!u.internals.positionAbsolute))return!1;let C=w9(f?w:u),j=cJ(C,v);return O&&j>0||j>=C.width*C.height||j>=v.width*v.height})},isNodeIntersecting:(A,O,P=!0)=>{let v=DK(A)?A:M(A);if(!v)return!1;let f=cJ(v,O);return P&&f>0||f>=O.width*O.height||f>=v.width*v.height},updateNode:R,updateNodeData:(A,O,P={replace:!1})=>{R(A,(N)=>{let v=typeof O==="function"?O(N):O;return P.replace?{...N,data:v}:{...N,data:{...N.data,...v}}},P)},updateEdge:T,updateEdgeData:(A,O,P={replace:!1})=>{T(A,(N)=>{let v=typeof O==="function"?O(N):O;return P.replace?{...N,data:v}:{...N,data:{...N.data,...v}}},P)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState();return VK(A,{nodeLookup:O,nodeOrigin:P})},getHandleConnections:({type:A,id:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??eM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),G.nodeQueue.push((P)=>[...P]),O.promise}}},[]);return B1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var rT=(Q)=>Q.selected,Qj=typeof window<"u"?window:void 0;function qj({deleteKeyCode:Q,multiSelectionKeyCode:U}){let G=a0(),{deleteElements:K}=rJ(),H=iJ(Q,{actInsideInputWithModifier:!1}),Y=iJ(U,{target:Qj});B1.useEffect(()=>{if(H){let{edges:z,nodes:L}=G.getState();K({nodes:L.filter(rT),edges:z.filter(rT)}),G.setState({nodesSelectionActive:!1})}},[H]),B1.useEffect(()=>{G.setState({multiSelectionActive:Y})},[Y])}function Uj(Q){let U=a0();B1.useEffect(()=>{let G=()=>{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){G(),window.addEventListener("resize",G);let K=new ResizeObserver(()=>G());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",G),K&&Q.current)K.unobserve(Q.current)}}},[])}var ZU={position:"absolute",width:"100%",height:"100%",top:0,left:0},Gj=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function Zj({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:G=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:z=g3.Free,zoomOnDoubleClick:L=!0,panOnDrag:M=!0,defaultViewport:R,translateExtent:T,minZoom:A,maxZoom:O,zoomActivationKeyCode:P,preventScrolling:N=!0,children:v,noWheelClassName:f,noPanClassName:w,onViewportChange:u,isControlledViewport:C,paneClickDistance:j,selectionOnDrag:y}){let h=a0(),b=B1.useRef(null),{userSelectionActive:E,lib:D,connectionInProgress:g}=B0(Gj,r0),e=iJ(P),q1=B1.useRef();Uj(b);let Q1=B1.useCallback((x)=>{if(u?.({x:x[0],y:x[1],zoom:x[2]}),!C)h.setState({transform:x})},[u,C]);return B1.useEffect(()=>{if(b.current){q1.current=IT({domNode:b.current,minZoom:A,maxZoom:O,translateExtent:T,viewport:R,onDraggingChange:(l)=>h.setState((p)=>p.paneDragging===l?p:{paneDragging:l}),onPanZoomStart:(l,p)=>{let{onViewportChangeStart:o,onMoveStart:k}=h.getState();k?.(l,p),o?.(p)},onPanZoom:(l,p)=>{let{onViewportChange:o,onMove:k}=h.getState();k?.(l,p),o?.(p)},onPanZoomEnd:(l,p)=>{let{onViewportChangeEnd:o,onMoveEnd:k}=h.getState();k?.(l,p),o?.(p)}});let{x,y:m,zoom:c}=q1.current.getViewport();return h.setState({panZoom:q1.current,transform:[x,m,c],domNode:b.current.closest(".react-flow")}),()=>{q1.current?.destroy()}}},[]),B1.useEffect(()=>{q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:G,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:z,zoomOnDoubleClick:L,panOnDrag:M,zoomActivationKeyPressed:e,preventScrolling:N,noPanClassName:w,userSelectionActive:E,noWheelClassName:f,lib:D,onTransformChange:Q1,connectionInProgress:g,selectionOnDrag:y,paneClickDistance:j})},[Q,U,G,K,H,Y,z,L,M,e,N,w,E,f,D,Q1,g,y,j]),Y1.jsx("div",{className:"react-flow__renderer",ref:b,style:ZU,children:v})}var Fj=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function Xj(){let{userSelectionActive:Q,userSelectionRect:U}=B0(Fj,r0);if(!(Q&&U))return null;return Y1.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:U.width,height:U.height,transform:`translate(${U.x}px, ${U.y}px)`}})}var tK=(Q,U)=>{return(G)=>{if(G.target!==U.current)return;Q?.(G)}},Kj=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Hj({isSelecting:Q,selectionKeyPressed:U,selectionMode:G=e8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:z,onSelectionStart:L,onSelectionEnd:M,onPaneClick:R,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:P,onPaneMouseLeave:N,children:v}){let f=B1.useRef(0),w=a0(),{userSelectionActive:u,elementsSelectable:C,dragging:j,panBy:y,autoPanSpeed:h}=B0(Kj,r0),b=C&&(Q||u),E=B1.useRef(null),D=B1.useRef(),g=B1.useRef(new Set),e=B1.useRef(new Set),q1=B1.useRef(!1),Q1=B1.useRef(!1),x=B1.useRef({x:0,y:0}),m=B1.useRef(!1),c=(G1)=>{if(Q1.current||q1.current||w.getState().connection.inProgress){Q1.current=!1,q1.current=!1;return}R?.(G1),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},l=(G1)=>{if(Array.isArray(K)&&K?.includes(2)){G1.preventDefault();return}T?.(G1)},p=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:C1}=w.getState();if(D.current=R1?.getBoundingClientRect(),!D.current)return;let L1=G1.target===E.current;if(!L1&&!!G1.target.closest(".nokey")||!Q||!(z&&L1||U)||G1.button!==0||!G1.isPrimary)return;G1.target?.setPointerCapture?.(G1.pointerId),Q1.current=!1;let{x:l1,y:h1}=$4(G1.nativeEvent,D.current),A1=S9({x:l1,y:h1},C1);if(w.setState({userSelectionRect:{width:0,height:0,startX:A1.x,startY:A1.y,x:l1,y:h1}}),!L1)G1.stopPropagation(),G1.preventDefault()};function s(G1,R1){let{userSelectionRect:C1}=w.getState();if(!C1)return;let{transform:L1,nodeLookup:S1,edgeLookup:b1,connectionLookup:l1,triggerNodeChanges:h1,triggerEdgeChanges:A1,defaultEdgeOptions:_0}=w.getState(),u1={x:C1.startX,y:C1.startY},{x:E0,y:J0}=J7(u1,L1),O2={startX:u1.x,startY:u1.y,x:G1<E0?G1:E0,y:R1<J0?R1:J0,width:Math.abs(G1-E0),height:Math.abs(R1-J0)},K2=g.current,y2=e.current;g.current=new Set(cq(S1,O2,L1,G===e8.Partial,!0).map((Z2)=>Z2.id)),e.current=new Set;let I2=_0?.selectable??!0;for(let Z2 of g.current){let P2=l1.get(Z2);if(!P2)continue;for(let{edgeId:N2}of P2.values()){let w2=b1.get(N2);if(w2&&(w2.selectable??I2))e.current.add(N2)}}if(!hK(K2,g.current)){let Z2=j9(S1,g.current,!0);h1(Z2)}if(!hK(y2,e.current)){let Z2=j9(b1,e.current);A1(Z2)}w.setState({userSelectionRect:O2,userSelectionActive:!0,nodesSelectionActive:!1})}function $1(){if(!H||!D.current)return;let[G1,R1]=lq(x.current,D.current,h);y({x:G1,y:R1}).then((C1)=>{if(!Q1.current||!C1){f.current=requestAnimationFrame($1);return}let{x:L1,y:S1}=x.current;s(L1,S1),f.current=requestAnimationFrame($1)})}let a=()=>{cancelAnimationFrame(f.current),f.current=0,m.current=!1};B1.useEffect(()=>{return()=>a()},[]);let H1=(G1)=>{let{userSelectionRect:R1,transform:C1,resetSelectedElements:L1}=w.getState();if(!D.current||!R1)return;let{x:S1,y:b1}=$4(G1.nativeEvent,D.current);x.current={x:S1,y:b1};let l1=J7({x:R1.startX,y:R1.startY},C1);if(!Q1.current){let h1=U?0:Y;if(Math.hypot(S1-l1.x,b1-l1.y)<=h1)return;L1(),L?.(G1)}if(Q1.current=!0,!m.current)$1(),m.current=!0;s(S1,b1)},P1=(G1)=>{if(!b){if(G1.target===E.current&&w.getState().connection.inProgress)q1.current=!0;return}if(G1.button!==0)return;if(G1.target?.releasePointerCapture?.(G1.pointerId),!u&&G1.target===E.current&&w.getState().userSelectionRect)c?.(G1);if(w.setState({userSelectionActive:!1,userSelectionRect:null}),Q1.current)M?.(G1),w.setState({nodesSelectionActive:g.current.size>0});a()},z1=(G1)=>{G1.target?.releasePointerCapture?.(G1.pointerId),a()},T1=K===!0||Array.isArray(K)&&K.includes(0);return Y1.jsxs("div",{className:$2(["react-flow__pane",{draggable:T1,dragging:j,selection:Q}]),onClick:b?void 0:tK(c,E),onContextMenu:tK(l,E),onWheel:tK(p,E),onPointerEnter:b?void 0:O,onPointerMove:b?H1:P,onPointerUp:P1,onPointerCancel:b?z1:void 0,onPointerDownCapture:b?k:void 0,onClickCapture:b?o:void 0,onPointerLeave:N,ref:E,style:ZU,children:[v,Y1.jsx(Xj,{})]})}function nK({id:Q,store:U,unselect:G=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:z,nodeLookup:L,onError:M}=U.getState(),R=L.get(Q);if(!R){M?.("012",X5.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(G||R.selected&&z)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function MR({nodeRef:Q,disabled:U=!1,noDragClassName:G,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:z}){let L=a0(),[M,R]=B1.useState(!1),T=B1.useRef();return B1.useEffect(()=>{if(U)return;return T.current=WT({getStoreItems:()=>L.getState(),onNodeMouseDown:(A)=>{nK({id:A,store:L,nodeRef:Q})},onDragStart:()=>{R(!0)},onDragStop:()=>{R(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,L,Q]),B1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:G,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:z})},[G,K,U,Y,Q,H,z]),M}var Yj=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function TR(){let Q=a0();return B1.useCallback((G)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:z,onError:L,updateNodePositions:M,nodeLookup:R,nodeOrigin:T}=Q.getState(),A=new Map,O=Yj(z),P=H?Y[0]:5,N=H?Y[1]:5,v=G.direction.x*P*G.factor,f=G.direction.y*N*G.factor;for(let[,w]of R){if(!O(w))continue;let u={x:w.internals.positionAbsolute.x+v,y:w.internals.positionAbsolute.y+f};if(H)u=C9(u,Y);let{position:C,positionAbsolute:j}=yK({nodeId:w.id,nextPosition:u,nodeLookup:R,nodeExtent:K,nodeOrigin:T,onError:L});w.position=C,w.internals.positionAbsolute=j,A.set(w.id,w)}M(A)},[])}var eK=B1.createContext(null),zj=eK.Provider;eK.Consumer;var _H=()=>{return B1.useContext(eK)},Wj=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),RR=B1.createContext(null);function Lj({children:Q}){let U=B0(Wj,r0);return Y1.jsx(RR.Provider,{value:U,children:Q})}function Bj(){let Q=B1.useContext(RR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Aj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Mj=(Q,U,G)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:z}=K,{fromHandle:L,toHandle:M,isValid:R}=z;if(!L&&!H)return Aj;let T=M?.nodeId===Q&&M?.id===U&&M?.type===G;return{connectingFrom:L?.nodeId===Q&&L?.id===U&&L?.type===G,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===G,isPossibleEndHandle:Y===a6.Strict?L?.type!==G:Q!==L?.nodeId||U!==L?.id,connectionInProcess:!!L,clickConnectionInProcess:!!H,valid:T&&R}};function Tj({type:Q="source",position:U=E1.Top,isValidConnection:G,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:z,onConnect:L,children:M,className:R,onMouseDown:T,onTouchStart:A,...O},P){let N=z||null,v=Q==="target",f=a0(),w=_H(),{connectOnClick:u,noPanClassName:C,rfId:j}=Bj(),{connectingFrom:y,connectingTo:h,clickConnecting:b,isPossibleEndHandle:E,connectionInProcess:D,clickConnectionInProcess:g,valid:e}=B0(Mj(w,N,Q),r0);if(!w)f.getState().onError?.("010",X5.error010());let q1=(m)=>{let{defaultEdgeOptions:c,onConnect:l,hasDefaultEdges:p}=f.getState(),o={...c,...m};if(p){let{edges:k,setEdges:s,onError:$1}=f.getState();s(of(o,k,{onError:$1}))}l?.(o),L?.(o)},Q1=(m)=>{if(!w)return;let c=pK(m.nativeEvent);if(H&&(c&&m.button===0||!c)){let l=f.getState();_U.onPointerDown(m.nativeEvent,{handleDomNode:m.currentTarget,autoPanOnConnect:l.autoPanOnConnect,connectionMode:l.connectionMode,connectionRadius:l.connectionRadius,domNode:l.domNode,nodeLookup:l.nodeLookup,lib:l.lib,isTarget:v,handleId:N,nodeId:w,flowId:l.rfId,panBy:l.panBy,cancelConnection:l.cancelConnection,onConnectStart:l.onConnectStart,onConnectEnd:(...p)=>f.getState().onConnectEnd?.(...p),updateConnection:l.updateConnection,onConnect:q1,isValidConnection:G||((...p)=>f.getState().isValidConnection?.(...p)??!0),getTransform:()=>f.getState().transform,getFromHandle:()=>f.getState().connection.fromHandle,autoPanSpeed:l.autoPanSpeed,dragThreshold:l.connectionDragThreshold})}if(c)T?.(m);else A?.(m)},x=(m)=>{let{onClickConnectStart:c,onClickConnectEnd:l,connectionClickStartHandle:p,connectionMode:o,isValidConnection:k,lib:s,rfId:$1,nodeLookup:a,connection:H1}=f.getState();if(!w||!p&&!H)return;if(!p){c?.(m.nativeEvent,{nodeId:w,handleId:N,handleType:Q}),f.setState({connectionClickStartHandle:{nodeId:w,type:Q,id:N}});return}let P1=mK(m.target),z1=G||k,{connection:T1,isValid:G1}=_U.isValid(m.nativeEvent,{handle:{nodeId:w,id:N,type:Q},connectionMode:o,fromNodeId:p.nodeId,fromHandleId:p.id||null,fromType:p.type,isValidConnection:z1,flowId:$1,doc:P1,lib:s,nodeLookup:a});if(G1&&T1)q1(T1);let R1=structuredClone(H1);delete R1.inProgress,R1.toPosition=R1.toHandle?R1.toHandle.position:null,l?.(m,R1),f.setState({connectionClickStartHandle:null})};return Y1.jsx("div",{"data-handleid":N,"data-nodeid":w,"data-handlepos":U,"data-id":`${j}-${w}-${N}-${Q}`,className:$2(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",C,R,{source:!v,target:v,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:b,connectingfrom:y,connectingto:h,valid:e,connectionindicator:K&&(!D||E)&&(D||g?Y:H)}]),onMouseDown:Q1,onTouchStart:Q1,onClick:u?x:void 0,ref:P,...O,children:M})}var qU=B1.memo(LR(Tj));function Rj({data:Q,isConnectable:U,sourcePosition:G=E1.Bottom}){return Y1.jsxs(Y1.Fragment,{children:[Q?.label,Y1.jsx(qU,{type:"source",position:G,isConnectable:U})]})}function Oj({data:Q,isConnectable:U,targetPosition:G=E1.Top,sourcePosition:K=E1.Bottom}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(qU,{type:"target",position:G,isConnectable:U}),Q?.label,Y1.jsx(qU,{type:"source",position:K,isConnectable:U})]})}function Ij(){return null}function Pj({data:Q,isConnectable:U,targetPosition:G=E1.Top}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(qU,{type:"target",position:G,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}},aT={input:Rj,default:Oj,output:Pj,group:Ij};function Nj(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:G,x:K,y:H}=Q7(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:J4(U)?U:null,height:J4(G)?G:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${H}px)`}};function Cj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:G}){let K=a0(),{width:H,height:Y,transformString:z,userSelectionActive:L}=B0(wj,r0),M=TR(),R=B1.useRef(null);B1.useEffect(()=>{if(!G)R.current?.focus({preventScroll:!0})},[G]);let T=!L&&H!==null&&Y!==null;if(MR({nodeRef:R,disabled:!T}),!T)return null;let A=Q?(P)=>{let N=K.getState().nodes.filter((v)=>v.selected);Q(P,N)}:void 0,O=(P)=>{if(Object.prototype.hasOwnProperty.call(UU,P.key))P.preventDefault(),M({direction:UU[P.key],factor:P.shiftKey?4:1})};return Y1.jsx("div",{className:$2(["react-flow__nodesselection","react-flow__container",U]),style:{transform:z},children:Y1.jsx("div",{ref:R,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:G?void 0:-1,onKeyDown:G?void 0:O,style:{width:H,height:Y}})})}var sT=typeof window<"u"?window:void 0,Sj=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function OR({children:Q,onPaneClick:U,onPaneMouseEnter:G,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:z,paneClickDistance:L,deleteKeyCode:M,selectionKeyCode:R,selectionOnDrag:T,selectionMode:A,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:N,panActivationKeyCode:v,zoomActivationKeyCode:f,elementsSelectable:w,zoomOnScroll:u,zoomOnPinch:C,panOnScroll:j,panOnScrollSpeed:y,panOnScrollMode:h,zoomOnDoubleClick:b,panOnDrag:E,autoPanOnSelection:D,defaultViewport:g,translateExtent:e,minZoom:q1,maxZoom:Q1,preventScrolling:x,onSelectionContextMenu:m,noWheelClassName:c,noPanClassName:l,disableKeyboardA11y:p,onViewportChange:o,isControlledViewport:k}){let{nodesSelectionActive:s,userSelectionActive:$1}=B0(Sj,r0),a=iJ(R,{target:sT}),H1=iJ(v,{target:sT}),P1=H1||E,z1=H1||j,T1=T&&P1!==!0,G1=a||$1||T1;return qj({deleteKeyCode:M,multiSelectionKeyCode:N}),Y1.jsx(Zj,{onPaneContextMenu:Y,elementsSelectable:w,zoomOnScroll:u,zoomOnPinch:C,panOnScroll:z1,panActivationKeyPressed:H1,panOnScrollSpeed:y,panOnScrollMode:h,zoomOnDoubleClick:b,panOnDrag:!a&&P1,defaultViewport:g,translateExtent:e,minZoom:q1,maxZoom:Q1,zoomActivationKeyCode:f,preventScrolling:x,noWheelClassName:c,noPanClassName:l,onViewportChange:o,isControlledViewport:k,paneClickDistance:L,selectionOnDrag:T1,children:Y1.jsxs(Hj,{onSelectionStart:O,onSelectionEnd:P,onPaneClick:U,onPaneMouseEnter:G,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:z,panOnDrag:P1,autoPanOnSelection:D,isSelecting:!!G1,selectionMode:A,selectionKeyPressed:a,paneClickDistance:L,selectionOnDrag:T1,children:[Q,s&&Y1.jsx(Cj,{onSelectionContextMenu:m,noPanClassName:l,disableKeyboardA11y:p})]})})}OR.displayName="FlowRenderer";var fj=B1.memo(OR),jj=(Q)=>(U)=>{return Q?cq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((G)=>G.id):Array.from(U.nodeLookup.keys())};function vj(Q){return B0(B1.useCallback(jj(Q),[Q]),r0)}var Vj=(Q)=>Q.updateNodeInternals;function yj(){let Q=B0(Vj),[U]=B1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((G)=>{let K=new Map;G.forEach((H)=>{let Y=H.target.getAttribute("data-id");K.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(K)})});return B1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function kj({node:Q,nodeType:U,hasDimensions:G,resizeObserver:K}){let H=a0(),Y=B1.useRef(null),z=B1.useRef(null),L=B1.useRef(Q.sourcePosition),M=B1.useRef(Q.targetPosition),R=B1.useRef(U),T=G&&!!Q.internals.handleBounds;return B1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||z.current!==Y.current)){if(z.current)K?.unobserve(z.current);K?.observe(Y.current),z.current=Y.current}},[T,Q.hidden]),B1.useEffect(()=>{return()=>{if(z.current)K?.unobserve(z.current),z.current=null}},[]),B1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=L.current!==Q.sourcePosition,P=M.current!==Q.targetPosition;if(A||O||P)R.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 Dj({id:Q,onClick:U,onMouseEnter:G,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:z,nodesDraggable:L,elementsSelectable:M,nodesConnectable:R,nodesFocusable:T,resizeObserver:A,noDragClassName:O,noPanClassName:P,disableKeyboardA11y:N,rfId:v,nodeTypes:f,nodeClickDistance:w,onError:u}){let{node:C,internals:j,isParent:y}=B0((G1)=>{let R1=G1.nodeLookup.get(Q),C1=G1.parentLookup.has(Q);return{node:R1,internals:R1.internals,isParent:C1}},r0),h=C.type||"default",b=f?.[h]||aT[h];if(b===void 0)u?.("003",X5.error003(h)),h="default",b=f?.default||aT.default;let E=!!(C.draggable||L&&typeof C.draggable>"u"),D=!!(C.selectable||M&&typeof C.selectable>"u"),g=!!(C.connectable||R&&typeof C.connectable>"u"),e=!!(C.focusable||T&&typeof C.focusable>"u"),q1=a0(),Q1=bK(C),x=kj({node:C,nodeType:h,hasDimensions:Q1,resizeObserver:A}),m=MR({nodeRef:x,disabled:C.hidden||!E,noDragClassName:O,handleSelector:C.dragHandle,nodeId:Q,isSelectable:D,nodeClickDistance:w}),c=TR();if(C.hidden)return null;let l=Q4(C),p=Nj(C),o=D||E||U||G||K||H,k=G?(G1)=>G(G1,{...j.userNode}):void 0,s=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=z?(G1)=>z(G1,{...j.userNode}):void 0,P1=(G1)=>{let{selectNodesOnDrag:R1,nodeDragThreshold:C1}=q1.getState();if(D&&(!R1||!E||C1>0))nK({id:Q,store:q1,nodeRef:x});if(U)U(G1,{...j.userNode})},z1=(G1)=>{if(gK(G1.nativeEvent)||N)return;if(CK.includes(G1.key)&&D){let R1=G1.key==="Escape";nK({id:Q,store:q1,unselect:R1,nodeRef:x})}else if(E&&C.selected&&Object.prototype.hasOwnProperty.call(UU,G1.key)){G1.preventDefault();let{ariaLabelConfig:R1}=q1.getState();q1.setState({ariaLiveMessage:R1["node.a11yDescription.ariaLiveMessage"]({direction:G1.key.replace("Arrow","").toLowerCase(),x:~~j.positionAbsolute.x,y:~~j.positionAbsolute.y})}),c({direction:UU[G1.key],factor:G1.shiftKey?4:1})}},T1=()=>{if(N||!x.current?.matches(":focus-visible"))return;let{transform:G1,width:R1,height:C1,autoPanOnNodeFocus:L1,setCenter:S1}=q1.getState();if(!L1)return;if(!(cq(new Map([[Q,C]]),{x:0,y:0,width:R1,height:C1},G1,!0).length>0))S1(C.position.x+l.width/2,C.position.y+l.height/2,{zoom:G1[2]})};return Y1.jsx("div",{className:$2(["react-flow__node",`react-flow__node-${h}`,{[P]:E},C.className,{selected:C.selected,selectable:D,parent:y,draggable:E,dragging:m}]),ref:x,style:{zIndex:j.z,transform:`translate(${j.positionAbsolute.x}px,${j.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:Q1?"visible":"hidden",...C.style,...p},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:s,onMouseLeave:$1,onContextMenu:a,onClick:P1,onDoubleClick:H1,onKeyDown:e?z1:void 0,tabIndex:e?0:void 0,onFocus:e?T1:void 0,role:C.ariaRole??(e?"group":void 0),"aria-roledescription":"node","aria-describedby":N?void 0:`${KR}-${v}`,"aria-label":C.ariaLabel,...C.domAttributes,children:Y1.jsx(zj,{value:Q,children:Y1.jsx(b,{id:Q,data:C.data,type:h,positionAbsoluteX:j.positionAbsolute.x,positionAbsoluteY:j.positionAbsolute.y,selected:C.selected??!1,selectable:D,draggable:E,deletable:C.deletable??!0,isConnectable:g,sourcePosition:C.sourcePosition,targetPosition:C.targetPosition,dragging:m,dragHandle:C.dragHandle,zIndex:j.z,parentId:C.parentId,...l})})})}var uj=B1.memo(Dj),bj=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function IR(Q){let{nodesConnectable:U,nodesFocusable:G,elementsSelectable:K,onError:H}=B0(bj,r0),Y=vj(Q.onlyRenderVisibleElements),z=yj();return Y1.jsx("div",{className:"react-flow__nodes",style:ZU,children:Y.map((L)=>{return Y1.jsx(uj,{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:z,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:G,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:H},L)})})}IR.displayName="NodeRenderer";var Ej=B1.memo(IR);function hj(Q){return B0(B1.useCallback((G)=>{if(!Q)return G.edges.map((H)=>H.id);let K=[];if(G.width&&G.height)for(let H of G.edges){let Y=G.nodeLookup.get(H.source),z=G.nodeLookup.get(H.target);if(Y&&z&&QT({sourceNode:Y,targetNode:z,width:G.width,height:G.height,transform:G.transform}))K.push(H.id)}return K},[Q]),r0)}var xj=({color:Q="none",strokeWidth:U=1})=>{let G={strokeWidth:U,...Q&&{stroke:Q}};return Y1.jsx("polyline",{className:"arrow",style:G,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},mj=({color:Q="none",strokeWidth:U=1})=>{let G={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return Y1.jsx("polyline",{className:"arrowclosed",style:G,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},tT={[I9.Arrow]:xj,[I9.ArrowClosed]:mj};function gj(Q){let U=a0();return B1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(tT,Q))return U.getState().onError?.("009",X5.error009(Q)),null;return tT[Q]},[Q])}var pj=({id:Q,type:U,color:G,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:z,orient:L="auto-start-reverse"})=>{let M=gj(U);if(!M)return null;return Y1.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:Y1.jsx(M,{color:G,strokeWidth:z})})},PR=({defaultColor:Q,rfId:U})=>{let G=B0((Y)=>Y.edges),K=B0((Y)=>Y.defaultEdgeOptions),H=B1.useMemo(()=>{return GT(G,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[G,K,U,Q]);if(!H.length)return null;return Y1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:Y1.jsx("defs",{children:H.map((Y)=>Y1.jsx(pj,{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))})})};PR.displayName="MarkerDefinitions";var cj=B1.memo(PR);function NR({x:Q,y:U,label:G,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:z=[2,4],labelBgBorderRadius:L=2,children:M,className:R,...T}){let[A,O]=B1.useState({x:1,y:0,width:0,height:0}),P=$2(["react-flow__edge-textwrapper",R]),N=B1.useRef(null);if(B1.useEffect(()=>{if(N.current){let v=N.current.getBBox();O({x:v.x,y:v.y,width:v.width,height:v.height})}},[G]),!G)return null;return Y1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:P,visibility:A.width?"visible":"hidden",...T,children:[H&&Y1.jsx("rect",{width:A.width+2*z[0],x:-z[0],y:-z[1],height:A.height+2*z[1],className:"react-flow__edge-textbg",style:Y,rx:L,ry:L}),Y1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:N,style:K,children:G}),M]})}NR.displayName="EdgeText";var lj=B1.memo(NR);function FU({path:Q,labelX:U,labelY:G,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:z,labelBgPadding:L,labelBgBorderRadius:M,interactionWidth:R=20,...T}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx("path",{...T,d:Q,fill:"none",className:$2(["react-flow__edge-path",T.className])}),R?Y1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,K&&J4(U)&&J4(G)?Y1.jsx(lj,{x:U,y:G,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:z,labelBgPadding:L,labelBgBorderRadius:M}):null]})}function oT({pos:Q,x1:U,y1:G,x2:K,y2:H}){if(Q===E1.Left||Q===E1.Right)return[0.5*(U+K),G];return[U,0.5*(G+H)]}function wR({sourceX:Q,sourceY:U,sourcePosition:G=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top}){let[z,L]=oT({pos:G,x1:Q,y1:U,x2:K,y2:H}),[M,R]=oT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[T,A,O,P]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:z,sourceControlY:L,targetControlX:M,targetControlY:R});return[`M${Q},${U} C${z},${L} ${M},${R} ${K},${H}`,T,A,O,P]}function CR(Q){return B1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,sourcePosition:z,targetPosition:L,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,interactionWidth:w})=>{let[u,C,j]=wR({sourceX:G,sourceY:K,sourcePosition:z,targetX:H,targetY:Y,targetPosition:L}),y=Q.isInternal?void 0:U;return Y1.jsx(FU,{id:y,path:u,labelX:C,labelY:j,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,interactionWidth:w})})}var dj=CR({isInternal:!1}),SR=CR({isInternal:!0});dj.displayName="SimpleBezierEdge";SR.displayName="SimpleBezierEdgeInternal";function fR(Q){return B1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,sourcePosition:P=E1.Bottom,targetPosition:N=E1.Top,markerEnd:v,markerStart:f,pathOptions:w,interactionWidth:u})=>{let[C,j,y]=dJ({sourceX:G,sourceY:K,sourcePosition:P,targetX:H,targetY:Y,targetPosition:N,borderRadius:w?.borderRadius,offset:w?.offset,stepPosition:w?.stepPosition}),h=Q.isInternal?void 0:U;return Y1.jsx(FU,{id:h,path:C,labelX:j,labelY:y,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:v,markerStart:f,interactionWidth:u})})}var jR=fR({isInternal:!1}),vR=fR({isInternal:!0});jR.displayName="SmoothStepEdge";vR.displayName="SmoothStepEdgeInternal";function VR(Q){return B1.memo(({id:U,...G})=>{let K=Q.isInternal?void 0:U;return Y1.jsx(jR,{...G,id:K,pathOptions:B1.useMemo(()=>({borderRadius:0,offset:G.pathOptions?.offset}),[G.pathOptions?.offset])})})}var ij=VR({isInternal:!1}),yR=VR({isInternal:!0});ij.displayName="StepEdge";yR.displayName="StepEdgeInternal";function kR(Q){return B1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:v})=>{let[f,w,u]=tq({sourceX:G,sourceY:K,targetX:H,targetY:Y}),C=Q.isInternal?void 0:U;return Y1.jsx(FU,{id:C,path:f,labelX:w,labelY:u,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:v})})}var rj=kR({isInternal:!1}),DR=kR({isInternal:!0});rj.displayName="StraightEdge";DR.displayName="StraightEdgeInternal";function uR(Q){return B1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,sourcePosition:z=E1.Bottom,targetPosition:L=E1.Top,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,pathOptions:w,interactionWidth:u})=>{let[C,j,y]=sq({sourceX:G,sourceY:K,sourcePosition:z,targetX:H,targetY:Y,targetPosition:L,curvature:w?.curvature}),h=Q.isInternal?void 0:U;return Y1.jsx(FU,{id:h,path:C,labelX:j,labelY:y,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,interactionWidth:u})})}var aj=uR({isInternal:!1}),bR=uR({isInternal:!0});aj.displayName="BezierEdge";bR.displayName="BezierEdgeInternal";var nT={default:bR,straight:DR,step:yR,smoothstep:vR,simplebezier:SR},eT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},sj=(Q,U,G)=>{if(G===E1.Left)return Q-U;if(G===E1.Right)return Q+U;return Q},tj=(Q,U,G)=>{if(G===E1.Top)return Q-U;if(G===E1.Bottom)return Q+U;return Q},_R="react-flow__edgeupdater";function JR({position:Q,centerX:U,centerY:G,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:z,type:L}){return Y1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:z,className:$2([_R,`${_R}-${L}`]),cx:sj(U,K,Q),cy:tj(G,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function oj({isReconnectable:Q,reconnectRadius:U,edge:G,sourceX:K,sourceY:H,targetX:Y,targetY:z,sourcePosition:L,targetPosition:M,onReconnect:R,onReconnectStart:T,onReconnectEnd:A,setReconnecting:O,setUpdateHover:P}){let N=a0(),v=(j,y)=>{if(j.button!==0)return;let{autoPanOnConnect:h,domNode:b,connectionMode:E,connectionRadius:D,lib:g,onConnectStart:e,cancelConnection:q1,nodeLookup:Q1,rfId:x,panBy:m,updateConnection:c}=N.getState(),l=y.type==="target",p=(s,$1)=>{O(!1),A?.(s,G,y.type,$1)},o=(s)=>R?.(G,s),k=(s,$1)=>{O(!0),T?.(j,G,y.type),e?.(s,$1)};_U.onPointerDown(j.nativeEvent,{autoPanOnConnect:h,connectionMode:E,connectionRadius:D,domNode:b,handleId:y.id,nodeId:y.nodeId,nodeLookup:Q1,isTarget:l,edgeUpdaterType:y.type,lib:g,flowId:x,cancelConnection:q1,panBy:m,isValidConnection:(...s)=>N.getState().isValidConnection?.(...s)??!0,onConnect:o,onConnectStart:k,onConnectEnd:(...s)=>N.getState().onConnectEnd?.(...s),onReconnectEnd:p,updateConnection:c,getTransform:()=>N.getState().transform,getFromHandle:()=>N.getState().connection.fromHandle,dragThreshold:N.getState().connectionDragThreshold,handleDomNode:j.currentTarget})},f=(j)=>v(j,{nodeId:G.target,id:G.targetHandle??null,type:"target"}),w=(j)=>v(j,{nodeId:G.source,id:G.sourceHandle??null,type:"source"}),u=()=>P(!0),C=()=>P(!1);return Y1.jsxs(Y1.Fragment,{children:[(Q===!0||Q==="source")&&Y1.jsx(JR,{position:L,centerX:K,centerY:H,radius:U,onMouseDown:f,onMouseEnter:u,onMouseOut:C,type:"source"}),(Q===!0||Q==="target")&&Y1.jsx(JR,{position:M,centerX:Y,centerY:z,radius:U,onMouseDown:w,onMouseEnter:u,onMouseOut:C,type:"target"})]})}function nj({id:Q,edgesFocusable:U,edgesReconnectable:G,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:z,onMouseEnter:L,onMouseMove:M,onMouseLeave:R,reconnectRadius:T,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,rfId:N,edgeTypes:v,noPanClassName:f,onError:w,disableKeyboardA11y:u}){let C=B0((S1)=>S1.edgeLookup.get(Q)),j=B0((S1)=>S1.defaultEdgeOptions);C=j?{...j,...C}:C;let y=C.type||"default",h=v?.[y]||nT[y];if(h===void 0)w?.("011",X5.error011(y)),y="default",h=v?.default||nT.default;let b=!!(C.focusable||U&&typeof C.focusable>"u"),E=typeof A<"u"&&(C.reconnectable||G&&typeof C.reconnectable>"u"),D=!!(C.selectable||K&&typeof C.selectable>"u"),g=B1.useRef(null),[e,q1]=B1.useState(!1),[Q1,x]=B1.useState(!1),m=a0(),{zIndex:c=C.zIndex,sourceX:l,sourceY:p,targetX:o,targetY:k,sourcePosition:s,targetPosition:$1}=B0(B1.useCallback((S1)=>{let b1=S1.nodeLookup.get(C.source),l1=S1.nodeLookup.get(C.target);if(!b1||!l1)return eT;let h1=UT({id:Q,sourceNode:b1,targetNode:l1,sourceHandle:C.sourceHandle||null,targetHandle:C.targetHandle||null,connectionMode:S1.connectionMode,onError:w}),A1=$T({selected:C.selected,zIndex:C.zIndex,sourceNode:b1,targetNode:l1,elevateOnSelect:S1.elevateEdgesOnSelect,zIndexMode:S1.zIndexMode});return{...h1||eT,zIndex:A1}},[C.source,C.target,C.sourceHandle,C.targetHandle,C.selected,C.zIndex,w]),r0),a=B1.useMemo(()=>C.markerStart?`url('#${oq(C.markerStart,N)}')`:void 0,[C.markerStart,N]),H1=B1.useMemo(()=>C.markerEnd?`url('#${oq(C.markerEnd,N)}')`:void 0,[C.markerEnd,N]);if(C.hidden||l===null||p===null||o===null||k===null)return null;let P1=(S1)=>{let{addSelectedEdges:b1,unselectNodesAndEdges:l1,multiSelectionActive:h1}=m.getState();if(D)if(m.setState({nodesSelectionActive:!1}),C.selected&&h1)l1({nodes:[],edges:[C]}),g.current?.blur();else b1([Q]);if(H)H(S1,C)},z1=Y?(S1)=>{Y(S1,{...C})}:void 0,T1=z?(S1)=>{z(S1,{...C})}:void 0,G1=L?(S1)=>{L(S1,{...C})}:void 0,R1=M?(S1)=>{M(S1,{...C})}:void 0,C1=R?(S1)=>{R(S1,{...C})}:void 0,L1=(S1)=>{if(!u&&CK.includes(S1.key)&&D){let{unselectNodesAndEdges:b1,addSelectedEdges:l1}=m.getState();if(S1.key==="Escape")g.current?.blur(),b1({edges:[C]});else l1([Q])}};return Y1.jsx("svg",{style:{zIndex:c},children:Y1.jsxs("g",{className:$2(["react-flow__edge",`react-flow__edge-${y}`,C.className,f,{selected:C.selected,animated:C.animated,inactive:!D&&!H,updating:e,selectable:D}]),onClick:P1,onDoubleClick:z1,onContextMenu:T1,onMouseEnter:G1,onMouseMove:R1,onMouseLeave:C1,onKeyDown:b?L1:void 0,tabIndex:b?0:void 0,role:C.ariaRole??(b?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":C.ariaLabel===null?void 0:C.ariaLabel||`Edge from ${C.source} to ${C.target}`,"aria-describedby":b?`${HR}-${N}`:void 0,ref:g,...C.domAttributes,children:[!Q1&&Y1.jsx(h,{id:Q,source:C.source,target:C.target,type:C.type,selected:C.selected,animated:C.animated,selectable:D,deletable:C.deletable??!0,label:C.label,labelStyle:C.labelStyle,labelShowBg:C.labelShowBg,labelBgStyle:C.labelBgStyle,labelBgPadding:C.labelBgPadding,labelBgBorderRadius:C.labelBgBorderRadius,sourceX:l,sourceY:p,targetX:o,targetY:k,sourcePosition:s,targetPosition:$1,data:C.data,style:C.style,sourceHandleId:C.sourceHandle,targetHandleId:C.targetHandle,markerStart:a,markerEnd:H1,pathOptions:"pathOptions"in C?C.pathOptions:void 0,interactionWidth:C.interactionWidth}),E&&Y1.jsx(oj,{edge:C,isReconnectable:E,reconnectRadius:T,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,sourceX:l,sourceY:p,targetX:o,targetY:k,sourcePosition:s,targetPosition:$1,setUpdateHover:q1,setReconnecting:x})]})})}var ej=B1.memo(nj),_v=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function ER({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:G,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:z,onEdgeMouseEnter:L,onEdgeMouseMove:M,onEdgeMouseLeave:R,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,disableKeyboardA11y:v}){let{edgesFocusable:f,edgesReconnectable:w,elementsSelectable:u,onError:C}=B0(_v,r0),j=hj(U);return Y1.jsxs("div",{className:"react-flow__edges",children:[Y1.jsx(cj,{defaultColor:Q,rfId:G}),j.map((y)=>{return Y1.jsx(ej,{id:y,edgesFocusable:f,edgesReconnectable:w,elementsSelectable:u,noPanClassName:H,onReconnect:Y,onContextMenu:z,onMouseEnter:L,onMouseMove:M,onMouseLeave:R,onClick:T,reconnectRadius:A,onDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,rfId:G,onError:C,edgeTypes:K,disableKeyboardA11y:v},y)})]})}ER.displayName="EdgeRenderer";var Jv=B1.memo(ER),$R=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function $v({children:Q}){let U=a0(),G=B1.useRef(null),[K]=B1.useState(()=>U.getState().transform);return BR(()=>{let H=null,Y=()=>{let z=U.getState().transform;if(H&&z[0]===H[0]&&z[1]===H[1]&&z[2]===H[2])return;if(H=z,G.current)G.current.style.transform=$R(z)};return Y(),U.subscribe(Y)},[U]),Y1.jsx("div",{ref:G,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:$R(K)},children:Q})}function Qv(Q){let U=rJ(),G=B1.useRef(!1);B1.useEffect(()=>{if(!G.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),G.current=!0},[Q,U.viewportInitialized])}var qv=(Q)=>Q.panZoom?.syncViewport;function Uv(Q){let U=B0(qv),G=a0();return B1.useEffect(()=>{if(Q)U?.(Q),G.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function QR(Q){return Q.connection.inProgress?{...Q.connection,to:S9(Q.connection.to,Q.transform)}:{...Q.connection}}function Gv(Q){if(Q)return(G)=>{let K=QR(G);return Q(K)};return QR}function Zv(Q){let U=Gv(Q);return B0(U,r0)}var Fv=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function Xv({containerStyle:Q,style:U,type:G,component:K}){let{nodesConnectable:H,width:Y,height:z,isValid:L,inProgress:M}=B0(Fv,r0);if(!(Y&&H&&M))return null;return Y1.jsx("svg",{style:Q,width:Y,height:z,className:"react-flow__connectionline react-flow__container",children:Y1.jsx("g",{className:$2(["react-flow__connection",xK(L)]),children:Y1.jsx(hR,{style:U,type:G,CustomComponent:K,isValid:L})})})}var hR=({style:Q,type:U=U3.Bezier,CustomComponent:G,isValid:K})=>{let{inProgress:H,from:Y,fromNode:z,fromHandle:L,fromPosition:M,to:R,toNode:T,toHandle:A,toPosition:O,pointer:P}=Zv();if(!H)return;if(G)return Y1.jsx(G,{connectionLineType:U,connectionLineStyle:Q,fromNode:z,fromHandle:L,fromX:Y.x,fromY:Y.y,toX:R.x,toY:R.y,fromPosition:M,toPosition:O,connectionStatus:xK(K),toNode:T,toHandle:A,pointer:P});let N="",v={sourceX:Y.x,sourceY:Y.y,sourcePosition:M,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case U3.Bezier:[N]=sq(v);break;case U3.SimpleBezier:[N]=wR(v);break;case U3.Step:[N]=dJ({...v,borderRadius:0});break;case U3.SmoothStep:[N]=dJ(v);break;default:[N]=tq(v)}return Y1.jsx("path",{d:N,fill:"none",className:"react-flow__connection-path",style:Q})};hR.displayName="ConnectionLine";var Kv={};function qR(Q=Kv){let U=B1.useRef(Q),G=a0();B1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of K)if(U.current[H]!==Q[H]){G.getState().onError?.("002",X5.error002());break}U.current=Q}},[Q])}function Hv(){let Q=a0(),U=B1.useRef(!1);B1.useEffect(()=>{if(!U.current){let G=document.querySelector(".react-flow__pane");if(G&&window.getComputedStyle(G).zIndex!=="1")Q.getState().onError?.("013",X5.error013("react"));U.current=!0}},[])}function xR({nodeTypes:Q,edgeTypes:U,onInit:G,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:z,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:R,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:P,connectionLineType:N,connectionLineStyle:v,connectionLineComponent:f,connectionLineContainerStyle:w,selectionKeyCode:u,selectionOnDrag:C,selectionMode:j,multiSelectionKeyCode:y,panActivationKeyCode:h,zoomActivationKeyCode:b,deleteKeyCode:E,onlyRenderVisibleElements:D,elementsSelectable:g,defaultViewport:e,translateExtent:q1,minZoom:Q1,maxZoom:x,preventScrolling:m,defaultMarkerColor:c,zoomOnScroll:l,zoomOnPinch:p,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:s,zoomOnDoubleClick:$1,panOnDrag:a,autoPanOnSelection:H1,onPaneClick:P1,onPaneMouseEnter:z1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneScroll:R1,onPaneContextMenu:C1,paneClickDistance:L1,nodeClickDistance:S1,onEdgeContextMenu:b1,onEdgeMouseEnter:l1,onEdgeMouseMove:h1,onEdgeMouseLeave:A1,reconnectRadius:_0,onReconnect:u1,onReconnectStart:E0,onReconnectEnd:J0,noDragClassName:O2,noWheelClassName:K2,noPanClassName:y2,disableKeyboardA11y:I2,nodeExtent:Z2,rfId:P2,viewport:N2,onViewportChange:w2,nodesDraggable:G4}){return qR(Q),qR(U),Hv(),Qv(G),Uv(N2),Y1.jsx(fj,{onPaneClick:P1,onPaneMouseEnter:z1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneContextMenu:C1,onPaneScroll:R1,paneClickDistance:L1,deleteKeyCode:E,selectionKeyCode:u,selectionOnDrag:C,selectionMode:j,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:y,panActivationKeyCode:h,zoomActivationKeyCode:b,elementsSelectable:g,zoomOnScroll:l,zoomOnPinch:p,zoomOnDoubleClick:$1,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:s,panOnDrag:a,autoPanOnSelection:H1,defaultViewport:e,translateExtent:q1,minZoom:Q1,maxZoom:x,onSelectionContextMenu:A,preventScrolling:m,noDragClassName:O2,noWheelClassName:K2,noPanClassName:y2,disableKeyboardA11y:I2,onViewportChange:w2,isControlledViewport:!!N2,children:Y1.jsxs($v,{children:[Y1.jsx(Jv,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:z,onReconnect:u1,onReconnectStart:E0,onReconnectEnd:J0,onlyRenderVisibleElements:D,onEdgeContextMenu:b1,onEdgeMouseEnter:l1,onEdgeMouseMove:h1,onEdgeMouseLeave:A1,reconnectRadius:_0,defaultMarkerColor:c,noPanClassName:y2,disableKeyboardA11y:I2,rfId:P2}),Y1.jsx(Xv,{style:v,type:N,component:f,containerStyle:w}),Y1.jsx("div",{className:"react-flow__edgelabel-renderer"}),Y1.jsx(Ej,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:R,onNodeContextMenu:T,nodeClickDistance:S1,onlyRenderVisibleElements:D,noPanClassName:y2,noDragClassName:O2,disableKeyboardA11y:I2,nodeExtent:Z2,rfId:P2,nodesDraggable:G4}),Y1.jsx("div",{className:"react-flow__viewport-portal"})]})})}xR.displayName="GraphView";var Yv=B1.memo(xR),zv=uK("React Flow","https://reactflow.dev/"),UR=({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,width:H,height:Y,fitView:z,fitViewOptions:L,minZoom:M=0.5,maxZoom:R=2,nodeOrigin:T,nodeExtent:A,zIndexMode:O="basic"}={})=>{let P=new Map,N=new Map,v=new Map,f=new Map,w=K??U??[],u=G??Q??[],C=T??[0,0],j=A??N9;aK(v,f,w);let{nodesInitialized:y}=nq(u,P,N,{nodeOrigin:C,nodeExtent:j,zIndexMode:O}),h=[0,0,1];if(z&&H&&Y){let b=Q7(P,{filter:(e)=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),{x:E,y:D,zoom:g}=lJ(b,H,Y,M,R,L?.padding??0.1);h=[E,D,g]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:u,nodesInitialized:y,nodeLookup:P,parentLookup:N,edges:w,edgeLookup:f,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:G!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:M,maxZoom:R,translateExtent:N9,nodeExtent:j,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:a6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:z??!1,fitViewOptions:L,fitViewResolver:null,connection:{...fK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:zv,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:SK,zIndexMode:O,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},Wv=({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,width:H,height:Y,fitView:z,fitViewOptions:L,minZoom:M,maxZoom:R,nodeOrigin:T,nodeExtent:A,zIndexMode:O})=>DT((P,N)=>{async function v(){let{nodeLookup:f,panZoom:w,fitViewOptions:u,fitViewResolver:C,width:j,height:y,minZoom:h,maxZoom:b}=N();if(!w)return;await sM({nodes:f,width:j,height:y,panZoom:w,minZoom:h,maxZoom:b},u),C?.resolve(!0),P({fitViewResolver:null})}return{...UR({nodes:Q,edges:U,width:H,height:Y,fitView:z,fitViewOptions:L,minZoom:M,maxZoom:R,nodeOrigin:T,nodeExtent:A,defaultNodes:G,defaultEdges:K,zIndexMode:O}),setNodes:(f)=>{let{nodeLookup:w,parentLookup:u,nodeOrigin:C,nodeExtent:j,elevateNodesOnSelect:y,fitViewQueued:h,zIndexMode:b,nodesSelectionActive:E}=N(),{nodesInitialized:D,hasSelectedNodes:g}=nq(f,w,u,{nodeOrigin:C,nodeExtent:j,elevateNodesOnSelect:y,checkEquality:!0,zIndexMode:b}),e=E&&g;if(h&&D)v(),P({nodes:f,nodesInitialized:D,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:e});else P({nodes:f,nodesInitialized:D,nodesSelectionActive:e})},setEdges:(f)=>{let{connectionLookup:w,edgeLookup:u}=N();aK(w,u,f),P({edges:f})},setDefaultNodesAndEdges:(f,w)=>{if(f){let{setNodes:u}=N();u(f),P({hasDefaultNodes:!0})}if(w){let{setEdges:u}=N();u(w),P({hasDefaultEdges:!0})}},updateNodeInternals:(f)=>{let{triggerNodeChanges:w,nodeLookup:u,parentLookup:C,domNode:j,nodeOrigin:y,nodeExtent:h,debug:b,fitViewQueued:E,zIndexMode:D}=N(),{changes:g,updatedInternals:e}=HT(f,u,C,j,y,h,D);if(!e)return;if(XT(u,C,{nodeOrigin:y,nodeExtent:h,zIndexMode:D}),E)v(),P({fitViewQueued:!1,fitViewOptions:void 0});else P({});if(g?.length>0){if(b)console.log("React Flow: trigger node changes",g);w?.(g)}},updateNodePositions:(f,w=!1)=>{let u=[],C=[],{nodeLookup:j,triggerNodeChanges:y,connection:h,updateConnection:b,onNodesChangeMiddlewareMap:E}=N();for(let[D,g]of f){let e=j.get(D),q1=!!(e?.expandParent&&e?.parentId&&g?.position),Q1={id:D,type:"position",position:q1?{x:Math.max(0,g.position.x),y:Math.max(0,g.position.y)}:g.position,dragging:w};if(e&&h.inProgress&&h.fromNode.id===e.id){let x=s6(e,h.fromHandle,E1.Left,!0);b({...h,from:x})}if(q1&&e.parentId)u.push({id:D,parentId:e.parentId,rect:{...g.internals.positionAbsolute,width:g.measured.width??0,height:g.measured.height??0}});C.push(Q1)}if(u.length>0){let{parentLookup:D,nodeOrigin:g}=N(),e=eq(u,j,D,g);C.push(...e)}for(let D of E.values())C=D(C);y(C)},triggerNodeChanges:(f)=>{let{onNodesChange:w,setNodes:u,nodes:C,hasDefaultNodes:j,debug:y}=N();if(f?.length){if(j){let h=WR(f,C);u(h)}if(y)console.log("React Flow: trigger node changes",f);w?.(f)}},triggerEdgeChanges:(f)=>{let{onEdgesChange:w,setEdges:u,edges:C,hasDefaultEdges:j,debug:y}=N();if(f?.length){if(j){let h=sf(f,C);u(h)}if(y)console.log("React Flow: trigger edge changes",f);w?.(f)}},addSelectedNodes:(f)=>{let{multiSelectionActive:w,edgeLookup:u,nodeLookup:C,triggerNodeChanges:j,triggerEdgeChanges:y}=N();if(w){let h=f.map((b)=>q7(b,!0));j(h);return}j(j9(C,new Set([...f]),!0)),y(j9(u))},addSelectedEdges:(f)=>{let{multiSelectionActive:w,edgeLookup:u,nodeLookup:C,triggerNodeChanges:j,triggerEdgeChanges:y}=N();if(w){let h=f.map((b)=>q7(b,!0));y(h);return}y(j9(u,new Set([...f]))),j(j9(C,new Set,!0))},unselectNodesAndEdges:({nodes:f,edges:w}={})=>{let{edges:u,nodes:C,nodeLookup:j,triggerNodeChanges:y,triggerEdgeChanges:h}=N(),b=f?f:C,E=w?w:u,D=[];for(let e of b){if(!e.selected)continue;let q1=j.get(e.id);if(q1)q1.selected=!1;D.push(q7(e.id,!1))}let g=[];for(let e of E){if(!e.selected)continue;g.push(q7(e.id,!1))}y(D),h(g)},setMinZoom:(f)=>{let{panZoom:w,maxZoom:u}=N();w?.setScaleExtent([f,u]),P({minZoom:f})},setMaxZoom:(f)=>{let{panZoom:w,minZoom:u}=N();w?.setScaleExtent([u,f]),P({maxZoom:f})},setTranslateExtent:(f)=>{N().panZoom?.setTranslateExtent(f),P({translateExtent:f})},resetSelectedElements:()=>{let{edges:f,nodes:w,triggerNodeChanges:u,triggerEdgeChanges:C,elementsSelectable:j}=N();if(!j)return;let y=w.reduce((b,E)=>E.selected?[...b,q7(E.id,!1)]:b,[]),h=f.reduce((b,E)=>E.selected?[...b,q7(E.id,!1)]:b,[]);u(y),C(h)},setNodeExtent:(f)=>{let{nodes:w,nodeLookup:u,parentLookup:C,nodeOrigin:j,elevateNodesOnSelect:y,nodeExtent:h,zIndexMode:b}=N();if(f[0][0]===h[0][0]&&f[0][1]===h[0][1]&&f[1][0]===h[1][0]&&f[1][1]===h[1][1])return;nq(w,u,C,{nodeOrigin:j,nodeExtent:f,elevateNodesOnSelect:y,checkEquality:!1,zIndexMode:b}),P({nodeExtent:f})},panBy:(f)=>{let{transform:w,width:u,height:C,panZoom:j,translateExtent:y}=N();return YT({delta:f,panZoom:j,transform:w,translateExtent:y,width:u,height:C})},setCenter:async(f,w,u)=>{let{width:C,height:j,maxZoom:y,panZoom:h}=N();if(!h)return!1;let b=typeof u?.zoom<"u"?u.zoom:y;return await h.setViewport({x:C/2-f*b,y:j/2-w*b,zoom:b},{duration:u?.duration,ease:u?.ease,interpolate:u?.interpolate}),!0},cancelConnection:()=>{P({connection:{...fK}})},updateConnection:(f)=>{P({connection:f})},reset:()=>P({...UR()})}},Object.is);function JH({initialNodes:Q,initialEdges:U,defaultNodes:G,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:z,initialMaxZoom:L,initialFitViewOptions:M,fitView:R,nodeOrigin:T,nodeExtent:A,zIndexMode:O,children:P}){let[N]=B1.useState(()=>Wv({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,width:H,height:Y,fitView:R,minZoom:z,maxZoom:L,fitViewOptions:M,nodeOrigin:T,nodeExtent:A,zIndexMode:O}));return Y1.jsx(ff,{value:N,children:Y1.jsx(_j,{children:Y1.jsx(Lj,{children:P})})})}function Lv({children:Q,nodes:U,edges:G,defaultNodes:K,defaultEdges:H,width:Y,height:z,fitView:L,fitViewOptions:M,minZoom:R,maxZoom:T,nodeOrigin:A,nodeExtent:O,zIndexMode:P}){if(B1.useContext(GU))return Y1.jsx(Y1.Fragment,{children:Q});return Y1.jsx(JH,{initialNodes:U,initialEdges:G,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:z,fitView:L,initialFitViewOptions:M,initialMinZoom:R,initialMaxZoom:T,nodeOrigin:A,nodeExtent:O,zIndexMode:P,children:Q})}var Bv={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Av({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:z,onNodeClick:L,onEdgeClick:M,onInit:R,onMove:T,onMoveStart:A,onMoveEnd:O,onConnect:P,onConnectStart:N,onConnectEnd:v,onClickConnectStart:f,onClickConnectEnd:w,onNodeMouseEnter:u,onNodeMouseMove:C,onNodeMouseLeave:j,onNodeContextMenu:y,onNodeDoubleClick:h,onNodeDragStart:b,onNodeDrag:E,onNodeDragStop:D,onNodesDelete:g,onEdgesDelete:e,onDelete:q1,onSelectionChange:Q1,onSelectionDragStart:x,onSelectionDrag:m,onSelectionDragStop:c,onSelectionContextMenu:l,onSelectionStart:p,onSelectionEnd:o,onBeforeDelete:k,connectionMode:s,connectionLineType:$1=U3.Bezier,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:P1,deleteKeyCode:z1="Backspace",selectionKeyCode:T1="Shift",selectionOnDrag:G1=!1,selectionMode:R1=e8.Full,panActivationKeyCode:C1="Space",multiSelectionKeyCode:L1=f9()?"Meta":"Control",zoomActivationKeyCode:S1=f9()?"Meta":"Control",snapToGrid:b1,snapGrid:l1,onlyRenderVisibleElements:h1=!1,selectNodesOnDrag:A1,nodesDraggable:_0,autoPanOnNodeFocus:u1,nodesConnectable:E0,nodesFocusable:J0,nodeOrigin:O2=YR,edgesFocusable:K2,edgesReconnectable:y2,elementsSelectable:I2=!0,defaultViewport:Z2=gf,minZoom:P2=0.5,maxZoom:N2=2,translateExtent:w2=N9,preventScrolling:G4=!0,nodeExtent:K5,defaultMarkerColor:H5="#b1b1b7",zoomOnScroll:m5=!0,zoomOnPinch:Z4=!0,panOnScroll:w4=!1,panOnScrollSpeed:O5=0.5,panOnScrollMode:V=g3.Free,zoomOnDoubleClick:U1=!0,panOnDrag:O1=!0,onPaneClick:w1,onPaneMouseEnter:y1,onPaneMouseMove:r1,onPaneMouseLeave:a1,onPaneScroll:W0,onPaneContextMenu:x1,paneClickDistance:H2=1,nodeClickDistance:C2=0,children:I5,onReconnect:g5,onReconnectStart:n6,onReconnectEnd:s3,onEdgeContextMenu:t3,onEdgeDoubleClick:t,onEdgeMouseEnter:X1,onEdgeMouseMove:j1,onEdgeMouseLeave:V1,reconnectRadius:Q0=10,onNodesChange:k1,onEdgesChange:g1,noDragClassName:D1="nodrag",noWheelClassName:q0="nowheel",noPanClassName:y0="nopan",fitView:$0,fitViewOptions:h0,connectOnClick:N0,attributionPosition:o3,proOptions:Y2,defaultEdgeOptions:k0,elevateNodesOnSelect:nJ=!0,elevateEdgesOnSelect:eJ=!1,disableKeyboardA11y:k9=!1,autoPanOnConnect:_$,autoPanOnNodeDrag:n2,autoPanOnSelection:n3=!0,autoPanSpeed:K3,connectionRadius:J$,isValidConnection:e6,onError:Y7,style:D9,id:e3,nodeDragThreshold:_6,connectionDragThreshold:u9,viewport:MU,onViewportChange:TU,width:$$,height:b9,colorMode:E9="light",debug:Q$,onScroll:h9,ariaLabelConfig:q$,zIndexMode:U$="basic",...G$},x9){let J6=e3||"1",_8=df(E9),RU=B1.useCallback((m9)=>{m9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),h9?.(m9)},[h9]);return Y1.jsx("div",{"data-testid":"rf__wrapper",...G$,onScroll:RU,style:{...D9,...Bv},ref:x9,className:$2(["react-flow",H,_8]),id:e3,role:"application",children:Y1.jsxs(Lv,{nodes:Q,edges:U,width:$$,height:b9,fitView:$0,fitViewOptions:h0,minZoom:P2,maxZoom:N2,nodeOrigin:O2,nodeExtent:K5,zIndexMode:U$,children:[Y1.jsx(lf,{nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,onConnect:P,onConnectStart:N,onConnectEnd:v,onClickConnectStart:f,onClickConnectEnd:w,nodesDraggable:_0,autoPanOnNodeFocus:u1,nodesConnectable:E0,nodesFocusable:J0,edgesFocusable:K2,edgesReconnectable:y2,elementsSelectable:I2,elevateNodesOnSelect:nJ,elevateEdgesOnSelect:eJ,minZoom:P2,maxZoom:N2,nodeExtent:K5,onNodesChange:k1,onEdgesChange:g1,snapToGrid:b1,snapGrid:l1,connectionMode:s,translateExtent:w2,connectOnClick:N0,defaultEdgeOptions:k0,fitView:$0,fitViewOptions:h0,onNodesDelete:g,onEdgesDelete:e,onDelete:q1,onNodeDragStart:b,onNodeDrag:E,onNodeDragStop:D,onSelectionDrag:m,onSelectionDragStart:x,onSelectionDragStop:c,onMove:T,onMoveStart:A,onMoveEnd:O,noPanClassName:y0,nodeOrigin:O2,rfId:J6,autoPanOnConnect:_$,autoPanOnNodeDrag:n2,autoPanSpeed:K3,onError:Y7,connectionRadius:J$,isValidConnection:e6,selectNodesOnDrag:A1,nodeDragThreshold:_6,connectionDragThreshold:u9,onBeforeDelete:k,debug:Q$,ariaLabelConfig:q$,zIndexMode:U$}),Y1.jsx(Yv,{onInit:R,onNodeClick:L,onEdgeClick:M,onNodeMouseEnter:u,onNodeMouseMove:C,onNodeMouseLeave:j,onNodeContextMenu:y,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:z,connectionLineType:$1,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:P1,selectionKeyCode:T1,selectionOnDrag:G1,selectionMode:R1,deleteKeyCode:z1,multiSelectionKeyCode:L1,panActivationKeyCode:C1,zoomActivationKeyCode:S1,onlyRenderVisibleElements:h1,defaultViewport:Z2,translateExtent:w2,minZoom:P2,maxZoom:N2,preventScrolling:G4,zoomOnScroll:m5,zoomOnPinch:Z4,zoomOnDoubleClick:U1,panOnScroll:w4,panOnScrollSpeed:O5,panOnScrollMode:V,panOnDrag:O1,autoPanOnSelection:n3,onPaneClick:w1,onPaneMouseEnter:y1,onPaneMouseMove:r1,onPaneMouseLeave:a1,onPaneScroll:W0,onPaneContextMenu:x1,paneClickDistance:H2,nodeClickDistance:C2,onSelectionContextMenu:l,onSelectionStart:p,onSelectionEnd:o,onReconnect:g5,onReconnectStart:n6,onReconnectEnd:s3,onEdgeContextMenu:t3,onEdgeDoubleClick:t,onEdgeMouseEnter:X1,onEdgeMouseMove:j1,onEdgeMouseLeave:V1,reconnectRadius:Q0,defaultMarkerColor:H5,noDragClassName:D1,noWheelClassName:q0,noPanClassName:y0,rfId:J6,disableKeyboardA11y:k9,nodeExtent:K5,viewport:MU,onViewportChange:TU,nodesDraggable:_0}),Y1.jsx(mf,{onSelectionChange:Q1}),I5,Y1.jsx(uf,{proOptions:Y2,position:o3}),Y1.jsx(Df,{rfId:J6,disableKeyboardA11y:k9})]})})}var mR=LR(Av);function gR(Q){let[U,G]=B1.useState(Q),K=B1.useCallback((H)=>G((Y)=>WR(H,Y)),[]);return[U,G,K]}var ug=X5.error014();function Mv({dimensions:Q,lineWidth:U,variant:G,className:K}){return Y1.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",G,K])})}function Tv({radius:Q,className:U}){return Y1.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 Rv={[G3.Dots]:1,[G3.Lines]:1,[G3.Cross]:6},Ov=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function pR({id:Q,variant:U=G3.Dots,gap:G=20,size:K,lineWidth:H=1,offset:Y=0,color:z,bgColor:L,style:M,className:R,patternClassName:T}){let A=B1.useRef(null),{transform:O,patternId:P}=B0(Ov,r0),N=K||Rv[U],v=U===G3.Dots,f=U===G3.Cross,w=Array.isArray(G)?G:[G,G],u=[w[0]*O[2]||1,w[1]*O[2]||1],C=N*O[2],j=Array.isArray(Y)?Y:[Y,Y],y=f?[C,C]:u,h=[j[0]*O[2]+y[0]/2,j[1]*O[2]+y[1]/2],b=`${P}${Q?Q:""}`;return Y1.jsxs("svg",{className:$2(["react-flow__background",R]),style:{...M,...ZU,"--xy-background-color-props":L,"--xy-background-pattern-color-props":z},ref:A,"data-testid":"rf__background",children:[Y1.jsx("pattern",{id:b,x:O[0]%u[0],y:O[1]%u[1],width:u[0],height:u[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:v?Y1.jsx(Tv,{radius:C/2,className:T}):Y1.jsx(Mv,{dimensions:y,lineWidth:H,variant:U,className:T})}),Y1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${b})`})]})}pR.displayName="Background";var cR=B1.memo(pR);function Iv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:Y1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Pv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:Y1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Nv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:Y1.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function wv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Y1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Cv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Y1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function QU({children:Q,className:U,...G}){return Y1.jsx("button",{type:"button",className:$2(["react-flow__controls-button",U]),...G,children:Q})}var Sv=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function lR({style:Q,showZoom:U=!0,showFitView:G=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:z,onFitView:L,onInteractiveChange:M,className:R,children:T,position:A="bottom-left",orientation:O="vertical","aria-label":P}){let N=a0(),{isInteractive:v,minZoomReached:f,maxZoomReached:w,ariaLabelConfig:u}=B0(Sv,r0),{zoomIn:C,zoomOut:j,fitView:y}=rJ(),h=()=>{C(),Y?.()},b=()=>{j(),z?.()},E=()=>{y(H),L?.()},D=()=>{N.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),M?.(!v)};return Y1.jsxs(Z3,{className:$2(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":P??u["controls.ariaLabel"],children:[U&&Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(QU,{onClick:h,className:"react-flow__controls-zoomin",title:u["controls.zoomIn.ariaLabel"],"aria-label":u["controls.zoomIn.ariaLabel"],disabled:w,children:Y1.jsx(Iv,{})}),Y1.jsx(QU,{onClick:b,className:"react-flow__controls-zoomout",title:u["controls.zoomOut.ariaLabel"],"aria-label":u["controls.zoomOut.ariaLabel"],disabled:f,children:Y1.jsx(Pv,{})})]}),G&&Y1.jsx(QU,{className:"react-flow__controls-fitview",onClick:E,title:u["controls.fitView.ariaLabel"],"aria-label":u["controls.fitView.ariaLabel"],children:Y1.jsx(Nv,{})}),K&&Y1.jsx(QU,{className:"react-flow__controls-interactive",onClick:D,title:u["controls.interactive.ariaLabel"],"aria-label":u["controls.interactive.ariaLabel"],children:v?Y1.jsx(Cv,{}):Y1.jsx(wv,{})}),T]})}lR.displayName="Controls";var dR=B1.memo(lR);function fv({id:Q,x:U,y:G,width:K,height:H,style:Y,color:z,strokeColor:L,strokeWidth:M,className:R,borderRadius:T,shapeRendering:A,selected:O,onClick:P}){let{background:N,backgroundColor:v}=Y||{},f=z||N||v;return Y1.jsx("rect",{className:$2(["react-flow__minimap-node",{selected:O},R]),x:U,y:G,rx:T,ry:T,width:K,height:H,style:{fill:f,stroke:L,strokeWidth:M},shapeRendering:A,onClick:P?(w)=>P(w,Q):void 0})}var jv=B1.memo(fv),vv=(Q)=>Q.nodes.map((U)=>U.id),oK=(Q)=>Q instanceof Function?Q:()=>Q;function Vv({nodeStrokeColor:Q,nodeColor:U,nodeClassName:G="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=jv,onClick:z}){let L=B0(vv,r0),M=oK(U),R=oK(Q),T=oK(G),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return Y1.jsx(Y1.Fragment,{children:L.map((O)=>Y1.jsx(kv,{id:O,nodeColorFunc:M,nodeStrokeColorFunc:R,nodeClassNameFunc:T,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:z,shapeRendering:A},O))})}function yv({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:G,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:z,NodeComponent:L,onClick:M}){let{node:R,x:T,y:A,width:O,height:P}=B0((N)=>{let v=N.nodeLookup.get(Q);if(!v)return{node:void 0,x:0,y:0,width:0,height:0};let f=v.internals.userNode,{x:w,y:u}=v.internals.positionAbsolute,{width:C,height:j}=Q4(f);return{node:f,x:w,y:u,width:C,height:j}},r0);if(!R||R.hidden||!bK(R))return null;return Y1.jsx(L,{x:T,y:A,width:O,height:P,style:R.style,selected:!!R.selected,className:K(R),color:U(R),borderRadius:H,strokeColor:G(R),strokeWidth:Y,shapeRendering:z,onClick:M,id:R.id})}var kv=B1.memo(yv),Dv=B1.memo(Vv),uv=200,bv=150,Ev=(Q)=>!Q.hidden,hv=(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]},G=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){G=!0;break}return{viewBB:U,boundingRect:G?kK(Q7(Q.nodeLookup,{filter:Ev}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},GR=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,xv=(Q,U)=>GR(Q.viewBB,U.viewBB)&&GR(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,mv="react-flow__minimap-desc";function iR({style:Q,className:U,nodeStrokeColor:G,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:z,nodeComponent:L,bgColor:M,maskColor:R,maskStrokeColor:T,maskStrokeWidth:A,position:O="bottom-right",onClick:P,onNodeClick:N,pannable:v=!1,zoomable:f=!1,ariaLabel:w,inversePan:u,zoomStep:C=1,offsetScale:j=5}){let y=a0(),h=B1.useRef(null),{boundingRect:b,panZoom:E,viewBB:D,rfId:g,translateExtent:e,flowWidth:q1,flowHeight:Q1,ariaLabelConfig:x}=B0(hv,xv),m=Q?.width??uv,c=Q?.height??bv,l=b.width/m,p=b.height/c,o=Math.max(l,p),k=o*m,s=o*c,$1=j*o,a=b.x-(k-b.width)/2-$1,H1=b.y-(s-b.height)/2-$1,P1=k+$1*2,z1=s+$1*2,T1=`${mv}-${g}`,G1=B1.useRef(0),R1=B1.useRef();G1.current=o,B1.useEffect(()=>{let l1=y.getState().panZoom;if(h.current&&l1)return R1.current=TT({domNode:h.current,panZoom:l1,getTransform:()=>y.getState().transform,getViewScale:()=>G1.current}),()=>{R1.current?.destroy()}},[E]),B1.useEffect(()=>{R1.current?.update({translateExtent:e,width:q1,height:Q1,inversePan:u,pannable:v,zoomStep:C,zoomable:f})},[v,f,u,C,e,q1,Q1]);let C1=P?(l1)=>{let[h1,A1]=R1.current?.pointer(l1)||[0,0];P(l1,{x:h1,y:A1})}:void 0,L1=B1.useCallback((l1,h1)=>{let A1=y.getState().nodeLookup.get(h1).internals.userNode;N?.(l1,A1)},[N]),S1=N?L1:void 0,b1=w??x["minimap.ariaLabel"];return Y1.jsx(Z3,{position:O,style:{...Q,"--xy-minimap-background-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-background-color-props":typeof R==="string"?R: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 G==="string"?G:void 0,"--xy-minimap-node-stroke-width-props":typeof z==="number"?z:void 0},className:$2(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:Y1.jsxs("svg",{width:m,height:c,viewBox:`${a} ${H1} ${P1} ${z1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":T1,ref:h,onClick:C1,children:[b1&&Y1.jsx("title",{id:T1,children:b1}),Y1.jsx(Dv,{onClick:S1,nodeColor:K,nodeStrokeColor:G,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:z,nodeComponent:L}),Y1.jsx("path",{className:"react-flow__minimap-mask",d:`M${a-$1},${H1-$1}h${P1+$1*2}v${z1+$1*2}h${-P1-$1*2}z
247
- M${D.x},${D.y}h${D.width}v${D.height}h${-D.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}iR.displayName="MiniMap";var rR=B1.memo(iR),gv=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,pv={[p3.Line]:"right",[p3.Handle]:"bottom-right"};function cv({nodeId:Q,position:U,variant:G=p3.Handle,className:K,style:H=void 0,children:Y,color:z,minWidth:L=10,minHeight:M=10,maxWidth:R=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:O,autoScale:P=!0,shouldResize:N,onResizeStart:v,onResize:f,onResizeEnd:w}){let u=_H(),C=typeof Q==="string"?Q:u,j=a0(),y=B1.useRef(null),h=G===p3.Handle,b=B0(B1.useCallback(gv(h&&P),[h,P]),r0),E=B1.useRef(null),D=U??pv[G];B1.useEffect(()=>{if(!y.current||!C)return;if(!E.current)E.current=CT({domNode:y.current,nodeId:C,getStoreItems:()=>{let{nodeLookup:e,transform:q1,snapGrid:Q1,snapToGrid:x,nodeOrigin:m,domNode:c}=j.getState();return{nodeLookup:e,transform:q1,snapGrid:Q1,snapToGrid:x,nodeOrigin:m,paneDomNode:c}},onChange:(e,q1)=>{let{triggerNodeChanges:Q1,nodeLookup:x,parentLookup:m,nodeOrigin:c}=j.getState(),l=[],p={x:e.x,y:e.y},o=x.get(C);if(o&&o.expandParent&&o.parentId){let k=o.origin??c,s=e.width??o.measured.width??0,$1=e.height??o.measured.height??0,a={id:o.id,parentId:o.parentId,rect:{width:s,height:$1,...EK({x:e.x??o.position.x,y:e.y??o.position.y},{width:s,height:$1},o.parentId,x,k)}},H1=eq([a],x,m,c);l.push(...H1),p.x=e.x?Math.max(k[0]*s,e.x):void 0,p.y=e.y?Math.max(k[1]*$1,e.y):void 0}if(p.x!==void 0&&p.y!==void 0){let k={id:C,type:"position",position:{...p}};l.push(k)}if(e.width!==void 0&&e.height!==void 0){let s={id:C,type:"dimensions",resizing:!0,setAttributes:!O?!0:O==="horizontal"?"width":"height",dimensions:{width:e.width,height:e.height}};l.push(s)}for(let k of q1){let s={...k,type:"position"};l.push(s)}Q1(l)},onEnd:({width:e,height:q1})=>{let Q1={id:C,type:"dimensions",resizing:!1,dimensions:{width:e,height:q1}};j.getState().triggerNodeChanges([Q1])}});return E.current.update({controlPosition:D,boundaries:{minWidth:L,minHeight:M,maxWidth:R,maxHeight:T},keepAspectRatio:A,resizeDirection:O,onResizeStart:v,onResize:f,onResizeEnd:w,shouldResize:N}),()=>{E.current?.destroy()}},[D,L,M,R,T,A,v,f,w,N]);let g=D.split("-");return Y1.jsx("div",{className:$2(["react-flow__resize-control","nodrag",...g,G,K]),ref:y,style:{...H,scale:b,...z&&{[h?"backgroundColor":"borderColor"]:z}},children:Y})}var ZR=B1.memo(cv);function aR({nodeId:Q,isVisible:U=!0,handleClassName:G,handleStyle:K,lineClassName:H,lineStyle:Y,color:z,minWidth:L=10,minHeight:M=10,maxWidth:R=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:O=!0,shouldResize:P,onResizeStart:N,onResize:v,onResizeEnd:f}){if(!U)return null;return Y1.jsxs(Y1.Fragment,{children:[NT.map((w)=>Y1.jsx(ZR,{className:H,style:Y,nodeId:Q,position:w,variant:p3.Line,color:z,minWidth:L,minHeight:M,maxWidth:R,maxHeight:T,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:v,onResizeEnd:f},w)),PT.map((w)=>Y1.jsx(ZR,{className:G,style:K,nodeId:Q,position:w,color:z,minWidth:L,minHeight:M,maxWidth:R,maxHeight:T,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:v,onResizeEnd:f},w))]})}var lv=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function dv({children:Q}){let U=B0(lv);if(!U)return null;return FR.createPortal(Q,U)}var iv=(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,rv=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[G,K]of Q)if(iv(K,U.get(G)))return!1;return!0},av=(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:G,style:K,isVisible:H,position:Y=E1.Top,offset:z=10,align:L="center",...M}){let R=_H(),T=B1.useCallback((y)=>{return(Array.isArray(Q)?Q:[Q||R||""]).reduce((E,D)=>{let g=y.nodeLookup.get(D);if(g)E.set(g.id,g);return E},new Map)},[Q,R]),A=B0(T,rv),{x:O,y:P,zoom:N,selectedNodesCount:v}=B0(av,r0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&v===1)||!A.size)return null;let w=Q7(A),u=Array.from(A.values()),C=Math.max(...u.map((y)=>y.internals.z+1)),j={position:"absolute",transform:ZT(w,{x:O,y:P,zoom:N},Y,z,L),zIndex:C,...K};return Y1.jsx(dv,{children:Y1.jsx("div",{style:j,className:$2(["react-flow__node-toolbar",G]),...M,"data-id":u.reduce((y,h)=>`${y}${h.id} `,"").trim(),children:U})})}function XU(Q={}){let U=(K,H)=>Q.tools?`${H} (\`${K}\`)`:`\`${K}\``,G=["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>";G.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 G.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),G.join(`
248
- `)}var sR={"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=n0(m8(),1),HU="volter.console.token",K7=document.getElementById("root"),e1=K7.dataset.base??"/-/console",P0=window.location.origin,X3=(K7.dataset.worlds??P0).replace(/\/+$/,""),UO=(K7.dataset.names??"").split(",").filter((Q)=>Q!==""),d3=K7.dataset.worldOrigin==="1",X7=window.fetch.bind(window),t6="(session)",GO="(pass)",aJ=(Q)=>{try{if(Q&&!d3)sessionStorage.setItem(HU,Q);else sessionStorage.removeItem(HU);localStorage.removeItem(HU)}catch{}},ZO="volter.console.portal",FO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(ZO,new URL(Q).origin)}catch{}},sv=()=>{return H7.get("token")??""},o2=()=>{try{let Q=sessionStorage.getItem(ZO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},tv=()=>{let Q=sv();if(d3){if(aJ(""),H7.get("pass"))return GO;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?"":t6)}if(Q)return aJ(Q),Q;try{return sessionStorage.getItem(HU)??""}catch{return""}};function R2(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],z=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),z.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),z.push("approve");return{text:`Not ready to deploy: ${p8(Y)}.`,acts:z}}let G=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(G)return{text:`No credential is sealed for ${t1(G[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:`${p8(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 R5=async(Q)=>R2(await b3(Q)).text,ov={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function XO({name:Q,acts:U}){let G=U.map((K)=>ov[K]).filter((K)=>Boolean(K));if(G.length===0)return null;return F.jsxDEV(F.Fragment,{children:G.map(([K,H])=>F.jsxDEV(Z1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${e1}/${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 R0(Q,U,G={}){return X7(`${P0}${U}`,{...G,headers:{...G.headers??{},...Q===t6?{}:{"x-volter-token":Q},...G.body&&!G.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function f0(Q,U,G=0){let K=pA((H)=>R0(Q,H),U,G,Q);return K.state==="error"?{...K,error:R2(K.error).text}:K}var y9=(Q)=>{let U=new Date(Q),G=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${G(U.getMonth()+1)}-${G(U.getDate())}T${G(U.getHours())}:${G(U.getMinutes())}`},tR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),KO=(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",nv=(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},FH="volter.console.snapshots",i3=()=>{try{return JSON.parse(sessionStorage.getItem(FH)??"{}")}catch{return{}}},HO=new Map,XH=(Q)=>{if(d3){if(Q.token||Q.readToken)HO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(FH,JSON.stringify({...i3(),[Q.name]:Q}))}catch{}},KH=(Q)=>HO.get(Q)?.readToken||i3()[Q]?.readToken||"",YU=(Q)=>{try{let U=i3();delete U[Q],sessionStorage.setItem(FH,JSON.stringify(U))}catch{}},H7=new URLSearchParams(window.location.hash.slice(1)),v9=H7.get("close")??"";function tJ(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 HH(Q){let U=tJ(Q);if(!U)return null;let G=new URL(P0);if(U.protocol!==G.protocol||U.port!==G.port)return null;if(U.hostname===G.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===G.hostname||K.test(G.hostname)&&H===G.hostname.replace(K,"")?U.origin:null}function ev(Q){let U;try{U=JSON.parse(Q)}catch{return null}let G=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!G.test(U.name)||typeof U.parent!=="string"||!G.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:HH(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=H7.get("snapshot");if(Q){let U=ev(Q);if(U&&!i3()[U.name])XH(U)}}var YO="volter.console.home",zO=(Q)=>{let U=tJ(Q);if(!U)return null;let G=new URL(P0).hostname,K=G.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===G||U.hostname===K?U.origin:null};{let Q=zO(H7.get("home"));if(Q)try{sessionStorage.setItem(YO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>H7.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var N4=()=>{try{return zO(sessionStorage.getItem(YO))??""}catch{return""}};function YH(Q,U,G,K){let H=new URLSearchParams({token:U,home:N4()||P0}),Y=i3()[G];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var GH=K7.dataset.route==="memory"?"":null;function G7(){return(GH??window.location.pathname.slice(e1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var oR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,l3=(Q,U)=>Q&&U&&oR.test(Q)&&oR.test(U)?`${Q}/${U}`:"";function S0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(GH!==null)GH=U;else window.history.pushState(null,"",`${e1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function WO(Q,U){let G=HH(i3()[Q]?.origin);if(G&&G!==P0){YH(G,KH(Q),Q,`${e1}/${U.map(encodeURIComponent).join("/")}`);return}S0(U)}async function nR(){let[Q,U]=G7(),G=l3(Q,U),K=G?[G]:UO;if(K.length===0){let H=await X7(`${P0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,z,...L]=H.split("/");return L.length===0&&l3(Y,z)===H});for(let H of K){let Y=await X7(`${P0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let z=await Y.json().catch(()=>({})),L=tJ(z.origin)?.origin;if(Y.status===409&&L&&L!==P0)return window.location.replace(`${L}${e1}/${H}`),"moved";if(Y.ok&&z.local)return{token:typeof z.token==="string"&&z.token?z.token:t6}}return null}function _V(){let[Q,U]=Z1.useState(nF),G=(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:G(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 JV(){let[Q,U]=Z1.useState(tv()),[G,K]=Z1.useState(!1),[H,Y]=Z1.useState(!1),[z,L]=Z1.useState(""),[M,R]=Z1.useState(null),[T,A]=Z1.useState(null),[O,P]=Z1.useState(G7());Z1.useEffect(()=>{let $1=()=>P(G7());return window.addEventListener("popstate",$1),()=>window.removeEventListener("popstate",$1)},[]),Z1.useEffect(()=>{let[$1,a]=G7(),H1=l3($1,a),[P1,z1]=H1?H1.split("/"):[],T1=i3()[v9];if(!v9||!Q||!P1||!z1||!T1?.made||T1.parent!==`${P1}/${z1}`||l3(...v9.split("/"))!==v9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}R0(Q,`/-/${P1}/${z1}/branches/${v9}`,{method:"DELETE"}).catch(()=>null).then(()=>YU(v9))},[Q]);let N=Z1.useCallback(async($1)=>{if(A(null),!$1){let z1=await nR();if(z1==="moved")return;if(z1){if(K(!0),z1.token!==t6)aJ(z1.token);U(z1.token);return}R(null),Y(!0);return}if(d3&&$1===t6){let z1=await nR();if(z1==="moved")return;if(z1)K(!0)}if(d3&&$1===GO){let[z1,T1]=G7(),G1=l3(z1,T1),[R1,C1]=G1?G1.split("/"):[],L1=R1&&C1?await X7(`${P0}/-/${R1}/${C1}/session`,{method:"POST",headers:{"x-volter-pass":H7.get("pass")??""}}).catch(()=>null):null;if(!L1){A(`${P0} did not answer: no session was opened`),R(null);return}if(!L1.ok){A(`${await R5(L1)}. Open it again from the platform.`),R(null);return}FO((await L1.json().catch(()=>({}))).issuer),U(t6);return}if(d3&&$1!==t6){let[z1,T1]=G7(),G1=l3(z1,T1),[R1,C1]=G1?G1.split("/"):[],L1=R1&&C1?await X7(`${P0}/-/${R1}/${C1}/session`,{method:"POST",headers:{"x-volter-token":$1}}).catch(()=>null):null;if(!L1){A(`${P0} did not answer: no session was opened`),R(null);return}if(!L1.ok){let S1=await R5(L1);A(L1.status===401||L1.status===403?`That token does not open ${R1}/${C1}.`:L1.status===409?`${R1}/${C1}'s session lives at another origin: ${S1}`:`The World could not open a session (${L1.status}): ${S1}`),R(null);return}U(t6);return}let a=d3?new Response(null,{status:404}):await R0($1,"/-/worlds");if(a.ok){let{worlds:z1}=await a.json();R({kind:"admin",worlds:z1});return}if(a.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),R(null);return}if(a.status>=500){let z1=await a.json().catch(()=>({}));A(`The platform could not list your worlds${z1.error?`: ${z1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),R(null);return}let H1=UO;if(H1.length===0){let z1=await X7(`${P0}/-/ping`);if(!z1.ok){A(`${P0} does not answer as a host`),R(null);return}if(H1=(await z1.json()).worlds??[],H1.length===0){A(`${P0} does not list its Worlds: open a World at its own address, ${P0}${e1}/<org>/<world>`),R(null);return}}let P1=[];for(let z1 of H1){let T1=await R0($1,`/-/${z1}/twins`);if(T1.ok){let G1=await T1.json();P1.push({name:z1,base:`${X3}/${z1}`,twins:(G1.twins??[]).map((R1)=>({vendor:R1.twin,protocol:R1.protocol??null,root:R1.root??null}))})}}if(P1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),R(null);return}R({kind:"world",worlds:P1})},[]);Z1.useEffect(()=>{N(Q)},[Q,N]);let v=($1)=>M?.kind==="admin"?M.worlds.find((a)=>a.name===$1)?.token??Q:Q,[f,w]=Z1.useState("");if(!Q||!M&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(WJ,{href:`${e1}/`},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(),aJ(z.trim()),U(z.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:z,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 u=()=>A("This link or key opens no World here: it was revoked, or it has ended."),C=()=>{if(G){window.location.reload();return}if(d3){let[$1,a]=G7(),H1=l3($1,a),[P1,z1]=H1?H1.split("/"):[],T1=()=>window.location.replace(o2()?`${o2()}/`:`${P0}${e1}/${P1&&z1?`${P1}/${z1}`:""}?signin`);if(setTimeout(T1,2000),P1&&z1)X7(`${P0}/-/${P1}/${z1}/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`);aJ(""),U(""),L(""),R(null),S0([])};if(T||!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(WJ,{href:`${e1}/`},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:C,children:G?"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,y,h,b,E,D,g]=O,e=h==="~",q1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,x=e||!h||!q1.test(h)?void 0:h,m=E&&q1.test(E)?D!==void 0&&b!=="changes"&&b!=="screens"?l3(E,D)||void 0:E:void 0,c=b==="changes"&&E==="changesets"&&D&&q1.test(D)?D:b==="screens"&&D&&g&&/^[A-Za-z0-9_.-]+$/.test(D)&&Q1.test(g)?`${D}:${g}`:void 0,l=l3(j,y),p=l?i3()[l]??null:null,o=($1)=>KH($1)||v($1),k=p?M.kind==="admin"?M.worlds.find(($1)=>$1.name===p.parent)?.token??null:M.worlds.some(($1)=>$1.name===p.parent)?Q:null:null,s=async($1)=>{let a=HH($1.parentOrigin);if(a&&a!==P0){YU($1.name),window.location.assign(`${a}${e1}/${$1.parent}#close=${encodeURIComponent($1.name)}`);return}if($1.made)await R0(v($1.parent),`/-/${$1.parent}/branches/${$1.name}`,{method:"DELETE"}).catch(()=>null),YU($1.name);S0($1.parent.split("/"))};return F.jsxDEV("main",{className:l?"app workspace":"app home",children:[l?null:F.jsxDEV("header",{children:[l?F.jsxDEV(rA,{},void 0,!1,void 0,this):null,F.jsxDEV(WJ,{href:`${N4()&&N4()!==P0?N4():""}${e1}/`,onClick:($1)=>{if(N4()&&N4()!==P0)return;$1.preventDefault(),S0([])}},void 0,!1,void 0,this),F.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[l?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:l.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:`${e1}/${l}`,className:"crumb-world",onClick:($1)=>{$1.preventDefault(),S0(l.split("/"))},children:l.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,x?F.jsxDEV("span",{children:[" / ",x]},void 0,!0,void 0,this):null,e&&b==="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()}/${l?encodeURIComponent(l.split("/")[0]):""}`,title:`Back to the platform at ${new URL(o2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:l?`${l.split("/")[0]}'s Worlds`:new URL(o2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,l?null:F.jsxDEV("span",{className:"mode",children:G?"on this machine":f?`signed in as ${f}`:M.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),l||G?null:F.jsxDEV("button",{onClick:C,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l?F.jsxDEV(UV,{name:l,token:o(l),twin:x,tab:e?b??"overview":"overview",arg:e?m:void 0,...e&&c?{sub:c}:{},admin:p?null:M.kind==="admin"?Q:null,snapshot:p,parentToken:k,who:{local:G,person:f||null,admin:M.kind==="admin"},onSignOut:C,onReturn:s,opens:($1)=>!!i3()[$1]||M.kind==="admin"&&M.worlds.some((a)=>a.name===$1),onRemoved:()=>{N(Q),S0([])},onWho:w,onEnded:u,worlds:M.worlds.map(($1)=>$1.name)},l,!1,void 0,this):F.jsxDEV($V,{mode:M,admin:M.kind==="admin"?Q:null,reload:()=>N(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $V({mode:Q,admin:U,reload:G}){let[K,H]=Z1.useState(""),[Y,z]=Z1.useState(""),[L,M]=Z1.useState(""),[R,T]=Z1.useState(null),A=async(b)=>{if(!await J3({title:`Rotate the tokens of ${b}?`,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 E=await R0(U,`/-/worlds/${b}/rotate`,{method:"POST"}),D=await E.json().catch(()=>({}));T(E.ok?`rotated ${b}: the new tokens are shown once — token ${D.token} · read token ${D.readToken}`:D.error?R2(D.error).text:`answered ${E.status}`),await G()},O=async(b)=>{let E=await R0(U,`/-/worlds/${b}`,{method:"DELETE"}),D=await E.json().catch(()=>({}));T(E.ok?`removed ${b}`:D.error?R2(D.error).text:`answered ${E.status}`),await G()},[P,N]=Z1.useState(!1),[v,f]=Z1.useState(!1),[w,u]=Z1.useState(""),C=async(b)=>{b.preventDefault(),T(null),N(!0);try{let E=await R0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:L.split(",").map((g)=>g.trim()).filter(Boolean)})}),D=await E.json();if(!E.ok){T(D.error?R2(D.error).text:`the host answered ${E.status}`);return}T(`provisioned ${D.name}`),z(""),M(""),f(!1),await G()}finally{N(!1)}},j=w.trim().toLowerCase(),y=Q.worlds.filter((b)=>!j||b.name.toLowerCase().includes(j)||b.twins.some((E)=>E.vendor.includes(j))),h=[...new Set(y.map((b)=>b.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),f(!0)},children:[F.jsxDEV(X0,{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:w,onChange:(b)=>u(b.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&!v?F.jsxDEV("p",{role:"status",className:"home-note",children:R},void 0,!1,void 0,this):null,h.map((b)=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:b},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:y.filter((E)=>E.name.split("/")[0]===b).map((E)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${e1}/${E.name}`,onClick:(D)=>{D.preventDefault(),S0(E.name.split("/"))},children:[F.jsxDEV(X0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:E.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:E.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:E.twins.map((D)=>F.jsxDEV("span",{title:t1(D.vendor),children:F.jsxDEV(U2,{vendor:D.vendor},void 0,!1,void 0,this)},D.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 ${E.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(D)=>{D.currentTarget.closest("details")?.removeAttribute("open"),A(E.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(D)=>{D.currentTarget.closest("details")?.removeAttribute("open"),J3({title:`Remove ${E.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:E.name}).then((g)=>{if(g)O(E.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},E.name,!0,void 0,this))},void 0,!1,void 0,this)]},b,!0,void 0,this)),y.length===0?F.jsxDEV("p",{className:"mode home-note",children:j?`No World matches ${w}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(h5,{open:v,onClose:()=>{if(!P)f(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>f(!1),disabled:P,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:P,children:P?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:C,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:K,onChange:(b)=>H(b.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:(b)=>z(b.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:(b)=>M(b.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"status",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var QV=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],qV=(Q,U)=>{let G=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&G?`${X3}/${Q}/${U.twin}${G.path.startsWith("/")?G.path:`/${G.path}`}`:null},eR={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 U4(Q){let U=Q.operation??Q.op,G=(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(G),z=U.replace(/[._]+/g," ").trim(),L=Y?`${H} seeded`:eR[G]?`${H} ${eR[G]}`:`${z.charAt(0).toUpperCase()}${z.slice(1)}`,M=Q.fields??{},R=["title","name","email","text","subject","summary","description"].map((A)=>M[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=R===null?null:R.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,O,P)=>`${O==="!"?"@":O}${P}`).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 UV({name:Q,token:U,twin:G,tab:K,arg:H,sub:Y,admin:z,snapshot:L,parentToken:M,who:R,onSignOut:T,onReturn:A,opens:O,onRemoved:P,onWho:N,onEnded:v,worlds:f=[]}){let[w,u]=Z1.useState("pending"),[C,j]=Z1.useState(null),[y,h]=Z1.useState(0),[b,E]=Z1.useState(null);Z1.useEffect(()=>{let G1=!0;return j(null),R0(U,`/-/${Q}/session`,{method:"POST"}).then(async(R1)=>{let C1=await R1.json().catch(()=>({}));if(FO(C1.issuer),C1.who)N?.(C1.who);E(typeof C1.signsAs==="string"?C1.signsAs:null);let L1=tJ(C1.origin)?.origin;if(R1.status===409&&L1&&L1!==P0){YH(L1,U,Q);return}if(!G1)return;if(u(!R1.ok?"unknown":C1.scope==="read"?"read":C1.scope==="write"?"write":"unknown"),!R1.ok)j(C1.error?R2(C1.error).text:`answered ${R1.status}`)}).catch((R1)=>{if(G1)u("unknown"),j(`the World did not answer: ${R1 instanceof Error?R1.message:String(R1)}`)}),()=>{G1=!1}},[Q,U,y]);let D=C?{state:"error",error:C}:w==="pending"?{state:"pending"}:{state:"ok",scope:w},g=w==="write",e=(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??""))u("read")},()=>null)},[q1,Q1]=Z1.useState(0);Z1.useEffect(()=>{let G1=setInterval(()=>{if(!document.hidden)Q1((R1)=>R1+1)},5000);return()=>clearInterval(G1)},[]);let[x,m]=Z1.useState(0),c=f0(U,`/-/${Q}/clock`,q1+x);Z1.useEffect(()=>{if(d3&&!L&&c.state==="error"&&c.status===401)v?.()},[c,L,v]);let l=f0(U,`/-/${Q}/twins`),p=f0(U,`/-/${Q}/branches`,x),o=f0(U,`/-/${Q}/map`,Math.floor(q1/2)),k=!(p.state==="error"&&(p.status===404||p.status===405)),s=QV.includes(K)?K:"overview",$1=l.state==="ok"?l.data.twins.map((G1)=>G1.twin):[];if(G&&l.state==="ok"&&!$1.includes(G))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(Y9,{title:`${Q} has no ${G}`,action:F.jsxDEV("a",{href:`${e1}/${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 ",G,". 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=s==="vendors"&&H?H:void 0,H1=()=>{u("pending"),h((G1)=>G1+1)};if(s==="canvas"||s==="vendors"&&!a||K==="screens"&&!H)return F.jsxDEV(kV,{name:Q,token:U,twins:l,session:D,retry:H1,snapshot:L,back:()=>S0(Q.split("/")),canWrite:g&&!L},void 0,!1,void 0,this);let z1=K==="settings"?{kind:"settings",tab:((G1)=>LO.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=G?"vendor":K==="screens"&&H?"screen":s==="vendors"&&a?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(LV,{name:Q,token:U,view:T1,win:z1,who:R,snapshot:L,onReturn:A,onSignOut:T,worlds:f,session:D,retry:H1,...T1==="vendor"?{arg:G??a}:T1==="events"||T1==="trace"||T1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:l,map:o,branches:k?p:null,clock:c,canWrite:g&&!L,refused:e,signsAs:b,opens:O,tick:q1,admin:z,onRemoved:P,onClock:()=>m((G1)=>G1+1),scope:L?"read":w},void 0,!1,void 0,this)}function X0({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:(sR[Q]??[]).map(([G,K],H)=>Z1.default.createElement(G,{key:H,...K}))},void 0,!1,void 0,this)}function LU(Q){let U=(G)=>{let K=(G.operation??G.op).toLowerCase();return K.includes(".")?K.slice(K.lastIndexOf(".")+1):K};if(Q.some((G)=>/^(delete|remove|archive|revoke)/.test(U(G))||G.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 LO=[["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"]],GV=(Q,U)=>{let G=U.split("/").pop()??U,K=Q.split("/").pop()??"";return G.startsWith(`${K}-`)?G.slice(K.length+1):G},Z7=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function BO({record:Q,history:U}){let G=Q.writes[Q.writes.length-1],K=U4(G),H=LU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),z=Q.writes[0].occurredAt,L={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===G.subject.type&&A.subject.id===G.subject.id&&A.occurredAt<=z)Object.assign(L,A.fields??{})}let M={...L};for(let A of Q.writes)Object.assign(M,A.fields??{});let R=H.tone==="added"&&Object.keys(L).length===0,T=[...new Set([...Object.keys(L),...Object.keys(M)])].filter((A)=>!jO(L[A],M[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??r3(G)}: 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(X0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(U2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??r3(G)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[t1(Q.twin)," · ",G.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:r3(G)},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:U4(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(V0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",sJ(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),R?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children: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),R?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 AO({records:Q,selected:U,onPick:G,label:K}){let[H,Y]=Z1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),z=(R)=>{Y(R);try{localStorage.setItem("volter.console.records",R?"tree":"path")}catch{}},L=(R,T)=>{let A=R.writes[R.writes.length-1],O=U4(A),P=LU(R.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===R.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===R.key,onClick:()=>G(R.key),children:[T?null:F.jsxDEV(U2,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??r3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[Z7(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${i0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${P.tone}`,title:P.word,"aria-label":P.word,children:F.jsxDEV(X0,{name:P.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R.key,!1,void 0,this)},M=[...new Set(Q.map((R)=>R.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>z(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>z(!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((R)=>{let T=Q.filter((A)=>A.twin===R);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(U2,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:t1(R)},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)]},R,!0,void 0,this)}):Q.map((R)=>L(R,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZV({name:Q,token:U,branches:G,opens:K,refused:H,onChanged:Y}){let[z,L]=Z1.useState(""),[M,R]=Z1.useState(!1),T=G?.state==="ok"&&G.data.checkedOut||Q.split("/")[1],A=G?.state==="ok"&&G.data.named?.length?G.data.named:[{name:T,running:!0}],O=G?.state==="ok"?G.data.branches:[],P=z.trim().toLowerCase(),N=(f)=>!P||f.toLowerCase().includes(P),v=(f)=>{f.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(X0,{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(X0,{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:z,onChange:(f)=>L(f.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(f)=>{v(f),R(!0)},disabled:!G,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((f)=>N(f.name)).map((f)=>F.jsxDEV("li",{className:f.name===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:f.name===T?F.jsxDEV(X0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(X0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:f.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:f.name===T?"served here":f.running?"running":"stopped"},void 0,!1,void 0,this)]},f.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),O.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:O.filter((f)=>N(f.name)).map((f)=>{let w=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(X0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:GV(Q,f.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:f.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(V0,{iso:f.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u=f.expiresAt?`Goes away ${new Date(f.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(f.name)?F.jsxDEV("a",{href:`${e1}/${f.name}`,title:u,onClick:(C)=>{C.preventDefault(),v(C),WO(f.name,f.name.split("/"))},children:w},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${u}. Its tokens went to whoever made it; it opens from their page.`,children:w},void 0,!1,void 0,this)},f.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${e1}/${Q}/~/branches`,onClick:(f)=>{f.preventDefault(),v(f),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(RO,{name:Q,token:U,open:M,onClose:()=>R(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MO({name:Q,view:U,changes:G,changesets:K}){let H=(Y)=>(z)=>{z.preventDefault(),S0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${e1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",G?F.jsxDEV("span",{className:"count",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${e1}/${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 FV({name:Q,token:U,sets:G,sub:K,signsAs:H,canWrite:Y,rooted:z,refused:L,onChanged:M,changes:R,withScreens:T,required:A}){let[O,P]=Z1.useState(null),[N,v]=Z1.useState(!1),f=G.state==="ok"?[...G.data.changesets].sort((E,D)=>D.createdAt.localeCompare(E.createdAt)):[],w=f.find((E)=>E.name===K)??f[0],u=Z1.useMemo(()=>{let E=new Map;for(let D of w?SO(w):[]){let g=`${D.twin}:${D.entry.subject.type}:${D.entry.subject.id}`,e=E.get(g)??{key:g,twin:D.twin,writes:[]};e.writes.push(D.entry),E.set(g,e)}return[...E.values()]},[w]),C=u.find((E)=>E.key===O)??u[0],j=f0(U,C?`/-/${Q}/log/${C.twin}`:null),y={added:0,removed:0,changed:0};for(let E of u)y[LU(E.writes).tone]=(y[LU(E.writes).tone]??0)+1;let h=w?AU(w):null,b=w?fO(w,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(MO,{name:Q,view:"history",changes:R,changesets:f.length},void 0,!1,void 0,this),F.jsxDEV(a2,{load:G,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:f.map((E)=>{let D=w?.name===E.name,g=AU(E).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${e1}/${Q}/~/changes/changesets/${E.name}`,className:D?"on":void 0,"aria-current":D?"true":void 0,onClick:(e)=>{e.preventDefault(),P(null),S0([...Q.split("/"),"~","changes","changesets",E.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:UH(E)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[E.owner??(E.cutBy?zU(E.cutBy):"unrecorded")," • ",F.jsxDEV(V0,{iso:E.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(X0,{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)},E.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:[G.state==="ok"&&!w?F.jsxDEV(Y9,{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,w&&h&&b?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:UH(w)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(X0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",i0(u.length,"changed record"),y.added?F.jsxDEV("span",{className:"plus",children:[" +",y.added]},void 0,!0,void 0,this):null,y.removed?F.jsxDEV("span",{className:"minus",children:[" −",y.removed]},void 0,!0,void 0,this):null,y.changed?F.jsxDEV("span",{className:"dot",children:[" •",y.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:w.name},void 0,!1,void 0,this)," · ",F.jsxDEV(V0,{iso:w.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",w.owner??(w.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(w.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",w.cutBy?w.pushedBy&&w.applied===null&&w.cutBy==="machine"?"the machine it was cut on":zU(w.cutBy):"unrecorded"],...w.pushedBy?[["Pushed by",zU(w.pushedBy)]]:[]].map(([E,D])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:E},void 0,!1,void 0,this)," ",D]},E,!0,void 0,this))},void 0,!1,void 0,this),w.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:w.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>v(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${h.tone}`,children:h.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.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(AO,{records:u,...C?{selected:C.key}:{},onPick:P,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:C?F.jsxDEV(BO,{record:C,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(h5,{open:N,onClose:()=>v(!1),title:`Review: ${UH(w)}`,wide:!0,children:[F.jsxDEV(qO,{name:Q,token:U,signsAs:H,c:w,canWrite:Y,rooted:z,refused:L,onChanged:M,part:"head",required:A},`h:${w.name}`,!1,void 0,this),F.jsxDEV(qO,{name:Q,token:U,signsAs:H,c:w,canWrite:Y,rooted:z,refused:L,onChanged:M,part:"review",required:A},`r:${w.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 XV({name:Q,token:U,vendors:G,vendor:K,tick:H}){let[Y,z]=Z1.useState(_O*4),[L,M]=Z1.useState(""),[R,T]=Z1.useState(null),A=f0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?SV(A.data.entries):[],P=[...new Set(O.map((y)=>U4(y.entry).what))].sort(),N=O.filter((y)=>!L||U4(y.entry).what===L),v=N.find((y)=>V9(y)===R)??N[0],f=(y)=>(h)=>{h.preventDefault(),T(null),S0([...Q.split("/"),"~","events",...y?[y]:[]])},w=v?.entry.input&&typeof v.entry.input==="object"?v.entry.input.body:void 0,u=v?nv(v.entry.traceparent):null,C=v?JO(v):null,j=v?PV(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:`${e1}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:f(),children:"All"},void 0,!1,void 0,this),G.map((y)=>F.jsxDEV("a",{href:`${e1}/${Q}/~/events/${y}`,className:K===y?"on":void 0,"aria-current":K===y?"page":void 0,onClick:f(y),children:[F.jsxDEV(U2,{vendor:y},void 0,!1,void 0,this),t1(y)]},y,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:L,onChange:(y)=>{M(y.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),P.map((y)=>F.jsxDEV("option",{value:y,children:y},y,!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:N.map((y)=>{let h=U4(y.entry),b=JO(y),E=v&&V9(y)===V9(v);return F.jsxDEV("tr",{className:E?"on":void 0,"aria-selected":E,onClick:()=>T(V9(y)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(V0,{iso:y.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(U2,{vendor:y.twin},void 0,!1,void 0,this),t1(y.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:h.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:h.label?`“${h.label}”`:F.jsxDEV("code",{children:r3(y.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:sJ(y.entry,y.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:b?F.jsxDEV("span",{className:b.bad?"badge cs-bad":b.status==="deployed"?"badge cs-done":"badge",children:b.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:KO(y.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V9(y),!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:IO(v.entry)},void 0,!1,void 0,this),C?F.jsxDEV("span",{className:C.bad?"badge cs-bad":"badge cs-good",children:C.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[v.entry.subject.type,":",r3(v.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(V0,{iso:v.entry.occurredAt},void 0,!1,void 0,this)," · ",sJ(v.entry,v.caller)]},void 0,!0,void 0,this),u?F.jsxDEV("a",{href:`${e1}/${Q}/~/trace/${u.trace}`,onClick:(y)=>{y.preventDefault(),S0([...Q.split("/"),"~","trace",u.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),w!==void 0?F.jsxDEV(wV,{body:w},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(([y,h])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:y},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},y,!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(NO,{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((y)=>y.entry.receipt?.status??"landed copy").join(" · "):CV(v.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[v?`${N.indexOf(v)+1} of ${N.length}`:N.length," events",K?` at ${t1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>z((y)=>y+_O*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KV({name:Q,token:U,id:G}){let K=/^[0-9a-f]{32}$/.test(G),H=f0(U,K?`/-/${Q}/timeline?trace=${G}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-OO(A,O)):[],[z,L]=Z1.useState(null),M=Y[0]?Date.parse(Y[0].entry.occurredAt):0,R=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:`${e1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),S0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(X0,{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]?`${U4(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:G.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!K?F.jsxDEV("p",{role:"alert",children:[G?`${G} 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(V0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[R," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children: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(Y9,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(R/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let O=Date.parse(A.entry.occurredAt)-M,P=V9(A),N=U4(A.entry);return F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("div",{className:z===P?"ws-span on":"ws-span",role:"row",onClick:()=>L(z===P?null:P),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(U2,{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:[N.what,N.label?` “${N.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${O/R*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${O/R*100}%`},children:["+",O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z===P?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:IO(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)," · ",sJ(A.entry,A.caller)," · ",KO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(NO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},P,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function HV({name:Q,token:U,vendor:G,withScreens:K,tick:H}){let Y=f0(U,`/-/${Q}/checkpoint/${G}`,Math.floor(H/6)),z=Y.state==="ok"?Y.data.tree.filter((j)=>j.deleted!==!0):[],L=[...new Set(z.map((j)=>j.type))].map((j)=>({type:j,count:z.filter((y)=>y.type===j).length})).sort((j,y)=>Number(j.type.startsWith("_"))-Number(y.type.startsWith("_"))||Z7(j.type).localeCompare(Z7(y.type))),[M,R]=Z1.useState(null),[T,A]=Z1.useState(null),O=L.some((j)=>j.type===M)?M:L[0]?.type,P=z.filter((j)=>j.type===O),N=P.find((j)=>j.id===T)??P[0],v=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],f=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),w=(j)=>!f.has(j)&&P.some((y)=>y[j]!==void 0&&y[j]!==null&&typeof y[j]!=="object"),u=[...new Set(P.flatMap((j)=>Object.keys(j)))],C=[...v.filter(w),...u.filter((j)=>!v.includes(j)&&w(j))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${t1(G)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(U2,{vendor:G},void 0,!1,void 0,this),t1(G)]},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:O===j.type?"on":void 0,"aria-current":O===j.type?"true":void 0,onClick:(y)=>{y.preventDefault(),R(j.type),A(null)},children:[F.jsxDEV(X0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:Z7(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:`${e1}/${Q}/~/events/${G}`,onClick:(j)=>{j.preventDefault(),S0([...Q.split("/"),"~","events",G])},children:[F.jsxDEV(X0,{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:`${e1}/${Q}/~/screens/${G}`,onClick:(j)=>{j.preventDefault(),S0([...Q.split("/"),"~","screens",G])},children:[F.jsxDEV(X0,{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(Y9,{title:`${t1(G)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,P.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${Z7(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),C.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:P.map((j)=>F.jsxDEV("tr",{className:N?.id===j.id?"on":void 0,"aria-selected":N?.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),C.map((y)=>F.jsxDEV("td",{className:"ws-cell-clip",children:j[y]===void 0||j[y]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(j[y])},y,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof j.updatedAt==="string"?F.jsxDEV(V0,{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:N?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:Z7(N.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:N.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(N).filter(([j])=>j!=="type"&&j!=="id").map(([j,y])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:j},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)]},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:N?`${P.indexOf(N)+1} of ${i0(P.length,Z7(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function YV({name:Q,vendor:U,url:G,mapError:K,holding:H,session:Y,retry:z}){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(U2,{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:`${e1}/${Q}/~/vendors/${U}`,onClick:(L)=>{L.preventDefault(),S0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(X0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),G?F.jsxDEV("a",{href:G,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(X0,{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"||G===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:z,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&G===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"&&G?F.jsxDEV("iframe",{title:`${t1(U)}, as this World shows it`,src:G},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function zV({name:Q,token:U,who:G,scope:K}){let[H,Y]=Z1.useState(0),z=f0(U,`/-/${Q}/twins`),L=f0(U,`/-/${Q}/rules`,H),M=L.state==="ok"?L.data.changesets:null,[R,T]=Z1.useState(null),[A,O]=Z1.useState(null),[P,N]=Z1.useState(!1),[v,f]=Z1.useState([]),w=R??M?.approvals??1,u=A??M?.summary??"required",C=M!==null&&(w!==(M.approvals??1)||u!==(M.summary??"required")),j=(g,e)=>{if(f((q1)=>[{ok:g,text:e,at:new Date().toISOString(),n:++oJ},...q1].slice(0,3)),!g)J2(e,"error")},y=async(g)=>{g.preventDefault(),N(!0);try{let e=await R0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:w,summary:u}})});if(!e.ok){j(!1,`Save: ${await R5(e)}`);return}j(!0,`Saved: ${w===0?"no approval":i0(w,"approval")} before a deploy; a summary ${u==="required"?"required":"generated when none is given"}.`),T(null),O(null),Y((q1)=>q1+1)}finally{N(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},b=G.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:G.person},void 0,!1,void 0,this),G.local?", signed in on this machine":""]},void 0,!0,void 0,this):G.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):G.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),E=z.state==="ok"?z.data.twins.filter((g)=>g.root?.url):[],D=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:(g)=>void y(g),"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 ",b,". 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(D)||M===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:u==="required",onChange:()=>O("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:u==="generated",onChange:()=>O("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(X0,{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:w,onChange:(g)=>T(Number(g.target.value)),disabled:Boolean(D)||M===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((g)=>F.jsxDEV("option",{value:g,children:g===0?"no one: verified is enough":g===1?"1 person":`${g} different people`},g,!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),z.state==="ok"&&E.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,E.length?F.jsxDEV("ul",{className:"ws-rule-list",children:E.map((g)=>F.jsxDEV("li",{children:[F.jsxDEV(U2,{vendor:g.twin},void 0,!1,void 0,this),t1(g.twin),": ",h[g.root.deploy??"gated"]??"gated"]},g.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${e1}/${Q}/~/settings/services`,onClick:(g)=>{g.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(o6,{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(D)||P||!C,title:D??void 0,children:P?"Saving…":"Save"},void 0,!1,void 0,this),C?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,D?F.jsxDEV("span",{className:"mode",children:[D,"."]},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 WV({who:Q,scope:U,snapshot:G,portal:K,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[z,L]=G?["A snapshot",`of ${G.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(X0,{name:Q.person?"user":Q.local?"monitor":G?"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:z},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||G?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(X0,{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 LV({name:Q,token:U,view:G,sub:K,arg:H,win:Y,who:z,snapshot:L,onReturn:M,onSignOut:R,worlds:T,session:A,retry:O,twins:P,map:N,branches:v,clock:f,canWrite:w,refused:u,signsAs:C,opens:j,tick:y,admin:h,onRemoved:b,onClock:E,scope:D}){let g=vO(Q,U,y,u),[e,q1]=Z1.useState(0),Q1=e*1e5+Math.floor(y/2),x=f0(U,`/-/${Q}/diff`,Q1),m=f0(U,`/-/${Q}/changesets`,Q1),c=f0(U,`/-/${Q}/rules`,Q1),[l,p]=Z1.useState(null),o=(A1)=>(_0)=>{_0?.preventDefault(),S0([...Q.split("/"),"~",...A1])},k=P.state==="ok"?P.data.twins.map((A1)=>A1.twin):[],s=new Map((N.state==="ok"?N.data.twins:[]).flatMap((A1)=>{let _0=qV(Q,A1);return _0?[[A1.twin,_0]]:[]})),$1=[...s.keys()],a=N.state==="ok"?N.data.twins.filter((A1)=>A1.root).map((A1)=>A1.twin):[],H1=(A1)=>N.state==="ok"?(N.data.twins.find((_0)=>_0.twin===A1)?.resources??[]).reduce((_0,u1)=>_0+u1.count,0):0,P1=v?.state==="ok"&&v.data.checkedOut||Q.split("/")[1],z1=Z1.useMemo(()=>{if(x.state!=="ok")return[];let A1=new Map;for(let _0 of x.data.changes){let u1=`${_0.twin}:${_0.entry.subject.type}:${_0.entry.subject.id}`,E0=A1.get(u1)??{key:u1,twin:_0.twin,writes:[]};E0.writes.push(_0.entry),A1.set(u1,E0)}return[...A1.values()]},[x]),T1=z1.find((A1)=>A1.key===l)??z1[0],G1=f0(U,G==="changes"&&T1?`/-/${Q}/log/${T1.twin}`:null,Q1),R1=x.state==="ok"?x.data.changes.length:0,C1=g.waiting.length,L1=g.there,S1=g.origin.state==="ok"?g.origin.data.origin:null,b1=!w?"This session reads the World; it changes nothing":!L1?"No remote: name one in Settings › Remote":null,l1=(A1,_0,u1,E0,J0,O2)=>F.jsxDEV("a",{href:`${e1}/${Q}/~/${E0}`,className:A1?"on":void 0,"aria-current":A1?"page":void 0,onClick:J0,children:[_0,F.jsxDEV("span",{children:u1},void 0,!1,void 0,this),O2?F.jsxDEV("span",{className:"count",children:O2},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),h1=(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(WJ,{href:`${e1}/${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(X0,{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(X0,{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:[z.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:`${e1}/${A1}`,className:A1===Q?"on":void 0,onClick:(_0)=>{_0.preventDefault(),h1(_0),S0(A1.split("/"))},children:[A1===Q?F.jsxDEV(X0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(X0,{name:"globe",size:16},void 0,!1,void 0,this),A1]},A1,!0,void 0,this)),F.jsxDEV("a",{href:`${N4()&&N4()!==P0?N4():""}${e1}/`,onClick:(A1)=>{if(N4()&&N4()!==P0)return;A1.preventDefault(),h1(A1),S0([])},children:[F.jsxDEV(X0,{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:[X3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(QH,{text:XU({platform:o2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!z.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:[X3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(QH,{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:[X3,"/",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(QH,{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:`${e1}/${Q}/~/settings`,onClick:(A1)=>{h1(A1),o(["settings"])(A1)},children:[F.jsxDEV(X0,{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(ZV,{name:Q,token:U,branches:v,opens:j,refused:u,onChanged:E},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:P1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),S1?F.jsxDEV("a",{href:`${e1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",S1.namespace,C1?F.jsxDEV("b",{children:[" ↑",C1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${e1}/${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:`${e1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:f.state==="ok"?F.jsxDEV(F.Fragment,{children:[f.data.frozen?"stopped at ":"",F.jsxDEV(V0,{iso:f.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 g.pull(),disabled:Boolean(b1)||g.busy!==null,title:b1??`Fetch what ${L1} has and move this branch onto it`,children:[F.jsxDEV(X0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),g.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void g.push(),disabled:Boolean(b1)||g.busy!==null||C1===0,title:b1??(C1?`Push ${i0(C1,"changeset")} to ${L1}`:`Every changeset is at ${L1}`),children:[F.jsxDEV(X0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),g.busy==="Push"?"Pushing…":"Push",C1?F.jsxDEV("span",{className:"ws-btn-count",children:C1},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(X0,{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(X0,{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(V0,{iso:L.at},void 0,!1,void 0,this),": a read-only snapshot",L.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(V0,{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,g.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(o6,{log:g.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:`${e1}/${Q}/~/screens`,className:G==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${p8(k.map(t1))}`,children:[F.jsxDEV(X0,{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(U2,{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),l1(G==="changes"||G==="history",F.jsxDEV(X0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),z1.length?String(z1.length):void 0),l1(G==="events"&&!H||G==="trace",F.jsxDEV(X0,{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(Z1.default.Fragment,{children:l1(G==="vendor"&&H===A1,F.jsxDEV(U2,{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),l1(!1,F.jsxDEV(X0,{name:"cloud",size:16},void 0,!1,void 0,this),L1?"origin":"Name a remote…","remote",o(["remote"]),C1?`↑${C1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[G==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(MO,{name:Q,view:"changes",changes:z1.length,changesets:m.state==="ok"?m.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:x.state==="ok"?`${i0(z1.length,"record")} · ${i0(R1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(a2,{load:x,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(AO,{records:z1,...T1?{selected:T1.key}:{},onPick:p,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[x.state==="ok"&&!T1?F.jsxDEV(Y9,{title:"No changes on this branch",action:C1>0&&L1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(b1)||g.busy!==null,onClick:()=>void g.push(),children:["Push ",i0(C1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",x.data.base.at?F.jsxDEV(V0,{iso:x.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:x.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,T1?F.jsxDEV(BO,{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(EV,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(X0,{name:z.person?"user":z.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:z.person??(z.local?"This machine":z.admin?"The host's admin":"A token"),account:`${e1}/${Q}/~/settings/account`,branch:P1},name:Q,token:U,changes:R1,canWrite:w,refused:u,onCut:()=>{q1((A1)=>A1+1),p(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,G==="history"?F.jsxDEV(FV,{name:Q,token:U,sets:m,changes:z1.length,withScreens:$1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:C,canWrite:w,rooted:a,refused:u,onChanged:()=>q1((A1)=>A1+1)},void 0,!1,void 0,this):null,G==="events"?F.jsxDEV(XV,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:y},H??"",!1,void 0,this):null,G==="trace"?F.jsxDEV(KV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,G==="vendor"&&H?F.jsxDEV(HV,{name:Q,token:U,vendor:H,withScreens:$1.includes(H),tick:y},H,!1,void 0,this):null,G==="screen"&&H?F.jsxDEV(YV,{name:Q,vendor:H,url:N.state==="ok"?s.get(H)??null:void 0,...N.state==="error"?{mapError:N.error}:{},holding:AV(N.state==="ok"?N.data.twins.find((A1)=>A1.twin===H)?.resources??[]:[]),session:A,retry:O},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(h5,{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:LO.map(([A1,_0,u1])=>F.jsxDEV("a",{href:`${e1}/${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(X0,{name:u1,size:16},void 0,!1,void 0,this),_0]},A1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[D==="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(WV,{who:z,scope:D,snapshot:L,portal:o2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(zV,{name:Q,token:U,who:z,scope:D},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(xV,{name:Q,token:U,canWrite:w,tick:y,refused:u},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(gV,{name:Q,token:U,admin:h,canWrite:w,refused:u,onRemoved:b,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(mV,{name:Q,token:U,canWrite:w,refused:u},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(_V,{},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(h5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(RV,{name:Q,token:U,canWrite:w,branches:v,opens:j,...Y.open?{open:Y.open}:{},onChanged:E,refused:u},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QH({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 zH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,BV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),AV=(Q,U=4)=>{let G=[...Q].filter((K)=>K.count>0).sort((K,H)=>H.count-K.count);return G.length?G.slice(0,U).map((K)=>i0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(G.length>U?` · +${G.length-U} more`:""):"nothing yet"},TO=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 MV({name:Q,token:U,clock:G,canWrite:K,onChanged:H,refused:Y,open:z}){let[L,M]=Z1.useState(!1),[R,T]=Z1.useState(""),[A,O]=Z1.useState(""),[P,N]=Z1.useState(null),[v,f]=Z1.useState(!1),w=G.state==="ok"?G.data:null,u=async(h,b,E)=>{f(!0),N(null);try{let D=await R0(U,`/-/${Q}/${b}`,{method:b==="clock"?"PUT":"POST",body:JSON.stringify(E)});if(!D.ok){Y(D),N({ok:!1,text:await R5(D)});return}let g=await D.json();N({ok:!0,text:`${h} — the World is at ${new Date(g.at).toLocaleString()}`}),M(!1),H()}catch(D){N({ok:!1,text:`the World did not answer: ${D instanceof Error?D.message:String(D)}`})}finally{f(!1)}},C=(h)=>{h.preventDefault();let b=new Date(R);if(Number.isNaN(b.getTime())){N({ok:!1,text:"Pick a date and time."});return}if(w&&b.getTime()<Date.parse(w.at)){N({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(w.at).toLocaleString()}.`});return}u("Clock set","clock",{at:b.toISOString()})},j=(h,b)=>{u(`Advanced ${b}`,"clock/advance",{by:h})},y=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${w?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:G.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):G.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",G.error]},void 0,!0,void 0,this):w.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(V0,{iso:w.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(V0,{iso:w.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&&w?F.jsxDEV("details",{className:z?"clock-more inline":"clock-more",open:z||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:z?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(y9(tR(w.at))),N(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),y.map(([h,b])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${b}`,disabled:v||!w.frozen,title:w.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>j(h,b),children:b},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){N({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}j(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>O(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!w.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:v||!w.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!w.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:C,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:y9(tR(w.at)),onChange:(h)=>T(h.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:v,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>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,P?F.jsxDEV("p",{role:P.ok?"status":"alert",children:P.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function TV({name:Q,token:U,clock:G,refused:K}){let[H,Y]=Z1.useState(!1),[z,L]=Z1.useState(""),[M,R]=Z1.useState(null),[T,A]=Z1.useState(!1),O=G.state==="ok"?G.data.at:new Date().toISOString(),P=Z1.useRef(null);return Z1.useEffect(()=>{if(!H)return;let v=(w)=>{if(w.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),P.current?.querySelector("button")?.focus()},f=(w)=>{if(!P.current?.contains(w.target))Y(!1)};return document.addEventListener("keydown",v),document.addEventListener("click",f),()=>{document.removeEventListener("keydown",v),document.removeEventListener("click",f)}},[H]),F.jsxDEV("div",{className:"as-of",ref:P,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),L(y9(O)),R(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(v)=>{v.preventDefault(),R(null);let f=new Date(z);if(Number.isNaN(f.getTime())){R("Pick a date and time.");return}if(f.getTime()>Date.parse(O)){R(`That is after the World's present (${new Date(O).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let w=await R0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:f.toISOString()},ttl:3600})});if(!w.ok){K(w),R(await R5(w));return}let u=await w.json();XH({name:u.name,parent:Q,token:u.token,readToken:u.readToken,at:f.toISOString(),expiresAt:u.expiresAt??null,parentOrigin:P0,made:!0});let C=tJ(u.origin)?.origin;if(C&&C!==P0){YH(C,u.readToken,u.name,`${e1}/${u.name}`);return}S0(u.name.split("/"))}catch(w){R(`the World did not answer: ${w instanceof Error?w.message:String(w)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:z,max:y9(O),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 RO({name:Q,token:U,open:G,onClose:K,onMade:H,refused:Y}){let z=(b)=>b.split("/").pop()??b,[L,M]=Z1.useState(!1),[R,T]=Z1.useState(null),[A,O]=Z1.useState(""),[P,N]=Z1.useState("now"),[v,f]=Z1.useState(""),[w,u]=Z1.useState("24"),[C,j]=Z1.useState(!0);Z1.useEffect(()=>{if(G)T(null),f(y9(new Date().toISOString()))},[G]);let y=async(b)=>{b.preventDefault(),T(null);let E=P==="at"?new Date(v):null;if(E&&Number.isNaN(E.getTime())){T("Pick a date and time, or make it as of now.");return}if(E&&E.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}M(!0);let D=await R0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(w)*3600),...E?{at:{instant:E.toISOString()}}:C?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(M(!1),!D){T(`${P0} did not answer`);return}if(!D.ok){Y(D),T(await R5(D));return}let g=await D.json();XH({name:g.name,parent:Q,token:g.token??"",readToken:g.readToken,at:(E??new Date).toISOString(),expiresAt:g.expiresAt??null,parentOrigin:P0,...g.origin?{origin:g.origin}:{}}),K(),O(""),J2(`Made ${z(g.name)}`),H()};return F.jsxDEV(h5,{open:G,onClose:()=>{if(!L)K()},title:`New branch of ${z(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:(b)=>void y(b),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:(b)=>O(b.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9\\-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="now",onChange:()=>N("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:C,onChange:(b)=>j(b.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="at",onChange:()=>N("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:v,max:y9(new Date().toISOString()),onChange:(b)=>f(b.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:w,onChange:(b)=>u(b.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function RV({name:Q,token:U,canWrite:G,branches:K,opens:H,open:Y,onChanged:z,refused:L,snapshotOf:M}){let R=f0(U,`/-/${Q}/clock`),T=(u)=>u.split("/").pop()??u,[A,O]=Z1.useState(!1),P=(u)=>(C)=>{C.preventDefault(),S0([...Q.split("/"),"~","branches",...u?u.split("/"):[]])};if(!K)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let N=K.state==="ok"?K.data.branches:[],v=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:T(Q),running:!0}],f=K.state==="ok"?K.data.checkedOut??T(Q):T(Q),w=async(u)=>{if(!await J3({title:`Remove the branch ${T(u)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let C=await R0(U,`/-/${Q}/branches/${u}`,{method:"DELETE"}).catch((j)=>j);if(C instanceof Error){J2(`Remove ${T(u)}: the World did not answer (${C.message})`,"error");return}if(!C.ok){L(C),J2(`Remove ${T(u)}: ${await R5(C)}`,"error");return}YU(u),J2(`Removed ${T(u)}`),z(),S0([...Q.split("/"),"~","branches"])};if(Y){let u=Y.includes("/")?N.find((j)=>j.name===Y):void 0,C=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:`${e1}/${Q}/~/branches`,onClick:P(),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"&&!u&&!C?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,u?F.jsxDEV(OV,{name:Q,b:u,canWrite:G,opens:H(u.name),remove:()=>void w(u.name)},void 0,!1,void 0,this):null,C&&!u?F.jsxDEV(IV,{name:Q,token:U,b:C,served:C.name===f,canWrite:G,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:f},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),G?F.jsxDEV("div",{className:"head-actions",children:[M?null:F.jsxDEV(TV,{name:Q,token:U,clock:R,refused:L},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>O(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(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((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${e1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:u.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.name===f?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):u.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${u.name}`,!0,void 0,this)),N.map((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${e1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:T(u.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:T(u.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.at?.instant?F.jsxDEV(V0,{iso:u.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(V0,{iso:u.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.expiresAt?F.jsxDEV(V0,{iso:u.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},u.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(RO,{name:Q,token:U,open:A,onClose:()=>O(!1),onMade:z,refused:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function OV({name:Q,b:U,canWrite:G,opens:K,remove:H}){let Y=(M)=>M.split("/").pop()??M,z=KH(U.name),L=f0(z,z?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[TO," ",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:()=>WO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,G?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(V0,{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(V0,{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(V0,{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(bV,{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 IV({name:Q,token:U,b:G,served:K,canWrite:H,canServe:Y}){let[z,L]=Z1.useState(!1),[M,R]=Z1.useState(null),T=async()=>{L(!0),R(null);let A=await R0(U,`/-/${Q}/branches/${encodeURIComponent(G.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}L(!1),R(A?await R5(A):`${P0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[TO," ",G.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:z,onClick:()=>void T(),children:z?"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:G.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:G.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:`${e1}/${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 ",G.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 _O=50,V9=(Q)=>`${Q.twin}:${Q.position}`,OO=(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,G]=Q.slice(4).split(" for:");return G?`${U}, for ${G}`: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},sJ=(Q,U)=>{let G=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(G.startsWith("key:")&&G.length>4)return`by ${zU(G)}`;if(G.startsWith("person:")&&G.length>7)return`by ${G.slice(7)}`;if(G==="machine")return"by this machine";if(G==="person")return"by a session with no name";if(G==="key")return"by a key";if(G==="token:read")return"by the read-only token";if(G==="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"},IO=(Q)=>Q.operation??Q.op;function PV(Q){let U=Q.fields??{},G=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...R)=>R.map((T)=>G[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=K("prompt_tokens","input_tokens"),z=K("completion_tokens","output_tokens"),L=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(z!==void 0)H.push(["tokens out",z.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 PO({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(PO,{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 NV=(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,G=Array.isArray(U.messages)?U.messages:null,K=Object.entries(U).filter(([H])=>!(G&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[K.length?F.jsxDEV("dl",{className:"fields",children:K.map(([H,Y])=>F.jsxDEV(Z1.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,G?F.jsxDEV("ol",{className:"messages",children:G.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(PO,{text:NV(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 NO({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(([G,K])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:G},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)]},G,!0,void 0,this))},void 0,!1,void 0,this)}var CV=(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 SV(Q){let U=new Map,G=[],K=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){K.push(Y);continue}let z={...Y,copies:[]};if(G.push(z),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,z);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}`,z)}for(let Y of K){let z=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(z)z.copies.push(Y);else G.push({...Y,copies:[]})}return G.sort(OO)}var qH={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function JO(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 G=U.find((H)=>H.status==="failed"||H.status==="refused"),K=[...U].sort((H,Y)=>(qH[Y.status]??0)-(qH[H.status]??0))[0];return G&&!(qH[K.status]>=5)?{status:G.status,bad:!0}:{status:K.status,bad:!1}}var P4=1280,F3=820,KU=160,q4=72,ZH=120,fV=72,WU="This World shows its branches' sites only on this machine.",s0=(Q)=>`${Q.vendor}:${Q.id}`,U7=(Q)=>`${Q.vendor}:section:${Q.section.id}`,F7=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),BU=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${X3}/${Q}/${U.vendor}${U.at.screen}`:null,wO=(Q,U,G)=>G.at&&("screen"in G.at)?`${X3}/-/${Q}/branches/${U}/pages?${new URLSearchParams({land:`/${U}/${G.vendor}${G.at.screen}`}).toString()}`:BU(U,G),$O=(Q,U)=>Q.include?U.filter((G)=>Q.include.includes(s0(G))||F7(G).some((K)=>Q.include.includes(K))):U.filter((G)=>!(Q.hidden??[]).includes(s0(G)));function jV({data:Q}){let{frame:U,url:G,active:K,picked:H,boards:Y,addTo:z,remove:L,compare:M,grab:R,branch:T}=Q,A=s0(U),O=Y.filter((N)=>N.include&&!N.include.includes(A)&&!F7(U).some((v)=>N.include.includes(v))),P=B0((N)=>N.transform[2]*(q4+ZH)>=fV);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV($H,{isVisible:P||H||K,position:E1.Top,align:"start",className:"frame-label",children:[F.jsxDEV("span",{className:"frame-name",onPointerDown:R,children:[F.jsxDEV(U2,{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(A),title:`${i0(U.changes,"change")} ${T?"on this branch":"here, not in a changeset"}: compare`,children:[F.jsxDEV(X0,{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(A),title:"Compare with a branch of this World","aria-label":`Compare ${U.title} with a branch`,children:F.jsxDEV(X0,{name:"file-diff",size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,H&&O.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(N)=>{if(N.target.value)z(N.target.value,A)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),O.map((N)=>F.jsxDEV("option",{value:N.id,children:N.name},N.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(A),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:P4,height:F3},children:[F.jsxDEV("div",{className:"frame-bar",children:[F.jsxDEV(U2,{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),G?F.jsxDEV("a",{className:"nodrag",href:G,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:G?F.jsxDEV("iframe",{title:U.title,src:G,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==="branch-sites"?WU: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 CO({name:Q,label:U,done:G}){let K=Z1.useRef(!1),H=(Y)=>{if(K.current)return;K.current=!0,G(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 vV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(aR,{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(CO,{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(U2,{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 QO({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*F3/P4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:P4,height:F3,transform:`scale(${420/P4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function VV({name:Q,token:U,frame:G,onClose:K,reads:H,viewing:Y=""}){let[z,L]=Z1.useState(Y?"world":G.since?"before":""),[M,R]=Z1.useState({state:"opening"}),[T,A]=Z1.useState(null),O=Z1.useRef(new Set),P=f0(U,`/-/${Q}/branches`,H),N=P.state==="ok"?P.data.branches.filter((y)=>y.name!==Y&&y.name!==T&&!O.current.has(y.name)):[],v=f0(U,Y?`/-/${Q}/board`:null,H),f=v.state==="ok"?v.data.frames.find((y)=>s0(y)===s0(G)):void 0,w=f0(U,`/-/${Q}/${Y?`branches/${Y}/`:""}board/changes?frame=${encodeURIComponent(s0(G))}`,H),u=async(y,h,b)=>{let E=G.at;if("site"in E){let e=new URL(G.url),q1=h&&/^https?:\/\/\{host\}\./.test(h)?h.replace("{host}",e.hostname.toLowerCase()):null;return q1?{url:`${q1}${e.pathname}${e.search}`}:{why:WU}}let D=`${X3}/-/${Q}/branches/${y}/pages?${new URLSearchParams({land:`/${y}/${G.vendor}${E.screen}`}).toString()}`,g=await fetch(D,{credentials:"same-origin",redirect:"manual"}).catch(()=>null);if(b())return{why:""};return g?.type==="opaqueredirect"?{url:D}:{why:`This World does not show its branches' pages${g?`: ${await R5(g)}`:""}.`}};Z1.useEffect(()=>{if(z==="world"){if(v.state==="loading"){R({state:"opening"});return}let e=f?BU(Q,f):null;R(e?{state:"ok",url:e}:{state:"none",why:v.state==="error"?v.error:"The World has no page here to show."});return}if(!G.at){R({state:"none",why:G.unseen==="branch-sites"?WU:`${t1(G.vendor)}'s twin draws no page for this ${G.kind} yet; its changes are listed below.`});return}if(z===""){R({state:"none",why:"Choose a branch of this World to set beside it."});return}let y=!1;if(z!=="before"){R({state:"opening"});let e=P.state==="ok"?P.data.branches.find((Q1)=>Q1.name===z):void 0,q1=setTimeout(()=>void u(z,e?.sites??null,()=>y).then((Q1)=>{if(!y)R("url"in Q1?{state:"ok",url:Q1.url}:{state:"none",why:Q1.why})}),300);return()=>{y=!0,clearTimeout(q1)}}if(!G.since){R({state:"none",why:"Nothing here has changed since the World was last cut."});return}R({state:"opening"});let h=new Date(Date.parse(G.since)-1).toISOString(),b=null,E=setTimeout(()=>void(async()=>{let e=await R0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:h},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!e?.ok){R({state:"none",why:`The World made no copy of itself as it was then${e?`: ${await R5(e)}`:""}.`});return}let q1=await e.json();if(b=q1.name,A(q1.name),O.current.add(q1.name),y){R0(U,`/-/${Q}/branches/${q1.name}`,{method:"DELETE"}).catch(()=>null);return}let Q1=await u(q1.name,q1.sites??null,()=>y);if(!y)R("url"in Q1?{state:"ok",url:Q1.url,at:h}:{state:"none",why:Q1.why})})(),500),D=()=>{if(b)R0(U,`/-/${Q}/branches/${b}`,{method:"DELETE",keepalive:!0}).catch(()=>null);b=null},g=(e)=>{if(!e.persisted)D()};return window.addEventListener("pagehide",g),()=>{y=!0,clearTimeout(E),window.removeEventListener("pagehide",g),D(),A(null)}},[Q,U,G.vendor,G.id,G.since,z,v.state,JSON.stringify(f?.at)]);let C=Y?wO(Q,Y,G):BU(Q,G),j=!G.at||z!==""?null:P.state==="ok"&&N.length===0?"This World has no branches to set beside it: make one under Branches.":P.state==="error"?`The World's branches could not be read: ${P.error}`:null;return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${G.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(U2,{vendor:G.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:G.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:G.changes?`${i0(G.changes,"change")} ${Y?"on this branch":"not yet cut"}${G.since?`, since ${g8(G.since)}`:""}`:Y?"No changes here on this branch":"No changes here not yet cut"},void 0,!1,void 0,this),G.at?F.jsxDEV("label",{className:"compare-base",children:["Compare with"," ",F.jsxDEV("select",{value:z,onChange:(y)=>L(y.target.value),children:[z===""?F.jsxDEV("option",{value:"",children:"Choose a branch…"},void 0,!1,void 0,this):null,Y?F.jsxDEV("option",{value:"world",children:"The World"},void 0,!1,void 0,this):null,!Y&&(G.since||z==="before")?F.jsxDEV("option",{value:"before",children:"Before these changes"},void 0,!1,void 0,this):null,z&&z!=="before"&&z!=="world"&&!N.some((y)=>y.name===z)?F.jsxDEV("option",{value:z,children:z.split("/")[1]},void 0,!1,void 0,this):null,N.map((y)=>F.jsxDEV("option",{value:y.name,children:[y.name.split("/")[1],y.at?.label?` (${y.at.label})`:y.at?.instant?` (as of ${g8(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:z==="before"?`Before${M.state==="ok"&&M.at?` · as of ${g8(M.at)}`:""}`:z==="world"?"The World":z?z.split("/")[1]:"A branch"},void 0,!1,void 0,this),j?F.jsxDEV("p",{className:"mode compare-note",children:j},void 0,!1,void 0,this):M.state==="ok"?F.jsxDEV(QO,{url:M.url,title:`${G.title} before`},void 0,!1,void 0,this):M.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:M.why},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:Y?`${Y.split("/")[1]} · branch`:"Now"},void 0,!1,void 0,this),C?F.jsxDEV(QO,{url:C,title:`${G.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:G.unseen==="branch-sites"?WU:`${t1(G.vendor)}'s twin draws no page for this ${G.kind} yet.`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",w.error]},void 0,!0,void 0,this):null,z!=="before"&&z&&w.state==="ok"&&w.data.acts.length?F.jsxDEV("p",{className:"mode compare-acts-head",children:Y?"This branch’s changes here:":"This World's own changes here, not yet cut:"},void 0,!1,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(w.state==="ok"?w.data.acts:[]).map((y)=>{let h=y.entries[0],b=U4({...h,service:G.vendor,id:"",occurredAt:y.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:g8(y.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:b.what},void 0,!1,void 0,this),b.label?` · ${b.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((E,D)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:E.operation??E.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[E.subject.type," ",r3(E)]},void 0,!0,void 0,this)]},D,!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}:${h.subject.type}:${h.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),w.state==="ok"&&w.data.total>w.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",i0(w.data.total-w.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,!Y?F.jsxDEV("a",{className:"compare-all",href:`${e1}/${Q}/~/changes`,onClick:(y)=>{y.preventDefault(),S0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var yV={screen:jV,section:vV};function kV(Q){let[U,G]=Z1.useState(()=>new URLSearchParams(window.location.search).get("viewing")??"");return Z1.useEffect(()=>{let H=()=>G(new URLSearchParams(window.location.search).get("viewing")??"");return window.addEventListener("popstate",H),()=>window.removeEventListener("popstate",H)},[]),F.jsxDEV(JH,{children:F.jsxDEV(DV,{...Q,viewing:U,view:(H)=>{let Y=new URL(window.location.href);if(H)Y.searchParams.set("viewing",H);else Y.searchParams.delete("viewing");window.history.pushState(null,"",Y),window.dispatchEvent(new PopStateEvent("popstate"))}},void 0,!1,void 0,this)},`${Q.name}:${U}`,!1,void 0,this)}function DV({name:Q,token:U,session:G,retry:K,snapshot:H,back:Y,canWrite:z,viewing:L,view:M}){let R=Z1.useRef(null),T=Z1.useRef(0),A=Z1.useRef(Promise.resolve()),O=Z1.useRef(0),[,P]=Z1.useState(0),[N,v]=Z1.useState({state:"loading"}),[f,w]=Z1.useState(null),[u,C]=Z1.useState(0),j=f0(U,`/-/${Q}/branches`,u),y=j.state==="ok"?j.data.branches.find((t)=>t.name===L):void 0,h=Z1.useRef(0),b=Z1.useRef(0),E=Z1.useCallback(async()=>{let t=O.current,X1=++h.current,j1=L?`branches/${L.split("/").map(encodeURIComponent).join("/")}/board`:"board",[V1,Q0]=await Promise.all([R0(U,`/-/${Q}/${j1}`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),L?R0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null):Promise.resolve(null)]),k1=V1?.ok?await V1.json().catch(()=>null):null,g1=L?Q0?.ok?await Q0.json().catch(()=>null):null:k1;if(k1&&g1)k1.boards=g1.boards,k1.version=g1.version;if(X1<b.current)return;if(b.current=X1,!k1?.frames||!g1?.boards||!g1.version){let D1=!V1?.ok?V1:Q0,q0=D1?`the World answered ${D1.status}`:"the World did not answer";v((y0)=>y0.state==="ok"?y0:{state:"error",status:D1?.status??0,error:q0}),w(q0);return}if(w(null),C((D1)=>D1+1),t===O.current&&T.current===0)R.current={boards:k1.boards,version:k1.version};v({state:"ok",data:k1})},[U,Q,L]);Z1.useEffect(()=>{E();let t=setInterval(()=>{if(!document.hidden)E()},1e4);return()=>clearInterval(t)},[E]);let D=N.state==="ok"?N.data.frames.map((t)=>L&&t.at&&("site"in t.at)&&!/^https?:\/\/\{host\}\./.test(y?.sites??"")?{...t,at:null,unseen:"branch-sites"}:t):[],g=R.current?.boards??[{id:"everything",name:"Everything"}],[e,q1]=Z1.useState(null),Q1=D.some((t)=>t.changes),x=e??(Q1?"changes":"everything"),m=(x==="changes"?g[0]:g.find((t)=>t.id===x))??g[0],[c,l]=Z1.useState(new Set),p=z&&!H&&!L,o=Z1.useCallback((t)=>{if(!p)return Promise.resolve();if(!R.current)return J2("The board is being read again: make that change once it shows","error"),Promise.resolve();R.current={...R.current,boards:t(R.current.boards)},T.current+=1,O.current+=1,P((j1)=>j1+1);let X1=A.current.then(async()=>{let j1=R.current;if(!j1)return;try{let V1=await R0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:j1.boards,version:j1.version}),signal:AbortSignal.timeout(15000)}),Q0=await V1.json().catch(()=>null);if(V1.ok&&Q0?.boards&&Q0.version)R.current={boards:T.current>1&&R.current?R.current.boards:Q0.boards,version:Q0.version};else if(V1.status===409&&Q0?.boards&&Q0.version)R.current={boards:Q0.boards,version:Q0.version},J2("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){J2(`The board was not kept: ${V1 instanceof Error?V1.message:String(V1)}`,"error"),R.current=null;let Q0=await R0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),k1=Q0?.ok?await Q0.json().catch(()=>null):null;if(k1?.boards&&k1.version)R.current={boards:k1.boards,version:k1.version}}}).finally(()=>{if(T.current-=1,O.current+=1,P((j1)=>j1+1),T.current===0&&!R.current)E()});return A.current=X1,X1},[U,Q,E,p]),k=(t,X1)=>{o((j1)=>j1.map((V1)=>V1.id===t?X1(V1):V1))},s=(t)=>t.parent?`${t.vendor}:${t.parent}`:null,$1=new Set(D.map(s0)),a=(t)=>{let X1=s(t);return!X1||!$1.has(X1)},H1=x==="changes"?D.filter((t)=>t.changes):m.include?$O(m,D):$O(m,D).filter((t)=>a(t)||c.has(s(t))),P1=D.filter((t)=>t.changes&&!H1.includes(t)).reduce((t,X1)=>t+X1.changes,0),[z1,T1]=Z1.useState(null),[G1,R1]=Z1.useState(null),[C1,L1]=Z1.useState(null),S1=rJ(),b1=g.filter((t)=>t.include),l1=(t,X1)=>k(t,(j1)=>({...j1,include:[...j1.include??[],X1]})),h1={label:m.include?"Take it off this board":"Hide it",act:(t)=>{R1(null),k(m.id,(X1)=>X1.include?{...X1,include:X1.include.filter((j1)=>j1!==t)}:{...X1,hidden:[...X1.hidden??[],t]})}},A1=(t)=>({x:t.position.x,y:t.position.y,w:t.width??t.measured?.width??P4,h:t.height??t.measured?.height??F3}),_0=(t,X1)=>{let j1=A1(t),V1=j1.x+j1.w/2,Q0=j1.y+j1.h/2;return X1.filter((k1)=>k1.type==="section").map((k1,g1)=>({s:k1,i:g1})).filter(({s:k1})=>{let g1=A1(k1);return V1>=g1.x&&V1<=g1.x+g1.w&&Q0>=g1.y&&Q0<=g1.y+g1.h}).sort((k1,g1)=>A1(k1.s).w*A1(k1.s).h-A1(g1.s).w*A1(g1.s).h||g1.i-k1.i)[0]?.s},u1=Z1.useCallback(()=>{let t=new Map;for(let D1 of H1){let q0=m.placed?.[s0(D1)];if(q0)t.set(s0(D1),q0)}let X1=Math.max(-KU,...[...t.values()].map((D1)=>D1.y+F3)),j1=[...new Set(H1.map(U7))];for(let D1 of j1){let q0=H1.filter((N0)=>U7(N0)===D1),y0=q0.filter((N0)=>t.has(s0(N0))).map((N0)=>t.get(s0(N0))),$0=y0.length?Math.max(...y0.map((N0)=>N0.x))+P4+KU:0,h0=y0.length?Math.min(...y0.map((N0)=>N0.y)):X1+KU+q4*2+ZH;for(let N0 of q0)if(!t.has(s0(N0)))t.set(s0(N0),{x:$0,y:h0}),$0+=P4+KU;X1=Math.max(X1,h0+F3)}let V1=m.sections??{},Q0=(D1,q0,y0,$0,h0)=>({id:`sec:${D1}`,type:"section",position:{x:q0.x,y:q0.y},width:q0.w,height:q0.h,zIndex:0,draggable:p,data:{key:D1,name:y0,vendor:$0,named:h0}}),k1=[];for(let D1 of j1){let q0=H1.find((k0)=>U7(k0)===D1),y0=F7(q0).find((k0)=>V1[k0])??D1,$0=V1[y0];if($0?.gone)continue;let h0=H1.filter((k0)=>U7(k0)===D1).map((k0)=>t.get(s0(k0))),N0={x:Math.min(...h0.map((k0)=>k0.x))-q4,y:Math.min(...h0.map((k0)=>k0.y))-q4-ZH,w:0,h:0};N0.w=Math.max(...h0.map((k0)=>k0.x))+P4+q4-N0.x,N0.h=Math.max(...h0.map((k0)=>k0.y))+F3+q4-N0.y;let o3=H1.filter((k0)=>U7(k0)===D1&&!m.placed?.[s0(k0)]).map((k0)=>t.get(s0(k0))),Y2=$0?{...$0}:N0;if($0)for(let k0 of o3)Y2.w=Math.max(Y2.w,k0.x+P4+q4-Y2.x),Y2.h=Math.max(Y2.h,k0.y+F3+q4-Y2.y);k1.push(Q0(y0,Y2,$0?.name??`${t1(q0.vendor)} · ${q0.section.title}`,q0.vendor,Boolean($0?.name)))}for(let[D1,q0]of Object.entries(V1))if(D1.startsWith("user:")&&!q0.gone)k1.push(Q0(D1,q0,q0.name??"Section",null,!0));let g1=H1.map((D1)=>({id:s0(D1),type:"screen",zIndex:1,width:P4,height:F3,draggable:p,position:t.get(s0(D1)),data:{world:Q,branch:Boolean(L),frame:D1,url:L?wO(Q,L,D1):BU(Q,D1)}}));return[...k1,...g1]},[JSON.stringify(H1),JSON.stringify(m),Q,p,L]),[E0,J0,O2]=gR([]),K2=B0((t)=>t.transform[2]),y2=Z1.useRef("");Z1.useEffect(()=>{let t=u1();if(J0(t),t.length&&y2.current!==x)y2.current=x,requestAnimationFrame(()=>{S1.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[u1,J0]);let I2=(t,X1=[],j1={})=>{let V1=Object.fromEntries(X1.map((k1)=>{let g1=S1.getNode(`sec:${k1}`);if(!g1)return[k1,void 0];let D1=A1(g1),q0=g1.data,y0=j1[k1]??(q0.named?q0.name:void 0);return[k1,{x:Math.round(D1.x),y:Math.round(D1.y),w:Math.round(D1.w),h:Math.round(D1.h),...y0?{name:y0.slice(0,80)}:{}}]}).filter(([,k1])=>k1!==void 0)),Q0=Object.fromEntries(Object.entries(t).map(([k1,g1])=>[k1,{x:Math.round(g1.x),y:Math.round(g1.y)}]));k(m.id,(k1)=>({...k1,placed:{...k1.placed??{},...Q0},sections:{...k1.sections??{},...V1}}))},Z2=Z1.useRef(null),P2=(t,X1)=>{if(X1.type!=="section"){Z2.current=null;return}let j1=S1.getNodes(),V1=A1(X1),Q0=(k1)=>{let g1=A1(k1);if(k1.type==="screen"){let D1=g1.x+g1.w/2,q0=g1.y+g1.h/2;return D1>=V1.x&&D1<=V1.x+V1.w&&q0>=V1.y&&q0<=V1.y+V1.h}return k1.id!==X1.id&&g1.x>=V1.x&&g1.y>=V1.y&&g1.x+g1.w<=V1.x+V1.w&&g1.y+g1.h<=V1.y+V1.h};Z2.current={id:X1.id,from:{...X1.position},members:j1.filter(Q0).map((k1)=>({id:k1.id,x:k1.position.x,y:k1.position.y}))}},N2=(t,X1)=>{let j1=Z2.current;if(!j1||j1.id!==X1.id)return;let V1=X1.position.x-j1.from.x,Q0=X1.position.y-j1.from.y,k1=new Map(j1.members.map((g1)=>[g1.id,g1]));J0((g1)=>g1.map((D1)=>{let q0=k1.get(D1.id);return q0?{...D1,position:{x:q0.x+V1,y:q0.y+Q0}}:D1}))},w2=(t,X1)=>{let j1=Z2.current;Z2.current=null;let V1=X1.position.x-(j1?.from.x??X1.position.x),Q0=X1.position.y-(j1?.from.y??X1.position.y),k1=X1.type==="screen"?[{id:X1.id,x:X1.position.x,y:X1.position.y}]:(j1?.members??[]).map((g1)=>({...g1,x:g1.x+V1,y:g1.y+Q0}));requestAnimationFrame(()=>{let g1=S1.getNodes(),D1=new Map(k1.filter(($0)=>!$0.id.startsWith("sec:")).map(($0)=>[$0.id,{x:$0.x,y:$0.y}])),q0=new Set([...X1.type==="section"?[X1.data.key]:[],...k1.filter(($0)=>$0.id.startsWith("sec:")).map(($0)=>$0.id.slice(4))]),y0=new Set(g1.filter(($0)=>D1.has($0.id)).flatMap(($0)=>F7($0.data.frame)));for(let $0 of g1){if($0.type==="screen"&&F7($0.data.frame).some((h0)=>y0.has(h0))&&!D1.has($0.id))D1.set($0.id,{x:$0.position.x,y:$0.position.y});if($0.type==="section"&&y0.has($0.data.key))q0.add($0.data.key)}I2(Object.fromEntries(D1),[...q0])})},G4=(t)=>Object.fromEntries(S1.getNodes().filter((X1)=>X1.type==="screen"&&F7(X1.data.frame).includes(t)).map((X1)=>[X1.id,{x:X1.position.x,y:X1.position.y}])),[K5,H5]=Z1.useState(null),m5=(t)=>{R1(`sec:${t}`),H5(t)},Z4=(t,X1)=>{if(H5(null),!X1)return;J0((j1)=>j1.map((V1)=>V1.id===`sec:${t}`?{...V1,data:{...V1.data,name:X1,named:!0}}:V1)),requestAnimationFrame(()=>I2(G4(t),[t],{[t]:X1}))},w4=(t)=>{R1(null);let X1=S1.getNode(`sec:${t}`);k(m.id,(j1)=>{let V1=Object.fromEntries(Object.entries(j1.sections??{}).filter(([Q0])=>Q0!==t));return{...j1,sections:t.startsWith("user:")?V1:{...V1,[t]:{...X1?{x:Math.round(X1.position.x),y:Math.round(X1.position.y),w:Math.round(A1(X1).w),h:Math.round(A1(X1).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},O5=()=>{let t=G1?S1.getNode(G1):void 0,X1=S1.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),j1=t?.type==="screen"?{x:t.position.x-q4,y:t.position.y-q4,w:P4+q4*2,h:F3+q4*2}:{x:X1.x-900,y:X1.y-600,w:1800,h:1200},V1=`user:${Date.now().toString(36)}`,Q0=Object.keys(m.sections??{}).filter((k1)=>k1.startsWith("user:")).length+1;R1(`sec:${V1}`),k(m.id,(k1)=>({...k1,sections:{...k1.sections??{},[V1]:{x:Math.round(j1.x),y:Math.round(j1.y),w:Math.round(j1.w),h:Math.round(j1.h),name:`Section ${Q0}`}}}))},V=(t)=>(X1)=>{if(!p||X1.button!==0)return;let j1=S1.getNode(t);if(!j1)return;let V1=X1.currentTarget;V1.setPointerCapture(X1.pointerId);let{clientX:Q0,clientY:k1}=X1,g1={...j1.position},D1=!1,q0=(h0)=>{let N0=S1.getZoom();return{...j1,position:{x:g1.x+(h0.clientX-Q0)/N0,y:g1.y+(h0.clientY-k1)/N0}}},y0=(h0)=>{if(!D1&&Math.hypot(h0.clientX-Q0,h0.clientY-k1)<4)return;if(!D1)D1=!0,P2(null,j1);let N0=q0(h0);J0((o3)=>o3.map((Y2)=>Y2.id===t?{...Y2,position:N0.position}:Y2)),N2(null,N0)},$0=(h0)=>{if(V1.removeEventListener("pointermove",y0),V1.removeEventListener("pointerup",$0),V1.removeEventListener("pointercancel",$0),D1)w2(null,q0(h0)),V1.addEventListener("click",(N0)=>{N0.stopPropagation(),N0.preventDefault()},{capture:!0,once:!0});else if(j1.type==="screen")R1(t)};V1.addEventListener("pointermove",y0),V1.addEventListener("pointerup",$0),V1.addEventListener("pointercancel",$0)},U1=E0.map((t)=>t.type==="section"?{...t,data:{...t.data,grab:V(t.id),picked:G1===t.id,editable:p,renaming:p&&K5===t.data.key,pick:(X1)=>R1(`sec:${X1}`),rename:m5,renamed:Z4,remove:w4,resized:()=>requestAnimationFrame(()=>{let X1=t.data.key;I2(G4(X1),[X1])})}}:{...t,data:{...t.data,grab:V(t.id),active:z1===t.id,picked:G1===t.id,boards:p?b1:[],addTo:l1,remove:!p||m.include&&!m.include.includes(t.id)?null:h1,compare:(X1)=>{R1(X1),L1(X1)}}});Z1.useEffect(()=>{let t=(X1)=>{if(X1.target?.closest("input, textarea, select, [contenteditable]"))return;if(X1.key==="Escape"){if(z1)T1(null);else R1(null);return}if(!p||z1)return;if((X1.key==="Delete"||X1.key==="Backspace")&&G1){if(X1.preventDefault(),G1.startsWith("sec:"))w4(G1.slice(4));else if(!m.include||m.include.includes(G1))h1.act(G1);else J2("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(X1.key==="S"&&X1.shiftKey&&!X1.metaKey&&!X1.ctrlKey)X1.preventDefault(),O5()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)});let O1=(t)=>{R1(t);let X1=S1.getNode(t);if(!X1)return;let j1=A1(X1);S1.fitBounds({x:j1.x,y:j1.y,width:j1.w,height:j1.h},{padding:0.15,duration:400})},w1=()=>{let t=`board-${Date.now().toString(36)}`;q1(t),o((X1)=>[...X1,{id:t,name:`Board ${X1.length}`,include:[]}])},y1=()=>H5(`board:${m.id}`),r1=()=>{let t=m.id;q1(null),o((X1)=>X1.filter((j1)=>j1.id!==t))},a1=[...new Map(D.map((t)=>[U7(t),t])).values()],W0=m.include?[...a1.filter((t)=>!F7(t).some((X1)=>m.include.includes(X1))).map((t)=>({key:U7(t),label:`${t1(t.vendor)} · ${t.section.title} (all)`})),...D.filter((t)=>!H1.includes(t)).map((t)=>({key:s0(t),label:t.title}))]:[],x1=m.include?[]:D.filter((t)=>(m.hidden??[]).includes(s0(t))),H2=E0.filter((t)=>t.type==="section"),C2=E0.filter((t)=>t.type==="screen"),I5=new Map(C2.map((t)=>[t.id,_0(t,E0)?.id??null])),g5=new Map;for(let t of D){let X1=s(t);if(X1&&$1.has(X1))g5.set(X1,(g5.get(X1)??0)+1)}let n6=(t)=>{let X1=t.data.frame;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:G1===t.id?"on":void 0,onClick:()=>O1(t.id),onDoubleClick:()=>T1(t.id),children:[F.jsxDEV(U2,{vendor:X1.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:X1.title},void 0,!1,void 0,this),X1.changes?F.jsxDEV("span",{className:"layer-changed",title:`${i0(X1.changes,"change")} ${L?"on this branch":"not in a changeset"}: its mark on the board opens a comparison`,children:[F.jsxDEV(X0,{name:"square-dot",size:14},void 0,!1,void 0,this),X1.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),g5.get(t.id)&&x!=="changes"&&!m.include?F.jsxDEV("button",{type:"button",className:"ghost layer-open","aria-expanded":c.has(t.id),onClick:()=>l((j1)=>{let V1=new Set(j1);if(V1.has(t.id))V1.delete(t.id);else V1.add(t.id);return V1}),title:c.has(t.id)?"Close the pages under it":"Open the pages under it",children:[c.has(t.id)?"−":"+",g5.get(t.id)]},void 0,!0,void 0,this):null]},t.id,!0,void 0,this)},s3=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,t3=G.state==="ok"&&N.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",style:{"--zoom":K2},children:F.jsxDEV(mR,{nodes:t3?U1:[],onNodesChange:O2,nodeTypes:yV,onNodeDragStart:P2,onNodeDrag:N2,onNodeDragStop:w2,onNodeClick:(t,X1)=>{if(X1.id!==z1)R1(X1.id)},onNodeDoubleClick:(t,X1)=>{if(X1.type==="screen")R1(X1.id),T1(X1.id)},onPaneClick:()=>{T1(null),R1(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:s3?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(cR,{variant:G3.Dots,gap:28*2**Math.max(0,Math.ceil(Math.log2(16/(28*K2)))),size:2/K2},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:(L||Q).split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],L?" · branch":H?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"compare-base board-viewing",children:["Viewing",F.jsxDEV("select",{value:L,disabled:T.current>0,onChange:(t)=>M(t.target.value),children:[F.jsxDEV("option",{value:"",children:"The World"},void 0,!1,void 0,this),L&&!y?F.jsxDEV("option",{value:L,children:[L," · branch"]},void 0,!0,void 0,this):null,(j.state==="ok"?j.data.branches:[]).map((t)=>F.jsxDEV("option",{value:t.name,children:[t.name.split("/")[1]," · branch"]},t.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.state==="error"&&j.status!==404?F.jsxDEV("p",{className:"mode",role:"alert",children:["Branches could not be read: ",j.error]},void 0,!0,void 0,this):null,F.jsxDEV("div",{className:"board-tabs",role:"tablist","aria-label":"Boards",children:[F.jsxDEV("button",{type:"button",role:"tab","aria-selected":x==="changes",className:x==="changes"?"on":void 0,onClick:()=>{R1(null),T1(null),q1("changes")},title:L?"The pages whose records changed on this branch":"The pages whose records changed and are not yet in a changeset",children:["Changes",Q1?` (${D.filter((t)=>t.changes).length})`:""]},void 0,!0,void 0,this),g.map((t)=>K5===`board:${t.id}`?F.jsxDEV(CO,{name:t.name,label:"Name this board",done:(X1)=>{if(H5(null),X1)k(t.id,(j1)=>({...j1,name:X1}))}},t.id,!1,void 0,this):F.jsxDEV("button",{type:"button",role:"tab","aria-selected":x!=="changes"&&t.id===m.id,className:x!=="changes"&&t.id===m.id?"on":void 0,onClick:()=>{R1(null),T1(null),q1(t.id)},onDoubleClick:p&&t.id===m.id&&t.include?y1:void 0,children:t.name},t.id,!1,void 0,this)),p?F.jsxDEV("button",{type:"button",className:"ghost",onClick:w1,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),m.include&&p?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:y1,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:r1,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:[H2.map((t)=>{let X1=t.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:G1===t.id?"layer-section on":"layer-section",onClick:()=>O1(t.id),onDoubleClick:()=>{if(p)O1(t.id),m5(X1.key)},children:[X1.vendor?F.jsxDEV(U2,{vendor:X1.vendor},void 0,!1,void 0,this):F.jsxDEV(X0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:X1.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:C2.filter((j1)=>I5.get(j1.id)===t.id).map(n6)},void 0,!1,void 0,this)]},t.id,!0,void 0,this)}),C2.filter((t)=>!I5.get(t.id)).map(n6)]},void 0,!0,void 0,this),m.include&&!H1.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,W0.length&&p?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(t)=>{let X1=t.target.value;if(X1)k(m.id,(j1)=>({...j1,include:[...j1.include??[],X1]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),W0.map((t)=>F.jsxDEV("option",{value:t.key,children:t.label},t.key,!1,void 0,this))]},void 0,!0,void 0,this):null,x1.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",x1.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:x1.map((t)=>F.jsxDEV("li",{children:p?F.jsxDEV("button",{type:"button",onClick:()=>k(m.id,(X1)=>({...X1,hidden:(X1.hidden??[]).filter((j1)=>j1!==s0(t))})),children:[F.jsxDEV("span",{children:t.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:t.title},void 0,!1,void 0,this)},s0(t),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,P1?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>q1("changes"),children:[F.jsxDEV(X0,{name:"square-dot",size:14},void 0,!1,void 0,this),i0(P1,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(a2,{load:N,what:"the board"},void 0,!1,void 0,this),f&&N.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",f,"): it shows what was last read."]},void 0,!0,void 0,this):null,G.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,G.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",G.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),z1?F.jsxDEV(Z3,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",H1.find((t)=>s0(t)===z1)?.title??z1]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>T1(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),p?F.jsxDEV(Z3,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:O5,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(X0,{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,C1&&H1.some((t)=>s0(t)===C1)?F.jsxDEV(Z3,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(VV,{viewing:L,name:Q,token:U,frame:H1.find((t)=>s0(t)===C1),onClose:()=>L1(null),reads:u},C1,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(dR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(rR,{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 SO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),uV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function AU(Q){let U=Q.actions.filter(uV).length,G=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,z=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:z,total:G,own:U};if(G>0&&Y>=G)return{label:"Deployed",tone:"done",...L};if(Y>0)return{label:`Partly deployed: ${Y} of ${G}`,tone:"warn",...L};if(z>0)return{label:`${z} 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 UH=(Q)=>Q.message??Q.narration?.split(`
250
- `)[0]?.replace(/ setting .*$/,"")??Q.name;function fO(Q,U=1){let G=Q.currentHash??Q.contentHash,K=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===G).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===G?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 qO({name:Q,token:U,signsAs:G,c:K,canWrite:H,rooted:Y,refused:z,onChanged:L,part:M,required:R}){let T=M==="head",A=M==="review",[O,P]=Z1.useState(null),[N,v]=Z1.useState(!1),[f,w]=Z1.useState(""),[u,C]=Z1.useState(""),[j,y]=Z1.useState(null),h=f0(U,`/-/${Q}/origin`),b=AU(K),E=fO(K,R),D=SO(K),g=[...new Set(D.map((a)=>a.twin))],e=g.some((a)=>Y.includes(a)),q1=(a)=>a===(K.currentHash??K.contentHash),Q1=K.applied?.receipts??[],x=(K.deployed??[]).filter((a)=>a.status!=="landed"),m=Q1.filter((a)=>a.status==="confirmed").length,c=x.filter((a)=>a.status==="deployed"),l=async(a,H1,P1,z1)=>{P(a),y(null);try{let T1=await R0(U,H1,{method:"POST",...P1===void 0?{}:{body:JSON.stringify(P1)}});if(!T1.ok)return z(T1),y({what:a,...R2(await b3(T1))}),!1;if(z1)J2(z1);return L(),!0}catch(T1){return y({what:a,text:`the World did not answer (${T1 instanceof Error?T1.message:String(T1)})`,acts:[]}),!1}finally{P(null)}},p=()=>{l("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(a)=>{if(a.preventDefault(),await l("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...f.trim()?{note:f.trim()}:{},...G===null&&u.trim()?{as:u.trim()}:{}},"Approved"))v(!1),w("")},k=async()=>{let a=g.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 ",p8(a.map(t1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;P("Deploy"),y(null);try{let H1=await R0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!H1.ok){z(H1),y({what:"Deploy",...R2(await b3(H1))});return}let P1=await R0(U,`/-/${Q}/changesets/${K.name}`),z1=P1.ok?await P1.json():null;if(!z1){J2("Deploy: sent; reading its receipts failed","info"),L();return}let T1=AU(z1);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){y({what:"Deploy",text:`the World did not answer (${H1 instanceof Error?H1.message:String(H1)})`,acts:[]})}finally{P(null)}},s=!H?"This session reads the World; it changes nothing":b.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,$1=h.state==="ok"&&h.data.origin?zH(h.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-${b.tone}`,children:b.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.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(V0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",p8(g.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:p,disabled:Boolean(s)||O!==null,title:s??"Replay it in a throwaway World and run the World's checks",children:O==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>v(!0),disabled:Boolean(s)||O!==null,title:s??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),e?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(s)||O!==null,title:s??"Perform it against the real accounts behind this World",children:O==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s&&b.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[s,"."]},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:p,disabled:O!==null,children:"Verify"},void 0,!1,void 0,this):null,j.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>v(!0),disabled:O!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(XO,{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:[b.performed>0?F.jsxDEV("p",{className:"pad",children:[b.performed>=b.total?"Deployed":"Partly deployed",": ",b.performed," of ",b.total," change",b.total===1?"":"s",b.own?` (and ${b.own} of the World's own, which stay in it)`:""," performed at ",p8([...new Set([...c.map((a)=>a.service),...Q1.filter((a)=>a.status==="confirmed").map((a)=>a.service)].map(t1))]),c.length?` (${c.length} from here`:" (",c.length&&m?", ":"",m?`${m} by the remote`:"",")."]},void 0,!0,void 0,this):b.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(V0,{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):b.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",e?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,b.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[b.failed," change",b.failed===1?" was":"s were"," refused or failed at the vendor",[...x.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)=>`: ${R2(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:R2(a).text},H1,!1,void 0,this))},void 0,!1,void 0,this):null,x.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:x.map((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:[" · ",R2(a.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(V0,{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:[" · ",R2(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),!e&&b.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:`${e1}/${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:q1(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(V0,{iso:K.verification.at},void 0,!1,void 0,this),q1(K.verification.contentHash)?null:F.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.verification.results.length?F.jsxDEV("ul",{className:"checks",children:K.verification.results.map((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(V0,{iso:a.at},void 0,!1,void 0,this),q1(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(h5,{open:N,onClose:()=>{if(!O)v(!1)},title:`Approve ${K.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(!1),disabled:O!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:O!==null,children:O==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(a)=>void o(a),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",G?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.jsxDEV("b",{children:G},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),G===null?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:u,onChange:(a)=>C(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:f,onChange:(a)=>w(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 jO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function bV({changes:Q,idPrefix:U}){let G=[...new Set(Q.map((K)=>K.twin))];return F.jsxDEV(F.Fragment,{children:G.map((K)=>{let H=Q.filter((z)=>z.twin===K).map((z)=>z.entry),Y=[...new Set(H.map((z)=>`${z.subject.type}:${z.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(U2,{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((z)=>{let L=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===z),M=L[L.length-1],R=U4(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)," ",R.label?F.jsxDEV("span",{className:"label",children:["“",R.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 O=A.fields??{},P=Object.entries(O).filter(([v,f])=>!(v in T)||!jO(T[v],f)),N=T;return T={...T,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:U4(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(V0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",sJ(A)]},void 0,!0,void 0,this),P.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${U4(A).what} set`,children:P.map(([v,f])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:v in N?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(a3,{v:N[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(a3,{v:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(a3,{v:f},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)})]},z,!0,void 0,this)})},void 0,!1,void 0,this)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function EV({name:Q,token:U,changes:G,canWrite:K,refused:H,onCut:Y,pinned:z,generated:L,inputRef:M,author:R}){let[T,A]=Z1.useState(""),[O,P]=Z1.useState(!1),[N,v]=Z1.useState([]),f=(u,C,j)=>{v((y)=>[{ok:u,text:C,at:new Date().toISOString(),n:++oJ,...j?.length?{acts:j}:{}},...y].slice(0,4))},w=async(u)=>{u.preventDefault(),P(!0);try{let C=await R0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!C.ok){H(C);let y=R2(await b3(C));f(!1,`Cut a changeset: ${y.text}`,y.acts);return}let j=await C.json();f(!0,`Cut ${j.name??"a changeset"}: ${i0(j.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(C){f(!1,`Cut a changeset: the World did not answer (${C instanceof Error?C.message:String(C)})`)}finally{P(!1)}};if(z){let u=!K?"This session reads the World; it changes nothing":G===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(o6,{log:N,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(C)=>void w(C),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(C)=>{C.preventDefault(),S0(R.account.slice(e1.length+1).split("/"))},children:R.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:M,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(C)=>A(C.target.value),placeholder:G===0?"Nothing to cut":L?"Summary (optional)":"Summary (required)",required:!L,maxLength:200,disabled:Boolean(u),title:u??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(u)||O,title:u??void 0,children:O?"Cutting…":G===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",i0(G,"change"),R?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:R.branch},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!K||G===0)return F.jsxDEV(o6,{log:N,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(u)=>void w(u),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",G===1?"this change":`these ${G} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:T,onChange:(u)=>A(u.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:G===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:O||G===0,children:O?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(o6,{log:N,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hV({name:Q,token:U}){let[G,K]=Z1.useState(0),H=f0(U,`/-/${Q}/keys`,G),[Y,z]=Z1.useState(!1),[L,M]=Z1.useState(""),[R,T]=Z1.useState("write"),[A,O]=Z1.useState(!1),[P,N]=Z1.useState(null),[v,f]=Z1.useState(null),[w,u]=Z1.useState(null),C=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,b=await R0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),E=b?await b.json().catch(()=>({})):{error:`${P0} did not answer`};if(!b?.ok||!E.key){J2(E.error?R2(E.error).text:"refused","error");return}u(`${window.location.origin}${e1}/${Q}#${new URLSearchParams({token:E.key}).toString()}`),K((D)=>D+1)},j=async(h)=>{h.preventDefault(),O(!0),N(null);let b=await R0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:L.trim(),scope:R})}).catch(()=>null);O(!1);let E=b?await b.json().catch(()=>({})):{error:`${P0} did not answer`};if(!b?.ok||!E.key){N(E.error?R2(E.error).text:"refused");return}z(!1),f({key:E.key,name:L.trim()}),M(""),K((D)=>D+1)},y=async(h)=>{if(!await J3({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let b=await R0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(b.ok)J2(`Revoked ${h.name}`);else J2(await R5(b),"error");K((E)=>E+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 C(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{N(null),z(!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((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:g8(h.createdAt),children:oF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?oF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(iA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void y(h)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},h.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(h5,{open:Y,onClose:()=>{if(!A)z(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>z(!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:(h)=>M(h.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:R,onChange:(h)=>T(h.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P?F.jsxDEV("p",{role:"alert",children:P},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(h5,{open:Boolean(v),onClose:()=>f(null),title:`${v?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>f(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(eF,{label:"Key",value:v.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(h5,{open:Boolean(w),onClose:()=>u(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>u(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),w?F.jsxDEV(eF,{label:"Link",value:w,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var oJ=0;function o6({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((G)=>F.jsxDEV("li",{className:G.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(V0,{iso:G.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",G.text,G.acts?F.jsxDEV(XO,{name:U,acts:G.acts},void 0,!1,void 0,this):null]},G.n,!0,void 0,this))},void 0,!1,void 0,this)}function vO(Q,U,G,K){let[H,Y]=Z1.useState(0),z=H*1e5+Math.floor(G/2),L=f0(U,`/-/${Q}/origin`,z),M=f0(U,`/-/${Q}/diff`,z),R=f0(U,`/-/${Q}/changesets`,z),[T,A]=Z1.useState([]),[O,P]=Z1.useState(null),N=(y,h,b)=>{if(A((E)=>[{ok:y,text:h,at:new Date().toISOString(),n:++oJ,...b?.length?{acts:b}:{}},...E].slice(0,8)),!y)J2(h,"error")},v=async(y,h,b)=>{P(y);try{let E=await R0(U,`/-/${Q}/${h}`,b);if(!E.ok){K(E);let D=R2(await b3(E));return N(!1,`${y}: ${D.text}`,D.acts),null}return await E.json()}catch(E){return N(!1,`${y}: the World did not answer (${E instanceof Error?E.message:String(E)})`),null}finally{P(null),Y((E)=>E+1)}},f=L.state==="ok"&&L.data.origin?zH(L.data.origin):null,w=M.state==="ok"?M.data.changes.length:null,u=R.state==="ok"&&f?BV(R.data.changesets.filter((y)=>!y.pushedBy)).sort((y,h)=>y.createdAt.localeCompare(h.createdAt)):[];return{origin:L,diff:M,sets:R,there:f,changes:w,waiting:u,log:T,busy:O,say:N,send:v,push:async()=>{let y=await v("Push","origin/push",{method:"POST"});if(!y)return;if(y.pushed.length===0){N(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of y.pushed){let b=h.receipts??[],E=b.filter((Q1)=>Q1.status==="replayed").length,D=b.filter((Q1)=>Q1.status==="confirmed").length,g=b.filter((Q1)=>Q1.status==="failed").length,e=h.outcome==="applied"&&g===0;if(h.outcome==="refused"){N(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((Q1)=>R2(Q1).text).join("; ")}`:""}.`);continue}let q1=[`${E} of ${i0(b.length,"change")} replayed there`,...D?[`${D} performed at the vendor by the remote`]:[],...g?[`${g} failed`]:[]];N(e,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${f??"the remote"}: ${q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((Q1)=>R2(Q1).text).join("; ")})`:""}.`)}},pull:async()=>{let y=await v("Pull","origin/pull",{method:"POST"});if(!y)return;let h=Object.entries(y.appended).filter(([,E])=>E>0),b=y.rebased.flatMap((E)=>E.conflicts.map((D)=>`${t1(E.twin)} ${D.subject.type}:${D.subject.id} ${D.field}`));N(b.length===0,`Pulled from ${f??"the remote"}: ${h.length?h.map(([E,D])=>`${i0(D,"entry")} at ${t1(E)}`).join(", "):"nothing new"}${b.length?`; conflicts at ${b.join(", ")}`:""}.`)}}}function xV({name:Q,token:U,canWrite:G,tick:K,refused:H}){let{origin:Y,there:z,changes:L,log:M,busy:R,say:T,send:A,push:O,pull:P}=vO(Q,U,K,H),[N,v]=Z1.useState(""),[f,w]=Z1.useState(""),[u,C]=Z1.useState(!1),j=async(h)=>{h.preventDefault();let b=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:N.trim(),token:f.trim()})});if(b){let E=Object.values(b.appended??{}).reduce((D,g)=>D+g,0);T(!0,`The remote is ${zH(b.origin)}: its history came in (${i0(E,"entry")}).`),w(""),C(!1)}},y=!G?"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),G?F.jsxDEV("button",{type:"button",onClick:()=>{v(z??""),C(!u)},"aria-expanded":u,children:z?"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"?z?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:z},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(V0,{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),u?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void j(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:N,onChange:(h)=>v(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:f,onChange:(h)=>w(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:R!==null,children:R==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>C(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(o6,{log:M,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function mV({name:Q,token:U,canWrite:G,refused:K}){let[H,Y]=Z1.useState(0),z=f0(U,`/-/${Q}/twins`,H),L=f0(U,`/-/${Q}/links`,H),M=f0(U,`/-/${Q}/requests?hours=24`,H),[R,T]=Z1.useState({}),[A,O]=Z1.useState(null),[P,N]=Z1.useState(""),[v,f]=Z1.useState(!1),[w,u]=Z1.useState([]),C=(D,g,e)=>{if(u((q1)=>[{ok:D,text:g,at:new Date().toISOString(),n:++oJ,...e?.length?{acts:e}:{}},...q1].slice(0,6)),!D)J2(g,"error")},j=L.state==="ok"?Object.keys(L.data.links).sort():[];Z1.useEffect(()=>{let D=!0;return Promise.all(j.map(async(g)=>{let e=await R0(U,`/-/${Q}/twins/${g}/credential`).catch(()=>null),q1=e?.ok?await e.json():null;return[g,q1?.credential??null]})).then((g)=>{if(D)T(Object.fromEntries(g))}),()=>{D=!1}},[Q,U,j.join(","),H]);let y=async(D)=>{if(D.preventDefault(),!A||!P)return;f(!0);let g=await R0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:P,headers:{"content-type":"text/plain"}}).catch(()=>null);if(f(!1),!g){C(!1,`Seal ${A.vendor}: ${P0} did not answer`);return}if(!g.ok){K(g);let q1=R2(await b3(g));C(!1,`Seal ${t1(A.vendor)}: ${q1.text}`,q1.acts);return}let e=await g.json().catch(()=>({}));C(!0,`Sealed a credential for ${t1(A.vendor)}${e.fingerprint?` (${e.fingerprint})`:""}: it opens for ${e.boundTo??A.to} only, and is never shown again.`),N(""),O(null),Y((q1)=>q1+1)},h=async(D)=>{if(!await J3({title:`Remove the link ${D}?`,body:`Requests to ${X3}/${Q}/${D}/… stop being forwarded to ${L.state==="ok"?L.data.links[D]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let g=await R0(U,`/-/${Q}/links/${D}`,{method:"DELETE"}).catch(()=>null);if(!g?.ok){if(g)K(g);C(!1,`Remove ${D}: ${g?await R5(g):"the World did not answer"}`);return}C(!0,`Removed the link ${D}.`),Y((e)=>e+1)},b=(D)=>D?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:[D.fingerprint?F.jsxDEV("code",{children:D.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(V0,{iso:D.placedAt},void 0,!1,void 0,this),D.sealedBy?` · by ${D.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),E=z.state==="ok"?z.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(o6,{log:w,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:z,what:"the vendors"},void 0,!1,void 0,this),z.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),G?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:E.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(U2,{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:b(D.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.credential?.boundTo?F.jsxDEV("code",{children:D.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:D.root?.url?F.jsxDEV("code",{children:D.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),G?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!D.root?.url,title:D.root?.url?`Seal ${t1(D.twin)}'s real credential for ${D.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{N(""),O({vendor:D.twin,to:D.root.url})},children:D.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},D.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,z.state==="ok"&&E.every((D)=>!D.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:[X3,"/",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),G?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((D)=>{let g=L.state==="ok"?L.data.links[D].origin:"",e=M.state==="ok"?M.data.twins.find((q1)=>q1.twin===D):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:D},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:g},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:e?F.jsxDEV("span",{title:Object.entries(e.byStatus).map(([q1,Q1])=>`${q1}: ${Q1}`).join(" · "),children:e.requests},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:[b(R[D]??null),R[D]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[D].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),G?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{N(""),O({vendor:D,to:g})},children:R[D]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(D),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},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(h5,{open:Boolean(A),onClose:()=>{if(!v)O(null)},title:`Seal ${A?t1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>O(null),disabled:v,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:v||!P,children:v?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(D)=>void y(D),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:P,onChange:(D)=>N(D.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 gV({name:Q,token:U,admin:G,canWrite:K,refused:H,onRemoved:Y,only:z}){let L=(p)=>!z||z===p,[M,R]=Z1.useState(0),T=f0(U,`/-/${Q}/twins`,M),A=f0(U,`/-/${Q}/checks`,M),[O,P]=Z1.useState(0),N=f0(U,`/-/${Q}/clock`,O),[v,f]=Z1.useState([]),[w,u]=Z1.useState(null),[C,j]=Z1.useState(null),[y,h]=Z1.useState(""),[b,E]=Z1.useState("gated"),[D,g]=Z1.useState(!1),e=(p,o,k)=>{if(f((s)=>[{ok:p,text:o,at:new Date().toISOString(),n:++oJ,...k?.length?{acts:k}:{}},...s].slice(0,6)),!p)J2(o,"error")},q1=async(p,o,k)=>{let s=await R0(U,o,k).catch(()=>null);if(!s)return e(!1,`${p}: the World did not answer`),!1;if(!s.ok){H(s);let $1=R2(await b3(s));return e(!1,`${p}: ${$1.text}`,$1.acts),!1}return e(!0,`${p}: done.`),R(($1)=>$1+1),!0},Q1=async(p)=>{if(p.preventDefault(),!C)return;g(!0);let o=C.root??{},k=await q1(y.trim()?`Connect ${t1(C.twin)} to ${y.trim()}`:`Disconnect ${t1(C.twin)}`,`/-/${Q}/twins/${C.twin}/root`,{method:"PUT",body:JSON.stringify(y.trim()?{...o,url:y.trim(),deploy:b}:null)});if(g(!1),k)j(null)},x=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 p=await R0(G,`/-/worlds/${Q}/rotate`,{method:"POST"});if(p.ok)u(await p.json()),e(!0,"Rotated: the new tokens are shown once, below.");else e(!1,`Rotate: ${await R5(p)}`)},m=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 p=await R0(G,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(p instanceof Error){e(!1,`Remove: the host did not answer (${p.message})`);return}if(p.ok)Y();else e(!1,`Remove: ${await R5(p)}`)},c=T.state==="ok"?T.data.twins:[],l={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(o6,{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(hV,{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:[c.some((p)=>p.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:c.map((p)=>{let o=p.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(U2,{vendor:p.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${e1}/${Q}/${p.twin}`,title:`Its log and stored state · ${p.position??0} entries`,onClick:(k)=>{k.preventDefault(),S0([...Q.split("/"),p.twin])},children:t1(p.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?l[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:p.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",p.refresh.failed.count??1,": ",p.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?g8(p.refresh?.observedAt??p.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(o?.url??""),E(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),j(p)},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(p.twin)} now?`,body:`The real ${t1(p.twin)}'s current state is read into this World. Nothing is written to ${t1(p.twin)}.`,action:"Read from it"}).then((k)=>{if(k)q1(`Read from ${t1(p.twin)}`,`/-/${Q}/twins/${p.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},p.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(MV,{name:Q,token:U,clock:N,canWrite:K,onChanged:()=>P((p)=>p+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((p)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},p,!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,G&&!z?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),w?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:w.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:w.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void x(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void m(),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(h5,{open:Boolean(C),onClose:()=>{if(!D)j(null)},title:`Connect ${C?t1(C.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>j(null),disabled:D,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:D,children:D?"Saving…":y.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:(p)=>void Q1(p),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:y,onChange:(p)=>h(p.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:b,onChange:(p)=>E(p.target.value==="auto"?"auto":p.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((p)=>F.jsxDEV("option",{value:p,children:l[p]},p,!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(JV,{},void 0,!1,void 0,this),F.jsxDEV(dA,{},void 0,!1,void 0,this),F.jsxDEV(lA,{},void 0,!1,void 0,this),F.jsxDEV(cA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var kO=n0(m8(),1);Aq();yO.createRoot(K7).render(kO.jsxDEV(VO,{},void 0,!1,void 0,this));
246
+ `)),T=R.reduce((A,O)=>A.concat(...O),[]);return[R,T]}return[[],[]]},[Q]);return W1.useEffect(()=>{let M=U?.target??mT,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(P)=>{if(H.current=P.ctrlKey||P.metaKey||P.shiftKey||P.altKey,(!H.current||H.current&&!R)&&gK(P))return!1;let v=pT(P.code,L);if(Y.current.add(P[v]),gT(z,Y.current,!1)){let f=P.composedPath?.()?.[0]||P.target,w=f?.nodeName==="BUTTON"||f?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!w))P.preventDefault();K(!0)}},A=(P)=>{let N=pT(P.code,L);if(gT(z,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(P[N]);if(P.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),K(!1)};return M?.addEventListener("keydown",T),M?.addEventListener("keyup",A),window.addEventListener("blur",O),window.addEventListener("contextmenu",O),()=>{M?.removeEventListener("keydown",T),M?.removeEventListener("keyup",A),window.removeEventListener("blur",O),window.removeEventListener("contextmenu",O)}}},[Q,K]),G}function gT(Q,U,G){return Q.filter((K)=>G||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function pT(Q,U){return U.includes(Q)?"code":"key"}var rf=()=>{let Q=a0();return W1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:G}=Q.getState();return G?G.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:G}=Q.getState();return G?G.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,G)=>{let{panZoom:K}=Q.getState();return K?K.scaleTo(U,G):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,G)=>{let{transform:[K,H,Y],panZoom:z}=Q.getState();if(!z)return!1;return await z.setViewport({x:U.x??K,y:U.y??H,zoom:U.zoom??Y},G),!0},getViewport:()=>{let[U,G,K]=Q.getState().transform;return{x:U,y:G,zoom:K}},setCenter:async(U,G,K)=>{return Q.getState().setCenter(U,G,K)},fitBounds:async(U,G)=>{let{width:K,height:H,minZoom:Y,maxZoom:z,panZoom:L}=Q.getState(),M=dJ(U,K,H,Y,z,G?.padding??0.1);if(!L)return!1;return await L.setViewport(M,{duration:G?.duration,ease:G?.ease,interpolate:G?.interpolate}),!0},screenToFlowPosition:(U,G={})=>{let{transform:K,snapGrid:H,snapToGrid:Y,domNode:z}=Q.getState();if(!z)return U;let{x:L,y:M}=z.getBoundingClientRect(),R={x:U.x-L,y:U.y-M},T=G.snapGrid??H,A=G.snapToGrid??Y;return f9(R,K,A,T)},flowToScreenPosition:(U)=>{let{transform:G,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),z=$7(U,G);return{x:z.x+H,y:z.y+Y}}}},[])};function zR(Q,U){let G=[],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 z=K.get(Y.id);if(z)z.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let z=K.get(Y.id);if(!z){G.push(Y);continue}if(z[0].type==="remove")continue;if(z[0].type==="replace"){G.push({...z[0].item});continue}let L={...Y};for(let M of z)af(M,L);G.push(L)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)G.splice(Y.index,0,{...Y.item});else G.push({...Y.item})});return G}function af(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 WR(Q,U){return zR(Q,U)}function sf(Q,U){return zR(Q,U)}function U7(Q,U){return{id:Q,type:"select",selected:U}}function v9(Q,U=new Set,G=!1){let K=[];for(let[H,Y]of Q){let z=U.has(H);if(!(Y.selected===void 0&&!z)&&Y.selected!==z){if(G)Y.selected=z;K.push(U7(Y.id,z))}}return K}function cT({items:Q=[],lookup:U}){let G=[],K=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let z=U.get(Y.id),L=z?.internals?.userNode??z;if(L!==void 0&&L!==Y)G.push({id:Y.id,item:Y,type:"replace"});if(L===void 0)G.push({item:Y,type:"add",index:H})}for(let[H]of U)if(K.get(H)===void 0)G.push({id:H,type:"remove"});return G}function lT(Q){return{id:Q.id,type:"remove"}}var tf=uK("React Flow","https://reactflow.dev/");function of(Q,U,G={}){return qT(Q,U,{...G,onError:G.onError??tf})}var dT=(Q)=>rM(Q),nf=(Q)=>jK(Q);function LR(Q){return W1.forwardRef(Q)}var BR=typeof window<"u"?W1.useLayoutEffect:W1.useEffect;function iT(Q){let[U,G]=W1.useState(BigInt(0)),[K]=W1.useState(()=>ef(()=>G((H)=>H+BigInt(1))));return BR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function ef(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(G)=>{U.push(G),Q()}}}var AR=W1.createContext(null);function _j({children:Q}){let U=a0(),G=W1.useCallback((L)=>{let{nodes:M=[],setNodes:R,hasDefaultNodes:T,onNodesChange:A,nodeLookup:O,fitViewQueued:P,onNodesChangeMiddlewareMap:N}=U.getState(),v=M;for(let w of L)v=typeof w==="function"?w(v):w;let f=cT({items:v,lookup:O});for(let w of N.values())f=w(f);if(T)R(v);if(f.length>0)A?.(f);else if(P)window.requestAnimationFrame(()=>{let{fitViewQueued:w,nodes:D,setNodes:C}=U.getState();if(w)C(D)})},[]),K=iT(G),H=W1.useCallback((L)=>{let{edges:M=[],setEdges:R,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:O}=U.getState(),P=M;for(let N of L)P=typeof N==="function"?N(P):N;if(T)R(P);else if(A)A(cT({items:P,lookup:O}))},[]),Y=iT(H),z=W1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return K1.jsx(AR.Provider,{value:z,children:Q})}function Jj(){let Q=W1.useContext(AR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var $j=(Q)=>!!Q.panZoom;function aJ(){let Q=rf(),U=a0(),G=Jj(),K=L0($j),H=W1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),z=(A)=>{G.nodeQueue.push(A)},L=(A)=>{G.edgeQueue.push(A)},M=(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState(),N=dT(A)?A:O.get(A.id),v=N.parentId?EK(N.position,N.measured,N.parentId,O,P):N.position,f={...N,position:v,width:N.measured?.width??N.width,height:N.measured?.height??N.height};return C9(f)},R=(A,O,P={replace:!1})=>{z((N)=>N.map((v)=>{if(v.id===A){let f=typeof O==="function"?O(v):O;return P.replace&&dT(f)?f:{...v,...f}}return v}))},T=(A,O,P={replace:!1})=>{L((N)=>N.map((v)=>{if(v.id===A){let f=typeof O==="function"?O(v):O;return P.replace&&nf(f)?f:{...v,...f}}return v}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((O)=>({...O}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:z,setEdges:L,addNodes:(A)=>{let O=Array.isArray(A)?A:[A];G.nodeQueue.push((P)=>[...P,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];G.edgeQueue.push((P)=>[...P,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:P}=U.getState(),[N,v,f]=P;return{nodes:A.map((w)=>({...w})),edges:O.map((w)=>({...w})),viewport:{x:N,y:v,zoom:f}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:P,edges:N,onNodesDelete:v,onEdgesDelete:f,triggerNodeChanges:w,triggerEdgeChanges:D,onDelete:C,onBeforeDelete:j}=U.getState(),{nodes:y,edges:h}=await tM({nodesToRemove:A,edgesToRemove:O,nodes:P,edges:N,onBeforeDelete:j}),b=h.length>0,E=y.length>0;if(b){let u=h.map(lT);f?.(h),D(u)}if(E){let u=y.map(lT);v?.(y),w(u)}if(E||b)C?.({nodes:y,edges:h});return{deletedNodes:y,deletedEdges:h}},getIntersectingNodes:(A,O=!0,P)=>{let N=DK(A),v=N?A:M(A),f=P!==void 0;if(!v)return[];return(P||U.getState().nodes).filter((w)=>{let D=U.getState().nodeLookup.get(w.id);if(D&&!N&&(w.id===A.id||!D.internals.positionAbsolute))return!1;let C=C9(f?w:D),j=lJ(C,v);return O&&j>0||j>=C.width*C.height||j>=v.width*v.height})},isNodeIntersecting:(A,O,P=!0)=>{let v=DK(A)?A:M(A);if(!v)return!1;let f=lJ(v,O);return P&&f>0||f>=O.width*O.height||f>=v.width*v.height},updateNode:R,updateNodeData:(A,O,P={replace:!1})=>{R(A,(N)=>{let v=typeof O==="function"?O(N):O;return P.replace?{...N,data:v}:{...N,data:{...N.data,...v}}},P)},updateEdge:T,updateEdgeData:(A,O,P={replace:!1})=>{T(A,(N)=>{let v=typeof O==="function"?O(N):O;return P.replace?{...N,data:v}:{...N,data:{...N.data,...v}}},P)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState();return VK(A,{nodeLookup:O,nodeOrigin:P})},getHandleConnections:({type:A,id:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??eM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),G.nodeQueue.push((P)=>[...P]),O.promise}}},[]);return W1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var rT=(Q)=>Q.selected,Qj=typeof window<"u"?window:void 0;function qj({deleteKeyCode:Q,multiSelectionKeyCode:U}){let G=a0(),{deleteElements:K}=aJ(),H=rJ(Q,{actInsideInputWithModifier:!1}),Y=rJ(U,{target:Qj});W1.useEffect(()=>{if(H){let{edges:z,nodes:L}=G.getState();K({nodes:L.filter(rT),edges:z.filter(rT)}),G.setState({nodesSelectionActive:!1})}},[H]),W1.useEffect(()=>{G.setState({multiSelectionActive:Y})},[Y])}function Uj(Q){let U=a0();W1.useEffect(()=>{let G=()=>{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){G(),window.addEventListener("resize",G);let K=new ResizeObserver(()=>G());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",G),K&&Q.current)K.unobserve(Q.current)}}},[])}var ZU={position:"absolute",width:"100%",height:"100%",top:0,left:0},Gj=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function Zj({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:G=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:z=d3.Free,zoomOnDoubleClick:L=!0,panOnDrag:M=!0,defaultViewport:R,translateExtent:T,minZoom:A,maxZoom:O,zoomActivationKeyCode:P,preventScrolling:N=!0,children:v,noWheelClassName:f,noPanClassName:w,onViewportChange:D,isControlledViewport:C,paneClickDistance:j,selectionOnDrag:y}){let h=a0(),b=W1.useRef(null),{userSelectionActive:E,lib:u,connectionInProgress:x}=L0(Gj,r0),n=rJ(P),q1=W1.useRef();Uj(b);let Q1=W1.useCallback((m)=>{if(D?.({x:m[0],y:m[1],zoom:m[2]}),!C)h.setState({transform:m})},[D,C]);return W1.useEffect(()=>{if(b.current){q1.current=IT({domNode:b.current,minZoom:A,maxZoom:O,translateExtent:T,viewport:R,onDraggingChange:(c)=>h.setState((l)=>l.paneDragging===c?l:{paneDragging:c}),onPanZoomStart:(c,l)=>{let{onViewportChangeStart:a,onMoveStart:k}=h.getState();k?.(c,l),a?.(l)},onPanZoom:(c,l)=>{let{onViewportChange:a,onMove:k}=h.getState();k?.(c,l),a?.(l)},onPanZoomEnd:(c,l)=>{let{onViewportChangeEnd:a,onMoveEnd:k}=h.getState();k?.(c,l),a?.(l)}});let{x:m,y:g,zoom:p}=q1.current.getViewport();return h.setState({panZoom:q1.current,transform:[m,g,p],domNode:b.current.closest(".react-flow")}),()=>{q1.current?.destroy()}}},[]),W1.useEffect(()=>{q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:G,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:z,zoomOnDoubleClick:L,panOnDrag:M,zoomActivationKeyPressed:n,preventScrolling:N,noPanClassName:w,userSelectionActive:E,noWheelClassName:f,lib:u,onTransformChange:Q1,connectionInProgress:x,selectionOnDrag:y,paneClickDistance:j})},[Q,U,G,K,H,Y,z,L,M,n,N,w,E,f,u,Q1,x,y,j]),K1.jsx("div",{className:"react-flow__renderer",ref:b,style:ZU,children:v})}var Fj=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function Xj(){let{userSelectionActive:Q,userSelectionRect:U}=L0(Fj,r0);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 tK=(Q,U)=>{return(G)=>{if(G.target!==U.current)return;Q?.(G)}},Kj=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Hj({isSelecting:Q,selectionKeyPressed:U,selectionMode:G=_7.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:z,onSelectionStart:L,onSelectionEnd:M,onPaneClick:R,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:P,onPaneMouseLeave:N,children:v}){let f=W1.useRef(0),w=a0(),{userSelectionActive:D,elementsSelectable:C,dragging:j,panBy:y,autoPanSpeed:h}=L0(Kj,r0),b=C&&(Q||D),E=W1.useRef(null),u=W1.useRef(),x=W1.useRef(new Set),n=W1.useRef(new Set),q1=W1.useRef(!1),Q1=W1.useRef(!1),m=W1.useRef({x:0,y:0}),g=W1.useRef(!1),p=(G1)=>{if(Q1.current||q1.current||w.getState().connection.inProgress){Q1.current=!1,q1.current=!1;return}R?.(G1),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},c=(G1)=>{if(Array.isArray(K)&&K?.includes(2)){G1.preventDefault();return}T?.(G1)},l=A?(G1)=>A(G1):void 0,a=(G1)=>{if(Q1.current)G1.stopPropagation(),Q1.current=!1},k=(G1)=>{if(G1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:R1,transform:N1}=w.getState();if(u.current=R1?.getBoundingClientRect(),!u.current)return;let H1=G1.target===E.current;if(!H1&&!!G1.target.closest(".nokey")||!Q||!(z&&H1||U)||G1.button!==0||!G1.isPrimary)return;G1.target?.setPointerCapture?.(G1.pointerId),Q1.current=!1;let{x:d1,y:x1}=q4(G1.nativeEvent,u.current),M1=f9({x:d1,y:x1},N1);if(w.setState({userSelectionRect:{width:0,height:0,startX:M1.x,startY:M1.y,x:d1,y:x1}}),!H1)G1.stopPropagation(),G1.preventDefault()};function s(G1,R1){let{userSelectionRect:N1}=w.getState();if(!N1)return;let{transform:H1,nodeLookup:y1,edgeLookup:j1,connectionLookup:d1,triggerNodeChanges:x1,triggerEdgeChanges:M1,defaultEdgeOptions:g1}=w.getState(),b1={x:N1.startX,y:N1.startY},{x:p0,y:$0}=$7(b1,H1),e0={startX:b1.x,startY:b1.y,x:G1<p0?G1:p0,y:R1<$0?R1:$0,width:Math.abs(G1-p0),height:Math.abs(R1-$0)},j2=x.current,R2=n.current;x.current=new Set(cq(y1,e0,H1,G===_7.Partial,!0).map((O2)=>O2.id)),n.current=new Set;let v2=g1?.selectable??!0;for(let O2 of x.current){let q2=d1.get(O2);if(!q2)continue;for(let{edgeId:I2}of q2.values()){let P2=j1.get(I2);if(P2&&(P2.selectable??v2))n.current.add(I2)}}if(!hK(j2,x.current)){let O2=v9(y1,x.current,!0);x1(O2)}if(!hK(R2,n.current)){let O2=v9(j1,n.current);M1(O2)}w.setState({userSelectionRect:e0,userSelectionActive:!0,nodesSelectionActive:!1})}function $1(){if(!H||!u.current)return;let[G1,R1]=lq(m.current,u.current,h);y({x:G1,y:R1}).then((N1)=>{if(!Q1.current||!N1){f.current=requestAnimationFrame($1);return}let{x:H1,y:y1}=m.current;s(H1,y1),f.current=requestAnimationFrame($1)})}let o=()=>{cancelAnimationFrame(f.current),f.current=0,g.current=!1};W1.useEffect(()=>{return()=>o()},[]);let B1=(G1)=>{let{userSelectionRect:R1,transform:N1,resetSelectedElements:H1}=w.getState();if(!u.current||!R1)return;let{x:y1,y:j1}=q4(G1.nativeEvent,u.current);m.current={x:y1,y:j1};let d1=$7({x:R1.startX,y:R1.startY},N1);if(!Q1.current){let x1=U?0:Y;if(Math.hypot(y1-d1.x,j1-d1.y)<=x1)return;H1(),L?.(G1)}if(Q1.current=!0,!g.current)$1(),g.current=!0;s(y1,j1)},O1=(G1)=>{if(!b){if(G1.target===E.current&&w.getState().connection.inProgress)q1.current=!0;return}if(G1.button!==0)return;if(G1.target?.releasePointerCapture?.(G1.pointerId),!D&&G1.target===E.current&&w.getState().userSelectionRect)p?.(G1);if(w.setState({userSelectionActive:!1,userSelectionRect:null}),Q1.current)M?.(G1),w.setState({nodesSelectionActive:x.current.size>0});o()},L1=(G1)=>{G1.target?.releasePointerCapture?.(G1.pointerId),o()},T1=K===!0||Array.isArray(K)&&K.includes(0);return K1.jsxs("div",{className:Q2(["react-flow__pane",{draggable:T1,dragging:j,selection:Q}]),onClick:b?void 0:tK(p,E),onContextMenu:tK(c,E),onWheel:tK(l,E),onPointerEnter:b?void 0:O,onPointerMove:b?B1:P,onPointerUp:O1,onPointerCancel:b?L1:void 0,onPointerDownCapture:b?k:void 0,onClickCapture:b?a:void 0,onPointerLeave:N,ref:E,style:ZU,children:[v,K1.jsx(Xj,{})]})}function nK({id:Q,store:U,unselect:G=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:z,nodeLookup:L,onError:M}=U.getState(),R=L.get(Q);if(!R){M?.("012",X5.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(G||R.selected&&z)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function MR({nodeRef:Q,disabled:U=!1,noDragClassName:G,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:z}){let L=a0(),[M,R]=W1.useState(!1),T=W1.useRef();return W1.useEffect(()=>{if(U)return;return T.current=WT({getStoreItems:()=>L.getState(),onNodeMouseDown:(A)=>{nK({id:A,store:L,nodeRef:Q})},onDragStart:()=>{R(!0)},onDragStop:()=>{R(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,L,Q]),W1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:G,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:z})},[G,K,U,Y,Q,H,z]),M}var Yj=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function TR(){let Q=a0();return W1.useCallback((G)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:z,onError:L,updateNodePositions:M,nodeLookup:R,nodeOrigin:T}=Q.getState(),A=new Map,O=Yj(z),P=H?Y[0]:5,N=H?Y[1]:5,v=G.direction.x*P*G.factor,f=G.direction.y*N*G.factor;for(let[,w]of R){if(!O(w))continue;let D={x:w.internals.positionAbsolute.x+v,y:w.internals.positionAbsolute.y+f};if(H)D=S9(D,Y);let{position:C,positionAbsolute:j}=yK({nodeId:w.id,nextPosition:D,nodeLookup:R,nodeExtent:K,nodeOrigin:T,onError:L});w.position=C,w.internals.positionAbsolute=j,A.set(w.id,w)}M(A)},[])}var eK=W1.createContext(null),zj=eK.Provider;eK.Consumer;var _H=()=>{return W1.useContext(eK)},Wj=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),RR=W1.createContext(null);function Lj({children:Q}){let U=L0(Wj,r0);return K1.jsx(RR.Provider,{value:U,children:Q})}function Bj(){let Q=W1.useContext(RR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Aj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Mj=(Q,U,G)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:z}=K,{fromHandle:L,toHandle:M,isValid:R}=z;if(!L&&!H)return Aj;let T=M?.nodeId===Q&&M?.id===U&&M?.type===G;return{connectingFrom:L?.nodeId===Q&&L?.id===U&&L?.type===G,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===G,isPossibleEndHandle:Y===t6.Strict?L?.type!==G:Q!==L?.nodeId||U!==L?.id,connectionInProcess:!!L,clickConnectionInProcess:!!H,valid:T&&R}};function Tj({type:Q="source",position:U=E1.Top,isValidConnection:G,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:z,onConnect:L,children:M,className:R,onMouseDown:T,onTouchStart:A,...O},P){let N=z||null,v=Q==="target",f=a0(),w=_H(),{connectOnClick:D,noPanClassName:C,rfId:j}=Bj(),{connectingFrom:y,connectingTo:h,clickConnecting:b,isPossibleEndHandle:E,connectionInProcess:u,clickConnectionInProcess:x,valid:n}=L0(Mj(w,N,Q),r0);if(!w)f.getState().onError?.("010",X5.error010());let q1=(g)=>{let{defaultEdgeOptions:p,onConnect:c,hasDefaultEdges:l}=f.getState(),a={...p,...g};if(l){let{edges:k,setEdges:s,onError:$1}=f.getState();s(of(a,k,{onError:$1}))}c?.(a),L?.(a)},Q1=(g)=>{if(!w)return;let p=pK(g.nativeEvent);if(H&&(p&&g.button===0||!p)){let c=f.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:N,nodeId:w,flowId:c.rfId,panBy:c.panBy,cancelConnection:c.cancelConnection,onConnectStart:c.onConnectStart,onConnectEnd:(...l)=>f.getState().onConnectEnd?.(...l),updateConnection:c.updateConnection,onConnect:q1,isValidConnection:G||((...l)=>f.getState().isValidConnection?.(...l)??!0),getTransform:()=>f.getState().transform,getFromHandle:()=>f.getState().connection.fromHandle,autoPanSpeed:c.autoPanSpeed,dragThreshold:c.connectionDragThreshold})}if(p)T?.(g);else A?.(g)},m=(g)=>{let{onClickConnectStart:p,onClickConnectEnd:c,connectionClickStartHandle:l,connectionMode:a,isValidConnection:k,lib:s,rfId:$1,nodeLookup:o,connection:B1}=f.getState();if(!w||!l&&!H)return;if(!l){p?.(g.nativeEvent,{nodeId:w,handleId:N,handleType:Q}),f.setState({connectionClickStartHandle:{nodeId:w,type:Q,id:N}});return}let O1=mK(g.target),L1=G||k,{connection:T1,isValid:G1}=_U.isValid(g.nativeEvent,{handle:{nodeId:w,id:N,type:Q},connectionMode:a,fromNodeId:l.nodeId,fromHandleId:l.id||null,fromType:l.type,isValidConnection:L1,flowId:$1,doc:O1,lib:s,nodeLookup:o});if(G1&&T1)q1(T1);let R1=structuredClone(B1);delete R1.inProgress,R1.toPosition=R1.toHandle?R1.toHandle.position:null,c?.(g,R1),f.setState({connectionClickStartHandle:null})};return K1.jsx("div",{"data-handleid":N,"data-nodeid":w,"data-handlepos":U,"data-id":`${j}-${w}-${N}-${Q}`,className:Q2(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",C,R,{source:!v,target:v,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:b,connectingfrom:y,connectingto:h,valid:n,connectionindicator:K&&(!u||E)&&(u||x?Y:H)}]),onMouseDown:Q1,onTouchStart:Q1,onClick:D?m:void 0,ref:P,...O,children:M})}var qU=W1.memo(LR(Tj));function Rj({data:Q,isConnectable:U,sourcePosition:G=E1.Bottom}){return K1.jsxs(K1.Fragment,{children:[Q?.label,K1.jsx(qU,{type:"source",position:G,isConnectable:U})]})}function Oj({data:Q,isConnectable:U,targetPosition:G=E1.Top,sourcePosition:K=E1.Bottom}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:G,isConnectable:U}),Q?.label,K1.jsx(qU,{type:"source",position:K,isConnectable:U})]})}function Ij(){return null}function Pj({data:Q,isConnectable:U,targetPosition:G=E1.Top}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:G,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}},aT={input:Rj,default:Oj,output:Pj,group:Ij};function Nj(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:G,x:K,y:H}=q7(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:Q4(U)?U:null,height:Q4(G)?G:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${H}px)`}};function Cj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:G}){let K=a0(),{width:H,height:Y,transformString:z,userSelectionActive:L}=L0(wj,r0),M=TR(),R=W1.useRef(null);W1.useEffect(()=>{if(!G)R.current?.focus({preventScroll:!0})},[G]);let T=!L&&H!==null&&Y!==null;if(MR({nodeRef:R,disabled:!T}),!T)return null;let A=Q?(P)=>{let N=K.getState().nodes.filter((v)=>v.selected);Q(P,N)}:void 0,O=(P)=>{if(Object.prototype.hasOwnProperty.call(UU,P.key))P.preventDefault(),M({direction:UU[P.key],factor:P.shiftKey?4:1})};return K1.jsx("div",{className:Q2(["react-flow__nodesselection","react-flow__container",U]),style:{transform:z},children:K1.jsx("div",{ref:R,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:G?void 0:-1,onKeyDown:G?void 0:O,style:{width:H,height:Y}})})}var sT=typeof window<"u"?window:void 0,Sj=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function OR({children:Q,onPaneClick:U,onPaneMouseEnter:G,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:z,paneClickDistance:L,deleteKeyCode:M,selectionKeyCode:R,selectionOnDrag:T,selectionMode:A,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:N,panActivationKeyCode:v,zoomActivationKeyCode:f,elementsSelectable:w,zoomOnScroll:D,zoomOnPinch:C,panOnScroll:j,panOnScrollSpeed:y,panOnScrollMode:h,zoomOnDoubleClick:b,panOnDrag:E,autoPanOnSelection:u,defaultViewport:x,translateExtent:n,minZoom:q1,maxZoom:Q1,preventScrolling:m,onSelectionContextMenu:g,noWheelClassName:p,noPanClassName:c,disableKeyboardA11y:l,onViewportChange:a,isControlledViewport:k}){let{nodesSelectionActive:s,userSelectionActive:$1}=L0(Sj,r0),o=rJ(R,{target:sT}),B1=rJ(v,{target:sT}),O1=B1||E,L1=B1||j,T1=T&&O1!==!0,G1=o||$1||T1;return qj({deleteKeyCode:M,multiSelectionKeyCode:N}),K1.jsx(Zj,{onPaneContextMenu:Y,elementsSelectable:w,zoomOnScroll:D,zoomOnPinch:C,panOnScroll:L1,panActivationKeyPressed:B1,panOnScrollSpeed:y,panOnScrollMode:h,zoomOnDoubleClick:b,panOnDrag:!o&&O1,defaultViewport:x,translateExtent:n,minZoom:q1,maxZoom:Q1,zoomActivationKeyCode:f,preventScrolling:m,noWheelClassName:p,noPanClassName:c,onViewportChange:a,isControlledViewport:k,paneClickDistance:L,selectionOnDrag:T1,children:K1.jsxs(Hj,{onSelectionStart:O,onSelectionEnd:P,onPaneClick:U,onPaneMouseEnter:G,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:z,panOnDrag:O1,autoPanOnSelection:u,isSelecting:!!G1,selectionMode:A,selectionKeyPressed:o,paneClickDistance:L,selectionOnDrag:T1,children:[Q,s&&K1.jsx(Cj,{onSelectionContextMenu:g,noPanClassName:c,disableKeyboardA11y:l})]})})}OR.displayName="FlowRenderer";var fj=W1.memo(OR),jj=(Q)=>(U)=>{return Q?cq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((G)=>G.id):Array.from(U.nodeLookup.keys())};function vj(Q){return L0(W1.useCallback(jj(Q),[Q]),r0)}var Vj=(Q)=>Q.updateNodeInternals;function yj(){let Q=L0(Vj),[U]=W1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((G)=>{let K=new Map;G.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 kj({node:Q,nodeType:U,hasDimensions:G,resizeObserver:K}){let H=a0(),Y=W1.useRef(null),z=W1.useRef(null),L=W1.useRef(Q.sourcePosition),M=W1.useRef(Q.targetPosition),R=W1.useRef(U),T=G&&!!Q.internals.handleBounds;return W1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||z.current!==Y.current)){if(z.current)K?.unobserve(z.current);K?.observe(Y.current),z.current=Y.current}},[T,Q.hidden]),W1.useEffect(()=>{return()=>{if(z.current)K?.unobserve(z.current),z.current=null}},[]),W1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=L.current!==Q.sourcePosition,P=M.current!==Q.targetPosition;if(A||O||P)R.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 Dj({id:Q,onClick:U,onMouseEnter:G,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:z,nodesDraggable:L,elementsSelectable:M,nodesConnectable:R,nodesFocusable:T,resizeObserver:A,noDragClassName:O,noPanClassName:P,disableKeyboardA11y:N,rfId:v,nodeTypes:f,nodeClickDistance:w,onError:D}){let{node:C,internals:j,isParent:y}=L0((G1)=>{let R1=G1.nodeLookup.get(Q),N1=G1.parentLookup.has(Q);return{node:R1,internals:R1.internals,isParent:N1}},r0),h=C.type||"default",b=f?.[h]||aT[h];if(b===void 0)D?.("003",X5.error003(h)),h="default",b=f?.default||aT.default;let E=!!(C.draggable||L&&typeof C.draggable>"u"),u=!!(C.selectable||M&&typeof C.selectable>"u"),x=!!(C.connectable||R&&typeof C.connectable>"u"),n=!!(C.focusable||T&&typeof C.focusable>"u"),q1=a0(),Q1=bK(C),m=kj({node:C,nodeType:h,hasDimensions:Q1,resizeObserver:A}),g=MR({nodeRef:m,disabled:C.hidden||!E,noDragClassName:O,handleSelector:C.dragHandle,nodeId:Q,isSelectable:u,nodeClickDistance:w}),p=TR();if(C.hidden)return null;let c=U4(C),l=Nj(C),a=u||E||U||G||K||H,k=G?(G1)=>G(G1,{...j.userNode}):void 0,s=K?(G1)=>K(G1,{...j.userNode}):void 0,$1=H?(G1)=>H(G1,{...j.userNode}):void 0,o=Y?(G1)=>Y(G1,{...j.userNode}):void 0,B1=z?(G1)=>z(G1,{...j.userNode}):void 0,O1=(G1)=>{let{selectNodesOnDrag:R1,nodeDragThreshold:N1}=q1.getState();if(u&&(!R1||!E||N1>0))nK({id:Q,store:q1,nodeRef:m});if(U)U(G1,{...j.userNode})},L1=(G1)=>{if(gK(G1.nativeEvent)||N)return;if(CK.includes(G1.key)&&u){let R1=G1.key==="Escape";nK({id:Q,store:q1,unselect:R1,nodeRef:m})}else if(E&&C.selected&&Object.prototype.hasOwnProperty.call(UU,G1.key)){G1.preventDefault();let{ariaLabelConfig:R1}=q1.getState();q1.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(N||!m.current?.matches(":focus-visible"))return;let{transform:G1,width:R1,height:N1,autoPanOnNodeFocus:H1,setCenter:y1}=q1.getState();if(!H1)return;if(!(cq(new Map([[Q,C]]),{x:0,y:0,width:R1,height:N1},G1,!0).length>0))y1(C.position.x+c.width/2,C.position.y+c.height/2,{zoom:G1[2]})};return K1.jsx("div",{className:Q2(["react-flow__node",`react-flow__node-${h}`,{[P]:E},C.className,{selected:C.selected,selectable:u,parent:y,draggable:E,dragging:g}]),ref:m,style:{zIndex:j.z,transform:`translate(${j.positionAbsolute.x}px,${j.positionAbsolute.y}px)`,pointerEvents:a?"all":"none",visibility:Q1?"visible":"hidden",...C.style,...l},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:s,onMouseLeave:$1,onContextMenu:o,onClick:O1,onDoubleClick:B1,onKeyDown:n?L1:void 0,tabIndex:n?0:void 0,onFocus:n?T1:void 0,role:C.ariaRole??(n?"group":void 0),"aria-roledescription":"node","aria-describedby":N?void 0:`${KR}-${v}`,"aria-label":C.ariaLabel,...C.domAttributes,children:K1.jsx(zj,{value:Q,children:K1.jsx(b,{id:Q,data:C.data,type:h,positionAbsoluteX:j.positionAbsolute.x,positionAbsoluteY:j.positionAbsolute.y,selected:C.selected??!1,selectable:u,draggable:E,deletable:C.deletable??!0,isConnectable:x,sourcePosition:C.sourcePosition,targetPosition:C.targetPosition,dragging:g,dragHandle:C.dragHandle,zIndex:j.z,parentId:C.parentId,...c})})})}var uj=W1.memo(Dj),bj=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function IR(Q){let{nodesConnectable:U,nodesFocusable:G,elementsSelectable:K,onError:H}=L0(bj,r0),Y=vj(Q.onlyRenderVisibleElements),z=yj();return K1.jsx("div",{className:"react-flow__nodes",style:ZU,children:Y.map((L)=>{return K1.jsx(uj,{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:z,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:G,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:H},L)})})}IR.displayName="NodeRenderer";var Ej=W1.memo(IR);function hj(Q){return L0(W1.useCallback((G)=>{if(!Q)return G.edges.map((H)=>H.id);let K=[];if(G.width&&G.height)for(let H of G.edges){let Y=G.nodeLookup.get(H.source),z=G.nodeLookup.get(H.target);if(Y&&z&&QT({sourceNode:Y,targetNode:z,width:G.width,height:G.height,transform:G.transform}))K.push(H.id)}return K},[Q]),r0)}var xj=({color:Q="none",strokeWidth:U=1})=>{let G={strokeWidth:U,...Q&&{stroke:Q}};return K1.jsx("polyline",{className:"arrow",style:G,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},mj=({color:Q="none",strokeWidth:U=1})=>{let G={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return K1.jsx("polyline",{className:"arrowclosed",style:G,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},tT={[P9.Arrow]:xj,[P9.ArrowClosed]:mj};function gj(Q){let U=a0();return W1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(tT,Q))return U.getState().onError?.("009",X5.error009(Q)),null;return tT[Q]},[Q])}var pj=({id:Q,type:U,color:G,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:z,orient:L="auto-start-reverse"})=>{let M=gj(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:G,strokeWidth:z})})},PR=({defaultColor:Q,rfId:U})=>{let G=L0((Y)=>Y.edges),K=L0((Y)=>Y.defaultEdgeOptions),H=W1.useMemo(()=>{return GT(G,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[G,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(pj,{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))})})};PR.displayName="MarkerDefinitions";var cj=W1.memo(PR);function NR({x:Q,y:U,label:G,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:z=[2,4],labelBgBorderRadius:L=2,children:M,className:R,...T}){let[A,O]=W1.useState({x:1,y:0,width:0,height:0}),P=Q2(["react-flow__edge-textwrapper",R]),N=W1.useRef(null);if(W1.useEffect(()=>{if(N.current){let v=N.current.getBBox();O({x:v.x,y:v.y,width:v.width,height:v.height})}},[G]),!G)return null;return K1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:P,visibility:A.width?"visible":"hidden",...T,children:[H&&K1.jsx("rect",{width:A.width+2*z[0],x:-z[0],y:-z[1],height:A.height+2*z[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:N,style:K,children:G}),M]})}NR.displayName="EdgeText";var lj=W1.memo(NR);function FU({path:Q,labelX:U,labelY:G,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:z,labelBgPadding:L,labelBgBorderRadius:M,interactionWidth:R=20,...T}){return K1.jsxs(K1.Fragment,{children:[K1.jsx("path",{...T,d:Q,fill:"none",className:Q2(["react-flow__edge-path",T.className])}),R?K1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,K&&Q4(U)&&Q4(G)?K1.jsx(lj,{x:U,y:G,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:z,labelBgPadding:L,labelBgBorderRadius:M}):null]})}function oT({pos:Q,x1:U,y1:G,x2:K,y2:H}){if(Q===E1.Left||Q===E1.Right)return[0.5*(U+K),G];return[U,0.5*(G+H)]}function wR({sourceX:Q,sourceY:U,sourcePosition:G=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top}){let[z,L]=oT({pos:G,x1:Q,y1:U,x2:K,y2:H}),[M,R]=oT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[T,A,O,P]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:z,sourceControlY:L,targetControlX:M,targetControlY:R});return[`M${Q},${U} C${z},${L} ${M},${R} ${K},${H}`,T,A,O,P]}function CR(Q){return W1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,sourcePosition:z,targetPosition:L,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,interactionWidth:w})=>{let[D,C,j]=wR({sourceX:G,sourceY:K,sourcePosition:z,targetX:H,targetY:Y,targetPosition:L}),y=Q.isInternal?void 0:U;return K1.jsx(FU,{id:y,path:D,labelX:C,labelY:j,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,interactionWidth:w})})}var dj=CR({isInternal:!1}),SR=CR({isInternal:!0});dj.displayName="SimpleBezierEdge";SR.displayName="SimpleBezierEdgeInternal";function fR(Q){return W1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,sourcePosition:P=E1.Bottom,targetPosition:N=E1.Top,markerEnd:v,markerStart:f,pathOptions:w,interactionWidth:D})=>{let[C,j,y]=iJ({sourceX:G,sourceY:K,sourcePosition:P,targetX:H,targetY:Y,targetPosition:N,borderRadius:w?.borderRadius,offset:w?.offset,stepPosition:w?.stepPosition}),h=Q.isInternal?void 0:U;return K1.jsx(FU,{id:h,path:C,labelX:j,labelY:y,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:v,markerStart:f,interactionWidth:D})})}var jR=fR({isInternal:!1}),vR=fR({isInternal:!0});jR.displayName="SmoothStepEdge";vR.displayName="SmoothStepEdgeInternal";function VR(Q){return W1.memo(({id:U,...G})=>{let K=Q.isInternal?void 0:U;return K1.jsx(jR,{...G,id:K,pathOptions:W1.useMemo(()=>({borderRadius:0,offset:G.pathOptions?.offset}),[G.pathOptions?.offset])})})}var ij=VR({isInternal:!1}),yR=VR({isInternal:!0});ij.displayName="StepEdge";yR.displayName="StepEdgeInternal";function kR(Q){return W1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:v})=>{let[f,w,D]=tq({sourceX:G,sourceY:K,targetX:H,targetY:Y}),C=Q.isInternal?void 0:U;return K1.jsx(FU,{id:C,path:f,labelX:w,labelY:D,label:z,labelStyle:L,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:v})})}var rj=kR({isInternal:!1}),DR=kR({isInternal:!0});rj.displayName="StraightEdge";DR.displayName="StraightEdgeInternal";function uR(Q){return W1.memo(({id:U,sourceX:G,sourceY:K,targetX:H,targetY:Y,sourcePosition:z=E1.Bottom,targetPosition:L=E1.Top,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,pathOptions:w,interactionWidth:D})=>{let[C,j,y]=sq({sourceX:G,sourceY:K,sourcePosition:z,targetX:H,targetY:Y,targetPosition:L,curvature:w?.curvature}),h=Q.isInternal?void 0:U;return K1.jsx(FU,{id:h,path:C,labelX:j,labelY:y,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:v,markerStart:f,interactionWidth:D})})}var aj=uR({isInternal:!1}),bR=uR({isInternal:!0});aj.displayName="BezierEdge";bR.displayName="BezierEdgeInternal";var nT={default:bR,straight:DR,step:yR,smoothstep:vR,simplebezier:SR},eT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},sj=(Q,U,G)=>{if(G===E1.Left)return Q-U;if(G===E1.Right)return Q+U;return Q},tj=(Q,U,G)=>{if(G===E1.Top)return Q-U;if(G===E1.Bottom)return Q+U;return Q},_R="react-flow__edgeupdater";function JR({position:Q,centerX:U,centerY:G,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:z,type:L}){return K1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:z,className:Q2([_R,`${_R}-${L}`]),cx:sj(U,K,Q),cy:tj(G,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function oj({isReconnectable:Q,reconnectRadius:U,edge:G,sourceX:K,sourceY:H,targetX:Y,targetY:z,sourcePosition:L,targetPosition:M,onReconnect:R,onReconnectStart:T,onReconnectEnd:A,setReconnecting:O,setUpdateHover:P}){let N=a0(),v=(j,y)=>{if(j.button!==0)return;let{autoPanOnConnect:h,domNode:b,connectionMode:E,connectionRadius:u,lib:x,onConnectStart:n,cancelConnection:q1,nodeLookup:Q1,rfId:m,panBy:g,updateConnection:p}=N.getState(),c=y.type==="target",l=(s,$1)=>{O(!1),A?.(s,G,y.type,$1)},a=(s)=>R?.(G,s),k=(s,$1)=>{O(!0),T?.(j,G,y.type),n?.(s,$1)};_U.onPointerDown(j.nativeEvent,{autoPanOnConnect:h,connectionMode:E,connectionRadius:u,domNode:b,handleId:y.id,nodeId:y.nodeId,nodeLookup:Q1,isTarget:c,edgeUpdaterType:y.type,lib:x,flowId:m,cancelConnection:q1,panBy:g,isValidConnection:(...s)=>N.getState().isValidConnection?.(...s)??!0,onConnect:a,onConnectStart:k,onConnectEnd:(...s)=>N.getState().onConnectEnd?.(...s),onReconnectEnd:l,updateConnection:p,getTransform:()=>N.getState().transform,getFromHandle:()=>N.getState().connection.fromHandle,dragThreshold:N.getState().connectionDragThreshold,handleDomNode:j.currentTarget})},f=(j)=>v(j,{nodeId:G.target,id:G.targetHandle??null,type:"target"}),w=(j)=>v(j,{nodeId:G.source,id:G.sourceHandle??null,type:"source"}),D=()=>P(!0),C=()=>P(!1);return K1.jsxs(K1.Fragment,{children:[(Q===!0||Q==="source")&&K1.jsx(JR,{position:L,centerX:K,centerY:H,radius:U,onMouseDown:f,onMouseEnter:D,onMouseOut:C,type:"source"}),(Q===!0||Q==="target")&&K1.jsx(JR,{position:M,centerX:Y,centerY:z,radius:U,onMouseDown:w,onMouseEnter:D,onMouseOut:C,type:"target"})]})}function nj({id:Q,edgesFocusable:U,edgesReconnectable:G,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:z,onMouseEnter:L,onMouseMove:M,onMouseLeave:R,reconnectRadius:T,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,rfId:N,edgeTypes:v,noPanClassName:f,onError:w,disableKeyboardA11y:D}){let C=L0((y1)=>y1.edgeLookup.get(Q)),j=L0((y1)=>y1.defaultEdgeOptions);C=j?{...j,...C}:C;let y=C.type||"default",h=v?.[y]||nT[y];if(h===void 0)w?.("011",X5.error011(y)),y="default",h=v?.default||nT.default;let b=!!(C.focusable||U&&typeof C.focusable>"u"),E=typeof A<"u"&&(C.reconnectable||G&&typeof C.reconnectable>"u"),u=!!(C.selectable||K&&typeof C.selectable>"u"),x=W1.useRef(null),[n,q1]=W1.useState(!1),[Q1,m]=W1.useState(!1),g=a0(),{zIndex:p=C.zIndex,sourceX:c,sourceY:l,targetX:a,targetY:k,sourcePosition:s,targetPosition:$1}=L0(W1.useCallback((y1)=>{let j1=y1.nodeLookup.get(C.source),d1=y1.nodeLookup.get(C.target);if(!j1||!d1)return eT;let x1=UT({id:Q,sourceNode:j1,targetNode:d1,sourceHandle:C.sourceHandle||null,targetHandle:C.targetHandle||null,connectionMode:y1.connectionMode,onError:w}),M1=$T({selected:C.selected,zIndex:C.zIndex,sourceNode:j1,targetNode:d1,elevateOnSelect:y1.elevateEdgesOnSelect,zIndexMode:y1.zIndexMode});return{...x1||eT,zIndex:M1}},[C.source,C.target,C.sourceHandle,C.targetHandle,C.selected,C.zIndex,w]),r0),o=W1.useMemo(()=>C.markerStart?`url('#${oq(C.markerStart,N)}')`:void 0,[C.markerStart,N]),B1=W1.useMemo(()=>C.markerEnd?`url('#${oq(C.markerEnd,N)}')`:void 0,[C.markerEnd,N]);if(C.hidden||c===null||l===null||a===null||k===null)return null;let O1=(y1)=>{let{addSelectedEdges:j1,unselectNodesAndEdges:d1,multiSelectionActive:x1}=g.getState();if(u)if(g.setState({nodesSelectionActive:!1}),C.selected&&x1)d1({nodes:[],edges:[C]}),x.current?.blur();else j1([Q]);if(H)H(y1,C)},L1=Y?(y1)=>{Y(y1,{...C})}:void 0,T1=z?(y1)=>{z(y1,{...C})}:void 0,G1=L?(y1)=>{L(y1,{...C})}:void 0,R1=M?(y1)=>{M(y1,{...C})}:void 0,N1=R?(y1)=>{R(y1,{...C})}:void 0,H1=(y1)=>{if(!D&&CK.includes(y1.key)&&u){let{unselectNodesAndEdges:j1,addSelectedEdges:d1}=g.getState();if(y1.key==="Escape")x.current?.blur(),j1({edges:[C]});else d1([Q])}};return K1.jsx("svg",{style:{zIndex:p},children:K1.jsxs("g",{className:Q2(["react-flow__edge",`react-flow__edge-${y}`,C.className,f,{selected:C.selected,animated:C.animated,inactive:!u&&!H,updating:n,selectable:u}]),onClick:O1,onDoubleClick:L1,onContextMenu:T1,onMouseEnter:G1,onMouseMove:R1,onMouseLeave:N1,onKeyDown:b?H1:void 0,tabIndex:b?0:void 0,role:C.ariaRole??(b?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":C.ariaLabel===null?void 0:C.ariaLabel||`Edge from ${C.source} to ${C.target}`,"aria-describedby":b?`${HR}-${N}`:void 0,ref:x,...C.domAttributes,children:[!Q1&&K1.jsx(h,{id:Q,source:C.source,target:C.target,type:C.type,selected:C.selected,animated:C.animated,selectable:u,deletable:C.deletable??!0,label:C.label,labelStyle:C.labelStyle,labelShowBg:C.labelShowBg,labelBgStyle:C.labelBgStyle,labelBgPadding:C.labelBgPadding,labelBgBorderRadius:C.labelBgBorderRadius,sourceX:c,sourceY:l,targetX:a,targetY:k,sourcePosition:s,targetPosition:$1,data:C.data,style:C.style,sourceHandleId:C.sourceHandle,targetHandleId:C.targetHandle,markerStart:o,markerEnd:B1,pathOptions:"pathOptions"in C?C.pathOptions:void 0,interactionWidth:C.interactionWidth}),E&&K1.jsx(oj,{edge:C,isReconnectable:E,reconnectRadius:T,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,sourceX:c,sourceY:l,targetX:a,targetY:k,sourcePosition:s,targetPosition:$1,setUpdateHover:q1,setReconnecting:m})]})})}var ej=W1.memo(nj),_v=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function ER({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:G,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:z,onEdgeMouseEnter:L,onEdgeMouseMove:M,onEdgeMouseLeave:R,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,disableKeyboardA11y:v}){let{edgesFocusable:f,edgesReconnectable:w,elementsSelectable:D,onError:C}=L0(_v,r0),j=hj(U);return K1.jsxs("div",{className:"react-flow__edges",children:[K1.jsx(cj,{defaultColor:Q,rfId:G}),j.map((y)=>{return K1.jsx(ej,{id:y,edgesFocusable:f,edgesReconnectable:w,elementsSelectable:D,noPanClassName:H,onReconnect:Y,onContextMenu:z,onMouseEnter:L,onMouseMove:M,onMouseLeave:R,onClick:T,reconnectRadius:A,onDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,rfId:G,onError:C,edgeTypes:K,disableKeyboardA11y:v},y)})]})}ER.displayName="EdgeRenderer";var Jv=W1.memo(ER),$R=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function $v({children:Q}){let U=a0(),G=W1.useRef(null),[K]=W1.useState(()=>U.getState().transform);return BR(()=>{let H=null,Y=()=>{let z=U.getState().transform;if(H&&z[0]===H[0]&&z[1]===H[1]&&z[2]===H[2])return;if(H=z,G.current)G.current.style.transform=$R(z)};return Y(),U.subscribe(Y)},[U]),K1.jsx("div",{ref:G,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:$R(K)},children:Q})}function Qv(Q){let U=aJ(),G=W1.useRef(!1);W1.useEffect(()=>{if(!G.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),G.current=!0},[Q,U.viewportInitialized])}var qv=(Q)=>Q.panZoom?.syncViewport;function Uv(Q){let U=L0(qv),G=a0();return W1.useEffect(()=>{if(Q)U?.(Q),G.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function QR(Q){return Q.connection.inProgress?{...Q.connection,to:f9(Q.connection.to,Q.transform)}:{...Q.connection}}function Gv(Q){if(Q)return(G)=>{let K=QR(G);return Q(K)};return QR}function Zv(Q){let U=Gv(Q);return L0(U,r0)}var Fv=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function Xv({containerStyle:Q,style:U,type:G,component:K}){let{nodesConnectable:H,width:Y,height:z,isValid:L,inProgress:M}=L0(Fv,r0);if(!(Y&&H&&M))return null;return K1.jsx("svg",{style:Q,width:Y,height:z,className:"react-flow__connectionline react-flow__container",children:K1.jsx("g",{className:Q2(["react-flow__connection",xK(L)]),children:K1.jsx(hR,{style:U,type:G,CustomComponent:K,isValid:L})})})}var hR=({style:Q,type:U=G3.Bezier,CustomComponent:G,isValid:K})=>{let{inProgress:H,from:Y,fromNode:z,fromHandle:L,fromPosition:M,to:R,toNode:T,toHandle:A,toPosition:O,pointer:P}=Zv();if(!H)return;if(G)return K1.jsx(G,{connectionLineType:U,connectionLineStyle:Q,fromNode:z,fromHandle:L,fromX:Y.x,fromY:Y.y,toX:R.x,toY:R.y,fromPosition:M,toPosition:O,connectionStatus:xK(K),toNode:T,toHandle:A,pointer:P});let N="",v={sourceX:Y.x,sourceY:Y.y,sourcePosition:M,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case G3.Bezier:[N]=sq(v);break;case G3.SimpleBezier:[N]=wR(v);break;case G3.Step:[N]=iJ({...v,borderRadius:0});break;case G3.SmoothStep:[N]=iJ(v);break;default:[N]=tq(v)}return K1.jsx("path",{d:N,fill:"none",className:"react-flow__connection-path",style:Q})};hR.displayName="ConnectionLine";var Kv={};function qR(Q=Kv){let U=W1.useRef(Q),G=a0();W1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of K)if(U.current[H]!==Q[H]){G.getState().onError?.("002",X5.error002());break}U.current=Q}},[Q])}function Hv(){let Q=a0(),U=W1.useRef(!1);W1.useEffect(()=>{if(!U.current){let G=document.querySelector(".react-flow__pane");if(G&&window.getComputedStyle(G).zIndex!=="1")Q.getState().onError?.("013",X5.error013("react"));U.current=!0}},[])}function xR({nodeTypes:Q,edgeTypes:U,onInit:G,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:z,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:R,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:P,connectionLineType:N,connectionLineStyle:v,connectionLineComponent:f,connectionLineContainerStyle:w,selectionKeyCode:D,selectionOnDrag:C,selectionMode:j,multiSelectionKeyCode:y,panActivationKeyCode:h,zoomActivationKeyCode:b,deleteKeyCode:E,onlyRenderVisibleElements:u,elementsSelectable:x,defaultViewport:n,translateExtent:q1,minZoom:Q1,maxZoom:m,preventScrolling:g,defaultMarkerColor:p,zoomOnScroll:c,zoomOnPinch:l,panOnScroll:a,panOnScrollSpeed:k,panOnScrollMode:s,zoomOnDoubleClick:$1,panOnDrag:o,autoPanOnSelection:B1,onPaneClick:O1,onPaneMouseEnter:L1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneScroll:R1,onPaneContextMenu:N1,paneClickDistance:H1,nodeClickDistance:y1,onEdgeContextMenu:j1,onEdgeMouseEnter:d1,onEdgeMouseMove:x1,onEdgeMouseLeave:M1,reconnectRadius:g1,onReconnect:b1,onReconnectStart:p0,onReconnectEnd:$0,noDragClassName:e0,noWheelClassName:j2,noPanClassName:R2,disableKeyboardA11y:v2,nodeExtent:O2,rfId:q2,viewport:I2,onViewportChange:P2,nodesDraggable:F4}){return qR(Q),qR(U),Hv(),Qv(G),Uv(I2),K1.jsx(fj,{onPaneClick:O1,onPaneMouseEnter:L1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneContextMenu:N1,onPaneScroll:R1,paneClickDistance:H1,deleteKeyCode:E,selectionKeyCode:D,selectionOnDrag:C,selectionMode:j,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:y,panActivationKeyCode:h,zoomActivationKeyCode:b,elementsSelectable:x,zoomOnScroll:c,zoomOnPinch:l,zoomOnDoubleClick:$1,panOnScroll:a,panOnScrollSpeed:k,panOnScrollMode:s,panOnDrag:o,autoPanOnSelection:B1,defaultViewport:n,translateExtent:q1,minZoom:Q1,maxZoom:m,onSelectionContextMenu:A,preventScrolling:g,noDragClassName:e0,noWheelClassName:j2,noPanClassName:R2,disableKeyboardA11y:v2,onViewportChange:P2,isControlledViewport:!!I2,children:K1.jsxs($v,{children:[K1.jsx(Jv,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:z,onReconnect:b1,onReconnectStart:p0,onReconnectEnd:$0,onlyRenderVisibleElements:u,onEdgeContextMenu:j1,onEdgeMouseEnter:d1,onEdgeMouseMove:x1,onEdgeMouseLeave:M1,reconnectRadius:g1,defaultMarkerColor:p,noPanClassName:R2,disableKeyboardA11y:v2,rfId:q2}),K1.jsx(Xv,{style:v,type:N,component:f,containerStyle:w}),K1.jsx("div",{className:"react-flow__edgelabel-renderer"}),K1.jsx(Ej,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:R,onNodeContextMenu:T,nodeClickDistance:y1,onlyRenderVisibleElements:u,noPanClassName:R2,noDragClassName:e0,disableKeyboardA11y:v2,nodeExtent:O2,rfId:q2,nodesDraggable:F4}),K1.jsx("div",{className:"react-flow__viewport-portal"})]})})}xR.displayName="GraphView";var Yv=W1.memo(xR),zv=uK("React Flow","https://reactflow.dev/"),UR=({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,width:H,height:Y,fitView:z,fitViewOptions:L,minZoom:M=0.5,maxZoom:R=2,nodeOrigin:T,nodeExtent:A,zIndexMode:O="basic"}={})=>{let P=new Map,N=new Map,v=new Map,f=new Map,w=K??U??[],D=G??Q??[],C=T??[0,0],j=A??w9;aK(v,f,w);let{nodesInitialized:y}=nq(D,P,N,{nodeOrigin:C,nodeExtent:j,zIndexMode:O}),h=[0,0,1];if(z&&H&&Y){let b=q7(P,{filter:(n)=>!!((n.width||n.initialWidth)&&(n.height||n.initialHeight))}),{x:E,y:u,zoom:x}=dJ(b,H,Y,M,R,L?.padding??0.1);h=[E,u,x]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:D,nodesInitialized:y,nodeLookup:P,parentLookup:N,edges:w,edgeLookup:f,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:G!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:M,maxZoom:R,translateExtent:w9,nodeExtent:j,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:t6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:z??!1,fitViewOptions:L,fitViewResolver:null,connection:{...fK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:zv,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:SK,zIndexMode:O,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},Wv=({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,width:H,height:Y,fitView:z,fitViewOptions:L,minZoom:M,maxZoom:R,nodeOrigin:T,nodeExtent:A,zIndexMode:O})=>DT((P,N)=>{async function v(){let{nodeLookup:f,panZoom:w,fitViewOptions:D,fitViewResolver:C,width:j,height:y,minZoom:h,maxZoom:b}=N();if(!w)return;await sM({nodes:f,width:j,height:y,panZoom:w,minZoom:h,maxZoom:b},D),C?.resolve(!0),P({fitViewResolver:null})}return{...UR({nodes:Q,edges:U,width:H,height:Y,fitView:z,fitViewOptions:L,minZoom:M,maxZoom:R,nodeOrigin:T,nodeExtent:A,defaultNodes:G,defaultEdges:K,zIndexMode:O}),setNodes:(f)=>{let{nodeLookup:w,parentLookup:D,nodeOrigin:C,nodeExtent:j,elevateNodesOnSelect:y,fitViewQueued:h,zIndexMode:b,nodesSelectionActive:E}=N(),{nodesInitialized:u,hasSelectedNodes:x}=nq(f,w,D,{nodeOrigin:C,nodeExtent:j,elevateNodesOnSelect:y,checkEquality:!0,zIndexMode:b}),n=E&&x;if(h&&u)v(),P({nodes:f,nodesInitialized:u,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:n});else P({nodes:f,nodesInitialized:u,nodesSelectionActive:n})},setEdges:(f)=>{let{connectionLookup:w,edgeLookup:D}=N();aK(w,D,f),P({edges:f})},setDefaultNodesAndEdges:(f,w)=>{if(f){let{setNodes:D}=N();D(f),P({hasDefaultNodes:!0})}if(w){let{setEdges:D}=N();D(w),P({hasDefaultEdges:!0})}},updateNodeInternals:(f)=>{let{triggerNodeChanges:w,nodeLookup:D,parentLookup:C,domNode:j,nodeOrigin:y,nodeExtent:h,debug:b,fitViewQueued:E,zIndexMode:u}=N(),{changes:x,updatedInternals:n}=HT(f,D,C,j,y,h,u);if(!n)return;if(XT(D,C,{nodeOrigin:y,nodeExtent:h,zIndexMode:u}),E)v(),P({fitViewQueued:!1,fitViewOptions:void 0});else P({});if(x?.length>0){if(b)console.log("React Flow: trigger node changes",x);w?.(x)}},updateNodePositions:(f,w=!1)=>{let D=[],C=[],{nodeLookup:j,triggerNodeChanges:y,connection:h,updateConnection:b,onNodesChangeMiddlewareMap:E}=N();for(let[u,x]of f){let n=j.get(u),q1=!!(n?.expandParent&&n?.parentId&&x?.position),Q1={id:u,type:"position",position:q1?{x:Math.max(0,x.position.x),y:Math.max(0,x.position.y)}:x.position,dragging:w};if(n&&h.inProgress&&h.fromNode.id===n.id){let m=o6(n,h.fromHandle,E1.Left,!0);b({...h,from:m})}if(q1&&n.parentId)D.push({id:u,parentId:n.parentId,rect:{...x.internals.positionAbsolute,width:x.measured.width??0,height:x.measured.height??0}});C.push(Q1)}if(D.length>0){let{parentLookup:u,nodeOrigin:x}=N(),n=eq(D,j,u,x);C.push(...n)}for(let u of E.values())C=u(C);y(C)},triggerNodeChanges:(f)=>{let{onNodesChange:w,setNodes:D,nodes:C,hasDefaultNodes:j,debug:y}=N();if(f?.length){if(j){let h=WR(f,C);D(h)}if(y)console.log("React Flow: trigger node changes",f);w?.(f)}},triggerEdgeChanges:(f)=>{let{onEdgesChange:w,setEdges:D,edges:C,hasDefaultEdges:j,debug:y}=N();if(f?.length){if(j){let h=sf(f,C);D(h)}if(y)console.log("React Flow: trigger edge changes",f);w?.(f)}},addSelectedNodes:(f)=>{let{multiSelectionActive:w,edgeLookup:D,nodeLookup:C,triggerNodeChanges:j,triggerEdgeChanges:y}=N();if(w){let h=f.map((b)=>U7(b,!0));j(h);return}j(v9(C,new Set([...f]),!0)),y(v9(D))},addSelectedEdges:(f)=>{let{multiSelectionActive:w,edgeLookup:D,nodeLookup:C,triggerNodeChanges:j,triggerEdgeChanges:y}=N();if(w){let h=f.map((b)=>U7(b,!0));y(h);return}y(v9(D,new Set([...f]))),j(v9(C,new Set,!0))},unselectNodesAndEdges:({nodes:f,edges:w}={})=>{let{edges:D,nodes:C,nodeLookup:j,triggerNodeChanges:y,triggerEdgeChanges:h}=N(),b=f?f:C,E=w?w:D,u=[];for(let n of b){if(!n.selected)continue;let q1=j.get(n.id);if(q1)q1.selected=!1;u.push(U7(n.id,!1))}let x=[];for(let n of E){if(!n.selected)continue;x.push(U7(n.id,!1))}y(u),h(x)},setMinZoom:(f)=>{let{panZoom:w,maxZoom:D}=N();w?.setScaleExtent([f,D]),P({minZoom:f})},setMaxZoom:(f)=>{let{panZoom:w,minZoom:D}=N();w?.setScaleExtent([D,f]),P({maxZoom:f})},setTranslateExtent:(f)=>{N().panZoom?.setTranslateExtent(f),P({translateExtent:f})},resetSelectedElements:()=>{let{edges:f,nodes:w,triggerNodeChanges:D,triggerEdgeChanges:C,elementsSelectable:j}=N();if(!j)return;let y=w.reduce((b,E)=>E.selected?[...b,U7(E.id,!1)]:b,[]),h=f.reduce((b,E)=>E.selected?[...b,U7(E.id,!1)]:b,[]);D(y),C(h)},setNodeExtent:(f)=>{let{nodes:w,nodeLookup:D,parentLookup:C,nodeOrigin:j,elevateNodesOnSelect:y,nodeExtent:h,zIndexMode:b}=N();if(f[0][0]===h[0][0]&&f[0][1]===h[0][1]&&f[1][0]===h[1][0]&&f[1][1]===h[1][1])return;nq(w,D,C,{nodeOrigin:j,nodeExtent:f,elevateNodesOnSelect:y,checkEquality:!1,zIndexMode:b}),P({nodeExtent:f})},panBy:(f)=>{let{transform:w,width:D,height:C,panZoom:j,translateExtent:y}=N();return YT({delta:f,panZoom:j,transform:w,translateExtent:y,width:D,height:C})},setCenter:async(f,w,D)=>{let{width:C,height:j,maxZoom:y,panZoom:h}=N();if(!h)return!1;let b=typeof D?.zoom<"u"?D.zoom:y;return await h.setViewport({x:C/2-f*b,y:j/2-w*b,zoom:b},{duration:D?.duration,ease:D?.ease,interpolate:D?.interpolate}),!0},cancelConnection:()=>{P({connection:{...fK}})},updateConnection:(f)=>{P({connection:f})},reset:()=>P({...UR()})}},Object.is);function JH({initialNodes:Q,initialEdges:U,defaultNodes:G,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:z,initialMaxZoom:L,initialFitViewOptions:M,fitView:R,nodeOrigin:T,nodeExtent:A,zIndexMode:O,children:P}){let[N]=W1.useState(()=>Wv({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,width:H,height:Y,fitView:R,minZoom:z,maxZoom:L,fitViewOptions:M,nodeOrigin:T,nodeExtent:A,zIndexMode:O}));return K1.jsx(ff,{value:N,children:K1.jsx(_j,{children:K1.jsx(Lj,{children:P})})})}function Lv({children:Q,nodes:U,edges:G,defaultNodes:K,defaultEdges:H,width:Y,height:z,fitView:L,fitViewOptions:M,minZoom:R,maxZoom:T,nodeOrigin:A,nodeExtent:O,zIndexMode:P}){if(W1.useContext(GU))return K1.jsx(K1.Fragment,{children:Q});return K1.jsx(JH,{initialNodes:U,initialEdges:G,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:z,fitView:L,initialFitViewOptions:M,initialMinZoom:R,initialMaxZoom:T,nodeOrigin:A,nodeExtent:O,zIndexMode:P,children:Q})}var Bv={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Av({nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:z,onNodeClick:L,onEdgeClick:M,onInit:R,onMove:T,onMoveStart:A,onMoveEnd:O,onConnect:P,onConnectStart:N,onConnectEnd:v,onClickConnectStart:f,onClickConnectEnd:w,onNodeMouseEnter:D,onNodeMouseMove:C,onNodeMouseLeave:j,onNodeContextMenu:y,onNodeDoubleClick:h,onNodeDragStart:b,onNodeDrag:E,onNodeDragStop:u,onNodesDelete:x,onEdgesDelete:n,onDelete:q1,onSelectionChange:Q1,onSelectionDragStart:m,onSelectionDrag:g,onSelectionDragStop:p,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:a,onBeforeDelete:k,connectionMode:s,connectionLineType:$1=G3.Bezier,connectionLineStyle:o,connectionLineComponent:B1,connectionLineContainerStyle:O1,deleteKeyCode:L1="Backspace",selectionKeyCode:T1="Shift",selectionOnDrag:G1=!1,selectionMode:R1=_7.Full,panActivationKeyCode:N1="Space",multiSelectionKeyCode:H1=j9()?"Meta":"Control",zoomActivationKeyCode:y1=j9()?"Meta":"Control",snapToGrid:j1,snapGrid:d1,onlyRenderVisibleElements:x1=!1,selectNodesOnDrag:M1,nodesDraggable:g1,autoPanOnNodeFocus:b1,nodesConnectable:p0,nodesFocusable:$0,nodeOrigin:e0=YR,edgesFocusable:j2,edgesReconnectable:R2,elementsSelectable:v2=!0,defaultViewport:O2=gf,minZoom:q2=0.5,maxZoom:I2=2,translateExtent:P2=w9,preventScrolling:F4=!0,nodeExtent:K5,defaultMarkerColor:g5="#b1b1b7",zoomOnScroll:H5=!0,zoomOnPinch:p5=!0,panOnScroll:H3=!1,panOnScrollSpeed:I5=0.5,panOnScrollMode:V=d3.Free,zoomOnDoubleClick:U1=!0,panOnDrag:P1=!0,onPaneClick:w1,onPaneMouseEnter:u1,onPaneMouseMove:a1,onPaneMouseLeave:s1,onPaneScroll:B0,onPaneContextMenu:m1,paneClickDistance:U2=1,nodeClickDistance:E2=0,children:Y5,onReconnect:C4,onReconnectStart:Y3,onReconnectEnd:z3,onEdgeContextMenu:e3,onEdgeDoubleClick:P5,onEdgeMouseEnter:t,onEdgeMouseMove:Y1,onEdgeMouseLeave:f1,reconnectRadius:v1=10,onNodesChange:U0,onEdgesChange:k1,noDragClassName:D1="nodrag",noWheelClassName:c1="nowheel",noPanClassName:Q0="nopan",fitView:b0,fitViewOptions:J0,connectOnClick:c0,attributionPosition:N0,proOptions:c5,defaultEdgeOptions:l2,elevateNodesOnSelect:y0=!0,elevateEdgesOnSelect:eJ=!1,disableKeyboardA11y:D9=!1,autoPanOnConnect:_$,autoPanOnNodeDrag:n2,autoPanOnSelection:_6=!0,autoPanSpeed:W3,connectionRadius:J$,isValidConnection:_8,onError:z7,style:u9,id:J6,nodeDragThreshold:$6,connectionDragThreshold:b9,viewport:MU,onViewportChange:TU,width:$$,height:E9,colorMode:h9="light",debug:Q$,onScroll:x9,ariaLabelConfig:q$,zIndexMode:U$="basic",...G$},m9){let Q6=J6||"1",J8=df(h9),RU=W1.useCallback((g9)=>{g9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),x9?.(g9)},[x9]);return K1.jsx("div",{"data-testid":"rf__wrapper",...G$,onScroll:RU,style:{...u9,...Bv},ref:m9,className:Q2(["react-flow",H,J8]),id:J6,role:"application",children:K1.jsxs(Lv,{nodes:Q,edges:U,width:$$,height:E9,fitView:b0,fitViewOptions:J0,minZoom:q2,maxZoom:I2,nodeOrigin:e0,nodeExtent:K5,zIndexMode:U$,children:[K1.jsx(lf,{nodes:Q,edges:U,defaultNodes:G,defaultEdges:K,onConnect:P,onConnectStart:N,onConnectEnd:v,onClickConnectStart:f,onClickConnectEnd:w,nodesDraggable:g1,autoPanOnNodeFocus:b1,nodesConnectable:p0,nodesFocusable:$0,edgesFocusable:j2,edgesReconnectable:R2,elementsSelectable:v2,elevateNodesOnSelect:y0,elevateEdgesOnSelect:eJ,minZoom:q2,maxZoom:I2,nodeExtent:K5,onNodesChange:U0,onEdgesChange:k1,snapToGrid:j1,snapGrid:d1,connectionMode:s,translateExtent:P2,connectOnClick:c0,defaultEdgeOptions:l2,fitView:b0,fitViewOptions:J0,onNodesDelete:x,onEdgesDelete:n,onDelete:q1,onNodeDragStart:b,onNodeDrag:E,onNodeDragStop:u,onSelectionDrag:g,onSelectionDragStart:m,onSelectionDragStop:p,onMove:T,onMoveStart:A,onMoveEnd:O,noPanClassName:Q0,nodeOrigin:e0,rfId:Q6,autoPanOnConnect:_$,autoPanOnNodeDrag:n2,autoPanSpeed:W3,onError:z7,connectionRadius:J$,isValidConnection:_8,selectNodesOnDrag:M1,nodeDragThreshold:$6,connectionDragThreshold:b9,onBeforeDelete:k,debug:Q$,ariaLabelConfig:q$,zIndexMode:U$}),K1.jsx(Yv,{onInit:R,onNodeClick:L,onEdgeClick:M,onNodeMouseEnter:D,onNodeMouseMove:C,onNodeMouseLeave:j,onNodeContextMenu:y,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:z,connectionLineType:$1,connectionLineStyle:o,connectionLineComponent:B1,connectionLineContainerStyle:O1,selectionKeyCode:T1,selectionOnDrag:G1,selectionMode:R1,deleteKeyCode:L1,multiSelectionKeyCode:H1,panActivationKeyCode:N1,zoomActivationKeyCode:y1,onlyRenderVisibleElements:x1,defaultViewport:O2,translateExtent:P2,minZoom:q2,maxZoom:I2,preventScrolling:F4,zoomOnScroll:H5,zoomOnPinch:p5,zoomOnDoubleClick:U1,panOnScroll:H3,panOnScrollSpeed:I5,panOnScrollMode:V,panOnDrag:P1,autoPanOnSelection:_6,onPaneClick:w1,onPaneMouseEnter:u1,onPaneMouseMove:a1,onPaneMouseLeave:s1,onPaneScroll:B0,onPaneContextMenu:m1,paneClickDistance:U2,nodeClickDistance:E2,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:a,onReconnect:C4,onReconnectStart:Y3,onReconnectEnd:z3,onEdgeContextMenu:e3,onEdgeDoubleClick:P5,onEdgeMouseEnter:t,onEdgeMouseMove:Y1,onEdgeMouseLeave:f1,reconnectRadius:v1,defaultMarkerColor:g5,noDragClassName:D1,noWheelClassName:c1,noPanClassName:Q0,rfId:Q6,disableKeyboardA11y:D9,nodeExtent:K5,viewport:MU,onViewportChange:TU,nodesDraggable:g1}),K1.jsx(mf,{onSelectionChange:Q1}),Y5,K1.jsx(uf,{proOptions:c5,position:N0}),K1.jsx(Df,{rfId:Q6,disableKeyboardA11y:D9})]})})}var mR=LR(Av);function gR(Q){let[U,G]=W1.useState(Q),K=W1.useCallback((H)=>G((Y)=>WR(H,Y)),[]);return[U,G,K]}var ug=X5.error014();function Mv({dimensions:Q,lineWidth:U,variant:G,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:Q2(["react-flow__background-pattern",G,K])})}function Tv({radius:Q,className:U}){return K1.jsx("circle",{cx:Q,cy:Q,r:Q,className:Q2(["react-flow__background-pattern","dots",U])})}var Z3;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(Z3||(Z3={}));var Rv={[Z3.Dots]:1,[Z3.Lines]:1,[Z3.Cross]:6},Ov=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function pR({id:Q,variant:U=Z3.Dots,gap:G=20,size:K,lineWidth:H=1,offset:Y=0,color:z,bgColor:L,style:M,className:R,patternClassName:T}){let A=W1.useRef(null),{transform:O,patternId:P}=L0(Ov,r0),N=K||Rv[U],v=U===Z3.Dots,f=U===Z3.Cross,w=Array.isArray(G)?G:[G,G],D=[w[0]*O[2]||1,w[1]*O[2]||1],C=N*O[2],j=Array.isArray(Y)?Y:[Y,Y],y=f?[C,C]:D,h=[j[0]*O[2]+y[0]/2,j[1]*O[2]+y[1]/2],b=`${P}${Q?Q:""}`;return K1.jsxs("svg",{className:Q2(["react-flow__background",R]),style:{...M,...ZU,"--xy-background-color-props":L,"--xy-background-pattern-color-props":z},ref:A,"data-testid":"rf__background",children:[K1.jsx("pattern",{id:b,x:O[0]%D[0],y:O[1]%D[1],width:D[0],height:D[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:v?K1.jsx(Tv,{radius:C/2,className:T}):K1.jsx(Mv,{dimensions:y,lineWidth:H,variant:U,className:T})}),K1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${b})`})]})}pR.displayName="Background";var cR=W1.memo(pR);function Iv(){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 Pv(){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 Nv(){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 Cv(){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,...G}){return K1.jsx("button",{type:"button",className:Q2(["react-flow__controls-button",U]),...G,children:Q})}var Sv=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function lR({style:Q,showZoom:U=!0,showFitView:G=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:z,onFitView:L,onInteractiveChange:M,className:R,children:T,position:A="bottom-left",orientation:O="vertical","aria-label":P}){let N=a0(),{isInteractive:v,minZoomReached:f,maxZoomReached:w,ariaLabelConfig:D}=L0(Sv,r0),{zoomIn:C,zoomOut:j,fitView:y}=aJ(),h=()=>{C(),Y?.()},b=()=>{j(),z?.()},E=()=>{y(H),L?.()},u=()=>{N.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),M?.(!v)};return K1.jsxs(F3,{className:Q2(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":P??D["controls.ariaLabel"],children:[U&&K1.jsxs(K1.Fragment,{children:[K1.jsx(QU,{onClick:h,className:"react-flow__controls-zoomin",title:D["controls.zoomIn.ariaLabel"],"aria-label":D["controls.zoomIn.ariaLabel"],disabled:w,children:K1.jsx(Iv,{})}),K1.jsx(QU,{onClick:b,className:"react-flow__controls-zoomout",title:D["controls.zoomOut.ariaLabel"],"aria-label":D["controls.zoomOut.ariaLabel"],disabled:f,children:K1.jsx(Pv,{})})]}),G&&K1.jsx(QU,{className:"react-flow__controls-fitview",onClick:E,title:D["controls.fitView.ariaLabel"],"aria-label":D["controls.fitView.ariaLabel"],children:K1.jsx(Nv,{})}),K&&K1.jsx(QU,{className:"react-flow__controls-interactive",onClick:u,title:D["controls.interactive.ariaLabel"],"aria-label":D["controls.interactive.ariaLabel"],children:v?K1.jsx(Cv,{}):K1.jsx(wv,{})}),T]})}lR.displayName="Controls";var dR=W1.memo(lR);function fv({id:Q,x:U,y:G,width:K,height:H,style:Y,color:z,strokeColor:L,strokeWidth:M,className:R,borderRadius:T,shapeRendering:A,selected:O,onClick:P}){let{background:N,backgroundColor:v}=Y||{},f=z||N||v;return K1.jsx("rect",{className:Q2(["react-flow__minimap-node",{selected:O},R]),x:U,y:G,rx:T,ry:T,width:K,height:H,style:{fill:f,stroke:L,strokeWidth:M},shapeRendering:A,onClick:P?(w)=>P(w,Q):void 0})}var jv=W1.memo(fv),vv=(Q)=>Q.nodes.map((U)=>U.id),oK=(Q)=>Q instanceof Function?Q:()=>Q;function Vv({nodeStrokeColor:Q,nodeColor:U,nodeClassName:G="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=jv,onClick:z}){let L=L0(vv,r0),M=oK(U),R=oK(Q),T=oK(G),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return K1.jsx(K1.Fragment,{children:L.map((O)=>K1.jsx(kv,{id:O,nodeColorFunc:M,nodeStrokeColorFunc:R,nodeClassNameFunc:T,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:z,shapeRendering:A},O))})}function yv({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:G,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:z,NodeComponent:L,onClick:M}){let{node:R,x:T,y:A,width:O,height:P}=L0((N)=>{let v=N.nodeLookup.get(Q);if(!v)return{node:void 0,x:0,y:0,width:0,height:0};let f=v.internals.userNode,{x:w,y:D}=v.internals.positionAbsolute,{width:C,height:j}=U4(f);return{node:f,x:w,y:D,width:C,height:j}},r0);if(!R||R.hidden||!bK(R))return null;return K1.jsx(L,{x:T,y:A,width:O,height:P,style:R.style,selected:!!R.selected,className:K(R),color:U(R),borderRadius:H,strokeColor:G(R),strokeWidth:Y,shapeRendering:z,onClick:M,id:R.id})}var kv=W1.memo(yv),Dv=W1.memo(Vv),uv=200,bv=150,Ev=(Q)=>!Q.hidden,hv=(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]},G=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){G=!0;break}return{viewBB:U,boundingRect:G?kK(q7(Q.nodeLookup,{filter:Ev}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},GR=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,xv=(Q,U)=>GR(Q.viewBB,U.viewBB)&&GR(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,mv="react-flow__minimap-desc";function iR({style:Q,className:U,nodeStrokeColor:G,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:z,nodeComponent:L,bgColor:M,maskColor:R,maskStrokeColor:T,maskStrokeWidth:A,position:O="bottom-right",onClick:P,onNodeClick:N,pannable:v=!1,zoomable:f=!1,ariaLabel:w,inversePan:D,zoomStep:C=1,offsetScale:j=5}){let y=a0(),h=W1.useRef(null),{boundingRect:b,panZoom:E,viewBB:u,rfId:x,translateExtent:n,flowWidth:q1,flowHeight:Q1,ariaLabelConfig:m}=L0(hv,xv),g=Q?.width??uv,p=Q?.height??bv,c=b.width/g,l=b.height/p,a=Math.max(c,l),k=a*g,s=a*p,$1=j*a,o=b.x-(k-b.width)/2-$1,B1=b.y-(s-b.height)/2-$1,O1=k+$1*2,L1=s+$1*2,T1=`${mv}-${x}`,G1=W1.useRef(0),R1=W1.useRef();G1.current=a,W1.useEffect(()=>{let d1=y.getState().panZoom;if(h.current&&d1)return R1.current=TT({domNode:h.current,panZoom:d1,getTransform:()=>y.getState().transform,getViewScale:()=>G1.current}),()=>{R1.current?.destroy()}},[E]),W1.useEffect(()=>{R1.current?.update({translateExtent:n,width:q1,height:Q1,inversePan:D,pannable:v,zoomStep:C,zoomable:f})},[v,f,D,C,n,q1,Q1]);let N1=P?(d1)=>{let[x1,M1]=R1.current?.pointer(d1)||[0,0];P(d1,{x:x1,y:M1})}:void 0,H1=W1.useCallback((d1,x1)=>{let M1=y.getState().nodeLookup.get(x1).internals.userNode;N?.(d1,M1)},[N]),y1=N?H1:void 0,j1=w??m["minimap.ariaLabel"];return K1.jsx(F3,{position:O,style:{...Q,"--xy-minimap-background-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-background-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*a:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof G==="string"?G:void 0,"--xy-minimap-node-stroke-width-props":typeof z==="number"?z:void 0},className:Q2(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:K1.jsxs("svg",{width:g,height:p,viewBox:`${o} ${B1} ${O1} ${L1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":T1,ref:h,onClick:N1,children:[j1&&K1.jsx("title",{id:T1,children:j1}),K1.jsx(Dv,{onClick:y1,nodeColor:K,nodeStrokeColor:G,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:z,nodeComponent:L}),K1.jsx("path",{className:"react-flow__minimap-mask",d:`M${o-$1},${B1-$1}h${O1+$1*2}v${L1+$1*2}h${-O1-$1*2}z
247
+ M${u.x},${u.y}h${u.width}v${u.height}h${-u.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}iR.displayName="MiniMap";var rR=W1.memo(iR),gv=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,pv={[i3.Line]:"right",[i3.Handle]:"bottom-right"};function cv({nodeId:Q,position:U,variant:G=i3.Handle,className:K,style:H=void 0,children:Y,color:z,minWidth:L=10,minHeight:M=10,maxWidth:R=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:O,autoScale:P=!0,shouldResize:N,onResizeStart:v,onResize:f,onResizeEnd:w}){let D=_H(),C=typeof Q==="string"?Q:D,j=a0(),y=W1.useRef(null),h=G===i3.Handle,b=L0(W1.useCallback(gv(h&&P),[h,P]),r0),E=W1.useRef(null),u=U??pv[G];W1.useEffect(()=>{if(!y.current||!C)return;if(!E.current)E.current=CT({domNode:y.current,nodeId:C,getStoreItems:()=>{let{nodeLookup:n,transform:q1,snapGrid:Q1,snapToGrid:m,nodeOrigin:g,domNode:p}=j.getState();return{nodeLookup:n,transform:q1,snapGrid:Q1,snapToGrid:m,nodeOrigin:g,paneDomNode:p}},onChange:(n,q1)=>{let{triggerNodeChanges:Q1,nodeLookup:m,parentLookup:g,nodeOrigin:p}=j.getState(),c=[],l={x:n.x,y:n.y},a=m.get(C);if(a&&a.expandParent&&a.parentId){let k=a.origin??p,s=n.width??a.measured.width??0,$1=n.height??a.measured.height??0,o={id:a.id,parentId:a.parentId,rect:{width:s,height:$1,...EK({x:n.x??a.position.x,y:n.y??a.position.y},{width:s,height:$1},a.parentId,m,k)}},B1=eq([o],m,g,p);c.push(...B1),l.x=n.x?Math.max(k[0]*s,n.x):void 0,l.y=n.y?Math.max(k[1]*$1,n.y):void 0}if(l.x!==void 0&&l.y!==void 0){let k={id:C,type:"position",position:{...l}};c.push(k)}if(n.width!==void 0&&n.height!==void 0){let s={id:C,type:"dimensions",resizing:!0,setAttributes:!O?!0:O==="horizontal"?"width":"height",dimensions:{width:n.width,height:n.height}};c.push(s)}for(let k of q1){let s={...k,type:"position"};c.push(s)}Q1(c)},onEnd:({width:n,height:q1})=>{let Q1={id:C,type:"dimensions",resizing:!1,dimensions:{width:n,height:q1}};j.getState().triggerNodeChanges([Q1])}});return E.current.update({controlPosition:u,boundaries:{minWidth:L,minHeight:M,maxWidth:R,maxHeight:T},keepAspectRatio:A,resizeDirection:O,onResizeStart:v,onResize:f,onResizeEnd:w,shouldResize:N}),()=>{E.current?.destroy()}},[u,L,M,R,T,A,v,f,w,N]);let x=u.split("-");return K1.jsx("div",{className:Q2(["react-flow__resize-control","nodrag",...x,G,K]),ref:y,style:{...H,scale:b,...z&&{[h?"backgroundColor":"borderColor"]:z}},children:Y})}var ZR=W1.memo(cv);function aR({nodeId:Q,isVisible:U=!0,handleClassName:G,handleStyle:K,lineClassName:H,lineStyle:Y,color:z,minWidth:L=10,minHeight:M=10,maxWidth:R=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:O=!0,shouldResize:P,onResizeStart:N,onResize:v,onResizeEnd:f}){if(!U)return null;return K1.jsxs(K1.Fragment,{children:[NT.map((w)=>K1.jsx(ZR,{className:H,style:Y,nodeId:Q,position:w,variant:i3.Line,color:z,minWidth:L,minHeight:M,maxWidth:R,maxHeight:T,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:v,onResizeEnd:f},w)),PT.map((w)=>K1.jsx(ZR,{className:G,style:K,nodeId:Q,position:w,color:z,minWidth:L,minHeight:M,maxWidth:R,maxHeight:T,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:v,onResizeEnd:f},w))]})}var lv=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function dv({children:Q}){let U=L0(lv);if(!U)return null;return FR.createPortal(Q,U)}var iv=(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,rv=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[G,K]of Q)if(iv(K,U.get(G)))return!1;return!0},av=(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:G,style:K,isVisible:H,position:Y=E1.Top,offset:z=10,align:L="center",...M}){let R=_H(),T=W1.useCallback((y)=>{return(Array.isArray(Q)?Q:[Q||R||""]).reduce((E,u)=>{let x=y.nodeLookup.get(u);if(x)E.set(x.id,x);return E},new Map)},[Q,R]),A=L0(T,rv),{x:O,y:P,zoom:N,selectedNodesCount:v}=L0(av,r0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&v===1)||!A.size)return null;let w=q7(A),D=Array.from(A.values()),C=Math.max(...D.map((y)=>y.internals.z+1)),j={position:"absolute",transform:ZT(w,{x:O,y:P,zoom:N},Y,z,L),zIndex:C,...K};return K1.jsx(dv,{children:K1.jsx("div",{style:j,className:Q2(["react-flow__node-toolbar",G]),...M,"data-id":D.reduce((y,h)=>`${y}${h.id} `,"").trim(),children:U})})}function XU(Q={}){let U=(K,H)=>Q.tools?`${H} (\`${K}\`)`:`\`${K}\``,G=["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>";G.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 G.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),G.join(`
248
+ `)}var sR={"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=n0(g8(),1),HU="volter.console.token",H7=document.getElementById("root"),_0=H7.dataset.base??"/-/console",P0=window.location.origin,K3=(H7.dataset.worlds??P0).replace(/\/+$/,""),UO=(H7.dataset.names??"").split(",").filter((Q)=>Q!==""),s3=H7.dataset.worldOrigin==="1",K7=window.fetch.bind(window),n6="(session)",GO="(pass)",sJ=(Q)=>{try{if(Q&&!s3)sessionStorage.setItem(HU,Q);else sessionStorage.removeItem(HU);localStorage.removeItem(HU)}catch{}},ZO="volter.console.portal",FO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(ZO,new URL(Q).origin)}catch{}},sv=()=>{return Y7.get("token")??""},o2=()=>{try{let Q=sessionStorage.getItem(ZO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},tv=()=>{let Q=sv();if(s3){if(sJ(""),Y7.get("pass"))return GO;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?"":n6)}if(Q)return sJ(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=[],z=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),z.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),z.push("approve");return{text:`Not ready to deploy: ${c8(Y)}.`,acts:z}}let G=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(G)return{text:`No credential is sealed for ${o1(G[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(o1);return{text:`${c8(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 O5=async(Q)=>T2(await m3(Q)).text,ov={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function XO({name:Q,acts:U}){let G=U.map((K)=>ov[K]).filter((K)=>Boolean(K));if(G.length===0)return null;return F.jsxDEV(F.Fragment,{children:G.map(([K,H])=>F.jsxDEV(Z1.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 R0(Q,U,G={}){return K7(`${P0}${U}`,{...G,headers:{...G.headers??{},...Q===n6?{}:{"x-volter-token":Q},...G.body&&!G.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function f0(Q,U,G=0){let K=pA((H)=>R0(Q,H),U,G,Q);return K.state==="error"?{...K,error:T2(K.error).text}:K}var k9=(Q)=>{let U=new Date(Q),G=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${G(U.getMonth()+1)}-${G(U.getDate())}T${G(U.getHours())}:${G(U.getMinutes())}`},tR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),KO=(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",nv=(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},FH="volter.console.snapshots",t3=()=>{try{return JSON.parse(sessionStorage.getItem(FH)??"{}")}catch{return{}}},HO=new Map,XH=(Q)=>{if(s3){if(Q.token||Q.readToken)HO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(FH,JSON.stringify({...t3(),[Q.name]:Q}))}catch{}},KH=(Q)=>HO.get(Q)?.readToken||t3()[Q]?.readToken||"",YU=(Q)=>{try{let U=t3();delete U[Q],sessionStorage.setItem(FH,JSON.stringify(U))}catch{}},Y7=new URLSearchParams(window.location.hash.slice(1)),V9=Y7.get("close")??"";function oJ(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 HH(Q){let U=oJ(Q);if(!U)return null;let G=new URL(P0);if(U.protocol!==G.protocol||U.port!==G.port)return null;if(U.hostname===G.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===G.hostname||K.test(G.hostname)&&H===G.hostname.replace(K,"")?U.origin:null}function ev(Q){let U;try{U=JSON.parse(Q)}catch{return null}let G=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!G.test(U.name)||typeof U.parent!=="string"||!G.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:HH(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=Y7.get("snapshot");if(Q){let U=ev(Q);if(U&&!t3()[U.name])XH(U)}}var YO="volter.console.home",zO=(Q)=>{let U=oJ(Q);if(!U)return null;let G=new URL(P0).hostname,K=G.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===G||U.hostname===K?U.origin:null};{let Q=zO(Y7.get("home"));if(Q)try{sessionStorage.setItem(YO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>Y7.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var w4=()=>{try{return zO(sessionStorage.getItem(YO))??""}catch{return""}};function YH(Q,U,G,K){let H=new URLSearchParams({token:U,home:w4()||P0}),Y=t3()[G];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var GH=H7.dataset.route==="memory"?"":null;function Z7(){return(GH??window.location.pathname.slice(_0.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var oR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,a3=(Q,U)=>Q&&U&&oR.test(Q)&&oR.test(U)?`${Q}/${U}`:"";function S0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(GH!==null)GH=U;else window.history.pushState(null,"",`${_0}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function WO(Q,U){let G=HH(t3()[Q]?.origin);if(G&&G!==P0){YH(G,KH(Q),Q,`${_0}/${U.map(encodeURIComponent).join("/")}`);return}S0(U)}async function nR(){let[Q,U]=Z7(),G=a3(Q,U),K=G?[G]:UO;if(K.length===0){let H=await K7(`${P0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,z,...L]=H.split("/");return L.length===0&&a3(Y,z)===H});for(let H of K){let Y=await K7(`${P0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let z=await Y.json().catch(()=>({})),L=oJ(z.origin)?.origin;if(Y.status===409&&L&&L!==P0)return window.location.replace(`${L}${_0}/${H}`),"moved";if(Y.ok&&z.local)return{token:typeof z.token==="string"&&z.token?z.token:n6}}return null}function _V(){let[Q,U]=Z1.useState(nF),G=(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:G(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 JV(){let[Q,U]=Z1.useState(tv()),[G,K]=Z1.useState(!1),[H,Y]=Z1.useState(!1),[z,L]=Z1.useState(""),[M,R]=Z1.useState(null),[T,A]=Z1.useState(null),[O,P]=Z1.useState(Z7());Z1.useEffect(()=>{let $1=()=>P(Z7());return window.addEventListener("popstate",$1),()=>window.removeEventListener("popstate",$1)},[]),Z1.useEffect(()=>{let[$1,o]=Z7(),B1=a3($1,o),[O1,L1]=B1?B1.split("/"):[],T1=t3()[V9];if(!V9||!Q||!O1||!L1||!T1?.made||T1.parent!==`${O1}/${L1}`||a3(...V9.split("/"))!==V9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}R0(Q,`/-/${O1}/${L1}/branches/${V9}`,{method:"DELETE"}).catch(()=>null).then(()=>YU(V9))},[Q]);let N=Z1.useCallback(async($1)=>{if(A(null),!$1){let L1=await nR();if(L1==="moved")return;if(L1){if(K(!0),L1.token!==n6)sJ(L1.token);U(L1.token);return}R(null),Y(!0);return}if(s3&&$1===n6){let L1=await nR();if(L1==="moved")return;if(L1)K(!0)}if(s3&&$1===GO){let[L1,T1]=Z7(),G1=a3(L1,T1),[R1,N1]=G1?G1.split("/"):[],H1=R1&&N1?await K7(`${P0}/-/${R1}/${N1}/session`,{method:"POST",headers:{"x-volter-pass":Y7.get("pass")??""}}).catch(()=>null):null;if(!H1){A(`${P0} did not answer: no session was opened`),R(null);return}if(!H1.ok){A(`${await O5(H1)}. Open it again from the platform.`),R(null);return}FO((await H1.json().catch(()=>({}))).issuer),U(n6);return}if(s3&&$1!==n6){let[L1,T1]=Z7(),G1=a3(L1,T1),[R1,N1]=G1?G1.split("/"):[],H1=R1&&N1?await K7(`${P0}/-/${R1}/${N1}/session`,{method:"POST",headers:{"x-volter-token":$1}}).catch(()=>null):null;if(!H1){A(`${P0} did not answer: no session was opened`),R(null);return}if(!H1.ok){let y1=await O5(H1);A(H1.status===401||H1.status===403?`That token does not open ${R1}/${N1}.`:H1.status===409?`${R1}/${N1}'s session lives at another origin: ${y1}`:`The World could not open a session (${H1.status}): ${y1}`),R(null);return}U(n6);return}let o=s3?new Response(null,{status:404}):await R0($1,"/-/worlds");if(o.ok){let{worlds:L1}=await o.json();R({kind:"admin",worlds:L1});return}if(o.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),R(null);return}if(o.status>=500){let L1=await o.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.`),R(null);return}let B1=UO;if(B1.length===0){let L1=await K7(`${P0}/-/ping`);if(!L1.ok){A(`${P0} does not answer as a host`),R(null);return}if(B1=(await L1.json()).worlds??[],B1.length===0){A(`${P0} does not list its Worlds: open a World at its own address, ${P0}${_0}/<org>/<world>`),R(null);return}}let O1=[];for(let L1 of B1){let T1=await R0($1,`/-/${L1}/twins`);if(T1.ok){let G1=await T1.json();O1.push({name:L1,base:`${K3}/${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."),R(null);return}R({kind:"world",worlds:O1})},[]);Z1.useEffect(()=>{N(Q)},[Q,N]);let v=($1)=>M?.kind==="admin"?M.worlds.find((o)=>o.name===$1)?.token??Q:Q,[f,w]=Z1.useState("");if(!Q||!M&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(LJ,{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(),sJ(z.trim()),U(z.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:z,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 D=()=>A("This link or key opens no World here: it was revoked, or it has ended."),C=()=>{if(G){window.location.reload();return}if(s3){let[$1,o]=Z7(),B1=a3($1,o),[O1,L1]=B1?B1.split("/"):[],T1=()=>window.location.replace(o2()?`${o2()}/`:`${P0}${_0}/${O1&&L1?`${O1}/${L1}`:""}?signin`);if(setTimeout(T1,2000),O1&&L1)K7(`${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`);sJ(""),U(""),L(""),R(null),S0([])};if(T||!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(LJ,{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:C,children:G?"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,y,h,b,E,u,x]=O,n=h==="~",q1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,m=n||!h||!q1.test(h)?void 0:h,g=E&&q1.test(E)?u!==void 0&&b!=="changes"&&b!=="screens"?a3(E,u)||void 0:E:void 0,p=b==="changes"&&E==="changesets"&&u&&q1.test(u)?u:b==="screens"&&u&&x&&/^[A-Za-z0-9_.-]+$/.test(u)&&Q1.test(x)?`${u}:${x}`:void 0,c=a3(j,y),l=c?t3()[c]??null:null,a=($1)=>KH($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,s=async($1)=>{let o=HH($1.parentOrigin);if(o&&o!==P0){YU($1.name),window.location.assign(`${o}${_0}/${$1.parent}#close=${encodeURIComponent($1.name)}`);return}if($1.made)await R0(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(rA,{},void 0,!1,void 0,this):null,F.jsxDEV(LJ,{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,m?F.jsxDEV("span",{children:[" / ",m]},void 0,!0,void 0,this):null,n&&b==="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:G?"on this machine":f?`signed in as ${f}`:M.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||G?null:F.jsxDEV("button",{onClick:C,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(UV,{name:c,token:a(c),twin:m,tab:n?b??"overview":"overview",arg:n?g:void 0,...n&&p?{sub:p}:{},admin:l?null:M.kind==="admin"?Q:null,snapshot:l,parentToken:k,who:{local:G,person:f||null,admin:M.kind==="admin"},onSignOut:C,onReturn:s,opens:($1)=>!!t3()[$1]||M.kind==="admin"&&M.worlds.some((o)=>o.name===$1),onRemoved:()=>{N(Q),S0([])},onWho:w,onEnded:D,worlds:M.worlds.map(($1)=>$1.name)},c,!1,void 0,this):F.jsxDEV($V,{mode:M,admin:M.kind==="admin"?Q:null,reload:()=>N(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $V({mode:Q,admin:U,reload:G}){let[K,H]=Z1.useState(""),[Y,z]=Z1.useState(""),[L,M]=Z1.useState(""),[R,T]=Z1.useState(null),A=async(b)=>{if(!await $3({title:`Rotate the tokens of ${b}?`,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 E=await R0(U,`/-/worlds/${b}/rotate`,{method:"POST"}),u=await E.json().catch(()=>({}));T(E.ok?`rotated ${b}: the new tokens are shown once — token ${u.token} · read token ${u.readToken}`:u.error?T2(u.error).text:`answered ${E.status}`),await G()},O=async(b)=>{let E=await R0(U,`/-/worlds/${b}`,{method:"DELETE"}),u=await E.json().catch(()=>({}));T(E.ok?`removed ${b}`:u.error?T2(u.error).text:`answered ${E.status}`),await G()},[P,N]=Z1.useState(!1),[v,f]=Z1.useState(!1),[w,D]=Z1.useState(""),C=async(b)=>{b.preventDefault(),T(null),N(!0);try{let E=await R0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:L.split(",").map((x)=>x.trim()).filter(Boolean)})}),u=await E.json();if(!E.ok){T(u.error?T2(u.error).text:`the host answered ${E.status}`);return}T(`provisioned ${u.name}`),z(""),M(""),f(!1),await G()}finally{N(!1)}},j=w.trim().toLowerCase(),y=Q.worlds.filter((b)=>!j||b.name.toLowerCase().includes(j)||b.twins.some((E)=>E.vendor.includes(j))),h=[...new Set(y.map((b)=>b.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),f(!0)},children:[F.jsxDEV(X0,{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:w,onChange:(b)=>D(b.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&!v?F.jsxDEV("p",{role:"status",className:"home-note",children:R},void 0,!1,void 0,this):null,h.map((b)=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:b},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:y.filter((E)=>E.name.split("/")[0]===b).map((E)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${_0}/${E.name}`,onClick:(u)=>{u.preventDefault(),S0(E.name.split("/"))},children:[F.jsxDEV(X0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:E.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:E.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:E.twins.map((u)=>F.jsxDEV("span",{title:o1(u.vendor),children:F.jsxDEV(F2,{vendor:u.vendor},void 0,!1,void 0,this)},u.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 ${E.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(u)=>{u.currentTarget.closest("details")?.removeAttribute("open"),A(E.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(u)=>{u.currentTarget.closest("details")?.removeAttribute("open"),$3({title:`Remove ${E.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:E.name}).then((x)=>{if(x)O(E.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},E.name,!0,void 0,this))},void 0,!1,void 0,this)]},b,!0,void 0,this)),y.length===0?F.jsxDEV("p",{className:"mode home-note",children:j?`No World matches ${w}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(x5,{open:v,onClose:()=>{if(!P)f(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>f(!1),disabled:P,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:P,children:P?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:C,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:K,onChange:(b)=>H(b.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:(b)=>z(b.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:(b)=>M(b.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"status",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var QV=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],qV=(Q,U)=>{let G=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&G?`${K3}/${Q}/${U.twin}${G.path.startsWith("/")?G.path:`/${G.path}`}`:null},eR={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 Z4(Q){let U=Q.operation??Q.op,G=(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(G),z=U.replace(/[._]+/g," ").trim(),L=Y?`${H} seeded`:eR[G]?`${H} ${eR[G]}`:`${z.charAt(0).toUpperCase()}${z.slice(1)}`,M=Q.fields??{},R=["title","name","email","text","subject","summary","description"].map((A)=>M[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=R===null?null:R.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,O,P)=>`${O==="!"?"@":O}${P}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:L,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var o3=(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 UV({name:Q,token:U,twin:G,tab:K,arg:H,sub:Y,admin:z,snapshot:L,parentToken:M,who:R,onSignOut:T,onReturn:A,opens:O,onRemoved:P,onWho:N,onEnded:v,worlds:f=[]}){let[w,D]=Z1.useState("pending"),[C,j]=Z1.useState(null),[y,h]=Z1.useState(0),[b,E]=Z1.useState(null);Z1.useEffect(()=>{let G1=!0;return j(null),R0(U,`/-/${Q}/session`,{method:"POST"}).then(async(R1)=>{let N1=await R1.json().catch(()=>({}));if(FO(N1.issuer),N1.who)N?.(N1.who);E(typeof N1.signsAs==="string"?N1.signsAs:null);let H1=oJ(N1.origin)?.origin;if(R1.status===409&&H1&&H1!==P0){YH(H1,U,Q);return}if(!G1)return;if(D(!R1.ok?"unknown":N1.scope==="read"?"read":N1.scope==="write"?"write":"unknown"),!R1.ok)j(N1.error?T2(N1.error).text:`answered ${R1.status}`)}).catch((R1)=>{if(G1)D("unknown"),j(`the World did not answer: ${R1 instanceof Error?R1.message:String(R1)}`)}),()=>{G1=!1}},[Q,U,y]);let u=C?{state:"error",error:C}:w==="pending"?{state:"pending"}:{state:"ok",scope:w},x=w==="write",n=(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??""))D("read")},()=>null)},[q1,Q1]=Z1.useState(0);Z1.useEffect(()=>{let G1=setInterval(()=>{if(!document.hidden)Q1((R1)=>R1+1)},5000);return()=>clearInterval(G1)},[]);let[m,g]=Z1.useState(0),p=f0(U,`/-/${Q}/clock`,q1+m);Z1.useEffect(()=>{if(s3&&!L&&p.state==="error"&&p.status===401)v?.()},[p,L,v]);let c=f0(U,`/-/${Q}/twins`),l=f0(U,`/-/${Q}/branches`,m),a=f0(U,`/-/${Q}/map`,Math.floor(q1/2)),k=!(l.state==="error"&&(l.status===404||l.status===405)),s=QV.includes(K)?K:"overview",$1=c.state==="ok"?c.data.twins.map((G1)=>G1.twin):[];if(G&&c.state==="ok"&&!$1.includes(G))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(z9,{title:`${Q} has no ${G}`,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 ",G,". 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 o=s==="vendors"&&H?H:void 0,B1=()=>{D("pending"),h((G1)=>G1+1)};if(s==="canvas"||s==="vendors"&&!o||K==="screens"&&!H)return F.jsxDEV(kV,{name:Q,token:U,twins:c,session:u,retry:B1,snapshot:L,back:()=>S0(Q.split("/")),canWrite:x&&!L},void 0,!1,void 0,this);let L1=K==="settings"?{kind:"settings",tab:((G1)=>LO.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=G?"vendor":K==="screens"&&H?"screen":s==="vendors"&&o?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(LV,{name:Q,token:U,view:T1,win:L1,who:R,snapshot:L,onReturn:A,onSignOut:T,worlds:f,session:u,retry:B1,...T1==="vendor"?{arg:G??o}:T1==="events"||T1==="trace"||T1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:a,branches:k?l:null,clock:p,canWrite:x&&!L,refused:n,signsAs:b,opens:O,tick:q1,admin:z,onRemoved:P,onClock:()=>g((G1)=>G1+1),scope:L?"read":w},void 0,!1,void 0,this)}function X0({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:(sR[Q]??[]).map(([G,K],H)=>Z1.default.createElement(G,{key:H,...K}))},void 0,!1,void 0,this)}function LU(Q){let U=(G)=>{let K=(G.operation??G.op).toLowerCase();return K.includes(".")?K.slice(K.lastIndexOf(".")+1):K};if(Q.some((G)=>/^(delete|remove|archive|revoke)/.test(U(G))||G.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 LO=[["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"]],GV=(Q,U)=>{let G=U.split("/").pop()??U,K=Q.split("/").pop()??"";return G.startsWith(`${K}-`)?G.slice(K.length+1):G},F7=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function BO({record:Q,history:U}){let G=Q.writes[Q.writes.length-1],K=Z4(G),H=LU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),z=Q.writes[0].occurredAt,L={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===G.subject.type&&A.subject.id===G.subject.id&&A.occurredAt<=z)Object.assign(L,A.fields??{})}let M={...L};for(let A of Q.writes)Object.assign(M,A.fields??{});let R=H.tone==="added"&&Object.keys(L).length===0,T=[...new Set([...Object.keys(L),...Object.keys(M)])].filter((A)=>!jO(L[A],M[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??o3(G)}: 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(X0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(F2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??o3(G)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[o1(Q.twin)," · ",G.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:o3(G)},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:Z4(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(V0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",tJ(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),R?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children: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),R?null:F.jsxDEV("td",{className:A in L?"was":"none",children:A in L?F.jsxDEV(n3,{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(n3,{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 AO({records:Q,selected:U,onPick:G,label:K}){let[H,Y]=Z1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),z=(R)=>{Y(R);try{localStorage.setItem("volter.console.records",R?"tree":"path")}catch{}},L=(R,T)=>{let A=R.writes[R.writes.length-1],O=Z4(A),P=LU(R.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===R.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===R.key,onClick:()=>G(R.key),children:[T?null:F.jsxDEV(F2,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??o3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[F7(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${i0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${P.tone}`,title:P.word,"aria-label":P.word,children:F.jsxDEV(X0,{name:P.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R.key,!1,void 0,this)},M=[...new Set(Q.map((R)=>R.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>z(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>z(!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((R)=>{let T=Q.filter((A)=>A.twin===R);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(F2,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:o1(R)},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)]},R,!0,void 0,this)}):Q.map((R)=>L(R,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZV({name:Q,token:U,branches:G,opens:K,refused:H,onChanged:Y}){let[z,L]=Z1.useState(""),[M,R]=Z1.useState(!1),T=G?.state==="ok"&&G.data.checkedOut||Q.split("/")[1],A=G?.state==="ok"&&G.data.named?.length?G.data.named:[{name:T,running:!0}],O=G?.state==="ok"?G.data.branches:[],P=z.trim().toLowerCase(),N=(f)=>!P||f.toLowerCase().includes(P),v=(f)=>{f.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(X0,{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(X0,{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:z,onChange:(f)=>L(f.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(f)=>{v(f),R(!0)},disabled:!G,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((f)=>N(f.name)).map((f)=>F.jsxDEV("li",{className:f.name===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:f.name===T?F.jsxDEV(X0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(X0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:f.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:f.name===T?"served here":f.running?"running":"stopped"},void 0,!1,void 0,this)]},f.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),O.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:O.filter((f)=>N(f.name)).map((f)=>{let w=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(X0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:GV(Q,f.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:f.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(V0,{iso:f.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D=f.expiresAt?`Goes away ${new Date(f.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(f.name)?F.jsxDEV("a",{href:`${_0}/${f.name}`,title:D,onClick:(C)=>{C.preventDefault(),v(C),WO(f.name,f.name.split("/"))},children:w},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${D}. Its tokens went to whoever made it; it opens from their page.`,children:w},void 0,!1,void 0,this)},f.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:(f)=>{f.preventDefault(),v(f),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(RO,{name:Q,token:U,open:M,onClose:()=>R(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MO({name:Q,view:U,changes:G,changesets:K}){let H=(Y)=>(z)=>{z.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",G?F.jsxDEV("span",{className:"count",children:G},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 FV({name:Q,token:U,sets:G,sub:K,signsAs:H,canWrite:Y,rooted:z,refused:L,onChanged:M,changes:R,withScreens:T,required:A}){let[O,P]=Z1.useState(null),[N,v]=Z1.useState(!1),f=G.state==="ok"?[...G.data.changesets].sort((E,u)=>u.createdAt.localeCompare(E.createdAt)):[],w=f.find((E)=>E.name===K)??f[0],D=Z1.useMemo(()=>{let E=new Map;for(let u of w?SO(w):[]){let x=`${u.twin}:${u.entry.subject.type}:${u.entry.subject.id}`,n=E.get(x)??{key:x,twin:u.twin,writes:[]};n.writes.push(u.entry),E.set(x,n)}return[...E.values()]},[w]),C=D.find((E)=>E.key===O)??D[0],j=f0(U,C?`/-/${Q}/log/${C.twin}`:null),y={added:0,removed:0,changed:0};for(let E of D)y[LU(E.writes).tone]=(y[LU(E.writes).tone]??0)+1;let h=w?AU(w):null,b=w?fO(w,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(MO,{name:Q,view:"history",changes:R,changesets:f.length},void 0,!1,void 0,this),F.jsxDEV(a2,{load:G,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:f.map((E)=>{let u=w?.name===E.name,x=AU(E).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${_0}/${Q}/~/changes/changesets/${E.name}`,className:u?"on":void 0,"aria-current":u?"true":void 0,onClick:(n)=>{n.preventDefault(),P(null),S0([...Q.split("/"),"~","changes","changesets",E.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:UH(E)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[E.owner??(E.cutBy?zU(E.cutBy):"unrecorded")," • ",F.jsxDEV(V0,{iso:E.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(X0,{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)},E.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:[G.state==="ok"&&!w?F.jsxDEV(z9,{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,w&&h&&b?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:UH(w)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(X0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",i0(D.length,"changed record"),y.added?F.jsxDEV("span",{className:"plus",children:[" +",y.added]},void 0,!0,void 0,this):null,y.removed?F.jsxDEV("span",{className:"minus",children:[" −",y.removed]},void 0,!0,void 0,this):null,y.changed?F.jsxDEV("span",{className:"dot",children:[" •",y.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:w.name},void 0,!1,void 0,this)," · ",F.jsxDEV(V0,{iso:w.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",w.owner??(w.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(w.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",w.cutBy?w.pushedBy&&w.applied===null&&w.cutBy==="machine"?"the machine it was cut on":zU(w.cutBy):"unrecorded"],...w.pushedBy?[["Pushed by",zU(w.pushedBy)]]:[]].map(([E,u])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:E},void 0,!1,void 0,this)," ",u]},E,!0,void 0,this))},void 0,!1,void 0,this),w.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:w.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>v(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${h.tone}`,children:h.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.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(AO,{records:D,...C?{selected:C.key}:{},onPick:P,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:C?F.jsxDEV(BO,{record:C,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(x5,{open:N,onClose:()=>v(!1),title:`Review: ${UH(w)}`,wide:!0,children:[F.jsxDEV(qO,{name:Q,token:U,signsAs:H,c:w,canWrite:Y,rooted:z,refused:L,onChanged:M,part:"head",required:A},`h:${w.name}`,!1,void 0,this),F.jsxDEV(qO,{name:Q,token:U,signsAs:H,c:w,canWrite:Y,rooted:z,refused:L,onChanged:M,part:"review",required:A},`r:${w.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 XV({name:Q,token:U,vendors:G,vendor:K,tick:H}){let[Y,z]=Z1.useState(_O*4),[L,M]=Z1.useState(""),[R,T]=Z1.useState(null),A=f0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?SV(A.data.entries):[],P=[...new Set(O.map((y)=>Z4(y.entry).what))].sort(),N=O.filter((y)=>!L||Z4(y.entry).what===L),v=N.find((y)=>y9(y)===R)??N[0],f=(y)=>(h)=>{h.preventDefault(),T(null),S0([...Q.split("/"),"~","events",...y?[y]:[]])},w=v?.entry.input&&typeof v.entry.input==="object"?v.entry.input.body:void 0,D=v?nv(v.entry.traceparent):null,C=v?JO(v):null,j=v?PV(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:f(),children:"All"},void 0,!1,void 0,this),G.map((y)=>F.jsxDEV("a",{href:`${_0}/${Q}/~/events/${y}`,className:K===y?"on":void 0,"aria-current":K===y?"page":void 0,onClick:f(y),children:[F.jsxDEV(F2,{vendor:y},void 0,!1,void 0,this),o1(y)]},y,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:L,onChange:(y)=>{M(y.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),P.map((y)=>F.jsxDEV("option",{value:y,children:y},y,!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:N.map((y)=>{let h=Z4(y.entry),b=JO(y),E=v&&y9(y)===y9(v);return F.jsxDEV("tr",{className:E?"on":void 0,"aria-selected":E,onClick:()=>T(y9(y)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(V0,{iso:y.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(F2,{vendor:y.twin},void 0,!1,void 0,this),o1(y.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:h.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:h.label?`“${h.label}”`:F.jsxDEV("code",{children:o3(y.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:tJ(y.entry,y.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:b?F.jsxDEV("span",{className:b.bad?"badge cs-bad":b.status==="deployed"?"badge cs-done":"badge",children:b.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:KO(y.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},y9(y),!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:IO(v.entry)},void 0,!1,void 0,this),C?F.jsxDEV("span",{className:C.bad?"badge cs-bad":"badge cs-good",children:C.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[v.entry.subject.type,":",o3(v.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(V0,{iso:v.entry.occurredAt},void 0,!1,void 0,this)," · ",tJ(v.entry,v.caller)]},void 0,!0,void 0,this),D?F.jsxDEV("a",{href:`${_0}/${Q}/~/trace/${D.trace}`,onClick:(y)=>{y.preventDefault(),S0([...Q.split("/"),"~","trace",D.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),w!==void 0?F.jsxDEV(wV,{body:w},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(([y,h])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:y},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},y,!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(NO,{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((y)=>y.entry.receipt?.status??"landed copy").join(" · "):CV(v.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[v?`${N.indexOf(v)+1} of ${N.length}`:N.length," events",K?` at ${o1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>z((y)=>y+_O*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KV({name:Q,token:U,id:G}){let K=/^[0-9a-f]{32}$/.test(G),H=f0(U,K?`/-/${Q}/timeline?trace=${G}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-OO(A,O)):[],[z,L]=Z1.useState(null),M=Y[0]?Date.parse(Y[0].entry.occurredAt):0,R=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(X0,{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]?`${Z4(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:G.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!K?F.jsxDEV("p",{role:"alert",children:[G?`${G} 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(V0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[R," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:T.map(o1).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(z9,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(R/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let O=Date.parse(A.entry.occurredAt)-M,P=y9(A),N=Z4(A.entry);return F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("div",{className:z===P?"ws-span on":"ws-span",role:"row",onClick:()=>L(z===P?null:P),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(F2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:o1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[N.what,N.label?` “${N.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${O/R*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${O/R*100}%`},children:["+",O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z===P?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:IO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",o3(A.entry)]},void 0,!0,void 0,this)," · ",tJ(A.entry,A.caller)," · ",KO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(NO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},P,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function HV({name:Q,token:U,vendor:G,withScreens:K,tick:H}){let Y=f0(U,`/-/${Q}/checkpoint/${G}`,Math.floor(H/6)),z=Y.state==="ok"?Y.data.tree.filter((j)=>j.deleted!==!0):[],L=[...new Set(z.map((j)=>j.type))].map((j)=>({type:j,count:z.filter((y)=>y.type===j).length})).sort((j,y)=>Number(j.type.startsWith("_"))-Number(y.type.startsWith("_"))||F7(j.type).localeCompare(F7(y.type))),[M,R]=Z1.useState(null),[T,A]=Z1.useState(null),O=L.some((j)=>j.type===M)?M:L[0]?.type,P=z.filter((j)=>j.type===O),N=P.find((j)=>j.id===T)??P[0],v=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],f=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),w=(j)=>!f.has(j)&&P.some((y)=>y[j]!==void 0&&y[j]!==null&&typeof y[j]!=="object"),D=[...new Set(P.flatMap((j)=>Object.keys(j)))],C=[...v.filter(w),...D.filter((j)=>!v.includes(j)&&w(j))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${o1(G)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(F2,{vendor:G},void 0,!1,void 0,this),o1(G)]},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:O===j.type?"on":void 0,"aria-current":O===j.type?"true":void 0,onClick:(y)=>{y.preventDefault(),R(j.type),A(null)},children:[F.jsxDEV(X0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:F7(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/${G}`,onClick:(j)=>{j.preventDefault(),S0([...Q.split("/"),"~","events",G])},children:[F.jsxDEV(X0,{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/${G}`,onClick:(j)=>{j.preventDefault(),S0([...Q.split("/"),"~","screens",G])},children:[F.jsxDEV(X0,{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(z9,{title:`${o1(G)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,P.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${F7(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),C.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:P.map((j)=>F.jsxDEV("tr",{className:N?.id===j.id?"on":void 0,"aria-selected":N?.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),C.map((y)=>F.jsxDEV("td",{className:"ws-cell-clip",children:j[y]===void 0||j[y]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(j[y])},y,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof j.updatedAt==="string"?F.jsxDEV(V0,{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:N?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:F7(N.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:N.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(N).filter(([j])=>j!=="type"&&j!=="id").map(([j,y])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:j},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(n3,{v:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},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:N?`${P.indexOf(N)+1} of ${i0(P.length,F7(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function YV({name:Q,vendor:U,url:G,mapError:K,holding:H,session:Y,retry:z}){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(F2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:o1(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(X0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),G?F.jsxDEV("a",{href:G,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(X0,{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"||G===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:z,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&G===null?F.jsxDEV("p",{className:"mode ws-screens-note",children:[o1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&G?F.jsxDEV("iframe",{title:`${o1(U)}, as this World shows it`,src:G},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function zV({name:Q,token:U,who:G,scope:K}){let[H,Y]=Z1.useState(0),z=f0(U,`/-/${Q}/twins`),L=f0(U,`/-/${Q}/rules`,H),M=L.state==="ok"?L.data.changesets:null,[R,T]=Z1.useState(null),[A,O]=Z1.useState(null),[P,N]=Z1.useState(!1),[v,f]=Z1.useState([]),w=R??M?.approvals??1,D=A??M?.summary??"required",C=M!==null&&(w!==(M.approvals??1)||D!==(M.summary??"required")),j=(x,n)=>{if(f((q1)=>[{ok:x,text:n,at:new Date().toISOString(),n:++nJ},...q1].slice(0,3)),!x)$2(n,"error")},y=async(x)=>{x.preventDefault(),N(!0);try{let n=await R0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:w,summary:D}})});if(!n.ok){j(!1,`Save: ${await O5(n)}`);return}j(!0,`Saved: ${w===0?"no approval":i0(w,"approval")} before a deploy; a summary ${D==="required"?"required":"generated when none is given"}.`),T(null),O(null),Y((q1)=>q1+1)}finally{N(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},b=G.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:G.person},void 0,!1,void 0,this),G.local?", signed in on this machine":""]},void 0,!0,void 0,this):G.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):G.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),E=z.state==="ok"?z.data.twins.filter((x)=>x.root?.url):[],u=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:(x)=>void y(x),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",b,". 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(u)||M===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="required",onChange:()=>O("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="generated",onChange:()=>O("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(X0,{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:w,onChange:(x)=>T(Number(x.target.value)),disabled:Boolean(u)||M===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((x)=>F.jsxDEV("option",{value:x,children:x===0?"no one: verified is enough":x===1?"1 person":`${x} different people`},x,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),z.state==="ok"&&E.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,E.length?F.jsxDEV("ul",{className:"ws-rule-list",children:E.map((x)=>F.jsxDEV("li",{children:[F.jsxDEV(F2,{vendor:x.twin},void 0,!1,void 0,this),o1(x.twin),": ",h[x.root.deploy??"gated"]??"gated"]},x.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${_0}/${Q}/~/settings/services`,onClick:(x)=>{x.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(e6,{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(u)||P||!C,title:u??void 0,children:P?"Saving…":"Save"},void 0,!1,void 0,this),C?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,u?F.jsxDEV("span",{className:"mode",children:[u,"."]},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 WV({who:Q,scope:U,snapshot:G,portal:K,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[z,L]=G?["A snapshot",`of ${G.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(X0,{name:Q.person?"user":Q.local?"monitor":G?"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:z},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||G?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(X0,{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 LV({name:Q,token:U,view:G,sub:K,arg:H,win:Y,who:z,snapshot:L,onReturn:M,onSignOut:R,worlds:T,session:A,retry:O,twins:P,map:N,branches:v,clock:f,canWrite:w,refused:D,signsAs:C,opens:j,tick:y,admin:h,onRemoved:b,onClock:E,scope:u}){let x=vO(Q,U,y,D),[n,q1]=Z1.useState(0),Q1=n*1e5+Math.floor(y/2),m=f0(U,`/-/${Q}/diff`,Q1),g=f0(U,`/-/${Q}/changesets`,Q1),p=f0(U,`/-/${Q}/rules`,Q1),[c,l]=Z1.useState(null),a=(M1)=>(g1)=>{g1?.preventDefault(),S0([...Q.split("/"),"~",...M1])},k=P.state==="ok"?P.data.twins.map((M1)=>M1.twin):[],s=new Map((N.state==="ok"?N.data.twins:[]).flatMap((M1)=>{let g1=qV(Q,M1);return g1?[[M1.twin,g1]]:[]})),$1=[...s.keys()],o=N.state==="ok"?N.data.twins.filter((M1)=>M1.root).map((M1)=>M1.twin):[],B1=(M1)=>N.state==="ok"?(N.data.twins.find((g1)=>g1.twin===M1)?.resources??[]).reduce((g1,b1)=>g1+b1.count,0):0,O1=v?.state==="ok"&&v.data.checkedOut||Q.split("/")[1],L1=Z1.useMemo(()=>{if(m.state!=="ok")return[];let M1=new Map;for(let g1 of m.data.changes){let b1=`${g1.twin}:${g1.entry.subject.type}:${g1.entry.subject.id}`,p0=M1.get(b1)??{key:b1,twin:g1.twin,writes:[]};p0.writes.push(g1.entry),M1.set(b1,p0)}return[...M1.values()]},[m]),T1=L1.find((M1)=>M1.key===c)??L1[0],G1=f0(U,G==="changes"&&T1?`/-/${Q}/log/${T1.twin}`:null,Q1),R1=m.state==="ok"?m.data.changes.length:0,N1=x.waiting.length,H1=x.there,y1=x.origin.state==="ok"?x.origin.data.origin:null,j1=!w?"This session reads the World; it changes nothing":!H1?"No remote: name one in Settings › Remote":null,d1=(M1,g1,b1,p0,$0,e0)=>F.jsxDEV("a",{href:`${_0}/${Q}/~/${p0}`,className:M1?"on":void 0,"aria-current":M1?"page":void 0,onClick:$0,children:[g1,F.jsxDEV("span",{children:b1},void 0,!1,void 0,this),e0?F.jsxDEV("span",{className:"count",children:e0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),x1=(M1)=>{M1.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("div",{className:"ws",children:[F.jsxDEV("div",{className:"ws-bar",role:"toolbar","aria-label":`${Q} toolbar`,children:[F.jsxDEV("div",{className:"ws-left",children:[F.jsxDEV(LJ,{href:`${_0}/${Q}`,onClick:(M1)=>{M1.preventDefault(),a(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(X0,{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(X0,{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:[z.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),T.map((M1)=>F.jsxDEV("a",{href:`${_0}/${M1}`,className:M1===Q?"on":void 0,onClick:(g1)=>{g1.preventDefault(),x1(g1),S0(M1.split("/"))},children:[M1===Q?F.jsxDEV(X0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(X0,{name:"globe",size:16},void 0,!1,void 0,this),M1]},M1,!0,void 0,this)),F.jsxDEV("a",{href:`${w4()&&w4()!==P0?w4():""}${_0}/`,onClick:(M1)=>{if(w4()&&w4()!==P0)return;M1.preventDefault(),x1(M1),S0([])},children:[F.jsxDEV(X0,{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:[K3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(QH,{text:XU({platform:o2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!z.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:[K3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(QH,{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:[K3,"/",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(QH,{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:(M1)=>{x1(M1),a(["settings"])(M1)},children:[F.jsxDEV(X0,{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(ZV,{name:Q,token:U,branches:v,opens:j,refused:D,onChanged:E},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),y1?F.jsxDEV("a",{href:`${_0}/${Q}/~/remote`,onClick:a(["remote"]),children:["origin ",y1.namespace,N1?F.jsxDEV("b",{children:[" ↑",N1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${_0}/${Q}/~/remote`,onClick:a(["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:a(["settings","clock"]),children:f.state==="ok"?F.jsxDEV(F.Fragment,{children:[f.data.frozen?"stopped at ":"",F.jsxDEV(V0,{iso:f.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.pull(),disabled:Boolean(j1)||x.busy!==null,title:j1??`Fetch what ${H1} has and move this branch onto it`,children:[F.jsxDEV(X0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),x.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.push(),disabled:Boolean(j1)||x.busy!==null||N1===0,title:j1??(N1?`Push ${i0(N1,"changeset")} to ${H1}`:`Every changeset is at ${H1}`),children:[F.jsxDEV(X0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),x.busy==="Push"?"Pushing…":"Push",N1?F.jsxDEV("span",{className:"ws-btn-count",children:N1},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:()=>a(["settings"])(),children:F.jsxDEV(X0,{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(X0,{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(V0,{iso:L.at},void 0,!1,void 0,this),": a read-only snapshot",L.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(V0,{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,x.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(e6,{log:x.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[k.length?F.jsxDEV("a",{href:`${_0}/${Q}/~/screens`,className:G==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:a(["screens"]),title:`The board: ${c8(k.map(o1))}`,children:[F.jsxDEV(X0,{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((M1)=>F.jsxDEV(F2,{vendor:M1},M1,!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),d1(G==="changes"||G==="history",F.jsxDEV(X0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",a(["changes"]),L1.length?String(L1.length):void 0),d1(G==="events"&&!H||G==="trace",F.jsxDEV(X0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",a(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),k.map((M1)=>F.jsxDEV(Z1.default.Fragment,{children:d1(G==="vendor"&&H===M1,F.jsxDEV(F2,{vendor:M1},void 0,!1,void 0,this),o1(M1),`vendors/${M1}`,a(["vendors",M1]),B1(M1)?String(B1(M1)):void 0)},M1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),d1(!1,F.jsxDEV(X0,{name:"cloud",size:16},void 0,!1,void 0,this),H1?"origin":"Name a remote…","remote",a(["remote"]),N1?`↑${N1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[G==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(MO,{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:m.state==="ok"?`${i0(L1.length,"record")} · ${i0(R1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(a2,{load:m,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(AO,{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:[m.state==="ok"&&!T1?F.jsxDEV(z9,{title:"No changes on this branch",action:N1>0&&H1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(j1)||x.busy!==null,onClick:()=>void x.push(),children:["Push ",i0(N1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",m.data.base.at?F.jsxDEV(V0,{iso:m.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:m.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,T1?F.jsxDEV(BO,{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(EV,{pinned:!0,generated:p.state==="ok"&&p.data.changesets.summary==="generated",author:{face:F.jsxDEV(X0,{name:z.person?"user":z.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:z.person??(z.local?"This machine":z.admin?"The host's admin":"A token"),account:`${_0}/${Q}/~/settings/account`,branch:O1},name:Q,token:U,changes:R1,canWrite:w,refused:D,onCut:()=>{q1((M1)=>M1+1),l(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,G==="history"?F.jsxDEV(FV,{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:C,canWrite:w,rooted:o,refused:D,onChanged:()=>q1((M1)=>M1+1)},void 0,!1,void 0,this):null,G==="events"?F.jsxDEV(XV,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:y},H??"",!1,void 0,this):null,G==="trace"?F.jsxDEV(KV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,G==="vendor"&&H?F.jsxDEV(HV,{name:Q,token:U,vendor:H,withScreens:$1.includes(H),tick:y},H,!1,void 0,this):null,G==="screen"&&H?F.jsxDEV(YV,{name:Q,vendor:H,url:N.state==="ok"?s.get(H)??null:void 0,...N.state==="error"?{mapError:N.error}:{},holding:AV(N.state==="ok"?N.data.twins.find((M1)=>M1.twin===H)?.resources??[]:[]),session:A,retry:O},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(x5,{open:Y?.kind==="settings",onClose:()=>a(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:LO.map(([M1,g1,b1])=>F.jsxDEV("a",{href:`${_0}/${Q}/~/settings/${M1}`,className:Y.tab===M1?"on":void 0,"aria-current":Y.tab===M1?"page":void 0,onClick:a(["settings",M1]),children:[F.jsxDEV(X0,{name:b1,size:16},void 0,!1,void 0,this),g1]},M1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[u==="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(WV,{who:z,scope:u,snapshot:L,portal:o2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(zV,{name:Q,token:U,who:z,scope:u},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(xV,{name:Q,token:U,canWrite:w,tick:y,refused:D},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(gV,{name:Q,token:U,admin:h,canWrite:w,refused:D,onRemoved:b,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(mV,{name:Q,token:U,canWrite:w,refused:D},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(_V,{},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(x5,{open:Y?.kind==="branches",onClose:()=>a(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(RV,{name:Q,token:U,canWrite:w,branches:v,opens:j,...Y.open?{open:Y.open}:{},onChanged:E,refused:D},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QH({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>$2("Copied the prompt: paste it into your coding agent"),()=>$2("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var zH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,BV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),AV=(Q,U=4)=>{let G=[...Q].filter((K)=>K.count>0).sort((K,H)=>H.count-K.count);return G.length?G.slice(0,U).map((K)=>i0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(G.length>U?` · +${G.length-U} more`:""):"nothing yet"},TO=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 MV({name:Q,token:U,clock:G,canWrite:K,onChanged:H,refused:Y,open:z}){let[L,M]=Z1.useState(!1),[R,T]=Z1.useState(""),[A,O]=Z1.useState(""),[P,N]=Z1.useState(null),[v,f]=Z1.useState(!1),w=G.state==="ok"?G.data:null,D=async(h,b,E)=>{f(!0),N(null);try{let u=await R0(U,`/-/${Q}/${b}`,{method:b==="clock"?"PUT":"POST",body:JSON.stringify(E)});if(!u.ok){Y(u),N({ok:!1,text:await O5(u)});return}let x=await u.json();N({ok:!0,text:`${h} — the World is at ${new Date(x.at).toLocaleString()}`}),M(!1),H()}catch(u){N({ok:!1,text:`the World did not answer: ${u instanceof Error?u.message:String(u)}`})}finally{f(!1)}},C=(h)=>{h.preventDefault();let b=new Date(R);if(Number.isNaN(b.getTime())){N({ok:!1,text:"Pick a date and time."});return}if(w&&b.getTime()<Date.parse(w.at)){N({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(w.at).toLocaleString()}.`});return}D("Clock set","clock",{at:b.toISOString()})},j=(h,b)=>{D(`Advanced ${b}`,"clock/advance",{by:h})},y=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${w?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:G.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):G.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",G.error]},void 0,!0,void 0,this):w.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(V0,{iso:w.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(V0,{iso:w.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&&w?F.jsxDEV("details",{className:z?"clock-more inline":"clock-more",open:z||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:z?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(k9(tR(w.at))),N(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),y.map(([h,b])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${b}`,disabled:v||!w.frozen,title:w.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>j(h,b),children:b},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){N({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}j(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>O(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!w.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:v||!w.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!w.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:C,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:k9(tR(w.at)),onChange:(h)=>T(h.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:v,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>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,P?F.jsxDEV("p",{role:P.ok?"status":"alert",children:P.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function TV({name:Q,token:U,clock:G,refused:K}){let[H,Y]=Z1.useState(!1),[z,L]=Z1.useState(""),[M,R]=Z1.useState(null),[T,A]=Z1.useState(!1),O=G.state==="ok"?G.data.at:new Date().toISOString(),P=Z1.useRef(null);return Z1.useEffect(()=>{if(!H)return;let v=(w)=>{if(w.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),P.current?.querySelector("button")?.focus()},f=(w)=>{if(!P.current?.contains(w.target))Y(!1)};return document.addEventListener("keydown",v),document.addEventListener("click",f),()=>{document.removeEventListener("keydown",v),document.removeEventListener("click",f)}},[H]),F.jsxDEV("div",{className:"as-of",ref:P,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),L(k9(O)),R(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(v)=>{v.preventDefault(),R(null);let f=new Date(z);if(Number.isNaN(f.getTime())){R("Pick a date and time.");return}if(f.getTime()>Date.parse(O)){R(`That is after the World's present (${new Date(O).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let w=await R0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:f.toISOString()},ttl:3600})});if(!w.ok){K(w),R(await O5(w));return}let D=await w.json();XH({name:D.name,parent:Q,token:D.token,readToken:D.readToken,at:f.toISOString(),expiresAt:D.expiresAt??null,parentOrigin:P0,made:!0});let C=oJ(D.origin)?.origin;if(C&&C!==P0){YH(C,D.readToken,D.name,`${_0}/${D.name}`);return}S0(D.name.split("/"))}catch(w){R(`the World did not answer: ${w instanceof Error?w.message:String(w)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:z,max:k9(O),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 RO({name:Q,token:U,open:G,onClose:K,onMade:H,refused:Y}){let z=(b)=>b.split("/").pop()??b,[L,M]=Z1.useState(!1),[R,T]=Z1.useState(null),[A,O]=Z1.useState(""),[P,N]=Z1.useState("now"),[v,f]=Z1.useState(""),[w,D]=Z1.useState("24"),[C,j]=Z1.useState(!0);Z1.useEffect(()=>{if(G)T(null),f(k9(new Date().toISOString()))},[G]);let y=async(b)=>{b.preventDefault(),T(null);let E=P==="at"?new Date(v):null;if(E&&Number.isNaN(E.getTime())){T("Pick a date and time, or make it as of now.");return}if(E&&E.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}M(!0);let u=await R0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(w)*3600),...E?{at:{instant:E.toISOString()}}:C?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(M(!1),!u){T(`${P0} did not answer`);return}if(!u.ok){Y(u),T(await O5(u));return}let x=await u.json();XH({name:x.name,parent:Q,token:x.token??"",readToken:x.readToken,at:(E??new Date).toISOString(),expiresAt:x.expiresAt??null,parentOrigin:P0,...x.origin?{origin:x.origin}:{}}),K(),O(""),$2(`Made ${z(x.name)}`),H()};return F.jsxDEV(x5,{open:G,onClose:()=>{if(!L)K()},title:`New branch of ${z(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:(b)=>void y(b),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:(b)=>O(b.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9\\-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="now",onChange:()=>N("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:C,onChange:(b)=>j(b.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="at",onChange:()=>N("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:v,max:k9(new Date().toISOString()),onChange:(b)=>f(b.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:w,onChange:(b)=>D(b.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function RV({name:Q,token:U,canWrite:G,branches:K,opens:H,open:Y,onChanged:z,refused:L,snapshotOf:M}){let R=f0(U,`/-/${Q}/clock`),T=(D)=>D.split("/").pop()??D,[A,O]=Z1.useState(!1),P=(D)=>(C)=>{C.preventDefault(),S0([...Q.split("/"),"~","branches",...D?D.split("/"):[]])};if(!K)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let N=K.state==="ok"?K.data.branches:[],v=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:T(Q),running:!0}],f=K.state==="ok"?K.data.checkedOut??T(Q):T(Q),w=async(D)=>{if(!await $3({title:`Remove the branch ${T(D)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let C=await R0(U,`/-/${Q}/branches/${D}`,{method:"DELETE"}).catch((j)=>j);if(C instanceof Error){$2(`Remove ${T(D)}: the World did not answer (${C.message})`,"error");return}if(!C.ok){L(C),$2(`Remove ${T(D)}: ${await O5(C)}`,"error");return}YU(D),$2(`Removed ${T(D)}`),z(),S0([...Q.split("/"),"~","branches"])};if(Y){let D=Y.includes("/")?N.find((j)=>j.name===Y):void 0,C=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:P(),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"&&!D&&!C?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,D?F.jsxDEV(OV,{name:Q,b:D,canWrite:G,opens:H(D.name),remove:()=>void w(D.name)},void 0,!1,void 0,this):null,C&&!D?F.jsxDEV(IV,{name:Q,token:U,b:C,served:C.name===f,canWrite:G,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:f},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),G?F.jsxDEV("div",{className:"head-actions",children:[M?null:F.jsxDEV(TV,{name:Q,token:U,clock:R,refused:L},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>O(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(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((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${_0}/${Q}/~/branches/${D.name}`,onClick:P(D.name),children:F.jsxDEV("b",{children:D.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.name===f?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${D.name}`,!0,void 0,this)),N.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${_0}/${Q}/~/branches/${D.name}`,onClick:P(D.name),children:F.jsxDEV("b",{children:T(D.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:T(D.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.at?.instant?F.jsxDEV(V0,{iso:D.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(V0,{iso:D.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.expiresAt?F.jsxDEV(V0,{iso:D.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},D.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(RO,{name:Q,token:U,open:A,onClose:()=>O(!1),onMade:z,refused:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function OV({name:Q,b:U,canWrite:G,opens:K,remove:H}){let Y=(M)=>M.split("/").pop()??M,z=KH(U.name),L=f0(z,z?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[TO," ",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:()=>WO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,G?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(V0,{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(V0,{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(V0,{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(bV,{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 IV({name:Q,token:U,b:G,served:K,canWrite:H,canServe:Y}){let[z,L]=Z1.useState(!1),[M,R]=Z1.useState(null),T=async()=>{L(!0),R(null);let A=await R0(U,`/-/${Q}/branches/${encodeURIComponent(G.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}L(!1),R(A?await O5(A):`${P0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[TO," ",G.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:z,onClick:()=>void T(),children:z?"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:G.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:G.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 ",G.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 _O=50,y9=(Q)=>`${Q.twin}:${Q.position}`,OO=(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,G]=Q.slice(4).split(" for:");return G?`${U}, for ${G}`: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},tJ=(Q,U)=>{let G=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(G.startsWith("key:")&&G.length>4)return`by ${zU(G)}`;if(G.startsWith("person:")&&G.length>7)return`by ${G.slice(7)}`;if(G==="machine")return"by this machine";if(G==="person")return"by a session with no name";if(G==="key")return"by a key";if(G==="token:read")return"by the read-only token";if(G==="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"},IO=(Q)=>Q.operation??Q.op;function PV(Q){let U=Q.fields??{},G=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...R)=>R.map((T)=>G[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=K("prompt_tokens","input_tokens"),z=K("completion_tokens","output_tokens"),L=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(z!==void 0)H.push(["tokens out",z.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 PO({text:Q,at:U=280}){if(Q.length<=U)return F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this);return F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:[F.jsxDEV("span",{className:"text",children:[Q.slice(0,U),"…"]},void 0,!0,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:["show all ",Q.length.toLocaleString()," characters"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function n3({v:Q}){if(typeof Q==="string")return F.jsxDEV(PO,{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 NV=(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(n3,{v:Q},void 0,!1,void 0,this);let U=Q,G=Array.isArray(U.messages)?U.messages:null,K=Object.entries(U).filter(([H])=>!(G&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[K.length?F.jsxDEV("dl",{className:"fields",children:K.map(([H,Y])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(n3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,G?F.jsxDEV("ol",{className:"messages",children:G.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(PO,{text:NV(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 NO({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(([G,K])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:G},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(n3,{v:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},G,!0,void 0,this))},void 0,!1,void 0,this)}var CV=(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 SV(Q){let U=new Map,G=[],K=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){K.push(Y);continue}let z={...Y,copies:[]};if(G.push(z),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,z);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}`,z)}for(let Y of K){let z=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(z)z.copies.push(Y);else G.push({...Y,copies:[]})}return G.sort(OO)}var qH={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function JO(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 G=U.find((H)=>H.status==="failed"||H.status==="refused"),K=[...U].sort((H,Y)=>(qH[Y.status]??0)-(qH[H.status]??0))[0];return G&&!(qH[K.status]>=5)?{status:G.status,bad:!0}:{status:K.status,bad:!1}}var N4=1280,X3=820,KU=160,G4=72,ZH=120,fV=72,WU="This World shows its branches' sites only on this machine.",s0=(Q)=>`${Q.vendor}:${Q.id}`,G7=(Q)=>`${Q.vendor}:section:${Q.section.id}`,X7=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),BU=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${K3}/${Q}/${U.vendor}${U.at.screen}`:null,wO=(Q,U,G)=>G.at&&("screen"in G.at)?`${K3}/-/${Q}/branches/${U}/pages?${new URLSearchParams({land:`/${U}/${G.vendor}${G.at.screen}`}).toString()}`:BU(U,G),$O=(Q,U)=>Q.include?U.filter((G)=>Q.include.includes(s0(G))||X7(G).some((K)=>Q.include.includes(K))):U.filter((G)=>!(Q.hidden??[]).includes(s0(G)));function jV({data:Q}){let{frame:U,url:G,active:K,picked:H,boards:Y,addTo:z,remove:L,compare:M,grab:R,branch:T}=Q,A=s0(U),O=Y.filter((N)=>N.include&&!N.include.includes(A)&&!X7(U).some((v)=>N.include.includes(v))),P=L0((N)=>N.transform[2]*(G4+ZH)>=fV);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV($H,{isVisible:P||H||K,position:E1.Top,align:"start",className:"frame-label",children:[F.jsxDEV("span",{className:"frame-name",onPointerDown:R,children:[F.jsxDEV(F2,{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(A),title:`${i0(U.changes,"change")} ${T?"on this branch":"here, not in a changeset"}: compare`,children:[F.jsxDEV(X0,{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(A),title:"Compare with a branch of this World","aria-label":`Compare ${U.title} with a branch`,children:F.jsxDEV(X0,{name:"file-diff",size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,H&&O.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(N)=>{if(N.target.value)z(N.target.value,A)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),O.map((N)=>F.jsxDEV("option",{value:N.id,children:N.name},N.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(A),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:N4,height:X3},children:[F.jsxDEV("div",{className:"frame-bar",children:[F.jsxDEV(F2,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[o1(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),G?F.jsxDEV("a",{className:"nodrag",href:G,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:G?F.jsxDEV("iframe",{title:U.title,src:G,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==="branch-sites"?WU:U.unseen==="sites-not-routed"?`This World shows ${U.title} only at its own local address.`:`${o1(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 CO({name:Q,label:U,done:G}){let K=Z1.useRef(!1),H=(Y)=>{if(K.current)return;K.current=!0,G(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 vV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(aR,{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(CO,{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(F2,{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 QO({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*X3/N4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:N4,height:X3,transform:`scale(${420/N4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function VV({name:Q,token:U,frame:G,onClose:K,reads:H,viewing:Y=""}){let[z,L]=Z1.useState(Y?"world":G.since?"before":""),[M,R]=Z1.useState({state:"opening"}),[T,A]=Z1.useState(null),O=Z1.useRef(new Set),P=f0(U,`/-/${Q}/branches`,H),N=P.state==="ok"?P.data.branches.filter((y)=>y.name!==Y&&y.name!==T&&!O.current.has(y.name)):[],v=f0(U,Y?`/-/${Q}/board`:null,H),f=v.state==="ok"?v.data.frames.find((y)=>s0(y)===s0(G)):void 0,w=f0(U,`/-/${Q}/${Y?`branches/${Y}/`:""}board/changes?frame=${encodeURIComponent(s0(G))}`,H),D=async(y,h,b)=>{let E=G.at;if("site"in E){let n=new URL(G.url),q1=h&&/^https?:\/\/\{host\}\./.test(h)?h.replace("{host}",n.hostname.toLowerCase()):null;return q1?{url:`${q1}${n.pathname}${n.search}`}:{why:WU}}let u=`${K3}/-/${Q}/branches/${y}/pages?${new URLSearchParams({land:`/${y}/${G.vendor}${E.screen}`}).toString()}`,x=await fetch(u,{credentials:"same-origin",redirect:"manual"}).catch(()=>null);if(b())return{why:""};return x?.type==="opaqueredirect"?{url:u}:{why:`This World does not show its branches' pages${x?`: ${await O5(x)}`:""}.`}};Z1.useEffect(()=>{if(z==="world"){if(v.state==="loading"){R({state:"opening"});return}let n=f?BU(Q,f):null;R(n?{state:"ok",url:n}:{state:"none",why:v.state==="error"?v.error:"The World has no page here to show."});return}if(!G.at){R({state:"none",why:G.unseen==="branch-sites"?WU:`${o1(G.vendor)}'s twin draws no page for this ${G.kind} yet; its changes are listed below.`});return}if(z===""){R({state:"none",why:"Choose a branch of this World to set beside it."});return}let y=!1;if(z!=="before"){R({state:"opening"});let n=P.state==="ok"?P.data.branches.find((Q1)=>Q1.name===z):void 0,q1=setTimeout(()=>void D(z,n?.sites??null,()=>y).then((Q1)=>{if(!y)R("url"in Q1?{state:"ok",url:Q1.url}:{state:"none",why:Q1.why})}),300);return()=>{y=!0,clearTimeout(q1)}}if(!G.since){R({state:"none",why:"Nothing here has changed since the World was last cut."});return}R({state:"opening"});let h=new Date(Date.parse(G.since)-1).toISOString(),b=null,E=setTimeout(()=>void(async()=>{let n=await R0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:h},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!n?.ok){R({state:"none",why:`The World made no copy of itself as it was then${n?`: ${await O5(n)}`:""}.`});return}let q1=await n.json();if(b=q1.name,A(q1.name),O.current.add(q1.name),y){R0(U,`/-/${Q}/branches/${q1.name}`,{method:"DELETE"}).catch(()=>null);return}let Q1=await D(q1.name,q1.sites??null,()=>y);if(!y)R("url"in Q1?{state:"ok",url:Q1.url,at:h}:{state:"none",why:Q1.why})})(),500),u=()=>{if(b)R0(U,`/-/${Q}/branches/${b}`,{method:"DELETE",keepalive:!0}).catch(()=>null);b=null},x=(n)=>{if(!n.persisted)u()};return window.addEventListener("pagehide",x),()=>{y=!0,clearTimeout(E),window.removeEventListener("pagehide",x),u(),A(null)}},[Q,U,G.vendor,G.id,G.since,z,v.state,JSON.stringify(f?.at)]);let C=Y?wO(Q,Y,G):BU(Q,G),j=!G.at||z!==""?null:P.state==="ok"&&N.length===0?"This World has no branches to set beside it: make one under Branches.":P.state==="error"?`The World's branches could not be read: ${P.error}`:null;return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${G.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(F2,{vendor:G.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:G.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:G.changes?`${i0(G.changes,"change")} ${Y?"on this branch":"not yet cut"}${G.since?`, since ${p8(G.since)}`:""}`:Y?"No changes here on this branch":"No changes here not yet cut"},void 0,!1,void 0,this),G.at?F.jsxDEV("label",{className:"compare-base",children:["Compare with"," ",F.jsxDEV("select",{value:z,onChange:(y)=>L(y.target.value),children:[z===""?F.jsxDEV("option",{value:"",children:"Choose a branch…"},void 0,!1,void 0,this):null,Y?F.jsxDEV("option",{value:"world",children:"The World"},void 0,!1,void 0,this):null,!Y&&(G.since||z==="before")?F.jsxDEV("option",{value:"before",children:"Before these changes"},void 0,!1,void 0,this):null,z&&z!=="before"&&z!=="world"&&!N.some((y)=>y.name===z)?F.jsxDEV("option",{value:z,children:z.split("/")[1]},void 0,!1,void 0,this):null,N.map((y)=>F.jsxDEV("option",{value:y.name,children:[y.name.split("/")[1],y.at?.label?` (${y.at.label})`:y.at?.instant?` (as of ${p8(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:z==="before"?`Before${M.state==="ok"&&M.at?` · as of ${p8(M.at)}`:""}`:z==="world"?"The World":z?z.split("/")[1]:"A branch"},void 0,!1,void 0,this),j?F.jsxDEV("p",{className:"mode compare-note",children:j},void 0,!1,void 0,this):M.state==="ok"?F.jsxDEV(QO,{url:M.url,title:`${G.title} before`},void 0,!1,void 0,this):M.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:M.why},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:Y?`${Y.split("/")[1]} · branch`:"Now"},void 0,!1,void 0,this),C?F.jsxDEV(QO,{url:C,title:`${G.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:G.unseen==="branch-sites"?WU:`${o1(G.vendor)}'s twin draws no page for this ${G.kind} yet.`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",w.error]},void 0,!0,void 0,this):null,z!=="before"&&z&&w.state==="ok"&&w.data.acts.length?F.jsxDEV("p",{className:"mode compare-acts-head",children:Y?"This branch’s changes here:":"This World's own changes here, not yet cut:"},void 0,!1,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(w.state==="ok"?w.data.acts:[]).map((y)=>{let h=y.entries[0],b=Z4({...h,service:G.vendor,id:"",occurredAt:y.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:p8(y.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:b.what},void 0,!1,void 0,this),b.label?` · ${b.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((E,u)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:E.operation??E.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[E.subject.type," ",o3(E)]},void 0,!0,void 0,this)]},u,!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}:${h.subject.type}:${h.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),w.state==="ok"&&w.data.total>w.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",i0(w.data.total-w.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,!Y?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):null]},void 0,!0,void 0,this)}var yV={screen:jV,section:vV};function kV(Q){let[U,G]=Z1.useState(()=>new URLSearchParams(window.location.search).get("viewing")??"");return Z1.useEffect(()=>{let H=()=>G(new URLSearchParams(window.location.search).get("viewing")??"");return window.addEventListener("popstate",H),()=>window.removeEventListener("popstate",H)},[]),F.jsxDEV(JH,{children:F.jsxDEV(DV,{...Q,viewing:U,view:(H)=>{let Y=new URL(window.location.href);if(H)Y.searchParams.set("viewing",H);else Y.searchParams.delete("viewing");window.history.pushState(null,"",Y),window.dispatchEvent(new PopStateEvent("popstate"))}},void 0,!1,void 0,this)},`${Q.name}:${U}`,!1,void 0,this)}function DV({name:Q,token:U,session:G,retry:K,snapshot:H,back:Y,canWrite:z,viewing:L,view:M}){let R=Z1.useRef(null),T=Z1.useRef(0),A=Z1.useRef(Promise.resolve()),O=Z1.useRef(0),[,P]=Z1.useState(0),[N,v]=Z1.useState({state:"loading"}),[f,w]=Z1.useState(null),[D,C]=Z1.useState(0),j=f0(U,`/-/${Q}/branches`,D),y=j.state==="ok"?j.data.branches.find((t)=>t.name===L):void 0,h=j.state==="ok"?j.data.branches.filter((t)=>!(t.at?.instant&&t.expiresAt&&!t.at.label)):[],b=Z1.useRef(0),E=Z1.useRef(0),u=Z1.useCallback(async()=>{let t=O.current,Y1=++b.current,f1=L?`branches/${L.split("/").map(encodeURIComponent).join("/")}/board`:"board",[v1,U0]=await Promise.all([R0(U,`/-/${Q}/${f1}`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),L?R0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null):Promise.resolve(null)]),k1=v1?.ok?await v1.json().catch(()=>null):null,D1=L?U0?.ok?await U0.json().catch(()=>null):null:k1;if(k1&&D1)k1.boards=D1.boards,k1.version=D1.version;if(Y1<E.current)return;if(E.current=Y1,!k1?.frames||!D1?.boards||!D1.version){let c1=!v1?.ok?v1:U0,Q0=c1?`the World answered ${c1.status}`:"the World did not answer";v((b0)=>b0.state==="ok"?b0:{state:"error",status:c1?.status??0,error:Q0}),w(Q0);return}if(w(null),C((c1)=>c1+1),t===O.current&&T.current===0)R.current={boards:k1.boards,version:k1.version};v({state:"ok",data:k1})},[U,Q,L]);Z1.useEffect(()=>{u();let t=setInterval(()=>{if(!document.hidden)u()},1e4);return()=>clearInterval(t)},[u]);let x=N.state==="ok"?N.data.frames.map((t)=>L&&t.at&&("site"in t.at)&&!/^https?:\/\/\{host\}\./.test(y?.sites??"")?{...t,at:null,unseen:"branch-sites"}:t):[],n=R.current?.boards??[{id:"everything",name:"Everything"}],[q1,Q1]=Z1.useState(null),m=x.some((t)=>t.changes),g=q1??(m?"changes":"everything"),p=(g==="changes"?n[0]:n.find((t)=>t.id===g))??n[0],[c,l]=Z1.useState(new Set),a=z&&!H&&!L,k=Z1.useCallback((t)=>{if(!a)return Promise.resolve();if(!R.current)return $2("The board is being read again: make that change once it shows","error"),Promise.resolve();R.current={...R.current,boards:t(R.current.boards)},T.current+=1,O.current+=1,P((f1)=>f1+1);let Y1=A.current.then(async()=>{let f1=R.current;if(!f1)return;try{let v1=await R0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:f1.boards,version:f1.version}),signal:AbortSignal.timeout(15000)}),U0=await v1.json().catch(()=>null);if(v1.ok&&U0?.boards&&U0.version)R.current={boards:T.current>1&&R.current?R.current.boards:U0.boards,version:U0.version};else if(v1.status===409&&U0?.boards&&U0.version)R.current={boards:U0.boards,version:U0.version},$2("Someone else changed the board first: it is shown as they left it","error");else throw Error(U0?.error??`the World answered ${v1.status}`)}catch(v1){$2(`The board was not kept: ${v1 instanceof Error?v1.message:String(v1)}`,"error"),R.current=null;let U0=await R0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),k1=U0?.ok?await U0.json().catch(()=>null):null;if(k1?.boards&&k1.version)R.current={boards:k1.boards,version:k1.version}}}).finally(()=>{if(T.current-=1,O.current+=1,P((f1)=>f1+1),T.current===0&&!R.current)u()});return A.current=Y1,Y1},[U,Q,u,a]),s=(t,Y1)=>{k((f1)=>f1.map((v1)=>v1.id===t?Y1(v1):v1))},$1=(t)=>t.parent?`${t.vendor}:${t.parent}`:null,o=new Set(x.map(s0)),B1=(t)=>{let Y1=$1(t);return!Y1||!o.has(Y1)},O1=g==="changes"?x.filter((t)=>t.changes):p.include?$O(p,x):$O(p,x).filter((t)=>B1(t)||c.has($1(t))),L1=x.filter((t)=>t.changes&&!O1.includes(t)).reduce((t,Y1)=>t+Y1.changes,0),[T1,G1]=Z1.useState(null),[R1,N1]=Z1.useState(null),[H1,y1]=Z1.useState(null),j1=aJ(),d1=n.filter((t)=>t.include),x1=(t,Y1)=>s(t,(f1)=>({...f1,include:[...f1.include??[],Y1]})),M1={label:p.include?"Take it off this board":"Hide it",act:(t)=>{N1(null),s(p.id,(Y1)=>Y1.include?{...Y1,include:Y1.include.filter((f1)=>f1!==t)}:{...Y1,hidden:[...Y1.hidden??[],t]})}},g1=(t)=>({x:t.position.x,y:t.position.y,w:t.width??t.measured?.width??N4,h:t.height??t.measured?.height??X3}),b1=(t,Y1)=>{let f1=g1(t),v1=f1.x+f1.w/2,U0=f1.y+f1.h/2;return Y1.filter((k1)=>k1.type==="section").map((k1,D1)=>({s:k1,i:D1})).filter(({s:k1})=>{let D1=g1(k1);return v1>=D1.x&&v1<=D1.x+D1.w&&U0>=D1.y&&U0<=D1.y+D1.h}).sort((k1,D1)=>g1(k1.s).w*g1(k1.s).h-g1(D1.s).w*g1(D1.s).h||D1.i-k1.i)[0]?.s},p0=Z1.useCallback(()=>{let t=new Map;for(let c1 of O1){let Q0=p.placed?.[s0(c1)];if(Q0)t.set(s0(c1),Q0)}let Y1=Math.max(-KU,...[...t.values()].map((c1)=>c1.y+X3)),f1=[...new Set(O1.map(G7))];for(let c1 of f1){let Q0=O1.filter((N0)=>G7(N0)===c1),b0=Q0.filter((N0)=>t.has(s0(N0))).map((N0)=>t.get(s0(N0))),J0=b0.length?Math.max(...b0.map((N0)=>N0.x))+N4+KU:0,c0=b0.length?Math.min(...b0.map((N0)=>N0.y)):Y1+KU+G4*2+ZH;for(let N0 of Q0)if(!t.has(s0(N0)))t.set(s0(N0),{x:J0,y:c0}),J0+=N4+KU;Y1=Math.max(Y1,c0+X3)}let v1=p.sections??{},U0=(c1,Q0,b0,J0,c0)=>({id:`sec:${c1}`,type:"section",position:{x:Q0.x,y:Q0.y},width:Q0.w,height:Q0.h,zIndex:0,draggable:a,data:{key:c1,name:b0,vendor:J0,named:c0}}),k1=[];for(let c1 of f1){let Q0=O1.find((y0)=>G7(y0)===c1),b0=X7(Q0).find((y0)=>v1[y0])??c1,J0=v1[b0];if(J0?.gone)continue;let c0=O1.filter((y0)=>G7(y0)===c1).map((y0)=>t.get(s0(y0))),N0={x:Math.min(...c0.map((y0)=>y0.x))-G4,y:Math.min(...c0.map((y0)=>y0.y))-G4-ZH,w:0,h:0};N0.w=Math.max(...c0.map((y0)=>y0.x))+N4+G4-N0.x,N0.h=Math.max(...c0.map((y0)=>y0.y))+X3+G4-N0.y;let c5=O1.filter((y0)=>G7(y0)===c1&&!p.placed?.[s0(y0)]).map((y0)=>t.get(s0(y0))),l2=J0?{...J0}:N0;if(J0)for(let y0 of c5)l2.w=Math.max(l2.w,y0.x+N4+G4-l2.x),l2.h=Math.max(l2.h,y0.y+X3+G4-l2.y);k1.push(U0(b0,l2,J0?.name??`${o1(Q0.vendor)} · ${Q0.section.title}`,Q0.vendor,Boolean(J0?.name)))}for(let[c1,Q0]of Object.entries(v1))if(c1.startsWith("user:")&&!Q0.gone)k1.push(U0(c1,Q0,Q0.name??"Section",null,!0));let D1=O1.map((c1)=>({id:s0(c1),type:"screen",zIndex:1,width:N4,height:X3,draggable:a,position:t.get(s0(c1)),data:{world:Q,branch:Boolean(L),frame:c1,url:L?wO(Q,L,c1):BU(Q,c1)}}));return[...k1,...D1]},[JSON.stringify(O1),JSON.stringify(p),Q,a,L]),[$0,e0,j2]=gR([]),R2=L0((t)=>t.transform[2]),v2=Z1.useRef("");Z1.useEffect(()=>{let t=p0();if(e0(t),t.length&&v2.current!==g)v2.current=g,requestAnimationFrame(()=>{j1.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[p0,e0]);let O2=(t,Y1=[],f1={})=>{let v1=Object.fromEntries(Y1.map((k1)=>{let D1=j1.getNode(`sec:${k1}`);if(!D1)return[k1,void 0];let c1=g1(D1),Q0=D1.data,b0=f1[k1]??(Q0.named?Q0.name:void 0);return[k1,{x:Math.round(c1.x),y:Math.round(c1.y),w:Math.round(c1.w),h:Math.round(c1.h),...b0?{name:b0.slice(0,80)}:{}}]}).filter(([,k1])=>k1!==void 0)),U0=Object.fromEntries(Object.entries(t).map(([k1,D1])=>[k1,{x:Math.round(D1.x),y:Math.round(D1.y)}]));s(p.id,(k1)=>({...k1,placed:{...k1.placed??{},...U0},sections:{...k1.sections??{},...v1}}))},q2=Z1.useRef(null),I2=(t,Y1)=>{if(Y1.type!=="section"){q2.current=null;return}let f1=j1.getNodes(),v1=g1(Y1),U0=(k1)=>{let D1=g1(k1);if(k1.type==="screen"){let c1=D1.x+D1.w/2,Q0=D1.y+D1.h/2;return c1>=v1.x&&c1<=v1.x+v1.w&&Q0>=v1.y&&Q0<=v1.y+v1.h}return k1.id!==Y1.id&&D1.x>=v1.x&&D1.y>=v1.y&&D1.x+D1.w<=v1.x+v1.w&&D1.y+D1.h<=v1.y+v1.h};q2.current={id:Y1.id,from:{...Y1.position},members:f1.filter(U0).map((k1)=>({id:k1.id,x:k1.position.x,y:k1.position.y}))}},P2=(t,Y1)=>{let f1=q2.current;if(!f1||f1.id!==Y1.id)return;let v1=Y1.position.x-f1.from.x,U0=Y1.position.y-f1.from.y,k1=new Map(f1.members.map((D1)=>[D1.id,D1]));e0((D1)=>D1.map((c1)=>{let Q0=k1.get(c1.id);return Q0?{...c1,position:{x:Q0.x+v1,y:Q0.y+U0}}:c1}))},F4=(t,Y1)=>{let f1=q2.current;q2.current=null;let v1=Y1.position.x-(f1?.from.x??Y1.position.x),U0=Y1.position.y-(f1?.from.y??Y1.position.y),k1=Y1.type==="screen"?[{id:Y1.id,x:Y1.position.x,y:Y1.position.y}]:(f1?.members??[]).map((D1)=>({...D1,x:D1.x+v1,y:D1.y+U0}));requestAnimationFrame(()=>{let D1=j1.getNodes(),c1=new Map(k1.filter((J0)=>!J0.id.startsWith("sec:")).map((J0)=>[J0.id,{x:J0.x,y:J0.y}])),Q0=new Set([...Y1.type==="section"?[Y1.data.key]:[],...k1.filter((J0)=>J0.id.startsWith("sec:")).map((J0)=>J0.id.slice(4))]),b0=new Set(D1.filter((J0)=>c1.has(J0.id)).flatMap((J0)=>X7(J0.data.frame)));for(let J0 of D1){if(J0.type==="screen"&&X7(J0.data.frame).some((c0)=>b0.has(c0))&&!c1.has(J0.id))c1.set(J0.id,{x:J0.position.x,y:J0.position.y});if(J0.type==="section"&&b0.has(J0.data.key))Q0.add(J0.data.key)}O2(Object.fromEntries(c1),[...Q0])})},K5=(t)=>Object.fromEntries(j1.getNodes().filter((Y1)=>Y1.type==="screen"&&X7(Y1.data.frame).includes(t)).map((Y1)=>[Y1.id,{x:Y1.position.x,y:Y1.position.y}])),[g5,H5]=Z1.useState(null),p5=(t)=>{N1(`sec:${t}`),H5(t)},H3=(t,Y1)=>{if(H5(null),!Y1)return;e0((f1)=>f1.map((v1)=>v1.id===`sec:${t}`?{...v1,data:{...v1.data,name:Y1,named:!0}}:v1)),requestAnimationFrame(()=>O2(K5(t),[t],{[t]:Y1}))},I5=(t)=>{N1(null);let Y1=j1.getNode(`sec:${t}`);s(p.id,(f1)=>{let v1=Object.fromEntries(Object.entries(f1.sections??{}).filter(([U0])=>U0!==t));return{...f1,sections:t.startsWith("user:")?v1:{...v1,[t]:{...Y1?{x:Math.round(Y1.position.x),y:Math.round(Y1.position.y),w:Math.round(g1(Y1).w),h:Math.round(g1(Y1).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},V=()=>{let t=R1?j1.getNode(R1):void 0,Y1=j1.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),f1=t?.type==="screen"?{x:t.position.x-G4,y:t.position.y-G4,w:N4+G4*2,h:X3+G4*2}:{x:Y1.x-900,y:Y1.y-600,w:1800,h:1200},v1=`user:${Date.now().toString(36)}`,U0=Object.keys(p.sections??{}).filter((k1)=>k1.startsWith("user:")).length+1;N1(`sec:${v1}`),s(p.id,(k1)=>({...k1,sections:{...k1.sections??{},[v1]:{x:Math.round(f1.x),y:Math.round(f1.y),w:Math.round(f1.w),h:Math.round(f1.h),name:`Section ${U0}`}}}))},U1=(t)=>(Y1)=>{if(!a||Y1.button!==0)return;let f1=j1.getNode(t);if(!f1)return;let v1=Y1.currentTarget;v1.setPointerCapture(Y1.pointerId);let{clientX:U0,clientY:k1}=Y1,D1={...f1.position},c1=!1,Q0=(c0)=>{let N0=j1.getZoom();return{...f1,position:{x:D1.x+(c0.clientX-U0)/N0,y:D1.y+(c0.clientY-k1)/N0}}},b0=(c0)=>{if(!c1&&Math.hypot(c0.clientX-U0,c0.clientY-k1)<4)return;if(!c1)c1=!0,I2(null,f1);let N0=Q0(c0);e0((c5)=>c5.map((l2)=>l2.id===t?{...l2,position:N0.position}:l2)),P2(null,N0)},J0=(c0)=>{if(v1.removeEventListener("pointermove",b0),v1.removeEventListener("pointerup",J0),v1.removeEventListener("pointercancel",J0),c1)F4(null,Q0(c0)),v1.addEventListener("click",(N0)=>{N0.stopPropagation(),N0.preventDefault()},{capture:!0,once:!0});else if(f1.type==="screen")N1(t)};v1.addEventListener("pointermove",b0),v1.addEventListener("pointerup",J0),v1.addEventListener("pointercancel",J0)},P1=$0.map((t)=>t.type==="section"?{...t,data:{...t.data,grab:U1(t.id),picked:R1===t.id,editable:a,renaming:a&&g5===t.data.key,pick:(Y1)=>N1(`sec:${Y1}`),rename:p5,renamed:H3,remove:I5,resized:()=>requestAnimationFrame(()=>{let Y1=t.data.key;O2(K5(Y1),[Y1])})}}:{...t,data:{...t.data,grab:U1(t.id),active:T1===t.id,picked:R1===t.id,boards:a?d1:[],addTo:x1,remove:!a||p.include&&!p.include.includes(t.id)?null:M1,compare:(Y1)=>{N1(Y1),y1(Y1)}}});Z1.useEffect(()=>{let t=(Y1)=>{if(Y1.target?.closest("input, textarea, select, [contenteditable]"))return;if(Y1.key==="Escape"){if(T1)G1(null);else N1(null);return}if(!a||T1)return;if((Y1.key==="Delete"||Y1.key==="Backspace")&&R1){if(Y1.preventDefault(),R1.startsWith("sec:"))I5(R1.slice(4));else if(!p.include||p.include.includes(R1))M1.act(R1);else $2("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(),V()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)});let w1=(t)=>{N1(t);let Y1=j1.getNode(t);if(!Y1)return;let f1=g1(Y1);j1.fitBounds({x:f1.x,y:f1.y,width:f1.w,height:f1.h},{padding:0.15,duration:400})},u1=()=>{let t=`board-${Date.now().toString(36)}`;Q1(t),k((Y1)=>[...Y1,{id:t,name:`Board ${Y1.length}`,include:[]}])},a1=()=>H5(`board:${p.id}`),s1=()=>{let t=p.id;Q1(null),k((Y1)=>Y1.filter((f1)=>f1.id!==t))},B0=[...new Map(x.map((t)=>[G7(t),t])).values()],m1=p.include?[...B0.filter((t)=>!X7(t).some((Y1)=>p.include.includes(Y1))).map((t)=>({key:G7(t),label:`${o1(t.vendor)} · ${t.section.title} (all)`})),...x.filter((t)=>!O1.includes(t)).map((t)=>({key:s0(t),label:t.title}))]:[],U2=p.include?[]:x.filter((t)=>(p.hidden??[]).includes(s0(t))),E2=$0.filter((t)=>t.type==="section"),Y5=$0.filter((t)=>t.type==="screen"),C4=new Map(Y5.map((t)=>[t.id,b1(t,$0)?.id??null])),Y3=new Map;for(let t of x){let Y1=$1(t);if(Y1&&o.has(Y1))Y3.set(Y1,(Y3.get(Y1)??0)+1)}let z3=(t)=>{let Y1=t.data.frame;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:R1===t.id?"on":void 0,onClick:()=>w1(t.id),onDoubleClick:()=>G1(t.id),children:[F.jsxDEV(F2,{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")} ${L?"on this branch":"not in a changeset"}: its mark on the board opens a comparison`,children:[F.jsxDEV(X0,{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),Y3.get(t.id)&&g!=="changes"&&!p.include?F.jsxDEV("button",{type:"button",className:"ghost layer-open","aria-expanded":c.has(t.id),onClick:()=>l((f1)=>{let v1=new Set(f1);if(v1.has(t.id))v1.delete(t.id);else v1.add(t.id);return v1}),title:c.has(t.id)?"Close the pages under it":"Open the pages under it",children:[c.has(t.id)?"−":"+",Y3.get(t.id)]},void 0,!0,void 0,this):null]},t.id,!0,void 0,this)},e3=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,P5=G.state==="ok"&&N.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",style:{"--zoom":R2},children:F.jsxDEV(mR,{nodes:P5?P1:[],onNodesChange:j2,nodeTypes:yV,onNodeDragStart:I2,onNodeDrag:P2,onNodeDragStop:F4,onNodeClick:(t,Y1)=>{if(Y1.id!==T1)N1(Y1.id)},onNodeDoubleClick:(t,Y1)=>{if(Y1.type==="screen")N1(Y1.id),G1(Y1.id)},onPaneClick:()=>{G1(null),N1(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:e3?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(cR,{variant:Z3.Dots,gap:28*2**Math.max(0,Math.ceil(Math.log2(16/(28*R2)))),size:2/R2},void 0,!1,void 0,this),F.jsxDEV(F3,{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:(L||Q).split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],L?" · branch":H?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"compare-base board-viewing",children:["Viewing",F.jsxDEV("select",{value:L,disabled:T.current>0,onChange:(t)=>M(t.target.value),children:[F.jsxDEV("option",{value:"",children:"The World"},void 0,!1,void 0,this),L&&!h.some((t)=>t.name===L)?F.jsxDEV("option",{value:L,children:[L," · branch"]},void 0,!0,void 0,this):null,h.map((t)=>F.jsxDEV("option",{value:t.name,children:[t.name.split("/")[1]," · branch"]},t.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.state==="error"&&j.status!==404?F.jsxDEV("p",{className:"mode",role:"alert",children:["Branches could not be read: ",j.error]},void 0,!0,void 0,this):null,F.jsxDEV("div",{className:"board-tabs",role:"tablist","aria-label":"Boards",children:[F.jsxDEV("button",{type:"button",role:"tab","aria-selected":g==="changes",className:g==="changes"?"on":void 0,onClick:()=>{N1(null),G1(null),Q1("changes")},title:L?"The pages whose records changed on this branch":"The pages whose records changed and are not yet in a changeset",children:["Changes",m?` (${x.filter((t)=>t.changes).length})`:""]},void 0,!0,void 0,this),n.map((t)=>g5===`board:${t.id}`?F.jsxDEV(CO,{name:t.name,label:"Name this board",done:(Y1)=>{if(H5(null),Y1)s(t.id,(f1)=>({...f1,name:Y1}))}},t.id,!1,void 0,this):F.jsxDEV("button",{type:"button",role:"tab","aria-selected":g!=="changes"&&t.id===p.id,className:g!=="changes"&&t.id===p.id?"on":void 0,onClick:()=>{N1(null),G1(null),Q1(t.id)},onDoubleClick:a&&t.id===p.id&&t.include?a1:void 0,children:t.name},t.id,!1,void 0,this)),a?F.jsxDEV("button",{type:"button",className:"ghost",onClick:u1,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),p.include&&a?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:a1,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:s1,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:[E2.map((t)=>{let Y1=t.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:R1===t.id?"layer-section on":"layer-section",onClick:()=>w1(t.id),onDoubleClick:()=>{if(a)w1(t.id),p5(Y1.key)},children:[Y1.vendor?F.jsxDEV(F2,{vendor:Y1.vendor},void 0,!1,void 0,this):F.jsxDEV(X0,{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:Y5.filter((f1)=>C4.get(f1.id)===t.id).map(z3)},void 0,!1,void 0,this)]},t.id,!0,void 0,this)}),Y5.filter((t)=>!C4.get(t.id)).map(z3)]},void 0,!0,void 0,this),p.include&&!O1.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,m1.length&&a?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(t)=>{let Y1=t.target.value;if(Y1)s(p.id,(f1)=>({...f1,include:[...f1.include??[],Y1]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),m1.map((t)=>F.jsxDEV("option",{value:t.key,children:t.label},t.key,!1,void 0,this))]},void 0,!0,void 0,this):null,U2.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",U2.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:U2.map((t)=>F.jsxDEV("li",{children:a?F.jsxDEV("button",{type:"button",onClick:()=>s(p.id,(Y1)=>({...Y1,hidden:(Y1.hidden??[]).filter((f1)=>f1!==s0(t))})),children:[F.jsxDEV("span",{children:t.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:t.title},void 0,!1,void 0,this)},s0(t),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L1?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>Q1("changes"),children:[F.jsxDEV(X0,{name:"square-dot",size:14},void 0,!1,void 0,this),i0(L1,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(a2,{load:N,what:"the board"},void 0,!1,void 0,this),f&&N.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",f,"): it shows what was last read."]},void 0,!0,void 0,this):null,G.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,G.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",G.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),T1?F.jsxDEV(F3,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",O1.find((t)=>s0(t)===T1)?.title??T1]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>G1(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(F3,{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),a?F.jsxDEV(F3,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:V,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(X0,{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,H1&&O1.some((t)=>s0(t)===H1)?F.jsxDEV(F3,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(VV,{viewing:L,name:Q,token:U,frame:O1.find((t)=>s0(t)===H1),onClose:()=>y1(null),reads:D},H1,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(dR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(rR,{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 SO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),uV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function AU(Q){let U=Q.actions.filter(uV).length,G=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,z=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:z,total:G,own:U};if(G>0&&Y>=G)return{label:"Deployed",tone:"done",...L};if(Y>0)return{label:`Partly deployed: ${Y} of ${G}`,tone:"warn",...L};if(z>0)return{label:`${z} 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 UH=(Q)=>Q.message??Q.narration?.split(`
250
+ `)[0]?.replace(/ setting .*$/,"")??Q.name;function fO(Q,U=1){let G=Q.currentHash??Q.contentHash,K=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===G).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===G?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 qO({name:Q,token:U,signsAs:G,c:K,canWrite:H,rooted:Y,refused:z,onChanged:L,part:M,required:R}){let T=M==="head",A=M==="review",[O,P]=Z1.useState(null),[N,v]=Z1.useState(!1),[f,w]=Z1.useState(""),[D,C]=Z1.useState(""),[j,y]=Z1.useState(null),h=f0(U,`/-/${Q}/origin`),b=AU(K),E=fO(K,R),u=SO(K),x=[...new Set(u.map((o)=>o.twin))],n=x.some((o)=>Y.includes(o)),q1=(o)=>o===(K.currentHash??K.contentHash),Q1=K.applied?.receipts??[],m=(K.deployed??[]).filter((o)=>o.status!=="landed"),g=Q1.filter((o)=>o.status==="confirmed").length,p=m.filter((o)=>o.status==="deployed"),c=async(o,B1,O1,L1)=>{P(o),y(null);try{let T1=await R0(U,B1,{method:"POST",...O1===void 0?{}:{body:JSON.stringify(O1)}});if(!T1.ok)return z(T1),y({what:o,...T2(await m3(T1))}),!1;if(L1)$2(L1);return L(),!0}catch(T1){return y({what:o,text:`the World did not answer (${T1 instanceof Error?T1.message:String(T1)})`,acts:[]}),!1}finally{P(null)}},l=()=>{c("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},a=async(o)=>{if(o.preventDefault(),await c("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...f.trim()?{note:f.trim()}:{},...G===null&&D.trim()?{as:D.trim()}:{}},"Approved"))v(!1),w("")},k=async()=>{let o=x.filter((B1)=>Y.includes(B1));if(!await $3({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",o.length===1?"":"s"," behind ",c8(o.map(o1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;P("Deploy"),y(null);try{let B1=await R0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!B1.ok){z(B1),y({what:"Deploy",...T2(await m3(B1))});return}let O1=await R0(U,`/-/${Q}/changesets/${K.name}`),L1=O1.ok?await O1.json():null;if(!L1){$2("Deploy: sent; reading its receipts failed","info"),L();return}let T1=AU(L1);$2(`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(B1){y({what:"Deploy",text:`the World did not answer (${B1 instanceof Error?B1.message:String(B1)})`,acts:[]})}finally{P(null)}},s=!H?"This session reads the World; it changes nothing":b.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,$1=h.state==="ok"&&h.data.origin?zH(h.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-${b.tone}`,children:b.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.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(V0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",c8(x.map(o1))||"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(s)||O!==null,title:s??"Replay it in a throwaway World and run the World's checks",children:O==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>v(!0),disabled:Boolean(s)||O!==null,title:s??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),n?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(s)||O!==null,title:s??"Perform it against the real accounts behind this World",children:O==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s&&b.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[s,"."]},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:O!==null,children:"Verify"},void 0,!1,void 0,this):null,j.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>v(!0),disabled:O!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(XO,{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:[b.performed>0?F.jsxDEV("p",{className:"pad",children:[b.performed>=b.total?"Deployed":"Partly deployed",": ",b.performed," of ",b.total," change",b.total===1?"":"s",b.own?` (and ${b.own} of the World's own, which stay in it)`:""," performed at ",c8([...new Set([...p.map((o)=>o.service),...Q1.filter((o)=>o.status==="confirmed").map((o)=>o.service)].map(o1))]),p.length?` (${p.length} from here`:" (",p.length&&g?", ":"",g?`${g} by the remote`:"",")."]},void 0,!0,void 0,this):b.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(V0,{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):b.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",n?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,b.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[b.failed," change",b.failed===1?" was":"s were"," refused or failed at the vendor",[...m.filter((o)=>o.reason&&(o.status==="refused"||o.status==="failed")).map((o)=>o.reason),...Q1.filter((o)=>o.status==="failed"&&o.error).map((o)=>o.error)].slice(0,3).map((o)=>`: ${T2(o).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((o,B1)=>F.jsxDEV("li",{className:"mode",children:T2(o).text},B1,!1,void 0,this))},void 0,!1,void 0,this):null,m.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:m.map((o)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:o.status==="refused"||o.status==="failed"?"badge cs-bad":o.status==="deployed"?"badge cs-done":"badge",children:o.status},void 0,!1,void 0,this)," ",o1(o.service)," ",o.status==="deployed"?o.url?F.jsxDEV("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",children:o.externalId??o.url},void 0,!1,void 0,this):o.externalId?F.jsxDEV("code",{children:o.externalId},void 0,!1,void 0,this):null:null,o.reason?F.jsxDEV("span",{className:"mode",children:[" · ",T2(o.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(V0,{iso:o.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${o.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((o)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:o.status==="failed"?"badge cs-bad":o.status==="confirmed"?"badge cs-done":"badge",children:o.status},void 0,!1,void 0,this)," ",o1(o.service)," ",F.jsxDEV("span",{className:"mode",children:o.status==="replayed"?"replayed at the remote World":o.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),o.status==="confirmed"&&o.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:o.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,o.error?F.jsxDEV("span",{className:"mode",children:[" · ",T2(o.error).text]},void 0,!0,void 0,this):null]},`r:${o.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!n&&b.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:(o)=>{o.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:q1(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(V0,{iso:K.verification.at},void 0,!1,void 0,this),q1(K.verification.contentHash)?null:F.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.verification.results.length?F.jsxDEV("ul",{className:"checks",children:K.verification.results.map((o)=>F.jsxDEV("li",{children:[o.passed?"✓":"✗"," ",F.jsxDEV("code",{children:o.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:o1(o.service)},void 0,!1,void 0,this)]},o.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((o,B1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:o.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[o1(o.service),": ",o.reason]},void 0,!0,void 0,this)]},B1,!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((o,B1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:o.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(V0,{iso:o.at},void 0,!1,void 0,this),q1(o.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),o.note?F.jsxDEV("div",{className:"mode",children:["“",o.note,"”"]},void 0,!0,void 0,this):null]},B1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(x5,{open:N,onClose:()=>{if(!O)v(!1)},title:`Approve ${K.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(!1),disabled:O!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:O!==null,children:O==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(o)=>void a(o),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",G?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.jsxDEV("b",{children:G},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),G===null?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:D,onChange:(o)=>C(o.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:f,onChange:(o)=>w(o.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 jO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function bV({changes:Q,idPrefix:U}){let G=[...new Set(Q.map((K)=>K.twin))];return F.jsxDEV(F.Fragment,{children:G.map((K)=>{let H=Q.filter((z)=>z.twin===K).map((z)=>z.entry),Y=[...new Set(H.map((z)=>`${z.subject.type}:${z.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(F2,{vendor:K},void 0,!1,void 0,this),o1(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((z)=>{let L=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===z),M=L[L.length-1],R=Z4(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)," ",R.label?F.jsxDEV("span",{className:"label",children:["“",R.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:o3(M)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L.map((A)=>{let O=A.fields??{},P=Object.entries(O).filter(([v,f])=>!(v in T)||!jO(T[v],f)),N=T;return T={...T,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:Z4(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(V0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",tJ(A)]},void 0,!0,void 0,this),P.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${Z4(A).what} set`,children:P.map(([v,f])=>F.jsxDEV(Z1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:v in N?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(n3,{v:N[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(n3,{v:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(n3,{v:f},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)})]},z,!0,void 0,this)})},void 0,!1,void 0,this)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function EV({name:Q,token:U,changes:G,canWrite:K,refused:H,onCut:Y,pinned:z,generated:L,inputRef:M,author:R}){let[T,A]=Z1.useState(""),[O,P]=Z1.useState(!1),[N,v]=Z1.useState([]),f=(D,C,j)=>{v((y)=>[{ok:D,text:C,at:new Date().toISOString(),n:++nJ,...j?.length?{acts:j}:{}},...y].slice(0,4))},w=async(D)=>{D.preventDefault(),P(!0);try{let C=await R0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!C.ok){H(C);let y=T2(await m3(C));f(!1,`Cut a changeset: ${y.text}`,y.acts);return}let j=await C.json();f(!0,`Cut ${j.name??"a changeset"}: ${i0(j.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(C){f(!1,`Cut a changeset: the World did not answer (${C instanceof Error?C.message:String(C)})`)}finally{P(!1)}};if(z){let D=!K?"This session reads the World; it changes nothing":G===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(e6,{log:N,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(C)=>void w(C),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(C)=>{C.preventDefault(),S0(R.account.slice(_0.length+1).split("/"))},children:R.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:M,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(C)=>A(C.target.value),placeholder:G===0?"Nothing to cut":L?"Summary (optional)":"Summary (required)",required:!L,maxLength:200,disabled:Boolean(D),title:D??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(D)||O,title:D??void 0,children:O?"Cutting…":G===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",i0(G,"change"),R?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:R.branch},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!K||G===0)return F.jsxDEV(e6,{log:N,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(D)=>void w(D),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",G===1?"this change":`these ${G} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:T,onChange:(D)=>A(D.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:G===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:O||G===0,children:O?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(e6,{log:N,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hV({name:Q,token:U}){let[G,K]=Z1.useState(0),H=f0(U,`/-/${Q}/keys`,G),[Y,z]=Z1.useState(!1),[L,M]=Z1.useState(""),[R,T]=Z1.useState("write"),[A,O]=Z1.useState(!1),[P,N]=Z1.useState(null),[v,f]=Z1.useState(null),[w,D]=Z1.useState(null),C=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,b=await R0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),E=b?await b.json().catch(()=>({})):{error:`${P0} did not answer`};if(!b?.ok||!E.key){$2(E.error?T2(E.error).text:"refused","error");return}D(`${window.location.origin}${_0}/${Q}#${new URLSearchParams({token:E.key}).toString()}`),K((u)=>u+1)},j=async(h)=>{h.preventDefault(),O(!0),N(null);let b=await R0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:L.trim(),scope:R})}).catch(()=>null);O(!1);let E=b?await b.json().catch(()=>({})):{error:`${P0} did not answer`};if(!b?.ok||!E.key){N(E.error?T2(E.error).text:"refused");return}z(!1),f({key:E.key,name:L.trim()}),M(""),K((u)=>u+1)},y=async(h)=>{if(!await $3({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let b=await R0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(b.ok)$2(`Revoked ${h.name}`);else $2(await O5(b),"error");K((E)=>E+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 C(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{N(null),z(!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((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:p8(h.createdAt),children:oF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?oF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(iA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void y(h)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},h.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(x5,{open:Y,onClose:()=>{if(!A)z(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>z(!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:(h)=>M(h.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:R,onChange:(h)=>T(h.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P?F.jsxDEV("p",{role:"alert",children:P},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(x5,{open:Boolean(v),onClose:()=>f(null),title:`${v?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>f(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(eF,{label:"Key",value:v.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(x5,{open:Boolean(w),onClose:()=>D(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>D(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),w?F.jsxDEV(eF,{label:"Link",value:w,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var nJ=0;function e6({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((G)=>F.jsxDEV("li",{className:G.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(V0,{iso:G.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",G.text,G.acts?F.jsxDEV(XO,{name:U,acts:G.acts},void 0,!1,void 0,this):null]},G.n,!0,void 0,this))},void 0,!1,void 0,this)}function vO(Q,U,G,K){let[H,Y]=Z1.useState(0),z=H*1e5+Math.floor(G/2),L=f0(U,`/-/${Q}/origin`,z),M=f0(U,`/-/${Q}/diff`,z),R=f0(U,`/-/${Q}/changesets`,z),[T,A]=Z1.useState([]),[O,P]=Z1.useState(null),N=(y,h,b)=>{if(A((E)=>[{ok:y,text:h,at:new Date().toISOString(),n:++nJ,...b?.length?{acts:b}:{}},...E].slice(0,8)),!y)$2(h,"error")},v=async(y,h,b)=>{P(y);try{let E=await R0(U,`/-/${Q}/${h}`,b);if(!E.ok){K(E);let u=T2(await m3(E));return N(!1,`${y}: ${u.text}`,u.acts),null}return await E.json()}catch(E){return N(!1,`${y}: the World did not answer (${E instanceof Error?E.message:String(E)})`),null}finally{P(null),Y((E)=>E+1)}},f=L.state==="ok"&&L.data.origin?zH(L.data.origin):null,w=M.state==="ok"?M.data.changes.length:null,D=R.state==="ok"&&f?BV(R.data.changesets.filter((y)=>!y.pushedBy)).sort((y,h)=>y.createdAt.localeCompare(h.createdAt)):[];return{origin:L,diff:M,sets:R,there:f,changes:w,waiting:D,log:T,busy:O,say:N,send:v,push:async()=>{let y=await v("Push","origin/push",{method:"POST"});if(!y)return;if(y.pushed.length===0){N(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of y.pushed){let b=h.receipts??[],E=b.filter((Q1)=>Q1.status==="replayed").length,u=b.filter((Q1)=>Q1.status==="confirmed").length,x=b.filter((Q1)=>Q1.status==="failed").length,n=h.outcome==="applied"&&x===0;if(h.outcome==="refused"){N(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((Q1)=>T2(Q1).text).join("; ")}`:""}.`);continue}let q1=[`${E} of ${i0(b.length,"change")} replayed there`,...u?[`${u} performed at the vendor by the remote`]:[],...x?[`${x} failed`]:[]];N(n,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${f??"the remote"}: ${q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((Q1)=>T2(Q1).text).join("; ")})`:""}.`)}},pull:async()=>{let y=await v("Pull","origin/pull",{method:"POST"});if(!y)return;let h=Object.entries(y.appended).filter(([,E])=>E>0),b=y.rebased.flatMap((E)=>E.conflicts.map((u)=>`${o1(E.twin)} ${u.subject.type}:${u.subject.id} ${u.field}`));N(b.length===0,`Pulled from ${f??"the remote"}: ${h.length?h.map(([E,u])=>`${i0(u,"entry")} at ${o1(E)}`).join(", "):"nothing new"}${b.length?`; conflicts at ${b.join(", ")}`:""}.`)}}}function xV({name:Q,token:U,canWrite:G,tick:K,refused:H}){let{origin:Y,there:z,changes:L,log:M,busy:R,say:T,send:A,push:O,pull:P}=vO(Q,U,K,H),[N,v]=Z1.useState(""),[f,w]=Z1.useState(""),[D,C]=Z1.useState(!1),j=async(h)=>{h.preventDefault();let b=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:N.trim(),token:f.trim()})});if(b){let E=Object.values(b.appended??{}).reduce((u,x)=>u+x,0);T(!0,`The remote is ${zH(b.origin)}: its history came in (${i0(E,"entry")}).`),w(""),C(!1)}},y=!G?"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),G?F.jsxDEV("button",{type:"button",onClick:()=>{v(z??""),C(!D)},"aria-expanded":D,children:z?"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"?z?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:z},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(V0,{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),D?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void j(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:N,onChange:(h)=>v(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:f,onChange:(h)=>w(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:R!==null,children:R==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>C(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(e6,{log:M,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function mV({name:Q,token:U,canWrite:G,refused:K}){let[H,Y]=Z1.useState(0),z=f0(U,`/-/${Q}/twins`,H),L=f0(U,`/-/${Q}/links`,H),M=f0(U,`/-/${Q}/requests?hours=24`,H),[R,T]=Z1.useState({}),[A,O]=Z1.useState(null),[P,N]=Z1.useState(""),[v,f]=Z1.useState(!1),[w,D]=Z1.useState([]),C=(u,x,n)=>{if(D((q1)=>[{ok:u,text:x,at:new Date().toISOString(),n:++nJ,...n?.length?{acts:n}:{}},...q1].slice(0,6)),!u)$2(x,"error")},j=L.state==="ok"?Object.keys(L.data.links).sort():[];Z1.useEffect(()=>{let u=!0;return Promise.all(j.map(async(x)=>{let n=await R0(U,`/-/${Q}/twins/${x}/credential`).catch(()=>null),q1=n?.ok?await n.json():null;return[x,q1?.credential??null]})).then((x)=>{if(u)T(Object.fromEntries(x))}),()=>{u=!1}},[Q,U,j.join(","),H]);let y=async(u)=>{if(u.preventDefault(),!A||!P)return;f(!0);let x=await R0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:P,headers:{"content-type":"text/plain"}}).catch(()=>null);if(f(!1),!x){C(!1,`Seal ${A.vendor}: ${P0} did not answer`);return}if(!x.ok){K(x);let q1=T2(await m3(x));C(!1,`Seal ${o1(A.vendor)}: ${q1.text}`,q1.acts);return}let n=await x.json().catch(()=>({}));C(!0,`Sealed a credential for ${o1(A.vendor)}${n.fingerprint?` (${n.fingerprint})`:""}: it opens for ${n.boundTo??A.to} only, and is never shown again.`),N(""),O(null),Y((q1)=>q1+1)},h=async(u)=>{if(!await $3({title:`Remove the link ${u}?`,body:`Requests to ${K3}/${Q}/${u}/… stop being forwarded to ${L.state==="ok"?L.data.links[u]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let x=await R0(U,`/-/${Q}/links/${u}`,{method:"DELETE"}).catch(()=>null);if(!x?.ok){if(x)K(x);C(!1,`Remove ${u}: ${x?await O5(x):"the World did not answer"}`);return}C(!0,`Removed the link ${u}.`),Y((n)=>n+1)},b=(u)=>u?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:[u.fingerprint?F.jsxDEV("code",{children:u.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(V0,{iso:u.placedAt},void 0,!1,void 0,this),u.sealedBy?` · by ${u.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),E=z.state==="ok"?z.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(e6,{log:w,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:z,what:"the vendors"},void 0,!1,void 0,this),z.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),G?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:E.map((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(F2,{vendor:u.twin},void 0,!1,void 0,this),o1(u.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:b(u.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.credential?.boundTo?F.jsxDEV("code",{children:u.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:u.root?.url?F.jsxDEV("code",{children:u.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),G?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!u.root?.url,title:u.root?.url?`Seal ${o1(u.twin)}'s real credential for ${u.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{N(""),O({vendor:u.twin,to:u.root.url})},children:u.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},u.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,z.state==="ok"&&E.every((u)=>!u.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:[K3,"/",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),G?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((u)=>{let x=L.state==="ok"?L.data.links[u].origin:"",n=M.state==="ok"?M.data.twins.find((q1)=>q1.twin===u):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:u},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:x},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:n?F.jsxDEV("span",{title:Object.entries(n.byStatus).map(([q1,Q1])=>`${q1}: ${Q1}`).join(" · "),children:n.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:[b(R[u]??null),R[u]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[u].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),G?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{N(""),O({vendor:u,to:x})},children:R[u]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(u),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},u,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(x5,{open:Boolean(A),onClose:()=>{if(!v)O(null)},title:`Seal ${A?o1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>O(null),disabled:v,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:v||!P,children:v?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(u)=>void y(u),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:P,onChange:(u)=>N(u.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 gV({name:Q,token:U,admin:G,canWrite:K,refused:H,onRemoved:Y,only:z}){let L=(l)=>!z||z===l,[M,R]=Z1.useState(0),T=f0(U,`/-/${Q}/twins`,M),A=f0(U,`/-/${Q}/checks`,M),[O,P]=Z1.useState(0),N=f0(U,`/-/${Q}/clock`,O),[v,f]=Z1.useState([]),[w,D]=Z1.useState(null),[C,j]=Z1.useState(null),[y,h]=Z1.useState(""),[b,E]=Z1.useState("gated"),[u,x]=Z1.useState(!1),n=(l,a,k)=>{if(f((s)=>[{ok:l,text:a,at:new Date().toISOString(),n:++nJ,...k?.length?{acts:k}:{}},...s].slice(0,6)),!l)$2(a,"error")},q1=async(l,a,k)=>{let s=await R0(U,a,k).catch(()=>null);if(!s)return n(!1,`${l}: the World did not answer`),!1;if(!s.ok){H(s);let $1=T2(await m3(s));return n(!1,`${l}: ${$1.text}`,$1.acts),!1}return n(!0,`${l}: done.`),R(($1)=>$1+1),!0},Q1=async(l)=>{if(l.preventDefault(),!C)return;x(!0);let a=C.root??{},k=await q1(y.trim()?`Connect ${o1(C.twin)} to ${y.trim()}`:`Disconnect ${o1(C.twin)}`,`/-/${Q}/twins/${C.twin}/root`,{method:"PUT",body:JSON.stringify(y.trim()?{...a,url:y.trim(),deploy:b}:null)});if(x(!1),k)j(null)},m=async()=>{if(!await $3({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 R0(G,`/-/worlds/${Q}/rotate`,{method:"POST"});if(l.ok)D(await l.json()),n(!0,"Rotated: the new tokens are shown once, below.");else n(!1,`Rotate: ${await O5(l)}`)},g=async()=>{if(!await $3({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 R0(G,`/-/worlds/${Q}`,{method:"DELETE"}).catch((a)=>a);if(l instanceof Error){n(!1,`Remove: the host did not answer (${l.message})`);return}if(l.ok)Y();else n(!1,`Remove: ${await O5(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(e6,{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(hV,{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 a=l.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(F2,{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:o1(l.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:a?.url?F.jsxDEV("code",{children:a.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:a?.url?c[a.deploy??""]??a.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):a?.url?p8(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:()=>{h(a?.url??""),E(a?.deploy==="auto"||a?.deploy==="hold"?a.deploy:"gated"),j(l)},children:a?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!a?.url,title:a?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void $3({title:`Read ${o1(l.twin)} now?`,body:`The real ${o1(l.twin)}'s current state is read into this World. Nothing is written to ${o1(l.twin)}.`,action:"Read from it"}).then((k)=>{if(k)q1(`Read from ${o1(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(MV,{name:Q,token:U,clock:N,canWrite:K,onChanged:()=>P((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,G&&!z?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),w?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:w.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:w.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void m(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void 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(x5,{open:Boolean(C),onClose:()=>{if(!u)j(null)},title:`Connect ${C?o1(C.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>j(null),disabled:u,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:u,children:u?"Saving…":y.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:y,onChange:(l)=>h(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:b,onChange:(l)=>E(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(JV,{},void 0,!1,void 0,this),F.jsxDEV(dA,{},void 0,!1,void 0,this),F.jsxDEV(lA,{},void 0,!1,void 0,this),F.jsxDEV(cA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var kO=n0(g8(),1);Aq();yO.createRoot(H7).render(kO.jsxDEV(VO,{},void 0,!1,void 0,this));