@volter/world-console 2.0.12 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/client/brand/icons.ts +2 -0
- package/client/console.css +390 -0
- package/client/console.tsx +1498 -956
- package/client/kit/kit.css +4 -0
- package/client/kit/kit.tsx +2 -2
- package/client/main.tsx +8 -0
- package/dist/client/brand/icons.ts +2 -0
- package/dist/client/console.bundle.js +13 -224
- package/dist/client/console.css +390 -0
- package/dist/client/console.tsx +1498 -956
- package/dist/client/kit/kit.css +4 -0
- package/dist/client/kit/kit.tsx +2 -2
- package/dist/client/main.bundle.js +250 -0
- package/dist/client/main.tsx +8 -0
- package/dist/src/console.js +1 -1
- package/package.json +8 -5
- package/src/console.ts +1 -1
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
var sP=Object.create;var{getPrototypeOf:tP,defineProperty:NA,getOwnPropertyNames:nP}=Object;var oP=Object.prototype.hasOwnProperty;function eP(Q){return this[Q]}var _N,JN,b0=(Q,U,Z)=>{var X=Q!=null&&typeof Q==="object";if(X){var H=U?_N??=new WeakMap:JN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?sP(tP(Q)):{};let B=U||!Q||!Q.__esModule?NA(Z,"default",{value:Q,enumerable:!0}):Z;for(let W of nP(Q))if(!oP.call(B,W))NA(B,W,{get:eP.bind(Q,W),enumerable:!0});if(X)H.set(Q,B);return B};var v4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var fA=v4(($N)=>{(function(){function Q(){if(V=!1,b){var p=$N.unstable_now();a=p;var c=!0;try{_:{D=!1,N&&(N=!1,h(E),E=-1),f=!0;var s=S;try{J:{Y(p);for(y=Z(M);y!==null&&!(y.expirationTime>p&&W());){var i=y.callback;if(typeof i==="function"){y.callback=null,S=y.priorityLevel;var o=i(y.expirationTime<=p);if(p=$N.unstable_now(),typeof o==="function"){y.callback=o,Y(p),c=!0;break J}y===Z(M)&&X(M),Y(p)}else X(M);y=Z(M)}if(y!==null)c=!0;else{var k=Z(w);k!==null&&R(B,k.startTime-p),c=!1}}break _}finally{y=null,S=s,f=!1}c=void 0}}finally{c?J1():b=!1}}}function U(p,c){var s=p.length;p.push(c);_:for(;0<s;){var i=s-1>>>1,o=p[i];if(0<H(o,c))p[i]=c,p[s]=o,s=i;else break _}}function Z(p){return p.length===0?null:p[0]}function X(p){if(p.length===0)return null;var c=p[0],s=p.pop();if(s!==c){p[0]=s;_:for(var i=0,o=p.length,k=o>>>1;i<k;){var g=2*(i+1)-1,q1=p[g],t=g+1,H1=p[t];if(0>H(q1,s))t<o&&0>H(H1,q1)?(p[i]=H1,p[t]=s,i=t):(p[i]=q1,p[g]=s,i=g);else if(t<o&&0>H(H1,s))p[i]=H1,p[t]=s,i=t;else break _}}return c}function H(p,c){var s=p.sortIndex-c.sortIndex;return s!==0?s:p.id-c.id}function Y(p){for(var c=Z(w);c!==null;){if(c.callback===null)X(w);else if(c.startTime<=p)X(w),c.sortIndex=c.expirationTime,U(M,c);else break;c=Z(w)}}function B(p){if(N=!1,Y(p),!D)if(Z(M)!==null)D=!0,b||(b=!0,J1());else{var c=Z(w);c!==null&&R(B,c.startTime-p)}}function W(){return V?!0:$N.unstable_now()-a<m?!1:!0}function R(p,c){E=v(function(){p($N.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),$N.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var O=performance;$N.unstable_now=function(){return O.now()}}else{var T=Date,A=T.now();$N.unstable_now=function(){return T.now()-A}}var M=[],w=[],P=1,y=null,S=3,f=!1,D=!1,N=!1,V=!1,v=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null,b=!1,E=-1,m=5,a=-1;if(typeof u==="function")var J1=function(){u(Q)};else if(typeof MessageChannel<"u"){var $1=new MessageChannel,x=$1.port2;$1.port1.onmessage=Q,J1=function(){x.postMessage(null)}}else J1=function(){v(Q,0)};$N.unstable_IdlePriority=5,$N.unstable_ImmediatePriority=1,$N.unstable_LowPriority=4,$N.unstable_NormalPriority=3,$N.unstable_Profiling=null,$N.unstable_UserBlockingPriority=2,$N.unstable_cancelCallback=function(p){p.callback=null},$N.unstable_forceFrameRate=function(p){0>p||125<p?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<p?Math.floor(1000/p):5},$N.unstable_getCurrentPriorityLevel=function(){return S},$N.unstable_next=function(p){switch(S){case 1:case 2:case 3:var c=3;break;default:c=S}var s=S;S=c;try{return p()}finally{S=s}},$N.unstable_requestPaint=function(){V=!0},$N.unstable_runWithPriority=function(p,c){switch(p){case 1:case 2:case 3:case 4:case 5:break;default:p=3}var s=S;S=p;try{return c()}finally{S=s}},$N.unstable_scheduleCallback=function(p,c,s){var i=$N.unstable_now();switch(typeof s==="object"&&s!==null?(s=s.delay,s=typeof s==="number"&&0<s?i+s:i):s=i,p){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=s+o,p={id:P++,callback:c,priorityLevel:p,startTime:s,expirationTime:o,sortIndex:-1},s>i?(p.sortIndex=s,U(w,p),Z(M)===null&&p===Z(w)&&(N?(h(E),E=-1):N=!0,R(B,s-i))):(p.sortIndex=o,U(M,p),D||f||(D=!0,b||(b=!0,J1()))),p},$N.unstable_shouldYield=W,$N.unstable_wrapCallback=function(p){var c=S;return function(){var s=S;S=c;try{return p.apply(this,arguments)}finally{S=s}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var n5=v4((QN,Fq)=>{(function(){function Q(j,Q1){Object.defineProperty(X.prototype,j,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Q1[0],Q1[1])}})}function U(j){if(j===null||typeof j!=="object")return null;return j=C1&&j[C1]||j["@@iterator"],typeof j==="function"?j:null}function Z(j,Q1){j=(j=j.constructor)&&(j.displayName||j.name)||"ReactClass";var O1=j+"."+Q1;B1[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.",Q1,j),B1[O1]=!0)}function X(j,Q1,O1){this.props=j,this.context=Q1,this.refs=x1,this.updater=O1||S1}function H(){}function Y(j,Q1,O1){this.props=j,this.context=Q1,this.refs=x1,this.updater=O1||S1}function B(){}function W(j){return""+j}function R(j){try{W(j);var Q1=!1}catch(j1){Q1=!0}if(Q1){Q1=console;var O1=Q1.error,w1=typeof Symbol==="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return O1.call(Q1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w1),W(j)}}function O(j){if(j==null)return null;if(typeof j==="function")return j.$$typeof===H0?null:j.displayName||j.name||null;if(typeof j==="string")return j;switch(j){case o:return"Fragment";case g:return"Profiler";case k:return"StrictMode";case M1:return"Suspense";case A1:return"SuspenseList";case T1:return"Activity"}if(typeof j==="object")switch(typeof j.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case i:return"Portal";case t:return j.displayName||"Context";case q1:return(j._context.displayName||"Context")+".Consumer";case H1:var Q1=j.render;return j=j.displayName,j||(j=Q1.displayName||Q1.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case L1:return Q1=j.displayName||null,Q1!==null?Q1:O(j.type)||"Memo";case U1:Q1=j._payload,j=j._init;try{return O(j(Q1))}catch(O1){}}return null}function T(j){if(j===o)return"<>";if(typeof j==="object"&&j!==null&&j.$$typeof===U1)return"<...>";try{var Q1=O(j);return Q1?"<"+Q1+">":"<...>"}catch(O1){return"<...>"}}function A(){var j=D1.A;return j===null?null:j.getOwner()}function M(){return Error("react-stack-top-frame")}function w(j){if(e0.call(j,"key")){var Q1=Object.getOwnPropertyDescriptor(j,"key").get;if(Q1&&Q1.isReactWarning)return!1}return j.key!==void 0}function P(j,Q1){function O1(){r2||(r2=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q1))}O1.isReactWarning=!0,Object.defineProperty(j,"key",{get:O1,configurable:!0})}function y(){var j=O(this.type);return y2[j]||(y2[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function S(j,Q1,O1,w1,j1,c1){var l1=O1.ref;return j={$$typeof:s,type:j,key:Q1,props:O1,_owner:w1},(l1!==void 0?l1:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:y}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j1}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:c1}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function f(j,Q1){return Q1=S(j.type,Q1,j.props,j._owner,j._debugStack,j._debugTask),j._store&&(Q1._store.validated=j._store.validated),Q1}function D(j){N(j)?j._store&&(j._store.validated=1):typeof j==="object"&&j!==null&&j.$$typeof===U1&&(j._payload.status==="fulfilled"?N(j._payload.value)&&j._payload.value._store&&(j._payload.value._store.validated=1):j._store&&(j._store.validated=1))}function N(j){return typeof j==="object"&&j!==null&&j.$$typeof===s}function V(j){var Q1={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(O1){return Q1[O1]})}function v(j,Q1){return typeof j==="object"&&j!==null&&j.key!=null?(R(j.key),V(""+j.key)):Q1.toString(36)}function h(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status==="string"?j.then(B,B):(j.status="pending",j.then(function(Q1){j.status==="pending"&&(j.status="fulfilled",j.value=Q1)},function(Q1){j.status==="pending"&&(j.status="rejected",j.reason=Q1)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function u(j,Q1,O1,w1,j1){var c1=typeof j;if(c1==="undefined"||c1==="boolean")j=null;var l1=!1;if(j===null)l1=!0;else switch(c1){case"bigint":case"string":case"number":l1=!0;break;case"object":switch(j.$$typeof){case s:case i:l1=!0;break;case U1:return l1=j._init,u(l1(j._payload),Q1,O1,w1,j1)}}if(l1){l1=j,j1=j1(l1);var Z0=w1===""?"."+v(l1,0):w1;return P1(j1)?(O1="",Z0!=null&&(O1=Z0.replace(I2,"$&/")+"/"),u(j1,Q1,O1,"",function(Z2){return Z2})):j1!=null&&(N(j1)&&(j1.key!=null&&(l1&&l1.key===j1.key||R(j1.key)),O1=f(j1,O1+(j1.key==null||l1&&l1.key===j1.key?"":(""+j1.key).replace(I2,"$&/")+"/")+Z0),w1!==""&&l1!=null&&N(l1)&&l1.key==null&&l1._store&&!l1._store.validated&&(O1._store.validated=2),j1=O1),Q1.push(j1)),1}if(l1=0,Z0=w1===""?".":w1+":",P1(j))for(var v1=0;v1<j.length;v1++)w1=j[v1],c1=Z0+v(w1,v1),l1+=u(w1,Q1,O1,c1,j1);else if(v1=U(j),typeof v1==="function")for(v1===j.entries&&(O2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),O2=!0),j=v1.call(j),v1=0;!(w1=j.next()).done;)w1=w1.value,c1=Z0+v(w1,v1++),l1+=u(w1,Q1,O1,c1,j1);else if(c1==="object"){if(typeof j.then==="function")return u(h(j),Q1,O1,w1,j1);throw Q1=String(j),Error("Objects are not valid as a React child (found: "+(Q1==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Q1)+"). If you meant to render a collection of children, use an array instead.")}return l1}function b(j,Q1,O1){if(j==null)return j;var w1=[],j1=0;return u(j,w1,"","",function(c1){return Q1.call(O1,c1,j1++)}),w1}function E(j){if(j._status===-1){var Q1=j._ioInfo;Q1!=null&&(Q1.start=Q1.end=performance.now()),Q1=j._result;var O1=Q1();if(O1.then(function(j1){if(j._status===0||j._status===-1){j._status=1,j._result=j1;var c1=j._ioInfo;c1!=null&&(c1.end=performance.now()),O1.status===void 0&&(O1.status="fulfilled",O1.value=j1)}},function(j1){if(j._status===0||j._status===-1){j._status=2,j._result=j1;var c1=j._ioInfo;c1!=null&&(c1.end=performance.now()),O1.status===void 0&&(O1.status="rejected",O1.reason=j1)}}),Q1=j._ioInfo,Q1!=null){Q1.value=O1;var w1=O1.displayName;typeof w1==="string"&&(Q1.name=w1)}j._status===-1&&(j._status=0,j._result=O1)}if(j._status===1)return Q1=j._result,Q1===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
+
|
|
3
|
+
Your code should look like:
|
|
4
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
+
|
|
6
|
+
Did you accidentally put curly braces around the import?`,Q1),"default"in Q1||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
+
|
|
8
|
+
Your code should look like:
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Q1),Q1.default;throw j._result}function m(){var j=D1.H;return j===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
+
2. You might be breaking the Rules of Hooks
|
|
12
|
+
3. You might have more than one copy of React in the same app
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),j}function a(){D1.asyncTransitions--}function J1(j){if(h5===null)try{var Q1=("require"+Math.random()).slice(0,7);h5=(Fq&&Fq[Q1]).call(Fq,"timers").setImmediate}catch(O1){h5=function(w1){N3===!1&&(N3=!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 j1=new MessageChannel;j1.port1.onmessage=w1,j1.port2.postMessage(void 0)}}return h5(j)}function $1(j){return 1<j.length&&typeof AggregateError==="function"?AggregateError(j):j[0]}function x(j,Q1){Q1!==m4-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. "),m4=Q1}function p(j,Q1,O1){var w1=D1.actQueue;if(w1!==null)if(w1.length!==0)try{c(w1),J1(function(){return p(j,Q1,O1)});return}catch(j1){D1.thrownErrors.push(j1)}else D1.actQueue=null;0<D1.thrownErrors.length?(w1=$1(D1.thrownErrors),D1.thrownErrors.length=0,O1(w1)):Q1(j)}function c(j){if(!p4){p4=!0;var Q1=0;try{for(;Q1<j.length;Q1++){var O1=j[Q1];do{D1.didUsePromise=!1;var w1=O1(!1);if(w1!==null){if(D1.didUsePromise){j[Q1]=O1,j.splice(0,Q1);return}O1=w1}else break}while(1)}j.length=0}catch(j1){j.splice(0,Q1+1),D1.thrownErrors.push(j1)}finally{p4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),t=Symbol.for("react.context"),H1=Symbol.for("react.forward_ref"),M1=Symbol.for("react.suspense"),A1=Symbol.for("react.suspense_list"),L1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),T1=Symbol.for("react.activity"),C1=Symbol.iterator,B1={},S1={isMounted:function(){return!1},enqueueForceUpdate:function(j){Z(j,"forceUpdate")},enqueueReplaceState:function(j){Z(j,"replaceState")},enqueueSetState:function(j){Z(j,"setState")}},k1=Object.assign,x1={};Object.freeze(x1),X.prototype.isReactComponent={},X.prototype.setState=function(j,Q1){if(typeof j!=="object"&&typeof j!=="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Q1,"setState")},X.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};var W1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Q4 in W1)W1.hasOwnProperty(Q4)&&Q(Q4,W1[Q4]);H.prototype=X.prototype,W1=Y.prototype=new H,W1.constructor=Y,k1(W1,X.prototype),W1.isPureReactComponent=!0;var P1=Array.isArray,H0=Symbol.for("react.client.reference"),D1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},e0=Object.prototype.hasOwnProperty,n1=console.createTask?console.createTask:function(){return null};W1={react_stack_bottom_frame:function(j){return j()}};var r2,R2,y2={},k2=W1.react_stack_bottom_frame.bind(W1,M)(),v2=n1(T(M)),O2=!1,I2=/\/+/g,w2=typeof reportError==="function"?reportError:function(j){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Q1=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j==="object"&&j!==null&&typeof j.message==="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Q1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",j);return}console.error(j)},N3=!1,h5=null,m4=0,g4=!1,p4=!1,V6=typeof queueMicrotask==="function"?function(j){queueMicrotask(function(){return queueMicrotask(j)})}:J1;W1=Object.freeze({__proto__:null,c:function(j){return m().useMemoCache(j)}});var Q4={map:b,forEach:function(j,Q1,O1){b(j,function(){Q1.apply(this,arguments)},O1)},count:function(j){var Q1=0;return b(j,function(){Q1++}),Q1},toArray:function(j){return b(j,function(Q1){return Q1})||[]},only:function(j){if(!N(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};QN.Activity=T1,QN.Children=Q4,QN.Component=X,QN.Fragment=o,QN.Profiler=g,QN.PureComponent=Y,QN.StrictMode=k,QN.Suspense=M1,QN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D1,QN.__COMPILER_RUNTIME=W1,QN.act=function(j){var Q1=D1.actQueue,O1=m4;m4++;var w1=D1.actQueue=Q1!==null?Q1:[],j1=!1;try{var c1=j()}catch(v1){D1.thrownErrors.push(v1)}if(0<D1.thrownErrors.length)throw x(Q1,O1),j=$1(D1.thrownErrors),D1.thrownErrors.length=0,j;if(c1!==null&&typeof c1==="object"&&typeof c1.then==="function"){var l1=c1;return V6(function(){j1||g4||(g4=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(v1,Z2){j1=!0,l1.then(function(D2){if(x(Q1,O1),O1===0){try{c(w1),J1(function(){return p(D2,v1,Z2)})}catch(y6){D1.thrownErrors.push(y6)}if(0<D1.thrownErrors.length){var q4=$1(D1.thrownErrors);D1.thrownErrors.length=0,Z2(q4)}}else v1(D2)},function(D2){x(Q1,O1),0<D1.thrownErrors.length?(D2=$1(D1.thrownErrors),D1.thrownErrors.length=0,Z2(D2)):Z2(D2)})}}}var Z0=c1;if(x(Q1,O1),O1===0&&(c(w1),w1.length!==0&&V6(function(){j1||g4||(g4=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),D1.actQueue=null),0<D1.thrownErrors.length)throw j=$1(D1.thrownErrors),D1.thrownErrors.length=0,j;return{then:function(v1,Z2){j1=!0,O1===0?(D1.actQueue=w1,J1(function(){return p(Z0,v1,Z2)})):v1(Z0)}}},QN.cache=function(j){return function(){return j.apply(null,arguments)}},QN.cacheSignal=function(){return null},QN.captureOwnerStack=function(){var j=D1.getCurrentStack;return j===null?null:j()},QN.cloneElement=function(j,Q1,O1){if(j===null||j===void 0)throw Error("The argument must be a React element, but you passed "+j+".");var w1=k1({},j.props),j1=j.key,c1=j._owner;if(Q1!=null){var l1;_:{if(e0.call(Q1,"ref")&&(l1=Object.getOwnPropertyDescriptor(Q1,"ref").get)&&l1.isReactWarning){l1=!1;break _}l1=Q1.ref!==void 0}l1&&(c1=A()),w(Q1)&&(R(Q1.key),j1=""+Q1.key);for(Z0 in Q1)!e0.call(Q1,Z0)||Z0==="key"||Z0==="__self"||Z0==="__source"||Z0==="ref"&&Q1.ref===void 0||(w1[Z0]=Q1[Z0])}var Z0=arguments.length-2;if(Z0===1)w1.children=O1;else if(1<Z0){l1=Array(Z0);for(var v1=0;v1<Z0;v1++)l1[v1]=arguments[v1+2];w1.children=l1}w1=S(j.type,j1,w1,c1,j._debugStack,j._debugTask);for(j1=2;j1<arguments.length;j1++)D(arguments[j1]);return w1},QN.createContext=function(j){return j={$$typeof:t,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:q1,_context:j},j._currentRenderer=null,j._currentRenderer2=null,j},QN.createElement=function(j,Q1,O1){for(var w1=2;w1<arguments.length;w1++)D(arguments[w1]);w1={};var j1=null;if(Q1!=null)for(v1 in R2||!("__self"in Q1)||"key"in Q1||(R2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),w(Q1)&&(R(Q1.key),j1=""+Q1.key),Q1)e0.call(Q1,v1)&&v1!=="key"&&v1!=="__self"&&v1!=="__source"&&(w1[v1]=Q1[v1]);var c1=arguments.length-2;if(c1===1)w1.children=O1;else if(1<c1){for(var l1=Array(c1),Z0=0;Z0<c1;Z0++)l1[Z0]=arguments[Z0+2];Object.freeze&&Object.freeze(l1),w1.children=l1}if(j&&j.defaultProps)for(v1 in c1=j.defaultProps,c1)w1[v1]===void 0&&(w1[v1]=c1[v1]);j1&&P(w1,typeof j==="function"?j.displayName||j.name||"Unknown":j);var v1=1e4>D1.recentlyCreatedOwnerStacks++;return S(j,j1,w1,A(),v1?Error("react-stack-top-frame"):k2,v1?n1(T(j)):v2)},QN.createRef=function(){var j={current:null};return Object.seal(j),j},QN.forwardRef=function(j){j!=null&&j.$$typeof===L1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof j!=="function"?console.error("forwardRef requires a render function but was given %s.",j===null?"null":typeof j):j.length!==0&&j.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",j.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),j!=null&&j.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Q1={$$typeof:H1,render:j},O1;return Object.defineProperty(Q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return O1},set:function(w1){O1=w1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:w1}),j.displayName=w1)}}),Q1},QN.isValidElement=N,QN.lazy=function(j){j={_status:-1,_result:j};var Q1={$$typeof:U1,_payload:j,_init:E},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 j._ioInfo=O1,Q1._debugInfo=[{awaited:O1}],Q1},QN.memo=function(j,Q1){j==null&&console.error("memo: The first argument must be a component. Instead received: %s",j===null?"null":typeof j),Q1={$$typeof:L1,type:j,compare:Q1===void 0?null:Q1};var O1;return Object.defineProperty(Q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return O1},set:function(w1){O1=w1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:w1}),j.displayName=w1)}}),Q1},QN.startTransition=function(j){var Q1=D1.T,O1={};O1._updatedFibers=new Set,D1.T=O1;try{var w1=j(),j1=D1.S;j1!==null&&j1(O1,w1),typeof w1==="object"&&w1!==null&&typeof w1.then==="function"&&(D1.asyncTransitions++,w1.then(a,a),w1.then(B,w2))}catch(c1){w2(c1)}finally{Q1===null&&O1._updatedFibers&&(j=O1._updatedFibers.size,O1._updatedFibers.clear(),10<j&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),Q1!==null&&O1.types!==null&&(Q1.types!==null&&Q1.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."),Q1.types=O1.types),D1.T=Q1}},QN.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},QN.use=function(j){return m().use(j)},QN.useActionState=function(j,Q1,O1){return m().useActionState(j,Q1,O1)},QN.useCallback=function(j,Q1){return m().useCallback(j,Q1)},QN.useContext=function(j){var Q1=m();return j.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),Q1.useContext(j)},QN.useDebugValue=function(j,Q1){return m().useDebugValue(j,Q1)},QN.useDeferredValue=function(j,Q1){return m().useDeferredValue(j,Q1)},QN.useEffect=function(j,Q1){return j==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(j,Q1)},QN.useEffectEvent=function(j){return m().useEffectEvent(j)},QN.useId=function(){return m().useId()},QN.useImperativeHandle=function(j,Q1,O1){return m().useImperativeHandle(j,Q1,O1)},QN.useInsertionEffect=function(j,Q1){return j==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(j,Q1)},QN.useLayoutEffect=function(j,Q1){return j==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(j,Q1)},QN.useMemo=function(j,Q1){return m().useMemo(j,Q1)},QN.useOptimistic=function(j,Q1){return m().useOptimistic(j,Q1)},QN.useReducer=function(j,Q1,O1){return m().useReducer(j,Q1,O1)},QN.useRef=function(j){return m().useRef(j)},QN.useState=function(j){return m().useState(j)},QN.useSyncExternalStore=function(j,Q1,O1){return m().useSyncExternalStore(j,Q1,O1)},QN.useTransition=function(){return m().useTransition()},QN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var CA=v4((qN)=>{var xK=b0(n5());(function(){function Q(){}function U(T){return""+T}function Z(T,A,M){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(w);var P=!1}catch(y){P=!0}return P&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),U(w)),{$$typeof:R,key:w==null?null:""+w,children:T,containerInfo:A,implementation:M}}function X(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 B(){var T=O.H;return T===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
|
+
2. You might be breaking the Rules of Hooks
|
|
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 W={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},R=Symbol.for("react.portal"),O=xK.__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"),qN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,qN.createPortal=function(T,A){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(T,A,null,M)},qN.flushSync=function(T){var A=O.T,M=W.p;try{if(O.T=null,W.p=2,T)return T()}finally{O.T=A,W.p=M,W.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.")}},qN.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,W.d.C(T,A))},qN.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"&&W.d.D(T)},qN.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 M=A.as,w=X(M,A.crossOrigin),P=typeof A.integrity==="string"?A.integrity:void 0,y=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;M==="style"?W.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:w,integrity:P,fetchPriority:y}):M==="script"&&W.d.X(T,{crossOrigin:w,integrity:P,fetchPriority:y,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},qN.preinitModule=function(T,A){var M="";if(typeof T==="string"&&T||(M+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?M+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(M+=" The `as` option encountered was "+Y(A.as)+"."),M)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",M);else switch(M=A&&typeof A.as==="string"?A.as:"script",M){case"script":break;default:M=Y(M),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)',M,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")M=X(A.as,A.crossOrigin),W.d.M(T,{crossOrigin:M,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&W.d.M(T)},qN.preload=function(T,A){var M="";if(typeof T==="string"&&T||(M+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?M+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(M+=" The `as` option encountered was "+H(A.as)+"."),M&&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',M),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){M=A.as;var w=X(M,A.crossOrigin);W.d.L(T,M,{crossOrigin:w,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},qN.preloadModule=function(T,A){var M="";typeof T==="string"&&T||(M+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?M+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(M+=" The `as` option encountered was "+H(A.as)+"."),M&&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',M),typeof T==="string"&&(A?(M=X(A.as,A.crossOrigin),W.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:M,integrity:typeof A.integrity==="string"?A.integrity:void 0})):W.d.m(T))},qN.requestFormReset=function(T){W.d.r(T)},qN.unstable_batchedUpdates=function(T,A){return T(A)},qN.useFormState=function(T,A,M){return B().useFormState(T,A,M)},qN.useFormStatus=function(){return B().useHostTransitionStatus()},qN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mK=v4((ik,SA)=>{var UN=b0(CA());SA.exports=UN});var jA=v4((GN)=>{var X0=b0(fA()),a7=b0(n5()),gK=b0(mK());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],K=_2(_)?_.slice():_0({},_);return K[G]=U(_[G],J,$+1,q),K}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X(_,J,$,0)}}function X(_,J,$,q){var G=J[q],K=_2(_)?_.slice():_0({},_);return q+1===J.length?(K[$[q]]=K[G],_2(K)?K.splice(G,1):delete K[G]):K[G]=X(_[G],J,$,q+1),K}function H(_,J,$){var q=J[$],G=_2(_)?_.slice():_0({},_);if($+1===J.length)return _2(G)?G.splice(q,1):delete G[q],G;return G[q]=H(_[q],J,$+1),G}function Y(){return!1}function B(){return null}function W(){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 R(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function O(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function M(_,J,$,q){return new hO(_,J,$,q)}function w(_,J){_.context===t3&&(UZ(_.current,2,J,_,null,null),U7())}function P(_,J){if(P5!==null){var $=J.staleFamilies;J=J.updatedFamilies,r9(),yH(_.current,J,$),U7()}}function y(_){P5=_}function S(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function f(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function D(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function N(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function V(_){if(f(_)!==_)throw Error("Unable to find node on an unmounted component.")}function v(_){var J=_.alternate;if(!J){if(J=f(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var G=$.return;if(G===null)break;var K=G.alternate;if(K===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===K.child){for(K=G.child;K;){if(K===$)return V(G),_;if(K===q)return V(G),J;K=K.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=K;else{for(var z=!1,L=G.child;L;){if(L===$){z=!0,$=G,q=K;break}if(L===q){z=!0,q=G,$=K;break}L=L.sibling}if(!z){for(L=K.child;L;){if(L===$){z=!0,$=K,q=G;break}if(L===q){z=!0,q=K,$=G;break}L=L.sibling}if(!z)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if($.alternate!==q)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function u(_){if(_===null||typeof _!=="object")return null;return _=hB&&_[hB]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Uw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case Y7:return"Fragment";case HZ:return"Profiler";case QQ:return"StrictMode";case zZ:return"Suspense";case BZ:return"SuspenseList";case WZ: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 H7:return"Portal";case I4:return _.displayName||"Context";case YZ:return(_._context.displayName||"Context")+".Consumer";case Q_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case qQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case H5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function E(_){return typeof _.tag==="number"?m(_):typeof _.name==="string"?_.name:null}function m(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return b(J);case 8:return J===QQ?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;break;case 29:if(J=_._debugInfo,J!=null){for(var $=J.length-1;0<=$;$--)if(typeof J[$].name==="string")return J[$].name}if(_.return!==null)return m(_.return)}return null}function a(_){return{current:_}}function J1(_,J){0>o4?console.error("Unexpected pop."):(J!==AZ[o4]&&console.error("Unexpected Fiber popped."),_.current=LZ[o4],LZ[o4]=null,AZ[o4]=null,o4--)}function $1(_,J,$){o4++,LZ[o4]=_.current,AZ[o4]=$,_.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 p(_,J){$1(l3,J,_),$1(q_,_,_),$1(c3,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?KB(J):Y3:Y3;break;default:if($=J.tagName,J=J.namespaceURI)J=KB(J),J=FB(J,$);else switch($){case"svg":J=i7;break;case"math":J=$q;break;default:J=Y3}}$=$.toLowerCase(),$=I9(null,$),$={context:J,ancestorInfo:$},J1(c3,_),$1(c3,$,_)}function c(_){J1(c3,_),J1(q_,_),J1(l3,_)}function s(){return x(c3.current)}function i(_){_.memoizedState!==null&&$1(UQ,_,_);var J=x(c3.current),$=_.type,q=FB(J.context,$);$=I9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&($1(q_,_,_),$1(c3,q,_))}function o(_){q_.current===_&&(J1(c3,_),J1(q_,_)),UQ.current===_&&(J1(UQ,_),s_._currentValue=L8)}function k(){}function g(){if(U_===0){xB=console.log,mB=console.info,gB=console.warn,pB=console.error,cB=console.group,lB=console.groupCollapsed,dB=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}U_++}function q1(){if(U_--,U_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_0({},_,{value:xB}),info:_0({},_,{value:mB}),warn:_0({},_,{value:gB}),error:_0({},_,{value:pB}),group:_0({},_,{value:cB}),groupCollapsed:_0({},_,{value:lB}),groupEnd:_0({},_,{value:dB})})}0>U_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function t(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
|
|
18
|
+
`)&&(_=_.slice(29)),J=_.indexOf(`
|
|
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(MZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);MZ=J&&J[1]||"",iB=-1<$.stack.indexOf(`
|
|
21
|
+
at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
+
`+MZ+_+iB}function M1(_,J){if(!_||TZ)return"";var $=RZ.get(_);if($!==void 0)return $;TZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=K1.H,K1.H=null,g();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(I1){var G1=I1}Reflect.construct(_,[],d)}else{try{d.call()}catch(I1){G1=I1}_.call(d.prototype)}}else{try{throw Error()}catch(I1){G1=I1}(d=_())&&typeof d.catch==="function"&&d.catch(function(){})}}catch(I1){if(I1&&G1&&typeof I1.stack==="string")return[I1.stack,G1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var K=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");K&&K.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),L=z[0],I=z[1];if(L&&I){var C=L.split(`
|
|
23
|
+
`),e=I.split(`
|
|
24
|
+
`);for(z=K=0;K<C.length&&!C[K].includes("DetermineComponentFrameRoot");)K++;for(;z<e.length&&!e[z].includes("DetermineComponentFrameRoot");)z++;if(K===C.length||z===e.length)for(K=C.length-1,z=e.length-1;1<=K&&0<=z&&C[K]!==e[z];)z--;for(;1<=K&&0<=z;K--,z--)if(C[K]!==e[z]){if(K!==1||z!==1)do if(K--,z--,0>z||C[K]!==e[z]){var _1=`
|
|
25
|
+
`+C[K].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&RZ.set(_,_1),_1}while(1<=K&&0<=z);break}}}finally{TZ=!1,K1.H=q,q1(),Error.prepareStackTrace=$}return C=(C=_?_.displayName||_.name:"")?H1(C):"",typeof _==="function"&&RZ.set(_,C),C}function A1(_,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 M1(_.type,!1);case 11:return M1(_.type.render,!1);case 1:return M1(_.type,!0);case 31:return H1("Activity");default:return""}}function L1(_){try{var J="",$=null;do{J+=A1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var K=q[G];if(typeof K.name==="string"){var z=J;_:{var{name:L,env:I,debugLocation:C}=K;if(C!=null){var e=t(C),_1=e.lastIndexOf(`
|
|
26
|
+
`),d=_1===-1?e:e.slice(_1+1);if(d.indexOf(L)!==-1){var G1=`
|
|
27
|
+
`+d;break _}}G1=H1(L+(I?" ["+I+"]":""))}J=z+G1}}$=_,_=_.return}while(_);return J}catch(I1){return`
|
|
28
|
+
Error generating stack: `+I1.message+`
|
|
29
|
+
`+I1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?H1(_):""}function T1(){if(Y5===null)return null;var _=Y5._debugOwner;return _!=null?E(_):null}function C1(){if(Y5===null)return"";var _=Y5;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+=U1(_.type));break;case 11:_._debugOwner||J!==""||(J+=U1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=t(q);G!==""&&(J+=`
|
|
30
|
+
`+G)}}else if(_.debugStack!=null){var K=_.debugStack;(_=_.owner)&&K&&(J+=`
|
|
31
|
+
`+t(K))}else break;var z=J}catch(L){z=`
|
|
32
|
+
Error generating stack: `+L.message+`
|
|
33
|
+
`+L.stack}return z}function B1(_,J,$,q,G,K,z){var L=Y5;S1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,K,z)):J($,q,G,K,z)}finally{S1(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function S1(_){K1.getCurrentStack=_===null?null:C1,w4=!1,Y5=_}function k1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function x1(_){try{return W1(_),!1}catch(J){return!0}}function W1(_){return""+_}function P1(_,J){if(x1(_))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,k1(_)),W1(_)}function H0(_,J){if(x1(_))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,k1(_)),W1(_)}function D1(_){if(x1(_))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.",k1(_)),W1(_)}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{B7=J.inject(_),N2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function n1(_){if(typeof Yw==="function"&&zw(_),N2&&typeof N2.setStrictMode==="function")try{N2.setStrictMode(B7,_)}catch(J){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",J))}}function r2(_){return _>>>=0,_===0?32:31-(Bw(_)/Ww|0)|0}function R2(_){var J=_&42;if(J!==0)return J;switch(_&-_){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),_}}function y2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,K=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var L=q&134217727;return L!==0?(q=L&~K,q!==0?G=R2(q):(z&=L,z!==0?G=R2(z):$||($=L&~_,$!==0&&(G=R2($))))):(L=q&~K,L!==0?G=R2(L):z!==0?G=R2(z):$||($=q&~_,$!==0&&(G=R2($)))),G===0?0:J!==0&&J!==G&&(J&K)===0&&(K=G&-G,$=J&-J,K>=$||K===32&&($&4194048)!==0)?J:G}function k2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function v2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return J+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function O2(){var _=KQ;return KQ<<=1,(KQ&62914560)===0&&(KQ=4194304),_}function I2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function w2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function N3(_,J,$,q,G,K){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:L,expirationTimes:I,hiddenUpdates:C}=_;for($=z&~$;0<$;){var e=31-E2($),_1=1<<e;L[e]=0,I[e]=-1;var d=C[e];if(d!==null)for(C[e]=null,e=0;e<d.length;e++){var G1=d[e];G1!==null&&(G1.lane&=-536870913)}$&=~_1}q!==0&&h5(_,q,0),K!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=K&~(z&~J))}function h5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-E2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function m4(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-E2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function g4(_,J){var $=J&-J;return $=($&42)!==0?1:p4($),($&(_.suspendedLanes|J))!==0?0:$}function p4(_){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 V6(_,J,$){if(N4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-E2($),G=1<<q;_[q].add(J),$&=~G}}function Q4(_,J){if(N4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-E2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(K){var z=K.alternate;z!==null&&q.has(z)||q.add(K)}),G.clear()),J&=~_}}function j(_){return _&=-_,z5!==0&&z5<_?l5!==0&&l5<_?(_&134217727)!==0?f4:FQ:l5:z5}function Q1(){var _=W0.p;if(_!==0)return _;return _=window.event,_===void 0?f4:yB(_.type)}function O1(_,J){var $=W0.p;try{return W0.p=_,J()}finally{W0.p=$}}function w1(_){delete _[A2],delete _[h2],delete _[NZ],delete _[Lw],delete _[Aw]}function j1(_){var J=_[A2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[i3]||$[A2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=AB(_);_!==null;){if($=_[A2])return $;_=AB(_)}return J}_=$,$=_.parentNode}return null}function c1(_){if(_=_[A2]||_[i3]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function l1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Z0(_){var J=_[rB];return J||(J=_[rB]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function v1(_){_[G_]=!0}function Z2(_,J){D2(_,J),D2(_+"Capture",J)}function D2(_,J){a6[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),a6[_]=J;var $=_.toLowerCase();fZ[$]=_,_==="onDoubleClick"&&(fZ.ondblclick=_);for(_=0;_<J.length;_++)aB.add(J[_])}function q4(_,J){Mw[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 y6(_){if(c5.call(tB,_))return!0;if(c5.call(sB,_))return!1;if(Tw.test(_))return tB[_]=!0;return sB[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function hJ(_,J,$){if(y6(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 P1($,J),_===""+$?$:_}}function l8(_,J,$){if(y6(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}}P1($,J),_.setAttribute(J,""+$)}}function d8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}P1($,J),_.setAttribute(J,""+$)}}function x5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}P1(q,$),_.setAttributeNS(J,$,""+q)}}function a2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return D1(_),_;default:return""}}function xJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function XU(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:G,set:K}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){D1(z),$=""+z,K.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){D1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function W9(_){if(!_._valueTracker){var J=xJ(_)?"checked":"value";_._valueTracker=XU(_,J,""+_[J])}}function mJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=xJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function i8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function s2(_){return _.replace(Rw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function gJ(_,J){J.checked===void 0||J.defaultChecked===void 0||oB||(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",T1()||"A component",J.type),oB=!0),J.value===void 0||J.defaultValue===void 0||nB||(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",T1()||"A component",J.type),nB=!0)}function r8(_,J,$,q,G,K,z,L){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(P1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+a2(J)}else _.value!==""+a2(J)&&(_.value=""+a2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?a8(_,z,a2(J)):$!=null?a8(_,z,a2($)):q!=null&&_.removeAttribute("value"),G==null&&K!=null&&(_.defaultChecked=!!K),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),L!=null&&typeof L!=="function"&&typeof L!=="symbol"&&typeof L!=="boolean"?(P1(L,"name"),_.name=""+a2(L)):_.removeAttribute("name")}function L9(_,J,$,q,G,K,z,L){if(K!=null&&typeof K!=="function"&&typeof K!=="symbol"&&typeof K!=="boolean"&&(P1(K,"type"),_.type=K),J!=null||$!=null){if(!(K!=="submit"&&K!=="reset"||J!==void 0&&J!==null)){W9(_);return}$=$!=null?""+a2($):"",J=J!=null?""+a2(J):$,L||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=L?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(P1(z,"name"),_.name=z),W9(_)}function a8(_,J,$){J==="number"&&i8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function pJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?a7.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||_W||(_W=!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||JW||(JW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||eB||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),eB=!0)}function cJ(){var _=T1();return _?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+_+"`.":""}function f3(_,J,$,q){if(_=_.options,J){J={};for(var G=0;G<$.length;G++)J["$"+$[G]]=!0;for($=0;$<_.length;$++)G=J.hasOwnProperty("$"+_[$].value),_[$].selected!==G&&(_[$].selected=G),G&&q&&(_[$].defaultSelected=!0)}else{$=""+a2($),J=null;for(G=0;G<_.length;G++){if(_[G].value===$){_[G].selected=!0,q&&(_[G].defaultSelected=!0);return}J!==null||_[G].disabled||(J=_[G])}J!==null&&(J.selected=!0)}}function lJ(_,J){for(_=0;_<QW.length;_++){var $=QW[_];if(J[$]!=null){var q=_2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,cJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,cJ())}}J.value===void 0||J.defaultValue===void 0||$W||(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"),$W=!0)}function dJ(_,J){J.value===void 0||J.defaultValue===void 0||qW||(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",T1()||"A component"),qW=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function iJ(_,J,$){if(J!=null&&(J=""+a2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+a2($):""}function A9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=a2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),W9(_)}function rJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?rJ(_.children[0],J):_}function b2(_){return" "+" ".repeat(_)}function C3(_){return"+ "+" ".repeat(_)}function c4(_){return"- "+" ".repeat(_)}function aJ(_){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 k6(_,J){return UW.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function s8(_,J,$){var q=120-2*$;if(J===null)return C3($)+k6(_,q)+`
|
|
36
|
+
`;if(typeof J==="string"){for(var G=0;G<J.length&&G<_.length&&J.charCodeAt(G)===_.charCodeAt(G);G++);return G>q-8&&10<G&&(_="..."+_.slice(G-8),J="..."+J.slice(G-8)),C3($)+k6(_,q)+`
|
|
37
|
+
`+c4($)+k6(J,q)+`
|
|
38
|
+
`}return b2($)+k6(_,q)+`
|
|
39
|
+
`}function M9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function S3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(_2(_))return"[...]";if(_.$$typeof===O4)return(J=b(_.type))?"<"+J+">":"<...>";var $=M9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var G=JSON.stringify(q);if(G!=='"'+q+'"'&&(q=G),J-=q.length-2,G=S3(_[q],15>J?J:15),J-=G.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+G}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function j3(_,J){return typeof _!=="string"||UW.test(_)?"{"+S3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function T9(_,J,$){var q=120-$.length-_.length,G=[],K;for(K in J)if(J.hasOwnProperty(K)&&K!=="children"){var z=j3(J[K],120-$.length-K.length-1);q-=K.length+z.length+2,G.push(K+"="+z)}return G.length===0?$+"<"+_+`>
|
|
40
|
+
`:0<q?$+"<"+_+" "+G.join(" ")+`>
|
|
41
|
+
`:$+"<"+_+`
|
|
42
|
+
`+$+" "+G.join(`
|
|
43
|
+
`+$+" ")+`
|
|
44
|
+
`+$+`>
|
|
45
|
+
`}function HU(_,J,$){var q="",G=_0({},J),K;for(K in _)if(_.hasOwnProperty(K)){delete G[K];var z=120-2*$-K.length-2,L=S3(_[K],z);J.hasOwnProperty(K)?(z=S3(J[K],z),q+=C3($)+K+": "+L+`
|
|
46
|
+
`,q+=c4($)+K+": "+z+`
|
|
47
|
+
`):q+=C3($)+K+": "+L+`
|
|
48
|
+
`}for(var I in G)G.hasOwnProperty(I)&&(_=S3(G[I],120-2*$-I.length-2),q+=c4($)+I+": "+_+`
|
|
49
|
+
`);return q}function YU(_,J,$,q){var G="",K=new Map;for(C in $)$.hasOwnProperty(C)&&K.set(C.toLowerCase(),C);if(K.size===1&&K.has("children"))G+=T9(_,J,b2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var L=120-2*(q+1)-z.length-1,I=K.get(z.toLowerCase());if(I!==void 0){K.delete(z.toLowerCase());var C=J[z];I=$[I];var e=j3(C,L);L=j3(I,L),typeof C==="object"&&C!==null&&typeof I==="object"&&I!==null&&M9(C)==="Object"&&M9(I)==="Object"&&(2<Object.keys(C).length||2<Object.keys(I).length||-1<e.indexOf("...")||-1<L.indexOf("..."))?G+=b2(q+1)+z+`={{
|
|
50
|
+
`+HU(C,I,q+2)+b2(q+1)+`}}
|
|
51
|
+
`:(G+=C3(q+1)+z+"="+e+`
|
|
52
|
+
`,G+=c4(q+1)+z+"="+L+`
|
|
53
|
+
`)}else G+=b2(q+1)+z+"="+j3(J[z],L)+`
|
|
54
|
+
`}K.forEach(function(_1){if(_1!=="children"){var d=120-2*(q+1)-_1.length-1;G+=c4(q+1)+_1+"="+j3($[_1],d)+`
|
|
55
|
+
`}}),G=G===""?b2(q)+"<"+_+`>
|
|
56
|
+
`:b2(q)+"<"+_+`
|
|
57
|
+
`+G+b2(q)+`>
|
|
58
|
+
`}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(K="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")K=""+J;G+=s8(K,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+s8(""+J,null,q+1):G+s8(""+J,void 0,q+1);return G}function sJ(_,J){var $=aJ(_);if($===null){$="";for(_=_.child;_;)$+=sJ(_,J),_=_.sibling;return $}return b2(J)+"<"+$+`>
|
|
59
|
+
`}function R9(_,J){var $=rJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return b2(J)+`...
|
|
60
|
+
`+R9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var K=q[G].name;typeof K==="string"&&($+=b2(J)+"<"+K+`>
|
|
61
|
+
`,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=s8(G,_.serverProps,J),J++;else if(K=aJ(_.fiber),K!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-K.length-2,L="";for(C in G)if(G.hasOwnProperty(C)&&C!=="children"){var I=j3(G[C],15);if(z-=C.length+I.length+2,0>z){L+=" ...";break}L+=" "+C+"="+I}q=b2(q)+"<"+K+L+`>
|
|
62
|
+
`,J++}else _.serverProps===null?(q=T9(K,G,C3(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=YU(K,G,_.serverProps,J),J++);var C="";G=_.fiber.child;for(K=0;G&&K<_.children.length;)z=_.children[K],z.fiber===G?(C+=R9(z,J),K++):C+=sJ(G,J),G=G.sibling;G&&0<_.children.length&&(C+=b2(J)+`...
|
|
63
|
+
`),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)K=G[_],C=typeof K==="string"?C+(c4(J)+k6(K,120-2*J)+`
|
|
64
|
+
`):C+T9(K.type,K.props,c4(J));return $+q+C}function O9(_){try{return`
|
|
65
|
+
|
|
66
|
+
`+R9(_,0)}catch(J){return""}}function tJ(_,J,$){for(var q=J,G=null,K=0;q;)q===_&&(K=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:K},K++,q=q.return;return G!==null?O9(G).replaceAll(/^[+-]/gm,">"):""}function I9(_,J){var $=_0({},_||ZW),q={tag:J};if(GW.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Iw.indexOf(J)!==-1&&($.pTagInButtonScope=null),Ow.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 nJ(_,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 ww.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 oJ(_,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 eJ(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function w9(_,J){J=J||ZW;var $=J.current;if(J=($=nJ(_,$&&$.tag,J.implicitRootScope)?null:$)?null:oJ(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,XQ[J])return!1;XQ[J]=!0;var G=(J=Y5)?eJ(J.return,q):null,K=J!==null&&G!==null?tJ(G,J,null):"",z="<"+_+">";return $?($="",q==="table"&&_==="tr"&&($+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
+
This will cause a hydration error.%s`,z,q,$,K)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,z,q,K),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||B1(G,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,q,z)})),!1}function V3(_,J,$){if($||nJ("#text",J,!1))return!0;if($="#text|"+J,XQ[$])return!1;XQ[$]=!0;var q=($=Y5)?eJ($,J):null;return $=$!==null&&q!==null?tJ(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
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 v6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function zU(_){return _.replace(fw,function(J,$){return $.toUpperCase()})}function P9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?W7.hasOwnProperty(J)&&W7[J]||(W7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,zU(J.replace(Nw,"ms-")))):Pw.test(J)?W7.hasOwnProperty(J)&&W7[J]||(W7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!XW.test($)||SZ.hasOwnProperty($)&&SZ[$]||(SZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(XW,""))),typeof $==="number"&&(isNaN($)?HW||(HW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||YW||(YW=!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||zW.has(J)?J==="float"?_.cssFloat=$:(H0($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function GH(_,J,$){if(J!=null&&typeof J!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(J&&Object.freeze(J),_=_.style,$!=null){if(J){var q={};if($){for(var G in $)if($.hasOwnProperty(G)&&!J.hasOwnProperty(G))for(var K=CZ[G]||[G],z=0;z<K.length;z++)q[K[z]]=G}for(var L in J)if(J.hasOwnProperty(L)&&(!$||$[L]!==J[L]))for(G=CZ[L]||[L],K=0;K<G.length;K++)q[G[K]]=L;L={};for(var I in J)for(G=CZ[I]||[I],K=0;K<G.length;K++)L[G[K]]=I;I={};for(var C in q)if(G=q[C],(K=L[C])&&G!==K&&(z=G+","+K,!I[z])){I[z]=!0,z=console;var e=J[G];z.error.call(z,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",e==null||typeof e==="boolean"||e===""?"Removing":"Updating",G,K)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var d in J)C=J[d],J.hasOwnProperty(d)&&$[d]!==C&&P9(_,d,C)}else for(q in J)J.hasOwnProperty(q)&&P9(_,q,J[q])}function N9(_){if(_.indexOf("-")===-1)return!1;switch(_){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ZH(_){return Cw.get(_)||_}function RO(_,J){if(c5.call(A7,J)&&A7[J])return!0;if(jw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=BW.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),A7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),A7[J]=!0}if(Sw.test(J)){if(_=J.toLowerCase(),_=BW.hasOwnProperty(_)?_:null,_==null)return A7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),A7[J]=!0)}return!0}function OO(_,J){var $=[],q;for(q in J)RO(_,q)||$.push(q);J=$.map(function(G){return"`"+G+"`"}).join(", "),$.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_):1<$.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_)}function IO(_,J,$,q){if(c5.call(x2,J)&&x2[J])return!0;var G=J.toLowerCase();if(G==="onfocusin"||G==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),x2[J]=!0;if(typeof $==="function"&&(_==="form"&&J==="action"||_==="input"&&J==="formAction"||_==="button"&&J==="formAction"))return!0;if(q!=null){if(_=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(J))return!0;if(q=_.hasOwnProperty(G)?_[G]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),x2[J]=!0;if(LW.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),x2[J]=!0}else if(LW.test(J))return Vw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),x2[J]=!0;if(yw.test(J)||kw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),x2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),x2[J]=!0;if(G==="is"&&$!==null&&$!==void 0&&typeof $!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof $),x2[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),x2[J]=!0;if(YQ.hasOwnProperty(G)){if(G=YQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),x2[J]=!0}else if(J!==G)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",J,G),x2[J]=!0;switch(J){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof $){case"boolean":switch(J){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(G=J.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return $?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',$,J,J,$,J):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',$,J,J,$,J,J,J),x2[J]=!0}case"function":case"symbol":return x2[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,$),x2[J]=!0}}return!0}function wO(_,J,$){var q=[],G;for(G in J)IO(_,G,J[G],$)||q.push(G);J=q.map(function(K){return"`"+K+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_)}function f9(_){return vw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function l4(){}function BU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function KH(_){var J=c1(_);if(J&&(_=J.stateNode)){var $=_[h2]||null;_:switch(_=J.stateNode,J.type){case"input":if(r8(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;P1(J,"name"),$=$.querySelectorAll('input[name="'+s2(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[h2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");r8(q,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&mJ(q)}break _;case"textarea":iJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&f3(_,!!$.multiple,J,!1)}}}function FH(_,J,$){if(jZ)return _(J,$);jZ=!0;try{var q=_(J);return q}finally{if(jZ=!1,M7!==null||T7!==null){if(U7(),M7&&(J=M7,_=T7,T7=M7=null,KH(J),_))for(J=0;J<_.length;J++)KH(_[J])}}}function C9(_,J){var $=_.stateNode;if($===null)return null;var q=$[h2]||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 XH(){if(zQ)return zQ;var _,J=yZ,$=J.length,q,G="value"in r3?r3.value:r3.textContent,K=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[K-q];q++);return zQ=G.slice(_,1<q?1-q:void 0)}function _$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function J$(){return!0}function HH(){return!1}function t2(_){function J($,q,G,K,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=K,this.target=z,this.currentTarget=null;for(var L in _)_.hasOwnProperty(L)&&($=_[L],this[L]=$?$(K):K[L]);return this.isDefaultPrevented=(K.defaultPrevented!=null?K.defaultPrevented:K.returnValue===!1)?J$:HH,this.isPropagationStopped=HH,this}return _0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=J$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=J$)},persist:function(){},isPersistent:J$}),J}function PO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=iw[_])?!!J[_]:!1}function WU(){return PO}function YH(_,J){switch(_){case"keyup":return qP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==RW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function NO(_,J){switch(_){case"compositionend":return zH(J);case"keypress":if(J.which!==IW)return null;return PW=!0,wW;case"textInput":return _=J.data,_===wW&&PW?null:_;default:return null}}function fO(_,J){if(R7)return _==="compositionend"||!bZ&&YH(_,J)?(_=XH(),zQ=yZ=r3=null,R7=!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 OW&&J.locale!=="ko"?null:J.data;default:return null}}function BH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!GP[_.type]:J==="textarea"?!0:!1}function CO(_){if(!C4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function WH(_,J,$,q){M7?T7?T7.push(q):T7=[q]:M7=q,J=r$(J,"onChange"),0<J.length&&($=new BQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function SO(_){nz(_,0)}function $$(_){var J=l1(_);if(mJ(J))return _}function LH(_,J){if(_==="change")return J}function AH(){Y_&&(Y_.detachEvent("onpropertychange",MH),z_=Y_=null)}function MH(_){if(_.propertyName==="value"&&$$(z_)){var J=[];WH(J,z_,_,BU(_)),FH(SO,J)}}function jO(_,J,$){_==="focusin"?(AH(),Y_=J,z_=$,Y_.attachEvent("onpropertychange",MH)):_==="focusout"&&AH()}function VO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return $$(z_)}function yO(_,J){if(_==="click")return $$(J)}function kO(_,J){if(_==="input"||_==="change")return $$(J)}function vO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function S9(_,J){if(m2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!c5.call(J,G)||!m2(_[G],J[G]))return!1}return!0}function TH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function RH(_,J){var $=TH(_);_=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}$=TH($)}}function OH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?OH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function IH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=i8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=i8(_.document)}return J}function LU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function wH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;EZ||O7==null||O7!==i8(q)||(q=O7,("selectionStart"in q)&&LU(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}),B_&&S9(B_,q)||(B_=q,q=r$(uZ,"onSelect"),0<q.length&&(J=new BQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=O7)))}function D6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function b6(_){if(hZ[_])return hZ[_];if(!I7[_])return _;var J=I7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in fW)return hZ[_]=J[$];return _}function m5(_,J){yW.set(_,J),Z2(J,[_])}function DO(_){for(var J=LQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(_2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==LQ&&J!==cZ)return gZ;J=cZ}else return gZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==LQ&&J!==pZ)return gZ;J=pZ}}return J}function AU(_,J,$,q){for(var G in _)c5.call(_,G)&&G[0]!=="_"&&U4(G,_[G],J,$,q)}function U4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===O4){var K=b(J.type)||"…",z=J.key;J=J.props;var L=Object.keys(J),I=L.length;if(z==null&&I===0){J="<"+K+" />";break}if(3>q||I===1&&L[0]==="children"&&z==null){J="<"+K+" … />";break}$.push([G+" ".repeat(q)+_,"<"+K]),z!==null&&U4("key",z,$,q+1,G),_=!1;for(var C in J)C==="children"?J.children!=null&&(!_2(J.children)||0<J.children.length)&&(_=!0):c5.call(J,C)&&C[0]!=="_"&&U4(C,J[C],$,q+1,G);$.push(["",_?">…</"+K+">":"/>"]);return}if(K=Object.prototype.toString.call(J),K=K.slice(8,K.length-1),K==="Array"){if(C=DO(J),C===pZ||C===LQ){J=JSON.stringify(J);break}else if(C===cZ){$.push([G+" ".repeat(q)+_,""]);for(_=0;_<J.length;_++)K=J[_],U4(K[0],K[1],$,q+1,G);return}}if(K==="Promise"){if(J.status==="fulfilled"){if(K=$.length,U4(_,J.value,$,q,G),$.length>K){$=$[K],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(K=$.length,U4(_,J.reason,$,q,G),$.length>K)){$=$[K],$[1]="Rejected Promise<"+$[1]+">";return}$.push([" ".repeat(q)+_,"Promise"]);return}K==="Object"&&(C=Object.getPrototypeOf(J))&&typeof C.constructor==="function"&&(K=C.constructor.name),$.push([G+" ".repeat(q)+_,K==="Object"?3>q?"":"…":K]),3>q&&AU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===zP?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([G+" ".repeat(q)+_,J])}function PH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([AQ+" ".repeat(q)+z,"…"]),G=!1);for(var K in J)if(K in _){var z=_[K],L=J[K];if(z!==L){if(q===0&&K==="children")G=" ".repeat(q)+K,$.push([AQ+G,"…"],[MQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof L==="object"&&z!==null&&L!==null&&z.$$typeof===L.$$typeof)if(L.$$typeof===O4){if(z.type===L.type&&z.key===L.key){z=b(L.type)||"…",G=" ".repeat(q)+K,z="<"+z+" … />",$.push([AQ+G,z],[MQ+G,z]),G=!1;continue}}else{var I=Object.prototype.toString.call(z),C=Object.prototype.toString.call(L);if(I===C&&(C==="[object Object]"||C==="[object Array]")){I=[DW+" ".repeat(q)+K,C==="[object Array]"?"Array":""],$.push(I),C=$.length,PH(z,L,$,q+1)?C===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof L==="function"&&z.name===L.name&&z.length===L.length&&(I=Function.prototype.toString.call(z),C=Function.prototype.toString.call(L),I===C)){z=L.name===""?"() => {}":L.name+"() {}",$.push([DW+" ".repeat(q)+K,z+" Referentially unequal function closure. Consider memoization."]);continue}}U4(K,z,$,q,AQ),U4(K,L,$,q,MQ)}G=!1}}else $.push([MQ+" ".repeat(q)+K,"…"]),G=!1;return G}function q5(_){$0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function G4(_,J,$,q){f0&&(s3.start=J,s3.end=$,e4.color="warning",e4.tooltipText=q,e4.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,s3)):performance.measure(q,s3))}function Q$(_,J,$){G4(_,J,$,"Reconnect")}function q$(_,J,$,q,G){var K=m(_);if(K!==null&&f0){var{alternate:z,actualDuration:L}=_;if(z===null||z.child!==_.child)for(var I=_.child;I!==null;I=I.sibling)L-=I.actualDuration;q=0.5>L?q?"tertiary-light":"primary-light":10>L?q?"tertiary":"primary":100>L?q?"tertiary-dark":"primary-dark":"error";var C=_.memoizedProps;L=_._debugTask,C!==null&&z!==null&&z.memoizedProps!==C?(I=[BP],C=PH(z.memoizedProps,C,I,0),1<I.length&&(C&&!a3&&(z.lanes&G)===0&&100<_.actualDuration?(a3=!0,I[0]=WP,e4.color="warning",e4.tooltipText=bW):(e4.color=q,e4.tooltipText=K),e4.properties=I,s3.start=J,s3.end=$,L!=null?L.run(performance.measure.bind(performance,""+K,s3)):performance.measure(""+K,s3))):L!=null?L.run(console.timeStamp.bind(console,K,J,$,I5,void 0,q)):console.timeStamp(K,J,$,I5,void 0,q)}}function MU(_,J,$,q){if(f0){var G=m(_);if(G!==null){for(var K=null,z=[],L=0;L<q.length;L++){var I=q[L];K==null&&I.source!==null&&(K=I.source._debugTask),I=I.value,z.push(["Error",typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I)])}_.key!==null&&U4("key",_.key,z,0,""),_.memoizedProps!==null&&AU(_.memoizedProps,z,0,""),K==null&&(K=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:I5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},K?K.run(performance.measure.bind(performance,""+G,_)):performance.measure(""+G,_)}}}function Z4(_,J,$,q,G){if(G!==null){if(f0){var K=m(_);if(K!==null){q=[];for(var z=0;z<G.length;z++){var L=G[z].value;q.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_.key!==null&&U4("key",_.key,q,0,""),_.memoizedProps!==null&&AU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:I5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,""+K,J)):performance.measure(""+K,J)}}}else K=m(_),K!==null&&f0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,K,J,$,I5,void 0,G)):console.timeStamp(K,J,$,I5,void 0,G))}function bO(_,J,$,q){if(f0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,$0,J0,G)):console.timeStamp($,_,J,$0,J0,G)}}function NH(_,J,$,q){!f0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,$0,J0,$)):console.timeStamp("Prewarm",_,J,$0,J0,$))}function fH(_,J,$,q){!f0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,$0,J0,$)):console.timeStamp("Suspended",_,J,$0,J0,$))}function uO(_,J,$,q,G,K){if(f0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var L=q[z].value;$.push(["Recoverable Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:$0,trackGroup:J0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},K?K.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function TU(_,J,$,q){!f0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,$0,J0,"error")):console.timeStamp("Errored",_,J,$0,J0,"error"))}function EO(_,J,$,q){!f0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,$0,J0,"secondary-light")):console.timeStamp($,_,J,$0,J0,"secondary-light"))}function CH(_,J,$,q,G){if(f0&&!(J<=_)){for(var K=[],z=0;z<$.length;z++){var L=$[z].value;K.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"error",track:$0,trackGroup:J0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:K}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function j9(_,J,$){!f0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,$0,J0,"secondary-dark")):console.timeStamp("Animating",_,J,$0,J0,"secondary-dark"))}function U$(){for(var _=w7,J=lZ=w7=0;J<_;){var $=w5[J];w5[J++]=null;var q=w5[J];w5[J++]=null;var G=w5[J];w5[J++]=null;var K=w5[J];if(w5[J++]=null,q!==null&&G!==null){var z=q.pending;z===null?G.next=G:(G.next=z.next,z.next=G),q.pending=G}K!==0&&SH($,G,K)}}function G$(_,J,$,q){w5[w7++]=_,w5[w7++]=J,w5[w7++]=$,w5[w7++]=q,lZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function RU(_,J,$,q){return G$(_,J,$,q),Z$(_)}function P2(_,J){return G$(_,null,null,J),Z$(_)}function SH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,K=_.return;K!==null;)K.childLanes|=$,q=K.alternate,q!==null&&(q.childLanes|=$),K.tag===22&&(_=K.stateNode,_===null||_._visibility&W_||(G=!0)),_=K,K=K.return;return _.tag===3?(K=_.stateNode,G&&J!==null&&(G=31-E2($),_=K.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),K):null}function Z$(_){if(p_>VP)throw X8=p_=0,c_=wK=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.");X8>yP&&(X8=0,c_=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&&lz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&lz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function u6(_){if(P5===null)return _;var J=P5(_);return J===void 0?_:J.current}function OU(_){if(P5===null)return _;var J=P5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=u6(_.render),_.render!==J)?(J={$$typeof:Q_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function jH(_,J){if(P5===null)return!1;var $=_.elementType;J=J.type;var q=!1,G=typeof J==="object"&&J!==null?J.$$typeof:null;switch(_.tag){case 1:typeof J==="function"&&(q=!0);break;case 0:typeof J==="function"?q=!0:G===H5&&(q=!0);break;case 11:G===Q_?q=!0:G===H5&&(q=!0);break;case 14:case 15:G===qQ?q=!0:G===H5&&(q=!0);break;default:return!1}return q&&(_=P5($),_!==void 0&&_===P5(J))?!0:!1}function VH(_){P5!==null&&typeof WeakSet==="function"&&(P7===null&&(P7=new WeakSet),P7.add(_))}function yH(_,J,$){do{var q=_,G=q.alternate,K=q.child,z=q.sibling,L=q.tag;q=q.type;var I=null;switch(L){case 0:case 15:case 1:I=q;break;case 11:I=q.render}if(P5===null)throw Error("Expected resolveFamily to be set during hot reload.");var C=!1;if(q=!1,I!==null&&(I=P5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(L===1?q=!0:C=!0))),P7!==null&&(P7.has(_)||G!==null&&P7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||C)G=P2(_,2),G!==null&&u0(G,_,2);if(K===null||q||yH(K,J,$),z===null)break;_=z}while(1)}function hO(_,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,uW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function IU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function d4(_,J){var $=_.alternate;switch($===null?($=M(_.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=u6(_.type);break;case 1:$.type=u6(_.type);break;case 11:$.type=OU(_.type)}return $}function kH(_,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 wU(_,J,$,q,G,K){var z=0,L=_;if(typeof _==="function")IU(_)&&(z=1),L=u6(L);else if(typeof _==="string")z=s(),z=rI(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case WZ:return J=M(31,$,J,G),J.elementType=WZ,J.lanes=K,J;case Y7:return E6($.children,G,K,J);case QQ:z=8,G|=f2,G|=d5;break;case HZ:return _=$,q=G,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=M(12,_,J,q|a1),J.elementType=HZ,J.lanes=K,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case zZ:return J=M(13,$,J,G),J.elementType=zZ,J.lanes=K,J;case BZ:return J=M(19,$,J,G),J.elementType=BZ,J.lanes=K,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case I4:z=10;break _;case YZ:z=9;break _;case Q_:z=11,L=OU(L);break _;case qQ:z=14;break _;case H5:z=16,L=null;break _}if(L="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";_===null?$="null":_2(_)?$="array":_!==void 0&&_.$$typeof===O4?($="<"+(b(_.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?E(q):null)&&(L+=`
|
|
72
|
+
|
|
73
|
+
Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+L)),L=null}return J=M(z,$,J,G),J.elementType=_,J.type=L,J.lanes=K,J._debugOwner=q,J}function K$(_,J,$){return J=wU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function E6(_,J,$,q){return _=M(7,_,q,J),_.lanes=$,_}function PU(_,J,$){return _=M(6,_,null,J),_.lanes=$,_}function vH(_){var J=M(18,null,null,m1);return J.stateNode=_,J}function NU(_,J,$){return J=M(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function U5(_,J){if(typeof _==="object"&&_!==null){var $=dZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:L1(J)},dZ.set(_,J),J}return{value:_,source:J,stack:L1(J)}}function i4(_,J){y3(),N7[f7++]=L_,N7[f7++]=TQ,TQ=_,L_=J}function DH(_,J,$){y3(),N5[f5++]=J3,N5[f5++]=$3,N5[f5++]=t6,t6=_;var q=J3;_=$3;var G=32-E2(q)-1;q&=~(1<<G),$+=1;var K=32-E2(J)+G;if(30<K){var z=G-G%5;K=(q&(1<<z)-1).toString(32),q>>=z,G-=z,J3=1<<32-E2(J)+G|$<<G|q,$3=K+_}else J3=1<<K|$<<G|q,$3=_}function fU(_){y3(),_.return!==null&&(i4(_,1),DH(_,1,0))}function CU(_){for(;_===TQ;)TQ=N7[--f7],N7[f7]=null,L_=N7[--f7],N7[f7]=null;for(;_===t6;)t6=N5[--f5],N5[f5]=null,$3=N5[--f5],N5[f5]=null,J3=N5[--f5],N5[f5]=null}function bH(){return y3(),t6!==null?{id:J3,overflow:$3}:null}function uH(_,J){y3(),N5[f5++]=J3,N5[f5++]=$3,N5[f5++]=t6,J3=J.id,$3=J.overflow,t6=_}function y3(){q0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function h6(_,J){if(_.return===null){if(B5===null)B5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(B5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");B5.distanceFromLeaf>J&&(B5.distanceFromLeaf=J)}return B5}var $=h6(_.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 EH(){q0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function F$(_,J){S4||(_=h6(_,0),_.serverProps=null,J!==null&&(J=WB(J),_.serverTail.push(J)))}function k3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=B5;throw q!==null&&(B5=null,$=O9(q)),V9(U5(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
|
+
|
|
75
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
77
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
78
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
79
|
+
- Invalid HTML tag nesting.
|
|
80
|
+
|
|
81
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
|
+
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+$),_)),iZ}function hH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[A2]=_,J[h2]=q,rG($,q),$){case"dialog":U0("cancel",J),U0("close",J);break;case"iframe":case"object":case"embed":U0("load",J);break;case"video":case"audio":for($=0;$<l_.length;$++)U0(l_[$],J);break;case"source":U0("error",J);break;case"img":case"image":case"link":U0("error",J),U0("load",J);break;case"details":U0("toggle",J);break;case"input":q4("input",q),U0("invalid",J),gJ(J,q),L9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":pJ(J,q);break;case"select":q4("select",q),U0("invalid",J),lJ(J,q);break;case"textarea":q4("textarea",q),U0("invalid",J),dJ(J,q),A9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||JB(J.textContent,$)?(q.popover!=null&&(U0("beforetoggle",J),U0("toggle",J)),q.onScroll!=null&&U0("scroll",J),q.onScrollEnd!=null&&U0("scrollend",J),q.onClick!=null&&(J.onclick=l4),J=!0):J=!1,J||k3(_,!0)}function xH(_){for(M2=_.return;M2;)switch(M2.tag){case 5:case 31:case 13:C5=!1;return;case 27:case 3:C5=!0;return;default:M2=M2.return}}function t8(_){if(_!==M2)return!1;if(!q0)return xH(_),q0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||oG(_.type,_.memoizedProps);$=!$}if($&&C0){for($=C0;$;){var q=h6(_,0),G=WB($);q.serverTail.push(G),$=G.type==="Suspense"?$Z($):X5($.nextSibling)}k3(_)}if(xH(_),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.");C0=$Z(_)}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.");C0=$Z(_)}else J===27?(J=C0,p3(_.type)?(_=bK,bK=null,C0=_):C0=J):C0=M2?X5(_.stateNode.nextSibling):null;return!0}function x6(){C0=M2=null,S4=q0=!1}function SU(){var _=n3;return _!==null&&(l2===null?l2=_:l2.push.apply(l2,_),n3=null),_}function V9(_){n3===null?n3=[_]:n3.push(_)}function jU(){var _=B5;if(_!==null){B5=null;for(var J=O9(_);0<_.children.length;)_=_.children[0];B1(_.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
|
+
|
|
85
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
87
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
88
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
89
|
+
- Invalid HTML tag nesting.
|
|
90
|
+
|
|
91
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
|
+
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function X$(){C7=RQ=null,S7=!1}function v3(_,J,$){$1(rZ,J._currentValue,_),J._currentValue=$,$1(aZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==hW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=hW}function r4(_,J){_._currentValue=rZ.current;var $=aZ.current;J1(aZ,J),_._currentRenderer=$,J1(rZ,J)}function VU(_,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 yU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var K=G.dependencies;if(K!==null){var z=G.child;K=K.firstContext;_:for(;K!==null;){var L=K;K=G;for(var I=0;I<J.length;I++)if(L.context===J[I]){K.lanes|=$,L=K.alternate,L!==null&&(L.lanes|=$),VU(K.return,$,_),q||(z=null);break _}K=L.next}}else if(G.tag===18){if(z=G.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=$,K=z.alternate,K!==null&&(K.lanes|=$),VU(z,$,_),z=null}else z=G.child;if(z!==null)z.return=G;else for(z=G;z!==null;){if(z===_){z=null;break}if(G=z.sibling,G!==null){G.return=z.return,z=G;break}z=z.return}G=z}}function n8(_,J,$,q){_=null;for(var G=J,K=!1;G!==null;){if(!K){if((G.flags&524288)!==0)K=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var z=G.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var L=G.type;m2(G.pendingProps.value,z.value)||(_!==null?_.push(L):_=[L])}}else if(G===UQ.current){if(z=G.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(s_):_=[s_])}G=G.return}_!==null&&yU(J,_,$,q),J.flags|=262144}function H$(_){for(_=_.firstContext;_!==null;){if(!m2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function m6(_){RQ=_,C7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function j0(_){return S7&&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()."),mH(RQ,_)}function Y$(_,J){return RQ===null&&m6(_),mH(_,J)}function mH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},C7===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().");C7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else C7=C7.next=J;return $}function kU(){return{controller:new MP,data:new Map,refCount:0}}function g6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function y9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&TP(RP,function(){_.controller.abort()})}function K4(_,J,$){if((_&127)!==0)0>j4&&(j4=i0(),M_=OQ(J),sZ=J,$!=null&&(tZ=m($)),(F0&($2|A5))!==Y2&&(E0=!0,_6=A_),_=o9(),J=n9(),_!==j7||J!==T_?j7=-1.1:J!==null&&(_6=A_),o6=_,T_=J);else if((_&4194048)!==0&&0>S5&&(S5=i0(),R_=OQ(J),xW=J,$!=null&&(mW=m($)),0>U3)){if(_=o9(),J=n9(),_!==$6||J!==e6)$6=-1.1;J6=_,e6=J}}function xO(_){if(0>j4){j4=i0(),M_=_._debugTask!=null?_._debugTask:null,(F0&($2|A5))!==Y2&&(_6=A_);var J=o9(),$=n9();J!==j7||$!==T_?j7=-1.1:$!==null&&(_6=A_),o6=J,T_=$}if(0>S5&&(S5=i0(),R_=_._debugTask!=null?_._debugTask:null,0>U3)){if(_=o9(),J=n9(),_!==$6||J!==e6)$6=-1.1;J6=_,e6=J}}function a4(){var _=n6;return n6=0,_}function z$(_){var J=n6;return n6=_,J}function k9(_){var J=n6;return n6+=_,J}function B$(){h1=u1=-1.1}function G5(){var _=u1;return u1=-1.1,_}function Z5(_){0<=_&&(u1=_)}function F4(){var _=v0;return v0=-0,_}function X4(_){0<=_&&(v0=_)}function H4(){var _=V0;return V0=null,_}function Y4(){var _=E0;return E0=!1,_}function vU(_){g2=i0(),0>_.actualStartTime&&(_.actualStartTime=g2)}function DU(_){if(0<=g2){var J=i0()-g2;_.actualDuration+=J,_.selfBaseDuration=J,g2=-1}}function gH(_){if(0<=g2){var J=i0()-g2;_.actualDuration+=J,g2=-1}}function z4(){if(0<=g2){var _=i0(),J=_-g2;g2=-1,n6+=J,v0+=J,h1=_}}function pH(_){V0===null&&(V0=[]),V0.push(_),q3===null&&(q3=[]),q3.push(_)}function B4(){g2=i0(),0>u1&&(u1=g2)}function v9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function mO(_,J){if(I_===null){var $=I_=[];oZ=0,_8=cG(),V7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return oZ++,J.then(cH,cH),J}function cH(){if(--oZ===0&&(-1<S5||(U3=-1.1),I_!==null)){V7!==null&&(V7.status="fulfilled");var _=I_;I_=null,_8=0,V7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function gO(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(G){$.push(G)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var G=0;G<$.length;G++)(0,$[G])(J)},function(G){q.status="rejected",q.reason=G;for(G=0;G<$.length;G++)(0,$[G])(void 0)}),q}function bU(){var _=J8.current;return _!==null?_:I0.pooledCache}function W$(_,J){J===null?$1(J8,J8.current,_):$1(J8,J.pool,_)}function lH(){var _=bU();return _===null?null:{parent:d0._currentValue,pool:_}}function dH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function iH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function rH(_,J,$){K1.actQueue!==null&&(K1.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(l4,l4),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var G={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:G}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){G.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,sH(_),_;default:if(typeof J.status==="string")J.then(l4,l4);else{if(_=I0,_!==null&&100<_.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");_=J,_.status="pending",_.then(function(K){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=K}},function(K){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=K}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,sH(_),_}throw Q8=J,j_=!0,y7}}function D3(_){try{return PP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw Q8=J,j_=!0,y7;throw J}}function aH(){if(Q8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=Q8;return Q8=null,j_=!1,_}function sH(_){if(_===y7||_===jQ)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 B2(_){var J=s1;return _!=null&&(s1=J===null?_:J.concat(_)),J}function uU(){var _=s1;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function L$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var K=q[G];if(K!=="children"&&K!=="key"){J===null&&(J=K$(_,$.mode,0),J._debugInfo=s1,J.return=$),B1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},K);break}}}function A$(_){var J=V_;return V_+=1,k7===null&&(k7=dH()),rH(k7,_,J)}function D9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function tH(_,J){if(J.$$typeof===Qw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
|
+
- Multiple copies of the "react" package is used.
|
|
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 M$(_,J){var $=uU();$!==null?$.run(tH.bind(null,_,J)):tH(_,J)}function nH(_,J){var $=m(_)||"Component";GL[$]||(GL[$]=!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
|
+
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 T$(_,J){var $=uU();$!==null?$.run(nH.bind(null,_,J)):nH(_,J)}function oH(_,J){var $=m(_)||"Component";ZL[$]||(ZL[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
|
+
root.render(%s)`,J):console.error(`Symbols are not valid as a React child.
|
|
100
|
+
<%s>%s</%s>`,$,J,$))}function R$(_,J){var $=uU();$!==null?$.run(oH.bind(null,_,J)):oH(_,J)}function eH(_){function J(l,r){if(_){var n=l.deletions;n===null?(l.deletions=[r],l.flags|=16):n.push(r)}}function $(l,r){if(!_)return null;for(;r!==null;)J(l,r),r=r.sibling;return null}function q(l){for(var r=new Map;l!==null;)l.key!==null?r.set(l.key,l):r.set(l.index,l),l=l.sibling;return r}function G(l,r){return l=d4(l,r),l.index=0,l.sibling=null,l}function K(l,r,n){if(l.index=n,!_)return l.flags|=1048576,r;if(n=l.alternate,n!==null)return n=n.index,n<r?(l.flags|=67108866,r):n;return l.flags|=67108866,r}function z(l){return _&&l.alternate===null&&(l.flags|=67108866),l}function L(l,r,n,z1){if(r===null||r.tag!==6)return r=PU(n,l.mode,z1),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=s1,r;return r=G(r,n),r.return=l,r._debugInfo=s1,r}function I(l,r,n,z1){var N1=n.type;if(N1===Y7)return r=e(l,r,n.props.children,z1,n.key),L$(n,r,l),r;if(r!==null&&(r.elementType===N1||jH(r,n)||typeof N1==="object"&&N1!==null&&N1.$$typeof===H5&&D3(N1)===r.type))return r=G(r,n.props),D9(r,n),r.return=l,r._debugOwner=n._owner,r._debugInfo=s1,r;return r=K$(n,l.mode,z1),D9(r,n),r.return=l,r._debugInfo=s1,r}function C(l,r,n,z1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==n.containerInfo||r.stateNode.implementation!==n.implementation)return r=NU(n,l.mode,z1),r.return=l,r._debugInfo=s1,r;return r=G(r,n.children||[]),r.return=l,r._debugInfo=s1,r}function e(l,r,n,z1,N1){if(r===null||r.tag!==7)return r=E6(n,l.mode,z1,N1),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=s1,r;return r=G(r,n),r.return=l,r._debugInfo=s1,r}function _1(l,r,n){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=PU(""+r,l.mode,n),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=s1,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case O4:return n=K$(r,l.mode,n),D9(n,r),n.return=l,l=B2(r._debugInfo),n._debugInfo=s1,s1=l,n;case H7:return r=NU(r,l.mode,n),r.return=l,r._debugInfo=s1,r;case H5:var z1=B2(r._debugInfo);return r=D3(r),l=_1(l,r,n),s1=z1,l}if(_2(r)||u(r))return n=E6(r,l.mode,n,null),n.return=l,n._debugOwner=l,n._debugTask=l._debugTask,l=B2(r._debugInfo),n._debugInfo=s1,s1=l,n;if(typeof r.then==="function")return z1=B2(r._debugInfo),l=_1(l,A$(r),n),s1=z1,l;if(r.$$typeof===I4)return _1(l,Y$(l,r),n);M$(l,r)}return typeof r==="function"&&T$(l,r),typeof r==="symbol"&&R$(l,r),null}function d(l,r,n,z1){var N1=r!==null?r.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return N1!==null?null:L(l,r,""+n,z1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case O4:return n.key===N1?(N1=B2(n._debugInfo),l=I(l,r,n,z1),s1=N1,l):null;case H7:return n.key===N1?C(l,r,n,z1):null;case H5:return N1=B2(n._debugInfo),n=D3(n),l=d(l,r,n,z1),s1=N1,l}if(_2(n)||u(n)){if(N1!==null)return null;return N1=B2(n._debugInfo),l=e(l,r,n,z1,null),s1=N1,l}if(typeof n.then==="function")return N1=B2(n._debugInfo),l=d(l,r,A$(n),z1),s1=N1,l;if(n.$$typeof===I4)return d(l,r,Y$(l,n),z1);M$(l,n)}return typeof n==="function"&&T$(l,n),typeof n==="symbol"&&R$(l,n),null}function G1(l,r,n,z1,N1){if(typeof z1==="string"&&z1!==""||typeof z1==="number"||typeof z1==="bigint")return l=l.get(n)||null,L(r,l,""+z1,N1);if(typeof z1==="object"&&z1!==null){switch(z1.$$typeof){case O4:return n=l.get(z1.key===null?n:z1.key)||null,l=B2(z1._debugInfo),r=I(r,n,z1,N1),s1=l,r;case H7:return l=l.get(z1.key===null?n:z1.key)||null,C(r,l,z1,N1);case H5:var i1=B2(z1._debugInfo);return z1=D3(z1),r=G1(l,r,n,z1,N1),s1=i1,r}if(_2(z1)||u(z1))return n=l.get(n)||null,l=B2(z1._debugInfo),r=e(r,n,z1,N1,null),s1=l,r;if(typeof z1.then==="function")return i1=B2(z1._debugInfo),r=G1(l,r,n,A$(z1),N1),s1=i1,r;if(z1.$$typeof===I4)return G1(l,r,n,Y$(r,z1),N1);M$(r,z1)}return typeof z1==="function"&&T$(r,z1),typeof z1==="symbol"&&R$(r,z1),null}function I1(l,r,n,z1){if(typeof n!=="object"||n===null)return z1;switch(n.$$typeof){case O4:case H7:T(l,r,n);var N1=n.key;if(typeof N1!=="string")break;if(z1===null){z1=new Set,z1.add(N1);break}if(!z1.has(N1)){z1.add(N1);break}B1(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.",N1)});break;case H5:n=D3(n),I1(l,r,n,z1)}return z1}function f1(l,r,n,z1){for(var N1=null,i1=null,b1=null,V1=r,r1=r=0,S0=null;V1!==null&&r1<n.length;r1++){V1.index>r1?(S0=V1,V1=null):S0=V1.sibling;var c0=d(l,V1,n[r1],z1);if(c0===null){V1===null&&(V1=S0);break}N1=I1(l,c0,n[r1],N1),_&&V1&&c0.alternate===null&&J(l,V1),r=K(c0,r,r1),b1===null?i1=c0:b1.sibling=c0,b1=c0,V1=S0}if(r1===n.length)return $(l,V1),q0&&i4(l,r1),i1;if(V1===null){for(;r1<n.length;r1++)V1=_1(l,n[r1],z1),V1!==null&&(N1=I1(l,V1,n[r1],N1),r=K(V1,r,r1),b1===null?i1=V1:b1.sibling=V1,b1=V1);return q0&&i4(l,r1),i1}for(V1=q(V1);r1<n.length;r1++)S0=G1(V1,l,r1,n[r1],z1),S0!==null&&(N1=I1(l,S0,n[r1],N1),_&&S0.alternate!==null&&V1.delete(S0.key===null?r1:S0.key),r=K(S0,r,r1),b1===null?i1=S0:b1.sibling=S0,b1=S0);return _&&V1.forEach(function(B3){return J(l,B3)}),q0&&i4(l,r1),i1}function N0(l,r,n,z1){if(n==null)throw Error("An iterable object provided no iterator.");for(var N1=null,i1=null,b1=r,V1=r=0,r1=null,S0=null,c0=n.next();b1!==null&&!c0.done;V1++,c0=n.next()){b1.index>V1?(r1=b1,b1=null):r1=b1.sibling;var B3=d(l,b1,c0.value,z1);if(B3===null){b1===null&&(b1=r1);break}S0=I1(l,B3,c0.value,S0),_&&b1&&B3.alternate===null&&J(l,b1),r=K(B3,r,V1),i1===null?N1=B3:i1.sibling=B3,i1=B3,b1=r1}if(c0.done)return $(l,b1),q0&&i4(l,V1),N1;if(b1===null){for(;!c0.done;V1++,c0=n.next())b1=_1(l,c0.value,z1),b1!==null&&(S0=I1(l,b1,c0.value,S0),r=K(b1,r,V1),i1===null?N1=b1:i1.sibling=b1,i1=b1);return q0&&i4(l,V1),N1}for(b1=q(b1);!c0.done;V1++,c0=n.next())r1=G1(b1,l,V1,c0.value,z1),r1!==null&&(S0=I1(l,r1,c0.value,S0),_&&r1.alternate!==null&&b1.delete(r1.key===null?V1:r1.key),r=K(r1,r,V1),i1===null?N1=r1:i1.sibling=r1,i1=r1);return _&&b1.forEach(function(aP){return J(l,aP)}),q0&&i4(l,V1),N1}function G0(l,r,n,z1){if(typeof n==="object"&&n!==null&&n.type===Y7&&n.key===null&&(L$(n,null,l),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case O4:var N1=B2(n._debugInfo);_:{for(var i1=n.key;r!==null;){if(r.key===i1){if(i1=n.type,i1===Y7){if(r.tag===7){$(l,r.sibling),z1=G(r,n.props.children),z1.return=l,z1._debugOwner=n._owner,z1._debugInfo=s1,L$(n,z1,l),l=z1;break _}}else if(r.elementType===i1||jH(r,n)||typeof i1==="object"&&i1!==null&&i1.$$typeof===H5&&D3(i1)===r.type){$(l,r.sibling),z1=G(r,n.props),D9(z1,n),z1.return=l,z1._debugOwner=n._owner,z1._debugInfo=s1,l=z1;break _}$(l,r);break}else J(l,r);r=r.sibling}n.type===Y7?(z1=E6(n.props.children,l.mode,z1,n.key),z1.return=l,z1._debugOwner=l,z1._debugTask=l._debugTask,z1._debugInfo=s1,L$(n,z1,l),l=z1):(z1=K$(n,l.mode,z1),D9(z1,n),z1.return=l,z1._debugInfo=s1,l=z1)}return l=z(l),s1=N1,l;case H7:_:{N1=n;for(n=N1.key;r!==null;){if(r.key===n)if(r.tag===4&&r.stateNode.containerInfo===N1.containerInfo&&r.stateNode.implementation===N1.implementation){$(l,r.sibling),z1=G(r,N1.children||[]),z1.return=l,l=z1;break _}else{$(l,r);break}else J(l,r);r=r.sibling}z1=NU(N1,l.mode,z1),z1.return=l,l=z1}return z(l);case H5:return N1=B2(n._debugInfo),n=D3(n),l=G0(l,r,n,z1),s1=N1,l}if(_2(n))return N1=B2(n._debugInfo),l=f1(l,r,n,z1),s1=N1,l;if(u(n)){if(N1=B2(n._debugInfo),i1=u(n),typeof i1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var b1=i1.call(n);if(b1===n){if(l.tag!==0||Object.prototype.toString.call(l.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(b1)!=="[object Generator]")qL||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."),qL=!0}else n.entries!==i1||$K||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$K=!0);return l=N0(l,r,b1,z1),s1=N1,l}if(typeof n.then==="function")return N1=B2(n._debugInfo),l=G0(l,r,A$(n),z1),s1=N1,l;if(n.$$typeof===I4)return G0(l,r,Y$(l,n),z1);M$(l,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return N1=""+n,r!==null&&r.tag===6?($(l,r.sibling),z1=G(r,N1),z1.return=l,l=z1):($(l,r),z1=PU(N1,l.mode,z1),z1.return=l,z1._debugOwner=l,z1._debugTask=l._debugTask,z1._debugInfo=s1,l=z1),z(l);return typeof n==="function"&&T$(l,n),typeof n==="symbol"&&R$(l,n),$(l,r)}return function(l,r,n,z1){var N1=s1;s1=null;try{V_=0;var i1=G0(l,r,n,z1);return k7=null,i1}catch(S0){if(S0===y7||S0===jQ)throw S0;var b1=M(29,S0,null,l.mode);b1.lanes=z1,b1.return=l;var V1=b1._debugInfo=s1;if(b1._debugOwner=l._debugOwner,b1._debugTask=l._debugTask,V1!=null){for(var r1=V1.length-1;0<=r1;r1--)if(typeof V1[r1].stack==="string"){b1._debugOwner=V1[r1],b1._debugTask=V1[r1].debugTask;break}}return b1}finally{s1=N1}}}function _Y(_,J){var $=_2(_);return _=!$&&typeof u(_)==="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 EU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function b3(_){return{lane:_,tag:FL,payload:null,callback:null,next:null}}function u3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,qK===q&&!YL){var G=m(_);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
101
|
+
|
|
102
|
+
Please update the following component: %s`,G),YL=!0}if((F0&$2)!==Y2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=Z$(_),SH(_,null,$),J;return G$(_,q,J,$),Z$(_)}function b9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,m4(_,$)}}function O$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,K=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};K===null?G=K=z:K=K.next=z,$=$.next}while($!==null);K===null?G=K=J:K=K.next=J}else G=K=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:K,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function u9(){if(UK){var _=V7;if(_!==null)throw _}}function E9(_,J,$,q){UK=!1;var G=_.updateQueue;Q6=!1,qK=G.shared;var{firstBaseUpdate:K,lastBaseUpdate:z}=G,L=G.shared.pending;if(L!==null){G.shared.pending=null;var I=L,C=I.next;I.next=null,z===null?K=C:z.next=C,z=I;var e=_.alternate;e!==null&&(e=e.updateQueue,L=e.lastBaseUpdate,L!==z&&(L===null?e.firstBaseUpdate=C:L.next=C,e.lastBaseUpdate=I))}if(K!==null){var _1=G.baseState;z=0,e=C=I=null,L=K;do{var d=L.lane&-536870913,G1=d!==L.lane;if(G1?(t1&d)===d:(q&d)===d){d!==0&&d===_8&&(UK=!0),e!==null&&(e=e.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});_:{d=_;var I1=L,f1=J,N0=$;switch(I1.tag){case XL:if(I1=I1.payload,typeof I1==="function"){S7=!0;var G0=I1.call(N0,_1,f1);if(d.mode&f2){n1(!0);try{I1.call(N0,_1,f1)}finally{n1(!1)}}S7=!1,_1=G0;break _}_1=I1;break _;case QK:d.flags=d.flags&-65537|128;case FL:if(G0=I1.payload,typeof G0==="function"){if(S7=!0,I1=G0.call(N0,_1,f1),d.mode&f2){n1(!0);try{G0.call(N0,_1,f1)}finally{n1(!1)}}S7=!1}else I1=G0;if(I1===null||I1===void 0)break _;_1=_0({},_1,I1);break _;case HL:Q6=!0}}d=L.callback,d!==null&&(_.flags|=64,G1&&(_.flags|=8192),G1=G.callbacks,G1===null?G.callbacks=[d]:G1.push(d))}else G1={lane:d,tag:L.tag,payload:L.payload,callback:L.callback,next:null},e===null?(C=e=G1,I=_1):e=e.next=G1,z|=d;if(L=L.next,L===null)if(L=G.shared.pending,L===null)break;else G1=L,L=G1.next,G1.next=null,G.lastBaseUpdate=G1,G.shared.pending=null}while(1);e===null&&(I=_1),G.baseState=I,G.firstBaseUpdate=C,G.lastBaseUpdate=e,K===null&&(G.shared.lanes=0),G6|=z,_.lanes=z,_.memoizedState=_1}qK=null}function JY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function pO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)JY($[_],J)}function $Y(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)JY($[_],J)}function QY(_,J){var $=k4;$1(yQ,$,_),$1(v7,J,_),k4=$|J.baseLanes}function xU(_){$1(yQ,k4,_),$1(v7,v7.current,_)}function mU(_){k4=yQ.current,J1(v7,_),J1(yQ,_)}function E3(_){var J=_.alternate;$1(p0,p0.current&D7,_),$1(W5,_,_),j5===null&&(J===null||v7.current!==null?j5=_:J.memoizedState!==null&&(j5=_))}function gU(_){$1(p0,p0.current,_),$1(W5,_,_),j5===null&&(j5=_)}function qY(_){_.tag===22?($1(p0,p0.current,_),$1(W5,_,_),j5===null&&(j5=_)):h3(_)}function h3(_){$1(p0,p0.current,_),$1(W5,W5.current,_)}function K5(_){J1(W5,_),j5===_&&(j5=null),J1(p0,_)}function I$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||_Z($)||JZ($)))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 e1(){var _=Z1;y5===null?y5=[_]:y5.push(_)}function R1(){var _=Z1;if(y5!==null&&(F3++,y5[F3]!==_)){var J=m(d1);if(!zL.has(J)&&(zL.add(J),y5!==null)){for(var $="",q=0;q<=F3;q++){var G=y5[q],K=q===F3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=K+`
|
|
103
|
+
`,$+=G}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
|
+
|
|
105
|
+
Previous render Next render
|
|
106
|
+
------------------------------------------------------
|
|
107
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
+
`,J,$)}}}function o8(_){_===void 0||_===null||_2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Z1,typeof _)}function w$(){var _=m(d1);WL.has(_)||(WL.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function x0(){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
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
|
+
2. You might be breaking the Rules of Hooks
|
|
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 pU(_,J){if(v_)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.",Z1),!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
|
+
|
|
114
|
+
Previous: %s
|
|
115
|
+
Incoming: %s`,Z1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!m2(_[$],J[$]))return!1;return!0}function cU(_,J,$,q,G,K){if(Z3=K,d1=J,y5=_!==null?_._debugHookTypes:null,F3=-1,v_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")K=m(d1),GK.has(K)||(GK.add(K),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",K===null?"An unknown Component":"<"+K+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,K1.H=_!==null&&_.memoizedState!==null?KK:y5!==null?LL:ZK,U8=K=(J.mode&f2)!==m1;var z=eZ($,q,G);if(U8=!1,u7&&(z=lU(J,$,q,G)),K){n1(!0);try{z=lU(J,$,q,G)}finally{n1(!1)}}return UY(_,J),z}function UY(_,J){J._debugHookTypes=y5,J.dependencies===null?K3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:K3}):J.dependencies._debugThenableState=K3,K1.H=D_;var $=O0!==null&&O0.next!==null;if(Z3=0,y5=Z1=r0=O0=d1=null,F3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),vQ=!1,k_=0,K3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||a0||(_=_.dependencies,_!==null&&H$(_)&&(a0=!0)),j_?(j_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",BL.has(J)||GK.has(J)||(BL.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 lU(_,J,$,q){d1=_;var G=0;do{if(u7&&(K3=null),k_=0,u7=!1,G>=fP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,v_=!1,r0=O0=null,_.updateQueue!=null){var K=_.updateQueue;K.lastEffect=null,K.events=null,K.stores=null,K.memoCache!=null&&(K.memoCache.index=0)}F3=-1,K1.H=AL,K=eZ(J,$,q)}while(u7);return K}function cO(){var _=K1.H,J=_.useState()[0];return J=typeof J.then==="function"?h9(J):J,_=_.useState()[0],(O0!==null?O0.memoizedState:null)!==_&&(d1.flags|=1024),J}function dU(){var _=DQ!==0;return DQ=0,_}function iU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&d5)!==m1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function rU(_){if(vQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}vQ=!1}Z3=0,y5=r0=O0=d1=null,F3=-1,Z1=null,u7=!1,k_=DQ=0,K3=null}function u2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return r0===null?d1.memoizedState=r0=_:r0=r0.next=_,r0}function L0(){if(O0===null){var _=d1.alternate;_=_!==null?_.memoizedState:null}else _=O0.next;var J=r0===null?d1.memoizedState:r0.next;if(J!==null)r0=J,O0=_;else{if(_===null){if(d1.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.")}O0=_,_={memoizedState:O0.memoizedState,baseState:O0.baseState,baseQueue:O0.baseQueue,queue:O0.queue,next:null},r0===null?d1.memoizedState=r0=_:r0=r0.next=_}return r0}function P$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function h9(_){var J=k_;return k_+=1,K3===null&&(K3=dH()),_=rH(K3,_,J),J=d1,(r0===null?J.memoizedState:r0.next)===null&&(J=J.alternate,K1.H=J!==null&&J.memoizedState!==null?KK:ZK),_}function x3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return h9(_);if(_.$$typeof===I4)return j0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function p6(_){var J=null,$=d1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=d1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(G){return G.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=P$(),d1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||v_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=qw;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 g5(_,J){return typeof J==="function"?J(_):J}function aU(_,J,$){var q=u2();if($!==void 0){var G=$(J);if(U8){n1(!0);try{$(J)}finally{n1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=aO.bind(null,d1,_),[q.memoizedState,_]}function e8(_){var J=L0();return sU(J,O0,_)}function sU(_,J,$){var q=_.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=$;var G=_.baseQueue,K=q.pending;if(K!==null){if(G!==null){var z=G.next;G.next=K.next,K.next=z}J.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=G=K,q.pending=null}if(K=_.baseState,G===null)_.memoizedState=K;else{J=G.next;var L=z=null,I=null,C=J,e=!1;do{var _1=C.lane&-536870913;if(_1!==C.lane?(t1&_1)===_1:(Z3&_1)===_1){var d=C.revertLane;if(d===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_1===_8&&(e=!0);else if((Z3&d)===d){C=C.next,d===_8&&(e=!0);continue}else _1={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},I===null?(L=I=_1,z=K):I=I.next=_1,d1.lanes|=d,G6|=d;_1=C.action,U8&&$(K,_1),K=C.hasEagerState?C.eagerState:$(K,_1)}else d={lane:_1,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},I===null?(L=I=d,z=K):I=I.next=d,d1.lanes|=_1,G6|=_1;C=C.next}while(C!==null&&C!==J);if(I===null?z=K:I.next=L,!m2(K,_.memoizedState)&&(a0=!0,e&&($=V7,$!==null)))throw $;_.memoizedState=K,_.baseState=z,_.baseQueue=I,q.lastRenderedState=K}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function x9(_){var J=L0(),$=J.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=_;var{dispatch:q,pending:G}=$,K=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do K=_(K,z.action),z=z.next;while(z!==G);m2(K,J.memoizedState)||(a0=!0),J.memoizedState=K,J.baseQueue===null&&(J.baseState=K),$.lastRenderedState=K}return[K,q]}function tU(_,J,$){var q=d1,G=u2();if(q0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var K=$();b7||K===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),b7=!0)}else{if(K=J(),b7||($=J(),m2(K,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b7=!0)),I0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(t1&127)!==0||GY(q,J,K)}return G.memoizedState=K,$={value:K,getSnapshot:J},G.queue=$,S$(KY.bind(null,q,$,_),[_]),q.flags|=2048,J7(V5|c2,{destroy:void 0},ZY.bind(null,q,$,K,J),null),K}function N$(_,J,$){var q=d1,G=L0(),K=q0;if(K){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!b7){var z=J();m2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b7=!0)}if(z=!m2((O0||G).memoizedState,$))G.memoizedState=$,a0=!0;G=G.queue;var L=KY.bind(null,q,G,_);if(n2(2048,c2,L,[_]),G.getSnapshot!==J||z||r0!==null&&r0.memoizedState.tag&V5){if(q.flags|=2048,J7(V5|c2,{destroy:void 0},ZY.bind(null,q,G,$,J),null),I0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");K||(Z3&127)!==0||GY(q,J,$)}return $}function GY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=d1.updateQueue,J===null?(J=P$(),d1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function ZY(_,J,$,q){J.value=$,J.getSnapshot=q,FY(J)&&XY(_)}function KY(_,J,$){return $(function(){FY(J)&&(K4(2,"updateSyncExternalStore()",_),XY(_))})}function FY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!m2(_,$)}catch(q){return!0}}function XY(_){var J=P2(_,2);J!==null&&u0(J,_,2)}function nU(_){var J=u2();if(typeof _==="function"){var $=_;if(_=$(),U8){n1(!0);try{$()}finally{n1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:g5,lastRenderedState:_},J}function oU(_){_=nU(_);var J=_.queue,$=jY.bind(null,d1,J);return J.dispatch=$,[_.memoizedState,$]}function eU(_){var J=u2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=zG.bind(null,d1,!0,$),$.dispatch=J,[_,J]}function HY(_,J){var $=L0();return YY($,O0,_,J)}function YY(_,J,$,q){return _.baseState=$,sU(_,O0,typeof q==="function"?q:g5)}function zY(_,J){var $=L0();if(O0!==null)return YY($,O0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function lO(_,J,$,q,G){if(D$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var K={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){K.listeners.push(z)}};K1.T!==null?$(!0):K.isTransition=!1,q(K),$=J.pending,$===null?(K.next=J.pending=K,BY(J,K)):(K.next=$.next,J.pending=$.next=K)}}function BY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var K=K1.T,z={};z._updatedFibers=new Set,K1.T=z;try{var L=$(G,q),I=K1.S;I!==null&&I(z,L),WY(_,J,L)}catch(C){_G(_,J,C)}finally{K!==null&&z.types!==null&&(K.types!==null&&K.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),K.types=z.types),K1.T=K,K===null&&z._updatedFibers&&(_=z._updatedFibers.size,z._updatedFibers.clear(),10<_&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{z=$(G,q),WY(_,J,z)}catch(C){_G(_,J,C)}}function WY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(K1.asyncTransitions++,$.then(v$,v$),$.then(function(q){LY(_,J,q)},function(q){return _G(_,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.")):LY(_,J,$)}function LY(_,J,$){J.status="fulfilled",J.value=$,AY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,BY(_,$)))}function _G(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,AY(J),J=J.next;while(J!==q)}_.action=null}function AY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function MY(_,J){return J}function _7(_,J){if(q0){var $=I0.formState;if($!==null){_:{var q=d1;if(q0){if(C0){J:{var G=C0;for(var K=C5;G.nodeType!==8;){if(!K){G=null;break J}if(G=X5(G.nextSibling),G===null){G=null;break J}}K=G.data,G=K===yK||K===$A?G:null}if(G){C0=X5(G.nextSibling),q=G.data===yK;break _}}k3(q)}q=!1}q&&(J=$[0])}}return $=u2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:MY,lastRenderedState:J},$.queue=q,$=jY.bind(null,d1,q),q.dispatch=$,q=nU(!1),K=zG.bind(null,d1,!1,q.queue),q=u2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=lO.bind(null,d1,G,K,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function f$(_){var J=L0();return TY(J,O0,_)}function TY(_,J,$){if(J=sU(_,J,MY)[0],_=e8(g5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=h9(J)}catch(z){if(z===y7)throw jQ;throw z}else q=J;J=L0();var G=J.queue,K=G.dispatch;return $!==J.memoizedState&&(d1.flags|=2048,J7(V5|c2,{destroy:void 0},dO.bind(null,G,$),null)),[q,K,_]}function dO(_,J){_.action=J}function C$(_){var J=L0(),$=O0;if($!==null)return TY(J,$,_);L0(),J=J.memoizedState,$=L0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function J7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=d1.updateQueue,J===null&&(J=P$(),d1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function JG(_){var J=u2();return _={current:_},J.memoizedState=_}function c6(_,J,$,q){var G=u2();d1.flags|=_,G.memoizedState=J7(V5|J,{destroy:void 0},$,q===void 0?null:q)}function n2(_,J,$,q){var G=L0();q=q===void 0?null:q;var K=G.memoizedState.inst;O0!==null&&q!==null&&pU(q,O0.memoizedState.deps)?G.memoizedState=J7(J,K,$,q):(d1.flags|=_,G.memoizedState=J7(V5|J,K,$,q))}function S$(_,J){(d1.mode&d5)!==m1?c6(276826112,c2,_,J):c6(8390656,c2,_,J)}function iO(_){d1.flags|=4;var J=d1.updateQueue;if(J===null)J=P$(),d1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function $G(_){var J=u2(),$={impl:_};return J.memoizedState=$,function(){if((F0&$2)!==Y2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function j$(_){var J=L0().memoizedState;return iO({ref:J,nextImpl:_}),function(){if((F0&$2)!==Y2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function QG(_,J){var $=4194308;return(d1.mode&d5)!==m1&&($|=134217728),c6($,L5,_,J)}function RY(_,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 qG(_,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;(d1.mode&d5)!==m1&&(q|=134217728),c6(q,L5,RY.bind(null,J,_),$)}function V$(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null,n2(4,L5,RY.bind(null,J,_),$)}function UG(_,J){return u2().memoizedState=[_,J===void 0?null:J],_}function y$(_,J){var $=L0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&pU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function GG(_,J){var $=u2();J=J===void 0?null:J;var q=_();if(U8){n1(!0);try{_()}finally{n1(!1)}}return $.memoizedState=[q,J],q}function k$(_,J){var $=L0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&pU(J,q[1]))return q[0];if(q=_(),U8){n1(!0);try{_()}finally{n1(!1)}}return $.memoizedState=[q,J],q}function ZG(_,J){var $=u2();return KG($,_,J)}function OY(_,J){var $=L0();return wY($,O0.memoizedState,_,J)}function IY(_,J){var $=L0();return O0===null?KG($,_,J):wY($,O0.memoizedState,_,J)}function KG(_,J,$){if($===void 0||(Z3&1073741824)!==0&&(t1&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=Pz(),d1.lanes|=_,G6|=_,$}function wY(_,J,$,q){if(m2($,J))return $;if(v7.current!==null)return _=KG(_,$,q),m2(_,J)||(a0=!0),_;if((Z3&42)===0||(Z3&1073741824)!==0&&(t1&261930)===0)return a0=!0,_.memoizedState=$;return _=Pz(),d1.lanes|=_,G6|=_,J}function v$(){K1.asyncTransitions--}function PY(_,J,$,q,G){var K=W0.p;W0.p=K!==0&&K<l5?K:l5;var z=K1.T,L={};L._updatedFibers=new Set,K1.T=L,zG(_,!1,J,$);try{var I=G(),C=K1.S;if(C!==null&&C(L,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){K1.asyncTransitions++,I.then(v$,v$);var e=gO(I,q);m9(_,J,e,F5(_))}else m9(_,J,q,F5(_))}catch(_1){m9(_,J,{then:function(){},status:"rejected",reason:_1},F5(_))}finally{W0.p=K,z!==null&&L.types!==null&&(z.types!==null&&z.types!==L.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=L.types),K1.T=z,z===null&&L._updatedFibers&&(_=L._updatedFibers.size,L._updatedFibers.clear(),10<_&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function FG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=NY(_).queue;xO(_),PY(_,G,J,L8,$===null?O:function(){return fY(_),$(q)})}function NY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:L8,baseState:L8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:g5,lastRenderedState:L8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:g5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function fY(_){K1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=NY(_);J.next===null&&(J=_.alternate.memoizedState),m9(_,J.next.queue,{},F5(_))}function XG(){var _=nU(!1);return _=PY.bind(null,d1,_.queue,!0,!1),u2().memoizedState=_,[!1,_]}function CY(){var _=e8(g5)[0],J=L0().memoizedState;return[typeof _==="boolean"?_:h9(_),J]}function SY(){var _=x9(g5)[0],J=L0().memoizedState;return[typeof _==="boolean"?_:h9(_),J]}function l6(){return j0(s_)}function HG(){var _=u2(),J=I0.identifierPrefix;if(q0){var $=$3,q=J3;$=(q&~(1<<32-E2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=DQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=NP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function YG(){return u2().memoizedState=rO.bind(null,d1)}function rO(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=F5($),G=b3(q),K=u3($,G,q);K!==null&&(K4(q,"refresh()",_),u0(K,$,q),b9(K,$,q)),_=kU(),J!==null&&J!==void 0&&K!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function aO(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),q=F5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};D$(_)?VY(J,G):(G=RU(_,J,G,q),G!==null&&(K4(q,"dispatch()",_),u0(G,_,q),yY(G,J,q)))}function jY(_,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(_),m9(_,J,$,q)&&K4(q,"setState()",_)}function m9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(D$(_))VY(J,G);else{var K=_.alternate;if(_.lanes===0&&(K===null||K.lanes===0)&&(K=J.lastRenderedReducer,K!==null)){var z=K1.H;K1.H=r5;try{var L=J.lastRenderedState,I=K(L,$);if(G.hasEagerState=!0,G.eagerState=I,m2(I,L))return G$(_,J,G,0),I0===null&&U$(),!1}catch(C){}finally{K1.H=z}}if($=RU(_,J,G,q),$!==null)return u0($,_,q),yY($,J,q),!0}return!1}function zG(_,J,$,q){if(K1.T===null&&_8===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),q={lane:2,revertLane:cG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},D$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=RU(_,$,q,2),J!==null&&(K4(2,"setOptimistic()",_),u0(J,_,2))}function D$(_){var J=_.alternate;return _===d1||J!==null&&J===d1}function VY(_,J){u7=vQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function yY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,m4(_,$)}}function BG(_){if(_!==null&&typeof _!=="function"){var J=String(_);SL.has(J)||(SL.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function WG(_,J,$,q){var G=_.memoizedState,K=$(q,G);if(_.mode&f2){n1(!0);try{K=$(q,G)}finally{n1(!1)}}K===void 0&&(J=b(J)||"Component",PL.has(J)||(PL.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=K===null||K===void 0?G:_0({},G,K),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function kY(_,J,$,q,G,K,z){var L=_.stateNode;if(typeof L.shouldComponentUpdate==="function"){if($=L.shouldComponentUpdate(q,K,z),_.mode&f2){n1(!0);try{$=L.shouldComponentUpdate(q,K,z)}finally{n1(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",b(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!S9($,q)||!S9(G,K):!0}function vY(_,J,$,q){var G=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==G&&(_=m(_)||"Component",TL.has(_)||(TL.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),FK.enqueueReplaceState(J,J.state,null))}function d6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=_0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function DY(_){mZ(_),console.warn(`%s
|
|
116
|
+
|
|
117
|
+
%s
|
|
118
|
+
`,E7?"An error occurred in the <"+E7+"> 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 bY(_){var J=E7?"The above error occurred in the <"+E7+"> 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, "+((XK||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
|
|
120
|
+
|
|
121
|
+
%s
|
|
122
|
+
|
|
123
|
+
%s
|
|
124
|
+
`,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,XA+" "+_[0],HA,Uq+q+Uq,YA):_.splice(0,0,XA,HA,Uq+q+Uq,YA),_.unshift(console),q=iP.apply(console.error,_),q()}else console.error(`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,_,J,$)}function uY(_){mZ(_)}function b$(_,J){try{E7=J.source?m(J.source):null,XK=null;var $=J.value;if(K1.actQueue!==null)K1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function EY(_,J,$){try{E7=$.source?m($.source):null,XK=m(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function LG(_,J,$){return $=b3($),$.tag=QK,$.payload={element:null},$.callback=function(){B1(J.source,b$,_,J)},$}function AG(_){return _=b3(_),_.tag=QK,_}function MG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var K=q.value;_.payload=function(){return G(K)},_.callback=function(){VH($),B1(q.source,EY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){VH($),B1(q.source,EY,J,$,q),typeof G!=="function"&&(K6===null?K6=new Set([this]):K6.add(this)),OP(this,q),typeof G==="function"||($.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",m($)||"Unknown")})}function sO(_,J,$,q,G){if($.flags|=32768,N4&&a9(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&n8(J,$,G,!0),q0&&(S4=!0),$=W5.current,$!==null){switch($.tag){case 31:case 13:return j5===null?l$():$.alternate===null&&D0===H3&&(D0=EQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===VQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),xG(_,q,G)),!1;case 22:return $.flags|=65536,q===VQ?$.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)),xG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return xG(_,q,G),l$(),!1}if(q0)return S4=!0,J=W5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==iZ&&V9(U5(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!==iZ&&V9(U5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),$)),_=_.current.alternate,_.flags|=65536,G&=-G,_.lanes|=G,q=U5(q,$),G=LG(_.stateNode,q,G),O$(_,G),D0!==q6&&(D0=G8)),!1;var K=U5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(m_===null?m_=[K]:m_.push(K),D0!==q6&&(D0=G8),J===null)return!0;q=U5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=LG($.stateNode,q,_),O$($,_),!1;case 1:if(J=$.type,K=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||K!==null&&typeof K.componentDidCatch==="function"&&(K6===null||!K6.has(K))))return $.flags|=65536,G&=-G,$.lanes|=G,G=AG(G),MG(G,_,$,q),O$($,G),!1}$=$.return}while($!==null);return!1}function W2(_,J,$,q){J.child=_===null?KL(J,null,$,q):q8(J,_.child,$,q)}function hY(_,J,$,q,G){$=$.render;var K=J.ref;if("ref"in q){var z={};for(var L in q)L!=="ref"&&(z[L]=q[L])}else z=q;if(m6(J),q=cU(_,J,$,z,K,G),L=dU(),_!==null&&!a0)return iU(_,J,G),s4(_,J,G);return q0&&L&&fU(J),J.flags|=1,W2(_,J,q,G),J.child}function xY(_,J,$,q,G){if(_===null){var K=$.type;if(typeof K==="function"&&!IU(K)&&K.defaultProps===void 0&&$.compare===null)return $=u6(K),J.tag=15,J.type=$,RG(J,K),mY(_,J,$,q,G);return _=wU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(K=_.child,!fG(_,G)){var z=K.memoizedProps;if($=$.compare,$=$!==null?$:S9,$(z,q)&&_.ref===J.ref)return s4(_,J,G)}return J.flags|=1,_=d4(K,q),_.ref=J.ref,_.return=J,J.child=_}function mY(_,J,$,q,G){if(_!==null){var K=_.memoizedProps;if(S9(K,q)&&_.ref===J.ref&&J.type===_.type)if(a0=!1,J.pendingProps=q=K,fG(_,G))(_.flags&131072)!==0&&(a0=!0);else return J.lanes=_.lanes,s4(_,J,G)}return TG(_,J,$,q,G)}function gY(_,J,$,q){var G=q.children,K=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:W_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(K=K!==null?K.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~K}else q=0,J.child=null;return pY(_,J,K,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&W$(J,K!==null?K.cachePool:null),K!==null?QY(J,K):xU(J),qY(J);else return q=J.lanes=536870912,pY(_,J,K!==null?K.baseLanes|$:$,$,q)}else K!==null?(W$(J,K.cachePool),QY(J,K),h3(J),J.memoizedState=null):(_!==null&&W$(J,null),xU(J),h3(J));return W2(_,J,G,$),J.child}function g9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:W_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function pY(_,J,$,q,G){var K=bU();return K=K===null?null:{parent:d0._currentValue,pool:K},J.memoizedState={baseLanes:$,cachePool:K},_!==null&&W$(J,null),xU(J),qY(J),_!==null&&n8(_,J,q,!0),J.childLanes=G,null}function u$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
|
+
- <Activity %s>
|
|
131
|
+
+ <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=h$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function cY(_,J,$){return q8(J,_.child,null,$),_=u$(J,J.pendingProps),_.flags|=2,K5(J),J.memoizedState=null,_}function tO(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(q0){if(q.mode==="hidden")return _=u$(J,q),J.lanes=536870912,g9(null,_);if(gU(J),(_=C0)?($=BB(_,C5),$=$!==null&&$.data===Y8?$:null,$!==null&&(q={dehydrated:$,treeContext:bH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=vH($),q.return=J,J.child=q,M2=J,C0=null)):$=null,$===null)throw F$(J,_),k3(J);return J.lanes=536870912,null}return u$(J,q)}var K=_.memoizedState;if(K!==null){var z=K.dehydrated;if(gU(J),G)if(J.flags&256)J.flags&=-257,J=cY(_,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(EH(),($&536870912)!==0&&c$(J),a0||n8(_,J,$,!1),G=($&_.childLanes)!==0,a0||G){if(q=I0,q!==null&&(z=g4(q,$),z!==0&&z!==K.retryLane))throw K.retryLane=z,P2(_,z),u0(q,_,z),HK;l$(),J=cY(_,J,$)}else _=K.treeContext,C0=X5(z.nextSibling),M2=J,q0=!0,n3=null,S4=!1,B5=null,C5=!1,_!==null&&uH(J,_),J=u$(J,q),J.flags|=4096;return J}return K=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&c$(J),_=d4(K,q),_.ref=J.ref,J.child=_,_.return=J,_}function E$(_,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 TG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var K=b($)||"Unknown";jL[K]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",K,K),jL[K]=!0)}if(J.mode&f2&&i5.recordLegacyContextWarning(J,null),_===null&&(RG(J,J.type),$.contextTypes&&(K=b($)||"Unknown",yL[K]||(yL[K]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",K)))),m6(J),$=cU(_,J,$,q,void 0,G),q=dU(),_!==null&&!a0)return iU(_,J,G),s4(_,J,G);return q0&&q&&fU(J),J.flags|=1,W2(_,J,$,G),J.child}function lY(_,J,$,q,G,K){if(m6(J),F3=-1,v_=_!==null&&_.type!==J.type,J.updateQueue=null,$=lU(J,q,$,G),UY(_,J),q=dU(),_!==null&&!a0)return iU(_,J,K),s4(_,J,K);return q0&&q&&fU(J),J.flags|=1,W2(_,J,$,K),J.child}function dY(_,J,$,q,G){switch(B(J)){case!1:var K=J.stateNode,z=new J.type(J.memoizedProps,K.context).state;K.updater.enqueueSetState(K,z,null);break;case!0:J.flags|=128,J.flags|=65536,K=Error("Simulated error coming from DevTools");var L=G&-G;if(J.lanes|=L,z=I0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");L=AG(L),MG(L,z,J,U5(K,J)),O$(J,L)}if(m6(J),J.stateNode===null){if(z=t3,K=$.contextType,"contextType"in $&&K!==null&&(K===void 0||K.$$typeof!==I4)&&!CL.has($)&&(CL.add($),L=K===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof K!=="object"?" However, it is set to a "+typeof K+".":K.$$typeof===YZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",b($)||"Component",L)),typeof K==="object"&&K!==null&&(z=j0(K)),K=new $(q,z),J.mode&f2){n1(!0);try{K=new $(q,z)}finally{n1(!1)}}if(z=J.memoizedState=K.state!==null&&K.state!==void 0?K.state:null,K.updater=FK,J.stateNode=K,K._reactInternals=J,K._reactInternalInstance=ML,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=b($)||"Component",RL.has(z)||(RL.add(z),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",z,K.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"){var I=L=z=null;if(typeof K.componentWillMount==="function"&&K.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof K.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof K.componentWillReceiveProps==="function"&&K.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof K.UNSAFE_componentWillReceiveProps==="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof K.componentWillUpdate==="function"&&K.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof K.UNSAFE_componentWillUpdate==="function"&&(I="UNSAFE_componentWillUpdate"),z!==null||L!==null||I!==null){K=b($)||"Component";var C=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";IL.has(K)||(IL.add(K),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
|
+
|
|
133
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
|
+
|
|
135
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,K,C,z!==null?`
|
|
137
|
+
`+z:"",L!==null?`
|
|
138
|
+
`+L:"",I!==null?`
|
|
139
|
+
`+I:""))}}K=J.stateNode,z=b($)||"Component",K.render||($.prototype&&typeof $.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!K.getInitialState||K.getInitialState.isReactClassApproved||K.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",z),K.getDefaultProps&&!K.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",z),K.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!fL.has($)&&(fL.add($),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),$.contextTypes&&!NL.has($)&&(NL.add($),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",z)),typeof K.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",z),$.prototype&&$.prototype.isPureReactComponent&&typeof K.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",b($)||"A pure component"),typeof K.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof K.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",z),typeof K.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof K.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),L=K.props!==q,K.props!==void 0&&L&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),K.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",z,z),typeof K.getSnapshotBeforeUpdate!=="function"||typeof K.componentDidUpdate==="function"||OL.has($)||(OL.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",b($))),typeof K.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof K.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(L=K.state)&&(typeof L!=="object"||_2(L))&&console.error("%s.state: must be set to an object or null",z),typeof K.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),K=J.stateNode,K.props=q,K.state=J.memoizedState,K.refs={},EU(J),z=$.contextType,K.context=typeof z==="object"&&z!==null?j0(z):t3,K.state===q&&(z=b($)||"Component",wL.has(z)||(wL.add(z),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",z))),J.mode&f2&&i5.recordLegacyContextWarning(J,K),i5.recordUnsafeLifecycleWarnings(J,K),K.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(WG(J,$,z,q),K.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(z=K.state,typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount(),z!==K.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m(J)||"Component"),FK.enqueueReplaceState(K,K.state,null)),E9(J,q,K,G),u9(),K.state=J.memoizedState),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728),K=!0}else if(_===null){K=J.stateNode;var e=J.memoizedProps;L=d6($,e),K.props=L;var _1=K.context;I=$.contextType,z=t3,typeof I==="object"&&I!==null&&(z=j0(I)),C=$.getDerivedStateFromProps,I=typeof C==="function"||typeof K.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,I||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(e||_1!==z)&&vY(J,K,q,z),Q6=!1;var d=J.memoizedState;K.state=d,E9(J,q,K,G),u9(),_1=J.memoizedState,e||d!==_1||Q6?(typeof C==="function"&&(WG(J,$,C,q),_1=J.memoizedState),(L=Q6||kY(J,$,L,q,d,_1,z))?(I||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728)):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=_1),K.props=q,K.state=_1,K.context=z,K=L):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728),K=!1)}else{K=J.stateNode,hU(_,J),z=J.memoizedProps,I=d6($,z),K.props=I,C=J.pendingProps,d=K.context,_1=$.contextType,L=t3,typeof _1==="object"&&_1!==null&&(L=j0(_1)),e=$.getDerivedStateFromProps,(_1=typeof e==="function"||typeof K.getSnapshotBeforeUpdate==="function")||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(z!==C||d!==L)&&vY(J,K,q,L),Q6=!1,d=J.memoizedState,K.state=d,E9(J,q,K,G),u9();var G1=J.memoizedState;z!==C||d!==G1||Q6||_!==null&&_.dependencies!==null&&H$(_.dependencies)?(typeof e==="function"&&(WG(J,$,e,q),G1=J.memoizedState),(I=Q6||kY(J,$,I,q,d,G1,L)||_!==null&&_.dependencies!==null&&H$(_.dependencies))?(_1||typeof K.UNSAFE_componentWillUpdate!=="function"&&typeof K.componentWillUpdate!=="function"||(typeof K.componentWillUpdate==="function"&&K.componentWillUpdate(q,G1,L),typeof K.UNSAFE_componentWillUpdate==="function"&&K.UNSAFE_componentWillUpdate(q,G1,L)),typeof K.componentDidUpdate==="function"&&(J.flags|=4),typeof K.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=G1),K.props=q,K.state=G1,K.context=L,K=I):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),K=!1)}if(L=K,E$(_,J),z=(J.flags&128)!==0,L||z){if(L=J.stateNode,S1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,g2=-1;else if($=aW(L),J.mode&f2){n1(!0);try{aW(L)}finally{n1(!1)}}J.flags|=1,_!==null&&z?(J.child=q8(J,_.child,null,G),J.child=q8(J,null,$,G)):W2(_,J,$,G),J.memoizedState=L.state,_=J.child}else _=s4(_,J,G);return G=J.stateNode,K&&G.props!==q&&(h7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",m(J)||"a component"),h7=!0),_}function iY(_,J,$,q){return x6(),J.flags|=256,W2(_,J,$,q),J.child}function RG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=b(J)||"Unknown",kL[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),kL[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",VL[J]||(console.error("%s: Function components do not support contextType.",J),VL[J]=!0))}function OG(_){return{baseLanes:_,cachePool:lH()}}function IG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=$5),_}function rY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var K=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(p0.current&y_)!==0),q&&(K=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(q0){if(K?E3(J):h3(J),(_=C0)?($=BB(_,C5),$=$!==null&&$.data!==Y8?$:null,$!==null&&(q={dehydrated:$,treeContext:bH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=vH($),q.return=J,J.child=q,M2=J,C0=null)):$=null,$===null)throw F$(J,_),k3(J);return JZ($)?J.lanes=32:J.lanes=536870912,null}var L=G.children;if(G=G.fallback,K){h3(J);var I=J.mode;return L=h$({mode:"hidden",children:L},I),G=E6(G,I,$,null),L.return=J,G.return=J,L.sibling=G,J.child=L,G=J.child,G.memoizedState=OG($),G.childLanes=IG(_,q,$),J.memoizedState=YK,g9(null,G)}return E3(J),wG(J,L)}var C=_.memoizedState;if(C!==null){var e=C.dehydrated;if(e!==null){if(z)J.flags&256?(E3(J),J.flags&=-257,J=PG(_,J,$)):J.memoizedState!==null?(h3(J),J.child=_.child,J.flags|=128,J=null):(h3(J),L=G.fallback,I=J.mode,G=h$({mode:"visible",children:G.children},I),L=E6(L,I,$,null),L.flags|=2,G.return=J,L.return=J,G.sibling=L,J.child=G,q8(J,_.child,null,$),G=J.child,G.memoizedState=OG($),G.childLanes=IG(_,q,$),J.memoizedState=YK,J=g9(null,G));else if(E3(J),EH(),($&536870912)!==0&&c$(J),JZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){L=q.dgst;var _1=q.msg;I=q.stck;var d=q.cstck}K=_1,q=L,G=I,e=d,L=K,I=e,L=L?Error(L):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),L.stack=G||"",L.digest=q,q=I===void 0?null:I,G={value:L,source:null,stack:q},typeof q==="string"&&dZ.set(L,G),V9(G),J=PG(_,J,$)}else if(a0||n8(_,J,$,!1),q=($&_.childLanes)!==0,a0||q){if(q=I0,q!==null&&(G=g4(q,$),G!==0&&G!==C.retryLane))throw C.retryLane=G,P2(_,G),u0(q,_,G),HK;_Z(e)||l$(),J=PG(_,J,$)}else _Z(e)?(J.flags|=192,J.child=_.child,J=null):(_=C.treeContext,C0=X5(e.nextSibling),M2=J,q0=!0,n3=null,S4=!1,B5=null,C5=!1,_!==null&&uH(J,_),J=wG(J,G.children),J.flags|=4096);return J}}if(K)return h3(J),L=G.fallback,I=J.mode,d=_.child,e=d.sibling,G=d4(d,{mode:"hidden",children:G.children}),G.subtreeFlags=d.subtreeFlags&65011712,e!==null?L=d4(e,L):(L=E6(L,I,$,null),L.flags|=2),L.return=J,G.return=J,G.sibling=L,J.child=G,g9(null,G),G=J.child,L=_.child.memoizedState,L===null?L=OG($):(I=L.cachePool,I!==null?(d=d0._currentValue,I=I.parent!==d?{parent:d,pool:d}:I):I=lH(),L={baseLanes:L.baseLanes|$,cachePool:I}),G.memoizedState=L,G.childLanes=IG(_,q,$),J.memoizedState=YK,g9(_.child,G);return C!==null&&($&62914560)===$&&($&_.lanes)!==0&&c$(J),E3(J),$=_.child,_=$.sibling,$=d4($,{mode:"visible",children:G.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function wG(_,J){return J=h$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function h$(_,J){return _=M(22,_,null,J),_.lanes=0,_}function PG(_,J,$){return q8(J,_.child,null,$),_=wG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function aY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),VU(_.return,J,$)}function NG(_,J,$,q,G,K){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:K}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=K)}function sY(_,J,$){var q=J.pendingProps,G=q.revealOrder,K=q.tail,z=q.children,L=p0.current;if((q=(L&y_)!==0)?(L=L&D7|y_,J.flags|=128):L&=D7,$1(p0,L,J),L=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!vL[L])if(vL[L]=!0,G==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(G==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof G==="string")switch(G.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',G,G.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(L=K==null?"null":K,!uQ[L])if(K==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")uQ[L]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else K!=="visible"&&K!=="collapsed"&&K!=="hidden"?(uQ[L]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',K)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(uQ[L]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',K));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(_2(z)){for(L=0;L<z.length;L++)if(!_Y(z[L],L))break _}else if(L=u(z),typeof L==="function"){if(L=L.call(z))for(var I=L.next(),C=0;!I.done;I=L.next()){if(!_Y(I.value,C))break _;C++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',G);if(W2(_,J,z,$),q0?(y3(),z=L_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&aY(_,$,J);else if(_.tag===19)aY(_,$,J);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===J)break _;for(;_.sibling===null;){if(_.return===null||_.return===J)break _;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(G){case"forwards":$=J.child;for(G=null;$!==null;)_=$.alternate,_!==null&&I$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),NG(J,!1,G,$,K,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&I$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}NG(J,!0,$,null,K,z);break;case"together":NG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function s4(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),g2=-1,G6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(n8(_,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,$=d4(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=d4(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function fG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&H$(_)?!0:!1}function nO(_,J,$){switch(J.tag){case 3:p(J,J.stateNode.containerInfo),v3(J,d0,_.memoizedState.cache),x6();break;case 27:case 5:i(J);break;case 4:p(J,J.stateNode.containerInfo);break;case 10:v3(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,gU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return E3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return rY(_,J,$);return E3(J),_=s4(_,J,$),_!==null?_.sibling:null}E3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(n8(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return sY(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),$1(p0,p0.current,J),q)break;else return null;case 22:return J.lanes=0,gY(_,J,$,J.pendingProps);case 24:v3(J,d0,_.memoizedState.cache)}return s4(_,J,$)}function CG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=wU(J.type,J.key,J.pendingProps,J._debugOwner||null,J.mode,J.lanes),$._debugStack=J._debugStack,$._debugTask=J._debugTask;var q=J.return;if(q===null)throw Error("Cannot swap the root fiber.");if(_.alternate=null,J.alternate=null,$.index=J.index,$.sibling=J.sibling,$.return=J.return,$.ref=J.ref,$._debugInfo=J._debugInfo,J===q.child)q.child=$;else{var G=q.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==J;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=$}return J=q.deletions,J===null?(q.deletions=[_],q.flags|=16):J.push(_),$.flags|=2,$}if(_!==null)if(_.memoizedProps!==J.pendingProps||J.type!==_.type)a0=!0;else{if(!fG(_,$)&&(J.flags&128)===0)return a0=!1,nO(_,J,$);a0=(_.flags&131072)!==0?!0:!1}else{if(a0=!1,q=q0)y3(),q=(J.flags&1048576)!==0;q&&(q=J.index,y3(),DH(J,L_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=D3(J.elementType),J.type=_,typeof _==="function")IU(_)?(q=d6(_,q),J.tag=1,J.type=_=u6(_),J=dY(null,J,_,q,$)):(J.tag=0,RG(J,_),J.type=_=u6(_),J=TG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===Q_){J.tag=11,J.type=_=OU(_),J=hY(null,J,_,q,$);break _}else if(G===qQ){J.tag=14,J=xY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===H5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=b(_)||_,Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+J)}return J;case 0:return TG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=d6(q,J.pendingProps),dY(_,J,q,G,$);case 3:_:{if(p(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var K=J.memoizedState;G=K.element,hU(_,J),E9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,v3(J,d0,q),q!==K.cache&&yU(J,[d0],$,!0),u9(),q=z.element,K.isDehydrated)if(K={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=K,J.memoizedState=K,J.flags&256){J=iY(_,J,q,$);break _}else if(q!==G){G=U5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),V9(G),J=iY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}C0=X5(_.firstChild),M2=J,q0=!0,n3=null,S4=!1,B5=null,C5=!0,$=KL(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(x6(),q===G){J=s4(_,J,$);break _}W2(_,J,q,$)}J=J.child}return J;case 26:return E$(_,J),_===null?($=RB(J.type,null,J.pendingProps,null))?J.memoizedState=$:q0||($=J.type,_=J.pendingProps,q=x(l3.current),q=a$(q).createElement($),q[A2]=J,q[h2]=_,L2(q,$,_),v1(q),J.stateNode=q):J.memoizedState=RB(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return i(J),_===null&&q0&&(q=x(l3.current),G=s(),q=J.stateNode=MB(J.type,J.pendingProps,q,G,!1),S4||(G=GB(q,J.type,J.pendingProps,G),G!==null&&(h6(J,0).serverProps=G)),M2=J,C5=!0,G=C0,p3(J.type)?(bK=G,C0=X5(q.firstChild)):C0=G),W2(_,J,J.pendingProps.children,$),E$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&q0&&(K=s(),q=w9(J.type,K.ancestorInfo),G=C0,(z=!G)||(z=xI(G,J.type,J.pendingProps,C5),z!==null?(J.stateNode=z,S4||(K=GB(z,J.type,J.pendingProps,K),K!==null&&(h6(J,0).serverProps=K)),M2=J,C0=X5(z.firstChild),C5=!1,K=!0):K=!1,z=!K),z&&(q&&F$(J,G),k3(J))),i(J),G=J.type,K=J.pendingProps,z=_!==null?_.memoizedProps:null,q=K.children,oG(G,K)?q=null:z!==null&&oG(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=cU(_,J,cO,null,null,$),s_._currentValue=G),E$(_,J),W2(_,J,q,$),J.child;case 6:return _===null&&q0&&($=J.pendingProps,_=s(),q=_.ancestorInfo.current,$=q!=null?V3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=C0,(q=!_)||(q=mI(_,J.pendingProps,C5),q!==null?(J.stateNode=q,M2=J,C0=null,q=!0):q=!1,q=!q),q&&($&&F$(J,_),k3(J))),null;case 13:return rY(_,J,$);case 4:return p(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=q8(J,null,q,$):W2(_,J,q,$),J.child;case 11:return hY(_,J,J.type,J.pendingProps,$);case 7:return W2(_,J,J.pendingProps,$),J.child;case 8:return W2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,W2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,K=G.value,"value"in G||DL||(DL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),v3(J,q,K),W2(_,J,G.children,$),J.child;case 9:return G=J.type._context,q=J.pendingProps.children,typeof q!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),m6(J),G=j0(G),q=eZ(q,G,void 0),J.flags|=1,W2(_,J,q,$),J.child;case 14:return xY(_,J,J.type,J.pendingProps,$);case 15:return mY(_,J,J.type,J.pendingProps,$);case 19:return sY(_,J,$);case 31:return tO(_,J,$);case 22:return gY(_,J,$,J.pendingProps);case 24:return m6(J),q=j0(d0),_===null?(G=bU(),G===null&&(G=I0,K=kU(),G.pooledCache=K,g6(K),K!==null&&(G.pooledCacheLanes|=$),G=K),J.memoizedState={parent:q,cache:G},EU(J),v3(J,d0,G)):((_.lanes&$)!==0&&(hU(_,J),E9(J,null,null,$),u9()),G=_.memoizedState,K=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),v3(J,d0,q)):(q=K.cache,v3(J,d0,q),q!==G.cache&&yU(J,[d0],$,!0))),W2(_,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 t4(_){_.flags|=4}function SG(_,J,$,q,G){if(J=(_.mode&AP)!==m1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(Sz())_.flags|=8192;else throw Q8=VQ,JK}else _.flags&=-16777217}function tY(_,J){if(J.type!=="stylesheet"||(J.state.loading&k5)!==W8)_.flags&=-16777217;else if(_.flags|=16777216,!NB(J))if(Sz())_.flags|=8192;else throw Q8=VQ,JK}function x$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?O2():536870912,_.lanes|=J,F8|=J)}function p9(_,J){if(!q0)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 P0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&a1)!==m1){for(var{selfBaseDuration:G,child:K}=_;K!==null;)$|=K.lanes|K.childLanes,q|=K.subtreeFlags&65011712,q|=K.flags&65011712,G+=K.treeBaseDuration,K=K.sibling;_.treeBaseDuration=G}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags&65011712,q|=G.flags&65011712,G.return=_,G=G.sibling;else if((_.mode&a1)!==m1){G=_.actualDuration,K=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,K+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=K}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags,q|=G.flags,G.return=_,G=G.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function oO(_,J,$){var q=J.pendingProps;switch(CU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return P0(J),null;case 1:return P0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),r4(d0,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)t8(J)?(jU(),t4(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,SU());return P0(J),null;case 26:var{type:G,memoizedState:K}=J;return _===null?(t4(J),K!==null?(P0(J),tY(J,K)):(P0(J),SG(J,G,null,q,$))):K?K!==_.memoizedState?(t4(J),P0(J),tY(J,K)):(P0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&t4(J),P0(J),SG(J,G,_,q,$)),null;case 27:if(o(J),$=x(l3.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&t4(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 P0(J),null}_=s(),t8(J)?hH(J,_):(_=MB(G,q,$,_,!0),J.stateNode=_,t4(J))}return P0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&t4(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 P0(J),null}var z=s();if(t8(J))hH(J,z);else{switch(K=x(l3.current),w9(G,z.ancestorInfo),z=z.context,K=a$(K),z){case i7:K=K.createElementNS(L7,G);break;case $q:K=K.createElementNS(HQ,G);break;default:switch(G){case"svg":K=K.createElementNS(L7,G);break;case"math":K=K.createElementNS(HQ,G);break;case"script":K=K.createElement("div"),K.innerHTML="<script></script>",K=K.removeChild(K.firstChild);break;case"select":K=typeof q.is==="string"?K.createElement("select",{is:q.is}):K.createElement("select"),q.multiple?K.multiple=!0:q.size&&(K.size=q.size);break;default:K=typeof q.is==="string"?K.createElement(G,{is:q.is}):K.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(K)!=="[object HTMLUnknownElement]"||c5.call(qA,G)||(qA[G]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",G)))}}K[A2]=J,K[h2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)K.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===J)break _;for(;z.sibling===null;){if(z.return===null||z.return===J)break _;z=z.return}z.sibling.return=z.return,z=z.sibling}J.stateNode=K;_:switch(L2(K,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&t4(J)}}return P0(J),SG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&t4(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(l3.current),$=s(),t8(J)){if(_=J.stateNode,$=J.memoizedProps,G=!S4,q=null,K=M2,K!==null)switch(K.tag){case 3:G&&(G=LB(_,$,q),G!==null&&(h6(J,0).serverProps=G));break;case 27:case 5:q=K.memoizedProps,G&&(G=LB(_,$,q),G!==null&&(h6(J,0).serverProps=G))}_[A2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||JB(_.nodeValue,$)?!0:!1,_||k3(J,!0)}else G=$.ancestorInfo.current,G!=null&&V3(q,G.tag,$.ancestorInfo.implicitRootScope),_=a$(_).createTextNode(q),_[A2]=J,J.stateNode=_}return P0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=t8(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.");_[A2]=J,P0(J),(J.mode&a1)!==m1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else jU(),x6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,P0(J),(J.mode&a1)!==m1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=SU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return K5(J),J;return K5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return P0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,K=t8(J),G!==null&&G.dehydrated!==null){if(_===null){if(!K)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(K=J.memoizedState,K=K!==null?K.dehydrated:null,!K)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");K[A2]=J,P0(J),(J.mode&a1)!==m1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else jU(),x6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,P0(J),(J.mode&a1)!==m1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=SU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return K5(J),J;return K5(J),null}}if(K5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&a1)!==m1&&v9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,G=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(G=q.alternate.memoizedState.cachePool.pool),K=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(K=q.memoizedState.cachePool.pool),K!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),x$(J,J.updateQueue),P0(J),(J.mode&a1)!==m1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&dG(J.stateNode.containerInfo),P0(J),null;case 10:return r4(J.type,J),P0(J),null;case 19:if(J1(p0,J),q=J.memoizedState,q===null)return P0(J),null;if(G=(J.flags&128)!==0,K=q.rendering,K===null)if(G)p9(q,!1);else{if(D0!==H3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(K=I$(_),K!==null){J.flags|=128,p9(q,!1),_=K.updateQueue,J.updateQueue=_,x$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)kH($,_),$=$.sibling;return $1(p0,p0.current&D7|y_,J),q0&&i4(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&F2()>cQ&&(J.flags|=128,G=!0,p9(q,!1),J.lanes=4194304)}else{if(!G)if(_=I$(K),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,x$(J,_),p9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!K.alternate&&!q0)return P0(J),null}else 2*F2()-q.renderingStartTime>cQ&&$!==536870912&&(J.flags|=128,G=!0,p9(q,!1),J.lanes=4194304);q.isBackwards?(K.sibling=J.child,J.child=K):(_=q.last,_!==null?_.sibling=K:J.child=K,q.last=K)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=F2(),_.sibling=null,$=p0.current,$=G?$&D7|y_:$&D7,$1(p0,$,J),q0&&i4(J,q.treeForkCount),_;return P0(J),null;case 22:case 23:return K5(J),mU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(P0(J),J.subtreeFlags&6&&(J.flags|=8192)):P0(J),$=J.updateQueue,$!==null&&x$(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&&J1(J8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),r4(d0,J),P0(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 eO(_,J){switch(CU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&a1)!==m1&&v9(J),J):null;case 3:return r4(d0,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(K5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");x6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&a1)!==m1&&v9(J),J):null;case 13:if(K5(J),_=J.memoizedState,_!==null&&_.dehydrated!==null){if(J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");x6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&a1)!==m1&&v9(J),J):null;case 19:return J1(p0,J),null;case 4:return c(J),null;case 10:return r4(J.type,J),null;case 22:case 23:return K5(J),mU(J),_!==null&&J1(J8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&a1)!==m1&&v9(J),J):null;case 24:return r4(d0,J),null;case 25:return null;default:return null}}function nY(_,J){switch(CU(J),J.tag){case 3:r4(d0,J),c(J);break;case 26:case 27:case 5:o(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&K5(J);break;case 13:K5(J);break;case 19:J1(p0,J);break;case 10:r4(J.type,J);break;case 22:case 23:K5(J),mU(J),_!==null&&J1(J8,J);break;case 24:r4(d0,J)}}function W4(_){return(_.mode&a1)!==m1}function oY(_,J){W4(_)?(B4(),c9(J,_),z4()):c9(J,_)}function jG(_,J,$){W4(_)?(B4(),$7($,_,J),z4()):$7($,_,J)}function c9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&p2)!==kQ&&(c7=!0),q=B1(J,IP,$),(_&p2)!==kQ&&(c7=!1),q!==void 0&&typeof q!=="function")){var K=void 0;K=($.tag&L5)!==0?"useLayoutEffect":($.tag&p2)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
|
|
141
|
+
|
|
142
|
+
It looks like you wrote `+K+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
|
+
|
|
144
|
+
`+K+`(() => {
|
|
145
|
+
async function fetchData() {
|
|
146
|
+
// You can await here
|
|
147
|
+
const response = await MyAPI.getData(someId);
|
|
148
|
+
// ...
|
|
149
|
+
}
|
|
150
|
+
fetchData();
|
|
151
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
|
+
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,B1(J,function(L,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,I)},K,z)}$=$.next}while($!==G)}}catch(L){B0(J,J.return,L)}}function $7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var K=G.next;q=K;do{if((q.tag&_)===_){var z=q.inst,L=z.destroy;L!==void 0&&(z.destroy=void 0,(_&p2)!==kQ&&(c7=!0),G=J,B1(G,wP,G,$,L),(_&p2)!==kQ&&(c7=!1))}q=q.next}while(q!==K)}}catch(I){B0(J,J.return,I)}}function eY(_,J){W4(_)?(B4(),c9(J,_),z4()):c9(J,_)}function VG(_,J,$){W4(_)?(B4(),$7($,_,J),z4()):$7($,_,J)}function _z(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||h7||($.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(_)||"instance"),$.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(_)||"instance"));try{B1(_,$Y,J,$)}catch(q){B0(_,_.return,q)}}}function _I(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function JI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||h7||(J.props!==_.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(_)||"instance"),J.state!==_.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(_)||"instance"));try{var G=d6(_.type,$),K=B1(_,_I,J,G,q);$=bL,K!==void 0||$.has(_.type)||($.add(_.type),B1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(_))})),J.__reactInternalSnapshotBeforeUpdate=K}catch(z){B0(_,_.return,z)}}function Jz(_,J,$){$.props=d6(_.type,_.memoizedProps),$.state=_.memoizedState,W4(_)?(B4(),B1(_,_L,_,J,$),z4()):B1(_,_L,_,J,$)}function $I(_){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(W4(_))try{B4(),_.refCleanup=J($)}finally{z4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",m(_)),J.current=$}}function l9(_,J){try{B1(_,$I,_)}catch($){B0(_,J,$)}}function L4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(W4(_))try{B4(),B1(_,q)}finally{z4(_)}else B1(_,q)}catch(G){B0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(W4(_))try{B4(),B1(_,$,null)}finally{z4(_)}else B1(_,$,null)}catch(G){B0(_,J,G)}else $.current=null}function $z(_,J,$,q){var G=_.memoizedProps,K=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",fQ&&(J="nested-update"),typeof G==="function"&&G(K,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(K,J,q,$)}function QI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",fQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Qz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{B1(_,CI,q,J,$,_)}catch(G){B0(_,_.return,G)}}function yG(_,J,$){try{B1(_,jI,_.stateNode,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function qz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&p3(_.type)||_.tag===4}function kG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||qz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&p3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function vG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(HB($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(HB($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=l4));else if(q!==4&&(q===27&&p3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(vG(_,J,$),_=_.sibling;_!==null;)vG(_,J,$),_=_.sibling}function m$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&p3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(m$(_,J,$),_=_.sibling;_!==null;)m$(_,J,$),_=_.sibling}function qI(_){for(var J,$=_.return;$!==null;){if(qz($)){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,$=kG(_),m$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(XB($),J.flags&=-33),J=kG(_),m$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=kG(_),vG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Uz(_){var{stateNode:J,memoizedProps:$}=_;try{B1(_,dI,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Gz(_,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 UI(_,J){if(_=_.containerInfo,kK=Gq,_=IH(_),LU(_)){if("selectionStart"in _)var $={start:_.selectionStart,end:_.selectionEnd};else _:{$=($=_.ownerDocument)&&$.defaultView||window;var q=$.getSelection&&$.getSelection();if(q&&q.rangeCount!==0){$=q.anchorNode;var{anchorOffset:G,focusNode:K}=q;q=q.focusOffset;try{$.nodeType,K.nodeType}catch(I1){$=null;break _}var z=0,L=-1,I=-1,C=0,e=0,_1=_,d=null;J:for(;;){for(var G1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(L=z+G),_1!==K||q!==0&&_1.nodeType!==3||(I=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(G1=_1.firstChild)===null)break;d=_1,_1=G1}for(;;){if(_1===_)break J;if(d===$&&++C===G&&(L=z),d===K&&++e===q&&(I=z),(G1=_1.nextSibling)!==null)break;_1=d,d=_1.parentNode}_1=G1}$=L===-1||I===-1?null:{start:L,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;vK={focusedElem:_,selectionRange:$},Gq=!1;for(H2=J;H2!==null;)if(J=H2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,H2=_;else for(;H2!==null;){switch(_=J=H2,$=_.alternate,G=_.flags,_.tag){case 0:if((G&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)G=_[$],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&$!==null&&JI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)eG(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":eG(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(_=J.sibling,_!==null){_.return=J.return,H2=_;break}H2=J.return}}function Zz(_,J,$){var q=G5(),G=F4(),K=H4(),z=Y4(),L=$.flags;switch($.tag){case 0:case 11:case 15:A4(_,$),L&4&&oY($,L5|V5);break;case 1:if(A4(_,$),L&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||h7||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m($)||"instance")),W4($)?(B4(),B1($,_K,$,_),z4()):B1($,_K,$,_);else{var I=d6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||h7||(_.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m($)||"instance"),_.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m($)||"instance")),W4($)?(B4(),B1($,nW,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),z4()):B1($,nW,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}L&64&&_z($),L&512&&l9($,$.return);break;case 3:if(J=a4(),A4(_,$),L&64&&(L=$.updateQueue,L!==null)){if(I=null,$.child!==null)switch($.child.tag){case 27:case 5:I=$.child.stateNode;break;case 1:I=$.child.stateNode}try{B1($,$Y,L,I)}catch(e){B0($,$.return,e)}}_.effectDuration+=z$(J);break;case 27:J===null&&L&4&&Uz($);case 26:case 5:if(A4(_,$),J===null){if(L&4)Qz($);else if(L&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{B1($,SI,I,_,J,$)}catch(e){B0($,$.return,e)}}}L&512&&l9($,$.return);break;case 12:if(L&4){L=a4(),A4(_,$),_=$.stateNode,_.effectDuration+=k9(L);try{B1($,$z,$,J,o3,_.effectDuration)}catch(e){B0($,$.return,e)}}else A4(_,$);break;case 31:A4(_,$),L&4&&Xz(_,$);break;case 13:A4(_,$),L&4&&Hz(_,$),L&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(L=BI.bind(null,$),gI(_,L))));break;case 22:if(L=$.memoizedState!==null||X3,!L){J=J!==null&&J.memoizedState!==null||s0,I=X3;var C=s0;X3=L,(s0=J)&&!C?(M4(_,$,($.subtreeFlags&8772)!==0),($.mode&a1)!==m1&&0<=u1&&0<=h1&&0.05<h1-u1&&Q$($,u1,h1)):A4(_,$),X3=I,s0=C}break;case 30:break;default:A4(_,$)}($.mode&a1)!==m1&&0<=u1&&0<=h1&&((E0||0.05<v0)&&Z4($,u1,h1,v0,V0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<h1-u1&&(Gz($.return.alternate,$.return)||G4($,u1,h1,"Mount"))),Z5(q),X4(G),V0=K,E0=z}function Kz(_){var J=_.alternate;J!==null&&(_.alternate=null,Kz(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 n4(_,J,$){for($=$.child;$!==null;)Fz(_,J,$),$=$.sibling}function Fz(_,J,$){if(N2&&typeof N2.onCommitFiberUnmount==="function")try{N2.onCommitFiberUnmount(B7,$)}catch(C){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",C))}var q=G5(),G=F4(),K=H4(),z=Y4();switch($.tag){case 26:s0||L4($,J),n4(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:s0||L4($,J);var L=t0,I=_5;p3($.type)&&(t0=$.stateNode,_5=!1),n4(_,J,$),B1($,e9,$.stateNode),t0=L,_5=I;break;case 5:s0||L4($,J);case 6:if(L=t0,I=_5,t0=null,n4(_,J,$),t0=L,_5=I,t0!==null)if(_5)try{B1($,kI,t0,$.stateNode)}catch(C){B0($,J,C)}else try{B1($,yI,t0,$.stateNode)}catch(C){B0($,J,C)}break;case 18:t0!==null&&(_5?(_=t0,YB(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),X7(_)):YB(t0,$.stateNode));break;case 4:L=t0,I=_5,t0=$.stateNode.containerInfo,_5=!0,n4(_,J,$),t0=L,_5=I;break;case 0:case 11:case 14:case 15:$7(p2,$,J),s0||jG($,J,L5),n4(_,J,$);break;case 1:s0||(L4($,J),L=$.stateNode,typeof L.componentWillUnmount==="function"&&Jz($,J,L)),n4(_,J,$);break;case 21:n4(_,J,$);break;case 22:s0=(L=s0)||$.memoizedState!==null,n4(_,J,$),s0=L;break;default:n4(_,J,$)}($.mode&a1)!==m1&&0<=u1&&0<=h1&&(E0||0.05<v0)&&Z4($,u1,h1,v0,V0),Z5(q),X4(G),V0=K,E0=z}function Xz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{B1(J,cI,_)}catch($){B0(J,J.return,$)}}}function Hz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{B1(J,lI,_)}catch($){B0(J,J.return,$)}}function GI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new uL),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new uL),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function g$(_,J){var $=GI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),N4)if(x7!==null&&m7!==null)a9(m7,x7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=WI.bind(null,_,q);q.then(G,G)}})}function o2(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,K=J,z=$[q],L=G5(),I=K;_:for(;I!==null;){switch(I.tag){case 27:if(p3(I.type)){t0=I.stateNode,_5=!1;break _}break;case 5:t0=I.stateNode,_5=!1;break _;case 3:case 4:t0=I.stateNode.containerInfo,_5=!0;break _}I=I.return}if(t0===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Fz(G,K,z),t0=null,_5=!1,(z.mode&a1)!==m1&&0<=u1&&0<=h1&&0.05<h1-u1&&G4(z,u1,h1,"Unmount"),Z5(L),G=z,K=G.alternate,K!==null&&(K.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Yz(J,_),J=J.sibling}function Yz(_,J){var $=G5(),q=F4(),G=H4(),K=Y4(),z=_.alternate,L=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:o2(J,_),e2(_),L&4&&($7(p2|V5,_,_.return),c9(p2|V5,_),jG(_,_.return,L5|V5));break;case 1:if(o2(J,_),e2(_),L&512&&(s0||z===null||L4(z,z.return)),L&64&&X3&&(L=_.updateQueue,L!==null&&(z=L.callbacks,z!==null))){var I=L.shared.hiddenCallbacks;L.shared.hiddenCallbacks=I===null?z:I.concat(z)}break;case 26:if(I=a5,o2(J,_),e2(_),L&512&&(s0||z===null||L4(z,z.return)),L&4){var C=z!==null?z.memoizedState:null;if(L=_.memoizedState,z===null)if(L===null)if(_.stateNode===null){_:{L=_.type,z=_.memoizedProps,I=I.ownerDocument||I;J:switch(L){case"title":if(C=I.getElementsByTagName("title")[0],!C||C[G_]||C[A2]||C.namespaceURI===L7||C.hasAttribute("itemprop"))C=I.createElement(L),I.head.insertBefore(C,I.querySelector("head > title"));L2(C,L,z),C[A2]=_,v1(C),L=C;break _;case"link":var e=wB("link","href",I).get(L+(z.href||""));if(e){for(var _1=0;_1<e.length;_1++)if(C=e[_1],C.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&C.getAttribute("rel")===(z.rel==null?null:z.rel)&&C.getAttribute("title")===(z.title==null?null:z.title)&&C.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){e.splice(_1,1);break J}}C=I.createElement(L),L2(C,L,z),I.head.appendChild(C);break;case"meta":if(e=wB("meta","content",I).get(L+(z.content||""))){for(_1=0;_1<e.length;_1++)if(C=e[_1],P1(z.content,"content"),C.getAttribute("content")===(z.content==null?null:""+z.content)&&C.getAttribute("name")===(z.name==null?null:z.name)&&C.getAttribute("property")===(z.property==null?null:z.property)&&C.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&C.getAttribute("charset")===(z.charSet==null?null:z.charSet)){e.splice(_1,1);break J}}C=I.createElement(L),L2(C,L,z),I.head.appendChild(C);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+L+'". This is a bug in React.')}C[A2]=_,v1(C),L=C}_.stateNode=L}else PB(I,_.type,_.stateNode);else _.stateNode=IB(I,L,_.memoizedProps);else C!==L?(C===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):C.count--,L===null?PB(I,_.type,_.stateNode):IB(I,L,_.memoizedProps)):L===null&&_.stateNode!==null&&yG(_,_.memoizedProps,z.memoizedProps)}break;case 27:o2(J,_),e2(_),L&512&&(s0||z===null||L4(z,z.return)),z!==null&&L&4&&yG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(o2(J,_),e2(_),L&512&&(s0||z===null||L4(z,z.return)),_.flags&32){I=_.stateNode;try{B1(_,XB,I)}catch(f1){B0(_,_.return,f1)}}L&4&&_.stateNode!=null&&(I=_.memoizedProps,yG(_,I,z!==null?z.memoizedProps:I)),L&1024&&(zK=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(o2(J,_),e2(_),L&4){if(_.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");L=_.memoizedProps,z=z!==null?z.memoizedProps:L,I=_.stateNode;try{B1(_,VI,I,z,L)}catch(f1){B0(_,_.return,f1)}}break;case 3:if(I=a4(),Qq=null,C=a5,a5=s$(J.containerInfo),o2(J,_),a5=C,e2(_),L&4&&z!==null&&z.memoizedState.isDehydrated)try{B1(_,pI,J.containerInfo)}catch(f1){B0(_,_.return,f1)}zK&&(zK=!1,zz(_)),J.effectDuration+=z$(I);break;case 4:L=a5,a5=s$(_.stateNode.containerInfo),o2(J,_),e2(_),a5=L;break;case 12:L=a4(),o2(J,_),e2(_),_.stateNode.effectDuration+=k9(L);break;case 31:o2(J,_),e2(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,g$(_,L)));break;case 13:o2(J,_),e2(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(pQ=F2()),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,g$(_,L)));break;case 22:I=_.memoizedState!==null;var d=z!==null&&z.memoizedState!==null,G1=X3,I1=s0;if(X3=G1||I,s0=I1||d,o2(J,_),s0=I1,X3=G1,d&&!I&&!G1&&!I1&&(_.mode&a1)!==m1&&0<=u1&&0<=h1&&0.05<h1-u1&&Q$(_,u1,h1),e2(_),L&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~W_:J._visibility|W_,!I||z===null||d||X3||s0||(i6(_),(_.mode&a1)!==m1&&0<=u1&&0<=h1&&0.05<h1-u1&&G4(_,u1,h1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){d=z=J;try{C=d.stateNode,I?B1(d,DI,C):B1(d,EI,d.stateNode,d.memoizedProps)}catch(f1){B0(d,d.return,f1)}}}else if(J.tag===6){if(z===null){d=J;try{e=d.stateNode,I?B1(d,bI,e):B1(d,hI,e,d.memoizedProps)}catch(f1){B0(d,d.return,f1)}}}else if(J.tag===18){if(z===null){d=J;try{_1=d.stateNode,I?B1(d,vI,_1):B1(d,uI,d.stateNode)}catch(f1){B0(d,d.return,f1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;z===J&&(z=null),J=J.return}z===J&&(z=null),J.sibling.return=J.return,J=J.sibling}L&4&&(L=_.updateQueue,L!==null&&(z=L.retryQueue,z!==null&&(L.retryQueue=null,g$(_,z))));break;case 19:o2(J,_),e2(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,g$(_,L)));break;case 30:break;case 21:break;default:o2(J,_),e2(_)}(_.mode&a1)!==m1&&0<=u1&&0<=h1&&((E0||0.05<v0)&&Z4(_,u1,h1,v0,V0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<h1-u1&&(Gz(_.return.alternate,_.return)||G4(_,u1,h1,"Mount"))),Z5($),X4(q),V0=G,E0=K}function e2(_){var J=_.flags;if(J&2){try{B1(_,qI,_)}catch($){B0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function zz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;zz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function A4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Zz(_,J.alternate,J),J=J.sibling}function Bz(_){var J=G5(),$=F4(),q=H4(),G=Y4();switch(_.tag){case 0:case 11:case 14:case 15:jG(_,_.return,L5),i6(_);break;case 1:L4(_,_.return);var K=_.stateNode;typeof K.componentWillUnmount==="function"&&Jz(_,_.return,K),i6(_);break;case 27:B1(_,e9,_.stateNode);case 26:case 5:L4(_,_.return),i6(_);break;case 22:_.memoizedState===null&&i6(_);break;case 30:i6(_);break;default:i6(_)}(_.mode&a1)!==m1&&0<=u1&&0<=h1&&(E0||0.05<v0)&&Z4(_,u1,h1,v0,V0),Z5(J),X4($),V0=q,E0=G}function i6(_){for(_=_.child;_!==null;)Bz(_),_=_.sibling}function Wz(_,J,$,q){var G=G5(),K=F4(),z=H4(),L=Y4(),I=$.flags;switch($.tag){case 0:case 11:case 15:M4(_,$,q),oY($,L5);break;case 1:if(M4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&B1($,_K,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{B1($,pO,J,_)}catch(C){B0($,$.return,C)}}q&&I&64&&_z($),l9($,$.return);break;case 27:Uz($);case 26:case 5:M4(_,$,q),q&&J===null&&I&4&&Qz($),l9($,$.return);break;case 12:if(q&&I&4){I=a4(),M4(_,$,q),q=$.stateNode,q.effectDuration+=k9(I);try{B1($,$z,$,J,o3,q.effectDuration)}catch(C){B0($,$.return,C)}}else M4(_,$,q);break;case 31:M4(_,$,q),q&&I&4&&Xz(_,$);break;case 13:M4(_,$,q),q&&I&4&&Hz(_,$);break;case 22:$.memoizedState===null&&M4(_,$,q),l9($,$.return);break;case 30:break;default:M4(_,$,q)}($.mode&a1)!==m1&&0<=u1&&0<=h1&&(E0||0.05<v0)&&Z4($,u1,h1,v0,V0),Z5(G),X4(K),V0=z,E0=L}function M4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Wz(_,J.alternate,J,$),J=J.sibling}function DG(_,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&&g6(_),$!=null&&y9($))}function bG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(g6(J),_!=null&&y9(_))}function p5(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(J=J.child;J!==null;){var K=J.sibling;Lz(_,J,$,q,K!==null?K.actualStartTime:G),J=K}}function Lz(_,J,$,q,G){var K=G5(),z=F4(),L=H4(),I=Y4(),C=a3,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&a1)!==m1&&0<J.actualStartTime&&(J.flags&1)!==0&&q$(J,J.actualStartTime,G,J2,$),p5(_,J,$,q,G),e&2048&&eY(J,c2|V5);break;case 1:(J.mode&a1)!==m1&&0<J.actualStartTime&&((J.flags&128)!==0?MU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&q$(J,J.actualStartTime,G,J2,$)),p5(_,J,$,q,G);break;case 3:var _1=a4(),d=J2;J2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,p5(_,J,$,q,G),J2=d,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(g6(q),$!=null&&y9($))),_.passiveEffectDuration+=z$(_1);break;case 12:if(e&2048){e=a4(),p5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=k9(e);try{B1(J,QI,J,J.alternate,o3,_.passiveEffectDuration)}catch(G1){B0(J,J.return,G1)}}else p5(_,J,$,q,G);break;case 31:e=J2,_1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,_1!==null&&d===null?(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(J2=!1,_1=_1.hydrationErrors,_1!==null&&MU(J,J.actualStartTime,G,_1)):J2=!0):J2=!1,p5(_,J,$,q,G),J2=e;break;case 13:e=J2,_1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,_1===null||_1.dehydrated===null||d!==null&&d.dehydrated!==null?J2=!1:(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(J2=!1,_1=_1.hydrationErrors,_1!==null&&MU(J,J.actualStartTime,G,_1)):J2=!0),p5(_,J,$,q,G),J2=e;break;case 23:break;case 22:d=J.stateNode,_1=J.alternate,J.memoizedState!==null?d._visibility&_3?p5(_,J,$,q,G):d9(_,J,$,q,G):d._visibility&_3?p5(_,J,$,q,G):(d._visibility|=_3,Q7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&a1)===m1||J2||(_=J.actualStartTime,0<=_&&0.05<G-_&&Q$(J,_,G),0<=u1&&0<=h1&&0.05<h1-u1&&Q$(J,u1,h1))),e&2048&&DG(_1,J);break;case 24:p5(_,J,$,q,G),e&2048&&bG(J.alternate,J);break;default:p5(_,J,$,q,G)}if((J.mode&a1)!==m1){if(_=!J2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&G4(J,$,G,"Mount");0<=u1&&0<=h1&&((E0||0.05<v0)&&Z4(J,u1,h1,v0,V0),_&&0.05<h1-u1&&G4(J,u1,h1,"Mount"))}Z5(K),X4(z),V0=L,E0=I,a3=C}function Q7(_,J,$,q,G,K){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var z=J.sibling;Az(_,J,$,q,G,z!==null?z.actualStartTime:K),J=z}}function Az(_,J,$,q,G,K){var z=G5(),L=F4(),I=H4(),C=Y4(),e=a3;G&&(J.mode&a1)!==m1&&0<J.actualStartTime&&(J.flags&1)!==0&&q$(J,J.actualStartTime,K,J2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:Q7(_,J,$,q,G,K),eY(J,c2);break;case 23:break;case 22:var d=J.stateNode;J.memoizedState!==null?d._visibility&_3?Q7(_,J,$,q,G,K):d9(_,J,$,q,K):(d._visibility|=_3,Q7(_,J,$,q,G,K)),G&&_1&2048&&DG(J.alternate,J);break;case 24:Q7(_,J,$,q,G,K),G&&_1&2048&&bG(J.alternate,J);break;default:Q7(_,J,$,q,G,K)}(J.mode&a1)!==m1&&0<=u1&&0<=h1&&(E0||0.05<v0)&&Z4(J,u1,h1,v0,V0),Z5(z),X4(L),V0=I,E0=C,a3=e}function d9(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var K=J.child;K!==null;){J=K.sibling;var z=_,L=$,I=q,C=J!==null?J.actualStartTime:G,e=a3;(K.mode&a1)!==m1&&0<K.actualStartTime&&(K.flags&1)!==0&&q$(K,K.actualStartTime,C,J2,L);var _1=K.flags;switch(K.tag){case 22:d9(z,K,L,I,C),_1&2048&&DG(K.alternate,K);break;case 24:d9(z,K,L,I,C),_1&2048&&bG(K.alternate,K);break;default:d9(z,K,L,I,C)}a3=e,K=J}}function q7(_,J,$){if(_.subtreeFlags&b_)for(_=_.child;_!==null;)Mz(_,J,$),_=_.sibling}function Mz(_,J,$){switch(_.tag){case 26:q7(_,J,$),_.flags&b_&&_.memoizedState!==null&&aI($,a5,_.memoizedState,_.memoizedProps);break;case 5:q7(_,J,$);break;case 3:case 4:var q=a5;a5=s$(_.stateNode.containerInfo),q7(_,J,$),a5=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=b_,b_=16777216,q7(_,J,$),b_=q):q7(_,J,$));break;default:q7(_,J,$)}}function Tz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function i9(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=G5();H2=q,Iz(q,_),(q.mode&a1)!==m1&&0<=u1&&0<=h1&&0.05<h1-u1&&G4(q,u1,h1,"Unmount"),Z5(G)}Tz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Rz(_),_=_.sibling}function Rz(_){var J=G5(),$=F4(),q=H4(),G=Y4();switch(_.tag){case 0:case 11:case 15:i9(_),_.flags&2048&&VG(_,_.return,c2|V5);break;case 3:var K=a4();i9(_),_.stateNode.passiveEffectDuration+=z$(K);break;case 12:K=a4(),i9(_),_.stateNode.passiveEffectDuration+=k9(K);break;case 22:K=_.stateNode,_.memoizedState!==null&&K._visibility&_3&&(_.return===null||_.return.tag!==13)?(K._visibility&=~_3,p$(_),(_.mode&a1)!==m1&&0<=u1&&0<=h1&&0.05<h1-u1&&G4(_,u1,h1,"Disconnect")):i9(_);break;default:i9(_)}(_.mode&a1)!==m1&&0<=u1&&0<=h1&&(E0||0.05<v0)&&Z4(_,u1,h1,v0,V0),Z5(J),X4($),E0=G,V0=q}function p$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=G5();H2=q,Iz(q,_),(q.mode&a1)!==m1&&0<=u1&&0<=h1&&0.05<h1-u1&&G4(q,u1,h1,"Unmount"),Z5(G)}Tz(_)}for(_=_.child;_!==null;)Oz(_),_=_.sibling}function Oz(_){var J=G5(),$=F4(),q=H4(),G=Y4();switch(_.tag){case 0:case 11:case 15:VG(_,_.return,c2),p$(_);break;case 22:var K=_.stateNode;K._visibility&_3&&(K._visibility&=~_3,p$(_));break;default:p$(_)}(_.mode&a1)!==m1&&0<=u1&&0<=h1&&(E0||0.05<v0)&&Z4(_,u1,h1,v0,V0),Z5(J),X4($),E0=G,V0=q}function Iz(_,J){for(;H2!==null;){var $=H2,q=$,G=J,K=G5(),z=F4(),L=H4(),I=Y4();switch(q.tag){case 0:case 11:case 15:VG(q,G,c2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&g6(G));break;case 24:y9(q.memoizedState.cache)}if((q.mode&a1)!==m1&&0<=u1&&0<=h1&&(E0||0.05<v0)&&Z4(q,u1,h1,v0,V0),Z5(K),X4(z),E0=I,V0=L,q=$.child,q!==null)q.return=$,H2=q;else _:for($=_;H2!==null;){if(q=H2,K=q.sibling,z=q.return,Kz(q),q===$){H2=null;break _}if(K!==null){K.return=z,H2=K;break _}H2=z}}}function ZI(){SP.forEach(function(_){return _()})}function wz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||K1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function F5(_){if((F0&$2)!==Y2&&t1!==0)return t1&-t1;var J=K1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),cG()):Q1()}function Pz(){if($5===0)if((t1&536870912)===0||q0){var _=ZQ;ZQ<<=1,(ZQ&3932160)===0&&(ZQ=262144),$5=_}else $5=536870912;return _=W5.current,_!==null&&(_.flags|=32),$5}function u0(_,J,$){if(c7&&console.error("useInsertionEffect must not schedule updates."),PK&&(iQ=!0),_===I0&&(A0===Z8||A0===K8)||_.cancelPendingCommit!==null)G7(_,0),m3(_,t1,$5,!1);if(w2(_,$),(F0&$2)!==Y2&&_===I0){if(w4)switch(J.tag){case 0:case 11:case 15:_=o1&&m(o1)||"Unknown",nL.has(_)||(nL.add(_),J=m(J)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",J,_,_));break;case 1:tL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),tL=!0)}}else N4&&V6(_,J,$),AI(J),_===I0&&((F0&$2)===Y2&&(Z6|=$),D0===q6&&m3(_,t1,$5,!1)),T4(_)}function Nz(_,J,$){if((F0&($2|A5))!==Y2)throw Error("Should not already be working.");if(t1!==0&&o1!==null){var q=o1,G=F2();switch(cW){case h_:case Z8:var K=O_;f0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",K,G,I5,void 0,"primary-light")):console.timeStamp("Suspended",K,G,I5,void 0,"primary-light"));break;case K8:K=O_,f0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",K,G,I5,void 0,"primary-light")):console.timeStamp("Action",K,G,I5,void 0,"primary-light"));break;default:f0&&(q=G-O_,3>q||console.timeStamp("Blocked",O_,G,I5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}K=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||k2(_,J))?FI(_,J):EG(_,J,!0);var z=$;do{if(K===H3){g7&&!$&&m3(_,J,0,!1),J=A0,O_=i0(),cW=J;break}else{if(q=F2(),G=_.current.alternate,z&&!KI(G)){q5(J),G=X2,K=q,!f0||K<=G||(m0?m0.run(console.timeStamp.bind(console,"Teared Render",G,K,$0,J0,"error")):console.timeStamp("Teared Render",G,K,$0,J0,"error")),r6(J,q),K=EG(_,J,!1),z=!1;continue}if(K===G8){if(z=J,_.errorRecoveryDisabledLanes&z)var L=0;else L=_.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){q5(J),TU(X2,q,J,m0),r6(J,q),J=L;_:{q=_,K=z,z=m_;var I=q.current.memoizedState.isDehydrated;if(I&&(G7(q,L).flags|=256),L=EG(q,L,!1),L!==G8){if(LK&&!I){q.errorRecoveryDisabledLanes|=K,Z6|=K,K=q6;break _}q=l2,l2=z,q!==null&&(l2===null?l2=q:l2.push.apply(l2,q))}K=L}if(z=!1,K!==G8)continue;else q=F2()}}if(K===E_){q5(J),TU(X2,q,J,m0),r6(J,q),G7(_,0),m3(_,J,0,!0);break}_:{switch($=_,K){case H3:case E_:throw Error("Root did not complete. This is a bug in React.");case q6:if((J&4194048)!==J)break;case hQ:q5(J),NH(X2,q,J,m0),r6(J,q),G=J,(G&127)!==0?wQ=q:(G&4194048)!==0&&(PQ=q),m3($,J,$5,!U6);break _;case G8:l2=null;break;case EQ:case EL:break;default:throw Error("Unknown root exit status.")}if(K1.actQueue!==null)hG($,G,J,l2,g_,gQ,$5,Z6,F8,K,null,null,X2,q);else{if((J&62914560)===J&&(z=pQ+mL-F2(),10<z)){if(m3($,J,$5,!U6),y2($,0,!0)!==0)break _;s5=J,$.timeoutHandle=UA(fz.bind(null,$,G,l2,g_,gQ,J,$5,Z6,F8,U6,K,"Throttled",X2,q),z);break _}fz($,G,l2,g_,gQ,J,$5,Z6,F8,U6,K,null,X2,q)}}}break}while(1);T4(_)}function fz(_,J,$,q,G,K,z,L,I,C,e,_1,d,G1){_.timeoutHandle=B8;var I1=J.subtreeFlags,f1=null;if(I1&8192||(I1&16785408)===16785408){if(f1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:l4},Mz(J,K,f1),I1=(K&62914560)===K?pQ-F2():(K&4194048)===K?xL-F2():0,I1=sI(f1,I1),I1!==null){s5=K,_.cancelPendingCommit=I1(hG.bind(null,_,J,K,$,q,G,z,L,I,e,f1,f1.waitingForViewTransition?"Waiting for the previous Animation":0<f1.count?0<f1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":f1.imgCount===1?"Suspended on an Image":0<f1.imgCount?"Suspended on Images":null,d,G1)),m3(_,K,z,!C);return}}hG(_,J,K,$,q,G,z,L,I,e,f1,_1,d,G1)}function KI(_){for(var J=_;;){var $=J.tag;if(($===0||$===11||$===15)&&J.flags&16384&&($=J.updateQueue,$!==null&&($=$.stores,$!==null)))for(var q=0;q<$.length;q++){var G=$[q],K=G.getSnapshot;G=G.value;try{if(!m2(K(),G))return!1}catch(z){return!1}}if($=J.child,J.subtreeFlags&16384&&$!==null)$.return=J,J=$;else{if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return!0;J=J.return}J.sibling.return=J.return,J=J.sibling}}return!0}function m3(_,J,$,q){J&=~AK,J&=~Z6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var K=31-E2(G),z=1<<K;q[K]=-1,G&=~z}$!==0&&h5(_,$,J)}function U7(){return(F0&($2|A5))===Y2?(s9(0,!1),!1):!0}function uG(){if(o1!==null){if(A0===J5)var _=o1.return;else _=o1,X$(),rU(_),k7=null,V_=0,_=o1;for(;_!==null;)nY(_.alternate,_),_=_.return;o1=null}}function r6(_,J){(_&127)!==0&&(e3=J),(_&4194048)!==0&&(V4=J),(_&62914560)!==0&&(gW=J),(_&2080374784)!==0&&(pW=J)}function G7(_,J){f0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",J0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",J0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",J0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",J0,"primary-light"));var $=X2;if(X2=i0(),t1!==0&&0<$){if(q5(t1),D0===EQ||D0===q6)NH($,X2,J,m0);else{var q=X2,G=m0;if(f0&&!(q<=$)){var K=(J&738197653)===J?"tertiary-dark":"primary-dark",z=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,z,$,q,$0,J0,K)):console.timeStamp(z,$,q,$0,J0,K)}}r6(t1,X2)}if($=m0,m0=null,(J&127)!==0){m0=M_,G=0<=j4&&j4<e3?e3:j4,q=0<=o6&&o6<e3?e3:o6,K=0<=q?q:0<=G?G:X2,0<=wQ?(q5(2),fH(wQ,K,J,$)):(NQ&127)!==0&&(q5(2),j9(e3,K,G3)),$=G;var L=q,I=T_,C=0<j7,e=_6===A_,_1=_6===IQ;if(G=X2,q=M_,K=sZ,z=tZ,f0){if($0="Blocking",0<$?$>G&&($=G):$=G,0<L?L>$&&(L=$):L=$,I!==null&&$>L){var d=C?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,C?"Consecutive":"Event: "+I,L,$,$0,J0,d)):console.timeStamp(C?"Consecutive":"Event: "+I,L,$,$0,J0,d)}G>$&&(L=e?"error":(J&738197653)===J?"tertiary-light":"primary-light",e=_1?"Promise Resolved":e?"Cascading Update":5<G-$?"Update Blocked":"Update",_1=[],z!=null&&_1.push(["Component name",z]),K!=null&&_1.push(["Method name",K]),$={start:$,end:G,detail:{devtools:{properties:_1,track:$0,trackGroup:J0,color:L}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}j4=-1.1,_6=0,tZ=sZ=null,wQ=-1.1,j7=o6,o6=-1.1,e3=i0()}if((J&4194048)!==0&&(m0=R_,G=0<=U3&&U3<V4?V4:U3,$=0<=S5&&S5<V4?V4:S5,q=0<=J6&&J6<V4?V4:J6,K=0<=q?q:0<=$?$:X2,0<=PQ?(q5(256),fH(PQ,K,J,m0)):(NQ&4194048)!==0&&(q5(256),j9(V4,K,G3)),_1=q,L=e6,I=0<$6,C=nZ===IQ,K=X2,q=R_,z=xW,e=mW,f0&&($0="Transition",0<$?$>K&&($=K):$=K,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&L!==null&&(d=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+L,_1,G,$0,J0,d)):console.timeStamp(I?"Consecutive":"Event: "+L,_1,G,$0,J0,d)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,$0,J0,"primary-dark")):console.timeStamp("Action",G,$,$0,J0,"primary-dark")),K>$&&(G=C?"Promise Resolved":5<K-$?"Update Blocked":"Update",_1=[],e!=null&&_1.push(["Component name",e]),z!=null&&_1.push(["Method name",z]),$={start:$,end:K,detail:{devtools:{properties:_1,track:$0,trackGroup:J0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),S5=U3=-1.1,nZ=0,PQ=-1.1,$6=J6,J6=-1.1,V4=i0()),(J&62914560)!==0&&(NQ&62914560)!==0&&(q5(4194304),j9(gW,X2,G3)),(J&2080374784)!==0&&(NQ&2080374784)!==0&&(q5(268435456),j9(pW,X2,G3)),$=_.timeoutHandle,$!==B8&&(_.timeoutHandle=B8,gP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),s5=0,uG(),I0=_,o1=$=d4(_.current,null),t1=J,A0=J5,M5=null,U6=!1,g7=k2(_,J),LK=!1,D0=H3,F8=$5=AK=Z6=G6=0,l2=m_=null,gQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-E2(q),K=1<<G,J|=_[G],q&=~K;return k4=J,U$(),_=vW(),1000<_-kW&&(K1.recentlyCreatedOwnerStacks=0,kW=_),i5.discardPendingWarnings(),$}function Cz(_,J){d1=null,K1.H=D_,K1.getCurrentStack=null,w4=!1,Y5=null,J===y7||J===jQ?(J=aH(),A0=h_):J===JK?(J=aH(),A0=hL):A0=J===HK?WK:J!==null&&typeof J==="object"&&typeof J.then==="function"?x_:xQ,M5=J;var $=o1;$===null?(D0=E_,b$(_,U5(J,_.current))):$.mode&a1&&DU($)}function Sz(){var _=W5.current;return _===null?!0:(t1&4194048)===t1?j5===null?!0:!1:(t1&62914560)===t1||(t1&536870912)!==0?_===j5:!1}function jz(){var _=K1.H;return K1.H=D_,_===null?D_:_}function Vz(){var _=K1.A;return K1.A=CP,_}function c$(_){m0===null&&(m0=_._debugTask==null?null:_._debugTask)}function l$(){D0=q6,U6||(t1&4194048)!==t1&&W5.current!==null||(g7=!0),(G6&134217727)===0&&(Z6&134217727)===0||I0===null||m3(I0,t1,$5,!1)}function EG(_,J,$){var q=F0;F0|=$2;var G=jz(),K=Vz();if(I0!==_||t1!==J){if(N4){var z=_.memoizedUpdaters;0<z.size&&(a9(_,t1),z.clear()),Q4(_,J)}g_=null,G7(_,J)}J=!1,z=D0;_:do try{if(A0!==J5&&o1!==null){var L=o1,I=M5;switch(A0){case WK:uG(),z=hQ;break _;case h_:case Z8:case K8:case x_:W5.current===null&&(J=!0);var C=A0;if(A0=J5,M5=null,Z7(_,L,I,C),$&&g7){z=H3;break _}break;default:C=A0,A0=J5,M5=null,Z7(_,L,I,C)}}yz(),z=D0;break}catch(e){Cz(_,e)}while(1);return J&&_.shellSuspendCounter++,X$(),F0=q,K1.H=G,K1.A=K,o1===null&&(I0=null,t1=0,U$()),z}function yz(){for(;o1!==null;)kz(o1)}function FI(_,J){var $=F0;F0|=$2;var q=jz(),G=Vz();if(I0!==_||t1!==J){if(N4){var K=_.memoizedUpdaters;0<K.size&&(a9(_,t1),K.clear()),Q4(_,J)}g_=null,cQ=F2()+gL,G7(_,J)}else g7=k2(_,J);_:do try{if(A0!==J5&&o1!==null)J:switch(J=o1,K=M5,A0){case xQ:A0=J5,M5=null,Z7(_,J,K,xQ);break;case Z8:case K8:if(iH(K)){A0=J5,M5=null,vz(J);break}J=function(){A0!==Z8&&A0!==K8||I0!==_||(A0=mQ),T4(_)},K.then(J,J);break _;case h_:A0=mQ;break _;case hL:A0=BK;break _;case mQ:iH(K)?(A0=J5,M5=null,vz(J)):(A0=J5,M5=null,Z7(_,J,K,mQ));break;case BK:var z=null;switch(o1.tag){case 26:z=o1.memoizedState;case 5:case 27:var L=o1;if(z?NB(z):L.stateNode.complete){A0=J5,M5=null;var I=L.sibling;if(I!==null)o1=I;else{var C=L.return;C!==null?(o1=C,d$(C)):o1=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}A0=J5,M5=null,Z7(_,J,K,BK);break;case x_:A0=J5,M5=null,Z7(_,J,K,x_);break;case WK:uG(),D0=hQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}K1.actQueue!==null?yz():XI();break}catch(e){Cz(_,e)}while(1);if(X$(),K1.H=q,K1.A=G,F0=$,o1!==null)return H3;return I0=null,t1=0,U$(),D0}function XI(){for(;o1!==null&&!Kw();)kz(o1)}function kz(_){var J=_.alternate;(_.mode&a1)!==m1?(vU(_),J=B1(_,CG,J,_,k4),DU(_)):J=B1(_,CG,J,_,k4),_.memoizedProps=_.pendingProps,J===null?d$(_):o1=J}function vz(_){var J=B1(_,HI,_);_.memoizedProps=_.pendingProps,J===null?d$(_):o1=J}function HI(_){var J=_.alternate,$=(_.mode&a1)!==m1;switch($&&vU(_),_.tag){case 15:case 0:J=lY(J,_,_.pendingProps,_.type,void 0,t1);break;case 11:J=lY(J,_,_.pendingProps,_.type.render,_.ref,t1);break;case 5:rU(_);default:nY(J,_),_=o1=kH(_,k4),J=CG(J,_,k4)}return $&&DU(_),J}function Z7(_,J,$,q){X$(),rU(J),k7=null,V_=0;var G=J.return;try{if(sO(_,G,J,$,t1)){D0=E_,b$(_,U5($,_.current)),o1=null;return}}catch(K){if(G!==null)throw o1=G,K;D0=E_,b$(_,U5($,_.current)),o1=null;return}if(J.flags&32768){if(q0||q===xQ)_=!0;else if(g7||(t1&536870912)!==0)_=!1;else if(U6=_=!0,q===Z8||q===K8||q===h_||q===x_)q=W5.current,q!==null&&q.tag===13&&(q.flags|=16384);Dz(J,_)}else d$(J)}function d$(_){var J=_;do{if((J.flags&32768)!==0){Dz(J,U6);return}var $=J.alternate;if(_=J.return,vU(J),$=B1(J,oO,$,J,k4),(J.mode&a1)!==m1&&gH(J),$!==null){o1=$;return}if(J=J.sibling,J!==null){o1=J;return}o1=J=_}while(J!==null);D0===H3&&(D0=EL)}function Dz(_,J){do{var $=eO(_.alternate,_);if($!==null){$.flags&=32767,o1=$;return}if((_.mode&a1)!==m1){gH(_),$=_.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)){o1=_;return}o1=_=$}while(_!==null);D0=hQ,o1=null}function hG(_,J,$,q,G,K,z,L,I,C,e,_1,d,G1){_.cancelPendingCommit=null;do r9();while(n0!==F6);if(i5.flushLegacyContextWarning(),i5.flushPendingUnsafeLifecycleWarnings(),(F0&($2|A5))!==Y2)throw Error("Should not already be working.");if(q5($),C===G8?TU(d,G1,$,m0):q!==null?uO(d,G1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,m0):bO(d,G1,$,m0),J!==null){if($===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),J===_.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(K=J.lanes|J.childLanes,K|=lZ,N3(_,$,K,z,L,I),_===I0&&(o1=I0=null,t1=0),p7=J,X6=_,s5=$,RK=K,IK=G,rL=q,OK=G1,aL=_1,t5=lQ,sL=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,LI(z7,function(){return r_=window.event,t5===lQ&&(t5=TK),xz(),null})):(_.callbackNode=null,_.callbackPriority=0),q3=null,o3=i0(),_1!==null&&EO(G1,o3,_1,m0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=K1.T,K1.T=null,G=W0.p,W0.p=z5,z=F0,F0|=A5;try{UI(_,J,$)}finally{F0=z,W0.p=G,K1.T=q}}n0=cL,bz(),uz(),Ez()}}function bz(){if(n0===cL){n0=F6;var _=X6,J=p7,$=s5,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=K1.T,K1.T=null;var G=W0.p;W0.p=z5;var K=F0;F0|=A5;try{x7=$,m7=_,B$(),Yz(J,_),m7=x7=null,$=vK;var z=IH(_.containerInfo),L=$.focusedElem,I=$.selectionRange;if(z!==L&&L&&L.ownerDocument&&OH(L.ownerDocument.documentElement,L)){if(I!==null&&LU(L)){var{start:C,end:e}=I;if(e===void 0&&(e=C),"selectionStart"in L)L.selectionStart=C,L.selectionEnd=Math.min(e,L.value.length);else{var _1=L.ownerDocument||document,d=_1&&_1.defaultView||window;if(d.getSelection){var G1=d.getSelection(),I1=L.textContent.length,f1=Math.min(I.start,I1),N0=I.end===void 0?f1:Math.min(I.end,I1);!G1.extend&&f1>N0&&(z=N0,N0=f1,f1=z);var G0=RH(L,f1),l=RH(L,N0);if(G0&&l&&(G1.rangeCount!==1||G1.anchorNode!==G0.node||G1.anchorOffset!==G0.offset||G1.focusNode!==l.node||G1.focusOffset!==l.offset)){var r=_1.createRange();r.setStart(G0.node,G0.offset),G1.removeAllRanges(),f1>N0?(G1.addRange(r),G1.extend(l.node,l.offset)):(r.setEnd(l.node,l.offset),G1.addRange(r))}}}}_1=[];for(G1=L;G1=G1.parentNode;)G1.nodeType===1&&_1.push({element:G1,left:G1.scrollLeft,top:G1.scrollTop});typeof L.focus==="function"&&L.focus();for(L=0;L<_1.length;L++){var n=_1[L];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}Gq=!!kK,vK=kK=null}finally{F0=K,W0.p=G,K1.T=q}}_.current=J,n0=lL}}function uz(){if(n0===lL){n0=F6;var _=sL;if(_!==null){o3=i0();var J=Q3,$=o3;!f0||$<=J||(G3?G3.run(console.timeStamp.bind(console,_,J,$,$0,J0,"secondary-light")):console.timeStamp(_,J,$,$0,J0,"secondary-light"))}_=X6,J=p7,$=s5;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=K1.T,K1.T=null;var G=W0.p;W0.p=z5;var K=F0;F0|=A5;try{x7=$,m7=_,B$(),Zz(_,J.alternate,J),m7=x7=null}finally{F0=K,W0.p=G,K1.T=q}}_=OK,J=aL,Q3=i0(),_=J===null?_:o3,J=Q3,$=t5===MK,q=m0,q3!==null?CH(_,J,q3,!1,q):!f0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,$0,J0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,$0,J0,$?"error":"secondary-dark")),n0=dL}}function Ez(){if(n0===iL||n0===dL){if(n0===iL){var _=Q3;Q3=i0();var J=Q3,$=t5===MK;!f0||J<=_||(G3?G3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,$0,J0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,$0,J0,$?" error":"secondary-light")),t5!==MK&&(t5=pL)}n0=F6,Fw(),_=X6;var q=p7;J=s5,$=rL;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?n0=dQ:(n0=F6,p7=X6=null,hz(_,_.pendingLanes),X8=0,c_=null);var K=_.pendingLanes;if(K===0&&(K6=null),G||cz(_),K=j(J),q=q.stateNode,N2&&typeof N2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(K){case z5:var L=IZ;break;case l5:L=wZ;break;case f4:L=z7;break;case FQ:L=PZ;break;default:L=z7}N2.onCommitFiberRoot(B7,q,L,z)}catch(_1){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(N4&&_.memoizedUpdaters.clear(),ZI(),$!==null){z=K1.T,L=W0.p,W0.p=z5,K1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var C=$[q],e=YI(C.stack);B1(C.source,I,C.value,e)}}finally{K1.T=z,W0.p=L}}(s5&3)!==0&&r9(),T4(_),K=_.pendingLanes,(J&261930)!==0&&(K&42)!==0?(CQ=!0,_===wK?p_++:(p_=0,wK=_)):p_=0,G||r6(J,Q3),s9(0,!1)}}function YI(_){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 hz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,y9(J)))}function r9(){return bz(),uz(),Ez(),xz()}function xz(){if(n0!==dQ)return!1;var _=X6,J=RK;RK=0;var $=j(s5),q=f4===0||f4>$?f4:$;$=K1.T;var G=W0.p;try{W0.p=q,K1.T=null;var K=IK;IK=null,q=X6;var z=s5;if(n0=F6,p7=X6=null,s5=0,(F0&($2|A5))!==Y2)throw Error("Cannot flush passive effects while already rendering.");q5(z),PK=!0,iQ=!1;var L=0;if(q3=null,L=F2(),t5===pL)j9(Q3,L,G3);else{var I=Q3,C=L,e=t5===TK;!f0||C<=I||(m0?m0.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",I,C,$0,J0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",I,C,$0,J0,"secondary-light"))}I=F0,F0|=A5;var _1=q.current;B$(),Rz(_1);var d=q.current;_1=OK,B$(),Lz(q,d,z,K,_1),cz(q),F0=I;var G1=F2();if(d=L,_1=m0,q3!==null?CH(d,G1,q3,!0,_1):!f0||G1<=d||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",d,G1,$0,J0,"secondary-dark")):console.timeStamp("Remaining Effects",d,G1,$0,J0,"secondary-dark")),r6(z,G1),s9(0,!1),iQ?q===c_?X8++:(X8=0,c_=q):X8=0,iQ=PK=!1,N2&&typeof N2.onPostCommitFiberRoot==="function")try{N2.onPostCommitFiberRoot(B7,q)}catch(f1){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",f1))}var I1=q.current.stateNode;return I1.effectDuration=0,I1.passiveEffectDuration=0,!0}finally{W0.p=G,K1.T=$,hz(_,J)}}function mz(_,J,$){J=U5($,J),pH(J),J=LG(_.stateNode,J,2),_=u3(_,J,2),_!==null&&(w2(_,2),T4(_))}function B0(_,J,$){if(c7=!1,_.tag===3)mz(_,_,$);else{for(;J!==null;){if(J.tag===3){mz(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))){_=U5($,_),pH(_),$=AG(2),q=u3(J,$,2),q!==null&&(MG($,q,J,_),w2(q,2),T4(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
|
+
|
|
155
|
+
Error message:
|
|
156
|
+
|
|
157
|
+
%s`,$)}}function xG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new jP;var G=new Set;q.set(J,G)}else G=q.get(J),G===void 0&&(G=new Set,q.set(J,G));G.has($)||(LK=!0,G.add($),q=zI.bind(null,_,J,$),N4&&a9(_,$),J.then(q,q))}function zI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>j4&&(e3=j4=i0(),M_=OQ("Promise Resolved"),_6=IQ):($&4194048)!==0&&0>S5&&(V4=S5=i0(),R_=OQ("Promise Resolved"),nZ=IQ),wz()&&K1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
|
+
|
|
159
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
|
+
|
|
161
|
+
act(() => {
|
|
162
|
+
/* finish loading suspended data */
|
|
163
|
+
});
|
|
164
|
+
/* assert on the output */
|
|
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`),I0===_&&(t1&$)===$&&(D0===q6||D0===EQ&&(t1&62914560)===t1&&F2()-pQ<mL?(F0&$2)===Y2&&G7(_,0):AK|=$,F8===t1&&(F8=0)),T4(_)}function gz(_,J){J===0&&(J=O2()),_=P2(_,J),_!==null&&(w2(_,J),T4(_))}function BI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),gz(_,$)}function WI(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:G}=_;G!==null&&($=G.retryLane);break;case 19:q=_.stateNode;break;case 22:q=_.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(J),gz(_,$)}function mG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,K=G.type===QQ;K=$||K,G.tag!==22?G.flags&67108864?K&&B1(G,pz,q,G):mG(q,G,K):G.memoizedState===null&&(K&&G.flags&8192?B1(G,pz,q,G):G.subtreeFlags&67108864&&B1(G,mG,q,G,K)),J=J.sibling}}function pz(_,J){n1(!0);try{Bz(J),Oz(J),Wz(_,J.alternate,J,!1),Az(_,J,0,null,!1,0)}finally{n1(!1)}}function cz(_){var J=!0;_.current.mode&(f2|d5)||(J=!1),mG(_,_.current,J)}function lz(_){if((F0&$2)===Y2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",rQ!==null){if(rQ.has(J))return;rQ.add(J)}else rQ=new Set([J]);B1(_,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 a9(_,J){N4&&_.memoizedUpdaters.forEach(function($){V6(_,$,J)})}function LI(_,J){var $=K1.actQueue;return $!==null?($.push(J),kP):OZ(_,J)}function AI(_){wz()&&K1.actQueue===null&&B1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
|
+
|
|
168
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
|
+
|
|
170
|
+
act(() => {
|
|
171
|
+
/* fire events that update state */
|
|
172
|
+
});
|
|
173
|
+
/* assert on the output */
|
|
174
|
+
|
|
175
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,m(_))})}function T4(_){_!==l7&&_.next===null&&(l7===null?aQ=l7=_:l7=l7.next=_),sQ=!0,K1.actQueue!==null?fK||(fK=!0,az()):NK||(NK=!0,az())}function s9(_,J){if(!CK&&sQ){CK=!0;do{var $=!1;for(var q=aQ;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var K=0;else{var{suspendedLanes:z,pingedLanes:L}=q;K=(1<<31-E2(42|_)+1)-1,K&=G&~(z&~L),K=K&201326741?K&201326741|1:K?K|2:0}K!==0&&($=!0,rz(q,K))}else K=t1,K=y2(q,q===I0?K:0,q.cancelPendingCommit!==null||q.timeoutHandle!==B8),(K&3)===0||k2(q,K)||($=!0,rz(q,K));q=q.next}}while($);CK=!1}}function MI(){r_=window.event,gG()}function gG(){sQ=fK=NK=!1;var _=0;H6!==0&&NI()&&(_=H6);for(var J=F2(),$=null,q=aQ;q!==null;){var G=q.next,K=dz(q,J);if(K===0)q.next=null,$===null?aQ=G:$.next=G,G===null&&(l7=$);else if($=q,_!==0||(K&3)!==0)sQ=!0;q=G}n0!==F6&&n0!==dQ||s9(_,!1),H6!==0&&(H6=0)}function dz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,K=_.pendingLanes&-62914561;0<K;){var z=31-E2(K),L=1<<z,I=G[z];if(I===-1){if((L&$)===0||(L&q)!==0)G[z]=v2(L,J)}else I<=J&&(_.expiredLanes|=L);K&=~L}if(J=I0,$=t1,$=y2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==B8),q=_.callbackNode,$===0||_===J&&(A0===Z8||A0===K8)||_.cancelPendingCommit!==null)return q!==null&&pG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||k2(_,$)){if(J=$&-$,J!==_.callbackPriority||K1.actQueue!==null&&q!==SK)pG(q);else return J;switch(j($)){case z5:case l5:$=wZ;break;case f4:$=z7;break;case FQ:$=PZ;break;default:$=z7}return q=iz.bind(null,_),K1.actQueue!==null?(K1.actQueue.push(q),$=SK):$=OZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&pG(q),_.callbackPriority=2,_.callbackNode=null,2}function iz(_,J){if(CQ=fQ=!1,r_=window.event,n0!==F6&&n0!==dQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(t5===lQ&&(t5=TK),r9()&&_.callbackNode!==$)return null;var q=t1;if(q=y2(_,_===I0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==B8),q===0)return null;return Nz(_,q,J),dz(_,F2()),_.callbackNode!=null&&_.callbackNode===$?iz.bind(null,_):null}function rz(_,J){if(r9())return null;fQ=CQ,CQ=!1,Nz(_,J,!0)}function pG(_){_!==SK&&_!==null&&Zw(_)}function az(){K1.actQueue!==null&&K1.actQueue.push(function(){return gG(),null}),pP(function(){(F0&($2|A5))!==Y2?OZ(IZ,MI):gG()})}function cG(){if(H6===0){var _=_8;_===0&&(_=GQ,GQ<<=1,(GQ&261888)===0&&(GQ=256)),H6=_}return H6}function sz(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return P1(_,"action"),f9(""+_)}function tz(_,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 TI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var K=sz((G[h2]||null).action),z=q.submitter;z&&(J=(J=z[h2]||null)?sz(J.formAction):z.getAttribute("formAction"),J!==null&&(K=J,z=null));var L=new BQ("action","action",null,q,G);_.push({event:L,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(H6!==0){var I=z?tz(G,z):new FormData(G),C={pending:!0,data:I,method:G.method,action:K};Object.freeze(C),FG($,C,null,I)}}else typeof K==="function"&&(L.preventDefault(),I=z?tz(G,z):new FormData(G),C={pending:!0,data:I,method:G.method,action:K},Object.freeze(C),FG($,C,K,I))},currentTarget:G}]})}}function i$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){mZ(q)}_.currentTarget=null}function nz(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,K=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var L=q[z],I=L.instance,C=L.currentTarget;if(L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?B1(I,i$,K,L,C):i$(K,L,C),G=I}else for(z=0;z<q.length;z++){if(L=q[z],I=L.instance,C=L.currentTarget,L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?B1(I,i$,K,L,C):i$(K,L,C),G=I}}}}function U0(_,J){jK.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[NZ];$===void 0&&($=J[NZ]=new Set);var q=_+"__bubble";$.has(q)||(oz(J,_,2,!1),$.add(q))}function lG(_,J,$){jK.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),oz($,_,q,J)}function dG(_){if(!_[tQ]){_[tQ]=!0,aB.forEach(function($){$!=="selectionchange"&&(jK.has($)||lG($,!1,_),lG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[tQ]||(J[tQ]=!0,lG("selectionchange",!1,J))}}function oz(_,J,$,q){switch(yB(J)){case z5:var G=eI;break;case l5:G=_w;break;default:G=ZZ}$=G.bind(null,J,$,_),G=void 0,!VZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(G=!0),q?G!==void 0?_.addEventListener(J,$,{capture:!0,passive:G}):_.addEventListener(J,$,!0):G!==void 0?_.addEventListener(J,$,{passive:G}):_.addEventListener(J,$,!1)}function iG(_,J,$,q,G){var K=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var z=q.tag;if(z===3||z===4){var L=q.stateNode.containerInfo;if(L===G)break;if(z===4)for(z=q.return;z!==null;){var I=z.tag;if((I===3||I===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;L!==null;){if(z=j1(L),z===null)return;if(I=z.tag,I===5||I===6||I===26||I===27){q=K=z;continue _}L=L.parentNode}}q=q.return}FH(function(){var C=K,e=BU($),_1=[];_:{var d=yW.get(_);if(d!==void 0){var G1=BQ,I1=_;switch(_){case"keypress":if(_$($)===0)break _;case"keydown":case"keyup":G1=aw;break;case"focusin":I1="focus",G1=DZ;break;case"focusout":I1="blur",G1=DZ;break;case"beforeblur":case"afterblur":G1=DZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G1=AW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G1=uw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G1=nw;break;case CW:case SW:case jW:G1=xw;break;case VW:G1=ew;break;case"scroll":case"scrollend":G1=Dw;break;case"wheel":G1=JP;break;case"copy":case"cut":case"paste":G1=gw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G1=TW;break;case"toggle":case"beforetoggle":G1=QP}var f1=(J&4)!==0,N0=!f1&&(_==="scroll"||_==="scrollend"),G0=f1?d!==null?d+"Capture":null:d;f1=[];for(var l=C,r;l!==null;){var n=l;if(r=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||r===null||G0===null||(n=C9(l,G0),n!=null&&f1.push(t9(l,n,r))),N0)break;l=l.return}0<f1.length&&(d=new G1(d,I1,null,$,e),_1.push({event:d,listeners:f1}))}}if((J&7)===0){_:{if(d=_==="mouseover"||_==="pointerover",G1=_==="mouseout"||_==="pointerout",d&&$!==Z_&&(I1=$.relatedTarget||$.fromElement)&&(j1(I1)||I1[i3]))break _;if(G1||d){if(d=e.window===e?e:(d=e.ownerDocument)?d.defaultView||d.parentWindow:window,G1){if(I1=$.relatedTarget||$.toElement,G1=C,I1=I1?j1(I1):null,I1!==null&&(N0=f(I1),f1=I1.tag,I1!==N0||f1!==5&&f1!==27&&f1!==6))I1=null}else G1=null,I1=C;if(G1!==I1){if(f1=AW,n="onMouseLeave",G0="onMouseEnter",l="mouse",_==="pointerout"||_==="pointerover")f1=TW,n="onPointerLeave",G0="onPointerEnter",l="pointer";if(N0=G1==null?d:l1(G1),r=I1==null?d:l1(I1),d=new f1(n,l+"leave",G1,$,e),d.target=N0,d.relatedTarget=r,n=null,j1(e)===C&&(f1=new f1(G0,l+"enter",I1,$,e),f1.target=r,f1.relatedTarget=N0,n=f1),N0=n,G1&&I1)J:{f1=RI,G0=G1,l=I1,r=0;for(n=G0;n;n=f1(n))r++;n=0;for(var z1=l;z1;z1=f1(z1))n++;for(;0<r-n;)G0=f1(G0),r--;for(;0<n-r;)l=f1(l),n--;for(;r--;){if(G0===l||l!==null&&G0===l.alternate){f1=G0;break J}G0=f1(G0),l=f1(l)}f1=null}else f1=null;G1!==null&&ez(_1,d,G1,f1,!1),I1!==null&&N0!==null&&ez(_1,N0,I1,f1,!0)}}}_:{if(d=C?l1(C):window,G1=d.nodeName&&d.nodeName.toLowerCase(),G1==="select"||G1==="input"&&d.type==="file")var N1=LH;else if(BH(d))if(NW)N1=kO;else{N1=VO;var i1=jO}else G1=d.nodeName,!G1||G1.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?C&&N9(C.elementType)&&(N1=LH):N1=yO;if(N1&&(N1=N1(_,C))){WH(_1,N1,$,e);break _}i1&&i1(_,d,C),_==="focusout"&&C&&d.type==="number"&&C.memoizedProps.value!=null&&a8(d,"number",d.value)}switch(i1=C?l1(C):window,_){case"focusin":if(BH(i1)||i1.contentEditable==="true")O7=i1,uZ=C,B_=null;break;case"focusout":B_=uZ=O7=null;break;case"mousedown":EZ=!0;break;case"contextmenu":case"mouseup":case"dragend":EZ=!1,wH(_1,$,e);break;case"selectionchange":if(ZP)break;case"keydown":case"keyup":wH(_1,$,e)}var b1;if(bZ)_:{switch(_){case"compositionstart":var V1="onCompositionStart";break _;case"compositionend":V1="onCompositionEnd";break _;case"compositionupdate":V1="onCompositionUpdate";break _}V1=void 0}else R7?YH(_,$)&&(V1="onCompositionEnd"):_==="keydown"&&$.keyCode===RW&&(V1="onCompositionStart");if(V1&&(OW&&$.locale!=="ko"&&(R7||V1!=="onCompositionStart"?V1==="onCompositionEnd"&&R7&&(b1=XH()):(r3=e,yZ=("value"in r3)?r3.value:r3.textContent,R7=!0)),i1=r$(C,V1),0<i1.length&&(V1=new MW(V1,_,null,$,e),_1.push({event:V1,listeners:i1}),b1?V1.data=b1:(b1=zH($),b1!==null&&(V1.data=b1)))),b1=UP?NO(_,$):fO(_,$))V1=r$(C,"onBeforeInput"),0<V1.length&&(i1=new cw("onBeforeInput","beforeinput",null,$,e),_1.push({event:i1,listeners:V1}),i1.data=b1);TI(_1,_,C,$,e)}nz(_1,J)})}function t9(_,J,$){return{instance:_,listener:J,currentTarget:$}}function r$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,K=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||K===null||(G=C9(_,$),G!=null&&q.unshift(t9(_,G,K)),G=C9(_,J),G!=null&&q.push(t9(_,G,K))),_.tag===3)return q;_=_.return}return[]}function RI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function ez(_,J,$,q,G){for(var K=J._reactName,z=[];$!==null&&$!==q;){var L=$,I=L.alternate,C=L.stateNode;if(L=L.tag,I!==null&&I===q)break;L!==5&&L!==26&&L!==27||C===null||(I=C,G?(C=C9($,K),C!=null&&z.unshift(t9($,C,I))):G||(C=C9($,K),C!=null&&z.push(t9($,C,I)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function rG(_,J){OO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||WW||(WW=!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:a6,possibleRegistrationNames:fZ};N9(_)||typeof J.is==="string"||wO(_,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!==$&&($=g3($),g3(J)!==$&&(q[_]=J))}function OI(_,J,$){J.forEach(function(q){$[$B(q)]=q==="style"?sG(_):_.getAttribute(q)})}function R4(_,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 _B(_,J){return _=_.namespaceURI===HQ||_.namespaceURI===L7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function g3(_){return x1(_)&&(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.",k1(_)),W1(_)),(typeof _==="string"?_:""+_).replace(vP,`
|
|
176
|
+
`).replace(DP,"")}function JB(_,J){return J=g3(J),g3(_)===J?!0:!1}function R0(_,J,$,q,G,K){switch($){case"children":if(typeof q==="string")V3(q,J,!1),J==="body"||J==="textarea"&&q===""||v6(_,q);else if(typeof q==="number"||typeof q==="bigint")V3(""+q,J,!1),J!=="body"&&v6(_,""+q);break;case"className":d8(_,"class",q);break;case"tabIndex":d8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":d8(_,$,q);break;case"style":GH(_,q,K);break;case"data":if(J!=="object"){d8(_,"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}P1(q,$),q=f9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||eQ||(eQ=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),G.target==null||oQ||(oQ=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):J==="input"||J==="button"?$==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):J!=="input"||G.type==="submit"||G.type==="image"||nQ?J!=="button"||G.type==null||G.type==="submit"||nQ?typeof q==="function"&&(G.name==null||_A||(_A=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),G.formEncType==null&&G.formMethod==null||eQ||(eQ=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),G.formTarget==null||oQ||(oQ=!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."))):(nQ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(nQ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):$==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){_.setAttribute($,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof K==="function"&&($==="formAction"?(J!=="input"&&R0(_,J,"name",G.name,G,null),R0(_,J,"formEncType",G.formEncType,G,null),R0(_,J,"formMethod",G.formMethod,G,null),R0(_,J,"formTarget",G.formTarget,G,null)):(R0(_,J,"encType",G.encType,G,null),R0(_,J,"method",G.method,G,null),R0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}P1(q,$),q=f9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&R4($,q),_.onclick=l4);break;case"onScroll":q!=null&&(typeof q!=="function"&&R4($,q),U0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&R4($,q),U0("scrollend",_));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}P1(q,$),$=f9(""+q),_.setAttributeNS(H8,"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"?(P1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||_q[$]||(_q[$]=!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"?(P1(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?(P1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(P1(q,$),_.setAttribute($,q));break;case"popover":U0("beforetoggle",_),U0("toggle",_),l8(_,"popover",q);break;case"xlinkActuate":x5(_,H8,"xlink:actuate",q);break;case"xlinkArcrole":x5(_,H8,"xlink:arcrole",q);break;case"xlinkRole":x5(_,H8,"xlink:role",q);break;case"xlinkShow":x5(_,H8,"xlink:show",q);break;case"xlinkTitle":x5(_,H8,"xlink:title",q);break;case"xlinkType":x5(_,H8,"xlink:type",q);break;case"xmlBase":x5(_,VK,"xml:base",q);break;case"xmlLang":x5(_,VK,"xml:lang",q);break;case"xmlSpace":x5(_,VK,"xml:space",q);break;case"is":K!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),l8(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":JA||q==null||typeof q!=="object"||(JA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"?($=ZH($),l8(_,$,q)):a6.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&R4($,q)}}function aG(_,J,$,q,G,K){switch($){case"style":GH(_,q,K);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?v6(_,q):(typeof q==="number"||typeof q==="bigint")&&v6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&R4($,q),U0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&R4($,q),U0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&R4($,q),_.onclick=l4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(a6.hasOwnProperty($))q!=null&&typeof q!=="function"&&R4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),K=_[h2]||null,K=K!=null?K[$]:null,typeof K==="function"&&_.removeEventListener(J,K,G),typeof q==="function")){typeof K!=="function"&&K!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):l8(_,$,q)}}}function L2(_,J,$){switch(rG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":U0("error",_),U0("load",_);var q=!1,G=!1,K;for(K in $)if($.hasOwnProperty(K)){var z=$[K];if(z!=null)switch(K){case"src":q=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:R0(_,J,K,z,$,null)}}G&&R0(_,J,"srcSet",$.srcSet,$,null),q&&R0(_,J,"src",$.src,$,null);return;case"input":q4("input",$),U0("invalid",_);var L=K=z=G=null,I=null,C=null;for(q in $)if($.hasOwnProperty(q)){var e=$[q];if(e!=null)switch(q){case"name":G=e;break;case"type":z=e;break;case"checked":I=e;break;case"defaultChecked":C=e;break;case"value":K=e;break;case"defaultValue":L=e;break;case"children":case"dangerouslySetInnerHTML":if(e!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:R0(_,J,q,e,$,null)}}gJ(_,$),L9(_,K,L,I,C,z,G,!1);return;case"select":q4("select",$),U0("invalid",_),q=z=K=null;for(G in $)if($.hasOwnProperty(G)&&(L=$[G],L!=null))switch(G){case"value":K=L;break;case"defaultValue":z=L;break;case"multiple":q=L;default:R0(_,J,G,L,$,null)}lJ(_,$),J=K,$=z,_.multiple=!!q,J!=null?f3(_,!!q,J,!1):$!=null&&f3(_,!!q,$,!0);return;case"textarea":q4("textarea",$),U0("invalid",_),K=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(L=$[z],L!=null))switch(z){case"value":q=L;break;case"defaultValue":G=L;break;case"children":K=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:R0(_,J,z,L,$,null)}dJ(_,$),A9(_,q,G,K);return;case"option":pJ(_,$);for(I in $)if($.hasOwnProperty(I)&&(q=$[I],q!=null))switch(I){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:R0(_,J,I,q,$,null)}return;case"dialog":U0("beforetoggle",_),U0("toggle",_),U0("cancel",_),U0("close",_);break;case"iframe":case"object":U0("load",_);break;case"video":case"audio":for(q=0;q<l_.length;q++)U0(l_[q],_);break;case"image":U0("error",_),U0("load",_);break;case"details":U0("toggle",_);break;case"embed":case"source":case"link":U0("error",_),U0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in $)if($.hasOwnProperty(C)&&(q=$[C],q!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:R0(_,J,C,q,$,null)}return;default:if(N9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&aG(_,J,e,q,$,void 0));return}}for(L in $)$.hasOwnProperty(L)&&(q=$[L],q!=null&&R0(_,J,L,q,$,null))}function II(_,J,$,q){switch(rG(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,K=null,z=null,L=null,I=null,C=null,e=null;for(G1 in $){var _1=$[G1];if($.hasOwnProperty(G1)&&_1!=null)switch(G1){case"checked":break;case"value":break;case"defaultValue":I=_1;default:q.hasOwnProperty(G1)||R0(_,J,G1,null,q,_1)}}for(var d in q){var G1=q[d];if(_1=$[d],q.hasOwnProperty(d)&&(G1!=null||_1!=null))switch(d){case"type":K=G1;break;case"name":G=G1;break;case"checked":C=G1;break;case"defaultChecked":e=G1;break;case"value":z=G1;break;case"defaultValue":L=G1;break;case"children":case"dangerouslySetInnerHTML":if(G1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:G1!==_1&&R0(_,J,d,G1,q,_1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||eL||(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"),eL=!0),!J||q||oL||(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"),oL=!0),r8(_,z,L,I,C,e,K,G);return;case"select":G1=z=L=d=null;for(K in $)if(I=$[K],$.hasOwnProperty(K)&&I!=null)switch(K){case"value":break;case"multiple":G1=I;default:q.hasOwnProperty(K)||R0(_,J,K,null,q,I)}for(G in q)if(K=q[G],I=$[G],q.hasOwnProperty(G)&&(K!=null||I!=null))switch(G){case"value":d=K;break;case"defaultValue":L=K;break;case"multiple":z=K;default:K!==I&&R0(_,J,G,K,q,I)}q=L,J=z,$=G1,d!=null?f3(_,!!J,d,!1):!!$!==!!J&&(q!=null?f3(_,!!J,q,!0):f3(_,!!J,J?[]:"",!1));return;case"textarea":G1=d=null;for(L in $)if(G=$[L],$.hasOwnProperty(L)&&G!=null&&!q.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:R0(_,J,L,null,q,G)}for(z in q)if(G=q[z],K=$[z],q.hasOwnProperty(z)&&(G!=null||K!=null))switch(z){case"value":d=G;break;case"defaultValue":G1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==K&&R0(_,J,z,G,q,K)}iJ(_,d,G1);return;case"option":for(var I1 in $)if(d=$[I1],$.hasOwnProperty(I1)&&d!=null&&!q.hasOwnProperty(I1))switch(I1){case"selected":_.selected=!1;break;default:R0(_,J,I1,null,q,d)}for(I in q)if(d=q[I],G1=$[I],q.hasOwnProperty(I)&&d!==G1&&(d!=null||G1!=null))switch(I){case"selected":_.selected=d&&typeof d!=="function"&&typeof d!=="symbol";break;default:R0(_,J,I,d,q,G1)}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 f1 in $)d=$[f1],$.hasOwnProperty(f1)&&d!=null&&!q.hasOwnProperty(f1)&&R0(_,J,f1,null,q,d);for(C in q)if(d=q[C],G1=$[C],q.hasOwnProperty(C)&&d!==G1&&(d!=null||G1!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:R0(_,J,C,d,q,G1)}return;default:if(N9(J)){for(var N0 in $)d=$[N0],$.hasOwnProperty(N0)&&d!==void 0&&!q.hasOwnProperty(N0)&&aG(_,J,N0,void 0,q,d);for(e in q)d=q[e],G1=$[e],!q.hasOwnProperty(e)||d===G1||d===void 0&&G1===void 0||aG(_,J,e,d,q,G1);return}}for(var G0 in $)d=$[G0],$.hasOwnProperty(G0)&&d!=null&&!q.hasOwnProperty(G0)&&R0(_,J,G0,null,q,d);for(_1 in q)d=q[_1],G1=$[_1],!q.hasOwnProperty(_1)||d===G1||d==null&&G1==null||R0(_,J,_1,d,q,G1)}function $B(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function sG(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function QB(_,J,$){if(J!=null&&typeof J!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,G=q="",K;for(K in J)if(J.hasOwnProperty(K)){var z=J[K];z!=null&&typeof z!=="boolean"&&z!==""&&(K.indexOf("--")===0?(H0(z,K),q+=G+K+":"+(""+z).trim()):typeof z!=="number"||z===0||zW.has(K)?(H0(z,K),q+=G+K.replace(KW,"-$1").toLowerCase().replace(FW,"-ms-")+":"+(""+z).trim()):q+=G+K.replace(KW,"-$1").toLowerCase().replace(FW,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=g3(q),g3(J)!==q&&($.style=sG(_)))}}function O5(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(P1(q,J),_===""+q)return}K2(J,_,q,K)}function qB(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}K2(J,_,q,K)}function tG(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(P1(q,$),_===""+q)return}K2(J,_,q,K)}function UB(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(P1(q,J),_===""+q))return}K2(J,_,q,K)}function nG(_,J,$,q,G,K){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(P1(q,J),$=f9(""+q),_===$)return}K2(J,_,q,K)}function GB(_,J,$,q){for(var G={},K=new Set,z=_.attributes,L=0;L<z.length;L++)switch(z[L].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:K.add(z[L].name)}if(N9(J)){for(var I in $)if($.hasOwnProperty(I)){var C=$[I];if(C!=null){if(a6.hasOwnProperty(I))typeof C!=="function"&&R4(I,C);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof C!=="string"&&typeof C!=="number"||K2("children",_.textContent,C,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,C=C?C.__html:void 0,C!=null&&(C=_B(_,C),K2(I,z,C,G));continue;case"style":K.delete(I),QB(_,C,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":K.delete(I.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",I);continue;case"className":K.delete("class"),z=hJ(_,"class",C),K2("className",z,C,G);continue;default:q.context===Y3&&J!=="svg"&&J!=="math"?K.delete(I.toLowerCase()):K.delete(I),z=hJ(_,I,C),K2(I,z,C,G)}}}}else for(C in $)if($.hasOwnProperty(C)&&(I=$[C],I!=null)){if(a6.hasOwnProperty(C))typeof I!=="function"&&R4(C,I);else if($.suppressHydrationWarning!==!0)switch(C){case"children":typeof I!=="string"&&typeof I!=="number"||K2("children",_.textContent,I,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,I=I?I.__html:void 0,I!=null&&(I=_B(_,I),z!==I&&(G[C]={__html:z}));continue;case"className":O5(_,C,"class",I,K,G);continue;case"tabIndex":O5(_,C,"tabindex",I,K,G);continue;case"style":K.delete(C),QB(_,I,G);continue;case"multiple":K.delete(C),K2(C,_.multiple,I,G);continue;case"muted":K.delete(C),K2(C,_.muted,I,G);continue;case"autoFocus":K.delete("autofocus"),K2(C,_.autofocus,I,G);continue;case"data":if(J!=="object"){K.delete(C),z=_.getAttribute("data"),K2(C,z,I,G);continue}case"src":case"href":if(!(I!==""||J==="a"&&C==="href"||J==="object"&&C==="data")){C==="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.',C,C):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.',C,C);continue}nG(_,C,C,I,K,G);continue;case"action":case"formAction":if(z=_.getAttribute(C),typeof I==="function"){K.delete(C.toLowerCase()),C==="formAction"?(K.delete("name"),K.delete("formenctype"),K.delete("formmethod"),K.delete("formtarget")):(K.delete("enctype"),K.delete("method"),K.delete("target"));continue}else if(z===bP){K.delete(C.toLowerCase()),K2(C,"function",I,G);continue}nG(_,C,C.toLowerCase(),I,K,G);continue;case"xlinkHref":nG(_,C,"xlink:href",I,K,G);continue;case"contentEditable":tG(_,C,"contenteditable",I,K,G);continue;case"spellCheck":tG(_,C,"spellcheck",I,K,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":tG(_,C,C,I,K,G);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":qB(_,C,C.toLowerCase(),I,K,G);continue;case"capture":case"download":_:{L=_;var e=z=C,_1=G;if(K.delete(e),L=L.getAttribute(e),L===null)switch(typeof I){case"undefined":case"function":case"symbol":break _;default:if(I===!1)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":break;case"boolean":if(I===!0&&L==="")break _;break;default:if(P1(I,z),L===""+I)break _}K2(z,L,I,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(L=_,e=z=C,_1=G,K.delete(e),L=L.getAttribute(e),L===null)switch(typeof I){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(I)||1>I)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(I)||1>I)&&(P1(I,z),L===""+I))break _}K2(z,L,I,_1)}continue;case"rowSpan":UB(_,C,"rowspan",I,K,G);continue;case"start":UB(_,C,C,I,K,G);continue;case"xHeight":O5(_,C,"x-height",I,K,G);continue;case"xlinkActuate":O5(_,C,"xlink:actuate",I,K,G);continue;case"xlinkArcrole":O5(_,C,"xlink:arcrole",I,K,G);continue;case"xlinkRole":O5(_,C,"xlink:role",I,K,G);continue;case"xlinkShow":O5(_,C,"xlink:show",I,K,G);continue;case"xlinkTitle":O5(_,C,"xlink:title",I,K,G);continue;case"xlinkType":O5(_,C,"xlink:type",I,K,G);continue;case"xmlBase":O5(_,C,"xml:base",I,K,G);continue;case"xmlLang":O5(_,C,"xml:lang",I,K,G);continue;case"xmlSpace":O5(_,C,"xml:space",I,K,G);continue;case"inert":I!==""||_q[C]||(_q[C]=!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.",C)),qB(_,C,C,I,K,G);continue;default:if(!(2<C.length)||C[0]!=="o"&&C[0]!=="O"||C[1]!=="n"&&C[1]!=="N"){L=ZH(C),z=!1,q.context===Y3&&J!=="svg"&&J!=="math"?K.delete(L.toLowerCase()):(e=C.toLowerCase(),e=YQ.hasOwnProperty(e)?YQ[e]||null:null,e!==null&&e!==C&&(z=!0,K.delete(e)),K.delete(L));_:if(e=_,_1=L,L=I,y6(_1))if(e.hasAttribute(_1))e=e.getAttribute(_1),P1(L,_1),L=e===""+L?L:e;else{switch(typeof L){case"function":case"symbol":break _;case"boolean":if(e=_1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}L=L===void 0?void 0:null}else L=void 0;z||K2(C,L,I,G)}}}return 0<K.size&&$.suppressHydrationWarning!==!0&&OI(_,K,G),Object.keys(G).length===0?null:G}function wI(_,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 ZB(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],K=G.transferSize,z=G.initiatorType,L=G.duration;if(K&&L&&ZB(z)){z=0,L=G.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],C=I.startTime;if(C>L)break;var{transferSize:e,initiatorType:_1}=I;e&&ZB(_1)&&(I=I.responseEnd,z+=e*(I<L?1:(L-C)/(I-C)))}if(--q,J+=8*(K+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function a$(_){return _.nodeType===9?_:_.ownerDocument}function KB(_){switch(_){case L7:return i7;case HQ:return $q;default:return Y3}}function FB(_,J){if(_===Y3)switch(J){case"svg":return i7;case"math":return $q;default:return Y3}return _===i7&&J==="foreignObject"?Y3:_}function oG(_,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 NI(){var _=window.event;if(_&&_.type==="popstate"){if(_===DK)return!1;return DK=_,!0}return DK=null,!1}function n9(){var _=window.event;return _&&_!==r_?_.type:null}function o9(){var _=window.event;return _&&_!==r_?_.timeStamp:-1.1}function fI(_){setTimeout(function(){throw _})}function CI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function SI(){}function jI(_,J,$,q){II(_,J,$,q),_[h2]=q}function XB(_){v6(_,"")}function VI(_,J,$){_.nodeValue=$}function HB(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[h2]||null;if(J!==null){var $=c1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,B1($,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,B1($,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 p3(_){return _==="head"}function yI(_,J){_.removeChild(J)}function kI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function YB(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===i_||$===Jq){if(q===0){_.removeChild(G),X7(J);return}q--}else if($===d_||$===Y6||$===z8||$===d7||$===Y8)q++;else if($===EP)e9(_.ownerDocument.documentElement);else if($===xP){$=_.ownerDocument.head,e9($);for(var K=$.firstChild;K;){var{nextSibling:z,nodeName:L}=K;K[G_]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&K.rel.toLowerCase()==="stylesheet"||$.removeChild(K),K=z}}else $===hP&&e9(_.ownerDocument.body);$=G}while($);X7(J)}function zB(_,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,$===i_)if(_===0)break;else _--;else $!==d_&&$!==Y6&&$!==z8&&$!==d7||_++;$=q}while($)}function vI(_){zB(_,!0)}function DI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function bI(_){_.nodeValue=""}function uI(_){zB(_,!1)}function EI(_,J){J=J[mP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function hI(_,J){_.nodeValue=J}function eG(_){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":eG($),w1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function xI(_,J,$,q){for(;_.nodeType===1;){var G=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){P1(G.name,"name");var K=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===K)return _}else return _;else if(!_[G_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(K=_.getAttribute("rel"),K==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(K!==G.rel||_.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||_.getAttribute("title")!==(G.title==null?null:G.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(K=_.getAttribute("src"),(K!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&K&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=X5(_.nextSibling),_===null)break}return null}function mI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=X5(_.nextSibling),_===null)return null}return _}function BB(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=X5(_.nextSibling),_===null)return null}return _}function _Z(_){return _.data===Y6||_.data===z8}function JZ(_){return _.data===d7||_.data===Y6&&_.ownerDocument.readyState!==QA}function gI(_,J){var $=_.ownerDocument;if(_.data===z8)_._reactRetry=J;else if(_.data!==Y6||$.readyState!==QA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function X5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===d_||J===d7||J===Y6||J===z8||J===Y8||J===yK||J===$A)break;if(J===i_||J===Jq)return null}}return _}function WB(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var K=q[G];$[$B(K.name)]=K.name.toLowerCase()==="style"?sG(_):K.value}return{type:J,props:$}}return _.nodeType===8?_.data===Y8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function LB(_,J,$){return $===null||$[uP]!==!0?(_.nodeValue===J?_=null:(J=g3(J),_=g3(_.nodeValue)===J?null:_.nodeValue),_):null}function $Z(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===i_||$===Jq){if(J===0)return X5(_.nextSibling);J--}else $!==d_&&$!==d7&&$!==Y6&&$!==z8&&$!==Y8||J++}_=_.nextSibling}return null}function AB(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===d_||$===d7||$===Y6||$===z8||$===Y8){if(J===0)return _;J--}else $!==i_&&$!==Jq||J++}_=_.previousSibling}return null}function pI(_){X7(_)}function cI(_){X7(_)}function lI(_){X7(_)}function MB(_,J,$,q,G){switch(G&&w9(_,q.ancestorInfo),J=a$($),_){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 dI(_,J,$,q){if(!$[i3]&&c1($)){var G=$.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",G,G,G)}switch(_){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(G=$.attributes;G.length;)$.removeAttributeNode(G[0]);L2($,_,J),$[A2]=q,$[h2]=J}function e9(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);w1(_)}function s$(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function TB(_,J,$){var q=r7;if(q&&typeof J==="string"&&J){var G=s2(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),FA.has(G)||(FA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),L2(J,"link",_),v1(J),q.head.appendChild(J)))}}function RB(_,J,$,q){var G=(G=l3.current)?s$(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(_){case"meta":case"title":return null;case"style":return typeof $.precedence==="string"&&typeof $.href==="string"?($=K7($.href),J=Z0(G).hoistableStyles,q=J.get($),q||(q={type:"style",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if($.rel==="stylesheet"&&typeof $.href==="string"&&typeof $.precedence==="string"){_=K7($.href);var K=Z0(G).hoistableStyles,z=K.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:W8,preload:null}},K.set(_,z),(K=G.querySelector(__(_)))&&!K._p&&(z.instance=K,z.state.loading=a_|k5),!v5.has(_))){var L={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};v5.set(_,L),K||iI(G,_,L,z.state)}if(J&&q===null)throw $=`
|
|
177
|
+
|
|
178
|
+
- `+t$(J)+`
|
|
179
|
+
+ `+t$($),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return z}if(J&&q!==null)throw $=`
|
|
180
|
+
|
|
181
|
+
- `+t$(J)+`
|
|
182
|
+
+ `+t$($),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"?($=F7($),J=Z0(G).hoistableScripts,q=J.get($),q||(q={type:"script",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+_+'". this is a bug in React.')}}function t$(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):c5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):c5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):c5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function K7(_){return'href="'+s2(_)+'"'}function __(_){return'link[rel="stylesheet"]['+_+"]"}function OB(_){return _0({},_,{"data-precedence":_.precedence,precedence:null})}function iI(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=a_:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=a_}),J.addEventListener("error",function(){return q.loading|=ZA}),L2(J,"link",$),v1(J),_.head.appendChild(J))}function F7(_){return'[src="'+s2(_)+'"]'}function J_(_){return"script[async]"+_}function IB(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+s2($.href)+'"]');if(q)return J.instance=q,v1(q),q;var G=_0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),v1(q),L2(q,"style",G),n$(q,$.precedence,_),J.instance=q;case"stylesheet":G=K7($.href);var K=_.querySelector(__(G));if(K)return J.state.loading|=k5,J.instance=K,v1(K),K;q=OB($),(G=v5.get(G))&&QZ(q,G),K=(_.ownerDocument||_).createElement("link"),v1(K);var z=K;return z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),L2(K,"link",q),J.state.loading|=k5,n$(K,$.precedence,_),J.instance=K;case"script":if(K=F7($.src),G=_.querySelector(J_(K)))return J.instance=G,v1(G),G;if(q=$,G=v5.get(K))q=_0({},$),qZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),v1(G),L2(G,"link",q),_.head.appendChild(G),J.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+J.type+'". this is a bug in React.')}else J.type==="stylesheet"&&(J.state.loading&k5)===W8&&(q=J.instance,J.state.loading|=k5,n$(q,$.precedence,_));return J.instance}function n$(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,K=G,z=0;z<q.length;z++){var L=q[z];if(L.dataset.precedence===J)K=L;else if(K!==G)break}K?K.parentNode.insertBefore(_,K.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function QZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function qZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function wB(_,J,$){if(Qq===null){var q=new Map,G=Qq=new Map;G.set($,q)}else G=Qq,q=G.get($),q||(q=new Map,G.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(G=0;G<$.length;G++){var K=$[G];if(!(K[G_]||K[A2]||_==="link"&&K.getAttribute("rel")==="stylesheet")&&K.namespaceURI!==L7){var z=K.getAttribute(J)||"";z=_+z;var L=q.get(z);L?L.push(K):q.set(z,[K])}}return q}function PB(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function rI(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===i7||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:K}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),K!=null&&$.push("`disabled`"),G=wI($,"and"),G+=$.length===1?" prop":" props",K=$.length===1?"an "+G:"the "+G,$.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',_,K,G)}q&&(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(J.onError||J.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(J.rel){case"stylesheet":return _=J.precedence,J=J.disabled,typeof _!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof _==="string"&&J==null;default:return!0}case"script":if(_=J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol",!_||J.onLoad||J.onError||!J.src||typeof J.src!=="string"){q&&(_?J.onLoad||J.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",_)}return!1}function NB(_){return _.type==="stylesheet"&&(_.state.loading&KA)===W8?!1:!0}function aI(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&k5)===W8){if($.instance===null){var G=K7(q.href),K=J.querySelector(__(G));if(K){J=K._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=o$.bind(_),J.then(_,_)),$.state.loading|=k5,$.instance=K,v1(K);return}K=J.ownerDocument||J,q=OB(q),(G=v5.get(G))&&QZ(q,G),K=K.createElement("link"),v1(K);var z=K;z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),L2(K,"link",q),$.instance=K}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&KA)===W8&&(_.count++,$=o$.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function sI(_,J){return _.stylesheets&&_.count===0&&e$(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&e$(_,_.stylesheets),_.unsuspend){var K=_.unsuspend;_.unsuspend=null,K()}},cP+J);0<_.imgBytes&&uK===0&&(uK=125*PI()*dP);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&e$(_,_.stylesheets),_.unsuspend)){var K=_.unsuspend;_.unsuspend=null,K()}},(_.imgBytes>uK?50:lP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function o$(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)e$(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function e$(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,qq=new Map,J.forEach(tI,_),qq=null,o$.call(_))}function tI(_,J){if(!(J.state.loading&k5)){var $=qq.get(_);if($)var q=$.get(EK);else{$=new Map,qq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),K=0;K<G.length;K++){var z=G[K];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(EK,q)}G=J.instance,z=G.getAttribute("data-precedence"),K=$.get(z)||q,K===q&&$.set(EK,G),$.set(z,G),this.count++,q=o$.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),K?K.parentNode.insertBefore(G,K.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=k5}}function nI(_,J,$,q,G,K,z,L,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=G,this.onCaughtError=K,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function fB(_,J,$,q,G,K,z,L,I,C,e,_1){return _=new nI(_,J,$,z,I,C,e,_1,L),J=LP,K===!0&&(J|=f2|d5),J|=a1,K=M(3,null,null,J),_.current=K,K.stateNode=_,J=kU(),g6(J),_.pooledCache=J,g6(J),K.memoizedState={element:q,isDehydrated:$,cache:J},EU(K),_}function CB(_){if(!_)return t3;return _=t3,_}function UZ(_,J,$,q,G,K){if(N2&&typeof N2.onScheduleFiberRoot==="function")try{N2.onScheduleFiberRoot(B7,q,$)}catch(z){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",z))}G=CB(G),q.context===null?q.context=G:q.pendingContext=G,w4&&Y5!==null&&!zA&&(zA=!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
|
+
|
|
184
|
+
Check the render method of %s.`,m(Y5)||"Unknown")),q=b3(J),q.payload={element:$},K=K===void 0?null:K,K!==null&&(typeof K!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",K),q.callback=K),$=u3(_,q,J),$!==null&&(K4(J,"root.render()",null),u0($,_,J),b9($,_,J))}function SB(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function GZ(_,J){SB(_,J),(_=_.alternate)&&SB(_,J)}function jB(_){if(_.tag===13||_.tag===31){var J=P2(_,67108864);J!==null&&u0(J,_,67108864),GZ(_,67108864)}}function VB(_){if(_.tag===13||_.tag===31){var J=F5(_);J=p4(J);var $=P2(_,J);$!==null&&u0($,_,J),GZ(_,J)}}function oI(){return Y5}function eI(_,J,$,q){var G=K1.T;K1.T=null;var K=W0.p;try{W0.p=z5,ZZ(_,J,$,q)}finally{W0.p=K,K1.T=G}}function _w(_,J,$,q){var G=K1.T;K1.T=null;var K=W0.p;try{W0.p=l5,ZZ(_,J,$,q)}finally{W0.p=K,K1.T=G}}function ZZ(_,J,$,q){if(Gq){var G=KZ(q);if(G===null)iG(_,J,q,Zq,$),kB(_,q);else if(Jw(G,_,J,$,q))q.stopPropagation();else if(kB(_,q),J&4&&-1<rP.indexOf(_)){for(;G!==null;){var K=c1(G);if(K!==null)switch(K.tag){case 3:if(K=K.stateNode,K.current.memoizedState.isDehydrated){var z=R2(K.pendingLanes);if(z!==0){var L=K;L.pendingLanes|=2;for(L.entangledLanes|=2;z;){var I=1<<31-E2(z);L.entanglements[1]|=I,z&=~I}T4(K),(F0&($2|A5))===Y2&&(cQ=F2()+gL,s9(0,!1))}}break;case 31:case 13:L=P2(K,2),L!==null&&u0(L,K,2),U7(),GZ(K,2)}if(K=KZ(q),K===null&&iG(_,J,q,Zq,$),K===G)break;G=K}G!==null&&q.stopPropagation()}else iG(_,J,q,null,$)}}function KZ(_){return _=BU(_),FZ(_)}function FZ(_){if(Zq=null,_=j1(_),_!==null){var J=f(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=D(J),_!==null)return _;_=null}else if($===31){if(_=N(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return Zq=_,null}function yB(_){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 z5;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 l5;case"message":switch(Xw()){case IZ:return z5;case wZ:return l5;case z7:case Hw:return f4;case PZ:return FQ;default:return f4}default:return f4}}function kB(_,J){switch(_){case"focusin":case"focusout":z6=null;break;case"dragenter":case"dragleave":B6=null;break;case"mouseover":case"mouseout":W6=null;break;case"pointerover":case"pointerout":t_.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":n_.delete(J.pointerId)}}function $_(_,J,$,q,G,K){if(_===null||_.nativeEvent!==K)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:K,targetContainers:[G]},J!==null&&(J=c1(J),J!==null&&jB(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Jw(_,J,$,q,G){switch(J){case"focusin":return z6=$_(z6,_,J,$,q,G),!0;case"dragenter":return B6=$_(B6,_,J,$,q,G),!0;case"mouseover":return W6=$_(W6,_,J,$,q,G),!0;case"pointerover":var K=G.pointerId;return t_.set(K,$_(t_.get(K)||null,_,J,$,q,G)),!0;case"gotpointercapture":return K=G.pointerId,n_.set(K,$_(n_.get(K)||null,_,J,$,q,G)),!0}return!1}function vB(_){var J=j1(_.target);if(J!==null){var $=f(J);if($!==null){if(J=$.tag,J===13){if(J=D($),J!==null){_.blockedOn=J,O1(_.priority,function(){VB($)});return}}else if(J===31){if(J=N($),J!==null){_.blockedOn=J,O1(_.priority,function(){VB($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function _Q(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=KZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;Z_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Z_=G,$.target.dispatchEvent(q),Z_===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."),Z_=null}else return J=c1($),J!==null&&jB(J),_.blockedOn=$,!1;J.shift()}return!0}function DB(_,J,$){_Q(_)&&$.delete(J)}function $w(){hK=!1,z6!==null&&_Q(z6)&&(z6=null),B6!==null&&_Q(B6)&&(B6=null),W6!==null&&_Q(W6)&&(W6=null),t_.forEach(DB),n_.forEach(DB)}function JQ(_,J){_.blockedOn===J&&(_.blockedOn=null,hK||(hK=!0,X0.unstable_scheduleCallback(X0.unstable_NormalPriority,$w)))}function bB(_){Kq!==_&&(Kq=_,X0.unstable_scheduleCallback(X0.unstable_NormalPriority,function(){Kq===_&&(Kq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(FZ(q||$)===null)continue;else break;var K=c1($);K!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),FG(K,$,q,G))}}))}function X7(_){function J(I){return JQ(I,_)}z6!==null&&JQ(z6,_),B6!==null&&JQ(B6,_),W6!==null&&JQ(W6,_),t_.forEach(J),n_.forEach(J);for(var $=0;$<L6.length;$++){var q=L6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<L6.length&&($=L6[0],$.blockedOn===null);)vB($),$.blockedOn===null&&L6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],K=$[q+1],z=G[h2]||null;if(typeof K==="function")z||bB($);else if(z){var L=null;if(K&&K.hasAttribute("formAction")){if(G=K,z=K[h2]||null)L=z.formAction;else if(FZ(G)!==null)continue}else L=z.action;typeof L==="function"?$[q+1]=L:($.splice(q,3),q-=3),bB($)}}}function uB(){function _(K){K.canIntercept&&K.info==="react-transition"&&K.intercept({handler:function(){return new Promise(function(z){return G=z})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var K=navigation.currentEntry;K&&K.url!=null&&navigation.navigate(K.url,{state:K.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,G=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",J),navigation.addEventListener("navigateerror",J),setTimeout($,100),function(){q=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",J),navigation.removeEventListener("navigateerror",J),G!==null&&(G(),G=null)}}}function XZ(_){this._internalRoot=_}function $Q(_){this._internalRoot=_}function EB(_){_[i3]&&(_._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 _0=Object.assign,Qw=Symbol.for("react.element"),O4=Symbol.for("react.transitional.element"),H7=Symbol.for("react.portal"),Y7=Symbol.for("react.fragment"),QQ=Symbol.for("react.strict_mode"),HZ=Symbol.for("react.profiler"),YZ=Symbol.for("react.consumer"),I4=Symbol.for("react.context"),Q_=Symbol.for("react.forward_ref"),zZ=Symbol.for("react.suspense"),BZ=Symbol.for("react.suspense_list"),qQ=Symbol.for("react.memo"),H5=Symbol.for("react.lazy"),WZ=Symbol.for("react.activity"),qw=Symbol.for("react.memo_cache_sentinel"),hB=Symbol.iterator,Uw=Symbol.for("react.client.reference"),_2=Array.isArray,K1=a7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W0=gK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gw=Object.freeze({pending:!1,data:null,method:null,action:null}),LZ=[],AZ=[],o4=-1,c3=a(null),q_=a(null),l3=a(null),UQ=a(null),U_=0,xB,mB,gB,pB,cB,lB,dB;k.__reactDisabledLog=!0;var MZ,iB,TZ=!1,RZ=new(typeof WeakMap==="function"?WeakMap:Map),Y5=null,w4=!1,c5=Object.prototype.hasOwnProperty,OZ=X0.unstable_scheduleCallback,Zw=X0.unstable_cancelCallback,Kw=X0.unstable_shouldYield,Fw=X0.unstable_requestPaint,F2=X0.unstable_now,Xw=X0.unstable_getCurrentPriorityLevel,IZ=X0.unstable_ImmediatePriority,wZ=X0.unstable_UserBlockingPriority,z7=X0.unstable_NormalPriority,Hw=X0.unstable_LowPriority,PZ=X0.unstable_IdlePriority,Yw=X0.log,zw=X0.unstable_setDisableYieldValue,B7=null,N2=null,P4=!1,N4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",E2=Math.clz32?Math.clz32:r2,Bw=Math.log,Ww=Math.LN2,GQ=256,ZQ=262144,KQ=4194304,z5=2,l5=8,f4=32,FQ=268435456,d3=Math.random().toString(36).slice(2),A2="__reactFiber$"+d3,h2="__reactProps$"+d3,i3="__reactContainer$"+d3,NZ="__reactEvents$"+d3,Lw="__reactListeners$"+d3,Aw="__reactHandles$"+d3,rB="__reactResources$"+d3,G_="__reactMarker$"+d3,aB=new Set,a6={},fZ={},Mw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Tw=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]*$"),sB={},tB={},Rw=/[\n"\\]/g,nB=!1,oB=!1,eB=!1,_W=!1,JW=!1,$W=!1,QW=["value","defaultValue"],qW=!1,UW=/["'&<>\n\t]|^\s|\s$/,Ow="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(" "),GW="applet caption html table td th marquee object template foreignObject desc title".split(" "),Iw=GW.concat(["button"]),ww="dd dt li option optgroup p rp rt".split(" "),ZW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},XQ={},CZ={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"]},KW=/([A-Z])/g,FW=/^ms-/,Pw=/^(?:webkit|moz|o)[A-Z]/,Nw=/^-ms-/,fw=/-(.)/g,XW=/;\s*$/,W7={},SZ={},HW=!1,YW=!1,zW=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(" ")),HQ="http://www.w3.org/1998/Math/MathML",L7="http://www.w3.org/2000/svg",Cw=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"]]),YQ={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"},BW={"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},A7={},Sw=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]*$"),jw=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]*$"),WW=!1,x2={},LW=/^on./,Vw=/^on[^A-Z]/,yw=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kw=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),vw=/^[\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,Z_=null,M7=null,T7=null,jZ=!1,C4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),VZ=!1;if(C4)try{var K_={};Object.defineProperty(K_,"passive",{get:function(){VZ=!0}}),window.addEventListener("test",K_,K_),window.removeEventListener("test",K_,K_)}catch(_){VZ=!1}var r3=null,yZ=null,zQ=null,s6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},BQ=t2(s6),F_=_0({},s6,{view:0,detail:0}),Dw=t2(F_),kZ,vZ,X_,WQ=_0({},F_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:WU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==X_&&(X_&&_.type==="mousemove"?(kZ=_.screenX-X_.screenX,vZ=_.screenY-X_.screenY):vZ=kZ=0,X_=_),kZ},movementY:function(_){return"movementY"in _?_.movementY:vZ}}),AW=t2(WQ),bw=_0({},WQ,{dataTransfer:0}),uw=t2(bw),Ew=_0({},F_,{relatedTarget:0}),DZ=t2(Ew),hw=_0({},s6,{animationName:0,elapsedTime:0,pseudoElement:0}),xw=t2(hw),mw=_0({},s6,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),gw=t2(mw),pw=_0({},s6,{data:0}),MW=t2(pw),cw=MW,lw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dw={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"},iw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},rw=_0({},F_,{key:function(_){if(_.key){var J=lw[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=_$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?dw[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:WU,charCode:function(_){return _.type==="keypress"?_$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?_$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),aw=t2(rw),sw=_0({},WQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),TW=t2(sw),tw=_0({},F_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:WU}),nw=t2(tw),ow=_0({},s6,{propertyName:0,elapsedTime:0,pseudoElement:0}),ew=t2(ow),_P=_0({},WQ,{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}),JP=t2(_P),$P=_0({},s6,{newState:0,oldState:0}),QP=t2($P),qP=[9,13,27,32],RW=229,bZ=C4&&"CompositionEvent"in window,H_=null;C4&&"documentMode"in document&&(H_=document.documentMode);var UP=C4&&"TextEvent"in window&&!H_,OW=C4&&(!bZ||H_&&8<H_&&11>=H_),IW=32,wW=String.fromCharCode(IW),PW=!1,R7=!1,GP={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},Y_=null,z_=null,NW=!1;C4&&(NW=CO("input")&&(!document.documentMode||9<document.documentMode));var m2=typeof Object.is==="function"?Object.is:vO,ZP=C4&&"documentMode"in document&&11>=document.documentMode,O7=null,uZ=null,B_=null,EZ=!1,I7={animationend:D6("Animation","AnimationEnd"),animationiteration:D6("Animation","AnimationIteration"),animationstart:D6("Animation","AnimationStart"),transitionrun:D6("Transition","TransitionRun"),transitionstart:D6("Transition","TransitionStart"),transitioncancel:D6("Transition","TransitionCancel"),transitionend:D6("Transition","TransitionEnd")},hZ={},fW={};C4&&(fW=document.createElement("div").style,("AnimationEvent"in window)||(delete I7.animationend.animation,delete I7.animationiteration.animation,delete I7.animationstart.animation),("TransitionEvent"in window)||delete I7.transitionend.transition);var CW=b6("animationend"),SW=b6("animationiteration"),jW=b6("animationstart"),KP=b6("transitionrun"),FP=b6("transitionstart"),XP=b6("transitioncancel"),VW=b6("transitionend"),yW=new Map,xZ="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(" ");xZ.push("scrollEnd");var kW=0;if(typeof performance==="object"&&typeof performance.now==="function")var HP=performance,vW=function(){return HP.now()};else{var YP=Date;vW=function(){return YP.now()}}var mZ=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(_)},zP="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.",LQ=0,gZ=1,pZ=2,cZ=3,AQ="– ",MQ="+ ",DW=" ",f0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",I5="Components ⚛",J0="Scheduler ⚛",$0="Blocking",a3=!1,e4={color:"primary",properties:null,tooltipText:"",track:I5},s3={start:-0,end:-0,detail:{devtools:e4}},BP=["Changed Props",""],bW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",WP=["Changed Props",bW],W_=1,_3=2,w5=[],w7=0,lZ=0,t3={};Object.freeze(t3);var P5=null,P7=null,m1=0,LP=1,a1=2,f2=8,d5=16,AP=32,uW=!1;try{var EW=Object.preventExtensions({})}catch(_){uW=!0}var dZ=new WeakMap,N7=[],f7=0,TQ=null,L_=0,N5=[],f5=0,t6=null,J3=1,$3="",M2=null,C0=null,q0=!1,S4=!1,B5=null,n3=null,C5=!1,iZ=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."),rZ=a(null),aZ=a(null),hW={},RQ=null,C7=null,S7=!1,MP=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 $()})}},TP=X0.unstable_scheduleCallback,RP=X0.unstable_NormalPriority,d0={$$typeof:I4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},i0=X0.unstable_now,OQ=console.createTask?console.createTask:function(){return null},A_=1,IQ=2,X2=-0,o3=-0,Q3=-0,q3=null,g2=-1.1,n6=-0,v0=-0,u1=-1.1,h1=-1.1,V0=null,E0=!1,e3=-0,j4=-1.1,M_=null,_6=0,sZ=null,tZ=null,o6=-1.1,T_=null,j7=-1.1,wQ=-1.1,V4=-0,U3=-1.1,S5=-1.1,nZ=0,R_=null,xW=null,mW=null,J6=-1.1,e6=null,$6=-1.1,PQ=-1.1,gW=-0,pW=-0,NQ=0,G3=null,cW=0,O_=-1.1,fQ=!1,CQ=!1,I_=null,oZ=0,_8=0,V7=null,lW=K1.S;K1.S=function(_,J){if(xL=F2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>U3&&0>S5){U3=i0();var $=o9(),q=n9();if($!==$6||q!==e6)$6=-1.1;J6=$,e6=q}mO(_,J)}lW!==null&&lW(_,J)};var J8=a(null),i5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},w_=[],P_=[],N_=[],f_=[],C_=[],S_=[],$8=new Set;i5.recordUnsafeLifecycleWarnings=function(_,J){$8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&w_.push(_),_.mode&f2&&typeof J.UNSAFE_componentWillMount==="function"&&P_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&N_.push(_),_.mode&f2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&f_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&C_.push(_),_.mode&f2&&typeof J.UNSAFE_componentWillUpdate==="function"&&S_.push(_))},i5.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<w_.length&&(w_.forEach(function(L){_.add(m(L)||"Component"),$8.add(L.type)}),w_=[]);var J=new Set;0<P_.length&&(P_.forEach(function(L){J.add(m(L)||"Component"),$8.add(L.type)}),P_=[]);var $=new Set;0<N_.length&&(N_.forEach(function(L){$.add(m(L)||"Component"),$8.add(L.type)}),N_=[]);var q=new Set;0<f_.length&&(f_.forEach(function(L){q.add(m(L)||"Component"),$8.add(L.type)}),f_=[]);var G=new Set;0<C_.length&&(C_.forEach(function(L){G.add(m(L)||"Component"),$8.add(L.type)}),C_=[]);var K=new Set;if(0<S_.length&&(S_.forEach(function(L){K.add(m(L)||"Component"),$8.add(L.type)}),S_=[]),0<J.size){var z=A(J);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
|
+
|
|
186
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
|
+
|
|
188
|
+
Please update the following components: %s`,z)}0<q.size&&(z=A(q),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
|
+
|
|
190
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
|
+
|
|
193
|
+
Please update the following components: %s`,z)),0<K.size&&(z=A(K),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
+
|
|
195
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
+
|
|
197
|
+
Please update the following components: %s`,z)),0<_.size&&(z=A(_),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
|
+
|
|
199
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
|
+
* Rename componentWillMount to UNSAFE_componentWillMount 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.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,z)),0<$.size&&(z=A($),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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.
|
|
207
|
+
|
|
208
|
+
Please update the following components: %s`,z)),0<G.size&&(z=A(G),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
|
+
|
|
210
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
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
|
+
|
|
213
|
+
Please update the following components: %s`,z))};var SQ=new Map,dW=new Set;i5.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&f2&&($=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."):!dW.has(_.type)&&(q=SQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],SQ.set($,q)),q.push(_))},i5.flushLegacyContextWarning=function(){SQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),dW.add(G.type)});var q=A($);B1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
|
+
|
|
215
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
|
+
|
|
217
|
+
Please update the following components: %s
|
|
218
|
+
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},i5.discardPendingWarnings=function(){w_=[],P_=[],N_=[],f_=[],C_=[],S_=[],SQ=new Map};var iW={react_stack_bottom_frame:function(_,J,$){var q=w4;w4=!0;try{return _(J,$)}finally{w4=q}}},eZ=iW.react_stack_bottom_frame.bind(iW),rW={react_stack_bottom_frame:function(_){var J=w4;w4=!0;try{return _.render()}finally{w4=J}}},aW=rW.react_stack_bottom_frame.bind(rW),sW={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){B0(_,_.return,$)}}},_K=sW.react_stack_bottom_frame.bind(sW),tW={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(K){B0(_,_.return,K)}}},nW=tW.react_stack_bottom_frame.bind(tW),oW={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},OP=oW.react_stack_bottom_frame.bind(oW),eW={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){B0(_,J,q)}}},_L=eW.react_stack_bottom_frame.bind(eW),JL={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},IP=JL.react_stack_bottom_frame.bind(JL),$L={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){B0(_,J,q)}}},wP=$L.react_stack_bottom_frame.bind($L),QL={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},PP=QL.react_stack_bottom_frame.bind(QL),y7=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`."),JK=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."),jQ=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."),VQ={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.')}},Q8=null,j_=!1,k7=null,V_=0,s1=null,$K,qL=$K=!1,UL={},GL={},ZL={};T=function(_,J,$){if($!==null&&typeof $==="object"&&$._store&&(!$._store.validated&&$.key==null||$._store.validated===2)){if(typeof $._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");$._store.validated=1;var q=m(_),G=q||"null";if(!UL[G]){UL[G]=!0,$=$._owner,_=_._debugOwner;var K="";_&&typeof _.tag==="number"&&(G=m(_))&&(K=`
|
|
220
|
+
|
|
221
|
+
Check the render method of \``+G+"`."),K||q&&(K=`
|
|
222
|
+
|
|
223
|
+
Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=m($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),B1(J,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',K,z)})}}};var q8=eH(!0),KL=eH(!1),FL=0,XL=1,HL=2,QK=3,Q6=!1,YL=!1,qK=null,UK=!1,v7=a(null),yQ=a(0),W5=a(null),j5=null,D7=1,y_=2,p0=a(0),kQ=0,V5=1,p2=2,L5=4,c2=8,b7,zL=new Set,BL=new Set,GK=new Set,WL=new Set,Z3=0,d1=null,O0=null,r0=null,vQ=!1,u7=!1,U8=!1,DQ=0,k_=0,K3=null,NP=0,fP=25,Z1=null,y5=null,F3=-1,v_=!1,D_={readContext:j0,use:x3,useCallback:x0,useContext:x0,useEffect:x0,useImperativeHandle:x0,useLayoutEffect:x0,useInsertionEffect:x0,useMemo:x0,useReducer:x0,useRef:x0,useState:x0,useDebugValue:x0,useDeferredValue:x0,useTransition:x0,useSyncExternalStore:x0,useId:x0,useHostTransitionStatus:x0,useFormState:x0,useActionState:x0,useOptimistic:x0,useMemoCache:x0,useCacheRefresh:x0};D_.useEffectEvent=x0;var ZK=null,LL=null,KK=null,AL=null,y4=null,r5=null,bQ=null;ZK={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",e1(),o8(J),UG(_,J)},useContext:function(_){return Z1="useContext",e1(),j0(_)},useEffect:function(_,J){return Z1="useEffect",e1(),o8(J),S$(_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",e1(),o8($),qG(_,J,$)},useInsertionEffect:function(_,J){Z1="useInsertionEffect",e1(),o8(J),c6(4,p2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",e1(),o8(J),QG(_,J)},useMemo:function(_,J){Z1="useMemo",e1(),o8(J);var $=K1.H;K1.H=y4;try{return GG(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",e1();var q=K1.H;K1.H=y4;try{return aU(_,J,$)}finally{K1.H=q}},useRef:function(_){return Z1="useRef",e1(),JG(_)},useState:function(_){Z1="useState",e1();var J=K1.H;K1.H=y4;try{return oU(_)}finally{K1.H=J}},useDebugValue:function(){Z1="useDebugValue",e1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",e1(),ZG(_,J)},useTransition:function(){return Z1="useTransition",e1(),XG()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",e1(),tU(_,J,$)},useId:function(){return Z1="useId",e1(),HG()},useFormState:function(_,J){return Z1="useFormState",e1(),w$(),_7(_,J)},useActionState:function(_,J){return Z1="useActionState",e1(),_7(_,J)},useOptimistic:function(_){return Z1="useOptimistic",e1(),eU(_)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",e1(),YG()},useEffectEvent:function(_){return Z1="useEffectEvent",e1(),$G(_)}},LL={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",R1(),UG(_,J)},useContext:function(_){return Z1="useContext",R1(),j0(_)},useEffect:function(_,J){return Z1="useEffect",R1(),S$(_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",R1(),qG(_,J,$)},useInsertionEffect:function(_,J){Z1="useInsertionEffect",R1(),c6(4,p2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",R1(),QG(_,J)},useMemo:function(_,J){Z1="useMemo",R1();var $=K1.H;K1.H=y4;try{return GG(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",R1();var q=K1.H;K1.H=y4;try{return aU(_,J,$)}finally{K1.H=q}},useRef:function(_){return Z1="useRef",R1(),JG(_)},useState:function(_){Z1="useState",R1();var J=K1.H;K1.H=y4;try{return oU(_)}finally{K1.H=J}},useDebugValue:function(){Z1="useDebugValue",R1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",R1(),ZG(_,J)},useTransition:function(){return Z1="useTransition",R1(),XG()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",R1(),tU(_,J,$)},useId:function(){return Z1="useId",R1(),HG()},useActionState:function(_,J){return Z1="useActionState",R1(),_7(_,J)},useFormState:function(_,J){return Z1="useFormState",R1(),w$(),_7(_,J)},useOptimistic:function(_){return Z1="useOptimistic",R1(),eU(_)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",R1(),YG()},useEffectEvent:function(_){return Z1="useEffectEvent",R1(),$G(_)}},KK={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",R1(),y$(_,J)},useContext:function(_){return Z1="useContext",R1(),j0(_)},useEffect:function(_,J){Z1="useEffect",R1(),n2(2048,c2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",R1(),V$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",R1(),n2(4,p2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",R1(),n2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",R1();var $=K1.H;K1.H=r5;try{return k$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",R1();var q=K1.H;K1.H=r5;try{return e8(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",R1(),L0().memoizedState},useState:function(){Z1="useState",R1();var _=K1.H;K1.H=r5;try{return e8(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",R1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",R1(),OY(_,J)},useTransition:function(){return Z1="useTransition",R1(),CY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",R1(),N$(_,J,$)},useId:function(){return Z1="useId",R1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",R1(),w$(),f$(_)},useActionState:function(_){return Z1="useActionState",R1(),f$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",R1(),HY(_,J)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",R1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",R1(),j$(_)}},AL={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",R1(),y$(_,J)},useContext:function(_){return Z1="useContext",R1(),j0(_)},useEffect:function(_,J){Z1="useEffect",R1(),n2(2048,c2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",R1(),V$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",R1(),n2(4,p2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",R1(),n2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",R1();var $=K1.H;K1.H=bQ;try{return k$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",R1();var q=K1.H;K1.H=bQ;try{return x9(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",R1(),L0().memoizedState},useState:function(){Z1="useState",R1();var _=K1.H;K1.H=bQ;try{return x9(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",R1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",R1(),IY(_,J)},useTransition:function(){return Z1="useTransition",R1(),SY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",R1(),N$(_,J,$)},useId:function(){return Z1="useId",R1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",R1(),w$(),C$(_)},useActionState:function(_){return Z1="useActionState",R1(),C$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",R1(),zY(_,J)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",R1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",R1(),j$(_)}},y4={readContext:function(_){return R(),j0(_)},use:function(_){return W(),x3(_)},useCallback:function(_,J){return Z1="useCallback",W(),e1(),UG(_,J)},useContext:function(_){return Z1="useContext",W(),e1(),j0(_)},useEffect:function(_,J){return Z1="useEffect",W(),e1(),S$(_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",W(),e1(),qG(_,J,$)},useInsertionEffect:function(_,J){Z1="useInsertionEffect",W(),e1(),c6(4,p2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",W(),e1(),QG(_,J)},useMemo:function(_,J){Z1="useMemo",W(),e1();var $=K1.H;K1.H=y4;try{return GG(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",W(),e1();var q=K1.H;K1.H=y4;try{return aU(_,J,$)}finally{K1.H=q}},useRef:function(_){return Z1="useRef",W(),e1(),JG(_)},useState:function(_){Z1="useState",W(),e1();var J=K1.H;K1.H=y4;try{return oU(_)}finally{K1.H=J}},useDebugValue:function(){Z1="useDebugValue",W(),e1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",W(),e1(),ZG(_,J)},useTransition:function(){return Z1="useTransition",W(),e1(),XG()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",W(),e1(),tU(_,J,$)},useId:function(){return Z1="useId",W(),e1(),HG()},useFormState:function(_,J){return Z1="useFormState",W(),e1(),_7(_,J)},useActionState:function(_,J){return Z1="useActionState",W(),e1(),_7(_,J)},useOptimistic:function(_){return Z1="useOptimistic",W(),e1(),eU(_)},useMemoCache:function(_){return W(),p6(_)},useHostTransitionStatus:l6,useCacheRefresh:function(){return Z1="useCacheRefresh",e1(),YG()},useEffectEvent:function(_){return Z1="useEffectEvent",W(),e1(),$G(_)}},r5={readContext:function(_){return R(),j0(_)},use:function(_){return W(),x3(_)},useCallback:function(_,J){return Z1="useCallback",W(),R1(),y$(_,J)},useContext:function(_){return Z1="useContext",W(),R1(),j0(_)},useEffect:function(_,J){Z1="useEffect",W(),R1(),n2(2048,c2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",W(),R1(),V$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",W(),R1(),n2(4,p2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",W(),R1(),n2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",W(),R1();var $=K1.H;K1.H=r5;try{return k$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",W(),R1();var q=K1.H;K1.H=r5;try{return e8(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",W(),R1(),L0().memoizedState},useState:function(){Z1="useState",W(),R1();var _=K1.H;K1.H=r5;try{return e8(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",W(),R1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",W(),R1(),OY(_,J)},useTransition:function(){return Z1="useTransition",W(),R1(),CY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",W(),R1(),N$(_,J,$)},useId:function(){return Z1="useId",W(),R1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",W(),R1(),f$(_)},useActionState:function(_){return Z1="useActionState",W(),R1(),f$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",W(),R1(),HY(_,J)},useMemoCache:function(_){return W(),p6(_)},useHostTransitionStatus:l6,useCacheRefresh:function(){return Z1="useCacheRefresh",R1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",W(),R1(),j$(_)}},bQ={readContext:function(_){return R(),j0(_)},use:function(_){return W(),x3(_)},useCallback:function(_,J){return Z1="useCallback",W(),R1(),y$(_,J)},useContext:function(_){return Z1="useContext",W(),R1(),j0(_)},useEffect:function(_,J){Z1="useEffect",W(),R1(),n2(2048,c2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",W(),R1(),V$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",W(),R1(),n2(4,p2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",W(),R1(),n2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",W(),R1();var $=K1.H;K1.H=r5;try{return k$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",W(),R1();var q=K1.H;K1.H=r5;try{return x9(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",W(),R1(),L0().memoizedState},useState:function(){Z1="useState",W(),R1();var _=K1.H;K1.H=r5;try{return x9(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",W(),R1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",W(),R1(),IY(_,J)},useTransition:function(){return Z1="useTransition",W(),R1(),SY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",W(),R1(),N$(_,J,$)},useId:function(){return Z1="useId",W(),R1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",W(),R1(),C$(_)},useActionState:function(_){return Z1="useActionState",W(),R1(),C$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",W(),R1(),zY(_,J)},useMemoCache:function(_){return W(),p6(_)},useHostTransitionStatus:l6,useCacheRefresh:function(){return Z1="useCacheRefresh",R1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",W(),R1(),j$(_)}};var ML={},TL=new Set,RL=new Set,OL=new Set,IL=new Set,wL=new Set,PL=new Set,NL=new Set,fL=new Set,CL=new Set,SL=new Set;Object.freeze(ML);var FK={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=F5(_),G=b3(q);G.payload=J,$!==void 0&&$!==null&&(BG($),G.callback=$),J=u3(_,G,q),J!==null&&(K4(q,"this.setState()",_),u0(J,_,q),b9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=F5(_),G=b3(q);G.tag=XL,G.payload=J,$!==void 0&&$!==null&&(BG($),G.callback=$),J=u3(_,G,q),J!==null&&(K4(q,"this.replaceState()",_),u0(J,_,q),b9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=F5(_),q=b3($);q.tag=HL,J!==void 0&&J!==null&&(BG(J),q.callback=J),J=u3(_,q,$),J!==null&&(K4($,"this.forceUpdate()",_),u0(J,_,$),b9(J,_,$))}},E7=null,XK=null,HK=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."),a0=!1,jL={},VL={},yL={},kL={},h7=!1,vL={},uQ={},YK={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},DL=!1,bL=null;bL=new Set;var X3=!1,s0=!1,zK=!1,uL=typeof WeakSet==="function"?WeakSet:Set,H2=null,x7=null,m7=null,t0=null,_5=!1,a5=null,J2=!1,b_=8192,CP={getCacheForType:function(_){var J=j0(d0),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return j0(d0).controller.signal},getOwner:function(){return Y5}};if(typeof Symbol==="function"&&Symbol.for){var u_=Symbol.for;u_("selector.component"),u_("selector.has_pseudo_class"),u_("selector.role"),u_("selector.test_id"),u_("selector.text")}var SP=[],jP=typeof WeakMap==="function"?WeakMap:Map,Y2=0,$2=2,A5=4,H3=0,E_=1,G8=2,EQ=3,q6=4,hQ=6,EL=5,F0=Y2,I0=null,o1=null,t1=0,J5=0,xQ=1,Z8=2,h_=3,hL=4,BK=5,x_=6,mQ=7,WK=8,K8=9,A0=J5,M5=null,U6=!1,g7=!1,LK=!1,k4=0,D0=H3,G6=0,Z6=0,AK=0,$5=0,F8=0,m_=null,l2=null,gQ=!1,pQ=0,xL=0,mL=300,cQ=1/0,gL=500,g_=null,m0=null,K6=null,lQ=0,MK=1,TK=2,pL=3,F6=0,cL=1,lL=2,dL=3,iL=4,dQ=5,n0=0,X6=null,p7=null,s5=0,RK=0,OK=-0,IK=null,rL=null,aL=null,t5=lQ,sL=null,VP=50,p_=0,wK=null,PK=!1,iQ=!1,yP=50,X8=0,c_=null,c7=!1,rQ=null,tL=!1,nL=new Set,kP={},aQ=null,l7=null,NK=!1,fK=!1,sQ=!1,CK=!1,H6=0,SK={};(function(){for(var _=0;_<xZ.length;_++){var J=xZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),m5($,"on"+J)}m5(CW,"onAnimationEnd"),m5(SW,"onAnimationIteration"),m5(jW,"onAnimationStart"),m5("dblclick","onDoubleClick"),m5("focusin","onFocus"),m5("focusout","onBlur"),m5(KP,"onTransitionRun"),m5(FP,"onTransitionStart"),m5(XP,"onTransitionCancel"),m5(VW,"onTransitionEnd")})(),D2("onMouseEnter",["mouseout","mouseover"]),D2("onMouseLeave",["mouseout","mouseover"]),D2("onPointerEnter",["pointerout","pointerover"]),D2("onPointerLeave",["pointerout","pointerover"]),Z2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Z2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Z2("onBeforeInput",["compositionend","keypress","textInput","paste"]),Z2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Z2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Z2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var l_="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(" "),jK=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(l_)),tQ="_reactListening"+Math.random().toString(36).slice(2),oL=!1,eL=!1,nQ=!1,_A=!1,oQ=!1,eQ=!1,JA=!1,_q={},vP=/\r\n?/g,DP=/\u0000|\uFFFD/g,H8="http://www.w3.org/1999/xlink",VK="http://www.w3.org/XML/1998/namespace",bP="javascript:throw new Error('React form unexpectedly submitted.')",uP="suppressHydrationWarning",Y8="&",Jq="/&",d_="$",i_="/$",Y6="$?",z8="$~",d7="$!",EP="html",hP="body",xP="head",yK="F!",$A="F",QA="loading",mP="style",Y3=0,i7=1,$q=2,kK=null,vK=null,qA={dialog:!0,webview:!0},DK=null,r_=void 0,UA=typeof setTimeout==="function"?setTimeout:void 0,gP=typeof clearTimeout==="function"?clearTimeout:void 0,B8=-1,GA=typeof Promise==="function"?Promise:void 0,pP=typeof queueMicrotask==="function"?queueMicrotask:typeof GA<"u"?function(_){return GA.resolve(null).then(_).catch(fI)}:UA,bK=null,W8=0,a_=1,ZA=2,KA=3,k5=4,v5=new Map,FA=new Set,z3=W0.d;W0.d={f:function(){var _=z3.f(),J=U7();return _||J},r:function(_){var J=c1(_);J!==null&&J.tag===5&&J.type==="form"?fY(J):z3.r(_)},D:function(_){z3.D(_),TB("dns-prefetch",_,null)},C:function(_,J){z3.C(_,J),TB("preconnect",_,J)},L:function(_,J,$){z3.L(_,J,$);var q=r7;if(q&&_&&J){var G='link[rel="preload"][as="'+s2(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+s2($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+s2($.imageSizes)+'"]')):G+='[href="'+s2(_)+'"]':G+='[href="'+s2(_)+'"]';var K=G;switch(J){case"style":K=K7(_);break;case"script":K=F7(_)}v5.has(K)||(_=_0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),v5.set(K,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(__(K))||J==="script"&&q.querySelector(J_(K))||(J=q.createElement("link"),L2(J,"link",_),v1(J),q.head.appendChild(J)))}},m:function(_,J){z3.m(_,J);var $=r7;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+s2(q)+'"][href="'+s2(_)+'"]',K=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":K=F7(_)}if(!v5.has(K)&&(_=_0({rel:"modulepreload",href:_},J),v5.set(K,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(J_(K)))return}q=$.createElement("link"),L2(q,"link",_),v1(q),$.head.appendChild(q)}}},X:function(_,J){z3.X(_,J);var $=r7;if($&&_){var q=Z0($).hoistableScripts,G=F7(_),K=q.get(G);K||(K=$.querySelector(J_(G)),K||(_=_0({src:_,async:!0},J),(J=v5.get(G))&&qZ(_,J),K=$.createElement("script"),v1(K),L2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}},S:function(_,J,$){z3.S(_,J,$);var q=r7;if(q&&_){var G=Z0(q).hoistableStyles,K=K7(_);J=J||"default";var z=G.get(K);if(!z){var L={loading:W8,preload:null};if(z=q.querySelector(__(K)))L.loading=a_|k5;else{_=_0({rel:"stylesheet",href:_,"data-precedence":J},$),($=v5.get(K))&&QZ(_,$);var I=z=q.createElement("link");v1(I),L2(I,"link",_),I._p=new Promise(function(C,e){I.onload=C,I.onerror=e}),I.addEventListener("load",function(){L.loading|=a_}),I.addEventListener("error",function(){L.loading|=ZA}),L.loading|=k5,n$(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:L},G.set(K,z)}}},M:function(_,J){z3.M(_,J);var $=r7;if($&&_){var q=Z0($).hoistableScripts,G=F7(_),K=q.get(G);K||(K=$.querySelector(J_(G)),K||(_=_0({src:_,async:!0,type:"module"},J),(J=v5.get(G))&&qZ(_,J),K=$.createElement("script"),v1(K),L2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}}};var r7=typeof document>"u"?null:document,Qq=null,cP=60000,lP=800,dP=500,uK=0,EK=null,qq=null,L8=Gw,s_={$$typeof:I4,Provider:null,Consumer:null,_currentValue:L8,_currentValue2:L8,_threadCount:0},XA="%c%s%c",HA="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",YA="",Uq=" ",iP=Function.prototype.bind,zA=!1,BA=null,WA=null,LA=null,AA=null,MA=null,TA=null,RA=null,OA=null,IA=null,wA=null;BA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=_0({},_.memoizedProps),$=P2(_,2),$!==null&&u0($,_,2))},WA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=_0({},_.memoizedProps),$=P2(_,2),$!==null&&u0($,_,2))},LA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=_0({},_.memoizedProps),$=P2(_,2),$!==null&&u0($,_,2))},AA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=P2(_,2),J!==null&&u0(J,_,2)},MA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=P2(_,2),J!==null&&u0(J,_,2)},TA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=P2(_,2),J!==null&&u0(J,_,2)},RA=function(_){var J=P2(_,2);J!==null&&u0(J,_,2)},OA=function(_){var J=O2(),$=P2(_,J);$!==null&&u0($,_,J)},IA=function(_){B=_},wA=function(_){Y=_};var Gq=!0,Zq=null,hK=!1,z6=null,B6=null,W6=null,t_=new Map,n_=new Map,L6=[],rP="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(" "),Kq=null;if($Q.prototype.render=XZ.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):S($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=F5(q);UZ(q,G,$,J,null,null)},$Q.prototype.unmount=XZ.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;(F0&($2|A5))!==Y2&&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."),UZ(_.current,2,null,_,null,null),U7(),J[i3]=null}},$Q.prototype.unstable_scheduleHydration=function(_){if(_){var J=Q1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<L6.length&&J!==0&&J<L6[$].priority;$++);L6.splice($,0,_),$===0&&vB(_)}},function(){var _=a7.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
|
+
- react: `+(_+`
|
|
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"),W0.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 _=v(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:K1,reconcilerVersion:"19.2.7"};return _.overrideHookState=BA,_.overrideHookStateDeletePath=WA,_.overrideHookStateRenamePath=LA,_.overrideProps=AA,_.overridePropsDeletePath=MA,_.overridePropsRenamePath=TA,_.scheduleUpdate=RA,_.scheduleRetry=OA,_.setErrorHandler=IA,_.setSuspenseHandler=wA,_.scheduleRefresh=P,_.scheduleRoot=w,_.setRefreshHandler=y,_.getCurrentFiber=oI,e0(_)}()&&C4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var PA=window.location.protocol;/^(https?|file):$/.test(PA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(PA==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}GN.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");EB(_);var $=!1,q="",G=DY,K=bY,z=uY;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===O4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
|
+
|
|
229
|
+
let root = createRoot(domContainer);
|
|
230
|
+
root.render(<App />);`),J.unstable_strictMode===!0&&($=!0),J.identifierPrefix!==void 0&&(q=J.identifierPrefix),J.onUncaughtError!==void 0&&(G=J.onUncaughtError),J.onCaughtError!==void 0&&(K=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=fB(_,1,!1,null,null,$,q,null,G,K,z,uB),_[i3]=J.current,dG(_),new XZ(J)},GN.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");EB(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",K=DY,z=bY,L=uY,I=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(K=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(L=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=fB(_,1,!0,J,$!=null?$:null,q,G,I,K,z,L,uB),J.context=CB(null),$=J.current,q=F5($),q=p4(q),G=b3(q),G.callback=null,u3($,G,q),K4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,w2(J,$),T4(J),_[i3]=J.current,dG(_),new $Q(J)},GN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yA=v4((_v,VA)=>{var ZN=b0(jA());VA.exports=ZN});var T8=v4((KN)=>{var M8=b0(n5());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case y:return"Fragment";case f:return"Profiler";case S:return"StrictMode";case v:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case V:var g=k.render;return k=k.displayName,k||(k=g.displayName||g.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case u:return g=k.displayName||null,g!==null?g:Q(k.type)||"Memo";case b:g=k._payload,k=k._init;try{return Q(k(g))}catch(q1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var g=!1}catch(H1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(k)}}function X(k){if(k===y)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===b)return"<...>";try{var g=Q(k);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var k=a.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function B(k){if(J1.call(k,"key")){var g=Object.getOwnPropertyDescriptor(k,"key").get;if(g&&g.isReactWarning)return!1}return k.key!==void 0}function W(k,g){function q1(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}q1.isReactWarning=!0,Object.defineProperty(k,"key",{get:q1,configurable:!0})}function R(){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 O(k,g,q1,t,H1,M1){var A1=q1.ref;return k={$$typeof:w,type:k,key:g,props:q1,_owner:t},(A1!==void 0?A1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:R}):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:M1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,g,q1,t,H1,M1){var A1=g.children;if(A1!==void 0)if(t)if($1(A1)){for(t=0;t<A1.length;t++)A(A1[t]);Object.freeze&&Object.freeze(A1)}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(A1);if(J1.call(g,"key")){A1=Q(k);var L1=Object.keys(g).filter(function(T1){return T1!=="key"});t=0<L1.length?"{key: someKey, "+L1.join(": ..., ")+": ...}":"{key: someKey}",o[A1+t]||(L1=0<L1.length?"{"+L1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
231
|
+
let props = %s;
|
|
232
|
+
<%s {...props} />
|
|
233
|
+
React keys must be passed directly to JSX without using spread:
|
|
234
|
+
let props = %s;
|
|
235
|
+
<%s key={someKey} {...props} />`,t,A1,L1,A1),o[A1+t]=!0)}if(A1=null,q1!==void 0&&(Z(q1),A1=""+q1),B(g)&&(Z(g.key),A1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return A1&&W(q1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,A1,q1,H(),H1,M1)}function A(k){M(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===b&&(k._payload.status==="fulfilled"?M(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function M(k){return typeof k==="object"&&k!==null&&k.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),a=M8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J1=Object.prototype.hasOwnProperty,$1=Array.isArray,x=console.createTask?console.createTask:function(){return null};M8={react_stack_bottom_frame:function(k){return k()}};var p,c={},s=M8.react_stack_bottom_frame.bind(M8,Y)(),i=x(X(Y)),o={};KN.Fragment=y,KN.jsxDEV=function(k,g,q1,t){var H1=1e4>a.recentlyCreatedOwnerStacks++;return T(k,g,q1,t,H1?Error("react-stack-top-frame"):s,H1?x(X(k)):i)}})()});var mA=v4((BN)=>{var O8=b0(n5());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case y:return"Fragment";case f:return"Profiler";case S:return"StrictMode";case v:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case V:var g=k.render;return k=k.displayName,k||(k=g.displayName||g.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case u:return g=k.displayName||null,g!==null?g:Q(k.type)||"Memo";case b:g=k._payload,k=k._init;try{return Q(k(g))}catch(q1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var g=!1}catch(H1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(k)}}function X(k){if(k===y)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===b)return"<...>";try{var g=Q(k);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var k=a.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function B(k){if(J1.call(k,"key")){var g=Object.getOwnPropertyDescriptor(k,"key").get;if(g&&g.isReactWarning)return!1}return k.key!==void 0}function W(k,g){function q1(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}q1.isReactWarning=!0,Object.defineProperty(k,"key",{get:q1,configurable:!0})}function R(){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 O(k,g,q1,t,H1,M1){var A1=q1.ref;return k={$$typeof:w,type:k,key:g,props:q1,_owner:t},(A1!==void 0?A1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:R}):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:M1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,g,q1,t,H1,M1){var A1=g.children;if(A1!==void 0)if(t)if($1(A1)){for(t=0;t<A1.length;t++)A(A1[t]);Object.freeze&&Object.freeze(A1)}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(A1);if(J1.call(g,"key")){A1=Q(k);var L1=Object.keys(g).filter(function(T1){return T1!=="key"});t=0<L1.length?"{key: someKey, "+L1.join(": ..., ")+": ...}":"{key: someKey}",o[A1+t]||(L1=0<L1.length?"{"+L1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
236
|
+
let props = %s;
|
|
237
|
+
<%s {...props} />
|
|
238
|
+
React keys must be passed directly to JSX without using spread:
|
|
239
|
+
let props = %s;
|
|
240
|
+
<%s key={someKey} {...props} />`,t,A1,L1,A1),o[A1+t]=!0)}if(A1=null,q1!==void 0&&(Z(q1),A1=""+q1),B(g)&&(Z(g.key),A1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return A1&&W(q1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,A1,q1,H(),H1,M1)}function A(k){M(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===b&&(k._payload.status==="fulfilled"?M(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function M(k){return typeof k==="object"&&k!==null&&k.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),a=O8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J1=Object.prototype.hasOwnProperty,$1=Array.isArray,x=console.createTask?console.createTask:function(){return null};O8={react_stack_bottom_frame:function(k){return k()}};var p,c={},s=O8.react_stack_bottom_frame.bind(O8,Y)(),i=x(X(Y)),o={};BN.Fragment=y,BN.jsx=function(k,g,q1){var t=1e4>a.recentlyCreatedOwnerStacks++;return T(k,g,q1,!1,t?Error("react-stack-top-frame"):s,t?x(X(k)):i)},BN.jsxs=function(k,g,q1){var t=1e4>a.recentlyCreatedOwnerStacks++;return T(k,g,q1,!0,t?Error("react-stack-top-frame"):s,t?x(X(k)):i)}})()});var AT=v4((XS)=>{var R5=b0(n5());(function(){function Q(M,w){return M===w&&(M!==0||1/M===1/w)||M!==M&&w!==w}function U(M,w){O||R5.startTransition===void 0||(O=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var P=w();if(!T){var y=w();H(P,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}y=Y({inst:{value:P,getSnapshot:w}});var S=y[0].inst,f=y[1];return W(function(){S.value=P,S.getSnapshot=w,Z(S)&&f({inst:S})},[M,P,w]),B(function(){return Z(S)&&f({inst:S}),M(function(){Z(S)&&f({inst:S})})},[M]),R(P),P}function Z(M){var w=M.getSnapshot;M=M.value;try{var P=w();return!H(M,P)}catch(y){return!0}}function X(M,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=R5.useState,B=R5.useEffect,W=R5.useLayoutEffect,R=R5.useDebugValue,O=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?X:U;XS.useSyncExternalStore=R5.useSyncExternalStore!==void 0?R5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var MT=v4((HS)=>{var O3=b0(n5());(function(){function Q(R,O){return R===O&&(R!==0||1/R===1/O)||R!==R&&O!==O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=AT(),Z=typeof Object.is==="function"?Object.is:Q,X=U.useSyncExternalStore,H=O3.useRef,Y=O3.useEffect,B=O3.useMemo,W=O3.useDebugValue;HS.useSyncExternalStoreWithSelector=function(R,O,T,A,M){var w=H(null);if(w.current===null){var P={hasValue:!1,value:null};w.current=P}else P=w.current;w=B(function(){function S(v){if(!f){if(f=!0,D=v,v=A(v),M!==void 0&&P.hasValue){var h=P.value;if(M(h,v))return N=h}return N=v}if(h=N,Z(D,v))return h;var u=A(v);if(M!==void 0&&M(h,u))return D=v,h;return D=v,N=u}var f=!1,D,N,V=T===void 0?null:T;return[function(){return S(O())},V===null?void 0:function(){return S(V())}]},[O,T,A,M]);var y=X(R,w[0],w[1]);return Y(function(){P.hasValue=!0,P.value=y},[y]),W(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var MO=b0(yA(),1);var z2=b0(n5(),1);var kA={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 E1=b0(T8(),1),FN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function o_({href:Q,onClick:U}){return E1.jsxDEV("h1",{children:E1.jsxDEV("a",{href:Q,onClick:U,children:[E1.jsxDEV("img",{src:FN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),E1.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 W3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function DA(Q,U,Z=0,X=""){let[H,Y]=z2.useState({state:"loading"});return z2.useEffect(()=>{Y({state:"loading"})},[X,U]),z2.useEffect(()=>{if(!U)return;let B=!0;return(async()=>{try{let W=await Q(U),R=W.ok?{state:"ok",data:await W.json()}:{state:"error",status:W.status,error:await W3(W)};if(B)Y(R)}catch(W){if(B)Y({state:"error",status:0,error:String(W)})}})(),()=>{B=!1}},[X,U,Z]),H}function C2({load:Q,what:U,retry:Z,lines:X=3}){if(Q.state==="loading")return E1.jsxDEV(XN,{lines:X,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return E1.jsxDEV("div",{role:"alert",className:"error-state",children:[E1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?E1.jsxDEV("button",{type:"button",onClick:Z,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function XN({lines:Q=3,label:U="Loading…"}){return E1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,X)=>E1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][X%5]}%`}},X,!1,void 0,this))},void 0,!1,void 0,this)}function M0({iso:Q,time:U}){if(!Q)return E1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return E1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var lK=(Q)=>Q?new Date(Q).toLocaleString():"—";function dK(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let Z=Math.max(0,Math.round((Date.now()-U)/1000));return Z<60?"just now":Z<3600?`${Math.round(Z/60)}m ago`:Z<86400?`${Math.round(Z/3600)}h ago`:`${Math.round(Z/86400)}d ago`}function l0(Q,U){let Z=U.replace(/[_-]+/g," "),X=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:X}`}var R8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,HN={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"},g1=(Q)=>HN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function q2({vendor:Q}){let U=kA[Q];return E1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?E1.jsxDEV("svg",{viewBox:"0 0 24 24",children:E1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):g1(Q).charAt(0)},void 0,!1,void 0,this)}var vA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},YN="volter.theme",iK=()=>{try{let Q=localStorage.getItem(YN);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Xq(Q=iK()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function bA(){return z2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(X)=>{if(X.key!=="Escape"||document.querySelector("dialog[open]"))return;let H=Q();if(!H.length)return;for(let Y of H)Y.removeAttribute("open");H[H.length-1].querySelector("summary")?.focus()},Z=(X)=>{let H=X.target;for(let Y of Q())if(!H||!Y.contains(H))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function T5({open:Q,onClose:U,title:Z,children:X,footer:H,wide:Y}){let B=z2.useRef(null),W=z2.useId();return z2.useEffect(()=>{let R=B.current;if(!R)return;if(Q&&!R.open){R.showModal();let O=R.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(O?.focus(),O instanceof HTMLInputElement&&O.value&&/^(text|search|email|url)$/.test(O.type))O.select()}if(!Q&&R.open)R.close()},[Q]),E1.jsxDEV("dialog",{ref:B,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":W,onClose:U,onCancel:(R)=>{R.preventDefault(),U()},onMouseDown:(R)=>{if(R.target===B.current)U()},children:Q?E1.jsxDEV(E1.Fragment,{children:[E1.jsxDEV("div",{className:"dialog-head",children:[E1.jsxDEV("h2",{id:W,children:Z},void 0,!1,void 0,this),E1.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),E1.jsxDEV("div",{className:"dialog-body",children:X},void 0,!1,void 0,this),H?E1.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 pK="volter:confirm";function D4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(pK,{detail:{ask:Q,resolve:U}}))})}function uA(){let[Q,U]=z2.useState(null),[Z,X]=z2.useState("");z2.useEffect(()=>{let W=(R)=>{X(""),U(R.detail)};return window.addEventListener(pK,W),()=>window.removeEventListener(pK,W)},[]);let H=(W)=>{Q?.resolve(W),U(null)},Y=Q?.ask,B=!Y?.typed||Z===Y.typed;return E1.jsxDEV(T5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:E1.jsxDEV(E1.Fragment,{children:[E1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),E1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!B,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?E1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?E1.jsxDEV("div",{className:"typed-confirm",children:[E1.jsxDEV("p",{children:["Type ",E1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),E1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(W)=>X(W.target.value),onKeyDown:(W)=>{if(W.key==="Enter"&&B)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 cK="volter:toast";function Q2(Q,U="ok"){window.dispatchEvent(new CustomEvent(cK,{detail:{text:Q,kind:U}}))}function EA(){let[Q,U]=z2.useState([]);return z2.useEffect(()=>{let Z=0,X=(H)=>{let{text:Y,kind:B}=H.detail,W=++Z;if(U((R)=>[...R.slice(-3),{id:W,text:Y,kind:B}]),B!=="error")setTimeout(()=>U((R)=>R.filter((O)=>O.id!==W)),4500)};return window.addEventListener(cK,X),()=>window.removeEventListener(cK,X)},[]),E1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>E1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[E1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),E1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((X)=>X.filter((H)=>H.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function rK({value:Q,label:U,secret:Z}){let[X,H]=z2.useState(!1);return E1.jsxDEV("div",{className:"copy-field",children:[U?E1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,E1.jsxDEV("div",{className:"copy-row",children:[E1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(B)=>B.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),E1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),Q2(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>Q2("Your browser would not copy it: select it and copy","error"))},children:X?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function hA({label:Q,items:U}){return E1.jsxDEV("details",{className:"menu row-menu",children:[E1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?E1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:vA,children:Z.label},Z.label,!1,void 0,this):E1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(X)=>{vA(X),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function e_({title:Q,children:U,action:Z}){return E1.jsxDEV("div",{className:"empty-state",children:[E1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?E1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?E1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function xA(){return z2.useEffect(()=>{let Q=(Z)=>{let X=document.querySelector("main.app"),H=Z.target;if(X?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))X.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")zN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),E1.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 zN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var Y1=b0(n5(),1);var F1=b0(mA(),1),X1=b0(n5(),1);function h0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,X;Z<Q.length;Z++)if((X=h0(Q[Z]))!=="")U+=(U&&" ")+X}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var WN={value:()=>{}};function pA(){for(var Q=0,U=arguments.length,Z={},X;Q<U;++Q){if(!(X=arguments[Q]+"")||X in Z||/[\s.]/.test(X))throw Error("illegal type: "+X);Z[X]=[]}return new Hq(Z)}function Hq(Q){this._=Q}function LN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var X="",H=Z.indexOf(".");if(H>=0)X=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:X}})}Hq.prototype=pA.prototype={constructor:Hq,on:function(Q,U){var Z=this._,X=LN(Q+"",Z),H,Y=-1,B=X.length;if(arguments.length<2){while(++Y<B)if((H=(Q=X[Y]).type)&&(H=AN(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<B)if(H=(Q=X[Y]).type)Z[H]=gA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=gA(Z[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new Hq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),X=0,H,Y;X<H;++X)Z[X]=arguments[X+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],X=0,H=Y.length;X<H;++X)Y[X].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var X=this._[Q],H=0,Y=X.length;H<Y;++H)X[H].value.apply(U,Z)}};function AN(Q,U){for(var Z=0,X=Q.length,H;Z<X;++Z)if((H=Q[Z]).name===U)return H.value}function gA(Q,U,Z){for(var X=0,H=Q.length;X<H;++X)if(Q[X].name===U){Q[X]=WN,Q=Q.slice(0,X).concat(Q.slice(X+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var I8=pA;function s7(Q){return function(){return this.matches(Q)}}function Yq(Q){return function(U){return U.matches(Q)}}var zq="http://www.w3.org/1999/xhtml",aK={svg:"http://www.w3.org/2000/svg",xhtml:zq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function b4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return aK.hasOwnProperty(U)?{space:aK[U],local:Q}:Q}function sK(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function S2(Q,U){if(Q=sK(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var X=Z.createSVGPoint();return X.x=Q.clientX,X.y=Q.clientY,X=X.matrixTransform(U.getScreenCTM().inverse()),[X.x,X.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function MN(){}function A6(Q){return Q==null?MN:function(){return this.querySelector(Q)}}function tK(Q){if(typeof Q!=="function")Q=A6(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],B=Y.length,W=X[H]=Array(B),R,O,T=0;T<B;++T)if((R=Y[T])&&(O=Q.call(R,R.__data__,T,Y))){if("__data__"in R)O.__data__=R.__data__;W[T]=O}return new g0(X,this._parents)}function nK(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function TN(){return[]}function t7(Q){return Q==null?TN:function(){return this.querySelectorAll(Q)}}function RN(Q){return function(){return nK(Q.apply(this,arguments))}}function oK(Q){if(typeof Q==="function")Q=RN(Q);else Q=t7(Q);for(var U=this._groups,Z=U.length,X=[],H=[],Y=0;Y<Z;++Y)for(var B=U[Y],W=B.length,R,O=0;O<W;++O)if(R=B[O])X.push(Q.call(R,R.__data__,O,B)),H.push(R);return new g0(X,H)}var ON=Array.prototype.find;function IN(Q){return function(){return ON.call(this.children,Q)}}function wN(){return this.firstElementChild}function eK(Q){return this.select(Q==null?wN:IN(typeof Q==="function"?Q:Yq(Q)))}var PN=Array.prototype.filter;function NN(){return Array.from(this.children)}function fN(Q){return function(){return PN.call(this.children,Q)}}function _F(Q){return this.selectAll(Q==null?NN:fN(typeof Q==="function"?Q:Yq(Q)))}function JF(Q){if(typeof Q!=="function")Q=s7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],B=Y.length,W=X[H]=[],R,O=0;O<B;++O)if((R=Y[O])&&Q.call(R,R.__data__,O,Y))W.push(R);return new g0(X,this._parents)}function _J(Q){return Array(Q.length)}function $F(){return new g0(this._enter||this._groups.map(_J),this._parents)}function JJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}JJ.prototype={constructor:JJ,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 QF(Q){return function(){return Q}}function CN(Q,U,Z,X,H,Y){var B=0,W,R=U.length,O=Y.length;for(;B<O;++B)if(W=U[B])W.__data__=Y[B],X[B]=W;else Z[B]=new JJ(Q,Y[B]);for(;B<R;++B)if(W=U[B])H[B]=W}function SN(Q,U,Z,X,H,Y,B){var W,R,O=new Map,T=U.length,A=Y.length,M=Array(T),w;for(W=0;W<T;++W)if(R=U[W])if(M[W]=w=B.call(R,R.__data__,W,U)+"",O.has(w))H[W]=R;else O.set(w,R);for(W=0;W<A;++W)if(w=B.call(Q,Y[W],W,Y)+"",R=O.get(w))X[W]=R,R.__data__=Y[W],O.delete(w);else Z[W]=new JJ(Q,Y[W]);for(W=0;W<T;++W)if((R=U[W])&&O.get(M[W])===R)H[W]=R}function jN(Q){return Q.__data__}function qF(Q,U){if(!arguments.length)return Array.from(this,jN);var Z=U?SN:CN,X=this._parents,H=this._groups;if(typeof Q!=="function")Q=QF(Q);for(var Y=H.length,B=Array(Y),W=Array(Y),R=Array(Y),O=0;O<Y;++O){var T=X[O],A=H[O],M=A.length,w=VN(Q.call(T,T&&T.__data__,O,X)),P=w.length,y=W[O]=Array(P),S=B[O]=Array(P),f=R[O]=Array(M);Z(T,A,y,S,f,w,U);for(var D=0,N=0,V,v;D<P;++D)if(V=y[D]){if(D>=N)N=D+1;while(!(v=S[N])&&++N<P);V._next=v||null}}return B=new g0(B,X),B._enter=W,B._exit=R,B}function VN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function UF(){return new g0(this._exit||this._groups.map(_J),this._parents)}function GF(Q,U,Z){var X=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(X=Q(X),X)X=X.selection()}else X=X.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return X&&H?X.merge(H).order():H}function ZF(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,X=U._groups,H=Z.length,Y=X.length,B=Math.min(H,Y),W=Array(H),R=0;R<B;++R)for(var O=Z[R],T=X[R],A=O.length,M=W[R]=Array(A),w,P=0;P<A;++P)if(w=O[P]||T[P])M[P]=w;for(;R<H;++R)W[R]=Z[R];return new g0(W,this._parents)}function KF(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var X=Q[U],H=X.length-1,Y=X[H],B;--H>=0;)if(B=X[H]){if(Y&&B.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(B,Y);Y=B}return this}function FF(Q){if(!Q)Q=yN;function U(A,M){return A&&M?Q(A.__data__,M.__data__):!A-!M}for(var Z=this._groups,X=Z.length,H=Array(X),Y=0;Y<X;++Y){for(var B=Z[Y],W=B.length,R=H[Y]=Array(W),O,T=0;T<W;++T)if(O=B[T])R[T]=O;R.sort(U)}return new g0(H,this._parents).order()}function yN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function XF(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function HF(){return Array.from(this)}function YF(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length;H<Y;++H){var B=X[H];if(B)return B}return null}function zF(){let Q=0;for(let U of this)++Q;return Q}function BF(){return!this.node()}function WF(Q){for(var U=this._groups,Z=0,X=U.length;Z<X;++Z)for(var H=U[Z],Y=0,B=H.length,W;Y<B;++Y)if(W=H[Y])Q.call(W,W.__data__,Y,H);return this}function kN(Q){return function(){this.removeAttribute(Q)}}function vN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function DN(Q,U){return function(){this.setAttribute(Q,U)}}function bN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function uN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function EN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,Z)}}function LF(Q,U){var Z=b4(Q);if(arguments.length<2){var X=this.node();return Z.local?X.getAttributeNS(Z.space,Z.local):X.getAttribute(Z)}return this.each((U==null?Z.local?vN:kN:typeof U==="function"?Z.local?EN:uN:Z.local?bN:DN)(Z,U))}function $J(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function hN(Q){return function(){this.style.removeProperty(Q)}}function xN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function mN(Q,U,Z){return function(){var X=U.apply(this,arguments);if(X==null)this.style.removeProperty(Q);else this.style.setProperty(Q,X,Z)}}function AF(Q,U,Z){return arguments.length>1?this.each((U==null?hN:typeof U==="function"?mN:xN)(Q,U,Z==null?"":Z)):M6(this.node(),Q)}function M6(Q,U){return Q.style.getPropertyValue(U)||$J(Q).getComputedStyle(Q,null).getPropertyValue(U)}function gN(Q){return function(){delete this[Q]}}function pN(Q,U){return function(){this[Q]=U}}function cN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function MF(Q,U){return arguments.length>1?this.each((U==null?gN:typeof U==="function"?cN:pN)(Q,U)):this.node()[Q]}function cA(Q){return Q.trim().split(/^|\s+/)}function TF(Q){return Q.classList||new lA(Q)}function lA(Q){this._node=Q,this._names=cA(Q.getAttribute("class")||"")}lA.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 dA(Q,U){var Z=TF(Q),X=-1,H=U.length;while(++X<H)Z.add(U[X])}function iA(Q,U){var Z=TF(Q),X=-1,H=U.length;while(++X<H)Z.remove(U[X])}function lN(Q){return function(){dA(this,Q)}}function dN(Q){return function(){iA(this,Q)}}function iN(Q,U){return function(){(U.apply(this,arguments)?dA:iA)(this,Q)}}function RF(Q,U){var Z=cA(Q+"");if(arguments.length<2){var X=TF(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!X.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?iN:U?lN:dN)(Z,U))}function rN(){this.textContent=""}function aN(Q){return function(){this.textContent=Q}}function sN(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function OF(Q){return arguments.length?this.each(Q==null?rN:(typeof Q==="function"?sN:aN)(Q)):this.node().textContent}function tN(){this.innerHTML=""}function nN(Q){return function(){this.innerHTML=Q}}function oN(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function IF(Q){return arguments.length?this.each(Q==null?tN:(typeof Q==="function"?oN:nN)(Q)):this.node().innerHTML}function eN(){if(this.nextSibling)this.parentNode.appendChild(this)}function wF(){return this.each(eN)}function _f(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function PF(){return this.each(_f)}function Jf(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===zq&&U.documentElement.namespaceURI===zq?U.createElement(Q):U.createElementNS(Z,Q)}}function $f(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function QJ(Q){var U=b4(Q);return(U.local?$f:Jf)(U)}function NF(Q){var U=typeof Q==="function"?Q:QJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function Qf(){return null}function fF(Q,U){var Z=typeof Q==="function"?Q:QJ(Q),X=U==null?Qf:typeof U==="function"?U:A6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),X.apply(this,arguments)||null)})}function qf(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function CF(){return this.each(qf)}function Uf(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function Gf(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function SF(Q){return this.select(Q?Gf:Uf)}function jF(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function Zf(Q){return function(U){Q.call(this,U,this.__data__)}}function Kf(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",X=U.indexOf(".");if(X>=0)Z=U.slice(X+1),U=U.slice(0,X);return{type:U,name:Z}})}function Ff(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,X=-1,H=U.length,Y;Z<H;++Z)if(Y=U[Z],(!Q.type||Y.type===Q.type)&&Y.name===Q.name)this.removeEventListener(Y.type,Y.listener,Y.options);else U[++X]=Y;if(++X)U.length=X;else delete this.__on}}function Xf(Q,U,Z){return function(){var X=this.__on,H,Y=Zf(U);if(X){for(var B=0,W=X.length;B<W;++B)if((H=X[B]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=Z),H.value=U;return}}if(this.addEventListener(Q.type,Y,Z),H={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!X)this.__on=[H];else X.push(H)}}function VF(Q,U,Z){var X=Kf(Q+""),H,Y=X.length,B;if(arguments.length<2){var W=this.node().__on;if(W){for(var R=0,O=W.length,T;R<O;++R)for(H=0,T=W[R];H<Y;++H)if((B=X[H]).type===T.type&&B.name===T.name)return T.value}return}W=U?Xf:Ff;for(H=0;H<Y;++H)this.each(W(X[H],U,Z));return this}function rA(Q,U,Z){var X=$J(Q),H=X.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=X.document.createEvent("Event"),Z)H.initEvent(U,Z.bubbles,Z.cancelable),H.detail=Z.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function Hf(Q,U){return function(){return rA(this,Q,U)}}function Yf(Q,U){return function(){return rA(this,Q,U.apply(this,arguments))}}function yF(Q,U){return this.each((typeof U==="function"?Yf:Hf)(Q,U))}function*kF(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length,B;H<Y;++H)if(B=X[H])yield B}var vF=[null];function g0(Q,U){this._groups=Q,this._parents=U}function aA(){return new g0([[document.documentElement]],vF)}function zf(){return this}g0.prototype=aA.prototype={constructor:g0,select:tK,selectAll:oK,selectChild:eK,selectChildren:_F,filter:JF,data:qF,enter:$F,exit:UF,join:GF,merge:ZF,selection:zf,order:KF,sort:FF,call:XF,nodes:HF,node:YF,size:zF,empty:BF,each:WF,attr:LF,style:AF,property:MF,classed:RF,text:OF,html:IF,raise:wF,lower:PF,append:NF,insert:fF,remove:CF,clone:SF,datum:jF,on:VF,dispatch:yF,[Symbol.iterator]:kF};var L3=aA;function U2(Q){return typeof Q==="string"?new g0([[document.querySelector(Q)]],[document.documentElement]):new g0([[Q]],vF)}var sA={passive:!1},w8={capture:!0,passive:!1};function Bq(Q){Q.stopImmediatePropagation()}function A3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function n7(Q){var U=Q.document.documentElement,Z=U2(Q).on("dragstart.drag",A3,w8);if("onselectstart"in U)Z.on("selectstart.drag",A3,w8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function qJ(Q,U){var Z=Q.document.documentElement,X=U2(Q).on("dragstart.drag",null);if(U)X.on("click.drag",A3,w8),setTimeout(function(){X.on("click.drag",null)},0);if("onselectstart"in Z)X.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var UJ=(Q)=>()=>Q;function GJ(Q,{sourceEvent:U,subject:Z,target:X,identifier:H,active:Y,x:B,y:W,dx:R,dy:O,dispatch:T}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:Z,enumerable:!0,configurable:!0},target:{value:X,enumerable:!0,configurable:!0},identifier:{value:H,enumerable:!0,configurable:!0},active:{value:Y,enumerable:!0,configurable:!0},x:{value:B,enumerable:!0,configurable:!0},y:{value:W,enumerable:!0,configurable:!0},dx:{value:R,enumerable:!0,configurable:!0},dy:{value:O,enumerable:!0,configurable:!0},_:{value:T}})}GJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function Bf(Q){return!Q.ctrlKey&&!Q.button}function Wf(){return this.parentNode}function Lf(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function Af(){return navigator.maxTouchPoints||"ontouchstart"in this}function ZJ(){var Q=Bf,U=Wf,Z=Lf,X=Af,H={},Y=I8("start","drag","end"),B=0,W,R,O,T,A=0;function M(V){V.on("mousedown.drag",w).filter(X).on("touchstart.drag",S).on("touchmove.drag",f,sA).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(V,v){if(T||!Q.call(this,V,v))return;var h=N(this,U.call(this,V,v),V,v,"mouse");if(!h)return;U2(V.view).on("mousemove.drag",P,w8).on("mouseup.drag",y,w8),n7(V.view),Bq(V),O=!1,W=V.clientX,R=V.clientY,h("start",V)}function P(V){if(A3(V),!O){var v=V.clientX-W,h=V.clientY-R;O=v*v+h*h>A}H.mouse("drag",V)}function y(V){U2(V.view).on("mousemove.drag mouseup.drag",null),qJ(V.view,O),A3(V),H.mouse("end",V)}function S(V,v){if(!Q.call(this,V,v))return;var h=V.changedTouches,u=U.call(this,V,v),b=h.length,E,m;for(E=0;E<b;++E)if(m=N(this,u,V,v,h[E].identifier,h[E]))Bq(V),m("start",V,h[E])}function f(V){var v=V.changedTouches,h=v.length,u,b;for(u=0;u<h;++u)if(b=H[v[u].identifier])A3(V),b("drag",V,v[u])}function D(V){var v=V.changedTouches,h=v.length,u,b;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(u=0;u<h;++u)if(b=H[v[u].identifier])Bq(V),b("end",V,v[u])}function N(V,v,h,u,b,E){var m=Y.copy(),a=S2(E||h,v),J1,$1,x;if((x=Z.call(V,new GJ("beforestart",{sourceEvent:h,target:M,identifier:b,active:B,x:a[0],y:a[1],dx:0,dy:0,dispatch:m}),u))==null)return;return J1=x.x-a[0]||0,$1=x.y-a[1]||0,function p(c,s,i){var o=a,k;switch(c){case"start":H[b]=p,k=B++;break;case"end":delete H[b],--B;case"drag":a=S2(i||s,v),k=B;break}m.call(c,V,new GJ(c,{sourceEvent:s,subject:x,target:M,identifier:b,active:k,x:a[0]+J1,y:a[1]+$1,dx:a[0]-o[0],dy:a[1]-o[1],dispatch:m}),u)}}return M.filter=function(V){return arguments.length?(Q=typeof V==="function"?V:UJ(!!V),M):Q},M.container=function(V){return arguments.length?(U=typeof V==="function"?V:UJ(V),M):U},M.subject=function(V){return arguments.length?(Z=typeof V==="function"?V:UJ(V),M):Z},M.touchable=function(V){return arguments.length?(X=typeof V==="function"?V:UJ(!!V),M):X},M.on=function(){var V=Y.on.apply(Y,arguments);return V===Y?M:V},M.clickDistance=function(V){return arguments.length?(A=(V=+V)*V,M):Math.sqrt(A)},M}function KJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function DF(Q,U){var Z=Object.create(Q.prototype);for(var X in U)Z[X]=U[X];return Z}function HJ(){}var FJ=0.7,Aq=1/FJ,o7="\\s*([+-]?\\d+)\\s*",XJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mf=/^#([0-9a-f]{3,8})$/,Tf=new RegExp(`^rgb\\(${o7},${o7},${o7}\\)$`),Rf=new RegExp(`^rgb\\(${u4},${u4},${u4}\\)$`),Of=new RegExp(`^rgba\\(${o7},${o7},${o7},${XJ}\\)$`),If=new RegExp(`^rgba\\(${u4},${u4},${u4},${XJ}\\)$`),wf=new RegExp(`^hsl\\(${XJ},${u4},${u4}\\)$`),Pf=new RegExp(`^hsla\\(${XJ},${u4},${u4},${XJ}\\)$`),tA={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};KJ(HJ,e5,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:nA,formatHex:nA,formatHex8:Nf,formatHsl:ff,formatRgb:oA,toString:oA});function nA(){return this.rgb().formatHex()}function Nf(){return this.rgb().formatHex8()}function ff(){return qM(this).formatHsl()}function oA(){return this.rgb().formatRgb()}function e5(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=Mf.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?eA(U):Z===3?new Q5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Wq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Wq(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=Tf.exec(Q))?new Q5(U[1],U[2],U[3],1):(U=Rf.exec(Q))?new Q5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=Of.exec(Q))?Wq(U[1],U[2],U[3],U[4]):(U=If.exec(Q))?Wq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=wf.exec(Q))?$M(U[1],U[2]/100,U[3]/100,1):(U=Pf.exec(Q))?$M(U[1],U[2]/100,U[3]/100,U[4]):tA.hasOwnProperty(Q)?eA(tA[Q]):Q==="transparent"?new Q5(NaN,NaN,NaN,0):null}function eA(Q){return new Q5(Q>>16&255,Q>>8&255,Q&255,1)}function Wq(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;return new Q5(Q,U,Z,X)}function Cf(Q){if(!(Q instanceof HJ))Q=e5(Q);if(!Q)return new Q5;return Q=Q.rgb(),new Q5(Q.r,Q.g,Q.b,Q.opacity)}function e7(Q,U,Z,X){return arguments.length===1?Cf(Q):new Q5(Q,U,Z,X==null?1:X)}function Q5(Q,U,Z,X){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+X}KJ(Q5,e7,DF(HJ,{brighter(Q){return Q=Q==null?Aq:Math.pow(Aq,Q),new Q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?FJ:Math.pow(FJ,Q),new Q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new Q5(N8(this.r),N8(this.g),N8(this.b),Mq(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:_M,formatHex:_M,formatHex8:Sf,formatRgb:JM,toString:JM}));function _M(){return`#${P8(this.r)}${P8(this.g)}${P8(this.b)}`}function Sf(){return`#${P8(this.r)}${P8(this.g)}${P8(this.b)}${P8((isNaN(this.opacity)?1:this.opacity)*255)}`}function JM(){let Q=Mq(this.opacity);return`${Q===1?"rgb(":"rgba("}${N8(this.r)}, ${N8(this.g)}, ${N8(this.b)}${Q===1?")":`, ${Q})`}`}function Mq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function N8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function P8(Q){return Q=N8(Q),(Q<16?"0":"")+Q.toString(16)}function $M(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new o5(Q,U,Z,X)}function qM(Q){if(Q instanceof o5)return new o5(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof HJ))Q=e5(Q);if(!Q)return new o5;if(Q instanceof o5)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,X=Q.b/255,H=Math.min(U,Z,X),Y=Math.max(U,Z,X),B=NaN,W=Y-H,R=(Y+H)/2;if(W){if(U===Y)B=(Z-X)/W+(Z<X)*6;else if(Z===Y)B=(X-U)/W+2;else B=(U-Z)/W+4;W/=R<0.5?Y+H:2-Y-H,B*=60}else W=R>0&&R<1?0:B;return new o5(B,W,R,Q.opacity)}function UM(Q,U,Z,X){return arguments.length===1?qM(Q):new o5(Q,U,Z,X==null?1:X)}function o5(Q,U,Z,X){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+X}KJ(o5,UM,DF(HJ,{brighter(Q){return Q=Q==null?Aq:Math.pow(Aq,Q),new o5(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?FJ:Math.pow(FJ,Q),new o5(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,X=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-X;return new Q5(bF(Q>=240?Q-240:Q+120,H,X),bF(Q,H,X),bF(Q<120?Q+240:Q-120,H,X),this.opacity)},clamp(){return new o5(QM(this.h),Lq(this.s),Lq(this.l),Mq(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=Mq(this.opacity);return`${Q===1?"hsl(":"hsla("}${QM(this.h)}, ${Lq(this.s)*100}%, ${Lq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function QM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Lq(Q){return Math.max(0,Math.min(1,Q||0))}function bF(Q,U,Z){return(Q<60?U+(Z-U)*Q/60:Q<180?Z:Q<240?U+(Z-U)*(240-Q)/60:U)*255}function uF(Q,U,Z,X,H){var Y=Q*Q,B=Y*Q;return((1-3*Q+3*Y-B)*U+(4-6*Y+3*B)*Z+(1+3*Q+3*Y-3*B)*X+B*H)/6}function EF(Q){var U=Q.length-1;return function(Z){var X=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[X],Y=Q[X+1],B=X>0?Q[X-1]:2*H-Y,W=X<U-1?Q[X+2]:2*Y-H;return uF((Z-X/U)*U,B,H,Y,W)}}function hF(Q){var U=Q.length;return function(Z){var X=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(X+U-1)%U],Y=Q[X%U],B=Q[(X+1)%U],W=Q[(X+2)%U];return uF((Z-X/U)*U,H,Y,B,W)}}var YJ=(Q)=>()=>Q;function jf(Q,U){return function(Z){return Q+Z*U}}function Vf(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(X){return Math.pow(Q+X*U,Z)}}function GM(Q){return(Q=+Q)===1?Tq:function(U,Z){return Z-U?Vf(U,Z,Q):YJ(isNaN(U)?Z:U)}}function Tq(Q,U){var Z=U-Q;return Z?jf(Q,Z):YJ(isNaN(Q)?U:Q)}var f8=function Q(U){var Z=GM(U);function X(H,Y){var B=Z((H=e7(H)).r,(Y=e7(Y)).r),W=Z(H.g,Y.g),R=Z(H.b,Y.b),O=Tq(H.opacity,Y.opacity);return function(T){return H.r=B(T),H.g=W(T),H.b=R(T),H.opacity=O(T),H+""}}return X.gamma=Q,X}(1);function ZM(Q){return function(U){var Z=U.length,X=Array(Z),H=Array(Z),Y=Array(Z),B,W;for(B=0;B<Z;++B)W=e7(U[B]),X[B]=W.r||0,H[B]=W.g||0,Y[B]=W.b||0;return X=Q(X),H=Q(H),Y=Q(Y),W.opacity=1,function(R){return W.r=X(R),W.g=H(R),W.b=Y(R),W+""}}}var yf=ZM(EF),kf=ZM(hF);function xF(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,X=U.slice(),H;return function(Y){for(H=0;H<Z;++H)X[H]=Q[H]*(1-Y)+U[H]*Y;return X}}function KM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function FM(Q,U){var Z=U?U.length:0,X=Q?Math.min(Z,Q.length):0,H=Array(X),Y=Array(Z),B;for(B=0;B<X;++B)H[B]=E4(Q[B],U[B]);for(;B<Z;++B)Y[B]=U[B];return function(W){for(B=0;B<X;++B)Y[B]=H[B](W);return Y}}function mF(Q,U){var Z=new Date;return Q=+Q,U=+U,function(X){return Z.setTime(Q*(1-X)+U*X),Z}}function j2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function gF(Q,U){var Z={},X={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)Z[H]=E4(Q[H],U[H]);else X[H]=U[H];return function(Y){for(H in Z)X[H]=Z[H](Y);return X}}var cF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pF=new RegExp(cF.source,"g");function vf(Q){return function(){return Q}}function Df(Q){return function(U){return Q(U)+""}}function _9(Q,U){var Z=cF.lastIndex=pF.lastIndex=0,X,H,Y,B=-1,W=[],R=[];Q=Q+"",U=U+"";while((X=cF.exec(Q))&&(H=pF.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),W[B])W[B]+=Y;else W[++B]=Y;if((X=X[0])===(H=H[0]))if(W[B])W[B]+=H;else W[++B]=H;else W[++B]=null,R.push({i:B,x:j2(X,H)});Z=pF.lastIndex}if(Z<U.length)if(Y=U.slice(Z),W[B])W[B]+=Y;else W[++B]=Y;return W.length<2?R[0]?Df(R[0].x):vf(U):(U=R.length,function(O){for(var T=0,A;T<U;++T)W[(A=R[T]).i]=A.x(O);return W.join("")})}function E4(Q,U){var Z=typeof U,X;return U==null||Z==="boolean"?YJ(U):(Z==="number"?j2:Z==="string"?(X=e5(U))?(U=X,f8):_9:U instanceof e5?f8:U instanceof Date?mF:KM(U)?xF:Array.isArray(U)?FM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?gF:j2)(Q,U)}var XM=180/Math.PI,Rq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Oq(Q,U,Z,X,H,Y){var B,W,R;if(B=Math.sqrt(Q*Q+U*U))Q/=B,U/=B;if(R=Q*Z+U*X)Z-=Q*R,X-=U*R;if(W=Math.sqrt(Z*Z+X*X))Z/=W,X/=W,R/=W;if(Q*X<U*Z)Q=-Q,U=-U,R=-R,B=-B;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*XM,skewX:Math.atan(R)*XM,scaleX:B,scaleY:W}}var Iq;function HM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Rq:Oq(U.a,U.b,U.c,U.d,U.e,U.f)}function YM(Q){if(Q==null)return Rq;if(!Iq)Iq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Iq.setAttribute("transform",Q),!(Q=Iq.transform.baseVal.consolidate()))return Rq;return Q=Q.matrix,Oq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function zM(Q,U,Z,X){function H(O){return O.length?O.pop()+" ":""}function Y(O,T,A,M,w,P){if(O!==A||T!==M){var y=w.push("translate(",null,U,null,Z);P.push({i:y-4,x:j2(O,A)},{i:y-2,x:j2(T,M)})}else if(A||M)w.push("translate("+A+U+M+Z)}function B(O,T,A,M){if(O!==T){if(O-T>180)T+=360;else if(T-O>180)O+=360;M.push({i:A.push(H(A)+"rotate(",null,X)-2,x:j2(O,T)})}else if(T)A.push(H(A)+"rotate("+T+X)}function W(O,T,A,M){if(O!==T)M.push({i:A.push(H(A)+"skewX(",null,X)-2,x:j2(O,T)});else if(T)A.push(H(A)+"skewX("+T+X)}function R(O,T,A,M,w,P){if(O!==A||T!==M){var y=w.push(H(w)+"scale(",null,",",null,")");P.push({i:y-4,x:j2(O,A)},{i:y-2,x:j2(T,M)})}else if(A!==1||M!==1)w.push(H(w)+"scale("+A+","+M+")")}return function(O,T){var A=[],M=[];return O=Q(O),T=Q(T),Y(O.translateX,O.translateY,T.translateX,T.translateY,A,M),B(O.rotate,T.rotate,A,M),W(O.skewX,T.skewX,A,M),R(O.scaleX,O.scaleY,T.scaleX,T.scaleY,A,M),O=T=null,function(w){var P=-1,y=M.length,S;while(++P<y)A[(S=M[P]).i]=S.x(w);return A.join("")}}}var lF=zM(HM,"px, ","px)","deg)"),dF=zM(YM,", ",")",")");var bf=0.000000000001;function BM(Q){return((Q=Math.exp(Q))+1/Q)/2}function uf(Q){return((Q=Math.exp(Q))-1/Q)/2}function Ef(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var C8=function Q(U,Z,X){function H(Y,B){var W=Y[0],R=Y[1],O=Y[2],T=B[0],A=B[1],M=B[2],w=T-W,P=A-R,y=w*w+P*P,S,f;if(y<bf)f=Math.log(M/O)/U,S=function(u){return[W+u*w,R+u*P,O*Math.exp(U*u*f)]};else{var D=Math.sqrt(y),N=(M*M-O*O+X*y)/(2*O*Z*D),V=(M*M-O*O-X*y)/(2*M*Z*D),v=Math.log(Math.sqrt(N*N+1)-N),h=Math.log(Math.sqrt(V*V+1)-V);f=(h-v)/U,S=function(u){var b=u*f,E=BM(v),m=O/(Z*D)*(E*Ef(U*b+v)-uf(v));return[W+m*w,R+m*P,O*E/BM(U*b+v)]}}return S.duration=f*1000*U/Math.SQRT2,S}return H.rho=function(Y){var B=Math.max(0.001,+Y),W=B*B,R=W*W;return Q(B,W,R)},H}(Math.SQRT2,2,4);var J9=0,BJ=0,zJ=0,LM=1000,wq,WJ,Pq=0,S8=0,Nq=0,LJ=typeof performance==="object"&&performance.now?performance:Date,AM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function MJ(){return S8||(AM(hf),S8=LJ.now()+Nq)}function hf(){S8=0}function AJ(){this._call=this._time=this._next=null}AJ.prototype=fq.prototype={constructor:AJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?MJ():+Z)+(U==null?0:+U),!this._next&&WJ!==this){if(WJ)WJ._next=this;else wq=this;WJ=this}this._call=Q,this._time=Z,iF()},stop:function(){if(this._call)this._call=null,this._time=1/0,iF()}};function fq(Q,U,Z){var X=new AJ;return X.restart(Q,U,Z),X}function MM(){MJ(),++J9;var Q=wq,U;while(Q){if((U=S8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--J9}function WM(){S8=(Pq=LJ.now())+Nq,J9=BJ=0;try{MM()}finally{J9=0,mf(),S8=0}}function xf(){var Q=LJ.now(),U=Q-Pq;if(U>LM)Nq-=U,Pq=Q}function mf(){var Q,U=wq,Z,X=1/0;while(U)if(U._call){if(X>U._time)X=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:wq=Z;WJ=Q,iF(X)}function iF(Q){if(J9)return;if(BJ)BJ=clearTimeout(BJ);var U=Q-S8;if(U>24){if(Q<1/0)BJ=setTimeout(WM,Q-LJ.now()-Nq);if(zJ)zJ=clearInterval(zJ)}else{if(!zJ)Pq=LJ.now(),zJ=setInterval(xf,LM);J9=1,AM(WM)}}function TJ(Q,U,Z){var X=new AJ;return U=U==null?0:+U,X.restart((H)=>{X.stop(),Q(H+U)},U,Z),X}var gf=I8("start","end","cancel","interrupt"),pf=[],OM=0,TM=1,Sq=2,Cq=3,RM=4,jq=5,RJ=6;function M3(Q,U,Z,X,H,Y){var B=Q.__transition;if(!B)Q.__transition={};else if(Z in B)return;cf(Q,Z,{name:U,index:X,group:H,on:gf,tween:pf,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:OM})}function OJ(Q,U){var Z=G2(Q,U);if(Z.state>OM)throw Error("too late; already scheduled");return Z}function T2(Q,U){var Z=G2(Q,U);if(Z.state>Cq)throw Error("too late; already running");return Z}function G2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function cf(Q,U,Z){var X=Q.__transition,H;X[U]=Z,Z.timer=fq(Y,0,Z.time);function Y(O){if(Z.state=TM,Z.timer.restart(B,Z.delay,Z.time),Z.delay<=O)B(O-Z.delay)}function B(O){var T,A,M,w;if(Z.state!==TM)return R();for(T in X){if(w=X[T],w.name!==Z.name)continue;if(w.state===Cq)return TJ(B);if(w.state===RM)w.state=RJ,w.timer.stop(),w.on.call("interrupt",Q,Q.__data__,w.index,w.group),delete X[T];else if(+T<U)w.state=RJ,w.timer.stop(),w.on.call("cancel",Q,Q.__data__,w.index,w.group),delete X[T]}if(TJ(function(){if(Z.state===Cq)Z.state=RM,Z.timer.restart(W,Z.delay,Z.time),W(O)}),Z.state=Sq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Sq)return;Z.state=Cq,H=Array(M=Z.tween.length);for(T=0,A=-1;T<M;++T)if(w=Z.tween[T].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=w;H.length=A+1}function W(O){var T=O<Z.duration?Z.ease.call(null,O/Z.duration):(Z.timer.restart(R),Z.state=jq,1),A=-1,M=H.length;while(++A<M)H[A].call(Q,T);if(Z.state===jq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),R()}function R(){Z.state=RJ,Z.timer.stop(),delete X[U];for(var O in X)return;delete Q.__transition}}function T6(Q,U){var Z=Q.__transition,X,H,Y=!0,B;if(!Z)return;U=U==null?null:U+"";for(B in Z){if((X=Z[B]).name!==U){Y=!1;continue}H=X.state>Sq&&X.state<jq,X.state=RJ,X.timer.stop(),X.on.call(H?"interrupt":"cancel",Q,Q.__data__,X.index,X.group),delete Z[B]}if(Y)delete Q.__transition}function rF(Q){return this.each(function(){T6(this,Q)})}function lf(Q,U){var Z,X;return function(){var H=T2(this,Q),Y=H.tween;if(Y!==Z){X=Z=Y;for(var B=0,W=X.length;B<W;++B)if(X[B].name===U){X=X.slice(),X.splice(B,1);break}}H.tween=X}}function df(Q,U,Z){var X,H;if(typeof Z!=="function")throw Error();return function(){var Y=T2(this,Q),B=Y.tween;if(B!==X){H=(X=B).slice();for(var W={name:U,value:Z},R=0,O=H.length;R<O;++R)if(H[R].name===U){H[R]=W;break}if(R===O)H.push(W)}Y.tween=H}}function aF(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var X=G2(this.node(),Z).tween;for(var H=0,Y=X.length,B;H<Y;++H)if((B=X[H]).name===Q)return B.value;return null}return this.each((U==null?lf:df)(Z,Q,U))}function $9(Q,U,Z){var X=Q._id;return Q.each(function(){var H=T2(this,X);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return G2(H,X).value[U]}}function IJ(Q,U){var Z;return(typeof U==="number"?j2:U instanceof e5?f8:(Z=e5(U))?(U=Z,f8):_9)(Q,U)}function rf(Q){return function(){this.removeAttribute(Q)}}function af(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function sf(Q,U,Z){var X,H=Z+"",Y;return function(){var B=this.getAttribute(Q);return B===H?null:B===X?Y:Y=U(X=B,Z)}}function tf(Q,U,Z){var X,H=Z+"",Y;return function(){var B=this.getAttributeNS(Q.space,Q.local);return B===H?null:B===X?Y:Y=U(X=B,Z)}}function nf(Q,U,Z){var X,H,Y;return function(){var B,W=Z(this),R;if(W==null)return void this.removeAttribute(Q);return B=this.getAttribute(Q),R=W+"",B===R?null:B===X&&R===H?Y:(H=R,Y=U(X=B,W))}}function of(Q,U,Z){var X,H,Y;return function(){var B,W=Z(this),R;if(W==null)return void this.removeAttributeNS(Q.space,Q.local);return B=this.getAttributeNS(Q.space,Q.local),R=W+"",B===R?null:B===X&&R===H?Y:(H=R,Y=U(X=B,W))}}function sF(Q,U){var Z=b4(Q),X=Z==="transform"?dF:IJ;return this.attrTween(Q,typeof U==="function"?(Z.local?of:nf)(Z,X,$9(this,"attr."+Q,U)):U==null?(Z.local?af:rf)(Z):(Z.local?tf:sf)(Z,X,U))}function ef(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function _C(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function JC(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&_C(Q,Y);return Z}return H._value=U,H}function $C(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&ef(Q,Y);return Z}return H._value=U,H}function tF(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var X=b4(Q);return this.tween(Z,(X.local?JC:$C)(X,U))}function QC(Q,U){return function(){OJ(this,Q).delay=+U.apply(this,arguments)}}function qC(Q,U){return U=+U,function(){OJ(this,Q).delay=U}}function nF(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?QC:qC)(U,Q)):G2(this.node(),U).delay}function UC(Q,U){return function(){T2(this,Q).duration=+U.apply(this,arguments)}}function GC(Q,U){return U=+U,function(){T2(this,Q).duration=U}}function oF(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?UC:GC)(U,Q)):G2(this.node(),U).duration}function ZC(Q,U){if(typeof U!=="function")throw Error();return function(){T2(this,Q).ease=U}}function eF(Q){var U=this._id;return arguments.length?this.each(ZC(U,Q)):G2(this.node(),U).ease}function KC(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();T2(this,Q).ease=Z}}function _X(Q){if(typeof Q!=="function")throw Error();return this.each(KC(this._id,Q))}function JX(Q){if(typeof Q!=="function")Q=s7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],B=Y.length,W=X[H]=[],R,O=0;O<B;++O)if((R=Y[O])&&Q.call(R,R.__data__,O,Y))W.push(R);return new d2(X,this._parents,this._name,this._id)}function $X(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,X=U.length,H=Z.length,Y=Math.min(X,H),B=Array(X),W=0;W<Y;++W)for(var R=U[W],O=Z[W],T=R.length,A=B[W]=Array(T),M,w=0;w<T;++w)if(M=R[w]||O[w])A[w]=M;for(;W<X;++W)B[W]=U[W];return new d2(B,this._parents,this._name,this._id)}function FC(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var Z=U.indexOf(".");if(Z>=0)U=U.slice(0,Z);return!U||U==="start"})}function XC(Q,U,Z){var X,H,Y=FC(U)?OJ:T2;return function(){var B=Y(this,Q),W=B.on;if(W!==X)(H=(X=W).copy()).on(U,Z);B.on=H}}function QX(Q,U){var Z=this._id;return arguments.length<2?G2(this.node(),Z).on.on(Q):this.each(XC(Z,Q,U))}function HC(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function qX(){return this.on("end.remove",HC(this._id))}function UX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=A6(Q);for(var X=this._groups,H=X.length,Y=Array(H),B=0;B<H;++B)for(var W=X[B],R=W.length,O=Y[B]=Array(R),T,A,M=0;M<R;++M)if((T=W[M])&&(A=Q.call(T,T.__data__,M,W))){if("__data__"in T)A.__data__=T.__data__;O[M]=A,M3(O[M],U,Z,M,O,G2(T,Z))}return new d2(Y,this._parents,U,Z)}function GX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=t7(Q);for(var X=this._groups,H=X.length,Y=[],B=[],W=0;W<H;++W)for(var R=X[W],O=R.length,T,A=0;A<O;++A)if(T=R[A]){for(var M=Q.call(T,T.__data__,A,R),w,P=G2(T,Z),y=0,S=M.length;y<S;++y)if(w=M[y])M3(w,U,Z,y,M,P);Y.push(M),B.push(T)}return new d2(Y,B,U,Z)}var YC=L3.prototype.constructor;function ZX(){return new YC(this._groups,this._parents)}function zC(Q,U){var Z,X,H;return function(){var Y=M6(this,Q),B=(this.style.removeProperty(Q),M6(this,Q));return Y===B?null:Y===Z&&B===X?H:H=U(Z=Y,X=B)}}function IM(Q){return function(){this.style.removeProperty(Q)}}function BC(Q,U,Z){var X,H=Z+"",Y;return function(){var B=M6(this,Q);return B===H?null:B===X?Y:Y=U(X=B,Z)}}function WC(Q,U,Z){var X,H,Y;return function(){var B=M6(this,Q),W=Z(this),R=W+"";if(W==null)R=W=(this.style.removeProperty(Q),M6(this,Q));return B===R?null:B===X&&R===H?Y:(H=R,Y=U(X=B,W))}}function LC(Q,U){var Z,X,H,Y="style."+U,B="end."+Y,W;return function(){var R=T2(this,Q),O=R.on,T=R.value[Y]==null?W||(W=IM(U)):void 0;if(O!==Z||H!==T)(X=(Z=O).copy()).on(B,H=T);R.on=X}}function KX(Q,U,Z){var X=(Q+="")==="transform"?lF:IJ;return U==null?this.styleTween(Q,zC(Q,X)).on("end.style."+Q,IM(Q)):typeof U==="function"?this.styleTween(Q,WC(Q,X,$9(this,"style."+Q,U))).each(LC(this._id,Q)):this.styleTween(Q,BC(Q,X,U),Z).on("end.style."+Q,null)}function AC(Q,U,Z){return function(X){this.style.setProperty(Q,U.call(this,X),Z)}}function MC(Q,U,Z){var X,H;function Y(){var B=U.apply(this,arguments);if(B!==H)X=(H=B)&&AC(Q,B,Z);return X}return Y._value=U,Y}function FX(Q,U,Z){var X="style."+(Q+="");if(arguments.length<2)return(X=this.tween(X))&&X._value;if(U==null)return this.tween(X,null);if(typeof U!=="function")throw Error();return this.tween(X,MC(Q,U,Z==null?"":Z))}function TC(Q){return function(){this.textContent=Q}}function RC(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function XX(Q){return this.tween("text",typeof Q==="function"?RC($9(this,"text",Q)):TC(Q==null?"":Q+""))}function OC(Q){return function(U){this.textContent=Q.call(this,U)}}function IC(Q){var U,Z;function X(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&OC(H);return U}return X._value=Q,X}function HX(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,IC(Q))}function YX(){var Q=this._name,U=this._id,Z=Vq();for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var B=X[Y],W=B.length,R,O=0;O<W;++O)if(R=B[O]){var T=G2(R,U);M3(R,Q,Z,O,B,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new d2(X,this._parents,Q,Z)}function zX(){var Q,U,Z=this,X=Z._id,H=Z.size();return new Promise(function(Y,B){var W={value:B},R={value:function(){if(--H===0)Y()}};if(Z.each(function(){var O=T2(this,X),T=O.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(W),U._.interrupt.push(W),U._.end.push(R);O.on=U}),H===0)Y()})}var wC=0;function d2(Q,U,Z,X){this._groups=Q,this._parents=U,this._name=Z,this._id=X}function wM(Q){return L3().transition(Q)}function Vq(){return++wC}var T3=L3.prototype;d2.prototype=wM.prototype={constructor:d2,select:UX,selectAll:GX,selectChild:T3.selectChild,selectChildren:T3.selectChildren,filter:JX,merge:$X,selection:ZX,transition:YX,call:T3.call,nodes:T3.nodes,node:T3.node,size:T3.size,empty:T3.empty,each:T3.each,on:QX,attr:sF,attrTween:tF,style:KX,styleTween:FX,text:XX,textTween:HX,remove:qX,tween:aF,delay:nF,duration:oF,ease:eF,easeVarying:_X,end:zX,[Symbol.iterator]:T3[Symbol.iterator]};function yq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var PC={time:null,delay:0,duration:250,ease:yq};function NC(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function BX(Q){var U,Z;if(Q instanceof d2)U=Q._id,Q=Q._name;else U=Vq(),(Z=PC).time=MJ(),Q=Q==null?null:Q+"";for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var B=X[Y],W=B.length,R,O=0;O<W;++O)if(R=B[O])M3(R,Q,U,O,B,Z||NC(R,U));return new d2(X,this._parents,Q,U)}L3.prototype.interrupt=rF;L3.prototype.transition=BX;var wJ=(Q)=>()=>Q;function WX(Q,{sourceEvent:U,target:Z,transform:X,dispatch:H}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:Z,enumerable:!0,configurable:!0},transform:{value:X,enumerable:!0,configurable:!0},_:{value:H}})}function _4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}_4.prototype={constructor:_4,scale:function(Q){return Q===1?this:new _4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new _4(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 j8=new _4(1,0,0);PJ.prototype=_4.prototype;function PJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return j8;return Q.__zoom}function kq(Q){Q.stopImmediatePropagation()}function V8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function fC(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function CC(){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 PM(){return this.__zoom||j8}function SC(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function jC(){return navigator.maxTouchPoints||"ontouchstart"in this}function VC(Q,U,Z){var X=Q.invertX(U[0][0])-Z[0][0],H=Q.invertX(U[1][0])-Z[1][0],Y=Q.invertY(U[0][1])-Z[0][1],B=Q.invertY(U[1][1])-Z[1][1];return Q.translate(H>X?(X+H)/2:Math.min(0,X)||Math.max(0,H),B>Y?(Y+B)/2:Math.min(0,Y)||Math.max(0,B))}function NJ(){var Q=fC,U=CC,Z=VC,X=SC,H=jC,Y=[0,1/0],B=[[-1/0,-1/0],[1/0,1/0]],W=250,R=C8,O=I8("start","zoom","end"),T,A,M,w=500,P=150,y=0,S=10;function f(x){x.property("__zoom",PM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",m).filter(H).on("touchstart.zoom",a).on("touchmove.zoom",J1).on("touchend.zoom touchcancel.zoom",$1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}f.transform=function(x,p,c,s){var i=x.selection?x.selection():x;if(i.property("__zoom",PM),x!==i)v(x,p,c,s);else i.interrupt().each(function(){h(this,arguments).event(s).start().zoom(null,typeof p==="function"?p.apply(this,arguments):p).end()})},f.scaleBy=function(x,p,c,s){f.scaleTo(x,function(){var i=this.__zoom.k,o=typeof p==="function"?p.apply(this,arguments):p;return i*o},c,s)},f.scaleTo=function(x,p,c,s){f.transform(x,function(){var i=U.apply(this,arguments),o=this.__zoom,k=c==null?V(i):typeof c==="function"?c.apply(this,arguments):c,g=o.invert(k),q1=typeof p==="function"?p.apply(this,arguments):p;return Z(N(D(o,q1),k,g),i,B)},c,s)},f.translateBy=function(x,p,c,s){f.transform(x,function(){return Z(this.__zoom.translate(typeof p==="function"?p.apply(this,arguments):p,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),B)},null,s)},f.translateTo=function(x,p,c,s,i){f.transform(x,function(){var o=U.apply(this,arguments),k=this.__zoom,g=s==null?V(o):typeof s==="function"?s.apply(this,arguments):s;return Z(j8.translate(g[0],g[1]).scale(k.k).translate(typeof p==="function"?-p.apply(this,arguments):-p,typeof c==="function"?-c.apply(this,arguments):-c),o,B)},s,i)};function D(x,p){return p=Math.max(Y[0],Math.min(Y[1],p)),p===x.k?x:new _4(p,x.x,x.y)}function N(x,p,c){var s=p[0]-c[0]*x.k,i=p[1]-c[1]*x.k;return s===x.x&&i===x.y?x:new _4(x.k,s,i)}function V(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function v(x,p,c,s){x.on("start.zoom",function(){h(this,arguments).event(s).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(s).end()}).tween("zoom",function(){var i=this,o=arguments,k=h(i,o).event(s),g=U.apply(i,o),q1=c==null?V(g):typeof c==="function"?c.apply(i,o):c,t=Math.max(g[1][0]-g[0][0],g[1][1]-g[0][1]),H1=i.__zoom,M1=typeof p==="function"?p.apply(i,o):p,A1=R(H1.invert(q1).concat(t/H1.k),M1.invert(q1).concat(t/M1.k));return function(L1){if(L1===1)L1=M1;else{var U1=A1(L1),T1=t/U1[2];L1=new _4(T1,q1[0]-U1[0]*T1,q1[1]-U1[1]*T1)}k.zoom(null,L1)}})}function h(x,p,c){return!c&&x.__zooming||new u(x,p)}function u(x,p){this.that=x,this.args=p,this.active=0,this.sourceEvent=null,this.extent=U.apply(x,p),this.taps=0}u.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,p){if(this.mouse&&x!=="mouse")this.mouse[1]=p.invert(this.mouse[0]);if(this.touch0&&x!=="touch")this.touch0[1]=p.invert(this.touch0[0]);if(this.touch1&&x!=="touch")this.touch1[1]=p.invert(this.touch1[0]);return this.that.__zoom=p,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(x){var p=U2(this.that).datum();O.call(x,this.that,new WX(x,{sourceEvent:this.sourceEvent,target:f,type:x,transform:this.that.__zoom,dispatch:O}),p)}};function b(x,...p){if(!Q.apply(this,arguments))return;var c=h(this,p).event(x),s=this.__zoom,i=Math.max(Y[0],Math.min(Y[1],s.k*Math.pow(2,X.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]=s.invert(c.mouse[0]=o);clearTimeout(c.wheel)}else if(s.k===i)return;else c.mouse=[o,s.invert(o)],T6(this),c.start();V8(x),c.wheel=setTimeout(k,P),c.zoom("mouse",Z(N(D(s,i),c.mouse[0],c.mouse[1]),c.extent,B));function k(){c.wheel=null,c.end()}}function E(x,...p){if(M||!Q.apply(this,arguments))return;var c=x.currentTarget,s=h(this,p,!0).event(x),i=U2(x.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",t,!0),o=S2(x,c),k=x.clientX,g=x.clientY;n7(x.view),kq(x),s.mouse=[o,this.__zoom.invert(o)],T6(this),s.start();function q1(H1){if(V8(H1),!s.moved){var M1=H1.clientX-k,A1=H1.clientY-g;s.moved=M1*M1+A1*A1>y}s.event(H1).zoom("mouse",Z(N(s.that.__zoom,s.mouse[0]=S2(H1,c),s.mouse[1]),s.extent,B))}function t(H1){i.on("mousemove.zoom mouseup.zoom",null),qJ(H1.view,s.moved),V8(H1),s.event(H1).end()}}function m(x,...p){if(!Q.apply(this,arguments))return;var c=this.__zoom,s=S2(x.changedTouches?x.changedTouches[0]:x,this),i=c.invert(s),o=c.k*(x.shiftKey?0.5:2),k=Z(N(D(c,o),s,i),U.apply(this,p),B);if(V8(x),W>0)U2(this).transition().duration(W).call(v,k,s,x);else U2(this).call(f.transform,k,s,x)}function a(x,...p){if(!Q.apply(this,arguments))return;var c=x.touches,s=c.length,i=h(this,p,x.changedTouches.length===s).event(x),o,k,g,q1;kq(x);for(k=0;k<s;++k)if(g=c[k],q1=S2(g,this),q1=[q1,this.__zoom.invert(q1),g.identifier],!i.touch0)i.touch0=q1,o=!0,i.taps=1+!!T;else if(!i.touch1&&i.touch0[2]!==q1[2])i.touch1=q1,i.taps=0;if(T)T=clearTimeout(T);if(o){if(i.taps<2)A=q1[0],T=setTimeout(function(){T=null},w);T6(this),i.start()}}function J1(x,...p){if(!this.__zooming)return;var c=h(this,p).event(x),s=x.changedTouches,i=s.length,o,k,g,q1;V8(x);for(o=0;o<i;++o)if(k=s[o],g=S2(k,this),c.touch0&&c.touch0[2]===k.identifier)c.touch0[0]=g;else if(c.touch1&&c.touch1[2]===k.identifier)c.touch1[0]=g;if(k=c.that.__zoom,c.touch1){var t=c.touch0[0],H1=c.touch0[1],M1=c.touch1[0],A1=c.touch1[1],L1=(L1=M1[0]-t[0])*L1+(L1=M1[1]-t[1])*L1,U1=(U1=A1[0]-H1[0])*U1+(U1=A1[1]-H1[1])*U1;k=D(k,Math.sqrt(L1/U1)),g=[(t[0]+M1[0])/2,(t[1]+M1[1])/2],q1=[(H1[0]+A1[0])/2,(H1[1]+A1[1])/2]}else if(c.touch0)g=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(N(k,g,q1),c.extent,B))}function $1(x,...p){if(!this.__zooming)return;var c=h(this,p).event(x),s=x.changedTouches,i=s.length,o,k;if(kq(x),M)clearTimeout(M);M=setTimeout(function(){M=null},w);for(o=0;o<i;++o)if(k=s[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])<S){var g=U2(this).on("dblclick.zoom");if(g)g.apply(this,arguments)}}}return f.wheelDelta=function(x){return arguments.length?(X=typeof x==="function"?x:wJ(+x),f):X},f.filter=function(x){return arguments.length?(Q=typeof x==="function"?x:wJ(!!x),f):Q},f.touchable=function(x){return arguments.length?(H=typeof x==="function"?x:wJ(!!x),f):H},f.extent=function(x){return arguments.length?(U=typeof x==="function"?x:wJ([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),f):U},f.scaleExtent=function(x){return arguments.length?(Y[0]=+x[0],Y[1]=+x[1],f):[Y[0],Y[1]]},f.translateExtent=function(x){return arguments.length?(B[0][0]=+x[0][0],B[1][0]=+x[1][0],B[0][1]=+x[0][1],B[1][1]=+x[1][1],f):[[B[0][0],B[0][1]],[B[1][0],B[1][1]]]},f.constrain=function(x){return arguments.length?(Z=x,f):Z},f.duration=function(x){return arguments.length?(W=+x,f):W},f.interpolate=function(x){return arguments.length?(R=x,f):R},f.on=function(){var x=O.on.apply(O,arguments);return x===O?f:x},f.clickDistance=function(x){return arguments.length?(y=(x=+x)*x,f):Math.sqrt(y)},f.tapDistance=function(x){return arguments.length?(S=+x,f):S},f}var i2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:X})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:X}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},G9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],RX=["Enter"," ","Escape"],OX={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:Q,x:U,y:Z})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${Z}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"},w6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(w6||(w6={}));var R3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(R3||(R3={}));var y8;(function(Q){Q.Partial="partial",Q.Full="full"})(y8||(y8={}));var IX={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},h4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(h4||(h4={}));var q9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(q9||(q9={}));var y1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(y1||(y1={}));var NM={[y1.Left]:y1.Right,[y1.Right]:y1.Left,[y1.Top]:y1.Bottom,[y1.Bottom]:y1.Top},wX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),xM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),PX=(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:Z,height:X}=u5(Q),H=Q.origin??U,Y=Z*H[0],B=X*H[1];return{x:Q.position.x-Y,y:Q.position.y-B}},NX=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,X=Q.reduce((H,Y)=>{let B=typeof Y==="string",W=!U.nodeLookup&&!B?Y:void 0;if(U.nodeLookup)W=B?U.nodeLookup.get(Y):!PX(Y)?U.nodeLookup.get(Y.id):Y;if(!W)return H;return Z=!0,hq(H,bq(W,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?xq(X):{x:0,y:0,width:0,height:0}},b8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},X=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=hq(Z,bq(H)),X=!0}),X?xq(Z):{x:0,y:0,width:0,height:0}},uq=(Q,U,[Z,X,H]=[0,0,1],Y=!1,B=!1)=>{let W=(U.x-Z)/H,R=(U.y-X)/H,O=U.width/H,T=U.height/H,A=[];for(let M of Q.values()){let{measured:w,selectable:P=!0,hidden:y=!1}=M;if(B&&!P||y)continue;let S=w.width??M.width??M.initialWidth??0,f=w.height??M.height??M.initialHeight??0,{x:D,y:N}=M.internals.positionAbsolute,V=lM(W,R,O,T,D,N,S,f),v=S*f,h=Y&&V>0;if(!M.internals.handleBounds||h||V>=v||M.dragging)A.push(M)}return A},mM=(Q,U)=>{let Z=new Set;return Q.forEach((X)=>{Z.add(X.id)}),U.filter((X)=>Z.has(X.source)||Z.has(X.target))};function yC(Q,U){let Z=new Map,X=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:B,height:W}=u5(H);Y=B>0&&W>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!X||X.has(H.id)))Z.set(H.id,H)}),Z}async function gM({nodes:Q,width:U,height:Z,panZoom:X,minZoom:H,maxZoom:Y},B){if(Q.size===0)return!0;let W=yC(Q,B),R=b8(W),O=jJ(R,U,Z,B?.minZoom??H,B?.maxZoom??Y,B?.padding??0.1);return await X.setViewport(O,{duration:B?.duration,ease:B?.ease,interpolate:B?.interpolate}),!0}function fX({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:X=[0,0],nodeExtent:H,onError:Y}){let B=Z.get(Q),W=B.parentId?Z.get(B.parentId):void 0,{x:R,y:O}=W?W.internals.positionAbsolute:{x:0,y:0},T=B.origin??X,A=B.extent||H;if(B.extent==="parent"&&!B.expandParent)if(!W)Y?.("005",i2.error005());else{let{width:w,height:P}=u5(W);if(w&&P)A=[[R,O],[R+w,O+P]]}else if(W&&D8(B.extent))A=[[B.extent[0][0]+R,B.extent[0][1]+O],[B.extent[1][0]+R,B.extent[1][1]+O]];let M=D8(A)?k8(U,A,B.measured):U;if(B.measured.width===void 0||B.measured.height===void 0)Y?.("015",i2.error015());return{position:{x:M.x-R+(B.measured.width??0)*T[0],y:M.y-O+(B.measured.height??0)*T[1]},positionAbsolute:M}}async function pM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:X,onBeforeDelete:H}){let Y=new Set(Q.map((M)=>M.id)),B=[];for(let M of Z){if(M.deletable===!1)continue;let w=Y.has(M.id),P=!w&&M.parentId&&B.find((y)=>y.id===M.parentId);if(w||P)B.push(M)}let W=new Set(U.map((M)=>M.id)),R=X.filter((M)=>M.deletable!==!1),T=mM(B,R);for(let M of R)if(W.has(M.id)&&!T.find((P)=>P.id===M.id))T.push(M);if(!H)return{edges:T,nodes:B};let A=await H({nodes:B,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:B}:{edges:[],nodes:[]};return A}var U9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),k8=(Q={x:0,y:0},U,Z)=>({x:U9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:U9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function cM(Q,U,Z){let{width:X,height:H}=u5(Z),{x:Y,y:B}=Z.internals.positionAbsolute;return k8(Q,[[Y,B],[Y+X,B+H]],U)}var fM=(Q,U,Z)=>{if(Q<U)return U9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-U9(Math.abs(Q-Z),1,U)/U;return 0},Eq=(Q,U,Z=15,X=40)=>{let H=fM(Q.x,X,U.width-X)*Z,Y=fM(Q.y,X,U.height-X)*Z;return[H,Y]},hq=(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)}),TX=({x:Q,y:U,width:Z,height:X})=>({x:Q,y:U,x2:Q+Z,y2:U+X}),xq=({x:Q,y:U,x2:Z,y2:X})=>({x:Q,y:U,width:Z-Q,height:X-U}),Z9=(Q,U=[0,0])=>{let{x:Z,y:X}=PX(Q)?Q.internals.positionAbsolute:CJ(Q,U);return{x:Z,y:X,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},bq=(Q,U=[0,0])=>{let{x:Z,y:X}=PX(Q)?Q.internals.positionAbsolute:CJ(Q,U);return{x:Z,y:X,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:X+(Q.measured?.height??Q.height??Q.initialHeight??0)}},CX=(Q,U)=>xq(hq(TX(Q),TX(U))),lM=(Q,U,Z,X,H,Y,B,W)=>{let R=Math.max(0,Math.min(Q+Z,H+B)-Math.max(Q,H)),O=Math.max(0,Math.min(U+X,Y+W)-Math.max(U,Y));return Math.ceil(R*O)},SJ=(Q,U)=>lM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),SX=(Q)=>D5(Q.width)&&D5(Q.height)&&D5(Q.x)&&D5(Q.y),D5=(Q)=>!isNaN(Q)&&isFinite(Q),jX=(Q,U)=>(Z,X)=>{console.warn(`[${Q}]: ${X} Help: ${U}error#${Z}`)},K9=(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},[Z,X,H],Y=!1,B=[1,1])=>{let W={x:(Q-Z)/H,y:(U-X)/H};return Y?K9(W,B):W},v8=({x:Q,y:U},[Z,X,H])=>{return{x:Q*H+Z,y:U*H+X}};function Q9(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(Z)}if(typeof Q==="string"&&Q.endsWith("%")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(U*Z*0.01)}return console.error(`The padding value "${Q}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function kC(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let X=Q9(Q,Z),H=Q9(Q,U);return{top:X,right:H,bottom:X,left:H,x:H*2,y:X*2}}if(typeof Q==="object"){let X=Q9(Q.top??Q.y??0,Z),H=Q9(Q.bottom??Q.y??0,Z),Y=Q9(Q.left??Q.x??0,U),B=Q9(Q.right??Q.x??0,U);return{top:X,right:B,bottom:H,left:Y,x:Y+B,y:X+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function vC(Q,U,Z,X,H,Y){let{x:B,y:W}=v8(Q,[U,Z,X]),{x:R,y:O}=v8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,X]),T=H-R,A=Y-O;return{left:Math.floor(B),top:Math.floor(W),right:Math.floor(T),bottom:Math.floor(A)}}var jJ=(Q,U,Z,X,H,Y)=>{let B=kC(Y,U,Z),W=(U-B.x)/Q.width,R=(Z-B.y)/Q.height,O=Math.min(W,R),T=U9(O,X,H),A=Q.x+Q.width/2,M=Q.y+Q.height/2,w=U/2-A*T,P=Z/2-M*T,y=vC(Q,w,P,T,U,Z),S={left:Math.min(y.left-B.left,0),top:Math.min(y.top-B.top,0),right:Math.min(y.right-B.right,0),bottom:Math.min(y.bottom-B.bottom,0)};return{x:w-S.left+S.right,y:P-S.top+S.bottom,zoom:T}},X9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function D8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function u5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function VX(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function yX(Q,U={width:0,height:0},Z,X,H){let Y={...Q},B=X.get(Z);if(B){let W=B.origin||H;Y.x+=B.internals.positionAbsolute.x-(U.width??0)*W[0],Y.y+=B.internals.positionAbsolute.y-(U.height??0)*W[1]}return Y}function kX(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function dM(){let Q,U;return{promise:new Promise((X,H)=>{Q=X,U=H}),resolve:Q,reject:U}}function iM(Q){return{...OX,...Q||{}}}function DC(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let X=U.getBoundingClientRect();if(X.width===0&&X.height===0)return!0;let H=document.querySelector(`.${Q}-flow__attribution`);if(!H||!H.isConnected)return!1;let Y=getComputedStyle(H);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let B=H.getBoundingClientRect();if(B.width===0&&B.height===0)return!1;return!0}var CM=!1;function rM(Q){if(CM)return;CM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!DC(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 vX(Q){return Q===null?null:Q?"valid":"invalid"}function fJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:X,containerBounds:H}){let{x:Y,y:B}=b5(Q),W=F9({x:Y-(H?.left??0),y:B-(H?.top??0)},X),{x:R,y:O}=Z?K9(W,U):W;return{xSnapped:R,ySnapped:O,...W}}var mq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),DX=(Q)=>Q?.getRootNode?.()||window?.document,bC=["INPUT","SELECT","TEXTAREA"];function bX(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return bC.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var uX=(Q)=>("clientX"in Q),b5=(Q,U)=>{let Z=uX(Q),X=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:X-(U?.left??0),y:H-(U?.top??0)}},SM=(Q,U,Z,X,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((B)=>{let W=B.getBoundingClientRect();return{id:B.getAttribute("data-handleid"),type:Q,nodeId:H,position:B.getAttribute("data-handlepos"),x:(W.left-Z.left)/X,y:(W.top-Z.top)/X,...mq(B)}})};function gq({sourceX:Q,sourceY:U,targetX:Z,targetY:X,sourceControlX:H,sourceControlY:Y,targetControlX:B,targetControlY:W}){let R=Q*0.125+H*0.375+B*0.375+Z*0.125,O=U*0.125+Y*0.375+W*0.375+X*0.125,T=Math.abs(R-Q),A=Math.abs(O-U);return[R,O,T,A]}function vq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function jM({pos:Q,x1:U,y1:Z,x2:X,y2:H,c:Y}){switch(Q){case y1.Left:return[U-vq(U-X,Y),Z];case y1.Right:return[U+vq(X-U,Y),Z];case y1.Top:return[U,Z-vq(Z-H,Y)];case y1.Bottom:return[U,Z+vq(H-Z,Y)]}}function pq({sourceX:Q,sourceY:U,sourcePosition:Z=y1.Bottom,targetX:X,targetY:H,targetPosition:Y=y1.Top,curvature:B=0.25}){let[W,R]=jM({pos:Z,x1:Q,y1:U,x2:X,y2:H,c:B}),[O,T]=jM({pos:Y,x1:X,y1:H,x2:Q,y2:U,c:B}),[A,M,w,P]=gq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:W,sourceControlY:R,targetControlX:O,targetControlY:T});return[`M${Q},${U} C${W},${R} ${O},${T} ${X},${H}`,A,M,w,P]}function EX({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,B=Math.abs(X-U)/2,W=X<U?X+B:X-B;return[Y,W,H,B]}function aM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:X=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return X;let B=H&&Z?X+1000:X,W=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return B+W}function sM({sourceNode:Q,targetNode:U,width:Z,height:X,transform:H}){let Y=hq(bq(Q),bq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let B={x:-H[0]/H[2],y:-H[1]/H[2],width:Z/H[2],height:X/H[2]};return SJ(B,xq(Y))>0}var uC=({source:Q,sourceHandle:U,target:Z,targetHandle:X})=>`xy-edge__${Q}${U||""}-${Z}${X||""}`,EC=(Q,U)=>{return U.some((Z)=>Z.source===Q.source&&Z.target===Q.target&&(Z.sourceHandle===Q.sourceHandle||!Z.sourceHandle&&!Q.sourceHandle)&&(Z.targetHandle===Q.targetHandle||!Z.targetHandle&&!Q.targetHandle))},tM=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",i2.error006()),U;let X=Z.getEdgeId||uC,H;if(wX(Q))H={...Q};else H={...Q,id:X(Q)};if(EC(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function cq({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let[H,Y,B,W]=EX({sourceX:Q,sourceY:U,targetX:Z,targetY:X});return[`M ${Q},${U}L ${Z},${X}`,H,Y,B,W]}var VM={[y1.Left]:{x:-1,y:0},[y1.Right]:{x:1,y:0},[y1.Top]:{x:0,y:-1},[y1.Bottom]:{x:0,y:1}},hC=({source:Q,sourcePosition:U=y1.Bottom,target:Z})=>{if(U===y1.Left||U===y1.Right)return Q.x<Z.x?{x:1,y:0}:{x:-1,y:0};return Q.y<Z.y?{x:0,y:1}:{x:0,y:-1}},yM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function xC({source:Q,sourcePosition:U=y1.Bottom,target:Z,targetPosition:X=y1.Top,center:H,offset:Y,stepPosition:B}){let W=VM[U],R=VM[X],O={x:Q.x+W.x*Y,y:Q.y+W.y*Y},T={x:Z.x+R.x*Y,y:Z.y+R.y*Y},A=hC({source:O,sourcePosition:U,target:T}),M=A.x!==0?"x":"y",w=A[M],P=[],y,S,f={x:0,y:0},D={x:0,y:0},[,,N,V]=EX({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(W[M]*R[M]===-1){if(M==="x")y=H.x??O.x+(T.x-O.x)*B,S=H.y??(O.y+T.y)/2;else y=H.x??(O.x+T.x)/2,S=H.y??O.y+(T.y-O.y)*B;let b=[{x:y,y:O.y},{x:y,y:T.y}],E=[{x:O.x,y:S},{x:T.x,y:S}];if(W[M]===w)P=M==="x"?b:E;else P=M==="x"?E:b}else{let b=[{x:O.x,y:T.y}],E=[{x:T.x,y:O.y}];if(M==="x")P=W.x===w?E:b;else P=W.y===w?b:E;if(U===X){let x=Math.abs(Q[M]-Z[M]);if(x<=Y){let p=Math.min(Y-1,Y-x);if(W[M]===w)f[M]=(O[M]>Q[M]?-1:1)*p;else D[M]=(T[M]>Z[M]?-1:1)*p}}if(U!==X){let x=M==="x"?"y":"x",p=W[M]===R[x],c=O[x]>T[x],s=O[x]<T[x];if(W[M]===1&&(!p&&c||p&&s)||W[M]!==1&&(!p&&s||p&&c))P=M==="x"?b:E}let m={x:O.x+f.x,y:O.y+f.y},a={x:T.x+D.x,y:T.y+D.y},J1=Math.max(Math.abs(m.x-P[0].x),Math.abs(a.x-P[0].x)),$1=Math.max(Math.abs(m.y-P[0].y),Math.abs(a.y-P[0].y));if(J1>=$1)y=(m.x+a.x)/2,S=P[0].y;else y=P[0].x,S=(m.y+a.y)/2}let v={x:O.x+f.x,y:O.y+f.y},h={x:T.x+D.x,y:T.y+D.y};return[[Q,...v.x!==P[0].x||v.y!==P[0].y?[v]:[],...P,...h.x!==P[P.length-1].x||h.y!==P[P.length-1].y?[h]:[],Z],y,S,N,V]}function mC(Q,U,Z,X){let H=Math.min(yM(Q,U)/2,yM(U,Z)/2,X),{x:Y,y:B}=U;if(Q.x===Y&&Y===Z.x||Q.y===B&&B===Z.y)return`L${Y} ${B}`;if(Q.y===B){let O=Q.x<Z.x?-1:1,T=Q.y<Z.y?1:-1;return`L ${Y+H*O},${B}Q ${Y},${B} ${Y},${B+H*T}`}let W=Q.x<Z.x?1:-1,R=Q.y<Z.y?-1:1;return`L ${Y},${B+H*R}Q ${Y},${B} ${Y+H*W},${B}`}function VJ({sourceX:Q,sourceY:U,sourcePosition:Z=y1.Bottom,targetX:X,targetY:H,targetPosition:Y=y1.Top,borderRadius:B=5,centerX:W,centerY:R,offset:O=20,stepPosition:T=0.5}){let[A,M,w,P,y]=xC({source:{x:Q,y:U},sourcePosition:Z,target:{x:X,y:H},targetPosition:Y,center:{x:W,y:R},offset:O,stepPosition:T}),S=`M${A[0].x} ${A[0].y}`;for(let f=1;f<A.length-1;f++)S+=mC(A[f-1],A[f],A[f+1],B);return S+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[S,M,w,P,y]}function kM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function nM(Q){let{sourceNode:U,targetNode:Z}=Q;if(!kM(U)||!kM(Z))return null;let X=U.internals.handleBounds||vM(U.handles),H=Z.internals.handleBounds||vM(Z.handles),Y=DM(X?.source??[],Q.sourceHandle),B=DM(Q.connectionMode===w6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!B)return Q.onError?.("008",i2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let W=Y?.position||y1.Bottom,R=B?.position||y1.Top,O=P6(U,Y,W),T=P6(Z,B,R);return{sourceX:O.x,sourceY:O.y,targetX:T.x,targetY:T.y,sourcePosition:W,targetPosition:R}}function vM(Q){if(!Q)return null;let U=[],Z=[];for(let X of Q)if(X.width=X.width??1,X.height=X.height??1,X.type==="source")U.push(X);else if(X.type==="target")Z.push(X);return{source:U,target:Z}}function P6(Q,U,Z=y1.Left,X=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:B,height:W}=U??u5(Q);if(X)return{x:H+B/2,y:Y+W/2};switch(U?.position??Z){case y1.Top:return{x:H+B/2,y:Y};case y1.Right:return{x:H+B,y:Y+W/2};case y1.Bottom:return{x:H+B/2,y:Y+W};case y1.Left:return{x:H,y:Y+W/2}}}function DM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function lq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((X)=>`${X}=${Q[X]}`).join("&")}`}function oM(Q,{id:U,defaultColor:Z,defaultMarkerStart:X,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((B,W)=>{return[W.markerStart||X,W.markerEnd||H].forEach((R)=>{if(R&&typeof R==="object"){let O=lq(R,U);if(!Y.has(O))B.push({id:O,color:R.color||Z,...R}),Y.add(O)}}),B},[]).sort((B,W)=>B.id.localeCompare(W.id))}function eM(Q,U,Z,X,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let B=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-X],W=[-100*Y,-100];switch(Z){case y1.Right:B=[(Q.x+Q.width)*U.zoom+U.x+X,(Q.y+Q.height*Y)*U.zoom+U.y],W=[0,-100*Y];break;case y1.Bottom:B[1]=(Q.y+Q.height)*U.zoom+U.y+X,W[1]=0;break;case y1.Left:B=[Q.x*U.zoom+U.x-X,(Q.y+Q.height*Y)*U.zoom+U.y],W=[-100,-100*Y];break}return`translate(${B[0]}px, ${B[1]}px) translate(${W[0]}%, ${W[1]}%)`}var _T=1000,gC=10,hX={nodeOrigin:[0,0],nodeExtent:G9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},pC={...hX,checkEquality:!0};function xX(Q,U){let Z={...Q};for(let X in U)if(U[X]!==void 0)Z[X]=U[X];return Z}function JT(Q,U,Z){let X=xX(hX,Z);for(let H of Q.values())if(H.parentId)gX(H,Q,U,X);else{let Y=CJ(H,X.nodeOrigin),B=D8(H.extent)?H.extent:X.nodeExtent,W=k8(Y,B,u5(H));H.internals.positionAbsolute=W}}function cC(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],X=[];for(let H of Q.handles){let Y={id:H.id,width:H.width??1,height:H.height??1,nodeId:Q.id,x:H.x,y:H.y,position:H.position,type:H.type};if(H.type==="source")Z.push(Y);else if(H.type==="target")X.push(Y)}return{source:Z,target:X}}function mX(Q){return Q==="manual"}function dq(Q,U,Z,X={}){let H=xX(pC,X),Y={i:0},B=new Map(U),W=H?.elevateNodesOnSelect&&!mX(H.zIndexMode)?_T:0,R=Q.length>0,O=!1;U.clear(),Z.clear();for(let T of Q){let A=B.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let M=CJ(T,H.nodeOrigin),w=D8(T.extent)?T.extent:H.nodeExtent,P=k8(M,w,u5(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:P,handleBounds:cC(T,A),z:$T(T,W,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)R=!1;if(T.parentId)gX(A,U,Z,X,Y);O||=T.selected??!1}return{nodesInitialized:R,hasSelectedNodes:O}}function lC(Q,U){if(!Q.parentId)return;let Z=U.get(Q.parentId);if(Z)Z.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function gX(Q,U,Z,X,H){let{elevateNodesOnSelect:Y,nodeOrigin:B,nodeExtent:W,zIndexMode:R}=xX(hX,X),O=Q.parentId,T=U.get(O);if(!T){console.warn(`Parent node ${O} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(lC(Q,Z),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&R==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*gC;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!mX(R)?_T:0,{x:M,y:w,z:P}=dC(Q,T,B,W,A,R),{positionAbsolute:y}=Q.internals,S=M!==y.x||w!==y.y;if(S||P!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:M,y:w}:y,z:P}})}function $T(Q,U,Z){let X=D5(Q.zIndex)?Q.zIndex:0;if(mX(Z))return X;return X+(Q.selected?U:0)}function dC(Q,U,Z,X,H,Y){let{x:B,y:W}=U.internals.positionAbsolute,R=u5(Q),O=CJ(Q,Z),T=D8(Q.extent)?k8(O,Q.extent,R):O,A=k8({x:B+T.x,y:W+T.y},X,R);if(Q.extent==="parent")A=cM(A,R,U);let M=$T(Q,H,Y),w=U.internals.z??0;return{x:A.x,y:A.y,z:w>=M?w+1:M}}function iq(Q,U,Z,X=[0,0]){let H=[],Y=new Map;for(let B of Q){let W=U.get(B.parentId);if(!W)continue;let R=Y.get(B.parentId)?.expandedRect??Z9(W),O=CX(R,B.rect);Y.set(B.parentId,{expandedRect:O,parent:W})}if(Y.size>0)Y.forEach(({expandedRect:B,parent:W},R)=>{let O=W.internals.positionAbsolute,T=u5(W),A=W.origin??X,M=B.x<O.x?Math.round(Math.abs(O.x-B.x)):0,w=B.y<O.y?Math.round(Math.abs(O.y-B.y)):0,P=Math.max(T.width,Math.round(B.width)),y=Math.max(T.height,Math.round(B.height)),S=(P-T.width)*A[0],f=(y-T.height)*A[1];if(M>0||w>0||S||f)H.push({id:R,type:"position",position:{x:W.position.x-M+S,y:W.position.y-w+f}}),Z.get(R)?.forEach((D)=>{if(!Q.some((N)=>N.id===D.id))H.push({id:D.id,type:"position",position:{x:D.position.x+M,y:D.position.y+w}})});if(T.width<B.width||T.height<B.height||M||w)H.push({id:R,type:"dimensions",setAttributes:!0,dimensions:{width:P+(M?A[0]*M-S:0),height:y+(w?A[1]*w-f:0)}})});return H}function QT(Q,U,Z,X,H,Y,B){let W=X?.querySelector(".xyflow__viewport"),R=!1;if(!W)return{changes:[],updatedInternals:R};let O=[],T=window.getComputedStyle(W),{m22:A}=new window.DOMMatrixReadOnly(T.transform),M=[];for(let w of Q.values()){let P=U.get(w.id);if(!P)continue;if(P.hidden){U.set(P.id,{...P,internals:{...P.internals,handleBounds:void 0}}),R=!0;continue}let y=mq(w.nodeElement),S=P.measured.width!==y.width||P.measured.height!==y.height;if(!!(y.width&&y.height&&(S||!P.internals.handleBounds||w.force))){let D=w.nodeElement.getBoundingClientRect(),N=D8(P.extent)?P.extent:Y,{positionAbsolute:V}=P.internals;if(P.parentId&&P.extent==="parent"){let h=U.get(P.parentId);if(h)V=cM(V,y,h)}else if(N)V=k8(V,N,y);let v={...P,measured:y,internals:{...P.internals,positionAbsolute:V,handleBounds:{source:SM("source",w.nodeElement,D,A,P.id),target:SM("target",w.nodeElement,D,A,P.id)}}};if(U.set(P.id,v),P.parentId)gX(v,U,Z,{nodeOrigin:H,zIndexMode:B});if(R=!0,S){if(O.push({id:P.id,type:"dimensions",dimensions:y}),P.expandParent&&P.parentId)M.push({id:P.id,parentId:P.parentId,rect:Z9(v,H)})}}}if(M.length>0){let w=iq(M,U,Z,H);O.push(...w)}return{changes:O,updatedInternals:R}}async function qT({delta:Q,panZoom:U,transform:Z,translateExtent:X,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let B=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[H,Y]],X);return!!B&&(B.x!==Z[0]||B.y!==Z[1]||B.k!==Z[2])}function bM(Q,U,Z,X,H,Y){let B=H,W=X.get(B)||new Map;X.set(B,W.set(Z,U)),B=`${H}-${Q}`;let R=X.get(B)||new Map;if(X.set(B,R.set(Z,U)),Y){B=`${H}-${Q}-${Y}`;let O=X.get(B)||new Map;X.set(B,O.set(Z,U))}}function pX(Q,U,Z){Q.clear(),U.clear();for(let X of Z){let{source:H,target:Y,sourceHandle:B=null,targetHandle:W=null}=X,R={edgeId:X.id,source:H,target:Y,sourceHandle:B,targetHandle:W},O=`${H}-${B}--${Y}-${W}`,T=`${Y}-${W}--${H}-${B}`;bM("source",R,T,Q,H,B),bM("target",R,O,Q,Y,W),U.set(X.id,X)}}function UT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return UT(Z,U)}function uM(Q,U,Z){let X=Q;do{if(X?.matches?.(U))return!0;if(X===Z)return!1;X=X?.parentElement}while(X);return!1}function iC(Q,U,Z,X){let H=new Map;for(let[Y,B]of Q)if((B.selected||B.id===X)&&(!B.parentId||!UT(B,Q))&&(B.draggable||U&&typeof B.draggable>"u")){let W=Q.get(Y);if(W)H.set(Y,{id:Y,position:W.position||{x:0,y:0},distance:{x:Z.x-W.internals.positionAbsolute.x,y:Z.y-W.internals.positionAbsolute.y},extent:W.extent,parentId:W.parentId,origin:W.origin,expandParent:W.expandParent,internals:{positionAbsolute:W.internals.positionAbsolute||{x:0,y:0}},measured:{width:W.measured.width??0,height:W.measured.height??0}})}return H}function LX({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:X=!0}){let H=[];for(let[B,W]of U){let R=Z.get(B)?.internals.userNode;if(R)H.push({...R,position:W.position,dragging:X})}if(!Q)return[H[0],H];let Y=Z.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:X},H]}function rC({dragItems:Q,snapGrid:U,x:Z,y:X}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:X-H.distance.y},B=K9(Y,U);return{x:B.x-Y.x,y:B.y-Y.y}}function GT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:X,onDragStop:H}){let Y={x:null,y:null},B=0,W=new Map,R=!1,O={x:0,y:0},T=null,A=!1,M=null,w=!1,P=!1,y=null;function S({noDragClassName:D,handleSelector:N,domNode:V,isSelectable:v,nodeId:h,nodeClickDistance:u=0}){M=U2(V);function b({x:J1,y:$1}){let{nodeLookup:x,nodeExtent:p,snapGrid:c,snapToGrid:s,nodeOrigin:i,onNodeDrag:o,onSelectionDrag:k,onError:g,updateNodePositions:q1}=U();Y={x:J1,y:$1};let t=!1,H1=W.size>1,M1=H1&&p?TX(b8(W)):null,A1=H1&&s?rC({dragItems:W,snapGrid:c,x:J1,y:$1}):null;for(let[L1,U1]of W){if(!x.has(L1))continue;let T1={x:J1-U1.distance.x,y:$1-U1.distance.y};if(s)T1=A1?{x:Math.round(T1.x+A1.x),y:Math.round(T1.y+A1.y)}:K9(T1,c);let C1=null;if(H1&&p&&!U1.extent&&M1){let{positionAbsolute:k1}=U1.internals,x1=k1.x-M1.x+p[0][0],W1=k1.x+U1.measured.width-M1.x2+p[1][0],P1=k1.y-M1.y+p[0][1],H0=k1.y+U1.measured.height-M1.y2+p[1][1];C1=[[x1,P1],[W1,H0]]}let{position:B1,positionAbsolute:S1}=fX({nodeId:L1,nextPosition:T1,nodeLookup:x,nodeExtent:C1?C1:p,nodeOrigin:i,onError:g});t=t||U1.position.x!==B1.x||U1.position.y!==B1.y,U1.position=B1,U1.internals.positionAbsolute=S1}if(P=P||t,!t)return;if(q1(W,!0),y&&(X||o||!h&&k)){let[L1,U1]=LX({nodeId:h,dragItems:W,nodeLookup:x});if(X?.(y,W,L1,U1),o?.(y,L1,U1),!h)k?.(y,U1)}}async function E(){if(!T)return;let{transform:J1,panBy:$1,autoPanSpeed:x,autoPanOnNodeDrag:p}=U();if(!p){R=!1,cancelAnimationFrame(B);return}let[c,s]=Eq(O,T,x);if(c!==0||s!==0){if(Y.x=(Y.x??0)-c/J1[2],Y.y=(Y.y??0)-s/J1[2],await $1({x:c,y:s}))b(Y)}B=requestAnimationFrame(E)}function m(J1){let{nodeLookup:$1,multiSelectionActive:x,nodesDraggable:p,transform:c,snapGrid:s,snapToGrid:i,selectNodesOnDrag:o,onNodeDragStart:k,onSelectionDragStart:g,unselectNodesAndEdges:q1}=U();if(A=!0,(!o||!v)&&!x&&h){if(!$1.get(h)?.selected)q1()}if(v&&o&&h)Q?.(h);let t=fJ(J1.sourceEvent,{transform:c,snapGrid:s,snapToGrid:i,containerBounds:T});if(Y=t,W=iC($1,p,t,h),W.size>0&&(Z||k||!h&&g)){let[H1,M1]=LX({nodeId:h,dragItems:W,nodeLookup:$1});if(Z?.(J1.sourceEvent,W,H1,M1),k?.(J1.sourceEvent,H1,M1),!h)g?.(J1.sourceEvent,M1)}}let a=ZJ().clickDistance(u).on("start",(J1)=>{let{domNode:$1,nodeDragThreshold:x,transform:p,snapGrid:c,snapToGrid:s}=U();if(T=$1?.getBoundingClientRect()||null,w=!1,P=!1,y=J1.sourceEvent,x===0)m(J1);Y=fJ(J1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:s,containerBounds:T}),O=b5(J1.sourceEvent,T)}).on("drag",(J1)=>{let{autoPanOnNodeDrag:$1,transform:x,snapGrid:p,snapToGrid:c,nodeDragThreshold:s,nodeLookup:i}=U(),o=fJ(J1.sourceEvent,{transform:x,snapGrid:p,snapToGrid:c,containerBounds:T});if(y=J1.sourceEvent,J1.sourceEvent.type==="touchmove"&&J1.sourceEvent.touches.length>1||h&&!i.has(h))w=!0;if(w)return;if(!R&&$1&&A)R=!0,E();if(!A){let k=b5(J1.sourceEvent,T),g=k.x-O.x,q1=k.y-O.y;if(Math.sqrt(g*g+q1*q1)>s)m(J1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&W&&A)O=b5(J1.sourceEvent,T),b(o)}).on("end",(J1)=>{if(!A||w){if(w&&W.size>0)U().updateNodePositions(W,!1);return}if(R=!1,A=!1,cancelAnimationFrame(B),W.size>0){let{nodeLookup:$1,updateNodePositions:x,onNodeDragStop:p,onSelectionDragStop:c}=U();if(P)x(W,!1),P=!1;if(H||p||!h&&c){let[s,i]=LX({nodeId:h,dragItems:W,nodeLookup:$1,dragging:!1});if(H?.(J1.sourceEvent,W,s,i),p?.(J1.sourceEvent,s,i),!h)c?.(J1.sourceEvent,i)}}}).filter((J1)=>{let $1=J1.target;return!J1.button&&(!D||!uM($1,`.${D}`,V))&&(!N||uM($1,N,V))});M.call(a)}function f(){M?.on(".drag",null)}return{update:S,destroy:f}}function aC(Q,U,Z){let X=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(SJ(H,Z9(Y))>0)X.push(Y);return X}var sC=250;function tC(Q,U,Z,X){let H=[],Y=1/0,B=aC(Q,Z,U+sC);for(let W of B){let R=[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]];for(let O of R){if(X.nodeId===O.nodeId&&X.type===O.type&&X.id===O.id)continue;let{x:T,y:A}=P6(W,O,O.position,!0),M=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(M>U)continue;if(M<Y)H=[{...O,x:T,y:A}],Y=M;else if(M===Y)H.push({...O,x:T,y:A})}}if(!H.length)return null;if(H.length>1){let W=X.type==="source"?"target":"source";return H.find((R)=>R.type===W)??H[0]}return H[0]}function ZT(Q,U,Z,X,H,Y=!1){let B=X.get(Q);if(!B)return null;let W=H==="strict"?B.internals.handleBounds?.[U]:[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]],R=(Z?W?.find((O)=>O.id===Z):W?.[0])??null;return R&&Y?{...R,...P6(B,R,R.position,!0)}:R}function KT(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 nC(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var FT=()=>!0;function oC(Q,{connectionMode:U,connectionRadius:Z,handleId:X,nodeId:H,edgeUpdaterType:Y,isTarget:B,domNode:W,nodeLookup:R,lib:O,autoPanOnConnect:T,flowId:A,panBy:M,cancelConnection:w,onConnectStart:P,onConnect:y,onConnectEnd:S,isValidConnection:f=FT,onReconnectEnd:D,updateConnection:N,getTransform:V,getFromHandle:v,autoPanSpeed:h,dragThreshold:u=1,handleDomNode:b}){let E=DX(Q.target),m=0,a,{x:J1,y:$1}=b5(Q),x=KT(Y,b),p=W?.getBoundingClientRect(),c=!1;if(!p||!x)return;let s=ZT(H,x,X,R,U);if(!s)return;let i=b5(Q,p),o=!1,k=null,g=!1,q1=null;function t(){if(!T||!p)return;let[B1,S1]=Eq(i,p,h);M({x:B1,y:S1}),m=requestAnimationFrame(t)}let H1={...s,nodeId:H,type:x,position:s.position},M1=R.get(H),L1={inProgress:!0,isValid:null,from:P6(M1,H1,y1.Left,!0),fromHandle:H1,fromPosition:H1.position,fromNode:M1,to:i,toHandle:null,toPosition:NM[H1.position],toNode:null,pointer:i};function U1(){c=!0,N(L1),P?.(Q,{nodeId:H,handleId:X,handleType:x})}if(u===0)U1();function T1(B1){if(!c){let{x:H0,y:D1}=b5(B1),e0=H0-J1,n1=D1-$1;if(!(e0*e0+n1*n1>u*u))return;U1()}if(!v()||!H1){C1(B1);return}let S1=V();if(i=b5(B1,p),a=tC(F9(i,S1,!1,[1,1]),Z,R,H1),!o)t(),o=!0;let k1=XT(B1,{handle:a,connectionMode:U,fromNodeId:H,fromHandleId:X,fromType:B?"target":"source",isValidConnection:f,doc:E,lib:O,flowId:A,nodeLookup:R});q1=k1.handleDomNode,k=k1.connection,g=nC(!!a,k1.isValid);let x1=R.get(H),W1=x1?P6(x1,H1,y1.Left,!0):L1.from,P1={...L1,from:W1,isValid:g,to:k1.toHandle&&g?v8({x:k1.toHandle.x,y:k1.toHandle.y},S1):i,toHandle:k1.toHandle,toPosition:g&&k1.toHandle?k1.toHandle.position:NM[H1.position],toNode:k1.toHandle?R.get(k1.toHandle.nodeId):null,pointer:i};N(P1),L1=P1}function C1(B1){if("touches"in B1&&B1.touches.length>0)return;if(c){if((a||q1)&&k&&g)y?.(k);let{inProgress:S1,...k1}=L1,x1={...k1,toPosition:L1.toHandle?L1.toPosition:null};if(S?.(B1,x1),Y)D?.(B1,x1)}w(),cancelAnimationFrame(m),o=!1,g=!1,k=null,q1=null,E.removeEventListener("mousemove",T1),E.removeEventListener("mouseup",C1),E.removeEventListener("touchmove",T1),E.removeEventListener("touchend",C1)}E.addEventListener("mousemove",T1),E.addEventListener("mouseup",C1),E.addEventListener("touchmove",T1),E.addEventListener("touchend",C1)}function XT(Q,{handle:U,connectionMode:Z,fromNodeId:X,fromHandleId:H,fromType:Y,doc:B,lib:W,flowId:R,isValidConnection:O=FT,nodeLookup:T}){let A=Y==="target",M=U?B.querySelector(`.${W}-flow__handle[data-id="${R}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:w,y:P}=b5(Q),y=B.elementFromPoint(w,P),S=y?.classList.contains(`${W}-flow__handle`)?y:M,f={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let D=KT(void 0,S),N=S.getAttribute("data-nodeid"),V=S.getAttribute("data-handleid"),v=S.classList.contains("connectable"),h=S.classList.contains("connectableend");if(!N||!D)return f;let u={source:A?N:X,sourceHandle:A?V:H,target:A?X:N,targetHandle:A?H:V};f.connection=u;let E=v&&h&&(Z===w6.Strict?A&&D==="source"||!A&&D==="target":N!==X||V!==H);f.isValid=E&&O(u),f.toHandle=ZT(N,D,V,T,Z,!0)}return f}var rq={onPointerDown:oC,isValid:XT};function HT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:X}){let H=U2(Q);function Y({translateExtent:W,width:R,height:O,zoomStep:T=1,pannable:A=!0,zoomable:M=!0,inversePan:w=!1}){let P=(N)=>{if(N.sourceEvent.type!=="wheel"||!U)return;let V=Z(),v=N.sourceEvent.ctrlKey&&X9()?10:1,h=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?0.05:N.sourceEvent.deltaMode?1:0.002)*T,u=V[2]*Math.pow(2,h*v);U.scaleTo(u)},y=[0,0],S=(N)=>{if(N.sourceEvent.type==="mousedown"||N.sourceEvent.type==="touchstart")y=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY]},f=(N)=>{let V=Z();if(N.sourceEvent.type!=="mousemove"&&N.sourceEvent.type!=="touchmove"||!U)return;let v=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],h=[v[0]-y[0],v[1]-y[1]];y=v;let u=X()*Math.max(V[2],Math.log(V[2]))*(w?-1:1),b={x:V[0]-h[0]*u,y:V[1]-h[1]*u},E=[[0,0],[R,O]];U.setViewportConstrained({x:b.x,y:b.y,zoom:V[2]},E,W)},D=NJ().on("start",S).on("zoom",A?f:null).on("zoom.wheel",M?P:null);H.call(D,{})}function B(){H.on("zoom",null)}return{update:Y,destroy:B,pointer:S2}}var aq=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),AX=({x:Q,y:U,zoom:Z})=>j8.translate(Q,U).scale(Z),I6=(Q,U)=>Q.target.closest(`.${U}`),YT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),eC=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,MX=(Q,U=0,Z=eC,X=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)X();return H?Q.transition().duration(U).ease(Z).on("end",X):Q},zT=(Q)=>{let U=Q.ctrlKey&&X9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function _S({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:X,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:B,onPanZoomStart:W,onPanZoom:R,onPanZoomEnd:O}){return(T)=>{if(I6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(T.ctrlKey&&B){let S=S2(T),f=zT(T),D=A*Math.pow(2,f);X.scaleTo(Z,D,S,T);return}let M=T.deltaMode===1?20:1,w=H===R3.Vertical?0:T.deltaX*M,P=H===R3.Horizontal?0:T.deltaY*M;if(!X9()&&T.shiftKey&&H!==R3.Vertical)w=T.deltaY*M,P=0;X.translateBy(Z,-(w/A)*Y,-(P/A)*Y,{internal:!0});let y=aq(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,W?.(T,y);else R?.(T,y);Q.panScrollTimeout=setTimeout(()=>{O?.(T,y),Q.isPanScrolling=!1},150)}}function JS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(X,H){let Y=X.type==="wheel",B=!U&&Y&&!X.ctrlKey,W=I6(X,Q);if(X.ctrlKey&&Y&&W)X.preventDefault();if(B||W)return null;X.preventDefault(),Z.call(this,X,H)}}function $S({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(X)=>{if(X.sourceEvent?.internal)return;let H=aq(X.transform);if(Q.mouseButton=X.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,X.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(X.sourceEvent,H)}}function QS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:X,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&YT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)X([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,aq(Y.transform))}}function qS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:X,onPanZoomEnd:H,onPaneContextMenu:Y}){return(B)=>{if(B.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&YT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&B.sourceEvent)Y(B.sourceEvent);if(Q.usedRightMouseButton=!1,X(!1),H){let W=aq(B.transform);Q.prevViewport=W,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(B.sourceEvent,W)},Z?150:0)}}}function US({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:X,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:B,userSelectionActive:W,noWheelClassName:R,noPanClassName:O,lib:T,connectionInProgress:A}){return(M)=>{let w=U||Z,P=X&&M.ctrlKey,y=M.type==="wheel";if(M.button===1&&M.type==="mousedown"&&(I6(M,`${T}-flow__node`)||I6(M,`${T}-flow__edge`)||I6(M,`${T}-flow__selection`)||I6(M,`${T}-flow__nodesselection`)))return!0;if(!H&&!w&&!Y&&!B&&!X)return!1;if(W)return!1;if(A&&!y)return!1;if(I6(M,R)&&y)return!1;if(I6(M,O)&&(!y||Y&&y&&!U))return!1;if(!X&&M.ctrlKey&&y)return!1;if(!X&&M.type==="touchstart"&&M.touches?.length>1)return M.preventDefault(),!1;if(!w&&!Y&&!P&&y)return!1;if(!H&&(M.type==="mousedown"||M.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(M.button)&&M.type==="mousedown")return!1;let S=Array.isArray(H)&&H.includes(M.button)||!M.button||M.button<=1;return(!M.ctrlKey||y||Q)&&S}}function BT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:X,viewport:H,onPanZoom:Y,onPanZoomStart:B,onPanZoomEnd:W,onDraggingChange:R}){let O={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},T=Q.getBoundingClientRect(),A=[[0,0],[T.width,T.height]];(typeof ResizeObserver<"u"?new ResizeObserver(($1)=>{let x=$1[0];if(x)A=[[0,0],[x.contentRect.width,x.contentRect.height]]}):null)?.observe(Q);let w=NJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(X),P=U2(Q).call(w);V({x:H.x,y:H.y,zoom:U9(H.zoom,U,Z)},[[0,0],[T.width,T.height]],X);let y=P.on("wheel.zoom"),S=P.on("dblclick.zoom");w.wheelDelta(zT);async function f($1,x){if(P)return new Promise((p)=>{w?.interpolate(x?.interpolate==="linear"?E4:C8).transform(MX(P,x?.duration,x?.ease,()=>p(!0)),$1)});return!1}function D({noWheelClassName:$1,noPanClassName:x,onPaneContextMenu:p,userSelectionActive:c,panOnScroll:s,panOnDrag:i,panOnScrollMode:o,panOnScrollSpeed:k,preventScrolling:g,zoomOnPinch:q1,zoomOnScroll:t,zoomOnDoubleClick:H1,panActivationKeyPressed:M1=!1,zoomActivationKeyPressed:A1,lib:L1,onTransformChange:U1,connectionInProgress:T1,paneClickDistance:C1,selectionOnDrag:B1}){if(c&&!O.isZoomingOrPanning)N();let S1=s&&!A1&&!c;w.clickDistance(B1?1/0:!D5(C1)||C1<0?0:C1);let k1=S1?_S({zoomPanValues:O,noWheelClassName:$1,d3Selection:P,d3Zoom:w,panOnScrollMode:o,panOnScrollSpeed:k,zoomOnPinch:q1,onPanZoomStart:B,onPanZoom:Y,onPanZoomEnd:W}):JS({noWheelClassName:$1,preventScrolling:g,d3ZoomHandler:y});P.on("wheel.zoom",k1,{passive:!1});let x1=$S({zoomPanValues:O,onDraggingChange:R,onPanZoomStart:B});w.on("start",x1);let W1=QS({zoomPanValues:O,panOnDrag:i,onPaneContextMenu:!!p,onPanZoom:Y,onTransformChange:U1});w.on("zoom",W1);let P1=qS({zoomPanValues:O,panOnDrag:i,panOnScroll:s,onPaneContextMenu:p,onPanZoomEnd:W,onDraggingChange:R});w.on("end",P1);let H0=US({panActivationKeyPressed:M1,zoomActivationKeyPressed:A1,panOnDrag:i,zoomOnScroll:t,panOnScroll:s,zoomOnDoubleClick:H1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:x,noWheelClassName:$1,lib:L1,connectionInProgress:T1});if(w.filter(H0),H1)P.on("dblclick.zoom",S);else P.on("dblclick.zoom",null)}function N(){w.on("zoom",null)}async function V($1,x,p){let c=AX($1),s=w?.constrain()(c,x,p);if(s)await f(s);return s}async function v($1,x){let p=AX($1);return await f(p,x),p}function h($1){if(P){let x=AX($1),p=P.property("__zoom");if(p.k!==$1.zoom||p.x!==$1.x||p.y!==$1.y)w?.transform(P,x,null,{sync:!0})}}function u(){let $1=P?PJ(P.node()):{x:0,y:0,k:1};return{x:$1.x,y:$1.y,zoom:$1.k}}async function b($1,x){if(P)return new Promise((p)=>{w?.interpolate(x?.interpolate==="linear"?E4:C8).scaleTo(MX(P,x?.duration,x?.ease,()=>p(!0)),$1)});return!1}async function E($1,x){if(P)return new Promise((p)=>{w?.interpolate(x?.interpolate==="linear"?E4:C8).scaleBy(MX(P,x?.duration,x?.ease,()=>p(!0)),$1)});return!1}function m($1){w?.scaleExtent($1)}function a($1){w?.translateExtent($1)}function J1($1){let x=!D5($1)||$1<0?0:$1;w?.clickDistance(x)}return{update:D,destroy:N,setViewport:v,setViewportConstrained:V,getViewport:u,scaleTo:b,scaleBy:E,setScaleExtent:m,setTranslateExtent:a,syncViewport:h,setClickDistance:J1}}var N6;(function(Q){Q.Line="line",Q.Handle="handle"})(N6||(N6={}));function GS({width:Q,prevWidth:U,height:Z,prevHeight:X,affectsX:H,affectsY:Y}){let B=Q-U,W=Z-X,R=[B>0?1:B<0?-1:0,W>0?1:W<0?-1:0];if(B&&H)R[0]=R[0]*-1;if(W&&Y)R[1]=R[1]*-1;return R}function EM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),X=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:X,affectsY:H}}function R6(Q,U){return Math.max(0,U-Q)}function O6(Q,U){return Math.max(0,Q-U)}function Dq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function hM(Q,U){return Q?!U:U}function ZS(Q,U,Z,X,H,Y,B,W){let{affectsX:R,affectsY:O}=U,{isHorizontal:T,isVertical:A}=U,M=T&&A,{xSnapped:w,ySnapped:P}=Z,{minWidth:y,maxWidth:S,minHeight:f,maxHeight:D}=X,{x:N,y:V,width:v,height:h,aspectRatio:u}=Q,b=Math.floor(T?w-Q.pointerX:0),E=Math.floor(A?P-Q.pointerY:0),m=v+(R?-b:b),a=h+(O?-E:E),J1=-Y[0]*v,$1=-Y[1]*h,x=Dq(m,y,S),p=Dq(a,f,D);if(B){let i=0,o=0;if(R&&b<0)i=R6(N+b+J1,B[0][0]);else if(!R&&b>0)i=O6(N+m+J1,B[1][0]);if(O&&E<0)o=R6(V+E+$1,B[0][1]);else if(!O&&E>0)o=O6(V+a+$1,B[1][1]);x=Math.max(x,i),p=Math.max(p,o)}if(W){let i=0,o=0;if(R&&b>0)i=O6(N+b,W[0][0]);else if(!R&&b<0)i=R6(N+m,W[1][0]);if(O&&E>0)o=O6(V+E,W[0][1]);else if(!O&&E<0)o=R6(V+a,W[1][1]);x=Math.max(x,i),p=Math.max(p,o)}if(H){if(T){let i=Dq(m/u,f,D)*u;if(x=Math.max(x,i),B){let o=0;if(!R&&!O||R&&!O&&M)o=O6(V+$1+m/u,B[1][1])*u;else o=R6(V+$1+(R?b:-b)/u,B[0][1])*u;x=Math.max(x,o)}if(W){let o=0;if(!R&&!O||R&&!O&&M)o=R6(V+m/u,W[1][1])*u;else o=O6(V+(R?b:-b)/u,W[0][1])*u;x=Math.max(x,o)}}if(A){let i=Dq(a*u,y,S)/u;if(p=Math.max(p,i),B){let o=0;if(!R&&!O||O&&!R&&M)o=O6(N+a*u+J1,B[1][0])/u;else o=R6(N+(O?E:-E)*u+J1,B[0][0])/u;p=Math.max(p,o)}if(W){let o=0;if(!R&&!O||O&&!R&&M)o=R6(N+a*u,W[1][0])/u;else o=O6(N+(O?E:-E)*u,W[0][0])/u;p=Math.max(p,o)}}}if(E=E+(E<0?p:-p),b=b+(b<0?x:-x),H)if(M)if(m>a*u)E=(hM(R,O)?-b:b)/u;else b=(hM(R,O)?-E:E)*u;else if(T)E=b/u,O=R;else b=E*u,R=O;let c=R?N+b:N,s=O?V+E:V;return{width:v+(R?-b:b),height:h+(O?-E:E),x:Y[0]*b*(!R?1:-1)+c,y:Y[1]*E*(!O?1:-1)+s}}var WT={width:0,height:0,x:0,y:0},KS={...WT,pointerX:0,pointerY:0,aspectRatio:1};function FS(Q,U,Z){let X=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,B=Q.measured.height??0,W=Z[0]*Y,R=Z[1]*B;return[[X-W,H-R],[X+Y-W,H+B-R]]}function LT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:X,onEnd:H}){let Y=U2(Q),B={controlDirection:EM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function W({controlPosition:O,boundaries:T,keepAspectRatio:A,resizeDirection:M,onResizeStart:w,onResize:P,onResizeEnd:y,shouldResize:S}){let f={...WT},D={...KS};B={boundaries:T,resizeDirection:M,keepAspectRatio:A,controlDirection:EM(O)};let N=void 0,V=null,v=[],h=void 0,u=void 0,b=void 0,E=ZJ().on("start",(m)=>{let{nodeLookup:a,transform:J1,snapGrid:$1,snapToGrid:x,nodeOrigin:p,paneDomNode:c}=Z();if(N=a.get(U),!N)return;V=c?.getBoundingClientRect()??null;let{xSnapped:s,ySnapped:i}=fJ(m.sourceEvent,{transform:J1,snapGrid:$1,snapToGrid:x,containerBounds:V});if(f={width:N.measured.width??0,height:N.measured.height??0,x:N.position.x??0,y:N.position.y??0},D={...f,pointerX:s,pointerY:i,aspectRatio:f.width/f.height},h=void 0,u=D8(N.extent)?N.extent:void 0,N.parentId&&(N.extent==="parent"||N.expandParent))h=a.get(N.parentId);if(h&&N.extent==="parent")u=[[0,0],[h.measured.width,h.measured.height]];v=[],b=void 0;for(let[o,k]of a)if(k.parentId===U){if(v.push({id:o,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let g=FS(k,N,k.origin??p);if(b)b=[[Math.min(g[0][0],b[0][0]),Math.min(g[0][1],b[0][1])],[Math.max(g[1][0],b[1][0]),Math.max(g[1][1],b[1][1])]];else b=g}}w?.(m,{...f})}).on("drag",(m)=>{let{transform:a,snapGrid:J1,snapToGrid:$1,nodeOrigin:x}=Z(),p=fJ(m.sourceEvent,{transform:a,snapGrid:J1,snapToGrid:$1,containerBounds:V}),c=[];if(!N)return;let{x:s,y:i,width:o,height:k}=f,g={},q1=N.origin??x,{width:t,height:H1,x:M1,y:A1}=ZS(D,B.controlDirection,p,B.boundaries,B.keepAspectRatio,q1,u,b),L1=t!==o,U1=H1!==k,T1=M1!==s&&L1,C1=A1!==i&&U1;if(!T1&&!C1&&!L1&&!U1)return;let B1={prevValues:{...f},startX:D.x,startY:D.y,childNodes:v.map((W1)=>({...W1,position:{...W1.position}}))};if(T1||C1||q1[0]===1||q1[1]===1){if(g.x=T1?M1:f.x,g.y=C1?A1:f.y,f.x=g.x,f.y=g.y,v.length>0){let W1=M1-s,P1=A1-i;for(let H0 of v)H0.position={x:H0.position.x-W1+q1[0]*(t-o),y:H0.position.y-P1+q1[1]*(H1-k)},c.push(H0)}}if(L1||U1)g.width=L1&&(!B.resizeDirection||B.resizeDirection==="horizontal")?t:f.width,g.height=U1&&(!B.resizeDirection||B.resizeDirection==="vertical")?H1:f.height,f.width=g.width,f.height=g.height;if(h&&N.expandParent){let W1=q1[0]*(g.width??0);if(g.x&&g.x<W1)f.x=W1,D.x=D.x-(g.x-W1);let P1=q1[1]*(g.height??0);if(g.y&&g.y<P1)f.y=P1,D.y=D.y-(g.y-P1)}let S1=GS({width:f.width,prevWidth:o,height:f.height,prevHeight:k,affectsX:B.controlDirection.affectsX,affectsY:B.controlDirection.affectsY}),k1={...f,direction:S1};if(S?.(m,k1)===!1){f=B1.prevValues,D.x=B1.startX,D.y=B1.startY,v.forEach((W1,P1)=>{W1.position=B1.childNodes[P1].position});return}P?.(m,k1),X(g,c)}).on("end",(m)=>{y?.(m,{...f}),H?.({...f})});Y.call(E)}function R(){Y.on(".drag",null)}return{update:W,destroy:R}}var IT=b0(n5(),1),wT=b0(MT(),1);var TT=(Q)=>{let U,Z=new Set,X=(T,A)=>{let M=typeof T==="function"?T(U):T;if(!Object.is(M,U)){let w=U;U=(A!=null?A:typeof M!=="object"||M===null)?M:Object.assign({},U,M),Z.forEach((P)=>P(U,w))}},H=()=>U,R={setState:X,getState:H,getInitialState:()=>O,subscribe:(T)=>{return Z.add(T),()=>Z.delete(T)},destroy:()=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");Z.clear()}},O=U=Q(X,H,R);return R},RT=(Q)=>Q?TT(Q):TT;var{useDebugValue:YS}=IT.default,{useSyncExternalStoreWithSelector:zS}=wT.default,BS=(Q)=>Q;function cX(Q,U=BS,Z){let X=zS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return YS(X),X}var OT=(Q,U)=>{let Z=RT(Q),X=(H,Y=U)=>cX(Z,H,Y);return Object.assign(X,Z),X},PT=(Q,U)=>Q?OT(Q,U):OT;function y0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[X,H]of Q)if(!Object.is(H,U.get(X)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let X of Q)if(!U.has(X))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let X of Z)if(!Object.prototype.hasOwnProperty.call(U,X)||!Object.is(Q[X],U[X]))return!1;return!0}var nT=b0(mK(),1),eq=X1.createContext(null),WS=eq.Provider,oT=i2.error001("react");function K0(Q,U){let Z=X1.useContext(eq);if(Z===null)throw Error(oT);return cX(Z,Q,U)}function k0(){let Q=X1.useContext(eq);if(Q===null)throw Error(oT);return X1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var NT={display:"none"},LS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},eT="react-flow__node-desc",_R="react-flow__edge-desc",AS="react-flow__aria-live",MS=(Q)=>Q.ariaLiveMessage,TS=(Q)=>Q.ariaLabelConfig;function RS({rfId:Q}){let U=K0(MS);return F1.jsx("div",{id:`${AS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:LS,children:U})}function OS({rfId:Q,disableKeyboardA11y:U}){let Z=K0(TS);return F1.jsxs(F1.Fragment,{children:[F1.jsx("div",{id:`${eT}-${Q}`,style:NT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),F1.jsx("div",{id:`${_R}-${Q}`,style:NT,children:Z["edge.a11yDescription.default"]}),!U&&F1.jsx(RS,{rfId:Q})]})}var E8=X1.forwardRef(({position:Q="top-left",children:U,className:Z,style:X,...H},Y)=>{let B=`${Q}`.split("-");return F1.jsx("div",{className:h0(["react-flow__panel",Z,...B]),style:X,ref:Y,...H,children:U})});E8.displayName="Panel";var fT="https://reactflow.dev/attribution";function IS({proOptions:Q,position:U="bottom-right"}){if(X1.useEffect(()=>{rM("react")},[]),Q?.hideAttribution)return null;return F1.jsx(E8,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${fT}`,children:F1.jsx("a",{href:fT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var wS=(Q)=>{let U=[],Z=[];for(let[,X]of Q.nodeLookup)if(X.selected)U.push(X.internals.userNode);for(let[,X]of Q.edgeLookup)if(X.selected)Z.push(X);return{selectedNodes:U,selectedEdges:Z}},sq=(Q)=>Q.id;function PS(Q,U){return y0(Q.selectedNodes.map(sq),U.selectedNodes.map(sq))&&y0(Q.selectedEdges.map(sq),U.selectedEdges.map(sq))}function NS({onSelectionChange:Q}){let U=k0(),{selectedNodes:Z,selectedEdges:X}=K0(wS,PS);return X1.useEffect(()=>{let H={nodes:Z,edges:X};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,X,Q]),null}var fS=(Q)=>!!Q.onSelectionChangeHandlers;function CS({onSelectionChange:Q}){let U=K0(fS);if(Q||U)return F1.jsx(NS,{onSelectionChange:Q});return null}var JR=[0,0],SS={x:0,y:0,zoom:1},jS=["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"],CT=[...jS,"rfId"],VS=(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}),ST={translateExtent:G9,nodeOrigin:JR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function yS(Q){let{setNodes:U,setEdges:Z,setMinZoom:X,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:B,reset:W,setDefaultNodesAndEdges:R}=K0(VS,y0),O=k0();X1.useEffect(()=>{return R(Q.defaultNodes,Q.defaultEdges),()=>{T.current=ST,W()}},[]);let T=X1.useRef(ST);return X1.useEffect(()=>{for(let A of CT){let M=Q[A],w=T.current[A];if(M===w)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(M);else if(A==="edges")Z(M);else if(A==="minZoom")X(M);else if(A==="maxZoom")H(M);else if(A==="translateExtent")Y(M);else if(A==="nodeExtent")B(M);else if(A==="ariaLabelConfig")O.setState({ariaLabelConfig:iM(M)});else if(A==="fitView")O.setState({fitViewQueued:M});else if(A==="fitViewOptions")O.setState({fitViewOptions:M});else O.setState({[A]:M})}T.current=Q},CT.map((A)=>Q[A])),null}function jT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function kS(Q){let[U,Z]=X1.useState(Q==="system"?null:Q);return X1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let X=jT(),H=()=>Z(X?.matches?"dark":"light");return H(),X?.addEventListener("change",H),()=>{X?.removeEventListener("change",H)}},[Q]),U!==null?U:jT()?.matches?"dark":"light"}var VT=typeof document<"u"?document:null;function yJ(Q=null,U={target:VT,actInsideInputWithModifier:!0}){let[Z,X]=X1.useState(!1),H=X1.useRef(!1),Y=X1.useRef(new Set([])),[B,W]=X1.useMemo(()=>{if(Q!==null){let O=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
|
|
242
|
+
`).replace(`
|
|
243
|
+
|
|
244
|
+
`,`
|
|
245
|
+
+`).split(`
|
|
246
|
+
`)),T=O.reduce((A,M)=>A.concat(...M),[]);return[O,T]}return[[],[]]},[Q]);return X1.useEffect(()=>{let R=U?.target??VT,O=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(w)=>{if(H.current=w.ctrlKey||w.metaKey||w.shiftKey||w.altKey,(!H.current||H.current&&!O)&&bX(w))return!1;let y=kT(w.code,W);if(Y.current.add(w[y]),yT(B,Y.current,!1)){let S=w.composedPath?.()?.[0]||w.target,f=S?.nodeName==="BUTTON"||S?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!f))w.preventDefault();X(!0)}},A=(w)=>{let P=kT(w.code,W);if(yT(B,Y.current,!0))X(!1),Y.current.clear();else Y.current.delete(w[P]);if(w.key==="Meta")Y.current.clear();H.current=!1},M=()=>{Y.current.clear(),X(!1)};return R?.addEventListener("keydown",T),R?.addEventListener("keyup",A),window.addEventListener("blur",M),window.addEventListener("contextmenu",M),()=>{R?.removeEventListener("keydown",T),R?.removeEventListener("keyup",A),window.removeEventListener("blur",M),window.removeEventListener("contextmenu",M)}}},[Q,X]),Z}function yT(Q,U,Z){return Q.filter((X)=>Z||X.length===U.size).some((X)=>X.every((H)=>U.has(H)))}function kT(Q,U){return U.includes(Q)?"code":"key"}var vS=()=>{let Q=k0();return X1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,Z)=>{let{panZoom:X}=Q.getState();return X?X.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[X,H,Y],panZoom:B}=Q.getState();if(!B)return!1;return await B.setViewport({x:U.x??X,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,X]=Q.getState().transform;return{x:U,y:Z,zoom:X}},setCenter:async(U,Z,X)=>{return Q.getState().setCenter(U,Z,X)},fitBounds:async(U,Z)=>{let{width:X,height:H,minZoom:Y,maxZoom:B,panZoom:W}=Q.getState(),R=jJ(U,X,H,Y,B,Z?.padding??0.1);if(!W)return!1;return await W.setViewport(R,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:X,snapGrid:H,snapToGrid:Y,domNode:B}=Q.getState();if(!B)return U;let{x:W,y:R}=B.getBoundingClientRect(),O={x:U.x-W,y:U.y-R},T=Z.snapGrid??H,A=Z.snapToGrid??Y;return F9(O,X,A,T)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:X}=Q.getState();if(!X)return U;let{x:H,y:Y}=X.getBoundingClientRect(),B=v8(U,Z);return{x:B.x+H,y:B.y+Y}}}},[])};function $R(Q,U){let Z=[],X=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")X.set(Y.id,[Y]);else{let B=X.get(Y.id);if(B)B.push(Y);else X.set(Y.id,[Y])}for(let Y of U){let B=X.get(Y.id);if(!B){Z.push(Y);continue}if(B[0].type==="remove")continue;if(B[0].type==="replace"){Z.push({...B[0].item});continue}let W={...Y};for(let R of B)DS(R,W);Z.push(W)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function DS(Q,U){switch(Q.type){case"select":{U.selected=Q.selected;break}case"position":{if(typeof Q.position<"u")U.position=Q.position;if(typeof Q.dragging<"u")U.dragging=Q.dragging;break}case"dimensions":{if(typeof Q.dimensions<"u"){if(U.measured={...Q.dimensions},Q.setAttributes){if(Q.setAttributes===!0||Q.setAttributes==="width")U.width=Q.dimensions.width;if(Q.setAttributes===!0||Q.setAttributes==="height")U.height=Q.dimensions.height}}if(typeof Q.resizing==="boolean")U.resizing=Q.resizing;break}}}function QR(Q,U){return $R(Q,U)}function bS(Q,U){return $R(Q,U)}function u8(Q,U){return{id:Q,type:"select",selected:U}}function H9(Q,U=new Set,Z=!1){let X=[];for(let[H,Y]of Q){let B=U.has(H);if(!(Y.selected===void 0&&!B)&&Y.selected!==B){if(Z)Y.selected=B;X.push(u8(Y.id,B))}}return X}function vT({items:Q=[],lookup:U}){let Z=[],X=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let B=U.get(Y.id),W=B?.internals?.userNode??B;if(W!==void 0&&W!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(W===void 0)Z.push({item:Y,type:"add",index:H})}for(let[H]of U)if(X.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function DT(Q){return{id:Q.id,type:"remove"}}var uS=jX("React Flow","https://reactflow.dev/");function ES(Q,U,Z={}){return tM(Q,U,{...Z,onError:Z.onError??uS})}var bT=(Q)=>xM(Q),hS=(Q)=>wX(Q);function qR(Q){return X1.forwardRef(Q)}var UR=typeof window<"u"?X1.useLayoutEffect:X1.useEffect;function uT(Q){let[U,Z]=X1.useState(BigInt(0)),[X]=X1.useState(()=>xS(()=>Z((H)=>H+BigInt(1))));return UR(()=>{let H=X.get();if(H.length)Q(H),X.reset()},[U]),X}function xS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var GR=X1.createContext(null);function mS({children:Q}){let U=k0(),Z=X1.useCallback((W)=>{let{nodes:R=[],setNodes:O,hasDefaultNodes:T,onNodesChange:A,nodeLookup:M,fitViewQueued:w,onNodesChangeMiddlewareMap:P}=U.getState(),y=R;for(let f of W)y=typeof f==="function"?f(y):f;let S=vT({items:y,lookup:M});for(let f of P.values())S=f(S);if(T)O(y);if(S.length>0)A?.(S);else if(w)window.requestAnimationFrame(()=>{let{fitViewQueued:f,nodes:D,setNodes:N}=U.getState();if(f)N(D)})},[]),X=uT(Z),H=X1.useCallback((W)=>{let{edges:R=[],setEdges:O,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:M}=U.getState(),w=R;for(let P of W)w=typeof P==="function"?P(w):P;if(T)O(w);else if(A)A(vT({items:w,lookup:M}))},[]),Y=uT(H),B=X1.useMemo(()=>({nodeQueue:X,edgeQueue:Y}),[]);return F1.jsx(GR.Provider,{value:B,children:Q})}function gS(){let Q=X1.useContext(GR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var pS=(Q)=>!!Q.panZoom;function kJ(){let Q=vS(),U=k0(),Z=gS(),X=K0(pS),H=X1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),B=(A)=>{Z.nodeQueue.push(A)},W=(A)=>{Z.edgeQueue.push(A)},R=(A)=>{let{nodeLookup:M,nodeOrigin:w}=U.getState(),P=bT(A)?A:M.get(A.id),y=P.parentId?yX(P.position,P.measured,P.parentId,M,w):P.position,S={...P,position:y,width:P.measured?.width??P.width,height:P.measured?.height??P.height};return Z9(S)},O=(A,M,w={replace:!1})=>{B((P)=>P.map((y)=>{if(y.id===A){let S=typeof M==="function"?M(y):M;return w.replace&&bT(S)?S:{...y,...S}}return y}))},T=(A,M,w={replace:!1})=>{W((P)=>P.map((y)=>{if(y.id===A){let S=typeof M==="function"?M(y):M;return w.replace&&hS(S)?S:{...y,...S}}return y}))};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((M)=>({...M}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:B,setEdges:W,addNodes:(A)=>{let M=Array.isArray(A)?A:[A];Z.nodeQueue.push((w)=>[...w,...M])},addEdges:(A)=>{let M=Array.isArray(A)?A:[A];Z.edgeQueue.push((w)=>[...w,...M])},toObject:()=>{let{nodes:A=[],edges:M=[],transform:w}=U.getState(),[P,y,S]=w;return{nodes:A.map((f)=>({...f})),edges:M.map((f)=>({...f})),viewport:{x:P,y,zoom:S}}},deleteElements:async({nodes:A=[],edges:M=[]})=>{let{nodes:w,edges:P,onNodesDelete:y,onEdgesDelete:S,triggerNodeChanges:f,triggerEdgeChanges:D,onDelete:N,onBeforeDelete:V}=U.getState(),{nodes:v,edges:h}=await pM({nodesToRemove:A,edgesToRemove:M,nodes:w,edges:P,onBeforeDelete:V}),u=h.length>0,b=v.length>0;if(u){let E=h.map(DT);S?.(h),D(E)}if(b){let E=v.map(DT);y?.(v),f(E)}if(b||u)N?.({nodes:v,edges:h});return{deletedNodes:v,deletedEdges:h}},getIntersectingNodes:(A,M=!0,w)=>{let P=SX(A),y=P?A:R(A),S=w!==void 0;if(!y)return[];return(w||U.getState().nodes).filter((f)=>{let D=U.getState().nodeLookup.get(f.id);if(D&&!P&&(f.id===A.id||!D.internals.positionAbsolute))return!1;let N=Z9(S?f:D),V=SJ(N,y);return M&&V>0||V>=N.width*N.height||V>=y.width*y.height})},isNodeIntersecting:(A,M,w=!0)=>{let y=SX(A)?A:R(A);if(!y)return!1;let S=SJ(y,M);return w&&S>0||S>=M.width*M.height||S>=y.width*y.height},updateNode:O,updateNodeData:(A,M,w={replace:!1})=>{O(A,(P)=>{let y=typeof M==="function"?M(P):M;return w.replace?{...P,data:y}:{...P,data:{...P.data,...y}}},w)},updateEdge:T,updateEdgeData:(A,M,w={replace:!1})=>{T(A,(P)=>{let y=typeof M==="function"?M(P):M;return w.replace?{...P,data:y}:{...P,data:{...P.data,...y}}},w)},getNodesBounds:(A)=>{let{nodeLookup:M,nodeOrigin:w}=U.getState();return NX(A,{nodeLookup:M,nodeOrigin:w})},getHandleConnections:({type:A,id:M,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}-${A}${M?`-${M}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:M,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}${A?M?`-${A}-${M}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let M=U.getState().fitViewResolver??dM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:M}),Z.nodeQueue.push((w)=>[...w]),M.promise}}},[]);return X1.useMemo(()=>{return{...H,...Q,viewportInitialized:X}},[X])}var ET=(Q)=>Q.selected,cS=typeof window<"u"?window:void 0;function lS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=k0(),{deleteElements:X}=kJ(),H=yJ(Q,{actInsideInputWithModifier:!1}),Y=yJ(U,{target:cS});X1.useEffect(()=>{if(H){let{edges:B,nodes:W}=Z.getState();X({nodes:W.filter(ET),edges:B.filter(ET)}),Z.setState({nodesSelectionActive:!1})}},[H]),X1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function dS(Q){let U=k0();X1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let X=mq(Q.current);if(X.height===0||X.width===0)U.getState().onError?.("004",i2.error004());U.setState({width:X.width||500,height:X.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let X=new ResizeObserver(()=>Z());return X.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),X&&Q.current)X.unobserve(Q.current)}}},[])}var _U={position:"absolute",width:"100%",height:"100%",top:0,left:0},iS=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function rS({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:X=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:B=R3.Free,zoomOnDoubleClick:W=!0,panOnDrag:R=!0,defaultViewport:O,translateExtent:T,minZoom:A,maxZoom:M,zoomActivationKeyCode:w,preventScrolling:P=!0,children:y,noWheelClassName:S,noPanClassName:f,onViewportChange:D,isControlledViewport:N,paneClickDistance:V,selectionOnDrag:v}){let h=k0(),u=X1.useRef(null),{userSelectionActive:b,lib:E,connectionInProgress:m}=K0(iS,y0),a=yJ(w),J1=X1.useRef();dS(u);let $1=X1.useCallback((x)=>{if(D?.({x:x[0],y:x[1],zoom:x[2]}),!N)h.setState({transform:x})},[D,N]);return X1.useEffect(()=>{if(u.current){J1.current=BT({domNode:u.current,minZoom:A,maxZoom:M,translateExtent:T,viewport:O,onDraggingChange:(s)=>h.setState((i)=>i.paneDragging===s?i:{paneDragging:s}),onPanZoomStart:(s,i)=>{let{onViewportChangeStart:o,onMoveStart:k}=h.getState();k?.(s,i),o?.(i)},onPanZoom:(s,i)=>{let{onViewportChange:o,onMove:k}=h.getState();k?.(s,i),o?.(i)},onPanZoomEnd:(s,i)=>{let{onViewportChangeEnd:o,onMoveEnd:k}=h.getState();k?.(s,i),o?.(i)}});let{x,y:p,zoom:c}=J1.current.getViewport();return h.setState({panZoom:J1.current,transform:[x,p,c],domNode:u.current.closest(".react-flow")}),()=>{J1.current?.destroy()}}},[]),X1.useEffect(()=>{J1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:X,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:B,zoomOnDoubleClick:W,panOnDrag:R,zoomActivationKeyPressed:a,preventScrolling:P,noPanClassName:f,userSelectionActive:b,noWheelClassName:S,lib:E,onTransformChange:$1,connectionInProgress:m,selectionOnDrag:v,paneClickDistance:V})},[Q,U,Z,X,H,Y,B,W,R,a,P,f,b,S,E,$1,m,v,V]),F1.jsx("div",{className:"react-flow__renderer",ref:u,style:_U,children:y})}var aS=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function sS(){let{userSelectionActive:Q,userSelectionRect:U}=K0(aS,y0);if(!(Q&&U))return null;return F1.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 lX=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},tS=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function nS({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=y8.Full,panOnDrag:X,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:B,onSelectionStart:W,onSelectionEnd:R,onPaneClick:O,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:M,onPaneMouseMove:w,onPaneMouseLeave:P,children:y}){let S=X1.useRef(0),f=k0(),{userSelectionActive:D,elementsSelectable:N,dragging:V,panBy:v,autoPanSpeed:h}=K0(tS,y0),u=N&&(Q||D),b=X1.useRef(null),E=X1.useRef(),m=X1.useRef(new Set),a=X1.useRef(new Set),J1=X1.useRef(!1),$1=X1.useRef(!1),x=X1.useRef({x:0,y:0}),p=X1.useRef(!1),c=(U1)=>{if($1.current||J1.current||f.getState().connection.inProgress){$1.current=!1,J1.current=!1;return}O?.(U1),f.getState().resetSelectedElements(),f.setState({nodesSelectionActive:!1})},s=(U1)=>{if(Array.isArray(X)&&X?.includes(2)){U1.preventDefault();return}T?.(U1)},i=A?(U1)=>A(U1):void 0,o=(U1)=>{if($1.current)U1.stopPropagation(),$1.current=!1},k=(U1)=>{if(U1.pointerType==="touch"&&X!==!1&&!U)return;let{domNode:T1,transform:C1}=f.getState();if(E.current=T1?.getBoundingClientRect(),!E.current)return;let B1=U1.target===b.current;if(!B1&&!!U1.target.closest(".nokey")||!Q||!(B&&B1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),$1.current=!1;let{x:x1,y:W1}=b5(U1.nativeEvent,E.current),P1=F9({x:x1,y:W1},C1);if(f.setState({userSelectionRect:{width:0,height:0,startX:P1.x,startY:P1.y,x:x1,y:W1}}),!B1)U1.stopPropagation(),U1.preventDefault()};function g(U1,T1){let{userSelectionRect:C1}=f.getState();if(!C1)return;let{transform:B1,nodeLookup:S1,edgeLookup:k1,connectionLookup:x1,triggerNodeChanges:W1,triggerEdgeChanges:P1,defaultEdgeOptions:H0}=f.getState(),D1={x:C1.startX,y:C1.startY},{x:e0,y:n1}=v8(D1,B1),r2={startX:D1.x,startY:D1.y,x:U1<e0?U1:e0,y:T1<n1?T1:n1,width:Math.abs(U1-e0),height:Math.abs(T1-n1)},R2=m.current,y2=a.current;m.current=new Set(uq(S1,r2,B1,Z===y8.Partial,!0).map((v2)=>v2.id)),a.current=new Set;let k2=H0?.selectable??!0;for(let v2 of m.current){let O2=x1.get(v2);if(!O2)continue;for(let{edgeId:I2}of O2.values()){let w2=k1.get(I2);if(w2&&(w2.selectable??k2))a.current.add(I2)}}if(!kX(R2,m.current)){let v2=H9(S1,m.current,!0);W1(v2)}if(!kX(y2,a.current)){let v2=H9(k1,a.current);P1(v2)}f.setState({userSelectionRect:r2,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!E.current)return;let[U1,T1]=Eq(x.current,E.current,h);v({x:U1,y:T1}).then((C1)=>{if(!$1.current||!C1){S.current=requestAnimationFrame(q1);return}let{x:B1,y:S1}=x.current;g(B1,S1),S.current=requestAnimationFrame(q1)})}let t=()=>{cancelAnimationFrame(S.current),S.current=0,p.current=!1};X1.useEffect(()=>{return()=>t()},[]);let H1=(U1)=>{let{userSelectionRect:T1,transform:C1,resetSelectedElements:B1}=f.getState();if(!E.current||!T1)return;let{x:S1,y:k1}=b5(U1.nativeEvent,E.current);x.current={x:S1,y:k1};let x1=v8({x:T1.startX,y:T1.startY},C1);if(!$1.current){let W1=U?0:Y;if(Math.hypot(S1-x1.x,k1-x1.y)<=W1)return;B1(),W?.(U1)}if($1.current=!0,!p.current)q1(),p.current=!0;g(S1,k1)},M1=(U1)=>{if(!u){if(U1.target===b.current&&f.getState().connection.inProgress)J1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!D&&U1.target===b.current&&f.getState().userSelectionRect)c?.(U1);if(f.setState({userSelectionActive:!1,userSelectionRect:null}),$1.current)R?.(U1),f.setState({nodesSelectionActive:m.current.size>0});t()},A1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),t()},L1=X===!0||Array.isArray(X)&&X.includes(0);return F1.jsxs("div",{className:h0(["react-flow__pane",{draggable:L1,dragging:V,selection:Q}]),onClick:u?void 0:lX(c,b),onContextMenu:lX(s,b),onWheel:lX(i,b),onPointerEnter:u?void 0:M,onPointerMove:u?H1:w,onPointerUp:M1,onPointerCancel:u?A1:void 0,onPointerDownCapture:u?k:void 0,onClickCapture:u?o:void 0,onPointerLeave:P,ref:b,style:_U,children:[y,F1.jsx(sS,{})]})}function iX({id:Q,store:U,unselect:Z=!1,nodeRef:X}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:B,nodeLookup:W,onError:R}=U.getState(),O=W.get(Q);if(!O){R?.("012",i2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!O.selected)H([Q]);else if(Z||O.selected&&B)Y({nodes:[O],edges:[]}),requestAnimationFrame(()=>X?.current?.blur())}function ZR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:X,nodeId:H,isSelectable:Y,nodeClickDistance:B}){let W=k0(),[R,O]=X1.useState(!1),T=X1.useRef();return X1.useEffect(()=>{if(U)return;return T.current=GT({getStoreItems:()=>W.getState(),onNodeMouseDown:(A)=>{iX({id:A,store:W,nodeRef:Q})},onDragStart:()=>{O(!0)},onDragStop:()=>{O(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,W,Q]),X1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:Z,handleSelector:X,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:B})},[Z,X,U,Y,Q,H,B]),R}var oS=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function KR(){let Q=k0();return X1.useCallback((Z)=>{let{nodeExtent:X,snapToGrid:H,snapGrid:Y,nodesDraggable:B,onError:W,updateNodePositions:R,nodeLookup:O,nodeOrigin:T}=Q.getState(),A=new Map,M=oS(B),w=H?Y[0]:5,P=H?Y[1]:5,y=Z.direction.x*w*Z.factor,S=Z.direction.y*P*Z.factor;for(let[,f]of O){if(!M(f))continue;let D={x:f.internals.positionAbsolute.x+y,y:f.internals.positionAbsolute.y+S};if(H)D=K9(D,Y);let{position:N,positionAbsolute:V}=fX({nodeId:f.id,nextPosition:D,nodeLookup:O,nodeExtent:X,nodeOrigin:T,onError:W});f.position=N,f.internals.positionAbsolute=V,A.set(f.id,f)}R(A)},[])}var rX=X1.createContext(null),eS=rX.Provider;rX.Consumer;var aX=()=>{return X1.useContext(rX)},_j=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),FR=X1.createContext(null);function Jj({children:Q}){let U=K0(_j,y0);return F1.jsx(FR.Provider,{value:U,children:Q})}function $j(){let Q=X1.useContext(FR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Qj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},qj=(Q,U,Z)=>(X)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:B}=X,{fromHandle:W,toHandle:R,isValid:O}=B;if(!W&&!H)return Qj;let T=R?.nodeId===Q&&R?.id===U&&R?.type===Z;return{connectingFrom:W?.nodeId===Q&&W?.id===U&&W?.type===Z,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===w6.Strict?W?.type!==Z:Q!==W?.nodeId||U!==W?.id,connectionInProcess:!!W,clickConnectionInProcess:!!H,valid:T&&O}};function Uj({type:Q="source",position:U=y1.Top,isValidConnection:Z,isConnectable:X=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:B,onConnect:W,children:R,className:O,onMouseDown:T,onTouchStart:A,...M},w){let P=B||null,y=Q==="target",S=k0(),f=aX(),{connectOnClick:D,noPanClassName:N,rfId:V}=$j(),{connectingFrom:v,connectingTo:h,clickConnecting:u,isPossibleEndHandle:b,connectionInProcess:E,clickConnectionInProcess:m,valid:a}=K0(qj(f,P,Q),y0);if(!f)S.getState().onError?.("010",i2.error010());let J1=(p)=>{let{defaultEdgeOptions:c,onConnect:s,hasDefaultEdges:i}=S.getState(),o={...c,...p};if(i){let{edges:k,setEdges:g,onError:q1}=S.getState();g(ES(o,k,{onError:q1}))}s?.(o),W?.(o)},$1=(p)=>{if(!f)return;let c=uX(p.nativeEvent);if(H&&(c&&p.button===0||!c)){let s=S.getState();rq.onPointerDown(p.nativeEvent,{handleDomNode:p.currentTarget,autoPanOnConnect:s.autoPanOnConnect,connectionMode:s.connectionMode,connectionRadius:s.connectionRadius,domNode:s.domNode,nodeLookup:s.nodeLookup,lib:s.lib,isTarget:y,handleId:P,nodeId:f,flowId:s.rfId,panBy:s.panBy,cancelConnection:s.cancelConnection,onConnectStart:s.onConnectStart,onConnectEnd:(...i)=>S.getState().onConnectEnd?.(...i),updateConnection:s.updateConnection,onConnect:J1,isValidConnection:Z||((...i)=>S.getState().isValidConnection?.(...i)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:s.autoPanSpeed,dragThreshold:s.connectionDragThreshold})}if(c)T?.(p);else A?.(p)},x=(p)=>{let{onClickConnectStart:c,onClickConnectEnd:s,connectionClickStartHandle:i,connectionMode:o,isValidConnection:k,lib:g,rfId:q1,nodeLookup:t,connection:H1}=S.getState();if(!f||!i&&!H)return;if(!i){c?.(p.nativeEvent,{nodeId:f,handleId:P,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:f,type:Q,id:P}});return}let M1=DX(p.target),A1=Z||k,{connection:L1,isValid:U1}=rq.isValid(p.nativeEvent,{handle:{nodeId:f,id:P,type:Q},connectionMode:o,fromNodeId:i.nodeId,fromHandleId:i.id||null,fromType:i.type,isValidConnection:A1,flowId:q1,doc:M1,lib:g,nodeLookup:t});if(U1&&L1)J1(L1);let T1=structuredClone(H1);delete T1.inProgress,T1.toPosition=T1.toHandle?T1.toHandle.position:null,s?.(p,T1),S.setState({connectionClickStartHandle:null})};return F1.jsx("div",{"data-handleid":P,"data-nodeid":f,"data-handlepos":U,"data-id":`${V}-${f}-${P}-${Q}`,className:h0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",N,O,{source:!y,target:y,connectable:X,connectablestart:H,connectableend:Y,clickconnecting:u,connectingfrom:v,connectingto:h,valid:a,connectionindicator:X&&(!E||b)&&(E||m?Y:H)}]),onMouseDown:$1,onTouchStart:$1,onClick:D?x:void 0,ref:w,...M,children:R})}var nq=X1.memo(qR(Uj));function Gj({data:Q,isConnectable:U,sourcePosition:Z=y1.Bottom}){return F1.jsxs(F1.Fragment,{children:[Q?.label,F1.jsx(nq,{type:"source",position:Z,isConnectable:U})]})}function Zj({data:Q,isConnectable:U,targetPosition:Z=y1.Top,sourcePosition:X=y1.Bottom}){return F1.jsxs(F1.Fragment,{children:[F1.jsx(nq,{type:"target",position:Z,isConnectable:U}),Q?.label,F1.jsx(nq,{type:"source",position:X,isConnectable:U})]})}function Kj(){return null}function Fj({data:Q,isConnectable:U,targetPosition:Z=y1.Top}){return F1.jsxs(F1.Fragment,{children:[F1.jsx(nq,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var oq={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},hT={input:Gj,default:Zj,output:Fj,group:Kj};function Xj(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 Hj=(Q)=>{let{width:U,height:Z,x:X,y:H}=b8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:D5(U)?U:null,height:D5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${X}px,${H}px)`}};function Yj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let X=k0(),{width:H,height:Y,transformString:B,userSelectionActive:W}=K0(Hj,y0),R=KR(),O=X1.useRef(null);X1.useEffect(()=>{if(!Z)O.current?.focus({preventScroll:!0})},[Z]);let T=!W&&H!==null&&Y!==null;if(ZR({nodeRef:O,disabled:!T}),!T)return null;let A=Q?(w)=>{let P=X.getState().nodes.filter((y)=>y.selected);Q(w,P)}:void 0,M=(w)=>{if(Object.prototype.hasOwnProperty.call(oq,w.key))w.preventDefault(),R({direction:oq[w.key],factor:w.shiftKey?4:1})};return F1.jsx("div",{className:h0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:B},children:F1.jsx("div",{ref:O,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:M,style:{width:H,height:Y}})})}var xT=typeof window<"u"?window:void 0,zj=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function XR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:B,paneClickDistance:W,deleteKeyCode:R,selectionKeyCode:O,selectionOnDrag:T,selectionMode:A,onSelectionStart:M,onSelectionEnd:w,multiSelectionKeyCode:P,panActivationKeyCode:y,zoomActivationKeyCode:S,elementsSelectable:f,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:V,panOnScrollSpeed:v,panOnScrollMode:h,zoomOnDoubleClick:u,panOnDrag:b,autoPanOnSelection:E,defaultViewport:m,translateExtent:a,minZoom:J1,maxZoom:$1,preventScrolling:x,onSelectionContextMenu:p,noWheelClassName:c,noPanClassName:s,disableKeyboardA11y:i,onViewportChange:o,isControlledViewport:k}){let{nodesSelectionActive:g,userSelectionActive:q1}=K0(zj,y0),t=yJ(O,{target:xT}),H1=yJ(y,{target:xT}),M1=H1||b,A1=H1||V,L1=T&&M1!==!0,U1=t||q1||L1;return lS({deleteKeyCode:R,multiSelectionKeyCode:P}),F1.jsx(rS,{onPaneContextMenu:Y,elementsSelectable:f,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:A1,panActivationKeyPressed:H1,panOnScrollSpeed:v,panOnScrollMode:h,zoomOnDoubleClick:u,panOnDrag:!t&&M1,defaultViewport:m,translateExtent:a,minZoom:J1,maxZoom:$1,zoomActivationKeyCode:S,preventScrolling:x,noWheelClassName:c,noPanClassName:s,onViewportChange:o,isControlledViewport:k,paneClickDistance:W,selectionOnDrag:L1,children:F1.jsxs(nS,{onSelectionStart:M,onSelectionEnd:w,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:B,panOnDrag:M1,autoPanOnSelection:E,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:t,paneClickDistance:W,selectionOnDrag:L1,children:[Q,g&&F1.jsx(Yj,{onSelectionContextMenu:p,noPanClassName:s,disableKeyboardA11y:i})]})})}XR.displayName="FlowRenderer";var Bj=X1.memo(XR),Wj=(Q)=>(U)=>{return Q?uq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function Lj(Q){return K0(X1.useCallback(Wj(Q),[Q]),y0)}var Aj=(Q)=>Q.updateNodeInternals;function Mj(){let Q=K0(Aj),[U]=X1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let X=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");X.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(X)})});return X1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Tj({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:X}){let H=k0(),Y=X1.useRef(null),B=X1.useRef(null),W=X1.useRef(Q.sourcePosition),R=X1.useRef(Q.targetPosition),O=X1.useRef(U),T=Z&&!!Q.internals.handleBounds;return X1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||B.current!==Y.current)){if(B.current)X?.unobserve(B.current);X?.observe(Y.current),B.current=Y.current}},[T,Q.hidden]),X1.useEffect(()=>{return()=>{if(B.current)X?.unobserve(B.current),B.current=null}},[]),X1.useEffect(()=>{if(Y.current){let A=O.current!==U,M=W.current!==Q.sourcePosition,w=R.current!==Q.targetPosition;if(A||M||w)O.current=U,W.current=Q.sourcePosition,R.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 Rj({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:X,onMouseLeave:H,onContextMenu:Y,onDoubleClick:B,nodesDraggable:W,elementsSelectable:R,nodesConnectable:O,nodesFocusable:T,resizeObserver:A,noDragClassName:M,noPanClassName:w,disableKeyboardA11y:P,rfId:y,nodeTypes:S,nodeClickDistance:f,onError:D}){let{node:N,internals:V,isParent:v}=K0((U1)=>{let T1=U1.nodeLookup.get(Q),C1=U1.parentLookup.has(Q);return{node:T1,internals:T1.internals,isParent:C1}},y0),h=N.type||"default",u=S?.[h]||hT[h];if(u===void 0)D?.("003",i2.error003(h)),h="default",u=S?.default||hT.default;let b=!!(N.draggable||W&&typeof N.draggable>"u"),E=!!(N.selectable||R&&typeof N.selectable>"u"),m=!!(N.connectable||O&&typeof N.connectable>"u"),a=!!(N.focusable||T&&typeof N.focusable>"u"),J1=k0(),$1=VX(N),x=Tj({node:N,nodeType:h,hasDimensions:$1,resizeObserver:A}),p=ZR({nodeRef:x,disabled:N.hidden||!b,noDragClassName:M,handleSelector:N.dragHandle,nodeId:Q,isSelectable:E,nodeClickDistance:f}),c=KR();if(N.hidden)return null;let s=u5(N),i=Xj(N),o=E||b||U||Z||X||H,k=Z?(U1)=>Z(U1,{...V.userNode}):void 0,g=X?(U1)=>X(U1,{...V.userNode}):void 0,q1=H?(U1)=>H(U1,{...V.userNode}):void 0,t=Y?(U1)=>Y(U1,{...V.userNode}):void 0,H1=B?(U1)=>B(U1,{...V.userNode}):void 0,M1=(U1)=>{let{selectNodesOnDrag:T1,nodeDragThreshold:C1}=J1.getState();if(E&&(!T1||!b||C1>0))iX({id:Q,store:J1,nodeRef:x});if(U)U(U1,{...V.userNode})},A1=(U1)=>{if(bX(U1.nativeEvent)||P)return;if(RX.includes(U1.key)&&E){let T1=U1.key==="Escape";iX({id:Q,store:J1,unselect:T1,nodeRef:x})}else if(b&&N.selected&&Object.prototype.hasOwnProperty.call(oq,U1.key)){U1.preventDefault();let{ariaLabelConfig:T1}=J1.getState();J1.setState({ariaLiveMessage:T1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~V.positionAbsolute.x,y:~~V.positionAbsolute.y})}),c({direction:oq[U1.key],factor:U1.shiftKey?4:1})}},L1=()=>{if(P||!x.current?.matches(":focus-visible"))return;let{transform:U1,width:T1,height:C1,autoPanOnNodeFocus:B1,setCenter:S1}=J1.getState();if(!B1)return;if(!(uq(new Map([[Q,N]]),{x:0,y:0,width:T1,height:C1},U1,!0).length>0))S1(N.position.x+s.width/2,N.position.y+s.height/2,{zoom:U1[2]})};return F1.jsx("div",{className:h0(["react-flow__node",`react-flow__node-${h}`,{[w]:b},N.className,{selected:N.selected,selectable:E,parent:v,draggable:b,dragging:p}]),ref:x,style:{zIndex:V.z,transform:`translate(${V.positionAbsolute.x}px,${V.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:$1?"visible":"hidden",...N.style,...i},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:g,onMouseLeave:q1,onContextMenu:t,onClick:M1,onDoubleClick:H1,onKeyDown:a?A1:void 0,tabIndex:a?0:void 0,onFocus:a?L1:void 0,role:N.ariaRole??(a?"group":void 0),"aria-roledescription":"node","aria-describedby":P?void 0:`${eT}-${y}`,"aria-label":N.ariaLabel,...N.domAttributes,children:F1.jsx(eS,{value:Q,children:F1.jsx(u,{id:Q,data:N.data,type:h,positionAbsoluteX:V.positionAbsolute.x,positionAbsoluteY:V.positionAbsolute.y,selected:N.selected??!1,selectable:E,draggable:b,deletable:N.deletable??!0,isConnectable:m,sourcePosition:N.sourcePosition,targetPosition:N.targetPosition,dragging:p,dragHandle:N.dragHandle,zIndex:V.z,parentId:N.parentId,...s})})})}var Oj=X1.memo(Rj),Ij=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function HR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:X,onError:H}=K0(Ij,y0),Y=Lj(Q.onlyRenderVisibleElements),B=Mj();return F1.jsx("div",{className:"react-flow__nodes",style:_U,children:Y.map((W)=>{return F1.jsx(Oj,{id:W,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:B,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:X,nodeClickDistance:Q.nodeClickDistance,onError:H},W)})})}HR.displayName="NodeRenderer";var wj=X1.memo(HR);function Pj(Q){return K0(X1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let X=[];if(Z.width&&Z.height)for(let H of Z.edges){let Y=Z.nodeLookup.get(H.source),B=Z.nodeLookup.get(H.target);if(Y&&B&&sM({sourceNode:Y,targetNode:B,width:Z.width,height:Z.height,transform:Z.transform}))X.push(H.id)}return X},[Q]),y0)}var Nj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return F1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},fj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return F1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},mT={[q9.Arrow]:Nj,[q9.ArrowClosed]:fj};function Cj(Q){let U=k0();return X1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(mT,Q))return U.getState().onError?.("009",i2.error009(Q)),null;return mT[Q]},[Q])}var Sj=({id:Q,type:U,color:Z,width:X=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:B,orient:W="auto-start-reverse"})=>{let R=Cj(U);if(!R)return null;return F1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${X}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:W,refX:"0",refY:"0",children:F1.jsx(R,{color:Z,strokeWidth:B})})},YR=({defaultColor:Q,rfId:U})=>{let Z=K0((Y)=>Y.edges),X=K0((Y)=>Y.defaultEdgeOptions),H=X1.useMemo(()=>{return oM(Z,{id:U,defaultColor:Q,defaultMarkerStart:X?.markerStart,defaultMarkerEnd:X?.markerEnd})},[Z,X,U,Q]);if(!H.length)return null;return F1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:F1.jsx("defs",{children:H.map((Y)=>F1.jsx(Sj,{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))})})};YR.displayName="MarkerDefinitions";var jj=X1.memo(YR);function zR({x:Q,y:U,label:Z,labelStyle:X,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:B=[2,4],labelBgBorderRadius:W=2,children:R,className:O,...T}){let[A,M]=X1.useState({x:1,y:0,width:0,height:0}),w=h0(["react-flow__edge-textwrapper",O]),P=X1.useRef(null);if(X1.useEffect(()=>{if(P.current){let y=P.current.getBBox();M({x:y.x,y:y.y,width:y.width,height:y.height})}},[Z]),!Z)return null;return F1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:w,visibility:A.width?"visible":"hidden",...T,children:[H&&F1.jsx("rect",{width:A.width+2*B[0],x:-B[0],y:-B[1],height:A.height+2*B[1],className:"react-flow__edge-textbg",style:Y,rx:W,ry:W}),F1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:P,style:X,children:Z}),R]})}zR.displayName="EdgeText";var Vj=X1.memo(zR);function JU({path:Q,labelX:U,labelY:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:B,labelBgPadding:W,labelBgBorderRadius:R,interactionWidth:O=20,...T}){return F1.jsxs(F1.Fragment,{children:[F1.jsx("path",{...T,d:Q,fill:"none",className:h0(["react-flow__edge-path",T.className])}),O?F1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:O,className:"react-flow__edge-interaction"}):null,X&&D5(U)&&D5(Z)?F1.jsx(Vj,{x:U,y:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:B,labelBgPadding:W,labelBgBorderRadius:R}):null]})}function gT({pos:Q,x1:U,y1:Z,x2:X,y2:H}){if(Q===y1.Left||Q===y1.Right)return[0.5*(U+X),Z];return[U,0.5*(Z+H)]}function BR({sourceX:Q,sourceY:U,sourcePosition:Z=y1.Bottom,targetX:X,targetY:H,targetPosition:Y=y1.Top}){let[B,W]=gT({pos:Z,x1:Q,y1:U,x2:X,y2:H}),[R,O]=gT({pos:Y,x1:X,y1:H,x2:Q,y2:U}),[T,A,M,w]=gq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:B,sourceControlY:W,targetControlX:R,targetControlY:O});return[`M${Q},${U} C${B},${W} ${R},${O} ${X},${H}`,T,A,M,w]}function WR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:B,targetPosition:W,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:M,labelBgBorderRadius:w,style:P,markerEnd:y,markerStart:S,interactionWidth:f})=>{let[D,N,V]=BR({sourceX:Z,sourceY:X,sourcePosition:B,targetX:H,targetY:Y,targetPosition:W}),v=Q.isInternal?void 0:U;return F1.jsx(JU,{id:v,path:D,labelX:N,labelY:V,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:M,labelBgBorderRadius:w,style:P,markerEnd:y,markerStart:S,interactionWidth:f})})}var yj=WR({isInternal:!1}),LR=WR({isInternal:!0});yj.displayName="SimpleBezierEdge";LR.displayName="SimpleBezierEdgeInternal";function AR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:B,labelStyle:W,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:M,sourcePosition:w=y1.Bottom,targetPosition:P=y1.Top,markerEnd:y,markerStart:S,pathOptions:f,interactionWidth:D})=>{let[N,V,v]=VJ({sourceX:Z,sourceY:X,sourcePosition:w,targetX:H,targetY:Y,targetPosition:P,borderRadius:f?.borderRadius,offset:f?.offset,stepPosition:f?.stepPosition}),h=Q.isInternal?void 0:U;return F1.jsx(JU,{id:h,path:N,labelX:V,labelY:v,label:B,labelStyle:W,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:M,markerEnd:y,markerStart:S,interactionWidth:D})})}var MR=AR({isInternal:!1}),TR=AR({isInternal:!0});MR.displayName="SmoothStepEdge";TR.displayName="SmoothStepEdgeInternal";function RR(Q){return X1.memo(({id:U,...Z})=>{let X=Q.isInternal?void 0:U;return F1.jsx(MR,{...Z,id:X,pathOptions:X1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var kj=RR({isInternal:!1}),OR=RR({isInternal:!0});kj.displayName="StepEdge";OR.displayName="StepEdgeInternal";function IR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:B,labelStyle:W,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:M,markerEnd:w,markerStart:P,interactionWidth:y})=>{let[S,f,D]=cq({sourceX:Z,sourceY:X,targetX:H,targetY:Y}),N=Q.isInternal?void 0:U;return F1.jsx(JU,{id:N,path:S,labelX:f,labelY:D,label:B,labelStyle:W,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:M,markerEnd:w,markerStart:P,interactionWidth:y})})}var vj=IR({isInternal:!1}),wR=IR({isInternal:!0});vj.displayName="StraightEdge";wR.displayName="StraightEdgeInternal";function PR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:B=y1.Bottom,targetPosition:W=y1.Top,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:M,labelBgBorderRadius:w,style:P,markerEnd:y,markerStart:S,pathOptions:f,interactionWidth:D})=>{let[N,V,v]=pq({sourceX:Z,sourceY:X,sourcePosition:B,targetX:H,targetY:Y,targetPosition:W,curvature:f?.curvature}),h=Q.isInternal?void 0:U;return F1.jsx(JU,{id:h,path:N,labelX:V,labelY:v,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:M,labelBgBorderRadius:w,style:P,markerEnd:y,markerStart:S,interactionWidth:D})})}var Dj=PR({isInternal:!1}),NR=PR({isInternal:!0});Dj.displayName="BezierEdge";NR.displayName="BezierEdgeInternal";var pT={default:NR,straight:wR,step:OR,smoothstep:TR,simplebezier:LR},cT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},bj=(Q,U,Z)=>{if(Z===y1.Left)return Q-U;if(Z===y1.Right)return Q+U;return Q},uj=(Q,U,Z)=>{if(Z===y1.Top)return Q-U;if(Z===y1.Bottom)return Q+U;return Q},lT="react-flow__edgeupdater";function dT({position:Q,centerX:U,centerY:Z,radius:X=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:B,type:W}){return F1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:B,className:h0([lT,`${lT}-${W}`]),cx:bj(U,X,Q),cy:uj(Z,X,Q),r:X,stroke:"transparent",fill:"transparent"})}function Ej({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:X,sourceY:H,targetX:Y,targetY:B,sourcePosition:W,targetPosition:R,onReconnect:O,onReconnectStart:T,onReconnectEnd:A,setReconnecting:M,setUpdateHover:w}){let P=k0(),y=(V,v)=>{if(V.button!==0)return;let{autoPanOnConnect:h,domNode:u,connectionMode:b,connectionRadius:E,lib:m,onConnectStart:a,cancelConnection:J1,nodeLookup:$1,rfId:x,panBy:p,updateConnection:c}=P.getState(),s=v.type==="target",i=(g,q1)=>{M(!1),A?.(g,Z,v.type,q1)},o=(g)=>O?.(Z,g),k=(g,q1)=>{M(!0),T?.(V,Z,v.type),a?.(g,q1)};rq.onPointerDown(V.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:E,domNode:u,handleId:v.id,nodeId:v.nodeId,nodeLookup:$1,isTarget:s,edgeUpdaterType:v.type,lib:m,flowId:x,cancelConnection:J1,panBy:p,isValidConnection:(...g)=>P.getState().isValidConnection?.(...g)??!0,onConnect:o,onConnectStart:k,onConnectEnd:(...g)=>P.getState().onConnectEnd?.(...g),onReconnectEnd:i,updateConnection:c,getTransform:()=>P.getState().transform,getFromHandle:()=>P.getState().connection.fromHandle,dragThreshold:P.getState().connectionDragThreshold,handleDomNode:V.currentTarget})},S=(V)=>y(V,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),f=(V)=>y(V,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),D=()=>w(!0),N=()=>w(!1);return F1.jsxs(F1.Fragment,{children:[(Q===!0||Q==="source")&&F1.jsx(dT,{position:W,centerX:X,centerY:H,radius:U,onMouseDown:S,onMouseEnter:D,onMouseOut:N,type:"source"}),(Q===!0||Q==="target")&&F1.jsx(dT,{position:R,centerX:Y,centerY:B,radius:U,onMouseDown:f,onMouseEnter:D,onMouseOut:N,type:"target"})]})}function hj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:X,onClick:H,onDoubleClick:Y,onContextMenu:B,onMouseEnter:W,onMouseMove:R,onMouseLeave:O,reconnectRadius:T,onReconnect:A,onReconnectStart:M,onReconnectEnd:w,rfId:P,edgeTypes:y,noPanClassName:S,onError:f,disableKeyboardA11y:D}){let N=K0((S1)=>S1.edgeLookup.get(Q)),V=K0((S1)=>S1.defaultEdgeOptions);N=V?{...V,...N}:N;let v=N.type||"default",h=y?.[v]||pT[v];if(h===void 0)f?.("011",i2.error011(v)),v="default",h=y?.default||pT.default;let u=!!(N.focusable||U&&typeof N.focusable>"u"),b=typeof A<"u"&&(N.reconnectable||Z&&typeof N.reconnectable>"u"),E=!!(N.selectable||X&&typeof N.selectable>"u"),m=X1.useRef(null),[a,J1]=X1.useState(!1),[$1,x]=X1.useState(!1),p=k0(),{zIndex:c=N.zIndex,sourceX:s,sourceY:i,targetX:o,targetY:k,sourcePosition:g,targetPosition:q1}=K0(X1.useCallback((S1)=>{let k1=S1.nodeLookup.get(N.source),x1=S1.nodeLookup.get(N.target);if(!k1||!x1)return cT;let W1=nM({id:Q,sourceNode:k1,targetNode:x1,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:S1.connectionMode,onError:f}),P1=aM({selected:N.selected,zIndex:N.zIndex,sourceNode:k1,targetNode:x1,elevateOnSelect:S1.elevateEdgesOnSelect,zIndexMode:S1.zIndexMode});return{...W1||cT,zIndex:P1}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex,f]),y0),t=X1.useMemo(()=>N.markerStart?`url('#${lq(N.markerStart,P)}')`:void 0,[N.markerStart,P]),H1=X1.useMemo(()=>N.markerEnd?`url('#${lq(N.markerEnd,P)}')`:void 0,[N.markerEnd,P]);if(N.hidden||s===null||i===null||o===null||k===null)return null;let M1=(S1)=>{let{addSelectedEdges:k1,unselectNodesAndEdges:x1,multiSelectionActive:W1}=p.getState();if(E)if(p.setState({nodesSelectionActive:!1}),N.selected&&W1)x1({nodes:[],edges:[N]}),m.current?.blur();else k1([Q]);if(H)H(S1,N)},A1=Y?(S1)=>{Y(S1,{...N})}:void 0,L1=B?(S1)=>{B(S1,{...N})}:void 0,U1=W?(S1)=>{W(S1,{...N})}:void 0,T1=R?(S1)=>{R(S1,{...N})}:void 0,C1=O?(S1)=>{O(S1,{...N})}:void 0,B1=(S1)=>{if(!D&&RX.includes(S1.key)&&E){let{unselectNodesAndEdges:k1,addSelectedEdges:x1}=p.getState();if(S1.key==="Escape")m.current?.blur(),k1({edges:[N]});else x1([Q])}};return F1.jsx("svg",{style:{zIndex:c},children:F1.jsxs("g",{className:h0(["react-flow__edge",`react-flow__edge-${v}`,N.className,S,{selected:N.selected,animated:N.animated,inactive:!E&&!H,updating:a,selectable:E}]),onClick:M1,onDoubleClick:A1,onContextMenu:L1,onMouseEnter:U1,onMouseMove:T1,onMouseLeave:C1,onKeyDown:u?B1:void 0,tabIndex:u?0:void 0,role:N.ariaRole??(u?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":N.ariaLabel===null?void 0:N.ariaLabel||`Edge from ${N.source} to ${N.target}`,"aria-describedby":u?`${_R}-${P}`:void 0,ref:m,...N.domAttributes,children:[!$1&&F1.jsx(h,{id:Q,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:E,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:s,sourceY:i,targetX:o,targetY:k,sourcePosition:g,targetPosition:q1,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:t,markerEnd:H1,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),b&&F1.jsx(Ej,{edge:N,isReconnectable:b,reconnectRadius:T,onReconnect:A,onReconnectStart:M,onReconnectEnd:w,sourceX:s,sourceY:i,targetX:o,targetY:k,sourcePosition:g,targetPosition:q1,setUpdateHover:J1,setReconnecting:x})]})})}var xj=X1.memo(hj),mj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function fR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:X,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:B,onEdgeMouseEnter:W,onEdgeMouseMove:R,onEdgeMouseLeave:O,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:M,onReconnectStart:w,onReconnectEnd:P,disableKeyboardA11y:y}){let{edgesFocusable:S,edgesReconnectable:f,elementsSelectable:D,onError:N}=K0(mj,y0),V=Pj(U);return F1.jsxs("div",{className:"react-flow__edges",children:[F1.jsx(jj,{defaultColor:Q,rfId:Z}),V.map((v)=>{return F1.jsx(xj,{id:v,edgesFocusable:S,edgesReconnectable:f,elementsSelectable:D,noPanClassName:H,onReconnect:Y,onContextMenu:B,onMouseEnter:W,onMouseMove:R,onMouseLeave:O,onClick:T,reconnectRadius:A,onDoubleClick:M,onReconnectStart:w,onReconnectEnd:P,rfId:Z,onError:N,edgeTypes:X,disableKeyboardA11y:y},v)})]})}fR.displayName="EdgeRenderer";var gj=X1.memo(fR),iT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function pj({children:Q}){let U=k0(),Z=X1.useRef(null),[X]=X1.useState(()=>U.getState().transform);return UR(()=>{let H=null,Y=()=>{let B=U.getState().transform;if(H&&B[0]===H[0]&&B[1]===H[1]&&B[2]===H[2])return;if(H=B,Z.current)Z.current.style.transform=iT(B)};return Y(),U.subscribe(Y)},[U]),F1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:iT(X)},children:Q})}function cj(Q){let U=kJ(),Z=X1.useRef(!1);X1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var lj=(Q)=>Q.panZoom?.syncViewport;function dj(Q){let U=K0(lj),Z=k0();return X1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function rT(Q){return Q.connection.inProgress?{...Q.connection,to:F9(Q.connection.to,Q.transform)}:{...Q.connection}}function ij(Q){if(Q)return(Z)=>{let X=rT(Z);return Q(X)};return rT}function rj(Q){let U=ij(Q);return K0(U,y0)}var aj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function sj({containerStyle:Q,style:U,type:Z,component:X}){let{nodesConnectable:H,width:Y,height:B,isValid:W,inProgress:R}=K0(aj,y0);if(!(Y&&H&&R))return null;return F1.jsx("svg",{style:Q,width:Y,height:B,className:"react-flow__connectionline react-flow__container",children:F1.jsx("g",{className:h0(["react-flow__connection",vX(W)]),children:F1.jsx(CR,{style:U,type:Z,CustomComponent:X,isValid:W})})})}var CR=({style:Q,type:U=h4.Bezier,CustomComponent:Z,isValid:X})=>{let{inProgress:H,from:Y,fromNode:B,fromHandle:W,fromPosition:R,to:O,toNode:T,toHandle:A,toPosition:M,pointer:w}=rj();if(!H)return;if(Z)return F1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:B,fromHandle:W,fromX:Y.x,fromY:Y.y,toX:O.x,toY:O.y,fromPosition:R,toPosition:M,connectionStatus:vX(X),toNode:T,toHandle:A,pointer:w});let P="",y={sourceX:Y.x,sourceY:Y.y,sourcePosition:R,targetX:O.x,targetY:O.y,targetPosition:M};switch(U){case h4.Bezier:[P]=pq(y);break;case h4.SimpleBezier:[P]=BR(y);break;case h4.Step:[P]=VJ({...y,borderRadius:0});break;case h4.SmoothStep:[P]=VJ(y);break;default:[P]=cq(y)}return F1.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Q})};CR.displayName="ConnectionLine";var tj={};function aT(Q=tj){let U=X1.useRef(Q),Z=k0();X1.useEffect(()=>{{let X=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of X)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",i2.error002());break}U.current=Q}},[Q])}function nj(){let Q=k0(),U=X1.useRef(!1);X1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",i2.error013("react"));U.current=!0}},[])}function SR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:X,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:B,onNodeMouseEnter:W,onNodeMouseMove:R,onNodeMouseLeave:O,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:M,onSelectionEnd:w,connectionLineType:P,connectionLineStyle:y,connectionLineComponent:S,connectionLineContainerStyle:f,selectionKeyCode:D,selectionOnDrag:N,selectionMode:V,multiSelectionKeyCode:v,panActivationKeyCode:h,zoomActivationKeyCode:u,deleteKeyCode:b,onlyRenderVisibleElements:E,elementsSelectable:m,defaultViewport:a,translateExtent:J1,minZoom:$1,maxZoom:x,preventScrolling:p,defaultMarkerColor:c,zoomOnScroll:s,zoomOnPinch:i,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:g,zoomOnDoubleClick:q1,panOnDrag:t,autoPanOnSelection:H1,onPaneClick:M1,onPaneMouseEnter:A1,onPaneMouseMove:L1,onPaneMouseLeave:U1,onPaneScroll:T1,onPaneContextMenu:C1,paneClickDistance:B1,nodeClickDistance:S1,onEdgeContextMenu:k1,onEdgeMouseEnter:x1,onEdgeMouseMove:W1,onEdgeMouseLeave:P1,reconnectRadius:H0,onReconnect:D1,onReconnectStart:e0,onReconnectEnd:n1,noDragClassName:r2,noWheelClassName:R2,noPanClassName:y2,disableKeyboardA11y:k2,nodeExtent:v2,rfId:O2,viewport:I2,onViewportChange:w2,nodesDraggable:N3}){return aT(Q),aT(U),nj(),cj(Z),dj(I2),F1.jsx(Bj,{onPaneClick:M1,onPaneMouseEnter:A1,onPaneMouseMove:L1,onPaneMouseLeave:U1,onPaneContextMenu:C1,onPaneScroll:T1,paneClickDistance:B1,deleteKeyCode:b,selectionKeyCode:D,selectionOnDrag:N,selectionMode:V,onSelectionStart:M,onSelectionEnd:w,multiSelectionKeyCode:v,panActivationKeyCode:h,zoomActivationKeyCode:u,elementsSelectable:m,zoomOnScroll:s,zoomOnPinch:i,zoomOnDoubleClick:q1,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:g,panOnDrag:t,autoPanOnSelection:H1,defaultViewport:a,translateExtent:J1,minZoom:$1,maxZoom:x,onSelectionContextMenu:A,preventScrolling:p,noDragClassName:r2,noWheelClassName:R2,noPanClassName:y2,disableKeyboardA11y:k2,onViewportChange:w2,isControlledViewport:!!I2,children:F1.jsxs(pj,{children:[F1.jsx(gj,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:B,onReconnect:D1,onReconnectStart:e0,onReconnectEnd:n1,onlyRenderVisibleElements:E,onEdgeContextMenu:k1,onEdgeMouseEnter:x1,onEdgeMouseMove:W1,onEdgeMouseLeave:P1,reconnectRadius:H0,defaultMarkerColor:c,noPanClassName:y2,disableKeyboardA11y:k2,rfId:O2}),F1.jsx(sj,{style:y,type:P,component:S,containerStyle:f}),F1.jsx("div",{className:"react-flow__edgelabel-renderer"}),F1.jsx(wj,{nodeTypes:Q,onNodeClick:X,onNodeDoubleClick:Y,onNodeMouseEnter:W,onNodeMouseMove:R,onNodeMouseLeave:O,onNodeContextMenu:T,nodeClickDistance:S1,onlyRenderVisibleElements:E,noPanClassName:y2,noDragClassName:r2,disableKeyboardA11y:k2,nodeExtent:v2,rfId:O2,nodesDraggable:N3}),F1.jsx("div",{className:"react-flow__viewport-portal"})]})})}SR.displayName="GraphView";var oj=X1.memo(SR),ej=jX("React Flow","https://reactflow.dev/"),sT=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:B,fitViewOptions:W,minZoom:R=0.5,maxZoom:O=2,nodeOrigin:T,nodeExtent:A,zIndexMode:M="basic"}={})=>{let w=new Map,P=new Map,y=new Map,S=new Map,f=X??U??[],D=Z??Q??[],N=T??[0,0],V=A??G9;pX(y,S,f);let{nodesInitialized:v}=dq(D,w,P,{nodeOrigin:N,nodeExtent:V,zIndexMode:M}),h=[0,0,1];if(B&&H&&Y){let u=b8(w,{filter:(a)=>!!((a.width||a.initialWidth)&&(a.height||a.initialHeight))}),{x:b,y:E,zoom:m}=jJ(u,H,Y,R,O,W?.padding??0.1);h=[b,E,m]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:D,nodesInitialized:v,nodeLookup:w,parentLookup:P,edges:f,edgeLookup:S,connectionLookup:y,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:X!==void 0,panZoom:null,minZoom:R,maxZoom:O,translateExtent:G9,nodeExtent:V,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:w6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:N,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:B??!1,fitViewOptions:W,fitViewResolver:null,connection:{...IX},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:ej,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:OX,zIndexMode:M,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}},_V=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:B,fitViewOptions:W,minZoom:R,maxZoom:O,nodeOrigin:T,nodeExtent:A,zIndexMode:M})=>PT((w,P)=>{async function y(){let{nodeLookup:S,panZoom:f,fitViewOptions:D,fitViewResolver:N,width:V,height:v,minZoom:h,maxZoom:u}=P();if(!f)return;await gM({nodes:S,width:V,height:v,panZoom:f,minZoom:h,maxZoom:u},D),N?.resolve(!0),w({fitViewResolver:null})}return{...sT({nodes:Q,edges:U,width:H,height:Y,fitView:B,fitViewOptions:W,minZoom:R,maxZoom:O,nodeOrigin:T,nodeExtent:A,defaultNodes:Z,defaultEdges:X,zIndexMode:M}),setNodes:(S)=>{let{nodeLookup:f,parentLookup:D,nodeOrigin:N,nodeExtent:V,elevateNodesOnSelect:v,fitViewQueued:h,zIndexMode:u,nodesSelectionActive:b}=P(),{nodesInitialized:E,hasSelectedNodes:m}=dq(S,f,D,{nodeOrigin:N,nodeExtent:V,elevateNodesOnSelect:v,checkEquality:!0,zIndexMode:u}),a=b&&m;if(h&&E)y(),w({nodes:S,nodesInitialized:E,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:a});else w({nodes:S,nodesInitialized:E,nodesSelectionActive:a})},setEdges:(S)=>{let{connectionLookup:f,edgeLookup:D}=P();pX(f,D,S),w({edges:S})},setDefaultNodesAndEdges:(S,f)=>{if(S){let{setNodes:D}=P();D(S),w({hasDefaultNodes:!0})}if(f){let{setEdges:D}=P();D(f),w({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:f,nodeLookup:D,parentLookup:N,domNode:V,nodeOrigin:v,nodeExtent:h,debug:u,fitViewQueued:b,zIndexMode:E}=P(),{changes:m,updatedInternals:a}=QT(S,D,N,V,v,h,E);if(!a)return;if(JT(D,N,{nodeOrigin:v,nodeExtent:h,zIndexMode:E}),b)y(),w({fitViewQueued:!1,fitViewOptions:void 0});else w({});if(m?.length>0){if(u)console.log("React Flow: trigger node changes",m);f?.(m)}},updateNodePositions:(S,f=!1)=>{let D=[],N=[],{nodeLookup:V,triggerNodeChanges:v,connection:h,updateConnection:u,onNodesChangeMiddlewareMap:b}=P();for(let[E,m]of S){let a=V.get(E),J1=!!(a?.expandParent&&a?.parentId&&m?.position),$1={id:E,type:"position",position:J1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:f};if(a&&h.inProgress&&h.fromNode.id===a.id){let x=P6(a,h.fromHandle,y1.Left,!0);u({...h,from:x})}if(J1&&a.parentId)D.push({id:E,parentId:a.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});N.push($1)}if(D.length>0){let{parentLookup:E,nodeOrigin:m}=P(),a=iq(D,V,E,m);N.push(...a)}for(let E of b.values())N=E(N);v(N)},triggerNodeChanges:(S)=>{let{onNodesChange:f,setNodes:D,nodes:N,hasDefaultNodes:V,debug:v}=P();if(S?.length){if(V){let h=QR(S,N);D(h)}if(v)console.log("React Flow: trigger node changes",S);f?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:f,setEdges:D,edges:N,hasDefaultEdges:V,debug:v}=P();if(S?.length){if(V){let h=bS(S,N);D(h)}if(v)console.log("React Flow: trigger edge changes",S);f?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:f,edgeLookup:D,nodeLookup:N,triggerNodeChanges:V,triggerEdgeChanges:v}=P();if(f){let h=S.map((u)=>u8(u,!0));V(h);return}V(H9(N,new Set([...S]),!0)),v(H9(D))},addSelectedEdges:(S)=>{let{multiSelectionActive:f,edgeLookup:D,nodeLookup:N,triggerNodeChanges:V,triggerEdgeChanges:v}=P();if(f){let h=S.map((u)=>u8(u,!0));v(h);return}v(H9(D,new Set([...S]))),V(H9(N,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:f}={})=>{let{edges:D,nodes:N,nodeLookup:V,triggerNodeChanges:v,triggerEdgeChanges:h}=P(),u=S?S:N,b=f?f:D,E=[];for(let a of u){if(!a.selected)continue;let J1=V.get(a.id);if(J1)J1.selected=!1;E.push(u8(a.id,!1))}let m=[];for(let a of b){if(!a.selected)continue;m.push(u8(a.id,!1))}v(E),h(m)},setMinZoom:(S)=>{let{panZoom:f,maxZoom:D}=P();f?.setScaleExtent([S,D]),w({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:f,minZoom:D}=P();f?.setScaleExtent([D,S]),w({maxZoom:S})},setTranslateExtent:(S)=>{P().panZoom?.setTranslateExtent(S),w({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:f,triggerNodeChanges:D,triggerEdgeChanges:N,elementsSelectable:V}=P();if(!V)return;let v=f.reduce((u,b)=>b.selected?[...u,u8(b.id,!1)]:u,[]),h=S.reduce((u,b)=>b.selected?[...u,u8(b.id,!1)]:u,[]);D(v),N(h)},setNodeExtent:(S)=>{let{nodes:f,nodeLookup:D,parentLookup:N,nodeOrigin:V,elevateNodesOnSelect:v,nodeExtent:h,zIndexMode:u}=P();if(S[0][0]===h[0][0]&&S[0][1]===h[0][1]&&S[1][0]===h[1][0]&&S[1][1]===h[1][1])return;dq(f,D,N,{nodeOrigin:V,nodeExtent:S,elevateNodesOnSelect:v,checkEquality:!1,zIndexMode:u}),w({nodeExtent:S})},panBy:(S)=>{let{transform:f,width:D,height:N,panZoom:V,translateExtent:v}=P();return qT({delta:S,panZoom:V,transform:f,translateExtent:v,width:D,height:N})},setCenter:async(S,f,D)=>{let{width:N,height:V,maxZoom:v,panZoom:h}=P();if(!h)return!1;let u=typeof D?.zoom<"u"?D.zoom:v;return await h.setViewport({x:N/2-S*u,y:V/2-f*u,zoom:u},{duration:D?.duration,ease:D?.ease,interpolate:D?.interpolate}),!0},cancelConnection:()=>{w({connection:{...IX}})},updateConnection:(S)=>{w({connection:S})},reset:()=>w({...sT()})}},Object.is);function sX({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:X,initialWidth:H,initialHeight:Y,initialMinZoom:B,initialMaxZoom:W,initialFitViewOptions:R,fitView:O,nodeOrigin:T,nodeExtent:A,zIndexMode:M,children:w}){let[P]=X1.useState(()=>_V({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:O,minZoom:B,maxZoom:W,fitViewOptions:R,nodeOrigin:T,nodeExtent:A,zIndexMode:M}));return F1.jsx(WS,{value:P,children:F1.jsx(mS,{children:F1.jsx(Jj,{children:w})})})}function JV({children:Q,nodes:U,edges:Z,defaultNodes:X,defaultEdges:H,width:Y,height:B,fitView:W,fitViewOptions:R,minZoom:O,maxZoom:T,nodeOrigin:A,nodeExtent:M,zIndexMode:w}){if(X1.useContext(eq))return F1.jsx(F1.Fragment,{children:Q});return F1.jsx(sX,{initialNodes:U,initialEdges:Z,defaultNodes:X,defaultEdges:H,initialWidth:Y,initialHeight:B,fitView:W,initialFitViewOptions:R,initialMinZoom:O,initialMaxZoom:T,nodeOrigin:A,nodeExtent:M,zIndexMode:w,children:Q})}var $V={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function QV({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,className:H,nodeTypes:Y,edgeTypes:B,onNodeClick:W,onEdgeClick:R,onInit:O,onMove:T,onMoveStart:A,onMoveEnd:M,onConnect:w,onConnectStart:P,onConnectEnd:y,onClickConnectStart:S,onClickConnectEnd:f,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:V,onNodeContextMenu:v,onNodeDoubleClick:h,onNodeDragStart:u,onNodeDrag:b,onNodeDragStop:E,onNodesDelete:m,onEdgesDelete:a,onDelete:J1,onSelectionChange:$1,onSelectionDragStart:x,onSelectionDrag:p,onSelectionDragStop:c,onSelectionContextMenu:s,onSelectionStart:i,onSelectionEnd:o,onBeforeDelete:k,connectionMode:g,connectionLineType:q1=h4.Bezier,connectionLineStyle:t,connectionLineComponent:H1,connectionLineContainerStyle:M1,deleteKeyCode:A1="Backspace",selectionKeyCode:L1="Shift",selectionOnDrag:U1=!1,selectionMode:T1=y8.Full,panActivationKeyCode:C1="Space",multiSelectionKeyCode:B1=X9()?"Meta":"Control",zoomActivationKeyCode:S1=X9()?"Meta":"Control",snapToGrid:k1,snapGrid:x1,onlyRenderVisibleElements:W1=!1,selectNodesOnDrag:P1,nodesDraggable:H0,autoPanOnNodeFocus:D1,nodesConnectable:e0,nodesFocusable:n1,nodeOrigin:r2=JR,edgesFocusable:R2,edgesReconnectable:y2,elementsSelectable:k2=!0,defaultViewport:v2=SS,minZoom:O2=0.5,maxZoom:I2=2,translateExtent:w2=G9,preventScrolling:N3=!0,nodeExtent:h5,defaultMarkerColor:m4="#b1b1b7",zoomOnScroll:g4=!0,zoomOnPinch:p4=!0,panOnScroll:V6=!1,panOnScrollSpeed:Q4=0.5,panOnScrollMode:j=R3.Free,zoomOnDoubleClick:Q1=!0,panOnDrag:O1=!0,onPaneClick:w1,onPaneMouseEnter:j1,onPaneMouseMove:c1,onPaneMouseLeave:l1,onPaneScroll:Z0,onPaneContextMenu:v1,paneClickDistance:Z2=1,nodeClickDistance:D2=0,children:q4,onReconnect:y6,onReconnectStart:hJ,onReconnectEnd:l8,onEdgeContextMenu:d8,onEdgeDoubleClick:x5,onEdgeMouseEnter:a2,onEdgeMouseMove:xJ,onEdgeMouseLeave:XU,reconnectRadius:W9=10,onNodesChange:mJ,onEdgesChange:i8,noDragClassName:s2="nodrag",noWheelClassName:gJ="nowheel",noPanClassName:r8="nopan",fitView:L9,fitViewOptions:a8,connectOnClick:pJ,attributionPosition:cJ,proOptions:f3,defaultEdgeOptions:lJ,elevateNodesOnSelect:dJ=!0,elevateEdgesOnSelect:iJ=!1,disableKeyboardA11y:A9=!1,autoPanOnConnect:rJ,autoPanOnNodeDrag:b2,autoPanOnSelection:C3=!0,autoPanSpeed:c4,connectionRadius:aJ,isValidConnection:k6,onError:s8,style:M9,id:S3,nodeDragThreshold:j3,connectionDragThreshold:T9,viewport:HU,onViewportChange:YU,width:sJ,height:R9,colorMode:O9="light",debug:tJ,onScroll:I9,ariaLabelConfig:nJ,zIndexMode:oJ="basic",...eJ},w9){let V3=S3||"1",v6=kS(O9),zU=X1.useCallback((P9)=>{P9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),I9?.(P9)},[I9]);return F1.jsx("div",{"data-testid":"rf__wrapper",...eJ,onScroll:zU,style:{...M9,...$V},ref:w9,className:h0(["react-flow",H,v6]),id:S3,role:"application",children:F1.jsxs(JV,{nodes:Q,edges:U,width:sJ,height:R9,fitView:L9,fitViewOptions:a8,minZoom:O2,maxZoom:I2,nodeOrigin:r2,nodeExtent:h5,zIndexMode:oJ,children:[F1.jsx(yS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,onConnect:w,onConnectStart:P,onConnectEnd:y,onClickConnectStart:S,onClickConnectEnd:f,nodesDraggable:H0,autoPanOnNodeFocus:D1,nodesConnectable:e0,nodesFocusable:n1,edgesFocusable:R2,edgesReconnectable:y2,elementsSelectable:k2,elevateNodesOnSelect:dJ,elevateEdgesOnSelect:iJ,minZoom:O2,maxZoom:I2,nodeExtent:h5,onNodesChange:mJ,onEdgesChange:i8,snapToGrid:k1,snapGrid:x1,connectionMode:g,translateExtent:w2,connectOnClick:pJ,defaultEdgeOptions:lJ,fitView:L9,fitViewOptions:a8,onNodesDelete:m,onEdgesDelete:a,onDelete:J1,onNodeDragStart:u,onNodeDrag:b,onNodeDragStop:E,onSelectionDrag:p,onSelectionDragStart:x,onSelectionDragStop:c,onMove:T,onMoveStart:A,onMoveEnd:M,noPanClassName:r8,nodeOrigin:r2,rfId:V3,autoPanOnConnect:rJ,autoPanOnNodeDrag:b2,autoPanSpeed:c4,onError:s8,connectionRadius:aJ,isValidConnection:k6,selectNodesOnDrag:P1,nodeDragThreshold:j3,connectionDragThreshold:T9,onBeforeDelete:k,debug:tJ,ariaLabelConfig:nJ,zIndexMode:oJ}),F1.jsx(oj,{onInit:O,onNodeClick:W,onEdgeClick:R,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:V,onNodeContextMenu:v,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:B,connectionLineType:q1,connectionLineStyle:t,connectionLineComponent:H1,connectionLineContainerStyle:M1,selectionKeyCode:L1,selectionOnDrag:U1,selectionMode:T1,deleteKeyCode:A1,multiSelectionKeyCode:B1,panActivationKeyCode:C1,zoomActivationKeyCode:S1,onlyRenderVisibleElements:W1,defaultViewport:v2,translateExtent:w2,minZoom:O2,maxZoom:I2,preventScrolling:N3,zoomOnScroll:g4,zoomOnPinch:p4,zoomOnDoubleClick:Q1,panOnScroll:V6,panOnScrollSpeed:Q4,panOnScrollMode:j,panOnDrag:O1,autoPanOnSelection:C3,onPaneClick:w1,onPaneMouseEnter:j1,onPaneMouseMove:c1,onPaneMouseLeave:l1,onPaneScroll:Z0,onPaneContextMenu:v1,paneClickDistance:Z2,nodeClickDistance:D2,onSelectionContextMenu:s,onSelectionStart:i,onSelectionEnd:o,onReconnect:y6,onReconnectStart:hJ,onReconnectEnd:l8,onEdgeContextMenu:d8,onEdgeDoubleClick:x5,onEdgeMouseEnter:a2,onEdgeMouseMove:xJ,onEdgeMouseLeave:XU,reconnectRadius:W9,defaultMarkerColor:m4,noDragClassName:s2,noWheelClassName:gJ,noPanClassName:r8,rfId:V3,disableKeyboardA11y:A9,nodeExtent:h5,viewport:HU,onViewportChange:YU,nodesDraggable:H0}),F1.jsx(CS,{onSelectionChange:$1}),q4,F1.jsx(IS,{proOptions:f3,position:cJ}),F1.jsx(OS,{rfId:V3,disableKeyboardA11y:A9})]})})}var jR=qR(QV);function VR(Q){let[U,Z]=X1.useState(Q),X=X1.useCallback((H)=>Z((Y)=>QR(H,Y)),[]);return[U,Z,X]}var Mg=i2.error014();function qV({dimensions:Q,lineWidth:U,variant:Z,className:X}){return F1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:h0(["react-flow__background-pattern",Z,X])})}function UV({radius:Q,className:U}){return F1.jsx("circle",{cx:Q,cy:Q,r:Q,className:h0(["react-flow__background-pattern","dots",U])})}var x4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(x4||(x4={}));var GV={[x4.Dots]:1,[x4.Lines]:1,[x4.Cross]:6},ZV=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function yR({id:Q,variant:U=x4.Dots,gap:Z=20,size:X,lineWidth:H=1,offset:Y=0,color:B,bgColor:W,style:R,className:O,patternClassName:T}){let A=X1.useRef(null),{transform:M,patternId:w}=K0(ZV,y0),P=X||GV[U],y=U===x4.Dots,S=U===x4.Cross,f=Array.isArray(Z)?Z:[Z,Z],D=[f[0]*M[2]||1,f[1]*M[2]||1],N=P*M[2],V=Array.isArray(Y)?Y:[Y,Y],v=S?[N,N]:D,h=[V[0]*M[2]+v[0]/2,V[1]*M[2]+v[1]/2],u=`${w}${Q?Q:""}`;return F1.jsxs("svg",{className:h0(["react-flow__background",O]),style:{...R,..._U,"--xy-background-color-props":W,"--xy-background-pattern-color-props":B},ref:A,"data-testid":"rf__background",children:[F1.jsx("pattern",{id:u,x:M[0]%D[0],y:M[1]%D[1],width:D[0],height:D[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:y?F1.jsx(UV,{radius:N/2,className:T}):F1.jsx(qV,{dimensions:v,lineWidth:H,variant:U,className:T})}),F1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${u})`})]})}yR.displayName="Background";var kR=X1.memo(yR);function KV(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:F1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function FV(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:F1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function XV(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:F1.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 HV(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:F1.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 YV(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:F1.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 tq({children:Q,className:U,...Z}){return F1.jsx("button",{type:"button",className:h0(["react-flow__controls-button",U]),...Z,children:Q})}var zV=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function vR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:X=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:B,onFitView:W,onInteractiveChange:R,className:O,children:T,position:A="bottom-left",orientation:M="vertical","aria-label":w}){let P=k0(),{isInteractive:y,minZoomReached:S,maxZoomReached:f,ariaLabelConfig:D}=K0(zV,y0),{zoomIn:N,zoomOut:V,fitView:v}=kJ(),h=()=>{N(),Y?.()},u=()=>{V(),B?.()},b=()=>{v(H),W?.()},E=()=>{P.setState({nodesDraggable:!y,nodesConnectable:!y,elementsSelectable:!y}),R?.(!y)};return F1.jsxs(E8,{className:h0(["react-flow__controls",M==="horizontal"?"horizontal":"vertical",O]),position:A,style:Q,"data-testid":"rf__controls","aria-label":w??D["controls.ariaLabel"],children:[U&&F1.jsxs(F1.Fragment,{children:[F1.jsx(tq,{onClick:h,className:"react-flow__controls-zoomin",title:D["controls.zoomIn.ariaLabel"],"aria-label":D["controls.zoomIn.ariaLabel"],disabled:f,children:F1.jsx(KV,{})}),F1.jsx(tq,{onClick:u,className:"react-flow__controls-zoomout",title:D["controls.zoomOut.ariaLabel"],"aria-label":D["controls.zoomOut.ariaLabel"],disabled:S,children:F1.jsx(FV,{})})]}),Z&&F1.jsx(tq,{className:"react-flow__controls-fitview",onClick:b,title:D["controls.fitView.ariaLabel"],"aria-label":D["controls.fitView.ariaLabel"],children:F1.jsx(XV,{})}),X&&F1.jsx(tq,{className:"react-flow__controls-interactive",onClick:E,title:D["controls.interactive.ariaLabel"],"aria-label":D["controls.interactive.ariaLabel"],children:y?F1.jsx(YV,{}):F1.jsx(HV,{})}),T]})}vR.displayName="Controls";var DR=X1.memo(vR);function BV({id:Q,x:U,y:Z,width:X,height:H,style:Y,color:B,strokeColor:W,strokeWidth:R,className:O,borderRadius:T,shapeRendering:A,selected:M,onClick:w}){let{background:P,backgroundColor:y}=Y||{},S=B||P||y;return F1.jsx("rect",{className:h0(["react-flow__minimap-node",{selected:M},O]),x:U,y:Z,rx:T,ry:T,width:X,height:H,style:{fill:S,stroke:W,strokeWidth:R},shapeRendering:A,onClick:w?(f)=>w(f,Q):void 0})}var WV=X1.memo(BV),LV=(Q)=>Q.nodes.map((U)=>U.id),dX=(Q)=>Q instanceof Function?Q:()=>Q;function AV({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:X=5,nodeStrokeWidth:H,nodeComponent:Y=WV,onClick:B}){let W=K0(LV,y0),R=dX(U),O=dX(Q),T=dX(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return F1.jsx(F1.Fragment,{children:W.map((M)=>F1.jsx(TV,{id:M,nodeColorFunc:R,nodeStrokeColorFunc:O,nodeClassNameFunc:T,nodeBorderRadius:X,nodeStrokeWidth:H,NodeComponent:Y,onClick:B,shapeRendering:A},M))})}function MV({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:X,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:B,NodeComponent:W,onClick:R}){let{node:O,x:T,y:A,width:M,height:w}=K0((P)=>{let y=P.nodeLookup.get(Q);if(!y)return{node:void 0,x:0,y:0,width:0,height:0};let S=y.internals.userNode,{x:f,y:D}=y.internals.positionAbsolute,{width:N,height:V}=u5(S);return{node:S,x:f,y:D,width:N,height:V}},y0);if(!O||O.hidden||!VX(O))return null;return F1.jsx(W,{x:T,y:A,width:M,height:w,style:O.style,selected:!!O.selected,className:X(O),color:U(O),borderRadius:H,strokeColor:Z(O),strokeWidth:Y,shapeRendering:B,onClick:R,id:O.id})}var TV=X1.memo(MV),RV=X1.memo(AV),OV=200,IV=150,wV=(Q)=>!Q.hidden,PV=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let X of Q.nodeLookup.values())if(!X.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?CX(b8(Q.nodeLookup,{filter:wV}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},tT=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,NV=(Q,U)=>tT(Q.viewBB,U.viewBB)&&tT(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,fV="react-flow__minimap-desc";function bR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:X,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:B,nodeComponent:W,bgColor:R,maskColor:O,maskStrokeColor:T,maskStrokeWidth:A,position:M="bottom-right",onClick:w,onNodeClick:P,pannable:y=!1,zoomable:S=!1,ariaLabel:f,inversePan:D,zoomStep:N=1,offsetScale:V=5}){let v=k0(),h=X1.useRef(null),{boundingRect:u,panZoom:b,viewBB:E,rfId:m,translateExtent:a,flowWidth:J1,flowHeight:$1,ariaLabelConfig:x}=K0(PV,NV),p=Q?.width??OV,c=Q?.height??IV,s=u.width/p,i=u.height/c,o=Math.max(s,i),k=o*p,g=o*c,q1=V*o,t=u.x-(k-u.width)/2-q1,H1=u.y-(g-u.height)/2-q1,M1=k+q1*2,A1=g+q1*2,L1=`${fV}-${m}`,U1=X1.useRef(0),T1=X1.useRef();U1.current=o,X1.useEffect(()=>{let x1=v.getState().panZoom;if(h.current&&x1)return T1.current=HT({domNode:h.current,panZoom:x1,getTransform:()=>v.getState().transform,getViewScale:()=>U1.current}),()=>{T1.current?.destroy()}},[b]),X1.useEffect(()=>{T1.current?.update({translateExtent:a,width:J1,height:$1,inversePan:D,pannable:y,zoomStep:N,zoomable:S})},[y,S,D,N,a,J1,$1]);let C1=w?(x1)=>{let[W1,P1]=T1.current?.pointer(x1)||[0,0];w(x1,{x:W1,y:P1})}:void 0,B1=X1.useCallback((x1,W1)=>{let P1=v.getState().nodeLookup.get(W1).internals.userNode;P?.(x1,P1)},[P]),S1=P?B1:void 0,k1=f??x["minimap.ariaLabel"];return F1.jsx(E8,{position:M,style:{...Q,"--xy-minimap-background-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-background-color-props":typeof O==="string"?O:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*o:void 0,"--xy-minimap-node-background-color-props":typeof X==="string"?X:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof B==="number"?B:void 0},className:h0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:F1.jsxs("svg",{width:p,height:c,viewBox:`${t} ${H1} ${M1} ${A1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":L1,ref:h,onClick:C1,children:[k1&&F1.jsx("title",{id:L1,children:k1}),F1.jsx(RV,{onClick:S1,nodeColor:X,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:B,nodeComponent:W}),F1.jsx("path",{className:"react-flow__minimap-mask",d:`M${t-q1},${H1-q1}h${M1+q1*2}v${A1+q1*2}h${-M1-q1*2}z
|
|
247
|
+
M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}bR.displayName="MiniMap";var uR=X1.memo(bR),CV=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,SV={[N6.Line]:"right",[N6.Handle]:"bottom-right"};function jV({nodeId:Q,position:U,variant:Z=N6.Handle,className:X,style:H=void 0,children:Y,color:B,minWidth:W=10,minHeight:R=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:M,autoScale:w=!0,shouldResize:P,onResizeStart:y,onResize:S,onResizeEnd:f}){let D=aX(),N=typeof Q==="string"?Q:D,V=k0(),v=X1.useRef(null),h=Z===N6.Handle,u=K0(X1.useCallback(CV(h&&w),[h,w]),y0),b=X1.useRef(null),E=U??SV[Z];X1.useEffect(()=>{if(!v.current||!N)return;if(!b.current)b.current=LT({domNode:v.current,nodeId:N,getStoreItems:()=>{let{nodeLookup:a,transform:J1,snapGrid:$1,snapToGrid:x,nodeOrigin:p,domNode:c}=V.getState();return{nodeLookup:a,transform:J1,snapGrid:$1,snapToGrid:x,nodeOrigin:p,paneDomNode:c}},onChange:(a,J1)=>{let{triggerNodeChanges:$1,nodeLookup:x,parentLookup:p,nodeOrigin:c}=V.getState(),s=[],i={x:a.x,y:a.y},o=x.get(N);if(o&&o.expandParent&&o.parentId){let k=o.origin??c,g=a.width??o.measured.width??0,q1=a.height??o.measured.height??0,t={id:o.id,parentId:o.parentId,rect:{width:g,height:q1,...yX({x:a.x??o.position.x,y:a.y??o.position.y},{width:g,height:q1},o.parentId,x,k)}},H1=iq([t],x,p,c);s.push(...H1),i.x=a.x?Math.max(k[0]*g,a.x):void 0,i.y=a.y?Math.max(k[1]*q1,a.y):void 0}if(i.x!==void 0&&i.y!==void 0){let k={id:N,type:"position",position:{...i}};s.push(k)}if(a.width!==void 0&&a.height!==void 0){let g={id:N,type:"dimensions",resizing:!0,setAttributes:!M?!0:M==="horizontal"?"width":"height",dimensions:{width:a.width,height:a.height}};s.push(g)}for(let k of J1){let g={...k,type:"position"};s.push(g)}$1(s)},onEnd:({width:a,height:J1})=>{let $1={id:N,type:"dimensions",resizing:!1,dimensions:{width:a,height:J1}};V.getState().triggerNodeChanges([$1])}});return b.current.update({controlPosition:E,boundaries:{minWidth:W,minHeight:R,maxWidth:O,maxHeight:T},keepAspectRatio:A,resizeDirection:M,onResizeStart:y,onResize:S,onResizeEnd:f,shouldResize:P}),()=>{b.current?.destroy()}},[E,W,R,O,T,A,y,S,f,P]);let m=E.split("-");return F1.jsx("div",{className:h0(["react-flow__resize-control","nodrag",...m,Z,X]),ref:v,style:{...H,scale:u,...B&&{[h?"backgroundColor":"borderColor"]:B}},children:Y})}var Tg=X1.memo(jV);var VV=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function yV({children:Q}){let U=K0(VV);if(!U)return null;return nT.createPortal(Q,U)}var kV=(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,vV=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,X]of Q)if(kV(X,U.get(Z)))return!1;return!0},DV=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function ER({nodeId:Q,children:U,className:Z,style:X,isVisible:H,position:Y=y1.Top,offset:B=10,align:W="center",...R}){let O=aX(),T=X1.useCallback((v)=>{return(Array.isArray(Q)?Q:[Q||O||""]).reduce((b,E)=>{let m=v.nodeLookup.get(E);if(m)b.set(m.id,m);return b},new Map)},[Q,O]),A=K0(T,vV),{x:M,y:w,zoom:P,selectedNodesCount:y}=K0(DV,y0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&y===1)||!A.size)return null;let f=b8(A),D=Array.from(A.values()),N=Math.max(...D.map((v)=>v.internals.z+1)),V={position:"absolute",transform:eM(f,{x:M,y:w,zoom:P},Y,B,W),zIndex:N,...X};return F1.jsx(yV,{children:F1.jsx("div",{style:V,className:h0(["react-flow__node-toolbar",Z]),...R,"data-id":D.reduce((v,h)=>`${v}${h.id} `,"").trim(),children:U})})}function $U(Q={}){let U=(X,H)=>Q.tools?`${H} (\`${X}\`)`:`\`${X}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let X=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${X} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
|
|
248
|
+
`)}var hR={"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=b0(T8(),1),QU="volter.console.token",p8=document.getElementById("root"),p1=p8.dataset.base??"/-/console",Y0=window.location.origin,g8=(p8.dataset.worlds??Y0).replace(/\/+$/,""),rR=(p8.dataset.names??"").split(",").filter((Q)=>Q!==""),f6=p8.dataset.worldOrigin==="1",m8=window.fetch.bind(window),C6="(session)",aR="(pass)",vJ=(Q)=>{try{if(Q&&!f6)sessionStorage.setItem(QU,Q);else sessionStorage.removeItem(QU);localStorage.removeItem(QU)}catch{}},sR="volter.console.portal",tR=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(sR,new URL(Q).origin)}catch{}},bV=()=>{return c8.get("token")??""},V2=()=>{try{let Q=sessionStorage.getItem(sR)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},uV=()=>{let Q=bV();if(f6){if(vJ(""),c8.get("pass"))return aR;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?"":C6)}if(Q)return vJ(Q),Q;try{return sessionStorage.getItem(QU)??""}catch{return""}};function o0(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],B=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),B.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),B.push("approve");return{text:`Not ready to deploy: ${R8(Y)}.`,acts:B}}let Z=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(Z)return{text:`No credential is sealed for ${g1(Z[1])}: seal one in Settings › Vault.`,acts:["vault"]};if(/has no origin/i.test(U))return{text:"This World has no remote: name one in Settings › Remote.",acts:["remote"]};let X=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(X){let Y=X[1].split(/,\s*/).filter(Boolean).map(g1);return{text:`${R8(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 E5=async(Q)=>o0(await W3(Q)).text,EV={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function nR({name:Q,acts:U}){let Z=U.map((X)=>EV[X]).filter((X)=>Boolean(X));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([X,H])=>F.jsxDEV(Y1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${p1}/${Q}/~/${X}`,onClick:(Y)=>{Y.preventDefault(),z0([...Q.split("/"),"~",...X.split("/")])},children:H},void 0,!1,void 0,this)]},X,!0,void 0,this))},void 0,!1,void 0,this)}async function T0(Q,U,Z={}){return m8(`${Y0}${U}`,{...Z,headers:{...Z.headers??{},...Q===C6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function w0(Q,U,Z=0){let X=DA((H)=>T0(Q,H),U,Z,Q);return X.state==="error"?{...X,error:o0(X.error).text}:X}var B9=(Q)=>{let U=new Date(Q),Z=(X)=>String(X).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},xR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),oR=(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",hV=(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},_H="volter.console.snapshots",w3=()=>{try{return JSON.parse(sessionStorage.getItem(_H)??"{}")}catch{return{}}},eR=new Map,JH=(Q)=>{if(f6){if(Q.token||Q.readToken)eR.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(_H,JSON.stringify({...w3(),[Q.name]:Q}))}catch{}},$H=(Q)=>eR.get(Q)?.readToken||w3()[Q]?.readToken||"",qU=(Q)=>{try{let U=w3();delete U[Q],sessionStorage.setItem(_H,JSON.stringify(U))}catch{}},c8=new URLSearchParams(window.location.hash.slice(1)),Y9=c8.get("close")??"";function uJ(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 QH(Q){let U=uJ(Q);if(!U)return null;let Z=new URL(Y0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let X=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!X.test(U.hostname))return null;let H=U.hostname.replace(X,"");return H===Z.hostname||X.test(Z.hostname)&&H===Z.hostname.replace(X,"")?U.origin:null}function xV(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let X=U.parentOrigin===void 0?void 0:QH(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...X?{parentOrigin:X}:{}}}{let Q=c8.get("snapshot");if(Q){let U=xV(Q);if(U&&!w3()[U.name])JH(U)}}var _O="volter.console.home",JO=(Q)=>{let U=uJ(Q);if(!U)return null;let Z=new URL(Y0).hostname,X=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===X?U.origin:null};{let Q=JO(c8.get("home"));if(Q)try{sessionStorage.setItem(_O,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>c8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var J4=()=>{try{return JO(sessionStorage.getItem(_O))??""}catch{return""}};function qH(Q,U,Z,X){let H=new URLSearchParams({token:U,home:J4()||Y0}),Y=w3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${X??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var eX=p8.dataset.route==="memory"?"":null;function h8(){return(eX??window.location.pathname.slice(p1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var mR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,I3=(Q,U)=>Q&&U&&mR.test(Q)&&mR.test(U)?`${Q}/${U}`:"";function z0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(eX!==null)eX=U;else window.history.pushState(null,"",`${p1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function $O(Q,U){let Z=QH(w3()[Q]?.origin);if(Z&&Z!==Y0){qH(Z,$H(Q),Q,`${p1}/${U.map(encodeURIComponent).join("/")}`);return}z0(U)}async function gR(){let[Q,U]=h8(),Z=I3(Q,U),X=Z?[Z]:rR;if(X.length===0){let H=await m8(`${Y0}/-/ping`).catch(()=>null);X=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}X=X.filter((H)=>{let[Y,B,...W]=H.split("/");return W.length===0&&I3(Y,B)===H});for(let H of X){let Y=await m8(`${Y0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let B=await Y.json().catch(()=>({})),W=uJ(B.origin)?.origin;if(Y.status===409&&W&&W!==Y0)return window.location.replace(`${W}${p1}/${H}`),"moved";if(Y.ok&&B.local)return{token:typeof B.token==="string"&&B.token?B.token:C6}}return null}function mV(){let[Q,U]=Y1.useState(iK),Z=(X)=>()=>{try{if(X==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",X)}catch{}Xq(X),U(X)};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Appearance",children:["system","light","dark"].map((X)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===X,onClick:Z(X),children:X==="system"?"System":X==="light"?"Light":"Dark"},X,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gV(){let[Q,U]=Y1.useState(uV()),[Z,X]=Y1.useState(!1),[H,Y]=Y1.useState(!1),[B,W]=Y1.useState(""),[R,O]=Y1.useState(null),[T,A]=Y1.useState(null),[M,w]=Y1.useState(h8());Y1.useEffect(()=>{let g=()=>w(h8());return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)},[]),Y1.useEffect(()=>{let[g,q1]=h8(),t=I3(g,q1),[H1,M1]=t?t.split("/"):[],A1=w3()[Y9];if(!Y9||!Q||!H1||!M1||!A1?.made||A1.parent!==`${H1}/${M1}`||I3(...Y9.split("/"))!==Y9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}T0(Q,`/-/${H1}/${M1}/branches/${Y9}`,{method:"DELETE"}).catch(()=>null).then(()=>qU(Y9))},[Q]);let P=Y1.useCallback(async(g)=>{if(A(null),!g){let M1=await gR();if(M1==="moved")return;if(M1){if(X(!0),M1.token!==C6)vJ(M1.token);U(M1.token);return}O(null),Y(!0);return}if(f6&&g===C6){let M1=await gR();if(M1==="moved")return;if(M1)X(!0)}if(f6&&g===aR){let[M1,A1]=h8(),L1=I3(M1,A1),[U1,T1]=L1?L1.split("/"):[],C1=U1&&T1?await m8(`${Y0}/-/${U1}/${T1}/session`,{method:"POST",headers:{"x-volter-pass":c8.get("pass")??""}}).catch(()=>null):null;if(!C1){A(`${Y0} did not answer: no session was opened`),O(null);return}if(!C1.ok){A(`${await E5(C1)}. Open it again from the platform.`),O(null);return}tR((await C1.json().catch(()=>({}))).issuer),U(C6);return}if(f6&&g!==C6){let[M1,A1]=h8(),L1=I3(M1,A1),[U1,T1]=L1?L1.split("/"):[],C1=U1&&T1?await m8(`${Y0}/-/${U1}/${T1}/session`,{method:"POST",headers:{"x-volter-token":g}}).catch(()=>null):null;if(!C1){A(`${Y0} did not answer: no session was opened`),O(null);return}if(!C1.ok){let B1=await E5(C1);A(C1.status===401||C1.status===403?`That token does not open ${U1}/${T1}.`:C1.status===409?`${U1}/${T1}'s session lives at another origin: ${B1}`:`The World could not open a session (${C1.status}): ${B1}`),O(null);return}U(C6);return}let q1=f6?new Response(null,{status:404}):await T0(g,"/-/worlds");if(q1.ok){let{worlds:M1}=await q1.json();O({kind:"admin",worlds:M1});return}if(q1.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),O(null);return}if(q1.status>=500){let M1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${M1.error?`: ${M1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),O(null);return}let t=rR;if(t.length===0){let M1=await m8(`${Y0}/-/ping`);if(!M1.ok){A(`${Y0} does not answer as a host`),O(null);return}if(t=(await M1.json()).worlds??[],t.length===0){A(`${Y0} does not list its Worlds: open a World at its own address, ${Y0}${p1}/<org>/<world>`),O(null);return}}let H1=[];for(let M1 of t){let A1=await T0(g,`/-/${M1}/twins`);if(A1.ok){let L1=await A1.json();H1.push({name:M1,base:`${g8}/${M1}`,twins:(L1.twins??[]).map((U1)=>({vendor:U1.twin,protocol:U1.protocol??null,root:U1.root??null}))})}}if(H1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),O(null);return}O({kind:"world",worlds:H1})},[]);Y1.useEffect(()=>{P(Q)},[Q,P]);let y=(g)=>R?.kind==="admin"?R.worlds.find((q1)=>q1.name===g)?.token??Q:Q,[S,f]=Y1.useState("");if(!Q||!R&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(o_,{href:`${p1}/`},void 0,!1,void 0,this),Q&&!R&&!T||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(g)=>{g.preventDefault(),vJ(B.trim()),U(B.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:B,onChange:(g)=>W(g.target.value),autoFocus:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let D=()=>{if(Z){window.location.reload();return}if(f6){let[g,q1]=h8(),t=I3(g,q1),[H1,M1]=t?t.split("/"):[],A1=()=>window.location.replace(V2()?`${V2()}/`:`${Y0}${p1}/${H1&&M1?`${H1}/${M1}`:""}?signin`);if(setTimeout(A1,2000),H1&&M1)m8(`${Y0}/-/${H1}/${M1}/session/end`,{method:"POST"}).catch(()=>null).then(A1);else A1();return}if(R)for(let g of R.worlds)navigator.sendBeacon(`${g.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${g.name}/session/end`);vJ(""),U(""),W(""),O(null),z0([])};if(T||!R)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(o_,{href:`${p1}/`},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),V2()?F.jsxDEV("a",{className:"button primary",href:`${V2()}/`,children:["Back to ",new URL(V2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:D,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let[N,V,v,h,u,b,E]=M,m=v==="~",a=/^[A-Za-z0-9_-]+$/,J1=/^[^\u0000-\u001f\u007f]{1,200}$/,$1=m||!v||!a.test(v)?void 0:v,x=u&&a.test(u)?b!==void 0&&h!=="changes"&&h!=="screens"?I3(u,b)||void 0:u:void 0,p=h==="changes"&&u==="changesets"&&b&&a.test(b)?b:h==="screens"&&b&&E&&/^[A-Za-z0-9_.-]+$/.test(b)&&J1.test(E)?`${b}:${E}`:void 0,c=I3(N,V),s=c?w3()[c]??null:null,i=(g)=>$H(g)||y(g),o=s?R.kind==="admin"?R.worlds.find((g)=>g.name===s.parent)?.token??null:R.worlds.some((g)=>g.name===s.parent)?Q:null:null,k=async(g)=>{let q1=QH(g.parentOrigin);if(q1&&q1!==Y0){qU(g.name),window.location.assign(`${q1}${p1}/${g.parent}#close=${encodeURIComponent(g.name)}`);return}if(g.made)await T0(y(g.parent),`/-/${g.parent}/branches/${g.name}`,{method:"DELETE"}).catch(()=>null),qU(g.name);z0(g.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(xA,{},void 0,!1,void 0,this):null,F.jsxDEV(o_,{href:`${J4()&&J4()!==Y0?J4():""}${p1}/`,onClick:(g)=>{if(J4()&&J4()!==Y0)return;g.preventDefault(),z0([])}},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:`${p1}/${c}`,className:"crumb-world",onClick:(g)=>{g.preventDefault(),z0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,$1?F.jsxDEV("span",{children:[" / ",$1]},void 0,!0,void 0,this):null,m&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),V2()?F.jsxDEV("a",{href:`${V2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(V2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(V2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?null:F.jsxDEV("span",{className:"mode",children:Z?"on this machine":S?`signed in as ${S}`:R.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:D,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(lV,{name:c,token:i(c),twin:$1,tab:m?h??"overview":"overview",arg:m?x:void 0,...m&&p?{sub:p}:{},admin:s?null:R.kind==="admin"?Q:null,snapshot:s,parentToken:o,who:{local:Z,person:S||null,admin:R.kind==="admin"},onSignOut:D,onReturn:k,opens:(g)=>!!w3()[g]||R.kind==="admin"&&R.worlds.some((q1)=>q1.name===g),onRemoved:()=>{P(Q),z0([])},onWho:f,worlds:R.worlds.map((g)=>g.name)},c,!1,void 0,this):F.jsxDEV(pV,{mode:R,admin:R.kind==="admin"?Q:null,reload:()=>P(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function pV({mode:Q,admin:U,reload:Z}){let[X,H]=Y1.useState(""),[Y,B]=Y1.useState(""),[W,R]=Y1.useState(""),[O,T]=Y1.useState(null),A=async(u)=>{if(!await D4({title:`Rotate the tokens of ${u}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let b=await T0(U,`/-/worlds/${u}/rotate`,{method:"POST"}),E=await b.json().catch(()=>({}));T(b.ok?`rotated ${u}: the new tokens are shown once — token ${E.token} · read token ${E.readToken}`:E.error?o0(E.error).text:`answered ${b.status}`),await Z()},M=async(u)=>{let b=await T0(U,`/-/worlds/${u}`,{method:"DELETE"}),E=await b.json().catch(()=>({}));T(b.ok?`removed ${u}`:E.error?o0(E.error).text:`answered ${b.status}`),await Z()},[w,P]=Y1.useState(!1),[y,S]=Y1.useState(!1),[f,D]=Y1.useState(""),N=async(u)=>{u.preventDefault(),T(null),P(!0);try{let b=await T0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:X,world:Y,vendors:W.split(",").map((m)=>m.trim()).filter(Boolean)})}),E=await b.json();if(!b.ok){T(E.error?o0(E.error).text:`the host answered ${b.status}`);return}T(`provisioned ${E.name}`),B(""),R(""),S(!1),await Z()}finally{P(!1)}},V=f.trim().toLowerCase(),v=Q.worlds.filter((u)=>!V||u.name.toLowerCase().includes(V)||u.twins.some((b)=>b.vendor.includes(V))),h=[...new Set(v.map((u)=>u.name.split("/")[0]))];return F.jsxDEV("section",{className:"home-window","aria-labelledby":"worlds",children:[F.jsxDEV("div",{className:"home-head",children:[F.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[l0(Q.worlds.length,"World")," ",U?"this host serves":"this key opens"]},void 0,!0,void 0,this),U?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{T(null),S(!0)},children:[F.jsxDEV(Q0,{name:"plus",size:16},void 0,!1,void 0,this),"New World"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"home-find",children:F.jsxDEV("input",{type:"search",placeholder:"Filter by World or vendor","aria-label":"Filter Worlds",value:f,onChange:(u)=>D(u.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),O&&!y?F.jsxDEV("p",{role:"status",className:"home-note",children:O},void 0,!1,void 0,this):null,h.map((u)=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:u},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:v.filter((b)=>b.name.split("/")[0]===u).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${p1}/${b.name}`,onClick:(E)=>{E.preventDefault(),z0(b.name.split("/"))},children:[F.jsxDEV(Q0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:b.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:b.base},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"home-vendors",children:b.twins.map((E)=>F.jsxDEV("span",{title:g1(E.vendor),children:F.jsxDEV(q2,{vendor:E.vendor},void 0,!1,void 0,this)},E.vendor,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?F.jsxDEV("details",{className:"menu home-more",children:[F.jsxDEV("summary",{"aria-label":`More for ${b.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),A(b.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),D4({title:`Remove ${b.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:b.name}).then((m)=>{if(m)M(b.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},b.name,!0,void 0,this))},void 0,!1,void 0,this)]},u,!0,void 0,this)),v.length===0?F.jsxDEV("p",{className:"mode home-note",children:V?`No World matches ${f}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(T5,{open:y,onClose:()=>{if(!w)S(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>S(!1),disabled:w,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:w,children:w?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:N,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:X,onChange:(u)=>H(u.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:(u)=>B(u.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:W,onChange:(u)=>R(u.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O?F.jsxDEV("p",{role:"status",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var cV=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],DJ=(Q,U)=>`${g8}/${Q}/${U}/`,pR={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 $4(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),X=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${X.charAt(0).toUpperCase()}${X.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),B=U.replace(/[._]+/g," ").trim(),W=Y?`${H} seeded`:pR[Z]?`${H} ${pR[Z]}`:`${B.charAt(0).toUpperCase()}${B.slice(1)}`,R=Q.fields??{},O=["title","name","email","text","subject","summary","description"].map((A)=>R[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=O===null?null:O.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,M,w)=>`${M==="!"?"@":M}${w}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:W,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var S6=(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 lV({name:Q,token:U,twin:Z,tab:X,arg:H,sub:Y,admin:B,snapshot:W,parentToken:R,who:O,onSignOut:T,onReturn:A,opens:M,onRemoved:w,onWho:P,worlds:y=[]}){let[S,f]=Y1.useState("pending"),[D,N]=Y1.useState(null),[V,v]=Y1.useState(0),[h,u]=Y1.useState(null);Y1.useEffect(()=>{let L1=!0;return N(null),T0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let T1=await U1.json().catch(()=>({}));if(tR(T1.issuer),T1.who)P?.(T1.who);u(typeof T1.signsAs==="string"?T1.signsAs:null);let C1=uJ(T1.origin)?.origin;if(U1.status===409&&C1&&C1!==Y0){qH(C1,U,Q);return}if(!L1)return;if(f(!U1.ok?"unknown":T1.scope==="read"?"read":T1.scope==="write"?"write":"unknown"),!U1.ok)N(T1.error?o0(T1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(L1)f("unknown"),N(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{L1=!1}},[Q,U,V]);let b=D?{state:"error",error:D}:S==="pending"?{state:"pending"}:{state:"ok",scope:S},E=S==="write",m=(L1)=>{if(L1.status!==403)return;L1.clone().json().then((U1)=>{if(/read token|opens only reads|write access|reads only/i.test(U1?.error??""))f("read")},()=>null)},[a,J1]=Y1.useState(0);Y1.useEffect(()=>{let L1=setInterval(()=>{if(!document.hidden)J1((U1)=>U1+1)},5000);return()=>clearInterval(L1)},[]);let[$1,x]=Y1.useState(0),p=w0(U,`/-/${Q}/clock`,a+$1),c=w0(U,`/-/${Q}/twins`),s=w0(U,`/-/${Q}/branches`,$1),i=w0(U,`/-/${Q}/map`,Math.floor(a/2)),o=!(s.state==="error"&&(s.status===404||s.status===405)),k=cV.includes(X)?X:"overview",g=c.state==="ok"?c.data.twins.map((L1)=>L1.twin):[],q1=k==="vendors"&&H?H:void 0,t=()=>{f("pending"),v((L1)=>L1+1)};if(k==="canvas"||k==="vendors"&&!q1||X==="screens"&&!H)return F.jsxDEV(Wy,{name:Q,token:U,twins:c,session:b,retry:t,snapshot:W,back:()=>z0(Q.split("/"))},void 0,!1,void 0,this);let M1=X==="settings"?{kind:"settings",tab:((L1)=>QO.find(([U1])=>U1===L1)?.[0]??"account")(H)}:X==="remote"?{kind:"settings",tab:"remote"}:X==="vault"?{kind:"settings",tab:"vault"}:X==="branches"?{kind:"branches",...H?{open:H}:{}}:null,A1=Z?"vendor":X==="screens"&&H?"screen":k==="vendors"&&q1?"vendor":X==="trace"?"trace":X==="events"?"events":X==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(_y,{name:Q,token:U,view:A1,win:M1,who:O,snapshot:W,onReturn:A,onSignOut:T,worlds:y,session:b,retry:t,...A1==="vendor"?{arg:Z??q1}:A1==="events"||A1==="trace"||A1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:i,branches:o?s:null,clock:p,canWrite:E&&!W,refused:m,signsAs:h,opens:M,tick:a,admin:B,onRemoved:w,onClock:()=>x((L1)=>L1+1),scope:W?"read":S},void 0,!1,void 0,this)}function Q0({name:Q,size:U=20}){return F.jsxDEV("svg",{className:"icon",viewBox:"0 0 24 24",width:U,height:U,fill:"none",stroke:"currentColor",strokeWidth:U<=16?1.75:1.5,strokeLinecap:"square",strokeLinejoin:"miter","aria-hidden":"true",children:(hR[Q]??[]).map(([Z,X],H)=>Y1.default.createElement(Z,{key:H,...X}))},void 0,!1,void 0,this)}function KU(Q){let U=(Z)=>{let X=(Z.operation??Z.op).toLowerCase();return X.includes(".")?X.slice(X.lastIndexOf(".")+1):X};if(Q.some((Z)=>/^(delete|remove|archive|revoke)/.test(U(Z))||Z.fields?.deleted===!0))return{icon:"square-minus",word:"removed",tone:"removed"};if(/^(create|add|insert|issue|send|post|upload|invite|record|seed)/.test(U(Q[0])))return{icon:"square-plus",word:"made",tone:"added"};return{icon:"square-dot",word:"changed",tone:"changed"}}var QO=[["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"]],dV=(Q,U)=>{let Z=U.split("/").pop()??U,X=Q.split("/").pop()??"";return Z.startsWith(`${X}-`)?Z.slice(X.length+1):Z},x8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function qO({record:Q,history:U,screens:Z}){let X=Q.writes[Q.writes.length-1],H=$4(X),Y=KU(Q.writes),B=new Set(Q.writes.map((M)=>M.id)),W=Q.writes[0].occurredAt,R={};if(U){for(let M of U)if(!B.has(M.id)&&!M.landsId&&!M.aliasOf&&M.subject.type===X.subject.type&&M.subject.id===X.subject.id&&M.occurredAt<=W)Object.assign(R,M.fields??{})}let O={...R};for(let M of Q.writes)Object.assign(O,M.fields??{});let T=Y.tone==="added"&&Object.keys(R).length===0,A=[...new Set([...Object.keys(R),...Object.keys(O)])].filter((M)=>!WO(R[M],O[M]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${H.label??S6(X)}: its changes`,children:[F.jsxDEV("div",{className:"ws-diff-head",children:[F.jsxDEV("span",{className:`ws-kind ${Y.tone}`,title:Y.word,children:F.jsxDEV(Q0,{name:Y.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(q2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:H.label??S6(X)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[g1(Q.twin)," · ",X.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:S6(X)},void 0,!1,void 0,this)," · ",Y.word," here"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Z&&Y.tone!=="removed"?F.jsxDEV("a",{className:"ws-on-screens",href:`${p1}/${Z}/~/screens/${Q.twin}/${X.subject.type}/${encodeURIComponent(X.subject.id)}`,onClick:(M)=>{M.preventDefault(),z0([...Z.split("/"),"~","screens",Q.twin,X.subject.type,X.subject.id])},children:[F.jsxDEV(Q0,{name:"monitor",size:16},void 0,!1,void 0,this),"On ",g1(Q.twin),"'s screens"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ol",{className:"ws-writes",children:Q.writes.map((M)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:$4(M).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(M0,{iso:M.occurredAt},void 0,!1,void 0,this)," · ",bJ(M)]},void 0,!0,void 0,this)]},M.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):A.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),T?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:Y.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:A.map((M)=>F.jsxDEV("tr",{children:[F.jsxDEV("th",{scope:"row",children:F.jsxDEV("code",{children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this),T?null:F.jsxDEV("td",{className:M in R?"was":"none",children:M in R?F.jsxDEV(P3,{v:R[M]},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:M in O?"now":"none",children:M in O?F.jsxDEV(P3,{v:O[M]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},M,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UO({records:Q,selected:U,onPick:Z,label:X}){let[H,Y]=Y1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),B=(O)=>{Y(O);try{localStorage.setItem("volter.console.records",O?"tree":"path")}catch{}},W=(O,T)=>{let A=O.writes[O.writes.length-1],M=$4(A),w=KU(O.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===O.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===O.key,onClick:()=>Z(O.key),children:[T?null:F.jsxDEV(q2,{vendor:O.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:M.label??S6(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[x8(A.subject.type)," · ",M.what.split(" ").slice(-1)[0],O.writes.length>1?` · ${l0(O.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${w.tone}`,title:w.word,"aria-label":w.word,children:F.jsxDEV(Q0,{name:w.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},O.key,!1,void 0,this)},R=[...new Set(Q.map((O)=>O.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>B(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>B(!0),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"ws-list","aria-label":X,children:H?R.map((O)=>{let T=Q.filter((A)=>A.twin===O);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(q2,{vendor:O},void 0,!1,void 0,this),F.jsxDEV("b",{children:g1(O)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:T.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:T.map((A)=>W(A,!0))},void 0,!1,void 0,this)]},O,!0,void 0,this)}):Q.map((O)=>W(O,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iV({name:Q,token:U,branches:Z,opens:X,refused:H,onChanged:Y}){let[B,W]=Y1.useState(""),[R,O]=Y1.useState(!1),T=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:T,running:!0}],M=Z?.state==="ok"?Z.data.branches:[],w=B.trim().toLowerCase(),P=(S)=>!w||S.toLowerCase().includes(w),y=(S)=>{S.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"The branch served here",children:[F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("b",{children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(Q0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover ws-branch-menu",children:[F.jsxDEV("div",{className:"ws-branch-find",children:[F.jsxDEV("input",{type:"search",placeholder:"Filter","aria-label":"Filter branches",value:B,onChange:(S)=>W(S.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(S)=>{y(S),O(!0)},disabled:!Z,children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"This World"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-branch-list",children:A.filter((S)=>P(S.name)).map((S)=>F.jsxDEV("li",{className:S.name===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:S.name===T?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:S.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.name===T?"served here":S.running?"running":"stopped"},void 0,!1,void 0,this)]},S.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),M.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:M.filter((S)=>P(S.name)).map((S)=>{let f=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:dV(Q,S.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(M0,{iso:S.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D=S.expiresAt?`Goes away ${new Date(S.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:X(S.name)?F.jsxDEV("a",{href:`${p1}/${S.name}`,title:D,onClick:(N)=>{N.preventDefault(),y(N),$O(S.name,S.name.split("/"))},children:f},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${D}. Its tokens went to whoever made it; it opens from their page.`,children:f},void 0,!1,void 0,this)},S.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${p1}/${Q}/~/branches`,onClick:(S)=>{S.preventDefault(),y(S),z0([...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(KO,{name:Q,token:U,open:R,onClose:()=>O(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GO({name:Q,view:U,changes:Z,changesets:X}){let H=(Y)=>(B)=>{B.preventDefault(),z0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${p1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",Z?F.jsxDEV("span",{className:"count",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",X?F.jsxDEV("span",{className:"count",children:X},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rV({name:Q,token:U,sets:Z,sub:X,signsAs:H,canWrite:Y,rooted:B,refused:W,onChanged:R,changes:O,mirrored:T,required:A}){let[M,w]=Y1.useState(null),[P,y]=Y1.useState(!1),S=Z.state==="ok"?[...Z.data.changesets].sort((b,E)=>E.createdAt.localeCompare(b.createdAt)):[],f=S.find((b)=>b.name===X)??S[0],D=Y1.useMemo(()=>{let b=new Map;for(let E of f?zO(f):[]){let m=`${E.twin}:${E.entry.subject.type}:${E.entry.subject.id}`,a=b.get(m)??{key:m,twin:E.twin,writes:[]};a.writes.push(E.entry),b.set(m,a)}return[...b.values()]},[f]),N=D.find((b)=>b.key===M)??D[0],V=w0(U,N?`/-/${Q}/log/${N.twin}`:null),v={added:0,removed:0,changed:0};for(let b of D)v[KU(b.writes).tone]=(v[KU(b.writes).tone]??0)+1;let h=f?FU(f):null,u=f?BO(f,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(GO,{name:Q,view:"history",changes:O,changesets:S.length},void 0,!1,void 0,this),F.jsxDEV(C2,{load:Z,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:S.map((b)=>{let E=f?.name===b.name,m=FU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${p1}/${Q}/~/changes/changesets/${b.name}`,className:E?"on":void 0,"aria-current":E?"true":void 0,onClick:(a)=>{a.preventDefault(),w(null),z0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:oX(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?UU(b.cutBy):"unrecorded")," • ",F.jsxDEV(M0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(Q0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},b.name,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-pane-right",children:[Z.state==="ok"&&!f?F.jsxDEV(e_,{title:"No changesets yet",children:F.jsxDEV("p",{children:"Cut one from Changes: the cut box is at its foot."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,f&&h&&u?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:oX(f)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",l0(D.length,"changed record"),v.added?F.jsxDEV("span",{className:"plus",children:[" +",v.added]},void 0,!0,void 0,this):null,v.removed?F.jsxDEV("span",{className:"minus",children:[" −",v.removed]},void 0,!0,void 0,this):null,v.changed?F.jsxDEV("span",{className:"dot",children:[" •",v.changed]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode ws-commit-meta",children:[F.jsxDEV("code",{children:f.name},void 0,!1,void 0,this)," · ",F.jsxDEV(M0,{iso:f.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",f.owner??(f.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(f.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",f.cutBy?f.pushedBy&&f.applied===null&&f.cutBy==="machine"?"the machine it was cut on":UU(f.cutBy):"unrecorded"],...f.pushedBy?[["Pushed by",UU(f.pushedBy)]]:[]].map(([b,E])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",E]},b,!0,void 0,this))},void 0,!1,void 0,this),f.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:f.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>y(!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-${u.tone}`,children:u.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(UO,{records:D,...N?{selected:N.key}:{},onPick:w,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:N?F.jsxDEV(qO,{record:N,history:V.state==="ok"?V.data.entries:V.state==="error"?[]:null,...T.includes(N.twin)?{screens:Q}:{}},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(T5,{open:P,onClose:()=>y(!1),title:`Review: ${oX(f)}`,wide:!0,children:[F.jsxDEV(iR,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:B,refused:W,onChanged:R,part:"head",required:A},`h:${f.name}`,!1,void 0,this),F.jsxDEV(iR,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:B,refused:W,onChanged:R,part:"review",required:A},`r:${f.name}`,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function aV({name:Q,token:U,vendors:Z,vendor:X,tick:H}){let[Y,B]=Y1.useState(cR*4),[W,R]=Y1.useState(""),[O,T]=Y1.useState(null),A=w0(U,`/-/${Q}/timeline?limit=${Y}${X?`&twin=${encodeURIComponent(X)}`:""}`,Math.floor(H/2)),M=A.state==="ok"?Yy(A.data.entries):[],w=[...new Set(M.map((v)=>$4(v.entry).what))].sort(),P=M.filter((v)=>!W||$4(v.entry).what===W),y=P.find((v)=>z9(v)===O)??P[0],S=(v)=>(h)=>{h.preventDefault(),T(null),z0([...Q.split("/"),"~","events",...v?[v]:[]])},f=y?.entry.input&&typeof y.entry.input==="object"?y.entry.input.body:void 0,D=y?hV(y.entry.traceparent):null,N=y?lR(y):null,V=y?Ky(y.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:`${p1}/${Q}/~/events`,className:!X?"on":void 0,"aria-current":!X?"page":void 0,onClick:S(),children:"All"},void 0,!1,void 0,this),Z.map((v)=>F.jsxDEV("a",{href:`${p1}/${Q}/~/events/${v}`,className:X===v?"on":void 0,"aria-current":X===v?"page":void 0,onClick:S(v),children:[F.jsxDEV(q2,{vendor:v},void 0,!1,void 0,this),g1(v)]},v,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:W,onChange:(v)=>{R(v.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),w.map((v)=>F.jsxDEV("option",{value:v,children:v},v,!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(C2,{load:A,what:"the events",lines:6},void 0,!1,void 0,this),F.jsxDEV("table",{className:"ws-grid","aria-label":"Events",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Time"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"What"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Record"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"By"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Receipt"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:P.map((v)=>{let h=$4(v.entry),u=lR(v),b=y&&z9(v)===z9(y);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>T(z9(v)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(M0,{iso:v.entry.occurredAt,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:v.twin},void 0,!1,void 0,this),g1(v.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:S6(v.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:bJ(v.entry,v.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u?F.jsxDEV("span",{className:u.bad?"badge cs-bad":u.status==="deployed"?"badge cs-done":"badge",children:u.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:oR(v.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z9(v),!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:y?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-event-line",children:[F.jsxDEV("span",{className:"badge",children:XO(y.entry)},void 0,!1,void 0,this),N?F.jsxDEV("span",{className:N.bad?"badge cs-bad":"badge cs-good",children:N.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[y.entry.subject.type,":",S6(y.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(M0,{iso:y.entry.occurredAt},void 0,!1,void 0,this)," · ",bJ(y.entry,y.caller)]},void 0,!0,void 0,this),D?F.jsxDEV("a",{href:`${p1}/${Q}/~/trace/${D.trace}`,onClick:(v)=>{v.preventDefault(),z0([...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),f!==void 0?F.jsxDEV(Xy,{body:f},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"No request body: the World or the vendor wrote it."},void 0,!1,void 0,this),V.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:V.map(([v,h])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},v,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!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(YO,{fields:y.entry.fields},void 0,!1,void 0,this),F.jsxDEV("h4",{children:y.copies.length?"Receipts":"Receipt"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:y.copies.length?y.copies.map((v)=>v.entry.receipt?.status??"landed copy").join(" · "):Hy(y.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:[y?`${P.indexOf(y)+1} of ${P.length}`:P.length," events",X?` at ${g1(X)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>B((v)=>v+cR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sV({name:Q,token:U,id:Z}){let X=/^[0-9a-f]{32}$/.test(Z),H=w0(U,X?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,M)=>-FO(A,M)):[],[B,W]=Y1.useState(null),R=Y[0]?Date.parse(Y[0].entry.occurredAt):0,O=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-R):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:`${p1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),z0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(Q0,{name:"arrow-left",size:16},void 0,!1,void 0,this)," Events"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("h2",{children:[Y[0]?`${$4(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:Z.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!X?F.jsxDEV("p",{role:"alert",children:[Z?`${Z} is not a trace id`:"No trace named",": a W3C trace id is 32 hex characters."]},void 0,!0,void 0,this):F.jsxDEV(C2,{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(M0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[O," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:T.map(g1).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(e_,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(O/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let M=Date.parse(A.entry.occurredAt)-R,w=z9(A),P=$4(A.entry);return F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("div",{className:B===w?"ws-span on":"ws-span",role:"row",onClick:()=>W(B===w?null:w),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(q2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:g1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[P.what,P.label?` “${P.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${M/O*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${M/O*100}%`},children:["+",M," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B===w?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:XO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",S6(A.entry)]},void 0,!0,void 0,this)," · ",bJ(A.entry,A.caller)," · ",oR(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(YO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},w,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function tV({name:Q,token:U,vendor:Z,mirrored:X,tick:H}){let Y=w0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),B=Y.state==="ok"?Y.data.tree.filter((V)=>V.deleted!==!0):[],W=[...new Set(B.map((V)=>V.type))].map((V)=>({type:V,count:B.filter((v)=>v.type===V).length})).sort((V,v)=>Number(V.type.startsWith("_"))-Number(v.type.startsWith("_"))||x8(V.type).localeCompare(x8(v.type))),[R,O]=Y1.useState(null),[T,A]=Y1.useState(null),M=W.some((V)=>V.type===R)?R:W[0]?.type,w=B.filter((V)=>V.type===M),P=w.find((V)=>V.id===T)??w[0],y=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],S=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),f=(V)=>!S.has(V)&&w.some((v)=>v[V]!==void 0&&v[V]!==null&&typeof v[V]!=="object"),D=[...new Set(w.flatMap((V)=>Object.keys(V)))],N=[...y.filter(f),...D.filter((V)=>!y.includes(V)&&f(V))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${g1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),g1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(C2,{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),W.map((V)=>F.jsxDEV("a",{href:`#${V.type}`,className:M===V.type?"on":void 0,"aria-current":M===V.type?"true":void 0,onClick:(v)=>{v.preventDefault(),O(V.type),A(null)},children:[F.jsxDEV(Q0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:x8(V.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:V.count},void 0,!1,void 0,this)]},V.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/events/${Z}`,onClick:(V)=>{V.preventDefault(),z0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(Q0,{name:"activity",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X?F.jsxDEV("a",{href:`${p1}/${Q}/~/screens/${Z}`,onClick:(V)=>{V.preventDefault(),z0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(Q0,{name:"monitor",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[Y.state==="ok"&&W.length===0?F.jsxDEV(e_,{title:`${g1(Z)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,w.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${x8(M??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),N.map((V)=>F.jsxDEV("th",{children:V},V,!1,void 0,this)),F.jsxDEV("th",{children:"updated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:w.map((V)=>F.jsxDEV("tr",{className:P?.id===V.id?"on":void 0,"aria-selected":P?.id===V.id,onClick:()=>A(V.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:V.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.map((v)=>F.jsxDEV("td",{className:"ws-cell-clip",children:V[v]===void 0||V[v]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(V[v])},v,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof V.updatedAt==="string"?F.jsxDEV(M0,{iso:V.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},V.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("aside",{className:"ws-record","aria-label":"The selected record",children:P?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:x8(P.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:P.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(P).filter(([V])=>V!=="type"&&V!=="id").map(([V,v])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(P3,{v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:P?`${w.indexOf(P)+1} of ${l0(w.length,x8(M??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nV({name:Q,vendor:U,holding:Z,session:X,retry:H,show:Y}){return F.jsxDEV("div",{className:"ws-screen",children:[F.jsxDEV("div",{className:"ws-screen-bar",children:[F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:g1(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Z},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/vendors/${U}`,onClick:(B)=>{B.preventDefault(),z0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(Q0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),F.jsxDEV("a",{href:DJ(Q,U),target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(Q0,{name:"external-link",size:16},void 0,!1,void 0,this),"New tab"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X.state==="ok"&&X.scope==="read"?F.jsxDEV("p",{className:"mode ws-screens-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,X.state==="pending"?F.jsxDEV("p",{className:"mode ws-screens-note",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,X.state==="error"?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not open its screens: ",X.error," ",F.jsxDEV("button",{type:"button",onClick:H,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,X.state==="ok"?F.jsxDEV("iframe",{title:`${g1(U)}, as this World shows it`,src:`${DJ(Q,U)}${Y?`?show=${encodeURIComponent(Y)}`:""}`},`${U}:${Y??""}`,!1,void 0,this):null]},void 0,!0,void 0,this)}function oV({name:Q,token:U,who:Z,scope:X}){let[H,Y]=Y1.useState(0),B=w0(U,`/-/${Q}/twins`),W=w0(U,`/-/${Q}/rules`,H),R=W.state==="ok"?W.data.changesets:null,[O,T]=Y1.useState(null),[A,M]=Y1.useState(null),[w,P]=Y1.useState(!1),[y,S]=Y1.useState([]),f=O??R?.approvals??1,D=A??R?.summary??"required",N=R!==null&&(f!==(R.approvals??1)||D!==(R.summary??"required")),V=(m,a)=>{if(S((J1)=>[{ok:m,text:a,at:new Date().toISOString(),n:++EJ},...J1].slice(0,3)),!m)Q2(a,"error")},v=async(m)=>{m.preventDefault(),P(!0);try{let a=await T0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:f,summary:D}})});if(!a.ok){V(!1,`Save: ${await E5(a)}`);return}V(!0,`Saved: ${f===0?"no approval":l0(f,"approval")} before a deploy; a summary ${D==="required"?"required":"generated when none is given"}.`),T(null),M(null),Y((J1)=>J1+1)}finally{P(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},u=Z.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:Z.person},void 0,!1,void 0,this),Z.local?", signed in on this machine":""]},void 0,!0,void 0,this):Z.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this machine"},void 0,!1,void 0,this),": no one is signed in here, so no person owns them until they are pushed by one"]},void 0,!0,void 0,this):Z.admin?F.jsxDEV(F.Fragment,{children:F.jsxDEV("b",{children:"the host's admin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this token"},void 0,!1,void 0,this),", a service"]},void 0,!0,void 0,this),b=B.state==="ok"?B.data.twins.filter((m)=>m.root?.url):[],E=X!=="write"?"This session reads the World; it changes no rules":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Changesets"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"This World's rules, kept with it and shared by everyone who works in it. A person or the World's token changes them; a key never does, so an agent cannot relax the review its own changes go through."},void 0,!1,void 0,this),F.jsxDEV(C2,{load:W,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(m)=>void v(m),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",u,". An agent's or an app's key cuts as itself, for the person it was made for; a World's token cuts as a service."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"A cut's summary"},void 0,!1,void 0,this),F.jsxDEV("fieldset",{className:"choice",disabled:Boolean(E)||R===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="required",onChange:()=>M("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:()=>M("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this),"Verified: replayed in a throwaway World, the World's checks passing"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("label",{className:"ws-rule-row",children:[F.jsxDEV("span",{children:"Approved by"},void 0,!1,void 0,this),F.jsxDEV("select",{value:f,onChange:(m)=>T(Number(m.target.value)),disabled:Boolean(E)||R===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((m)=>F.jsxDEV("option",{value:m,children:m===0?"no one: verified is enough":m===1?"1 person":`${m} different people`},m,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),B.state==="ok"&&b.length===0?F.jsxDEV("p",{className:"mode",children:"No vendor here is connected to its real service, so nothing deploys from this World."},void 0,!1,void 0,this):null,b.length?F.jsxDEV("ul",{className:"ws-rule-list",children:b.map((m)=>F.jsxDEV("li",{children:[F.jsxDEV(q2,{vendor:m.twin},void 0,!1,void 0,this),g1(m.twin),": ",h[m.root.deploy??"gated"]??"gated"]},m.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${p1}/${Q}/~/settings/services`,onClick:(m)=>{m.preventDefault(),z0([...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(j6,{log:y,name:Q},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(E)||w||!N,title:E??void 0,children:w?"Saving…":"Save"},void 0,!1,void 0,this),N?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),M(null)},children:"Cancel"},void 0,!1,void 0,this):null,E?F.jsxDEV("span",{className:"mode",children:[E,"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function eV({who:Q,scope:U,snapshot:Z,portal:X,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[B,W]=Z?["A snapshot",`of ${Z.parent}, read only`]:Q.local&&Q.person?[Q.person,"Signed in on this machine: this World is served here, and acts as you"]:Q.local?["This machine","Served here, with no one signed in: what you do is recorded as this machine"]:Q.person?[Q.person,X?`Signed in through ${new URL(X).host}`:"Signed in"]:Q.admin?["The host's admin","Opened with the host admin token: every World it serves"]:["A link or key","Opened with a token for this World"];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Account"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-account",children:[F.jsxDEV("span",{className:"ws-account-face","aria-hidden":"true",children:F.jsxDEV(Q0,{name:Q.person?"user":Q.local?"monitor":Z?"clock":"key-round",size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:B},void 0,!1,void 0,this),F.jsxDEV("small",{children:W},void 0,!1,void 0,this),F.jsxDEV("small",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.local||Z?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(Q0,{name:"log-out",size:16},void 0,!1,void 0,this),Q.person?"Sign out":Q.admin?"Sign out of the host":"Use another token"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${X}/`,children:new URL(X).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function _y({name:Q,token:U,view:Z,sub:X,arg:H,win:Y,who:B,snapshot:W,onReturn:R,onSignOut:O,worlds:T,session:A,retry:M,twins:w,map:P,branches:y,clock:S,canWrite:f,refused:D,signsAs:N,opens:V,tick:v,admin:h,onRemoved:u,onClock:b,scope:E}){let m=LO(Q,U,v,D),[a,J1]=Y1.useState(0),$1=a*1e5+Math.floor(v/2),x=w0(U,`/-/${Q}/diff`,$1),p=w0(U,`/-/${Q}/changesets`,$1),c=w0(U,`/-/${Q}/rules`,$1),[s,i]=Y1.useState(null),o=(W1)=>(P1)=>{P1?.preventDefault(),z0([...Q.split("/"),"~",...W1])},k=w.state==="ok"?w.data.twins.map((W1)=>W1.twin):[],g=P.state==="ok"?P.data.twins.filter((W1)=>W1.mirror).map((W1)=>W1.twin):[],q1=P.state==="ok"?P.data.twins.filter((W1)=>W1.root).map((W1)=>W1.twin):[],t=(W1)=>P.state==="ok"?(P.data.twins.find((P1)=>P1.twin===W1)?.resources??[]).reduce((P1,H0)=>P1+H0.count,0):0,H1=y?.state==="ok"&&y.data.checkedOut||Q.split("/")[1],M1=Y1.useMemo(()=>{if(x.state!=="ok")return[];let W1=new Map;for(let P1 of x.data.changes){let H0=`${P1.twin}:${P1.entry.subject.type}:${P1.entry.subject.id}`,D1=W1.get(H0)??{key:H0,twin:P1.twin,writes:[]};D1.writes.push(P1.entry),W1.set(H0,D1)}return[...W1.values()]},[x]),A1=M1.find((W1)=>W1.key===s)??M1[0],L1=w0(U,Z==="changes"&&A1?`/-/${Q}/log/${A1.twin}`:null,$1),U1=x.state==="ok"?x.data.changes.length:0,T1=m.waiting.length,C1=m.there,B1=m.origin.state==="ok"?m.origin.data.origin:null,S1=!f?"This session reads the World; it changes nothing":!C1?"No remote: name one in Settings › Remote":null,k1=(W1,P1,H0,D1,e0,n1)=>F.jsxDEV("a",{href:`${p1}/${Q}/~/${D1}`,className:W1?"on":void 0,"aria-current":W1?"page":void 0,onClick:e0,children:[P1,F.jsxDEV("span",{children:H0},void 0,!1,void 0,this),n1?F.jsxDEV("span",{className:"count",children:n1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),x1=(W1)=>{W1.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(o_,{href:`${p1}/${Q}`,onClick:(W1)=>{W1.preventDefault(),o(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(Q0,{name:"globe",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("b",{children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(Q0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover menu-list ws-world-menu",children:[B.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),T.map((W1)=>F.jsxDEV("a",{href:`${p1}/${W1}`,className:W1===Q?"on":void 0,onClick:(P1)=>{P1.preventDefault(),x1(P1),z0(W1.split("/"))},children:[W1===Q?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"globe",size:16},void 0,!1,void 0,this),W1]},W1,!0,void 0,this)),F.jsxDEV("a",{href:`${J4()&&J4()!==Y0?J4():""}${p1}/`,onClick:(W1)=>{if(J4()&&J4()!==Y0)return;W1.preventDefault(),x1(W1),z0([])},children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",V2()?` on ${new URL(V2()).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),V2()?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:[g8,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(tX,{text:$U({platform:V2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!B.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:[g8,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(tX,{text:$U()},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:[g8,"/",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(tX,{text:$U()},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:`${p1}/${Q}/~/settings`,onClick:(W1)=>{x1(W1),o(["settings"])(W1)},children:[F.jsxDEV(Q0,{name:"settings",size:16},void 0,!1,void 0,this),"Settings…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(iV,{name:Q,token:U,branches:y,opens:V,refused:D,onChanged:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-where",title:"Where this is",children:[F.jsxDEV("span",{children:Q},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("span",{children:H1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),B1?F.jsxDEV("a",{href:`${p1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",B1.namespace,T1?F.jsxDEV("b",{children:[" ↑",T1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${p1}/${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:`${p1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:S.state==="ok"?F.jsxDEV(F.Fragment,{children:[S.data.frozen?"stopped at ":"",F.jsxDEV(M0,{iso:S.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.pull(),disabled:Boolean(S1)||m.busy!==null,title:S1??`Fetch what ${C1} has and move this branch onto it`,children:[F.jsxDEV(Q0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),m.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.push(),disabled:Boolean(S1)||m.busy!==null||T1===0,title:S1??(T1?`Push ${l0(T1,"changeset")} to ${C1}`:`Every changeset is at ${C1}`),children:[F.jsxDEV(Q0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),m.busy==="Push"?"Pushing…":"Push",T1?F.jsxDEV("span",{className:"ws-btn-count",children:T1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn icon-only","aria-label":"Settings",title:"Settings",onClick:()=>o(["settings"])(),children:F.jsxDEV(Q0,{name:"settings",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(Q0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:W.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(M0,{iso:W.at},void 0,!1,void 0,this),": a read-only snapshot",W.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(M0,{iso:W.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 R(W),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(j6,{log:m.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[g.length?F.jsxDEV("a",{href:`${p1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`${l0(g.length,"screen")}: ${R8(g.map(g1))}`,children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Screens"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-screens-marks",children:[g.slice(0,3).map((W1)=>F.jsxDEV(q2,{vendor:W1},W1,!1,void 0,this)),g.length>3?F.jsxDEV("span",{className:"more",children:["+",g.length-3]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"count",children:g.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{className:"side-group",children:"Workspace"},void 0,!1,void 0,this),k1(Z==="changes"||Z==="history",F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),M1.length?String(M1.length):void 0),k1(Z==="events"&&!H||Z==="trace",F.jsxDEV(Q0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",o(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),k.map((W1)=>F.jsxDEV(Y1.default.Fragment,{children:k1(Z==="vendor"&&H===W1,F.jsxDEV(q2,{vendor:W1},void 0,!1,void 0,this),g1(W1),`vendors/${W1}`,o(["vendors",W1]),t(W1)?String(t(W1)):void 0)},W1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),k1(!1,F.jsxDEV(Q0,{name:"cloud",size:16},void 0,!1,void 0,this),C1?"origin":"Name a remote…","remote",o(["remote"]),T1?`↑${T1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[Z==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(GO,{name:Q,view:"changes",changes:M1.length,changesets:p.state==="ok"?p.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:x.state==="ok"?`${l0(M1.length,"record")} · ${l0(U1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(C2,{load:x,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(UO,{records:M1,...A1?{selected:A1.key}:{},onPick:i,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[x.state==="ok"&&!A1?F.jsxDEV(e_,{title:"No changes on this branch",action:T1>0&&C1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(S1)||m.busy!==null,onClick:()=>void m.push(),children:["Push ",l0(T1,"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(M0,{iso:x.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:x.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,A1?F.jsxDEV(qO,{record:A1,history:L1.state==="ok"?L1.data.entries:L1.state==="error"?[]:null,...g.includes(A1.twin)?{screens:Q}:{}},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(My,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(Q0,{name:B.person?"user":B.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:B.person??(B.local?"This machine":B.admin?"The host's admin":"A token"),account:`${p1}/${Q}/~/settings/account`,branch:H1},name:Q,token:U,changes:U1,canWrite:f,refused:D,onCut:()=>{J1((W1)=>W1+1),i(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(rV,{name:Q,token:U,sets:p,changes:M1.length,mirrored:g,required:c.state==="ok"?c.data.changesets.approvals??1:1,...X?{sub:X}:{},signsAs:N,canWrite:f,rooted:q1,refused:D,onChanged:()=>J1((W1)=>W1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(aV,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:v},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(sV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(tV,{name:Q,token:U,vendor:H,mirrored:g.includes(H),tick:v},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(nV,{name:Q,vendor:H,...X?{show:X}:{},holding:$y(P.state==="ok"?P.data.twins.find((W1)=>W1.twin===H)?.resources??[]:[]),session:A,retry:M},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(T5,{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:QO.map(([W1,P1,H0])=>F.jsxDEV("a",{href:`${p1}/${Q}/~/settings/${W1}`,className:Y.tab===W1?"on":void 0,"aria-current":Y.tab===W1?"page":void 0,onClick:o(["settings",W1]),children:[F.jsxDEV(Q0,{name:H0,size:16},void 0,!1,void 0,this),P1]},W1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[E==="read"?F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"badge read-only",children:"Read only"},void 0,!1,void 0,this)," This session reads the World; it changes nothing."]},void 0,!0,void 0,this):null,Y.tab==="account"?F.jsxDEV(eV,{who:B,scope:E,snapshot:W,portal:V2(),onSignOut:O},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(oV,{name:Q,token:U,who:B,scope:E},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(Ry,{name:Q,token:U,canWrite:f,tick:v,refused:D},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(Iy,{name:Q,token:U,admin:h,canWrite:f,refused:D,onRemoved:u,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(Oy,{name:Q,token:U,canWrite:f,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(mV,{},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(T5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(Uy,{name:Q,token:U,canWrite:f,branches:y,opens:V,...Y.open?{open:Y.open}:{},onChanged:b,refused:D},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tX({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>Q2("Copied the prompt: paste it into your coding agent"),()=>Q2("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var UH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,Jy=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),$y=(Q,U=4)=>{let Z=[...Q].filter((X)=>X.count>0).sort((X,H)=>H.count-X.count);return Z.length?Z.slice(0,U).map((X)=>l0(X.count,X.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},ZO=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 Qy({name:Q,token:U,clock:Z,canWrite:X,onChanged:H,refused:Y,open:B}){let[W,R]=Y1.useState(!1),[O,T]=Y1.useState(""),[A,M]=Y1.useState(""),[w,P]=Y1.useState(null),[y,S]=Y1.useState(!1),f=Z.state==="ok"?Z.data:null,D=async(h,u,b)=>{S(!0),P(null);try{let E=await T0(U,`/-/${Q}/${u}`,{method:u==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!E.ok){Y(E),P({ok:!1,text:await E5(E)});return}let m=await E.json();P({ok:!0,text:`${h} — the World is at ${new Date(m.at).toLocaleString()}`}),R(!1),H()}catch(E){P({ok:!1,text:`the World did not answer: ${E instanceof Error?E.message:String(E)}`})}finally{S(!1)}},N=(h)=>{h.preventDefault();let u=new Date(O);if(Number.isNaN(u.getTime())){P({ok:!1,text:"Pick a date and time."});return}if(f&&u.getTime()<Date.parse(f.at)){P({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(f.at).toLocaleString()}.`});return}D("Clock set","clock",{at:u.toISOString()})},V=(h,u)=>{D(`Advanced ${u}`,"clock/advance",{by:h})},v=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${f?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):f.frozen?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",F.jsxDEV("strong",{children:F.jsxDEV(M0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:["World time ",F.jsxDEV("strong",{children:F.jsxDEV(M0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"· real time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X&&f?F.jsxDEV("details",{className:B?"clock-more inline":"clock-more",open:B||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:B?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":W,onClick:()=>{R(!W),T(B9(xR(f.at))),P(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),v.map(([h,u])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${u}`,disabled:y||!f.frozen,title:f.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>V(h,u),children:u},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){P({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}V(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>M(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!f.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:y||!f.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!f.frozen?F.jsxDEV("p",{className:"mode",children:"The World runs on real time. Set a time to start simulating; then advance it."},void 0,!1,void 0,this):null,W?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:N,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:O,min:B9(xR(f.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:y,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>R(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,w?F.jsxDEV("p",{role:w.ok?"status":"alert",children:w.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function qy({name:Q,token:U,clock:Z,refused:X}){let[H,Y]=Y1.useState(!1),[B,W]=Y1.useState(""),[R,O]=Y1.useState(null),[T,A]=Y1.useState(!1),M=Z.state==="ok"?Z.data.at:new Date().toISOString(),w=Y1.useRef(null);return Y1.useEffect(()=>{if(!H)return;let y=(f)=>{if(f.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),w.current?.querySelector("button")?.focus()},S=(f)=>{if(!w.current?.contains(f.target))Y(!1)};return document.addEventListener("keydown",y),document.addEventListener("click",S),()=>{document.removeEventListener("keydown",y),document.removeEventListener("click",S)}},[H]),F.jsxDEV("div",{className:"as-of",ref:w,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),W(B9(M)),O(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(y)=>{y.preventDefault(),O(null);let S=new Date(B);if(Number.isNaN(S.getTime())){O("Pick a date and time.");return}if(S.getTime()>Date.parse(M)){O(`That is after the World's present (${new Date(M).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let f=await T0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!f.ok){X(f),O(await E5(f));return}let D=await f.json();JH({name:D.name,parent:Q,token:D.token,readToken:D.readToken,at:S.toISOString(),expiresAt:D.expiresAt??null,parentOrigin:Y0,made:!0});let N=uJ(D.origin)?.origin;if(N&&N!==Y0){qH(N,D.readToken,D.name,`${p1}/${D.name}`);return}z0(D.name.split("/"))}catch(f){O(`the World did not answer: ${f instanceof Error?f.message:String(f)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:B,max:B9(M),onChange:(y)=>W(y.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,R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function KO({name:Q,token:U,open:Z,onClose:X,onMade:H,refused:Y}){let B=(u)=>u.split("/").pop()??u,[W,R]=Y1.useState(!1),[O,T]=Y1.useState(null),[A,M]=Y1.useState(""),[w,P]=Y1.useState("now"),[y,S]=Y1.useState(""),[f,D]=Y1.useState("24"),[N,V]=Y1.useState(!0);Y1.useEffect(()=>{if(Z)T(null),S(B9(new Date().toISOString()))},[Z]);let v=async(u)=>{u.preventDefault(),T(null);let b=w==="at"?new Date(y):null;if(b&&Number.isNaN(b.getTime())){T("Pick a date and time, or make it as of now.");return}if(b&&b.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}R(!0);let E=await T0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(f)*3600),...b?{at:{instant:b.toISOString()}}:N?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(R(!1),!E){T(`${Y0} did not answer`);return}if(!E.ok){Y(E),T(await E5(E));return}let m=await E.json();JH({name:m.name,parent:Q,token:m.token??"",readToken:m.readToken,at:(b??new Date).toISOString(),expiresAt:m.expiresAt??null,parentOrigin:Y0,...m.origin?{origin:m.origin}:{}}),X(),M(""),Q2(`Made ${B(m.name)}`),H()};return F.jsxDEV(T5,{open:Z,onClose:()=>{if(!W)X()},title:`New branch of ${B(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>X(),disabled:W,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:W,children:W?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(u)=>void v(u),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:(u)=>M(u.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9\\-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="now",onChange:()=>P("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:N,onChange:(u)=>V(u.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="at",onChange:()=>P("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:y,max:B9(new Date().toISOString()),onChange:(u)=>S(u.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"branchLife",value:f,onChange:(u)=>D(u.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O?F.jsxDEV("p",{role:"alert",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Uy({name:Q,token:U,canWrite:Z,branches:X,opens:H,open:Y,onChanged:B,refused:W,snapshotOf:R}){let O=w0(U,`/-/${Q}/clock`),T=(D)=>D.split("/").pop()??D,[A,M]=Y1.useState(!1),w=(D)=>(N)=>{N.preventDefault(),z0([...Q.split("/"),"~","branches",...D?D.split("/"):[]])};if(!X)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let P=X.state==="ok"?X.data.branches:[],y=X.state==="ok"&&(X.data.named?.length??0)>0?X.data.named:[{name:T(Q),running:!0}],S=X.state==="ok"?X.data.checkedOut??T(Q):T(Q),f=async(D)=>{if(!await D4({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 N=await T0(U,`/-/${Q}/branches/${D}`,{method:"DELETE"}).catch((V)=>V);if(N instanceof Error){Q2(`Remove ${T(D)}: the World did not answer (${N.message})`,"error");return}if(!N.ok){W(N),Q2(`Remove ${T(D)}: ${await E5(N)}`,"error");return}qU(D),Q2(`Removed ${T(D)}`),B(),z0([...Q.split("/"),"~","branches"])};if(Y){let D=Y.includes("/")?P.find((V)=>V.name===Y):void 0,N=Y.includes("/")?void 0:y.find((V)=>V.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${p1}/${Q}/~/branches`,onClick:w(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(C2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"&&!D&&!N?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,D?F.jsxDEV(Gy,{name:Q,b:D,canWrite:Z,opens:H(D.name),remove:()=>void f(D.name)},void 0,!1,void 0,this):null,N&&!D?F.jsxDEV(Zy,{name:Q,token:U,b:N,served:N.name===S,canWrite:Z,canServe:X.state==="ok"&&Boolean(X.data.canServe)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}return F.jsxDEV("div",{"aria-labelledby":"branches",children:[F.jsxDEV("div",{className:"branches-head",children:[F.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",F.jsxDEV("b",{children:S},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),Z?F.jsxDEV("div",{className:"head-actions",children:[R?null:F.jsxDEV(qy,{name:Q,token:U,clock:O,refused:W},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>M(!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(C2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:[y.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${p1}/${Q}/~/branches/${D.name}`,onClick:w(D.name),children:F.jsxDEV("b",{children:D.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.name===S?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${D.name}`,!0,void 0,this)),P.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${p1}/${Q}/~/branches/${D.name}`,onClick:w(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(M0,{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(M0,{iso:D.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.expiresAt?F.jsxDEV(M0,{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(KO,{name:Q,token:U,open:A,onClose:()=>M(!1),onMade:B,refused:W},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Gy({name:Q,b:U,canWrite:Z,opens:X,remove:H}){let Y=(R)=>R.split("/").pop()??R,B=$H(U.name),W=w0(B,B?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[ZO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[X?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>$O(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,Z?F.jsxDEV("button",{type:"button",className:"danger-button",onClick:H,children:"Remove…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:U.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Y(U.from??Q)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.at?.instant?F.jsxDEV(M0,{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(M0,{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(M0,{iso:U.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!X?F.jsxDEV("p",{className:"mode",children:"Its tokens were handed to whoever made it: it opens, and shows its own changes, in their tab."},void 0,!1,void 0,this):null,W.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),W.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(Ay,{changes:W.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 Zy({name:Q,token:U,b:Z,served:X,canWrite:H,canServe:Y}){let[B,W]=Y1.useState(!1),[R,O]=Y1.useState(null),T=async()=>{W(!0),O(null);let A=await T0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}W(!1),O(A?await E5(A):`${Y0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[ZO," ",Z.name," ",X?F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:H&&Y&&!X?F.jsxDEV("button",{type:"button",className:"primary",disabled:B,onClick:()=>void T(),children:B?"Switching…":"Serve here"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:Z.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Kind"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:"one of this World's own branches"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"State"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Z.running?"running":"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${p1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),z0([...Q.split("/"),"~","changes"])},children:"Changes"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):Y?F.jsxDEV("p",{className:"mode",children:["“Serve here” stops this one's twins and serves ",Z.name," in its place."]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode",children:"This host serves one of the World's own branches at a time, and does not switch them from this page."},void 0,!1,void 0,this),R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var cR=50,z9=(Q)=>`${Q.twin}:${Q.position}`,FO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,UU=(Q)=>{if(!Q)return"someone";if(Q.startsWith("key:")){let[U,Z]=Q.slice(4).split(" for:");return Z?`${U}, for ${Z}`:U||"a key"}if(Q.startsWith("person:"))return Q.slice(7);return Q==="machine"?"this machine":Q==="person"?"a session with no name":Q==="token:read"?"the read-only token":Q==="token"?"the World's token":Q},bJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${UU(Z)}`;if(Z.startsWith("person:")&&Z.length>7)return`by ${Z.slice(7)}`;if(Z==="machine")return"by this machine";if(Z==="person")return"by a session with no name";if(Z==="key")return"by a key";if(Z==="token:read")return"by the read-only token";if(Z==="token")return"by the World's token";return Q.actor?.kind==="system"?"by the vendor":Q.actor?.id?`by ${Q.actor.id}`:"by an app"},XO=(Q)=>Q.operation??Q.op;function Ky(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,X=(...O)=>O.map((T)=>Z[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=X("prompt_tokens","input_tokens"),B=X("completion_tokens","output_tokens"),W=X("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(B!==void 0)H.push(["tokens out",B.toLocaleString()]);if(W!==void 0)H.push(["tokens in all",W.toLocaleString()]);let R=X("cost_usd","cost");if(R!==void 0)H.push(["cost",`$${R<0.01?R.toPrecision(2):R.toFixed(2)}`]);return H}function HO({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 P3({v:Q}){if(typeof Q==="string")return F.jsxDEV(HO,{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 Fy=(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 Xy({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(P3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,X=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[X.length?F.jsxDEV("dl",{className:"fields",children:X.map(([H,Y])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(P3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,Z?F.jsxDEV("ol",{className:"messages",children:Z.map((H,Y)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"role",children:typeof H.role==="string"?H.role:"message"},void 0,!1,void 0,this),F.jsxDEV(HO,{text:Fy(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 YO({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return F.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return F.jsxDEV("dl",{className:"fields",children:U.map(([Z,X])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(P3,{v:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var Hy=(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 Yy(Q){let U=new Map,Z=[],X=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){X.push(Y);continue}let B={...Y,copies:[]};if(Z.push(B),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,B);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}`,B)}for(let Y of X){let B=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(B)B.copies.push(Y);else Z.push({...Y,copies:[]})}return Z.sort(FO)}var nX={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function lR(Q){let U=[Q.entry.receipt,...Q.copies.map((H)=>H.entry.receipt)].filter((H)=>Boolean(H?.status));if(U.length===0)return null;let Z=U.find((H)=>H.status==="failed"||H.status==="refused"),X=[...U].sort((H,Y)=>(nX[Y.status]??0)-(nX[H.status]??0))[0];return Z&&!(nX[X.status]>=5)?{status:Z.status,bad:!0}:{status:X.status,bad:!1}}var GU=1280,ZU=820,dR=160;function zy({data:Q}){let{world:U,vendor:Z,active:X,open:H,changed:Y}=Q;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(ER,{isVisible:!0,position:y1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),F.jsxDEV("span",{children:g1(Z)},void 0,!1,void 0,this),Y?F.jsxDEV("a",{className:"frame-changed nodrag",href:`${p1}/${U}/~/changes`,onClick:(B)=>{B.preventDefault(),z0([...U.split("/"),"~","changes"])},title:`${l0(Y,"record")} changed here, not in a changeset: see them in Changes`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),Y]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:X?"frame on":"frame",style:{width:GU,height:ZU},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),F.jsxDEV("strong",{children:g1(Z)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"frame-url",children:DJ(U,Z).replace(/^https?:\/\//,"")},void 0,!1,void 0,this),F.jsxDEV("a",{className:"nodrag",href:`${p1}/${U}/~/screens/${Z}`,onClick:(B)=>{B.preventDefault(),H(Z)},children:"Open"},void 0,!1,void 0,this),F.jsxDEV("a",{className:"nodrag",href:DJ(U,Z),target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${g1(Z)} in a new tab`,children:"↗"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:X?"frame-body nodrag nopan nowheel":"frame-body",children:F.jsxDEV("iframe",{title:`${Z} mirror`,src:DJ(U,Z),loading:"lazy",style:{pointerEvents:X?"auto":"none"}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var By={screen:zy};function Wy(Q){return F.jsxDEV(sX,{children:F.jsxDEV(Ly,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Ly({name:Q,token:U,twins:Z,session:X,retry:H,snapshot:Y,back:B}){let W=w0(U,`/-/${Q}/diff`),R=Y1.useMemo(()=>{let a={};if(W.state==="ok")for(let J1 of W.data.changes)(a[J1.twin]??=new Set).add(`${J1.entry.subject.type}:${J1.entry.subject.id}`);return Object.fromEntries(Object.entries(a).map(([J1,$1])=>[J1,$1.size]))},[W]),O=(a)=>R[a]??0,T=Z.state==="ok"?Z.data.twins.filter((a)=>a.mirror).map((a)=>a.twin):[],A=`volter.canvas.${Q}`,[M,w]=Y1.useState(null),[P,y]=Y1.useState(!0),S=kJ(),f=Y1.useCallback((a)=>z0([...Q.split("/"),"~","screens",a]),[Q]),D=Math.max(1,Math.ceil(Math.sqrt(T.length))),N=Y1.useCallback(()=>{let a={};try{a=JSON.parse(localStorage.getItem(A)??"{}")}catch{}return T.map((J1,$1)=>({id:J1,type:"screen",dragHandle:".frame-bar",position:a[J1]??{x:$1%D*(GU+dR),y:Math.floor($1/D)*(ZU+dR)},data:{world:Q,vendor:J1,active:!1,open:f,changed:R[J1]??0}}))},[T.join(","),Q,D,f,R]),[V,v,h]=VR([]);Y1.useEffect(()=>{v(N())},[N,v]),Y1.useEffect(()=>{v((a)=>a.map((J1)=>J1.data.active===(J1.id===M)?J1:{...J1,data:{...J1.data,active:J1.id===M}}))},[M,v]),Y1.useEffect(()=>{let a=(J1)=>{if(J1.key==="Escape")w(null)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[]);let u=()=>{try{localStorage.setItem(A,JSON.stringify(Object.fromEntries(V.map((a)=>[a.id,a.position]))))}catch{}},b=(a)=>{w(a);let J1=S.getNode(a);if(!J1)return;let $1=Math.min((window.innerWidth-300)/GU,(window.innerHeight-120)/ZU,1);S.setCenter(J1.position.x+GU/2-130/$1,J1.position.y+ZU/2,{zoom:$1,duration:400})},E=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,m=X.state==="ok"&&Z.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"Every vendor's screens",children:F.jsxDEV(jR,{nodes:m?V:[],onNodesChange:h,nodeTypes:By,onNodeDragStop:u,onNodeClick:(a,J1)=>w(J1.id),onPaneClick:()=>w(null),fitView:!0,fitViewOptions:{padding:{top:"64px",left:"272px",right:"32px",bottom:"32px"}},minZoom:0.05,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!1,zoomOnDoubleClick:!1,colorMode:E?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(kR,{variant:x4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(E8,{position:"top-left",className:"float layers",children:[F.jsxDEV("div",{className:"float-head",children:[F.jsxDEV("button",{type:"button",className:"back",onClick:B,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"float-title",children:[F.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],Y?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost","aria-expanded":P,"aria-label":P?"Hide the screens list":"Show the screens list",onClick:()=>y(!P),children:P?"▾":"▸"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P?F.jsxDEV("ul",{className:"layer-list","aria-label":"Screens",children:T.map((a)=>F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:M===a?"on":void 0,onClick:()=>b(a),children:[F.jsxDEV(q2,{vendor:a},void 0,!1,void 0,this),F.jsxDEV("span",{children:g1(a)},void 0,!1,void 0,this),O(a)?F.jsxDEV("span",{className:"layer-changed",title:`${l0(O(a),"record")} changed, not in a changeset`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),O(a)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},a,!1,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV(C2,{load:Z,what:"the vendors"},void 0,!1,void 0,this),X.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,X.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",X.error," ",F.jsxDEV("button",{type:"button",onClick:H,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(E8,{position:"top-center",className:"float hint mode",children:M?`Using ${g1(M)} · Esc to leave`:"Drag to pan · scroll to zoom · click a screen to use it"},void 0,!1,void 0,this),F.jsxDEV(DR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(uR,{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 zO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}}));function FU(Q){let U=Q.actions.length,Z=Q.applied?.receipts??[],X=Q.deployed??[],H=new Set([...X.filter((W)=>W.status==="deployed"),...Z.filter((W)=>W.status==="confirmed")].map((W)=>W.actionId)).size,Y=new Set([...X.filter((W)=>W.status==="refused"||W.status==="failed"),...Z.filter((W)=>W.status==="failed")].map((W)=>W.actionId)).size,B={performed:H,failed:Y,total:U};if(U>0&&H>=U)return{label:"Deployed",tone:"done",...B};if(H>0)return{label:`Partly deployed: ${H} of ${U}`,tone:"warn",...B};if(Y>0)return{label:`${Y} refused or failed`,tone:"bad",...B};if(Z.some((W)=>W.status==="replayed")&&Z.every((W)=>W.status==="replayed"||W.status==="skipped"))return{label:"Pushed",tone:"good",...B};return{label:"Not sent",tone:"plain",...B}}var oX=(Q)=>Q.message??Q.narration?.split(`
|
|
250
|
+
`)[0]?.replace(/ setting .*$/,"")??Q.name;function BO(Q,U=1){let Z=Q.currentHash??Q.contentHash,X=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===Z).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===Z?Q.verification:null;if(H&&!H.passed)return{label:"Checks failed",tone:"bad"};if(X>0&&X<U)return{label:`Approved by ${X} of ${U}`,tone:"plain"};if(X>0)return{label:`Approved by ${X}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function iR({name:Q,token:U,signsAs:Z,c:X,canWrite:H,rooted:Y,refused:B,onChanged:W,part:R,required:O}){let T=R==="head",A=R==="review",[M,w]=Y1.useState(null),[P,y]=Y1.useState(!1),[S,f]=Y1.useState(""),[D,N]=Y1.useState(""),[V,v]=Y1.useState(null),h=w0(U,`/-/${Q}/origin`),u=FU(X),b=BO(X,O),E=zO(X),m=[...new Set(E.map((t)=>t.twin))],a=m.some((t)=>Y.includes(t)),J1=(t)=>t===(X.currentHash??X.contentHash),$1=X.applied?.receipts??[],x=(X.deployed??[]).filter((t)=>t.status!=="landed"),p=$1.filter((t)=>t.status==="confirmed").length,c=x.filter((t)=>t.status==="deployed"),s=async(t,H1,M1,A1)=>{w(t),v(null);try{let L1=await T0(U,H1,{method:"POST",...M1===void 0?{}:{body:JSON.stringify(M1)}});if(!L1.ok)return B(L1),v({what:t,...o0(await W3(L1))}),!1;if(A1)Q2(A1);return W(),!0}catch(L1){return v({what:t,text:`the World did not answer (${L1 instanceof Error?L1.message:String(L1)})`,acts:[]}),!1}finally{w(null)}},i=()=>{s("Verify",`/-/${Q}/changesets/${X.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(t)=>{if(t.preventDefault(),await s("Approve",`/-/${Q}/changesets/${X.name}/approve`,{...S.trim()?{note:S.trim()}:{},...Z===null&&D.trim()?{as:D.trim()}:{}},"Approved"))y(!1),f("")},k=async()=>{let t=m.filter((H1)=>Y.includes(H1));if(!await D4({title:`Deploy ${X.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",X.actions.length," change",X.actions.length===1?"":"s"," against the real account",t.length===1?"":"s"," behind ",R8(t.map(g1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:X.name}))return;w("Deploy"),v(null);try{let H1=await T0(U,`/-/${Q}/deploy/${X.name}`,{method:"POST",body:JSON.stringify({confirm:X.name})});if(!H1.ok){B(H1),v({what:"Deploy",...o0(await W3(H1))});return}let M1=await T0(U,`/-/${Q}/changesets/${X.name}`),A1=M1.ok?await M1.json():null;if(!A1){Q2("Deploy: sent; reading its receipts failed","info"),W();return}let L1=FU(A1);Q2(`Deploy: ${L1.performed} of ${L1.total} change${L1.total===1?"":"s"} performed at the vendor${L1.failed?`; ${L1.failed} refused or failed`:""}`,L1.failed?"error":L1.performed?"ok":"info"),W()}catch(H1){v({what:"Deploy",text:`the World did not answer (${H1 instanceof Error?H1.message:String(H1)})`,acts:[]})}finally{w(null)}},g=!H?"This session reads the World; it changes nothing":u.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?UH(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:[X.message??X.name," ",F.jsxDEV("span",{className:`badge cs-${u.tone}`,children:u.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:X.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(M0,{iso:X.createdAt},void 0,!1,void 0,this)," · ",X.actions.length," change",X.actions.length===1?"":"s"," at ",R8(m.map(g1))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[F.jsxDEV("button",{type:"button",onClick:i,disabled:Boolean(g)||M!==null,title:g??"Replay it in a throwaway World and run the World's checks",children:M==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>y(!0),disabled:Boolean(g)||M!==null,title:g??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),a?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(g)||M!==null,title:g??"Perform it against the real accounts behind this World",children:M==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g&&u.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[g,"."]},void 0,!0,void 0,this):null,V?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:V.what},void 0,!1,void 0,this),": ",V.text]},void 0,!0,void 0,this),V.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:i,disabled:M!==null,children:"Verify"},void 0,!1,void 0,this):null,V.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>y(!0),disabled:M!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(nR,{name:Q,acts:V.acts},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null,A?F.jsxDEV(F.Fragment,{children:[X.narration?F.jsxDEV("p",{className:"narration",children:X.narration},void 0,!1,void 0,this):null,F.jsxDEV("h4",{children:"Where it went"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"block where",children:[u.performed>0?F.jsxDEV("p",{className:"pad",children:[u.performed>=u.total?"Deployed":"Partly deployed",": ",u.performed," of ",u.total," change",u.total===1?"":"s"," performed at ",R8([...new Set([...c.map((t)=>t.service),...$1.filter((t)=>t.status==="confirmed").map((t)=>t.service)].map(g1))]),c.length?` (${c.length} from here`:" (",c.length&&p?", ":"",p?`${p} by the remote`:"",")."]},void 0,!0,void 0,this):u.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",q1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:q1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,X.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(M0,{iso:X.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,": every change was replayed there. No vendor has performed any of it."]},void 0,!0,void 0,this):u.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",X.applied?.outcome==="refused"?" A push was refused (below); Push sends it again.":F.jsxDEV(F.Fragment,{children:[" Push sends it to the remote World",a?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,u.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[u.failed," change",u.failed===1?" was":"s were"," refused or failed at the vendor",[...x.filter((t)=>t.reason&&(t.status==="refused"||t.status==="failed")).map((t)=>t.reason),...$1.filter((t)=>t.status==="failed"&&t.error).map((t)=>t.error)].slice(0,3).map((t)=>`: ${o0(t).text}`).join(""),"."]},void 0,!0,void 0,this):null,X.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:X.applied.refusal.map((t,H1)=>F.jsxDEV("li",{className:"mode",children:o0(t).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((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="refused"||t.status==="failed"?"badge cs-bad":t.status==="deployed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",g1(t.service)," ",t.status==="deployed"?t.url?F.jsxDEV("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:t.externalId??t.url},void 0,!1,void 0,this):t.externalId?F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this):null:null,t.reason?F.jsxDEV("span",{className:"mode",children:[" · ",o0(t.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(M0,{iso:t.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${t.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,$1.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:$1.map((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="failed"?"badge cs-bad":t.status==="confirmed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",g1(t.service)," ",F.jsxDEV("span",{className:"mode",children:t.status==="replayed"?"replayed at the remote World":t.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),t.status==="confirmed"&&t.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t.error?F.jsxDEV("span",{className:"mode",children:[" · ",o0(t.error).text]},void 0,!0,void 0,this):null]},`r:${t.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!a&&u.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:`${p1}/${Q}/~/settings/services`,onClick:(t)=>{t.preventDefault(),z0([...Q.split("/"),"~","settings","services"])},children:"Connect a vendor in Settings › Real services"},void 0,!1,void 0,this)," to deploy."]},void 0,!0,void 0,this):null,F.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!X.verification?F.jsxDEV("p",{className:"mode",children:"Not verified yet. Verify replays it in a throwaway World and runs this World's checks over the result."},void 0,!1,void 0,this):F.jsxDEV("div",{className:J1(X.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[X.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(M0,{iso:X.verification.at},void 0,!1,void 0,this),J1(X.verification.contentHash)?null:F.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.verification.results.length?F.jsxDEV("ul",{className:"checks",children:X.verification.results.map((t)=>F.jsxDEV("li",{children:[t.passed?"✓":"✗"," ",F.jsxDEV("code",{children:t.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:g1(t.service)},void 0,!1,void 0,this)]},t.id,!0,void 0,this))},void 0,!1,void 0,this):null,X.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:X.verification.refusals.map((t,H1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:t.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[g1(t.service),": ",t.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),X.approvals.length===0?F.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"approvals",children:X.approvals.map((t,H1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:t.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(M0,{iso:t.at},void 0,!1,void 0,this),J1(t.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),t.note?F.jsxDEV("div",{className:"mode",children:["“",t.note,"”"]},void 0,!0,void 0,this):null]},H1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(T5,{open:P,onClose:()=>{if(!M)y(!1)},title:`Approve ${X.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>y(!1),disabled:M!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:M!==null,children:M==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(t)=>void o(t),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.jsxDEV("b",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,". A later change to it shows your approval as for an earlier version."]},void 0,!0,void 0,this),Z===null?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:D,onChange:(t)=>N(t.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"This World was opened with its token, which names no person: the approval records the name you give."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Note ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("textarea",{name:"approveNote",value:S,onChange:(t)=>f(t.target.value),rows:3,maxLength:500},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var WO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function Ay({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((X)=>X.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((X)=>{let H=Q.filter((B)=>B.twin===X).map((B)=>B.entry),Y=[...new Set(H.map((B)=>`${B.subject.type}:${B.subject.id}`))];return F.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${X}`,children:[F.jsxDEV("h3",{id:`${U}-${X}`,className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:X},void 0,!1,void 0,this),g1(X)," ",F.jsxDEV("span",{className:"mode",children:["· ",l0(Y.length,"record"),", ",l0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((B)=>{let W=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===B),R=W[W.length-1],O=$4(R),T={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:R.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",O.label?F.jsxDEV("span",{className:"label",children:["“",O.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:S6(R)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.map((A)=>{let M=A.fields??{},w=Object.entries(M).filter(([y,S])=>!(y in T)||!WO(T[y],S)),P=T;return T={...T,...M},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:$4(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(M0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",bJ(A)]},void 0,!0,void 0,this),w.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${$4(A).what} set`,children:w.map(([y,S])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:y},void 0,!1,void 0,this),F.jsxDEV("dd",{children:y in P?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(P3,{v:P[y]},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(P3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(P3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},y,!0,void 0,this))},void 0,!1,void 0,this)]},A.id,!0,void 0,this)})]},B,!0,void 0,this)})},void 0,!1,void 0,this)]},X,!0,void 0,this)})},void 0,!1,void 0,this)}function My({name:Q,token:U,changes:Z,canWrite:X,refused:H,onCut:Y,pinned:B,generated:W,inputRef:R,author:O}){let[T,A]=Y1.useState(""),[M,w]=Y1.useState(!1),[P,y]=Y1.useState([]),S=(D,N,V)=>{y((v)=>[{ok:D,text:N,at:new Date().toISOString(),n:++EJ,...V?.length?{acts:V}:{}},...v].slice(0,4))},f=async(D)=>{D.preventDefault(),w(!0);try{let N=await T0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!N.ok){H(N);let v=o0(await W3(N));S(!1,`Cut a changeset: ${v.text}`,v.acts);return}let V=await N.json();S(!0,`Cut ${V.name??"a changeset"}: ${l0(V.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(N){S(!1,`Cut a changeset: the World did not answer (${N instanceof Error?N.message:String(N)})`)}finally{w(!1)}};if(B){let D=!X?"This session reads the World; it changes nothing":Z===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(j6,{log:P,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(N)=>void f(N),"aria-label":"Cut a changeset",children:[O?F.jsxDEV("a",{className:"ws-author",href:O.account,title:`${O.who}: your account`,onClick:(N)=>{N.preventDefault(),z0(O.account.slice(p1.length+1).split("/"))},children:O.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:R,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(N)=>A(N.target.value),placeholder:Z===0?"Nothing to cut":W?"Summary (optional)":"Summary (required)",required:!W,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)||M,title:D??void 0,children:M?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",l0(Z,"change"),O?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:O.branch},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!X||Z===0)return F.jsxDEV(j6,{log:P,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(D)=>void f(D),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",Z===1?"this change":`these ${Z} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:T,onChange:(D)=>A(D.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:Z===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:M||Z===0,children:M?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(j6,{log:P,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ty({name:Q,token:U}){let[Z,X]=Y1.useState(0),H=w0(U,`/-/${Q}/keys`,Z),[Y,B]=Y1.useState(!1),[W,R]=Y1.useState(""),[O,T]=Y1.useState("write"),[A,M]=Y1.useState(!1),[w,P]=Y1.useState(null),[y,S]=Y1.useState(null),[f,D]=Y1.useState(null),N=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,u=await T0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=u?await u.json().catch(()=>({})):{error:`${Y0} did not answer`};if(!u?.ok||!b.key){Q2(b.error?o0(b.error).text:"refused","error");return}D(`${window.location.origin}${p1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),X((E)=>E+1)},V=async(h)=>{h.preventDefault(),M(!0),P(null);let u=await T0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:W.trim(),scope:O})}).catch(()=>null);M(!1);let b=u?await u.json().catch(()=>({})):{error:`${Y0} did not answer`};if(!u?.ok||!b.key){P(b.error?o0(b.error).text:"refused");return}B(!1),S({key:b.key,name:W.trim()}),R(""),X((E)=>E+1)},v=async(h)=>{if(!await D4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let u=await T0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(u.ok)Q2(`Revoked ${h.name}`);else Q2(await E5(u),"error");X((b)=>b+1)};return F.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[F.jsxDEV("div",{className:"keys-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"What an app, a script or a CI job holds to reach this World: each named for what holds it and revoked alone. People open the World as themselves; keys are for software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V2()?F.jsxDEV("a",{className:"button primary",href:`${V2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):F.jsxDEV("div",{className:"head-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>void N(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{P(null),B(!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(C2,{load:H,what:"the keys",retry:()=>X((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:lK(h.createdAt),children:dK(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?dK(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(hA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void v(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(T5,{open:Y,onClose:()=>{if(!A)B(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>B(!1),disabled:A,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"make-key",disabled:A||!W.trim(),children:A?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"make-key",onSubmit:V,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:W,onChange:(h)=>R(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:O,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),w?F.jsxDEV("p",{role:"alert",children:w},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(T5,{open:Boolean(y),onClose:()=>S(null),title:`${y?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>S(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Copy it now: it is shown this once. Put it where the app reads its secrets."},void 0,!1,void 0,this),y?F.jsxDEV(rK,{label:"Key",value:y.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(T5,{open:Boolean(f),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),f?F.jsxDEV(rK,{label:"Link",value:f,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var EJ=0;function j6({log:Q,name:U}){if(Q.length===0)return null;return F.jsxDEV("ul",{className:"narration-log",role:"status","aria-live":"polite",children:Q.map((Z)=>F.jsxDEV("li",{className:Z.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(M0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(nR,{name:U,acts:Z.acts},void 0,!1,void 0,this):null]},Z.n,!0,void 0,this))},void 0,!1,void 0,this)}function LO(Q,U,Z,X){let[H,Y]=Y1.useState(0),B=H*1e5+Math.floor(Z/2),W=w0(U,`/-/${Q}/origin`,B),R=w0(U,`/-/${Q}/diff`,B),O=w0(U,`/-/${Q}/changesets`,B),[T,A]=Y1.useState([]),[M,w]=Y1.useState(null),P=(v,h,u)=>{if(A((b)=>[{ok:v,text:h,at:new Date().toISOString(),n:++EJ,...u?.length?{acts:u}:{}},...b].slice(0,8)),!v)Q2(h,"error")},y=async(v,h,u)=>{w(v);try{let b=await T0(U,`/-/${Q}/${h}`,u);if(!b.ok){X(b);let E=o0(await W3(b));return P(!1,`${v}: ${E.text}`,E.acts),null}return await b.json()}catch(b){return P(!1,`${v}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{w(null),Y((b)=>b+1)}},S=W.state==="ok"&&W.data.origin?UH(W.data.origin):null,f=R.state==="ok"?R.data.changes.length:null,D=O.state==="ok"?Jy(O.data.changesets).sort((v,h)=>v.createdAt.localeCompare(h.createdAt)):[];return{origin:W,diff:R,sets:O,there:S,changes:f,waiting:D,log:T,busy:M,say:P,send:y,push:async()=>{let v=await y("Push","origin/push",{method:"POST"});if(!v)return;if(v.pushed.length===0){P(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of v.pushed){let u=h.receipts??[],b=u.filter(($1)=>$1.status==="replayed").length,E=u.filter(($1)=>$1.status==="confirmed").length,m=u.filter(($1)=>$1.status==="failed").length,a=h.outcome==="applied"&&m===0;if(h.outcome==="refused"){P(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map(($1)=>o0($1).text).join("; ")}`:""}.`);continue}let J1=[`${b} of ${l0(u.length,"change")} replayed there`,...E?[`${E} performed at the vendor by the remote`]:[],...m?[`${m} failed`]:[]];P(a,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${S??"the remote"}: ${J1.join("; ")}${h.refusal?.length?` (${h.refusal.map(($1)=>o0($1).text).join("; ")})`:""}.`)}},pull:async()=>{let v=await y("Pull","origin/pull",{method:"POST"});if(!v)return;let h=Object.entries(v.appended).filter(([,b])=>b>0),u=v.rebased.flatMap((b)=>b.conflicts.map((E)=>`${g1(b.twin)} ${E.subject.type}:${E.subject.id} ${E.field}`));P(u.length===0,`Pulled from ${S??"the remote"}: ${h.length?h.map(([b,E])=>`${l0(E,"entry")} at ${g1(b)}`).join(", "):"nothing new"}${u.length?`; conflicts at ${u.join(", ")}`:""}.`)}}}function Ry({name:Q,token:U,canWrite:Z,tick:X,refused:H}){let{origin:Y,there:B,changes:W,log:R,busy:O,say:T,send:A,push:M,pull:w}=LO(Q,U,X,H),[P,y]=Y1.useState(""),[S,f]=Y1.useState(""),[D,N]=Y1.useState(!1),V=async(h)=>{h.preventDefault();let u=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:P.trim(),token:S.trim()})});if(u){let b=Object.values(u.appended??{}).reduce((E,m)=>E+m,0);T(!0,`The remote is ${UH(u.origin)}: its history came in (${l0(b,"entry")}).`),f(""),N(!1)}},v=!Z?"This session reads the World; it changes nothing":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"block remote",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{children:"Origin"},void 0,!1,void 0,this),Z?F.jsxDEV("button",{type:"button",onClick:()=>{y(B??""),N(!D)},"aria-expanded":D,children:B?"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"?B?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:B},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(M0,{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(C2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),D?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void V(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:P,onChange:(h)=>y(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:S,onChange:(h)=>f(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:O!==null,children:O==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>N(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(j6,{log:R,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Oy({name:Q,token:U,canWrite:Z,refused:X}){let[H,Y]=Y1.useState(0),B=w0(U,`/-/${Q}/twins`,H),W=w0(U,`/-/${Q}/links`,H),R=w0(U,`/-/${Q}/requests?hours=24`,H),[O,T]=Y1.useState({}),[A,M]=Y1.useState(null),[w,P]=Y1.useState(""),[y,S]=Y1.useState(!1),[f,D]=Y1.useState([]),N=(E,m,a)=>{if(D((J1)=>[{ok:E,text:m,at:new Date().toISOString(),n:++EJ,...a?.length?{acts:a}:{}},...J1].slice(0,6)),!E)Q2(m,"error")},V=W.state==="ok"?Object.keys(W.data.links).sort():[];Y1.useEffect(()=>{let E=!0;return Promise.all(V.map(async(m)=>{let a=await T0(U,`/-/${Q}/twins/${m}/credential`).catch(()=>null),J1=a?.ok?await a.json():null;return[m,J1?.credential??null]})).then((m)=>{if(E)T(Object.fromEntries(m))}),()=>{E=!1}},[Q,U,V.join(","),H]);let v=async(E)=>{if(E.preventDefault(),!A||!w)return;S(!0);let m=await T0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:w,headers:{"content-type":"text/plain"}}).catch(()=>null);if(S(!1),!m){N(!1,`Seal ${A.vendor}: ${Y0} did not answer`);return}if(!m.ok){X(m);let J1=o0(await W3(m));N(!1,`Seal ${g1(A.vendor)}: ${J1.text}`,J1.acts);return}let a=await m.json().catch(()=>({}));N(!0,`Sealed a credential for ${g1(A.vendor)}${a.fingerprint?` (${a.fingerprint})`:""}: it opens for ${a.boundTo??A.to} only, and is never shown again.`),P(""),M(null),Y((J1)=>J1+1)},h=async(E)=>{if(!await D4({title:`Remove the link ${E}?`,body:`Requests to ${g8}/${Q}/${E}/… stop being forwarded to ${W.state==="ok"?W.data.links[E]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let m=await T0(U,`/-/${Q}/links/${E}`,{method:"DELETE"}).catch(()=>null);if(!m?.ok){if(m)X(m);N(!1,`Remove ${E}: ${m?await E5(m):"the World did not answer"}`);return}N(!0,`Removed the link ${E}.`),Y((a)=>a+1)},u=(E)=>E?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge rooted",children:"sealed"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[E.fingerprint?F.jsxDEV("code",{children:E.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(M0,{iso:E.placedAt},void 0,!1,void 0,this),E.sealedBy?` · by ${E.sealedBy==="vault"?"the vault":"the host's key"}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this),b=B.state==="ok"?B.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(j6,{log:f,name:Q},void 0,!1,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"creds-head",children:[F.jsxDEV("div",{className:"block-head",children:F.jsxDEV("h3",{id:"creds-head",children:"Vendors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(C2,{load:B,what:"the vendors"},void 0,!1,void 0,this),B.state==="ok"?F.jsxDEV("table",{className:"dense","aria-label":"Credentials by vendor",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Bound to"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:b.map((E)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:E.twin},void 0,!1,void 0,this),g1(E.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u(E.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.credential?.boundTo?F.jsxDEV("code",{children:E.credential.boundTo},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.root?.url?F.jsxDEV("code",{children:E.root.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"none: a stand-in"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!E.root?.url,title:E.root?.url?`Seal ${g1(E.twin)}'s real credential for ${E.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{P(""),M({vendor:E.twin,to:E.root.url})},children:E.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},E.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B.state==="ok"&&b.every((E)=>!E.root?.url)?F.jsxDEV("p",{className:"mode pad",children:"No vendor here has a real service behind it, so none holds a credential. Connect one in Settings › Real services; its credential is sealed here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"links-head",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{id:"links-head",children:"Links"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"a vendor with no twin, forwarded with its sealed credential"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(C2,{load:W,what:"the links"},void 0,!1,void 0,this),W.state==="ok"&&V.length===0?F.jsxDEV("p",{className:"mode pad",children:["No links. A link forwards requests for a vendor with no twin here, at ",F.jsxDEV("code",{children:[g8,"/",Q,"/<link>/…"]},void 0,!0,void 0,this),", to that vendor's real API with the credential sealed for it."]},void 0,!0,void 0,this):null,V.length?F.jsxDEV("table",{className:"dense","aria-label":"Links",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Link"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Origin"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:"Requests, 24h"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:V.map((E)=>{let m=W.state==="ok"?W.data.links[E].origin:"",a=R.state==="ok"?R.data.twins.find((J1)=>J1.twin===E):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:E},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:a?F.jsxDEV("span",{title:Object.entries(a.byStatus).map(([J1,$1])=>`${J1}: ${$1}`).join(" · "),children:a.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:[u(O[E]??null),O[E]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:O[E].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{P(""),M({vendor:E,to:m})},children:O[E]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(E),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},E,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(T5,{open:Boolean(A),onClose:()=>{if(!y)M(null)},title:`Seal ${A?g1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>M(null),disabled:y,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:y||!w,children:y?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(E)=>void v(E),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:w,onChange:(E)=>P(E.target.value),autoComplete:"off",required:!0,autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Iy({name:Q,token:U,admin:Z,canWrite:X,refused:H,onRemoved:Y,only:B}){let W=(i)=>!B||B===i,[R,O]=Y1.useState(0),T=w0(U,`/-/${Q}/twins`,R),A=w0(U,`/-/${Q}/checks`,R),[M,w]=Y1.useState(0),P=w0(U,`/-/${Q}/clock`,M),[y,S]=Y1.useState([]),[f,D]=Y1.useState(null),[N,V]=Y1.useState(null),[v,h]=Y1.useState(""),[u,b]=Y1.useState("gated"),[E,m]=Y1.useState(!1),a=(i,o,k)=>{if(S((g)=>[{ok:i,text:o,at:new Date().toISOString(),n:++EJ,...k?.length?{acts:k}:{}},...g].slice(0,6)),!i)Q2(o,"error")},J1=async(i,o,k)=>{let g=await T0(U,o,k).catch(()=>null);if(!g)return a(!1,`${i}: the World did not answer`),!1;if(!g.ok){H(g);let q1=o0(await W3(g));return a(!1,`${i}: ${q1.text}`,q1.acts),!1}return a(!0,`${i}: done.`),O((q1)=>q1+1),!0},$1=async(i)=>{if(i.preventDefault(),!N)return;m(!0);let o=N.root??{},k=await J1(v.trim()?`Connect ${g1(N.twin)} to ${v.trim()}`:`Disconnect ${g1(N.twin)}`,`/-/${Q}/twins/${N.twin}/root`,{method:"PUT",body:JSON.stringify(v.trim()?{...o,url:v.trim(),deploy:u}:null)});if(m(!1),k)V(null)},x=async()=>{if(!await D4({title:`Rotate the tokens of ${Q}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let i=await T0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(i.ok)D(await i.json()),a(!0,"Rotated: the new tokens are shown once, below.");else a(!1,`Rotate: ${await E5(i)}`)},p=async()=>{if(!await D4({title:`Remove ${Q}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:Q}))return;let i=await T0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(i instanceof Error){a(!1,`Remove: the host did not answer (${i.message})`);return}if(i.ok)Y();else a(!1,`Remove: ${await E5(i)}`)},c=T.state==="ok"?T.data.twins:[],s={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(j6,{log:y,name:Q},void 0,!1,void 0,this),W("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),X?F.jsxDEV(Ty,{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,W("services")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Real services"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:[c.some((i)=>i.root?.url)?null:"Every vendor here is a stand-in. ","Connect a vendor to its real service to read the real state into this World; its real credential is sealed in the Vault, and an approved changeset deploys there by its policy."]},void 0,!0,void 0,this),F.jsxDEV(C2,{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),X?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:c.map((i)=>{let o=i.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:i.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/${i.twin}`,title:`Its log and stored state · ${i.position??0} entries`,onClick:(k)=>{k.preventDefault(),z0([...Q.split("/"),i.twin])},children:g1(i.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:o?.url?F.jsxDEV("code",{children:o.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:o?.url?s[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:i.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",i.refresh.failed.count??1,": ",i.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?lK(i.refresh?.observedAt??i.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(o?.url??""),b(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),V(i)},children:o?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!o?.url,title:o?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void D4({title:`Read ${g1(i.twin)} now?`,body:`The real ${g1(i.twin)}'s current state is read into this World. Nothing is written to ${g1(i.twin)}.`,action:"Read from it"}).then((k)=>{if(k)J1(`Read from ${g1(i.twin)}`,`/-/${Q}/twins/${i.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},i.twin,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,W("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(Qy,{name:Q,token:U,clock:P,canWrite:X,onChanged:()=>w((i)=>i+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W("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(C2,{load:A,what:"the checks"},void 0,!1,void 0,this),A.state==="ok"?A.data.checks.length===0?F.jsxDEV("p",{className:"mode",children:"No checks: every change is performed as it comes."},void 0,!1,void 0,this):F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Checks",children:F.jsxDEV("tbody",{children:A.data.checks.map((i)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)},i,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,Z&&!B?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),f?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:f.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:f.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void 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 p(),children:"Remove world"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"Deletes this World and everything in it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(T5,{open:Boolean(N),onClose:()=>{if(!E)V(null)},title:`Connect ${N?g1(N.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(null),disabled:E,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:E,children:E?"Saving…":v.trim()?"Connect":"Disconnect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"connect-root",className:"stack",onSubmit:(i)=>void $1(i),children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real service's API address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"rootUrl",value:v,onChange:(i)=>h(i.target.value),placeholder:"https://api.openai.com",autoFocus:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Empty disconnects it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"rootDeploy",value:u,onChange:(i)=>b(i.target.value==="auto"?"auto":i.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((i)=>F.jsxDEV("option",{value:i,children:s[i]},i,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function AO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(gV,{},void 0,!1,void 0,this),F.jsxDEV(EA,{},void 0,!1,void 0,this),F.jsxDEV(uA,{},void 0,!1,void 0,this),F.jsxDEV(bA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var TO=b0(T8(),1);Xq();MO.createRoot(p8).render(TO.jsxDEV(AO,{},void 0,!1,void 0,this));
|