PageSourceSearch

https://easy-read-graphics.lovable.app/assets/index-BdbSanLs.js

js easy-read-graphics.lovable.app collected 2026-10-03 03:29:38 UTC 487,015 bytes, 115 lines download raw bytes

vendor: 5,694 bytes, lines 1-9
1var ih=e=>{throw TypeError(e)};var uu=(e,t,n)=>t.has(e)||ih("Cannot "+n);var B=(e,t,n)=>(uu(e,t,"read from private field"),n?n.call(e):t.get(e)),fe=(e,t,n)=>t.has(e)?ih("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),se=(e,t,n,r)=>(uu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fe=(e,t,n)=>(uu(e,t,"access private method"),n);var Ns=(e,t,n,r)=>({set _(o){se(e,t,o,n)},get _(){return B(e,t,r)}});function b1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Sd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var og={exports:{}},ml={},ig={exports:{}},ae={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var fs=Symbol.for("react.element"),k1=Symbol.for("react.portal"),_1=Symbol.for("react.fragment"),N1=Symbol.for("react.strict_mode"),P1=Symbol.for("react.profiler"),T1=Symbol.for("react.provider"),M1=Symbol.for("react.context"),R1=Symbol.for("react.forward_ref"),A1=Symbol.for("react.suspense"),I1=Symbol.for("react.memo"),O1=Symbol.for("react.lazy"),sh=Symbol.iterator;function L1(e){return e===null||typeof e!="object"?null:(e=sh&&e[sh]||e["@@iterator"],typeof e=="function"?e:null)}var sg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ag=Object.assign,lg={};function Ko(e,t,n){this.props=e,this.context=t,this.refs=lg,this.updater=n||sg}Ko.prototype.isReactComponent={};Ko.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ko.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ug(){}ug.prototype=Ko.prototype;function Cd(e,t,n){this.props=e,this.context=t,this.refs=lg,this.updater=n||sg}var bd=Cd.prototype=new ug;bd.constructor=Cd;ag(bd,Ko.prototype);bd.isPureReactComponent=!0;var ah=Array.isArray,cg=Object.prototype.hasOwnProperty,kd={current:null},dg={key:!0,ref:!0,__self:!0,__source:!0};function fg(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)cg.call(t,r)&&!dg.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:fs,type:e,key:i,ref:s,props:o,_owner:kd.current}}function $1(e,t){return{$$typeof:fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _d(e){return typeof e=="object"&&e!==null&&e.$$typeof===fs}function D1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var lh=/\/+/g;function cu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?D1(""+e.key):t.toString(36)}function ia(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fs:case k1:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+cu(s,0):r,ah(o)?(n="",e!=null&&(n=e.replace(lh,"$&/")+"/"),ia(o,t,n,"",function(u){return u})):o!=null&&(_d(o)&&(o=$1(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(lh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",ah(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+cu(i,a);s+=ia(i,t,n,l,o)}else if(l=L1(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+cu(i,a++),s+=ia(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ps(e,t,n){if(e==null)return e;var r=[],o=0;return ia(e,r,"","",function(i){return t.call(n,i,o++)}),r}function z1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},sa={transition:null},j1={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:sa,ReactCurrentOwner:kd};function hg(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,333 bytes, lines 9-25
9ae.Children={map:Ps,forEach:function(e,t,n){Ps(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ps(e,function(){t++}),t},toArray:function(e){return Ps(e,function(t){return t})||[]},only:function(e){if(!_d(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=Ko;ae.Fragment=_1;ae.Profiler=P1;ae.PureComponent=Cd;ae.StrictMode=N1;ae.Suspense=A1;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j1;ae.act=hg;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ag({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=kd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)cg.call(t,l)&&!dg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:fs,type:e.type,key:o,ref:i,props:r,_owner:s}};ae.createContext=function(e){return e={$$typeof:M1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:T1,_context:e},e.Consumer=e};ae.createElement=fg;ae.createFactory=function(e){var t=fg.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:R1,render:e}};ae.isValidElement=_d;ae.lazy=function(e){return{$$typeof:O1,_payload:{_status:-1,_result:e},_init:z1}};ae.memo=function(e,t){return{$$typeof:I1,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=sa.transition;sa.transition={};try{e()}finally{sa.transition=t}};ae.unstable_act=hg;ae.useCallback=function(e,t){return Ge.current.useCallback(e,t)};ae.useContext=function(e){return Ge.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};ae.useEffect=function(e,t){return Ge.current.useEffect(e,t)};ae.useId=function(){return Ge.current.useId()};ae.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return Ge.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};ae.useRef=function(e){return Ge.current.useRef(e)};ae.useState=function(e){return Ge.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return Ge.current.useTransition()};ae.version="18.3.1";ig.exports=ae;var E=ig.exports;const W=Sd(E),F1=b1({__proto__:null,default:W},[E]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var B1=E,H1=Symbol.for("react.element"),V1=Symbol.for("react.fragment"),U1=Object.prototype.hasOwnProperty,W1=B1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y1={key:!0,ref:!0,__self:!0,__source:!0};function pg(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)U1.call(t,r)&&!Y1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:H1,type:e,key:i,ref:s,props:o,_owner:W1.current}}ml.Fragment=V1;ml.jsx=pg;ml.jsxs=pg;og.exports=ml;var _=og.exports,mg={exports:{}},yt={},gg={exports:{}},yg={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(N,T){var O=N.length;N.push(T);e:for(;0<O;){var $=O-1>>>1,F=N[$];if(0<o(F,T))N[$]=T,N[O]=F,O=$;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var T=N[0],O=N.pop();if(O!==T){N[0]=O;e:for(var $=0,F=N.length,H=F>>>1;$<H;){var U=2*($+1)-1,Q=N[U],Y=U+1,G=N[Y];
vendor: 10,287 bytes, lines 25-34
25if(0>o(Q,O))Y<F&&0>o(G,Q)?(N[$]=G,N[Y]=O,$=Y):(N[$]=Q,N[U]=O,$=U);else if(Y<F&&0>o(G,O))N[$]=G,N[Y]=O,$=Y;else break e}}return T}function o(N,T){var O=N.sortIndex-T.sortIndex;return O!==0?O:N.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,f=null,c=3,h=!1,y=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=N)r(u),T.sortIndex=T.expirationTime,t(l,T);else break;T=n(u)}}function x(N){if(g=!1,p(N),!y)if(n(l)!==null)y=!0,M(S);else{var T=n(u);T!==null&&A(x,T.startTime-N)}}function S(N,T){y=!1,g&&(g=!1,m(P),P=-1),h=!0;var O=c;try{for(p(T),f=n(l);f!==null&&(!(f.expirationTime>T)||N&&!D());){var $=f.callback;if(typeof $=="function"){f.callback=null,c=f.priorityLevel;var F=$(f.expirationTime<=T);T=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(l)&&r(l),p(T)}else r(l);f=n(l)}if(f!==null)var H=!0;else{var U=n(u);U!==null&&A(x,U.startTime-T),H=!1}return H}finally{f=null,c=O,h=!1}}var b=!1,k=null,P=-1,I=5,z=-1;function D(){return!(e.unstable_now()-z<I)}function L(){if(k!==null){var N=e.unstable_now();z=N;var T=!0;try{T=k(!0,N)}finally{T?j():(b=!1,k=null)}}else b=!1}var j;if(typeof v=="function")j=function(){v(L)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,R=C.port2;C.port1.onmessage=L,j=function(){R.postMessage(null)}}else j=function(){w(L,0)};function M(N){k=N,b||(b=!0,j())}function A(N,T){P=w(function(){N(e.unstable_now())},T)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,M(S))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return c},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(c){case 1:case 2:case 3:var T=3;break;default:T=c}var O=c;c=T;try{return N()}finally{c=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,T){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var O=c;c=N;try{return T()}finally{c=O}},e.unstable_scheduleCallback=function(N,T,O){var $=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?$+O:$):O=$,N){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=O+F,N={id:d++,callback:T,priorityLevel:N,startTime:O,expirationTime:F,sortIndex:-1},O>$?(N.sortIndex=O,t(u,N),n(l)===null&&N===n(u)&&(g?(m(P),P=-1):g=!0,A(x,O-$))):(N.sortIndex=F,t(l,N),y||h||(y=!0,M(S))),N},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(N){var T=c;return function(){var O=c;c=T;try{return N.apply(this,arguments)}finally{c=O}}}})(yg);gg.exports=yg;var X1=gg.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Q1=E,mt=X1;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var vg=new Set,Oi={};function Vr(e,t){Ao(e,t),Ao(e+"Capture",t)}function Ao(e,t){for(Oi[e]=t,e=0;e<t.length;e++)vg.add(t[e])}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ju=Object.prototype.hasOwnProperty,K1=/^[: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]*$/,uh={},ch={};function G1(e){return Ju.call(ch,e)?!0:Ju.call(uh,e)?!1:K1.test(e)?ch[e]=!0:(uh[e]=!0,!1)}function q1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Z1(e,t,n,r){if(t===null||typeof t>"u"||q1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){je[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Nd=/[\-:]([a-z])/g;function Pd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Nd,Pd);je[t]=new qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Nd,Pd);je[t]=new qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Nd,Pd);je[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Td(e,t,n,r){var o=je.hasOwnProperty(t)?je[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Z1(t,n,o,r)&&(n=null),r||o===null?G1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tn=Q1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ts=Symbol.for("react.element"),qr=Symbol.for("react.portal"),Zr=Symbol.for("react.fragment"),Md=Symbol.for("react.strict_mode"),ec=Symbol.for("react.profiler"),wg=Symbol.for("react.provider"),xg=Symbol.for("react.context"),Rd=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),Ad=Symbol.for("react.memo"),zn=Symbol.for("react.lazy"),Eg=Symbol.for("react.offscreen"),dh=Symbol.iterator;function oi(e){return e===null||typeof e!="object"?null:(e=dh&&e[dh]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,du;function gi(e){if(du===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);du=t&&t[1]||""}return`
34`+du+e}var fu=!1;function hu(e,t){if(!e||fu)return"";fu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 16,752 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35`),i=r.stack.split(`
36`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
37`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gi(e):""}function J1(e){switch(e.tag){case 5:return gi(e.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 2:case 15:return e=hu(e.type,!1),e;case 11:return e=hu(e.type.render,!1),e;case 1:return e=hu(e.type,!0),e;default:return""}}function rc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zr:return"Fragment";case qr:return"Portal";case ec:return"Profiler";case Md:return"StrictMode";case tc:return"Suspense";case nc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xg:return(e.displayName||"Context")+".Consumer";case wg:return(e._context.displayName||"Context")+".Provider";case Rd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ad:return t=e.displayName||null,t!==null?t:rc(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return rc(e(t))}catch{}}return null}function eE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rc(t);case 8:return t===Md?"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 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tE(e){var t=Sg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ms(e){e._valueTracker||(e._valueTracker=tE(e))}function Cg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function oc(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bg(e,t){t=t.checked,t!=null&&Td(e,"checked",t,!1)}function ic(e,t){bg(e,t);var n=sr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sc(e,t.type,n):t.hasOwnProperty("defaultValue")&&sc(e,t.type,sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sc(e,t,n){(t!=="number"||ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yi=Array.isArray;function fo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ac(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ph(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(yi(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sr(n)}}function kg(e,t){var n=sr(t.value),r=sr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _g(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_g(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rs,Ng=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Rs=Rs||document.createElement("div"),Rs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Li(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nE=["Webkit","ms","Moz","O"];Object.keys(Si).forEach(function(e){nE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Si[t]=Si[e]})});function Pg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Si.hasOwnProperty(e)&&Si[e]?(""+t).trim():t+"px"}function Tg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Pg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var rE=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uc(e,t){if(t){if(rE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function cc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dc=null;function Id(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fc=null,ho=null,po=null;function gh(e){if(e=ms(e)){if(typeof fc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=xl(t),fc(e.stateNode,e.type,t))}}function Mg(e){ho?po?po.push(e):po=[e]:ho=e}function Rg(){if(ho){var e=ho,t=po;if(po=ho=null,gh(e),t)for(e=0;e<t.length;e++)gh(t[e])}}function Ag(e,t){return e(t)}function Ig(){}var pu=!1;function Og(e,t,n){if(pu)return e(t,n);pu=!0;try{return Ag(e,t,n)}finally{pu=!1,(ho!==null||po!==null)&&(Ig(),Rg())}}function $i(e,t){var n=e.stateNode;if(n===null)return null;var r=xl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var hc=!1;if(Sn)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){hc=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{hc=!1}function oE(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ci=!1,_a=null,Na=!1,pc=null,iE={onError:function(e){Ci=!0,_a=e}};function sE(e,t,n,r,o,i,s,a,l){Ci=!1,_a=null,oE.apply(iE,arguments)}function aE(e,t,n,r,o,i,s,a,l){if(sE.apply(this,arguments),Ci){if(Ci){var u=_a;Ci=!1,_a=null}else throw Error(V(198));Na||(Na=!0,pc=u)}}function Ur(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Lg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function yh(e){if(Ur(e)!==e)throw Error(V(188))}function lE(e){var t=e.alternate;if(!t){if(t=Ur(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return yh(o),e;if(i===r)return yh(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(V(189))}}if(n.alternate!==r)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function $g(e){return e=lE(e),e!==null?Dg(e):null}function Dg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Dg(e);if(t!==null)return t;e=e.sibling}return null}var zg=mt.unstable_scheduleCallback,vh=mt.unstable_cancelCallback,uE=mt.unstable_shouldYield,cE=mt.unstable_requestPaint,Te=mt.unstable_now,dE=mt.unstable_getCurrentPriorityLevel,Od=mt.unstable_ImmediatePriority,jg=mt.unstable_UserBlockingPriority,Pa=mt.unstable_NormalPriority,fE=mt.unstable_LowPriority,Fg=mt.unstable_IdlePriority,gl=null,on=null;function hE(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(gl,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:gE,pE=Math.log,mE=Math.LN2;function gE(e){return e>>>=0,e===0?32:31-(pE(e)/mE|0)|0}var As=64,Is=4194304;function vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ta(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=vi(a):(i&=s,i!==0&&(r=vi(i)))}else s=n&~o,s!==0?r=vi(s):i!==0&&(r=vi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jt(t),o=1<<n,r|=e[n],t&=~o;return r}function yE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-jt(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=yE(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function mc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Bg(){var e=As;return As<<=1,!(As&4194240)&&(As=64),e}function mu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function wE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-jt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Ld(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var he=0;function Hg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Vg,$d,Ug,Wg,Yg,gc=!1,Os=[],qn=null,Zn=null,Jn=null,Di=new Map,zi=new Map,Fn=[],xE="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 submit".split(" ");function wh(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zi.delete(t.pointerId)}}function si(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=ms(t),t!==null&&$d(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function EE(e,t,n,r,o){switch(t){case"focusin":return qn=si(qn,e,t,n,r,o),!0;case"dragenter":return Zn=si(Zn,e,t,n,r,o),!0;case"mouseover":return Jn=si(Jn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Di.set(i,si(Di.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,zi.set(i,si(zi.get(i)||null,e,t,n,r,o)),!0}return!1}function Xg(e){var t=xr(e.target);if(t!==null){var n=Ur(t);if(n!==null){if(t=n.tag,t===13){if(t=Lg(n),t!==null){e.blockedOn=t,Yg(e.priority,function(){Ug(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function aa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dc=r,n.target.dispatchEvent(r),dc=null}else return t=ms(n),t!==null&&$d(t),e.blockedOn=n,!1;t.shift()}return!0}function xh(e,t,n){aa(e)&&n.delete(t)}function SE(){gc=!1,qn!==null&&aa(qn)&&(qn=null),Zn!==null&&aa(Zn)&&(Zn=null),Jn!==null&&aa(Jn)&&(Jn=null),Di.forEach(xh),zi.forEac
vendor: 8,831 bytes, line 37
37h(xh)}function ai(e,t){e.blockedOn===t&&(e.blockedOn=null,gc||(gc=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,SE)))}function ji(e){function t(o){return ai(o,e)}if(0<Os.length){ai(Os[0],e);for(var n=1;n<Os.length;n++){var r=Os[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qn!==null&&ai(qn,e),Zn!==null&&ai(Zn,e),Jn!==null&&ai(Jn,e),Di.forEach(t),zi.forEach(t),n=0;n<Fn.length;n++)r=Fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)Xg(n),n.blockedOn===null&&Fn.shift()}var mo=Tn.ReactCurrentBatchConfig,Ma=!0;function CE(e,t,n,r){var o=he,i=mo.transition;mo.transition=null;try{he=1,Dd(e,t,n,r)}finally{he=o,mo.transition=i}}function bE(e,t,n,r){var o=he,i=mo.transition;mo.transition=null;try{he=4,Dd(e,t,n,r)}finally{he=o,mo.transition=i}}function Dd(e,t,n,r){if(Ma){var o=yc(e,t,n,r);if(o===null)ku(e,t,r,Ra,n),wh(e,r);else if(EE(o,e,t,n,r))r.stopPropagation();else if(wh(e,r),t&4&&-1<xE.indexOf(e)){for(;o!==null;){var i=ms(o);if(i!==null&&Vg(i),i=yc(e,t,n,r),i===null&&ku(e,t,r,Ra,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else ku(e,t,r,null,n)}}var Ra=null;function yc(e,t,n,r){if(Ra=null,e=Id(r),e=xr(e),e!==null)if(t=Ur(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Lg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ra=e,null}function Qg(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(dE()){case Od:return 1;case jg:return 4;case Pa:case fE:return 16;case Fg:return 536870912;default:return 16}default:return 16}}var Qn=null,zd=null,la=null;function Kg(){if(la)return la;var e,t=zd,n=t.length,r,o="value"in Qn?Qn.value:Qn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return la=o.slice(e,1<r?1-r:void 0)}function ua(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ls(){return!0}function Eh(){return!1}function vt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ls:Eh,this.isPropagationStopped=Eh,this}return be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ls)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),t}var Go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=vt(Go),ps=be({},Go,{view:0,detail:0}),kE=vt(ps),gu,yu,li,yl=be({},ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==li&&(li&&e.type==="mousemove"?(gu=e.screenX-li.screenX,yu=e.screenY-li.screenY):yu=gu=0,li=e),gu)},movementY:function(e){return"movementY"in e?e.movementY:yu}}),Sh=vt(yl),_E=be({},yl,{dataTransfer:0}),NE=vt(_E),PE=be({},ps,{relatedTarget:0}),vu=vt(PE),TE=be({},Go,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=vt(TE),RE=be({},Go,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AE=vt(RE),IE=be({},Go,{data:0}),Ch=vt(IE),OE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LE={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"},$E={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$E[e])?!!t[e]:!1}function Fd(){return DE}var zE=be({},ps,{key:function(e){if(e.key){var t=OE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fd,charCode:function(e){return e.type==="keypress"?ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jE=vt(zE),FE=be({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bh=vt(FE),BE=be({},ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fd}),HE=vt(BE),VE=be({},Go,{propertyName:0,elapsedTime:0,pseudoElement:0}),UE=vt(VE),WE=be({},yl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),YE=vt(WE),XE=[9,13,27,32],Bd=Sn&&"CompositionEvent"in window,bi=null;Sn&&"documentMode"in document&&(bi=document.documentMode);var QE=Sn&&"TextEvent"in window&&!bi,Gg=Sn&&(!Bd||bi&&8<bi&&11>=bi),kh=" ",_h=!1;function qg(e,t){switch(e){case"keyup":return XE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function KE(e,t){switch(e){case"compositionend":return Zg(t);case"keypress":return t.which!==32?null:(_h=!0,kh);case"textInput":return e=t.data,e===kh&&_h?null:e;default:return null}}function GE(e,t){if(Jr)return e==="compositionend"||!Bd&&qg(e,t)?(e=Kg(),la=zd=Qn=null,Jr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Gg&&t.locale!=="ko"?null:t.data;default:return null}}var qE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qE[e.type]:t==="textarea"}function Jg(e,t,n,r){Mg(r),t=Aa(t,"onChange"),0<t.length&&(n=new jd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ki=null,Fi=null;function ZE(e){c0(e,0)}function vl(e){var t=no(e);if(Cg(t))return e}function JE(e,t){if(e==="change")return t}var e0=!1;if(Sn){var wu;if(Sn){var xu="oninput"in document;if(!xu){var Ph=document.createElement("div");Ph.setAttribute("oninput","return;"),xu=typeof Ph.oninput=="function"}wu=xu}else wu=!1;e0=wu&&(!document.documentMode||9<document.documentMode)}function Th(){ki&&(ki.detachEvent("onpropertychange",t0),Fi=ki=null)}function t0(e){if(e.propertyName==="value"&&vl(Fi)){var t=[];Jg(t,Fi,e,Id(e)),Og(ZE,t)}}
vendor: 5,253 bytes, line 37
37function eS(e,t,n){e==="focusin"?(Th(),ki=t,Fi=n,ki.attachEvent("onpropertychange",t0)):e==="focusout"&&Th()}function tS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vl(Fi)}function nS(e,t){if(e==="click")return vl(t)}function rS(e,t){if(e==="input"||e==="change")return vl(t)}function oS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:oS;function Bi(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ju.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function Mh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rh(e,t){var n=Mh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mh(n)}}function n0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?n0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function r0(){for(var e=window,t=ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ka(e.document)}return t}function Hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function iS(e){var t=r0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&n0(n.ownerDocument.documentElement,n)){if(r!==null&&Hd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Rh(n,i);var s=Rh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sS=Sn&&"documentMode"in document&&11>=document.documentMode,eo=null,vc=null,_i=null,wc=!1;function Ah(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wc||eo==null||eo!==ka(r)||(r=eo,"selectionStart"in r&&Hd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_i&&Bi(_i,r)||(_i=r,r=Aa(vc,"onSelect"),0<r.length&&(t=new jd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=eo)))}function $s(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var to={animationend:$s("Animation","AnimationEnd"),animationiteration:$s("Animation","AnimationIteration"),animationstart:$s("Animation","AnimationStart"),transitionend:$s("Transition","TransitionEnd")},Eu={},o0={};Sn&&(o0=document.createElement("div").style,"AnimationEvent"in window||(delete to.animationend.animation,delete to.animationiteration.animation,delete to.animationstart.animation),"TransitionEvent"in window||delete to.transitionend.transition);function wl(e){if(Eu[e])return Eu[e];if(!to[e])return e;var t=to[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in o0)return Eu[e]=t[n];return e}var i0=wl("animationend"),s0=wl("animationiteration"),a0=wl("animationstart"),l0=wl("transitionend"),u0=new Map,Ih="abort auxClick 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(" ");function fr(e,t){u0.set(e,t),Vr(t,[e])}for(var Su=0;Su<Ih.length;Su++){var Cu=Ih[Su],aS=Cu.toLowerCase(),lS=Cu[0].toUpperCase()+Cu.slice(1);fr(aS,"on"+lS)}fr(i0,"onAnimationEnd");fr(s0,"onAnimationIteration");fr(a0,"onAnimationStart");fr("dblclick","onDoubleClick");fr("focusin","onFocus");fr("focusout","onBlur");fr(l0,"onTransitionEnd");Ao("onMouseEnter",["mouseout","mouseover"]);Ao("onMouseLeave",["mouseout","mouseover"]);Ao("onPointerEnter",["pointerout","pointerover"]);Ao("onPointerLeave",["pointerout","pointerover"]);Vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,442 bytes, line 37
37Vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),uS=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function Oh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,aE(r,t,void 0,e),e.currentTarget=null}function c0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Oh(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Oh(o,a,u),i=l}}}if(Na)throw e=pc,Na=!1,pc=null,e}function ve(e,t){var n=t[bc];n===void 0&&(n=t[bc]=new Set);var r=e+"__bubble";n.has(r)||(d0(t,e,2,!1),n.add(r))}function bu(e,t,n){var r=0;t&&(r|=4),d0(n,e,r,t)}var Ds="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[Ds]){e[Ds]=!0,vg.forEach(function(n){n!=="selectionchange"&&(uS.has(n)||bu(n,!1,e),bu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ds]||(t[Ds]=!0,bu("selectionchange",!1,t))}}function d0(e,t,n,r){switch(Qg(t)){case 1:var o=CE;break;case 4:o=bE;break;default:o=Dd}n=o.bind(null,t,n,e),o=void 0,!hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ku(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=xr(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Og(function(){var u=i,d=Id(n),f=[];e:{var c=u0.get(e);if(c!==void 0){var h=jd,y=e;switch(e){case"keypress":if(ua(n)===0)break e;case"keydown":case"keyup":h=jE;break;case"focusin":y="focus",h=vu;break;case"focusout":y="blur",h=vu;break;case"beforeblur":case"afterblur":h=vu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Sh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=NE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=HE;break;case i0:case s0:case a0:h=ME;break;case l0:h=UE;break;case"scroll":h=kE;break;case"wheel":h=YE;break;case"copy":case"cut":case"paste":h=AE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=bh}var g=(t&4)!==0,w=!g&&e==="scroll",m=g?c!==null?c+"Capture":null:c;g=[];for(var v=u,p;v!==null;){p=v;var x=p.stateNode;if(p.tag===5&&x!==null&&(p=x,m!==null&&(x=$i(v,m),x!=null&&g.push(Vi(v,x,p)))),w)break;v=v.return}0<g.length&&(c=new h(c,y,null,n,d),f.push({event:c,listeners:g}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",c&&n!==dc&&(y=n.relatedTarget||n.fromElement)&&(xr(y)||y[Cn]))break e;if((h||c)&&(c=d.window===d?d:(c=d.ownerDocument)?c.defaultView||c.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?xr(y):null,y!==null&&(w=Ur(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(g=Sh,x="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(g=bh,x="onPointerLeave",m="onPointerEnter",v="pointer"),w=h==null?c:no(h),p=y==null?c:no(y),c=new g(x,v+"leave",h,n,d),c.target=w,c.relatedTarget=p,x=null,xr(d)===u&&(g=ne
vendor: 4,986 bytes, lines 37-38
37w g(m,v+"enter",y,n,d),g.target=p,g.relatedTarget=w,x=g),w=x,h&&y)t:{for(g=h,m=y,v=0,p=g;p;p=Kr(p))v++;for(p=0,x=m;x;x=Kr(x))p++;for(;0<v-p;)g=Kr(g),v--;for(;0<p-v;)m=Kr(m),p--;for(;v--;){if(g===m||m!==null&&g===m.alternate)break t;g=Kr(g),m=Kr(m)}g=null}else g=null;h!==null&&Lh(f,c,h,g,!1),y!==null&&w!==null&&Lh(f,w,y,g,!0)}}e:{if(c=u?no(u):window,h=c.nodeName&&c.nodeName.toLowerCase(),h==="select"||h==="input"&&c.type==="file")var S=JE;else if(Nh(c))if(e0)S=rS;else{S=tS;var b=eS}else(h=c.nodeName)&&h.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(S=nS);if(S&&(S=S(e,u))){Jg(f,S,n,d);break e}b&&b(e,c,u),e==="focusout"&&(b=c._wrapperState)&&b.controlled&&c.type==="number"&&sc(c,"number",c.value)}switch(b=u?no(u):window,e){case"focusin":(Nh(b)||b.contentEditable==="true")&&(eo=b,vc=u,_i=null);break;case"focusout":_i=vc=eo=null;break;case"mousedown":wc=!0;break;case"contextmenu":case"mouseup":case"dragend":wc=!1,Ah(f,n,d);break;case"selectionchange":if(sS)break;case"keydown":case"keyup":Ah(f,n,d)}var k;if(Bd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Jr?qg(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Gg&&n.locale!=="ko"&&(Jr||P!=="onCompositionStart"?P==="onCompositionEnd"&&Jr&&(k=Kg()):(Qn=d,zd="value"in Qn?Qn.value:Qn.textContent,Jr=!0)),b=Aa(u,P),0<b.length&&(P=new Ch(P,e,null,n,d),f.push({event:P,listeners:b}),k?P.data=k:(k=Zg(n),k!==null&&(P.data=k)))),(k=QE?KE(e,n):GE(e,n))&&(u=Aa(u,"onBeforeInput"),0<u.length&&(d=new Ch("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=k))}c0(f,t)})}function Vi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Aa(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=$i(e,n),i!=null&&r.unshift(Vi(e,i,o)),i=$i(e,t),i!=null&&r.push(Vi(e,i,o))),e=e.return}return r}function Kr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lh(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=$i(n,i),l!=null&&s.unshift(Vi(n,l,a))):o||(l=$i(n,i),l!=null&&s.push(Vi(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var cS=/\r\n?/g,dS=/\u0000|\uFFFD/g;function $h(e){return(typeof e=="string"?e:""+e).replace(cS,`
38`).replace(dS,"")}function zs(e,t,n){if(t=$h(t),$h(e)!==t&&n)throw Error(V(425))}function Ia(){}var xc=null,Ec=null;function Sc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cc=typeof setTimeout=="function"?setTimeout:void 0,fS=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,hS=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(pS)}:Cc;function pS(e){setTimeout(function(){throw e})}function _u(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ji(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ji(t)}function er(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var qo=Math.random().toString(36).slice(2),nn="__reactFiber$"+qo,Ui="__reactProps$"+qo,Cn="__reactContainer$"+qo,bc="__reactEvents$"+qo,mS="__reactListeners$"+qo,gS="__reactHandles$"+qo;function xr(e){var t=e[nn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[nn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zh(e);e!==null;){if(n=e[nn])return n;e=zh(e)}return t}e=n,n=e.parentNode}return null}function ms(e){return e=e[nn]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function no(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function xl(e){return e[Ui]||null}var kc=[],ro=-1;function hr(e){return{current:e}}function we(e){0>ro||(e.current=kc[ro],kc[ro]=null,ro--)}function ge(e,t){ro++,kc[ro]=e.current,e.current=t}var ar={},We=hr(ar),tt=hr(!1),Ir=ar;function Io(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function nt(e){return e=e.childContextTypes,e!=null}function Oa(){we(tt),we(We)}
vendor: 6,023 bytes, line 38
38function jh(e,t,n){if(We.current!==ar)throw Error(V(168));ge(We,t),ge(tt,n)}function f0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(V(108,eE(e)||"Unknown",o));return be({},n,r)}function La(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Ir=We.current,ge(We,e),ge(tt,tt.current),!0}function Fh(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=f0(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,we(tt),we(We),ge(We,e)):we(tt),ge(tt,n)}var yn=null,El=!1,Nu=!1;function h0(e){yn===null?yn=[e]:yn.push(e)}function yS(e){El=!0,h0(e)}function pr(){if(!Nu&&yn!==null){Nu=!0;var e=0,t=he;try{var n=yn;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yn=null,El=!1}catch(o){throw yn!==null&&(yn=yn.slice(e+1)),zg(Od,pr),o}finally{he=t,Nu=!1}}return null}var oo=[],io=0,$a=null,Da=0,Ct=[],bt=0,Or=null,vn=1,wn="";function yr(e,t){oo[io++]=Da,oo[io++]=$a,$a=e,Da=t}function p0(e,t,n){Ct[bt++]=vn,Ct[bt++]=wn,Ct[bt++]=Or,Or=e;var r=vn;e=wn;var o=32-jt(r)-1;r&=~(1<<o),n+=1;var i=32-jt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,vn=1<<32-jt(t)+o|n<<o|r,wn=i+e}else vn=1<<i|n<<o|r,wn=e}function Vd(e){e.return!==null&&(yr(e,1),p0(e,1,0))}function Ud(e){for(;e===$a;)$a=oo[--io],oo[io]=null,Da=oo[--io],oo[io]=null;for(;e===Or;)Or=Ct[--bt],Ct[bt]=null,wn=Ct[--bt],Ct[bt]=null,vn=Ct[--bt],Ct[bt]=null}var ht=null,ft=null,xe=!1,$t=null;function m0(e,t){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Bh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ht=e,ft=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Or!==null?{id:vn,overflow:wn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ht=e,ft=null,!0):!1;default:return!1}}function _c(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nc(e){if(xe){var t=ft;if(t){var n=t;if(!Bh(e,t)){if(_c(e))throw Error(V(418));t=er(n.nextSibling);var r=ht;t&&Bh(e,t)?m0(r,n):(e.flags=e.flags&-4097|2,xe=!1,ht=e)}}else{if(_c(e))throw Error(V(418));e.flags=e.flags&-4097|2,xe=!1,ht=e}}}function Hh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function js(e){if(e!==ht)return!1;if(!xe)return Hh(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Sc(e.type,e.memoizedProps)),t&&(t=ft)){if(_c(e))throw g0(),Error(V(418));for(;t;)m0(e,t),t=er(t.nextSibling)}if(Hh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ft=er(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ft=null}}else ft=ht?er(e.stateNode.nextSibling):null;return!0}function g0(){for(var e=ft;e;)e=er(e.nextSibling)}function Oo(){ft=ht=null,xe=!1}function Wd(e){$t===null?$t=[e]:$t.push(e)}var vS=Tn.ReactCurrentBatchConfig;function ui(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var r=n.stateNode}if(!r)throw Error(V(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function Fs(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vh(e){var t=e._init;return t(e._payload)}function y0(e){function t(m,v){if(e){var p=m.deletions;p===null?(m.deletions=[v],m.flags|=16):p.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function o(m,v){return m=or(m,v),m.index=0,m.sibling=null,m}function i(m,v,p){return m.index=p,e?(p=m.alternate,p!==null?(p=p.index,p<v?(m.flags|=2,v):p):(m.flags|=2,v)):(m.flags|=1048576,v)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,v,p,x){return v===null||v.tag!==6?(v=Ou(p,m.mode,x),v.return=m,v):(v=o(v,p),v.return=m,v)}function l(m,v,p,x){var S=p.type;return S===Zr?d(m,v,p.props.children,x,p.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===zn&&Vh(S)===v.type)?(x=o(v,p.props),x.ref=ui(m,v,p),x.return=m,x):(x=ga(p.type,p.key,p.props,null,m.mode,x),x.ref=ui(m,v,p),x.return=m,x)}function u(m,v,p,x){return v===null||v.tag!==4||v.stateNode.containerInfo!==p.containerInfo||v.stateNode.implementation!==p.implementation?(v=Lu(p,m.mode,x),v.return=m,v):(v=o(v,p.children||[]),v.return=m,v)}function d(m,v,p,x,S){return v===null||v.tag!==7?(v=Tr(p,m.mode,x,S),v.return=m,v):(v=o(v,p),v.return=m,v)}function f(m,v,p){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ou(""+v,m.mode,p),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ts:return p=ga(v.type,v.key,v.props,null,m.mode,p),p.ref=ui(m,null,v),p.return=m,p;case qr:return v=Lu(v,m.mode,p),v.return=m,v;case zn:var x=v._init;return f(m,x(v._payload),p)}if(yi(v)||oi(v))return v=Tr(v,m.mode,p,null),v.return=m,v;Fs(m,v)}return null}function c(m,v,p,x){var S=v!==null?v.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return S!==null?null:a(m,v,""+p,x);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ts:return p.key===S?l(m,v,p,x):null;case qr:return p.key===S?u(m,v,p,x):null;case zn:return S=p._init,c(m,v,S(p._payload),x)}if(yi(p)||oi(p))return S!==null?null:d(m,v,p,x,null);Fs(m,p)}return null}
vendor: 3,055 bytes, line 38
38function h(m,v,p,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return m=m.get(p)||null,a(v,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ts:return m=m.get(x.key===null?p:x.key)||null,l(v,m,x,S);case qr:return m=m.get(x.key===null?p:x.key)||null,u(v,m,x,S);case zn:var b=x._init;return h(m,v,p,b(x._payload),S)}if(yi(x)||oi(x))return m=m.get(p)||null,d(v,m,x,S,null);Fs(v,x)}return null}function y(m,v,p,x){for(var S=null,b=null,k=v,P=v=0,I=null;k!==null&&P<p.length;P++){k.index>P?(I=k,k=null):I=k.sibling;var z=c(m,k,p[P],x);if(z===null){k===null&&(k=I);break}e&&k&&z.alternate===null&&t(m,k),v=i(z,v,P),b===null?S=z:b.sibling=z,b=z,k=I}if(P===p.length)return n(m,k),xe&&yr(m,P),S;if(k===null){for(;P<p.length;P++)k=f(m,p[P],x),k!==null&&(v=i(k,v,P),b===null?S=k:b.sibling=k,b=k);return xe&&yr(m,P),S}for(k=r(m,k);P<p.length;P++)I=h(k,m,P,p[P],x),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?P:I.key),v=i(I,v,P),b===null?S=I:b.sibling=I,b=I);return e&&k.forEach(function(D){return t(m,D)}),xe&&yr(m,P),S}function g(m,v,p,x){var S=oi(p);if(typeof S!="function")throw Error(V(150));if(p=S.call(p),p==null)throw Error(V(151));for(var b=S=null,k=v,P=v=0,I=null,z=p.next();k!==null&&!z.done;P++,z=p.next()){k.index>P?(I=k,k=null):I=k.sibling;var D=c(m,k,z.value,x);if(D===null){k===null&&(k=I);break}e&&k&&D.alternate===null&&t(m,k),v=i(D,v,P),b===null?S=D:b.sibling=D,b=D,k=I}if(z.done)return n(m,k),xe&&yr(m,P),S;if(k===null){for(;!z.done;P++,z=p.next())z=f(m,z.value,x),z!==null&&(v=i(z,v,P),b===null?S=z:b.sibling=z,b=z);return xe&&yr(m,P),S}for(k=r(m,k);!z.done;P++,z=p.next())z=h(k,m,P,z.value,x),z!==null&&(e&&z.alternate!==null&&k.delete(z.key===null?P:z.key),v=i(z,v,P),b===null?S=z:b.sibling=z,b=z);return e&&k.forEach(function(L){return t(m,L)}),xe&&yr(m,P),S}function w(m,v,p,x){if(typeof p=="object"&&p!==null&&p.type===Zr&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ts:e:{for(var S=p.key,b=v;b!==null;){if(b.key===S){if(S=p.type,S===Zr){if(b.tag===7){n(m,b.sibling),v=o(b,p.props.children),v.return=m,m=v;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===zn&&Vh(S)===b.type){n(m,b.sibling),v=o(b,p.props),v.ref=ui(m,b,p),v.return=m,m=v;break e}n(m,b);break}else t(m,b);b=b.sibling}p.type===Zr?(v=Tr(p.props.children,m.mode,x,p.key),v.return=m,m=v):(x=ga(p.type,p.key,p.props,null,m.mode,x),x.ref=ui(m,v,p),x.return=m,m=x)}return s(m);case qr:e:{for(b=p.key;v!==null;){if(v.key===b)if(v.tag===4&&v.stateNode.containerInfo===p.containerInfo&&v.stateNode.implementation===p.implementation){n(m,v.sibling),v=o(v,p.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Lu(p,m.mode,x),v.return=m,m=v}return s(m);case zn:return b=p._init,w(m,v,b(p._payload),x)}if(yi(p))return y(m,v,p,x);if(oi(p))return g(m,v,p,x);Fs(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,v!==null&&v.tag===6?(n(m,v.sibling),v=o(v,p),v.return=m,m=v):(n(m,v),v=Ou(p,m.mode,x),v.return=m,m=v),s(m)):n(m,v)}return w}
vendor: 5,295 bytes, line 38
38var Lo=y0(!0),v0=y0(!1),za=hr(null),ja=null,so=null,Yd=null;function Xd(){Yd=so=ja=null}function Qd(e){var t=za.current;we(za),e._currentValue=t}function Pc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function go(e,t){ja=e,Yd=so=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Je=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(Yd!==e)if(e={context:e,memoizedValue:t,next:null},so===null){if(ja===null)throw Error(V(308));so=e,ja.dependencies={lanes:0,firstContext:e}}else so=so.next=e;return t}var Er=null;function Kd(e){Er===null?Er=[e]:Er.push(e)}function w0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Kd(t)):(n.next=o.next,o.next=n),t.interleaved=n,bn(e,r)}function bn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jn=!1;function Gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function x0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function En(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,bn(e,n)}return o=r.interleaved,o===null?(t.next=t,Kd(r)):(t.next=o.next,o.next=t),r.interleaved=t,bn(e,n)}function ca(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ld(e,n)}}function Uh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var o=e.updateQueue;jn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,d=u=l=null,a=i;do{var c=a.lane,h=a.eventTime;if((r&c)===c){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,g=a;switch(c=t,h=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){f=y.call(h,f,c);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,c=typeof y=="function"?y.call(h,f,c):y,c==null)break e;f=be({},f,c);break e;case 2:jn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,c=o.effects,c===null?o.effects=[a]:c.push(a))}else h={eventTime:h,lane:c,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,l=f):d=d.next=h,s|=c;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;c=a,a=c.next,c.next=null,o.lastBaseUpdate=c,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);$r|=s,e.lanes=s,e.memoizedState=f}}function Wh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(V(191,o));o.call(r)}}}var gs={},sn=hr(gs),Wi=hr(gs),Yi=hr(gs);function Sr(e){if(e===gs)throw Error(V(174));return e}function qd(e,t){switch(ge(Yi,t),ge(Wi,e),ge(sn,gs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lc(t,e)}we(sn),ge(sn,t)}function $o(){we(sn),we(Wi),we(Yi)}function E0(e){Sr(Yi.current);var t=Sr(sn.current),n=lc(t,e.type);t!==n&&(ge(Wi,e),ge(sn,n))}function Zd(e){Wi.current===e&&(we(sn),we(Wi))}var Se=hr(0);function Ba(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pu=[];function Jd(){for(var e=0;e<Pu.length;e++)Pu[e]._workInProgressVersionPrimary=null;Pu.length=0}var da=Tn.ReactCurrentDispatcher,Tu=Tn.ReactCurrentBatchConfig,Lr=0,Ce=null,Ae=null,Le=null,Ha=!1,Ni=!1,Xi=0,wS=0;function Be(){throw Error(V(321))}function ef(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}
vendor: 4,546 bytes, line 38
38function tf(e,t,n,r,o,i){if(Lr=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=e===null||e.memoizedState===null?CS:bS,e=n(r,o),Ni){i=0;do{if(Ni=!1,Xi=0,25<=i)throw Error(V(301));i+=1,Le=Ae=null,t.updateQueue=null,da.current=kS,e=n(r,o)}while(Ni)}if(da.current=Va,t=Ae!==null&&Ae.next!==null,Lr=0,Le=Ae=Ce=null,Ha=!1,t)throw Error(V(300));return e}function nf(){var e=Xi!==0;return Xi=0,e}function qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?Ce.memoizedState=Le=e:Le=Le.next=e,Le}function Pt(){if(Ae===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Le===null?Ce.memoizedState:Le.next;if(t!==null)Le=t,Ae=e;else{if(e===null)throw Error(V(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Le===null?Ce.memoizedState=Le=e:Le=Le.next=e}return Le}function Qi(e,t){return typeof t=="function"?t(e):t}function Mu(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=Ae,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var d=u.lane;if((Lr&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,Ce.lanes|=d,$r|=d}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,Bt(r,t.memoizedState)||(Je=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ce.lanes|=i,$r|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ru(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Bt(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function S0(){}function C0(e,t){var n=Ce,r=Pt(),o=t(),i=!Bt(r.memoizedState,o);if(i&&(r.memoizedState=o,Je=!0),r=r.queue,rf(_0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,Ki(9,k0.bind(null,n,r,o,t),void 0,null),$e===null)throw Error(V(349));Lr&30||b0(n,t,o)}return o}function b0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function k0(e,t,n,r){t.value=n,t.getSnapshot=r,N0(t)&&P0(e)}function _0(e,t,n){return n(function(){N0(t)&&P0(e)})}function N0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function P0(e){var t=bn(e,1);t!==null&&Ft(t,e,1,-1)}function Yh(e){var t=qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qi,lastRenderedState:e},t.queue=e,e=e.dispatch=SS.bind(null,Ce,e),[t.memoizedState,e]}function Ki(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function T0(){return Pt().memoizedState}function fa(e,t,n,r){var o=qt();Ce.flags|=e,o.memoizedState=Ki(1|t,n,void 0,r===void 0?null:r)}function Sl(e,t,n,r){var o=Pt();r=r===void 0?null:r;var i=void 0;if(Ae!==null){var s=Ae.memoizedState;if(i=s.destroy,r!==null&&ef(r,s.deps)){o.memoizedState=Ki(t,n,i,r);return}}Ce.flags|=e,o.memoizedState=Ki(1|t,n,i,r)}function Xh(e,t){return fa(8390656,8,e,t)}function rf(e,t){return Sl(2048,8,e,t)}function M0(e,t){return Sl(4,2,e,t)}function R0(e,t){return Sl(4,4,e,t)}function A0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function I0(e,t,n){return n=n!=null?n.concat([e]):null,Sl(4,4,A0.bind(null,t,e),n)}function of(){}function O0(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ef(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function L0(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ef(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}
vendor: 8,934 bytes, lines 38-40
38function $0(e,t,n){return Lr&21?(Bt(n,t)||(n=Bg(),Ce.lanes|=n,$r|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Je=!0),e.memoizedState=n)}function xS(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var r=Tu.transition;Tu.transition={};try{e(!1),t()}finally{he=n,Tu.transition=r}}function D0(){return Pt().memoizedState}function ES(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},z0(e))j0(t,n);else if(n=w0(e,t,n,r),n!==null){var o=Ke();Ft(n,e,r,o),F0(n,t,r)}}function SS(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(z0(e))j0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Bt(a,s)){var l=t.interleaved;l===null?(o.next=o,Kd(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=w0(e,t,o,r),n!==null&&(o=Ke(),Ft(n,e,r,o),F0(n,t,r))}}function z0(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function j0(e,t){Ni=Ha=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function F0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ld(e,n)}}var Va={readContext:Nt,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},CS={readContext:Nt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Xh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fa(4194308,4,A0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return fa(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ES.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:Yh,useDebugValue:of,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=Yh(!1),t=e[0];return e=xS.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,o=qt();if(xe){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),$e===null)throw Error(V(349));Lr&30||b0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Xh(_0.bind(null,r,i,e),[e]),r.flags|=2048,Ki(9,k0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=$e.identifierPrefix;if(xe){var n=wn,r=vn;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},bS={readContext:Nt,useCallback:O0,useContext:Nt,useEffect:rf,useImperativeHandle:I0,useInsertionEffect:M0,useLayoutEffect:R0,useMemo:L0,useReducer:Mu,useRef:T0,useState:function(){return Mu(Qi)},useDebugValue:of,useDeferredValue:function(e){var t=Pt();return $0(t,Ae.memoizedState,e)},useTransition:function(){var e=Mu(Qi)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:S0,useSyncExternalStore:C0,useId:D0,unstable_isNewReconciler:!1},kS={readContext:Nt,useCallback:O0,useContext:Nt,useEffect:rf,useImperativeHandle:I0,useInsertionEffect:M0,useLayoutEffect:R0,useMemo:L0,useReducer:Ru,useRef:T0,useState:function(){return Ru(Qi)},useDebugValue:of,useDeferredValue:function(e){var t=Pt();return Ae===null?t.memoizedState=e:$0(t,Ae.memoizedState,e)},useTransition:function(){var e=Ru(Qi)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:S0,useSyncExternalStore:C0,useId:D0,unstable_isNewReconciler:!1};function Rt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Tc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cl={isMounted:function(e){return(e=e._reactInternals)?Ur(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ke(),o=rr(e),i=En(r,o);i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(Ft(t,e,o,r),ca(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ke(),o=rr(e),i=En(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(Ft(t,e,o,r),ca(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ke(),r=rr(e),o=En(n,r);o.tag=2,t!=null&&(o.callback=t),t=tr(e,o,r),t!==null&&(Ft(t,e,r,n),ca(t,e,r))}};function Qh(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Bi(n,r)||!Bi(o,i):!0}function B0(e,t,n){var r=!1,o=ar,i=t.contextType;return typeof i=="object"&&i!==null?i=Nt(i):(o=nt(t)?Ir:We.current,r=t.contextTypes,i=(r=r!=null)?Io(e,o):ar),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Kh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cl.enqueueReplaceState(t,t.state,null)}function Mc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Gd(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Nt(i):(i=nt(t)?Ir:We.current,o.context=Io(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Tc(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Cl.enqueueReplaceState(o,o.state,null),Fa(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Do(e,t){try{var n="",r=t;do n+=J1(r),r=r.return;while(r);var o=n}catch(i){o=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Au(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _S=typeof WeakMap=="function"?WeakMap:Map;function H0(e,t,n){n=En(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wa||(Wa=!0,Bc=r),Rc(e,t)},n}function V0(e,t,n){n=En(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Rc(e,t),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Gh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _S;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=FS.bind(null,e,t,n),t.then(e,e))}function qh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=En(-1,1),t.tag=2,tr(n,t,1))),n.lanes|=1),e)}var NS=Tn.ReactCurrentOwner,Je=!1;function Xe(e,t,n,r){t.child=e===null?v0(t,null,n,r):Lo(t,e.child,n,r)}function Jh(e,t,n,r,o){n=n.render;var i=t.ref;return go(t,o),r=tf(e,t,n,r,i,o),n=nf(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kn(e,t,o)):(xe&&n&&Vd(t),t.flags|=1,Xe(e,t,r,o),t.child)}function ep(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!hf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,U0(e,t,i,r,o)):(e=ga(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bi,n(s,r)&&e.ref===t.ref)return kn(e,t,o)}return t.flags|=1,e=or(i,r),e.ref=t.ref,e.return=t,t.child=e}function U0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Bi(i,r)&&e.ref===t.ref)if(Je=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Je=!0);else return t.lanes=e.lanes,kn(e,t,o)}return Ac(e,t,n,r,o)}
vendor: 8,876 bytes, line 40
40function W0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(lo,ut),ut|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(lo,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(lo,ut),ut|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(lo,ut),ut|=r;return Xe(e,t,o,n),t.child}function Y0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ac(e,t,n,r,o){var i=nt(n)?Ir:We.current;return i=Io(t,i),go(t,o),n=tf(e,t,n,r,i,o),r=nf(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kn(e,t,o)):(xe&&r&&Vd(t),t.flags|=1,Xe(e,t,n,o),t.child)}function tp(e,t,n,r,o){if(nt(n)){var i=!0;La(t)}else i=!1;if(go(t,o),t.stateNode===null)ha(e,t),B0(t,n,r),Mc(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Nt(u):(u=nt(n)?Ir:We.current,u=Io(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Kh(t,s,r,u),jn=!1;var c=t.memoizedState;s.state=c,Fa(t,r,s,o),l=t.memoizedState,a!==r||c!==l||tt.current||jn?(typeof d=="function"&&(Tc(t,n,d,r),l=t.memoizedState),(a=jn||Qh(t,n,a,r,c,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,x0(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Rt(t.type,a),s.props=u,f=t.pendingProps,c=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Nt(l):(l=nt(n)?Ir:We.current,l=Io(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||c!==l)&&Kh(t,s,r,l),jn=!1,c=t.memoizedState,s.state=c,Fa(t,r,s,o);var y=t.memoizedState;a!==f||c!==y||tt.current||jn?(typeof h=="function"&&(Tc(t,n,h,r),y=t.memoizedState),(u=jn||Qh(t,n,u,r,c,y,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),r=!1)}return Ic(e,t,n,r,i,o)}function Ic(e,t,n,r,o,i){Y0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Fh(t,n,!1),kn(e,t,i);r=t.stateNode,NS.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Lo(t,e.child,null,i),t.child=Lo(t,null,a,i)):Xe(e,t,a,i),t.memoizedState=r.state,o&&Fh(t,n,!0),t.child}function X0(e){var t=e.stateNode;t.pendingContext?jh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jh(e,t.context,!1),qd(e,t.containerInfo)}function np(e,t,n,r,o){return Oo(),Wd(o),t.flags|=256,Xe(e,t,n,r),t.child}var Oc={dehydrated:null,treeContext:null,retryLane:0};function Lc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Q0(e,t,n){var r=t.pendingProps,o=Se.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(Se,o&1),e===null)return Nc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=_l(s,r,0,null),e=Tr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Lc(n),t.memoizedState=Oc,e):sf(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return PS(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=or(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=or(a,i):(i=Tr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Lc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Oc,r}return i=e.child,e=i.sibling,r=or(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function sf(e,t){return t=_l({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bs(e,t,n,r){return r!==null&&Wd(r),Lo(t,e.child,null,n),e=sf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function PS(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Au(Error(V(422))),Bs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=_l({mode:"visible",children:r.children},o,0,null),i=Tr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Lo(t,e.child,null,s),t.child.memoizedState=Lc(s),t.memoizedState=Oc,i);if(!(t.mode&1))return Bs(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(V(419)),r=Au(i,r,void 0),Bs(e,t,s,r)}if(a=(s&e.childLanes)!==0,Je||a){if(r=$e,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,bn(e,o),Ft(r,e,o,-1))}return ff(),r=Au(Error(V(421))),Bs(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=BS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ft=er(o.nextSibling),ht=t,xe=!0,$t=null,e!==null&&(Ct[bt++]=vn,Ct[bt++]=wn,Ct[bt++]=Or,vn=e.id,wn=e.overflow,Or=t),t=sf(t,r.children),t.flags|=4096,t)}function rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pc(e.return,t,n)}function Iu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function K0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Xe(e,t,r.children,n),r=Se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rp(e,n,t);else if(e.tag===19)rp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(Se,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ba(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Iu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ba(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Iu(t,!0,n,null,i);break;case"together":Iu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ha(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$r|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function TS(e,t,n){switch(t.tag){case 3:X0(t),Oo();break;case 5:E0(t);break;case 1:nt(t.type)&&La(t);break;case 4:qd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(za,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?Q0(e,t,n):(ge(Se,Se.current&1),e=kn(e,t,n),e!==null?e.sibling:null);ge(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return K0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,W0(e,t,n)}return kn(e,t,n)}var G0,$c,q0,Z0;G0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};$c=function(){};q0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Sr(sn.current);var i=null;switch(n){case"input":o=oc(e,o),r=oc(e,r),i=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),i=[];break;case"textarea":o=ac(e,o),r=ac(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ia)}uc(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Oi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Oi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ve("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Z0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ci(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function MS(e,t,n){var r=t.pendingProps;switch(Ud(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return nt(t.type)&&Oa(),He(t),null;case 3:return r=t.stateNode,$o(),we(tt),we(We),Jd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(js(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$t!==null&&(Uc($t),$t=null))),$c(e,t),He(t),null;case 5:Zd(t);var o=Sr(Yi.current);if(n=t.type,e!==null&&t.stateNode!=null)q0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(V(166));return He(t),null}if(e=Sr(sn.current),js(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[nn]=t,r[Ui]=i,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<wi.length;o++)ve(wi[o],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":fh(r,i),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ve("invalid",r);break;case"textarea":ph(r,i),ve("invalid",r)}uc(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];
vendor: 13,845 bytes, line 40
40s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&zs(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&zs(r.textContent,a,e),o=["children",""+a]):Oi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ve("scroll",r)}switch(n){case"input":Ms(r),hh(r,i,!0);break;case"textarea":Ms(r),mh(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ia)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_g(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[nn]=t,e[Ui]=r,G0(e,t,!1,!1),t.stateNode=e;e:{switch(s=cc(n,r),n){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;o<wi.length;o++)ve(wi[o],e);o=r;break;case"source":ve("error",e),o=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),o=r;break;case"details":ve("toggle",e),o=r;break;case"input":fh(e,r),o=oc(e,r),ve("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),ve("invalid",e);break;case"textarea":ph(e,r),o=ac(e,r),ve("invalid",e);break;default:o=r}uc(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Tg(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ng(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Li(e,l):typeof l=="number"&&Li(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Oi.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ve("scroll",e):l!=null&&Td(e,i,l,s))}switch(n){case"input":Ms(e),hh(e,r,!1);break;case"textarea":Ms(e),mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?fo(e,!!r.multiple,i,!1):r.defaultValue!=null&&fo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ia)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)Z0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(V(166));if(n=Sr(Yi.current),Sr(sn.current),js(t)){if(r=t.stateNode,n=t.memoizedProps,r[nn]=t,(i=r.nodeValue!==n)&&(e=ht,e!==null))switch(e.tag){case 3:zs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&zs(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nn]=t,t.stateNode=r}return He(t),null;case 13:if(we(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&ft!==null&&t.mode&1&&!(t.flags&128))g0(),Oo(),t.flags|=98560,i=!1;else if(i=js(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(V(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(V(317));i[nn]=t}else Oo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),i=!1}else $t!==null&&(Uc($t),$t=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?Oe===0&&(Oe=3):ff())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return $o(),$c(e,t),e===null&&Hi(t.stateNode.containerInfo),He(t),null;case 10:return Qd(t.type._context),He(t),null;case 17:return nt(t.type)&&Oa(),He(t),null;case 19:if(we(Se),i=t.memoizedState,i===null)return He(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ci(i,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ba(e),s!==null){for(t.flags|=128,ci(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(Se,Se.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>zo&&(t.flags|=128,r=!0,ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ba(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return He(t),null}else 2*Te()-i.renderingStartTime>zo&&n!==1073741824&&(t.flags|=128,r=!0,ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=Se.current,ge(Se,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return df(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ut&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function RS(e,t){switch(Ud(t),t.tag){case 1:return nt(t.type)&&Oa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $o(),we(tt),we(We),Jd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zd(t),null;case 13:if(we(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Se),null;case 4:return $o(),null;case 10:return Qd(t.type._context),null;case 22:case 23:return df(),null;case 24:return null;default:return null}}var Hs=!1,Ue=!1,AS=typeof WeakSet=="function"?WeakSet:Set,K=null;function ao(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Dc(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var op=!1;function IS(e,t){if(xc=Ma,e=r0(),Hd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,f=e,c=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)c=f,f=h;for(;;){if(f===e)break t;if(c===n&&++u===o&&(a=s),c===i&&++d===r&&(l=s),(h=f.nextSibling)!==null)break;f=c,c=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ec={focusedElem:e,selectionRange:n},Ma=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,w=y.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Rt(t.type,g),w);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(x){Pe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return y=op,op=!1,y}function Pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Dc(t,n,i)}o=o.next}while(o!==r)}}function bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function J0(e){var t=e.alternate;t!==null&&(e.alternate=null,J0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nn],delete t[Ui],delete t[bc],delete t[mS],delete t[gS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ey(e){return e.tag===5||e.tag===3||e.tag===4}function ip(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ey(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ia));else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Fc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fc(e,t,n),e=e.sibling;e!==null;)Fc(e,t,n),e=e.sibling}var De=null,Ot=!1;function An(e,t,n){for(n=n.child;n!==null;)ty(e,t,n),n=n.sibling}function ty(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:Ue||ao(n,t);case 6:var r=De,o=Ot;De=null,An(e,t,n),De=r,Ot=o,De!==null&&(Ot?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(Ot?(e=De,n=n.stateNode,e.nodeType===8?_u(e.parentNode,n):e.nodeType===1&&_u(e,n),ji(e)):_u(De,n.stateNode));break;case 4:r=De,o=Ot,De=n.stateNode.containerInfo,Ot=!0,An(e,t,n),De=r,Ot=o;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Dc(n,t,s),o=o.next}while(o!==r)}An(e,t,n);break;case 1:if(!Ue&&(ao(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}An(e,t,n);break;case 21:An(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,An(e,t,n),Ue=r):An(e,t,n);break;default:An(e,t,n)}}function sp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new AS),t.forEach(function(r){var o=HS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:De=a.stateNode,Ot=!1;break e;case 3:De=a.stateNode.containerInfo,Ot=!0;break e;case 4:De=a.stateNode.containerInfo,Ot=!0;break e}a=a.return}if(De===null)throw Error(V(160));ty(i,s,o),De=null,Ot=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Pe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ny(t,e),t=t.sibling}function ny(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Gt(e),r&4){try{Pi(3,e,e.return),bl(3,e)}catch(g){Pe(e,e.return,g)}try{Pi(5,e,e.return)}catch(g){Pe(e,e.return,g)}}break;case 1:Mt(t,e),Gt(e),r&512&&n!==null&&ao(n,n.return);break;case 5:if(Mt(t,e),Gt(e),r&512&&n!==null&&ao(n,n.return),e.flags&32){var o=e.stateNode;try{Li(o,"")}catch(g){Pe(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&bg(o,i),cc(a,s);var u=cc(a,i);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d==="style"?Tg(o,f):d==="dangerouslySetInnerHTML"?Ng(o,f):d==="children"?Li(o,f):Td(o,d,f,u)}switch(a){case"input":ic(o,i);break;case"textarea":kg(o,i);break;case"select":var c=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?fo(o,!!i.multiple,h,!1):c!==!!i.multiple&&(i.defaultValue!=null?fo(o,!!i.multiple,i.defaultValue,!0):fo(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ui]=i}catch(g){Pe(e,e.return,g)}}break;case 6:if(Mt(t,e),Gt(e),r&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Pe(e,e.return,g)}}break;case 3:if(Mt(t,e),Gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(g){Pe(e,e.return,g)}break;case 4:Mt(t,e),Gt(e);break;case 13:Mt(t,e),Gt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(uf=Te())),r&4&&sp(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ue=(u=Ue)||d,Mt(t,e),Ue=u):Mt(t,e),Gt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(K=e,d=e.child;d!==null;){for(f=K=d;K!==null;){switch(c=K,h=c.child,c.tag){case 0:case 11:case 14:case 15:Pi(4,c,c.return);break;case 1:ao(c,c.return);var y=c.stateNode;if(typeof y.componentWillUnmount=="function"){r=c,n=c.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Pe(r,n,g)}}break;case 5:ao(c,c.return);break;case 22:if(c.memoizedState!==null){lp(f);continue}}h!==null?(h.return=c,K=h):lp(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;
vendor: 1,144 bytes, line 40
40try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Pg("display",s))}catch(g){Pe(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Pe(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Mt(t,e),Gt(e),r&4&&sp(e);break;case 21:break;default:Mt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ey(n)){var r=n;break e}n=n.return}throw Error(V(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Li(o,""),r.flags&=-33);var i=ip(e);Fc(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=ip(e);jc(e,a,s);break;default:throw Error(V(161))}}catch(l){Pe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}
vendor: 13,907 bytes, line 40
40function OS(e,t,n){K=e,ry(e)}function ry(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var o=K,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Hs;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ue;a=Hs;var u=Ue;if(Hs=s,(Ue=l)&&!u)for(K=o;K!==null;)s=K,l=s.child,s.tag===22&&s.memoizedState!==null?up(o):l!==null?(l.return=s,K=l):up(o);for(;i!==null;)K=i,ry(i),i=i.sibling;K=o,Hs=a,Ue=u}ap(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,K=i):ap(e)}}function ap(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ue||bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ue)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Rt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Wh(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Wh(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ji(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}Ue||t.flags&512&&zc(t)}catch(c){Pe(t,t.return,c)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function lp(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function up(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bl(4,t)}catch(l){Pe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Pe(t,o,l)}}var i=t.return;try{zc(t)}catch(l){Pe(t,i,l)}break;case 5:var s=t.return;try{zc(t)}catch(l){Pe(t,s,l)}}}catch(l){Pe(t,t.return,l)}if(t===e){K=null;break}var a=t.sibling;if(a!==null){a.return=t.return,K=a;break}K=t.return}}var LS=Math.ceil,Ua=Tn.ReactCurrentDispatcher,af=Tn.ReactCurrentOwner,_t=Tn.ReactCurrentBatchConfig,ue=0,$e=null,Me=null,ze=0,ut=0,lo=hr(0),Oe=0,Gi=null,$r=0,kl=0,lf=0,Ti=null,Ze=null,uf=0,zo=1/0,gn=null,Wa=!1,Bc=null,nr=null,Vs=!1,Kn=null,Ya=0,Mi=0,Hc=null,pa=-1,ma=0;function Ke(){return ue&6?Te():pa!==-1?pa:pa=Te()}function rr(e){return e.mode&1?ue&2&&ze!==0?ze&-ze:vS.transition!==null?(ma===0&&(ma=Bg()),ma):(e=he,e!==0||(e=window.event,e=e===void 0?16:Qg(e.type)),e):1}function Ft(e,t,n,r){if(50<Mi)throw Mi=0,Hc=null,Error(V(185));hs(e,n,r),(!(ue&2)||e!==$e)&&(e===$e&&(!(ue&2)&&(kl|=n),Oe===4&&Bn(e,ze)),rt(e,r),n===1&&ue===0&&!(t.mode&1)&&(zo=Te()+500,El&&pr()))}function rt(e,t){var n=e.callbackNode;vE(e,t);var r=Ta(e,e===$e?ze:0);if(r===0)n!==null&&vh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vh(n),t===1)e.tag===0?yS(cp.bind(null,e)):h0(cp.bind(null,e)),hS(function(){!(ue&6)&&pr()}),n=null;else{switch(Hg(r)){case 1:n=Od;break;case 4:n=jg;break;case 16:n=Pa;break;case 536870912:n=Fg;break;default:n=Pa}n=dy(n,oy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oy(e,t){if(pa=-1,ma=0,ue&6)throw Error(V(327));var n=e.callbackNode;if(yo()&&e.callbackNode!==n)return null;var r=Ta(e,e===$e?ze:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xa(e,r);else{t=r;var o=ue;ue|=2;var i=sy();($e!==e||ze!==t)&&(gn=null,zo=Te()+500,Pr(e,t));do try{zS();break}catch(a){iy(e,a)}while(!0);Xd(),Ua.current=i,ue=o,Me!==null?t=0:($e=null,ze=0,t=Oe)}if(t!==0){if(t===2&&(o=mc(e),o!==0&&(r=o,t=Vc(e,o))),t===1)throw n=Gi,Pr(e,0),Bn(e,r),rt(e,Te()),n;if(t===6)Bn(e,r);else{if(o=e.current.alternate,!(r&30)&&!$S(o)&&(t=Xa(e,r),t===2&&(i=mc(e),i!==0&&(r=i,t=Vc(e,i))),t===1))throw n=Gi,Pr(e,0),Bn(e,r),rt(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(V(345));case 2:vr(e,Ze,gn);break;case 3:if(Bn(e,r),(r&130023424)===r&&(t=uf+500-Te(),10<t)){if(Ta(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ke(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Cc(vr.bind(null,e,Ze,gn),t);break}vr(e,Ze,gn);break;case 4:if(Bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-jt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LS(r/1960))-r,10<r){e.timeoutHandle=Cc(vr.bind(null,e,Ze,gn),r);break}vr(e,Ze,gn);break;case 5:vr(e,Ze,gn);break;default:throw Error(V(329))}}}return rt(e,Te()),e.callbackNode===n?oy.bind(null,e):null}function Vc(e,t){var n=Ti;return e.current.memoizedState.isDehydrated&&(Pr(e,t).flags|=256),e=Xa(e,t),e!==2&&(t=Ze,Ze=n,t!==null&&Uc(t)),e}function Uc(e){Ze===null?Ze=e:Ze.push.apply(Ze,e)}function $S(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Bt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bn(e,t){for(t&=~lf,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function cp(e){if(ue&6)throw Error(V(327));yo();var t=Ta(e,0);if(!(t&1))return rt(e,Te()),null;var n=Xa(e,t);if(e.tag!==0&&n===2){var r=mc(e);r!==0&&(t=r,n=Vc(e,r))}if(n===1)throw n=Gi,Pr(e,0),Bn(e,t),rt(e,Te()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vr(e,Ze,gn),rt(e,Te()),null}function cf(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(zo=Te()+500,El&&pr())}}function Dr(e){Kn!==null&&Kn.tag===0&&!(ue&6)&&yo();var t=ue;ue|=1;var n=_t.transition,r=he;try{if(_t.transition=null,he=1,e)return e()}finally{he=r,_t.transition=n,ue=t,!(ue&6)&&pr()}}function df(){ut=lo.current,we(lo)}function Pr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fS(n)),Me!==null)for(n=Me.return;n!==null;){var r=n;switch(Ud(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oa();break;case 3:$o(),we(tt),we(We),Jd();break;case 5:Zd(r);break;case 4:$o();break;case 13:we(Se);break;case 19:we(Se);break;case 10:Qd(r.type._context);break;case 22:case 23:df()}n=n.return}if($e=e,Me=e=or(e.current,null),ze=ut=t,Oe=0,Gi=null,lf=kl=$r=0,Ze=Ti=null,Er!==null){for(t=0;t<Er.length;t++)if(n=Er[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Er=null}return e}function iy(e,t){do{var n=Me;try{if(Xd(),da.current=Va,Ha){for(var r=Ce.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ha=!1}if(Lr=0,Le=Ae=Ce=null,Ni=!1,Xi=0,af.current=null,n===null||n.return===null){Oe=1,Gi=t,Me=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=ze,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var c=d.alternate;c?(d.updateQueue=c.updateQueue,d.memoizedState=c.memoizedState,d.lanes=c.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=qh(s);if(h!==null){h.flags&=-257,Zh(h,s,a,i,t),h.mode&1&&Gh(i,u,t),t=h,l=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(l),t.updateQueue=g}else y.add(l);break e}else{if(!(t&1)){Gh(i,u,t),ff();break e}l=Error(V(426))}}else if(xe&&a.mode&1){var w=qh(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Zh(w,s,a,i,t),Wd(Do(l,a));break e}}i=l=Do(l,a),Oe!==4&&(Oe=2),Ti===null?Ti=[i]:Ti.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=H0(i,l,t);Uh(i,m);break e;case 1:a=l;var v=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(nr===null||!nr.has(p)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=V0(i,a,t);Uh(i,x);break e}}i=i.return}while(i!==null)}ly(n)}catch(S){t=S,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(!0)}function sy(){var e=Ua.current;return Ua.current=Va,e===null?Va:e}function ff(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),$e===null||!($r&268435455)&&!(kl&268435455)||Bn($e,ze)}function Xa(e,t){var n=ue;ue|=2;var r=sy();($e!==e||ze!==t)&&(gn=null,Pr(e,t));do try{DS();break}catch(o){iy(e,o)}while(!0);if(Xd(),ue=n,Ua.current=r,Me!==null)throw Error(V(261));return $e=null,ze=0,Oe}function DS(){for(;Me!==null;)ay(Me)}function zS(){for(;Me!==null&&!uE();)ay(Me)}function ay(e){var t=cy(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?ly(e):Me=t,af.current=null}function ly(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=RS(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Me=null;return}}else if(n=MS(n,t,ut),n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Oe===0&&(Oe=5)}function vr(e,t,n){var r=he,o=_t.transition;try{_t.transition=null,he=1,jS(e,t,n,r)}finally{_t.transition=o,he=r}return null}function jS(e,t,n,r){do yo();while(Kn!==null);if(ue&6)throw Error(V(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(wE(e,i),e===$e&&(Me=$e=null,ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vs||(Vs=!0,dy(Pa,function(){return yo(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=_t.transition,_t.transition=null;var s=he;he=1;var a=ue;ue|=4,af.current=null,IS(e,n),ny(n,e),iS(Ec),Ma=!!xc,Ec=xc=null,e.current=n,OS(n),cE(),ue=a,he=s,_t.transition=i}else e.current=n;if(Vs&&(Vs=!1,Kn=e,Ya=o),i=e.pendingLanes,i===0&&(nr=null),hE(n.stateNode),rt(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wa)throw Wa=!1,e=Bc,Bc=null,e;return Ya&1&&e.tag!==0&&yo(),i=e.pendingLanes,i&1?e===Hc?Mi++:(Mi=0,Hc=e):Mi=0,pr(),null}function yo(){if(Kn!==null){var e=Hg(Ya),t=_t.transition,n=he;try{if(_t.transition=null,he=16>e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,Ya=0,ue&6)throw Error(V(331));var o=ue;for(ue|=4,K=e.current;K!==null;){var i=K,s=i.child;if(K.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(K=u;K!==null;){var d=K;switch(d.tag){case 0:case 11:case 15:Pi(8,d,i)}var f=d.child;if(f!==null)f.return=d,K=f;else for(;K!==null;){d=K;var c=d.sibling,h=d.return;if(J0(d),d===u){K=null;break}if(c!==null){c.return=h,K=c;break}K=h}}}var y=i.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}K=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,K=s;else e:for(;K!==null;){if(i=K,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Pi(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,K=m;break e}K=i.return}}var v=e.current;for(K=v;K!==null;){s=K;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,K=p;else e:for(s=v;K!==null;){if(a=K,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:bl(9,a)}}catch(S){Pe(a,a.return,S)}if(a===s){K=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,K=x;break e}K=a.return}}if(ue=o,pr(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(gl,e)}catch{}r=!0}return r}finally{he=n,_t.transition=t}}return!1}function dp(e,t,n){t=Do(n,t),t=H0(e,t,1),e=tr(e,t,1),t=Ke(),e!==null&&(hs(e,1,t),rt(e,t))}function Pe(e,t,n){if(e.tag===3)dp(e,e,n);else for(;t!==null;){if(t.tag===3){dp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nr===null||!nr.has(r))){e=Do(n,e),e=V0(t,e,1),t=tr(t,e,1),e=Ke(),t!==null&&(hs(t,1,e),rt(t,e));break}}t=t.return}}function FS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(ze&n)===n&&(Oe===4||Oe===3&&(ze&130023424)===ze&&500>Te()-uf?Pr(e,0):lf|=n),rt(e,t)}function uy(e,t){t===0&&(e.mode&1?(t=Is,Is<<=1,!(Is&130023424)&&(Is=4194304)):t=1);var n=Ke();e=bn(e,t),e!==null&&(hs(e,t,n),rt(e,n))}function BS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uy(e,n)}function HS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),uy(e,n)}var cy;cy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)Je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Je=!1,TS(e,t,n);Je=!!(e.flags&131072)}else Je=!1,xe&&t.flags&1048576&&p0(t,Da,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ha(e,t),e=t.pendingProps;var o=Io(t,We.current);go(t,n),o=tf(null,t,r,e,o,n);var i=nf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nt(r)?(i=!0,La(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Gd(t),o.updater=Cl,t.stateNode=o,o._reactInternals=t,Mc(t,r,e,n),t=Ic(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Vd(t),Xe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ha(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=US(r),e=Rt(r,e),o){case 0:t=Ac(null,t,r,e,n);break e;case 1:t=tp(null,t,r,e,n);break e;case 11:t=Jh(null,t,r,e,n);break e;case 14:t=ep(null,t,r,Rt(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Ac(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),tp(e,t,r,o,n);case 3:e:{if(X0(t),e===null)throw Error(V(387));
vendor: 5,689 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,o=i.element,x0(e,t),Fa(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Do(Error(V(423)),t),t=np(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(V(424)),t),t=np(e,t,r,n,o);break e}else for(ft=er(t.stateNode.containerInfo.firstChild),ht=t,xe=!0,$t=null,n=v0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oo(),r===o){t=kn(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return E0(t),e===null&&Nc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Sc(r,o)?s=null:i!==null&&Sc(r,i)&&(t.flags|=32),Y0(e,t),Xe(e,t,s,n),t.child;case 6:return e===null&&Nc(t),null;case 13:return Q0(e,t,n);case 4:return qd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Lo(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Jh(e,t,r,o,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ge(za,r._currentValue),r._currentValue=s,i!==null)if(Bt(i.value,s)){if(i.children===o.children&&!tt.current){t=kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=En(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Pc(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(V(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Pc(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Xe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,go(t,n),o=Nt(o),r=r(o),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,o=Rt(r,t.pendingProps),o=Rt(r.type,o),ep(e,t,r,o,n);case 15:return U0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),ha(e,t),t.tag=1,nt(r)?(e=!0,La(t)):e=!1,go(t,n),B0(t,r,o),Mc(t,r,o,n),Ic(null,t,r,!0,e,n);case 19:return K0(e,t,n);case 22:return W0(e,t,n)}throw Error(V(156,t.tag))};function dy(e,t){return zg(e,t)}function VS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,r){return new VS(e,t,n,r)}function hf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function US(e){if(typeof e=="function")return hf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rd)return 11;if(e===Ad)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ga(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")hf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Zr:return Tr(n.children,o,i,t);case Md:s=8,o|=8;break;case ec:return e=kt(12,n,t,o|2),e.elementType=ec,e.lanes=i,e;case tc:return e=kt(13,n,t,o),e.elementType=tc,e.lanes=i,e;case nc:return e=kt(19,n,t,o),e.elementType=nc,e.lanes=i,e;case Eg:return _l(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wg:s=10;break e;case xg:s=9;break e;case Rd:s=11;break e;case Ad:s=14;break e;case zn:s=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=kt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Tr(e,t,n,r){return e=kt(7,e,r,t),e.lanes=n,e}function _l(e,t,n,r){return e=kt(22,e,r,t),e.elementType=Eg,e.lanes=n,e.stateNode={isHidden:!1},e}function Ou(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function Lu(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mu(0),this.expirationTimes=mu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pf(e,t,n,r,o,i,s,a,l){return e=new WS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gd(i),e}
vendor: 4,676 bytes, line 40
40function YS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fy(e){if(!e)return ar;e=e._reactInternals;e:{if(Ur(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(nt(n))return f0(e,n,t)}return t}function hy(e,t,n,r,o,i,s,a,l){return e=pf(n,r,!0,e,o,i,s,a,l),e.context=fy(null),n=e.current,r=Ke(),o=rr(n),i=En(r,o),i.callback=t??null,tr(n,i,o),e.current.lanes=o,hs(e,o,r),rt(e,r),e}function Nl(e,t,n,r){var o=t.current,i=Ke(),s=rr(o);return n=fy(n),t.context===null?t.context=n:t.pendingContext=n,t=En(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tr(o,t,s),e!==null&&(Ft(e,o,s,i),ca(e,o,s)),s}function Qa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mf(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function XS(){return null}var py=typeof reportError=="function"?reportError:function(e){console.error(e)};function gf(e){this._internalRoot=e}Pl.prototype.render=gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));Nl(e,t,null,null)};Pl.prototype.unmount=gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dr(function(){Nl(null,e,null,null)}),t[Cn]=null}};function Pl(e){this._internalRoot=e}Pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fn.length&&t!==0&&t<Fn[n].priority;n++);Fn.splice(n,0,e),n===0&&Xg(e)}};function yf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hp(){}function QS(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Qa(s);i.call(u)}}var s=hy(t,r,e,0,null,!1,!1,"",hp);return e._reactRootContainer=s,e[Cn]=s.current,Hi(e.nodeType===8?e.parentNode:e),Dr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Qa(l);a.call(u)}}var l=pf(e,0,!1,null,null,!1,!1,"",hp);return e._reactRootContainer=l,e[Cn]=l.current,Hi(e.nodeType===8?e.parentNode:e),Dr(function(){Nl(t,l,n,r)}),l}function Ml(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Qa(s);a.call(l)}}Nl(t,s,e,o)}else s=QS(n,t,e,o,r);return Qa(s)}Vg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vi(t.pendingLanes);n!==0&&(Ld(t,n|1),rt(t,Te()),!(ue&6)&&(zo=Te()+500,pr()))}break;case 13:Dr(function(){var r=bn(e,1);if(r!==null){var o=Ke();Ft(r,e,1,o)}}),mf(e,1)}};$d=function(e){if(e.tag===13){var t=bn(e,134217728);if(t!==null){var n=Ke();Ft(t,e,134217728,n)}mf(e,134217728)}};Ug=function(e){if(e.tag===13){var t=rr(e),n=bn(e,t);if(n!==null){var r=Ke();Ft(n,e,t,r)}mf(e,t)}};Wg=function(){return he};Yg=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};fc=function(e,t,n){switch(t){case"input":if(ic(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xl(r);if(!o)throw Error(V(90));Cg(r),ic(r,o)}}}break;case"textarea":kg(e,n);break;case"select":t=n.value,t!=null&&fo(e,!!n.multiple,t,!1)}};Ag=cf;Ig=Dr;var KS={usingClientEntryPoint:!1,Events:[ms,no,xl,Mg,Rg,cf]},di={findFiberByHostInstance:xr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},GS={bundleType:di.bundleType,version:di.version,rendererPackageName:di.rendererPackageName,rendererConfig:di.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$g(e),e===null?null:e.stateNode},findFiberByHostInstance:di.findFiberByHostInstance||XS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Us.isDisabled&&Us.supportsFiber)try{gl=Us.inject(GS),on=Us}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KS;yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yf(t))throw Error(V(200));return YS(e,t,null,n)};yt.createRoot=function(e,t){if(!yf(e))throw Error(V(299));var n=!1,r="",o=py;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=pf(e,1,!1,null,null,n,!1,r,o),e[Cn]=t.current,Hi(e.nodeType===8?e.parentNode:e),new gf(t)};yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=$g(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return Dr(e)};yt.hydrate=function(e,t,n){if(!Tl(t))throw Error(V(200));return Ml(null,e,t,!0,n)};yt.hydrateRoot=function(e,t,n){if(!yf(e))throw Error(V(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=py;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=hy(t,null,e,1,n??null,o,!1,i,s),e[Cn]=t.current,Hi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Pl(t)};yt.render=function(e,t,n){if(!Tl(t))throw Error(V(200));return Ml(null,e,t,!1,n)};yt.unmountComponentAtNode=function(e){if(!Tl(e))throw Error(V(40));return e._reactRootContainer?(Dr(function(){Ml(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1};yt.unstable_batchedUpdates=cf;yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Tl(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return Ml(e,t,n,!1,r)};yt.version="18.3.1-next-f1338f8080-20240426";function my(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(my)}catch(e){console.error(e)}}my(),mg.exports=yt;var ys=mg.exports;const gy=Sd(ys);var yy,pp=ys;yy=pp.createRoot,pp.hydrateRoot;const qS=1,ZS=1e6;let $u=0;function JS(){return $u=($u+1)%Number.MAX_SAFE_INTEGER,$u.toString()}const Du=new Map,mp=e=>{if(Du.has(e))return;const t=setTimeout(()=>{Du.delete(e),Ri({type:"REMOVE_TOAST",toastId:e})},ZS);Du.set(e,t)},eC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,qS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?mp(n):e.toasts.forEach(r=>{mp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ya=[];let va={toasts:[]};function Ri(e){va=eC(va,e),ya.forEach(t=>{t(va)})}function tC({...e}){const t=JS(),n=o=>Ri({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ri({type:"DISMISS_TOAST",toastId:t});return Ri({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function nC(){const[e,t]=E.useState(va);return E.useEffect(()=>(ya.push(t),()=>{const n=ya.indexOf(t);n>-1&&ya.splice(n,1)}),[e]),{...e,toast:tC,dismiss:n=>Ri({type:"DISMISS_TOAST",toastId:n})}}function Ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function rC(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vy(...e){return t=>e.forEach(n=>rC(n,t))}function Ht(...e){return E.useCallback(vy(...e),e)}function oC(e,t=[]){let n=[];function r(i,s){const a=E.createContext(s),l=n.length;n=[...n,s];function u(f){const{scope:c,children:h,...y}=f,g=(c==null?void 0:c[e][l])||a,w=E.useMemo(()=>y,Object.values(y));return _.jsx(g.Provider,{value:w,children:h})}function d(f,c){const h=(c==null?void 0:c[e][l])||a,y=E.useContext(h);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>E.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return E.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,iC(o,...t)]}function iC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ka=E.forwardRef((e,t)=>
vendor: 10,437 bytes, line 40
40{const{children:n,...r}=e,o=E.Children.toArray(n),i=o.find(sC);if(i){const s=i.props.children,a=o.map(l=>l===i?E.Children.count(s)>1?E.Children.only(null):E.isValidElement(s)?s.props.children:null:l);return _.jsx(Wc,{...r,ref:t,children:E.isValidElement(s)?E.cloneElement(s,void 0,a):null})}return _.jsx(Wc,{...r,ref:t,children:n})});Ka.displayName="Slot";var Wc=E.forwardRef((e,t)=>{const{children:n,...r}=e;if(E.isValidElement(n)){const o=lC(n);return E.cloneElement(n,{...aC(r,n.props),ref:t?vy(t,o):o})}return E.Children.count(n)>1?E.Children.only(null):null});Wc.displayName="SlotClone";var wy=({children:e})=>_.jsx(_.Fragment,{children:e});function sC(e){return E.isValidElement(e)&&e.type===wy}function aC(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function lC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function uC(e){const t=e+"CollectionProvider",[n,r]=oC(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:g}=h,w=W.useRef(null),m=W.useRef(new Map).current;return _.jsx(o,{scope:y,itemMap:m,collectionRef:w,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=W.forwardRef((h,y)=>{const{scope:g,children:w}=h,m=i(a,g),v=Ht(y,m.collectionRef);return _.jsx(Ka,{ref:v,children:w})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=W.forwardRef((h,y)=>{const{scope:g,children:w,...m}=h,v=W.useRef(null),p=Ht(y,v),x=i(u,g);return W.useEffect(()=>(x.itemMap.set(v,{ref:v,...m}),()=>void x.itemMap.delete(v))),_.jsx(Ka,{[d]:"",ref:p,children:w})});f.displayName=u;function c(h){const y=i(e+"CollectionConsumer",h);return W.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const m=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((x,S)=>m.indexOf(x.ref.current)-m.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:l,ItemSlot:f},c,r]}function xy(e,t=[]){let n=[];function r(i,s){const a=E.createContext(s),l=n.length;n=[...n,s];const u=f=>{var m;const{scope:c,children:h,...y}=f,g=((m=c==null?void 0:c[e])==null?void 0:m[l])||a,w=E.useMemo(()=>y,Object.values(y));return _.jsx(g.Provider,{value:w,children:h})};u.displayName=i+"Provider";function d(f,c){var g;const h=((g=c==null?void 0:c[e])==null?void 0:g[l])||a,y=E.useContext(h);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>E.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return E.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,cC(o,...t)]}function cC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var dC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],it=dC.reduce((e,t)=>{const n=E.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Ka:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ey(e,t){e&&ys.flushSync(()=>e.dispatchEvent(t))}function ln(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function fC(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e);E.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var hC="DismissableLayer",Yc="dismissableLayer.update",pC="dismissableLayer.pointerDownOutside",mC="dismissableLayer.focusOutside",gp,Sy=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vf=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=E.useContext(Sy),[d,f]=E.useState(null),c=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),y=Ht(t,k=>f(k)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(w),v=d?g.indexOf(d):-1,p=u.layersWithOutsidePointerEventsDisabled.size>0,x=v>=m,S=yC(k=>{const P=k.target,I=[...u.branches].some(z=>z.contains(P));!x||I||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},c),b=vC(k=>{const P=k.target;[...u.branches].some(z=>z.contains(P))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},c);return fC(k=>{v===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},c),E.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gp=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),yp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=gp)}},[d,c,n,u]),E.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),yp())},[d,u]),E.useEffect(()=>{const k=()=>h({});return document.addEventListener(Yc,k),()=>document.removeEventListener(Yc,k)},[]),_.jsx(it.div,{...l,ref:y,style:{pointerEvents:p?x?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,b.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,S.onPointerDownCapture)})});vf.displayName=hC;var gC="DismissableLayerBranch",Cy=E.forwardRef((e,t)=>{const n=E.useContext(Sy),r=E.useRef(null),o=Ht(t,r);return E.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),_.jsx(it.div,{...e,ref:o})});Cy.displayName=gC;function yC(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=E.useRef(!1),o=E.useRef(()=>{});return E.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){by(pC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vC(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=E.useRef(!1);return E.useEffect(()=>{const o=i=>{i.target&&!r.current&&by(mC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yp(){const e=new CustomEvent(Yc);document.dispatchEvent(e)}function by(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ey(o,i):o.dispatchEvent(i)}var wC=vf,xC=Cy,zr=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},EC="Portal",ky=E.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=E.useState(!1);zr(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?gy.createPortal(_.jsx(it.div,{...r,ref:t}),s):null});ky.displayName=EC;function SC(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var wf=e=>{const{present:t,children:n}=e,r=CC(t),o=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),i=Ht(r.ref,bC(o));return typeof n=="function"||r.isPresent?E.cloneElement(o,{ref:i}):null};wf.displayName="Presence";function CC(e){const[t,n]=E.useState(),r=E.useRef({}),o=E.useRef(e),i=E.useRef("none"),s=e?"mounted":"unmounted",[a,l]=SC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Ws(r.current);i.current=a==="mounted"?u:"none"},[a]),zr(()=>{const u=r.current,d=o.current;if(d!==e){const c=i.current,h=Ws(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&c!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),zr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const g=Ws(r.current).includes(h.animationName);if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},c=h=>{h.target===t&&(i.current=Ws(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:E.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ws(e){return(e==null?void 0:e.animationName)||"none"}function bC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kC({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=_C({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=ln(n),l=E.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else o(u)},[i,e,o,a]);return[s,l]}function _C({defaultProp:e,onChange:t}){const n=E.useState(e),[r]=n,o=E.useRef(r),i=ln(t);return E.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var NC="VisuallyHidden",Rl=E.forwardRef((e,t)=>
40_.jsx(it.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Rl.displayName=NC;var PC=Rl,xf="ToastProvider",[Ef,TC,MC]=uC("Toast"),[_y,yI]=xy("Toast",[MC]),[RC,Al]=_y(xf),Ny=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=E.useState(null),[u,d]=E.useState(0),f=E.useRef(!1),c=E.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${xf}\`. Expected non-empty \`string\`.`),_.jsx(Ef.Provider,{scope:t,children:_.jsx(RC,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:E.useCallback(()=>d(h=>h+1),[]),onToastRemove:E.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:c,children:s})})};Ny.displayName=xf;var Py="ToastViewport",AC=["F8"],Xc="toast.viewportPause",Qc="toast.viewportResume",Ty=E.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=AC,label:o="Notifications ({hotkey})",...i}=e,s=Al(Py,n),a=TC(n),l=E.useRef(null),u=E.useRef(null),d=E.useRef(null),f=E.useRef(null),c=Ht(t,f,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;E.useEffect(()=>{const w=m=>{var p;r.length!==0&&r.every(x=>m[x]||m.code===x)&&((p=f.current)==null||p.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),E.useEffect(()=>{const w=l.current,m=f.current;if(y&&w&&m){const v=()=>{if(!s.isClosePausedRef.current){const b=new CustomEvent(Xc);m.dispatchEvent(b),s.isClosePausedRef.current=!0}},p=()=>{if(s.isClosePausedRef.current){const b=new CustomEvent(Qc);m.dispatchEvent(b),s.isClosePausedRef.current=!1}},x=b=>{!w.contains(b.relatedTarget)&&p()},S=()=>{w.contains(document.activeElement)||p()};return w.addEventListener("focusin",v),w.addEventListener("focusout",x),w.addEventListener("pointermove",v),w.addEventListener("pointerleave",S),window.addEventListener("blur",v),window.addEventListener("focus",p),()=>{w.removeEventListener("focusin",v),w.removeEventListener("focusout",x),w.removeEventListener("pointermove",v),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",v),window.removeEventListener("focus",p)}}},[y,s.isClosePausedRef]);const g=E.useCallback(({tabbingDirection:w})=>{const v=a().map(p=>{const x=p.ref.current,S=[x,...WC(x)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?v.reverse():v).flat()},[a]);return E.useEffect(()=>{const w=f.current;if(w){const m=v=>{var S,b,k;const p=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!p){const P=document.activeElement,I=v.shiftKey;if(v.target===w&&I){(S=u.current)==null||S.focus();return}const L=g({tabbingDirection:I?"backwards":"forwards"}),j=L.findIndex(C=>C===P);zu(L.slice(j+1))?v.preventDefault():I?(b=u.current)==null||b.focus():(k=d.current)==null||k.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,g]),_.jsxs(xC,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&_.jsx(Kc,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});zu(w)}}),_.jsx(Ef.Slot,{scope:n,children:_.jsx(it.ol,{tabIndex:-1,...i,ref:c})}),y&&_.jsx(Kc,{ref:d,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});zu(w)}})]})});Ty.displayName=Py;var My="ToastFocusProxy",Kc=E.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Al(My,n);return _.jsx(Rl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Kc.displayName=My;var Il="Toast",IC="toast.swipeStart",OC="toast.swipeMove",LC="toast.swipeCancel",$C="toast.swipeEnd",Ry=E.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,l]=kC({prop:r,defaultProp:o,onChange:i});return _.jsx(wf,{present:n||a,children:_.jsx(jC,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:ln(e.onPause),onResume:ln(e.onResume),onSwipeStart:Ie(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ie(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Ie(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ie(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Ry.displayName=Il;var[DC,zC]=_y(Il,{onClose(){}}),jC=E.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:c,onSwipeEnd:h,...y}=e,g=Al(Il,n),[w,m]=E.useState(null),v=Ht(t,C=>m(C)),p=E.useRef(null),x=E.useRef(null),S=o||g.duration,b=E.useRef(0),k=E.useRef(S),P=E.useRef(0),{onToastAdd:I,onToastRemove:z}=g,D=ln(()=>{var R;(w==null?void 0:w.contains(document.activeElement))&&((R=g.viewport)==null||R.focus()),s()}),L=E.useCallback(C=>{!C||C===1/0||(window.clearTimeout(P.current),b.current=new Date().getTime(),P.current=window.setTimeout(D,C))},[D]);E.useEffect(()=>{const C=g.viewport;if(C){const R=()=>{L(k.current),u==null||u()},M=()=>{const A=new Date().getTime()-b.current;k.current=k.current-A,window.clearTimeout(P.current),l==null||l()};return C.addEventListener(Xc,M),C.addEventListener(Qc,R),()=>{C.removeEventListener(Xc,M),C.removeEventListener(Qc,R)}}},[g.viewport,S,l,u,L]),E.useEffect(()=>{i&&!g.isClosePausedRef.current&&L(S)},[i,S,g.isClosePausedRef,L]),E.useEffect(()=>(I(),()=>z()),[I,z]);const j=E.useMemo(()=>w?zy(w):null,[w]);return g.viewport?_.jsxs(_.Fragment,{children:[j&&_.jsx(FC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:j}),_.jsx(DC,{scope:n,onClose:D,children:ys.createPortal(_.jsx(Ef.ItemSlot,{scope:n,children:_.jsx(wC,{asChild:!0,onEscapeKeyDown:Ie(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||D(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:_.jsx(it.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ie(e.onKeyDown,C=>{C.key==="Escape"&&(a==null||a(C.nativeEvent),C.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:Ie(e.onPointerDown,C=>{C.button===0&&(p.current={x:C.clientX,y:C.clientY})}),onPointerMove:Ie(e.onPointerMove,C=>{if(!p.current)return;const R=C.clientX-p.current.x,M=C.clientY-p.current.y,A=!!x.current,N=["left","right"].includes(g.swipeDirection),T=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,O=N?T(0,R):0,$=N?0:T(0,M),F=C.pointerType==="touch"?10:2,H={x:O,y:$},U={originalEvent:C,delta:H};A?(x.current=H,Ys(OC,f,U,{discrete:!1})):vp(H,g.swipeDirection,F)?(x.current=H,Ys(IC,d,U,{discrete:!1}),C.target.setPointerCapture(C.pointerId)):(Math.abs(R)>F||Math.abs(M)>F)&&(p.current=null)}),onPointerUp:Ie(e.onPointerUp,C=>{const R=x.current,M=C.target;if(M.hasPointerCapture(C.pointerId)&&M.releasePointerCapture(C.pointerId),x.current=null,p.current=null,R){const A=C.currentTarget,N={originalEvent:C,delta:R};vp(R,g.swipeDirection,g.swipeThreshold)?Ys($C,h,N,{discrete:!0}):Ys(LC,c,N,{discrete:!0}),A.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),FC=e=>{const{__scopeToast:t,children:n,...r}=e,o=Al(Il,t),[i,s]=E.useState(!1),[a,l]=E.useState(!1);return VC(()=>s(!0)),E.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:_.jsx(ky,{asChild:!0,children:_.jsx(Rl,{...r,children:i&&_.jsxs(_.Fragment,{children:[o.label," ",n]})})})},BC="ToastTitle",Ay=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return _.jsx(it.div,{...r,ref:t})});Ay.displayName=BC;var HC="ToastDescription",Iy=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return _.jsx(it.div,{...r,ref:t})});Iy.displayName=HC;var Oy="ToastAction",Ly=E.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?_.jsx(Dy,{altText:n,asChild:!0,children:_.jsx(Sf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Oy}\`. Expected non-empty \`string\`.`),null)});Ly.displayName=Oy;var $y="ToastClose",Sf=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=zC($y,n);return _.jsx(Dy,{asChild:!0,children:_.jsx(it.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,o.onClose)})})});Sf.displayName=$y;var Dy=E.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return _.jsx(it.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function zy(e){const t=[];
vendor: 4,205 bytes, lines 40-65
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),UC(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...zy(r))}}),t}function Ys(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ey(o,i):o.dispatchEvent(i)}var vp=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function VC(e=()=>{}){const t=ln(e);zr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function UC(e){return e.nodeType===e.ELEMENT_NODE}function WC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var YC=Ny,jy=Ty,Fy=Ry,By=Ay,Hy=Iy,Vy=Ly,Uy=Sf;function Wy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Wy(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yy(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wy(e))&&(r&&(r+=" "),r+=t);return r}const wp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xp=Yy,XC=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return xp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const c=wp(d)||wp(f);return o[u][c]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,c]=d;return c===void 0||(u[f]=c),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:c,...h}=d;return Object.entries(h).every(y=>{let[g,w]=y;return Array.isArray(w)?w.includes({...i,...a}[g]):{...i,...a}[g]===w})?[...u,f,c]:u},[]);return xp(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const QC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var KC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const GC=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>E.createElement("svg",{ref:l,...KC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Xy("lucide",o),...a},[...s.map(([u,d])=>E.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const qC=(e,t)=>{const n=E.forwardRef(({className:r,...o},i)=>E.createElement(GC,{ref:i,iconNode:t,className:Xy(`lucide-${QC(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const ZC=qC("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,913 bytes, line 65
65],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Cf="-",JC=e=>{const t=tb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Cf);return a[0]===""&&a.length!==1&&a.shift(),Qy(a,t)||eb(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},Qy=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Qy(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Cf);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Ep=/^\[(.+)\]$/,eb=e=>{if(Ep.test(e)){const t=Ep.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return rb(Object.entries(e.classGroups),n).forEach(([i,s])=>{Gc(s,r,i,t)}),r},Gc=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Sp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(nb(o)){Gc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Gc(s,Sp(t,i),n,r)})})},Sp=(e,t)=>{let n=e;return t.split(Cf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},nb=e=>e.isThemeGetter,rb=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,ob=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Ky="!",ib=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,d=0,f;for(let w=0;w<a.length;w++){let m=a[w];if(u===0){if(m===o&&(r||a.slice(w,w+i)===t)){l.push(a.slice(d,w)),d=w+i;continue}if(m==="/"){f=w;continue}}m==="["?u++:m==="]"&&u--}const c=l.length===0?a:a.substring(d),h=c.startsWith(Ky),y=h?c.substring(1):c,g=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:s}):s},sb=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},ab=e=>({cache:ob(e.cacheSize),parseClassName:ib(e),...JC(e)}),lb=/\s+/,ub=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(lb);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:d,hasImportantModifier:f,baseClassName:c,maybePostfixModifierPosition:h}=n(u);let y=!!h,g=r(y?c.substring(0,h):c);if(!g){if(!y){a=u+(a.length>0?" "+a:a);continue}if(g=r(c),!g){a=u+(a.length>0?" "+a:a);continue}y=!1}const w=sb(d).join(":"),m=f?w+Ky:w,v=m+g;if(i.includes(v))continue;i.push(v);const p=o(g,y);for(let x=0;x<p.length;++x){const S=p[x];i.push(m+S)}a=u+(a.length>0?" "+a:a)}return a};function cb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Gy(t))&&(r&&(r+=" "),r+=n);return r}const Gy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Gy(e[r]))&&(n&&(n+=" "),n+=t);return n};function db(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((d,f)=>f(d),e());return n=ab(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=ub(l,n);return o(l,d),d}return function(){return i(cb.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},qy=/^\[(?:([a-z-]+):)?(.+)\]$/i,fb=/^\d+\/\d+$/,hb=new Set(["px","full","screen"]),pb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>vo(e)||hb.has(e)||fb.test(e),In=e=>Zo(e,"length",_b),vo=e=>!!e&&!Number.isNaN(Number(e)),ju=e=>Zo(e,"number",vo),fi=e=>!!e&&Number.isInteger(Number(e)),wb=e=>e.endsWith("%")&&vo(e.slice(0,-1)),ie=e=>qy.test(e),On=e=>pb.test(e),xb=new Set(["length","size","percentage"]),Eb=e=>Zo(e,xb,Zy),Sb=e=>Zo(e,"position",Zy),Cb=new Set(["image","url"]),bb=e=>Zo(e,Cb,Pb),kb=e=>Zo(e,"",Nb),hi=()=>!0,Zo=(e,t,n)=>{const r=qy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},_b=e=>mb.test(e)&&!gb.test(e),Zy=()=>!1,Nb=e=>yb.test(e),Pb=e=>vb.test(e),Tb=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),o=ye("borderColor"),i=ye("borderRadius"),s=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),u=ye("grayscale"),d=ye("hueRotate"),f=ye("invert"),c=ye("gap"),h=ye("gradientColorStops"),y=ye("gradientColorStopPositions"),g=ye("inset"),w=ye("margin"),m=ye("opacity"),v=ye("padding"),p=ye("saturate"),x=ye("scale"),S=ye("sepia"),b=ye("skew"),k=ye("space"),P=ye("translate"),I=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",ie,t],L=()=>[ie,t],j=()=>["",hn,In],C=()=>["auto",vo,ie],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",ie],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[vo,ie];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[hn,In],blur:["none","",On,ie],brightness:$(),borderColor:[e],borderRadius:["n
65one","","full",On,ie],borderSpacing:L(),borderWidth:j(),contrast:$(),grayscale:T(),hueRotate:$(),invert:T(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[wb,In],inset:D(),margin:D(),opacity:$(),padding:L(),saturate:$(),scale:$(),sepia:T(),skew:$(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[On]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),ie]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fi,ie]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",fi,ie]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",fi,ie]},ie]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[fi,ie]},ie]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[c]}],"gap-x":[{"gap-x":[c]}],"gap-y":[{"gap-y":[c]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[On]},On]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",On,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ju]}],"font-family":[{font:[hi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",vo,ju]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hn,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hn,In]}],"underline-offset":[{"underline-offset":["auto",hn,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),Sb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Eb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 5,180 bytes, line 65
65],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:M()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[hn,ie]}],"outline-w":[{outline:[hn,In]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[hn,In]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",On,kb]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",On,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[p]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[fi,ie]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 65
65],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hn,In,ju]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Mb=db(Tb);function Wr(...e){return Mb(Yy(e))}const Rb=YC,Jy=E.forwardRef(({className:e,...t},n)=>_.jsx(jy,{ref:n,className:Wr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Jy.displayName=jy.displayName;const Ab=XC("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ev=E.forwardRef(({className:e,variant:t,...n},r)=>_.jsx(Fy,{ref:r,className:Wr(Ab({variant:t}),e),...n}));ev.displayName=Fy.displayName;const Ib=E.forwardRef(({className:e,...t},n)=>_.jsx(Vy,{ref:n,className:Wr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ib.displayName=Vy.displayName;const tv=E.forwardRef(({className:e,...t},n)=>_.jsx(Uy,{ref:n,className:Wr("absolute right-2 top-2 rounded-md p-1 text-foreground
65/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:_.jsx(ZC,{className:"h-4 w-4"})}));tv.displayName=Uy.displayName;const nv=E.forwardRef(({className:e,...t},n)=>_.jsx(By,{ref:n,className:Wr("text-sm font-semibold",e),...t}));nv.displayName=By.displayName;const rv=E.forwardRef(({className:e,...t},n)=>_.jsx(Hy,{ref:n,className:Wr("text-sm opacity-90",e),...t}));rv.displayName=Hy.displayName;function Ob(){const{toasts:e}=nC();return _.jsxs(Rb,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return _.jsxs(ev,{...i,children:[_.jsxs("div",{className:"grid gap-1",children:[n&&_.jsx(nv,{children:n}),r&&_.jsx(rv,{children:r})]}),o,_.jsx(tv,{})]},t)}),_.jsx(Jy,{})]})}var Cp=["light","dark"],Lb="(prefers-color-scheme: dark)",$b=E.createContext(void 0),Db={setTheme:e=>{},themes:[]},zb=()=>{var e;return(e=E.useContext($b))!=null?e:Db};E.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?Cp.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",c=(y,g=!1,w=!0)=>{let m=s?s[y]:y,v=g?y+"|| ''":`'${m}'`,p="";return o&&w&&!g&&Cp.includes(y)&&(p+=`d.style.colorScheme = '${y}';`),n==="class"?g||m?p+=`c.add(${v})`:p+="null":m&&(p+=`d[s](n,${v})`),p},h=e?`!function(){${d}${c(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Lb}',m=window.matchMedia(t);if(m.media!==t||m.matches){${c("dark")}}else{${c("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${c(s?"x[e]":"e",!0)}}${u?"":"else{"+c(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${c(s?"x[e]":"e",!0)}}else{${c(i,!1,!1)};}${f}}catch(t){}}();`;return E.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var jb=e=>{switch(e){case"success":return Hb;case"info":return Ub;case"warning":return Vb;case"error":return Wb;default:return null}},Fb=Array(12).fill(0),Bb=({visible:e})=>W.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},W.createElement("div",{className:"sonner-spinner"},Fb.map((t,n)=>W.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Hb=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Vb=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ub=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Wb=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Yb=()=>{let[e,t]=W.useState(document.hidden);return W.useEffect(()=>{let n=()=>{t(document.hidden)};
65return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},qc=1,Xb=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:qc++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
65this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async i=>{if(Kb(i)&&!i.ok){o=!1;let s=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:s,description:a})}else if(t.success!==void 0){o=!1;let s=typeof t.success=="function"?await t.success(i):t.success,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:s,description:a})}}).catch(async i=>{if(t.error!==void 0){o=!1;let s=typeof t.error=="function"?await t.error(i):t.error,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:s,description:a})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||qc++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},lt=new Xb,Qb=(e,t)=>{let n=(t==null?void 0:t.id)||qc++;return lt.addToast({title:e,...t,id:n}),n},Kb=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gb=Qb,qb=()=>lt.toasts;Object.assign(Gb,{success:lt.success,info:lt.info,warning:lt.warning,error:lt.error,custom:lt.custom,message:lt.message,promise:lt.promise,dismiss:lt.dismiss,loading:lt.loading},{getHistory:qb});function Zb(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Zb(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
65left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
65:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
66`);function Xs(e){return e.label!==void 0}var Jb=3,ek="32px",tk=4e3,nk=356,rk=14,ok=20,ik=200;function sk(...e){return e.filter(Boolean).join(" ")}var ak=e=>{var t,n,r,o,i,s,a,l,u,d;let{invert:f,toast:c,unstyled:h,interacting:y,setHeights:g,visibleToasts:w,heights:m,index:v,toasts:p,expanded:x,removeToast:S,defaultRichColors:b,closeButton:k,style:P,cancelButtonStyle:I,actionButtonStyle:z,className:D="",descriptionClassName:L="",duration:j,position:C,gap:R,loadingIcon:M,expandByDefault:A,classNames:N,icons:T,closeButtonAriaLabel:O="Close toast",pauseWhenPageIsHidden:$,cn:F}=e,[H,U]=W.useState(!1),[Q,Y]=W.useState(!1),[G,X]=W.useState(!1),[q,re]=W.useState(!1),[oe,Z]=W.useState(0),[te,J]=W.useState(0),ce=W.useRef(null),de=W.useRef(null),st=v===0,Yt=v+1<=w,_e=c.type,Tt=c.dismissible!==!1,Yr=c.className||"",mr=c.descriptionClassName||"",Xt=W.useMemo(()=>m.findIndex(ne=>ne.toastId===c.id)||0,[m,c.id]),ti=W.useMemo(()=>{var ne;return(ne=c.closeButton)!=null?ne:k},[c.closeButton,k]),gr=W.useMemo(()=>c.duration||j||tk,[c.duration,j]),Qt=W.useRef(0),wt=W.useRef(0),ni=W.useRef(0),Rn=W.useRef(null),[Xr,ou]=C.split("-"),bs=W.useMemo(()=>m.reduce((ne,me,pe)=>pe>=Xt?ne:ne+me.height,0),[m,Xt]),ks=Yb(),iu=c.invert||f,ri=_e==="loading";wt.current=W.useMemo(()=>Xt*R+bs,[Xt,bs]),W.useEffect(()=>{U(!0)},[]),W.useLayoutEffect(()=>{if(!H)return;let ne=de.current,me=ne.style.height;ne.style.height="auto";let pe=ne.getBoundingClientRect().height;ne.style.height=me,J(pe),g(xt=>xt.find(Et=>Et.toastId===c.id)?xt.map(Et=>Et.toastId===c.id?{...Et,height:pe}:Et):[{toastId:c.id,height:pe,position:c.position},...xt])},[H,c.title,c.description,g,c.id]);let Kt=W.useCallback(()=>{Y(!0),Z(wt.current),g(ne=>ne.filter(me=>me.toastId!==c.id)),setTimeout(()=>{S(c)},ik)},[c,S,g,wt]);W.useEffect(()=>{if(c.promise&&_e==="loading"||c.duration===1/0||c.type==="loading")return;let ne,me=gr;return x||y||$&&ks?(()=>{if(ni.current<Qt.current){let pe=new Date().getTime()-Qt.current;me=me-pe}
66ni.current=new Date().getTime()})():me!==1/0&&(Qt.current=new Date().getTime(),ne=setTimeout(()=>{var pe;(pe=c.onAutoClose)==null||pe.call(c,c),Kt()},me)),()=>clearTimeout(ne)},[x,y,A,c,gr,Kt,c.promise,_e,$,ks]),W.useEffect(()=>{let ne=de.current;if(ne){let me=ne.getBoundingClientRect().height;return J(me),g(pe=>[{toastId:c.id,height:me,position:c.position},...pe]),()=>g(pe=>pe.filter(xt=>xt.toastId!==c.id))}},[g,c.id]),W.useEffect(()=>{c.delete&&Kt()},[Kt,c.delete]);function su(){return T!=null&&T.loading?W.createElement("div",{className:"sonner-loader","data-visible":_e==="loading"},T.loading):M?W.createElement("div",{className:"sonner-loader","data-visible":_e==="loading"},M):W.createElement(Bb,{visible:_e==="loading"})}return W.createElement("li",{"aria-live":c.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:de,className:F(D,Yr,N==null?void 0:N.toast,(t=c==null?void 0:c.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[_e],(n=c==null?void 0:c.classNames)==null?void 0:n[_e]),"data-sonner-toast":"","data-rich-colors":(r=c.richColors)!=null?r:b,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":H,"data-promise":!!c.promise,"data-removed":Q,"data-visible":Yt,"data-y-position":Xr,"data-x-position":ou,"data-index":v,"data-front":st,"data-swiping":G,"data-dismissible":Tt,"data-type":_e,"data-invert":iu,"data-swipe-out":q,"data-expanded":!!(x||A&&H),style:{"--index":v,"--toasts-before":v,"--z-index":p.length-v,"--offset":`${Q?oe:wt.current}px`,"--initial-height":A?"auto":`${te}px`,...P,...c.style},onPointerDown:ne=>{ri||!Tt||(ce.current=new Date,Z(wt.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(X(!0),Rn.current={x:ne.clientX,y:ne.clientY}))},onPointerUp:()=>{var ne,me,pe,xt;if(q||!Tt)return;Rn.current=null;let Et=Number(((ne=de.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Qr=new Date().getTime()-((me=ce.current)==null?void 0:me.getTime()),au=Math.abs(Et)/Qr;if(Math.abs(Et)>=ok||au>.11){Z(wt.current),(pe=c.onDismiss)==null||pe.call(c,c),Kt(),re(!0);return}(xt=de.current)==null||xt.style.setProperty("--swipe-amount","0px"),X(!1)},onPointerMove:ne=>{var me;if(!Rn.current||!Tt)return;let pe=ne.clientY-Rn.current.y,xt=ne.clientX-Rn.current.x,Et=(Xr==="top"?Math.min:Math.max)(0,pe),Qr=ne.pointerType==="touch"?10:2;Math.abs(Et)>Qr?(me=de.current)==null||me.style.setProperty("--swipe-amount",`${pe}px`):Math.abs(xt)>Qr&&(Rn.current=null)}},ti&&!c.jsx?W.createElement("button",{"aria-label":O,"data-disabled":ri,"data-close-button":!0,onClick:ri||!Tt?()=>{}:()=>{var ne;Kt(),(ne=c.onDismiss)==null||ne.call(c,c)},className:F(N==null?void 0:N.closeButton,(o=c==null?void 0:c.classNames)==null?void 0:o.closeButton)},W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},W.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),W.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,c.jsx||W.isValidElement(c.title)?c.jsx||c.title:W.createElement(W.Fragment,null,_e||c.icon||c.promise?W.createElement("div",{"data-icon":"",className:F(N==null?void 0:N.icon,(i=c==null?void 0:c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||su():null,c.type!=="loading"?c.icon||(T==null?void 0:T[_e])||jb(_e):null):null,W.createElement("div",{"data-content":"",className:F(N==null?void 0:N.content,(s=c==null?void 0:c.classNames)==null?void 0:s.content)},W.createElement("div",{"data-title":"",className:F(N==null?void 0:N.title,(a=c==null?void 0:c.classNames)==null?void 0:a.title)},c.title),c.description?W.createElement("div",{"data-description":"",className:F(L,mr,N==null?void 0:N.description,(l=c==null?void 0:c.classNames)==null?void 0:l.description)},c.description):null),W.isValidElement(c.cancel)?c.cancel:c.cancel&&Xs(c.cancel)?W.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||I,onClick:ne=>{var me,pe;Xs(c.cancel)&&Tt&&((pe=(me=c.cancel).onClick)==null||pe.call(me,ne),Kt())},className:F(N==null?void 0:N.cancelButton,(u=c==null?void 0:c.classNames)==null?void 0:u.cancelButton)},c.cancel.label):null,W.isValidElement(c.action)?c.action:c.action&&Xs(c.action)?W.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||z,onClick:ne=>{var me,pe;Xs(c.action)&&(ne.defaultPrevented||((pe=(me=c.action).onClick)==null||pe.call(me,ne),Kt()))},className:F(N==null?void 0:N.actionButton,(d=c==null?void 0:c.classNames)==null?void 0:d.actionButton)},c.action.label):null))};function bp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var lk=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:s,offset:a,theme:l="light",richColors:u,duration:d,style:f,visibleToasts:c=Jb,toastOptions:h,dir:y=bp(),gap:g=r
66k,loadingIcon:w,icons:m,containerAriaLabel:v="Notifications",pauseWhenPageIsHidden:p,cn:x=sk}=e,[S,b]=W.useState([]),k=W.useMemo(()=>Array.from(new Set([n].concat(S.filter($=>$.position).map($=>$.position)))),[S,n]),[P,I]=W.useState([]),[z,D]=W.useState(!1),[L,j]=W.useState(!1),[C,R]=W.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=W.useRef(null),A=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=W.useRef(null),T=W.useRef(!1),O=W.useCallback($=>{var F;(F=S.find(H=>H.id===$.id))!=null&&F.delete||lt.dismiss($.id),b(H=>H.filter(({id:U})=>U!==$.id))},[S]);return W.useEffect(()=>lt.subscribe($=>{if($.dismiss){b(F=>F.map(H=>H.id===$.id?{...H,delete:!0}:H));return}setTimeout(()=>{gy.flushSync(()=>{b(F=>{let H=F.findIndex(U=>U.id===$.id);return H!==-1?[...F.slice(0,H),{...F[H],...$},...F.slice(H+1)]:[$,...F]})})})}),[]),W.useEffect(()=>{if(l!=="system"){R(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:$})=>{R($?"dark":"light")})},[l]),W.useEffect(()=>{S.length<=1&&D(!1)},[S]),W.useEffect(()=>{let $=F=>{var H,U;r.every(Q=>F[Q]||F.code===Q)&&(D(!0),(H=M.current)==null||H.focus()),F.code==="Escape"&&(document.activeElement===M.current||(U=M.current)!=null&&U.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[r]),W.useEffect(()=>{if(M.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,T.current=!1)}},[M.current]),S.length?W.createElement("section",{"aria-label":`${v} ${A}`,tabIndex:-1},k.map(($,F)=>{var H;let[U,Q]=$.split("-");return W.createElement("ol",{key:$,dir:y==="auto"?bp():y,tabIndex:-1,ref:M,className:s,"data-sonner-toaster":!0,"data-theme":C,"data-y-position":U,"data-x-position":Q,style:{"--front-toast-height":`${((H=P[0])==null?void 0:H.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||ek,"--width":`${nk}px`,"--gap":`${g}px`,...f},onBlur:Y=>{T.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(T.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||T.current||(T.current=!0,N.current=Y.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{L||D(!1)},onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},S.filter(Y=>!Y.position&&F===0||Y.position===$).map((Y,G)=>{var X,q;return W.createElement(ak,{key:Y.id,icons:m,index:G,toast:Y,defaultRichColors:u,duration:(X=h==null?void 0:h.duration)!=null?X:d,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:t,visibleToasts:c,closeButton:(q=h==null?void 0:h.closeButton)!=null?q:i,interacting:L,position:$,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:O,toasts:S.filter(re=>re.position==Y.position),heights:P.filter(re=>re.position==Y.position),setHeights:I,expandByDefault:o,gap:g,loadingIcon:w,expanded:z,pauseWhenPageIsHidden:p,cn:x})}))})):null};const uk=({...e})=>{const{theme:t="system"}=zb();return _.jsx(lk,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},ck=["top","right","bottom","left"],lr=Math.min,ct=Math.max,Ga=Math.round,Qs=Math.floor,ur=e=>({x:e,y:e}),dk={left:"right",right:"left",bottom:"top",top:"bottom"},fk={start:"end",end:"start"};function Zc(e,t,n){return ct(e,lr(t,n))}function _n(e,t){return typeof e=="function"?e(t):e}function Nn(e){return e.split("-")[0]}function Jo(e){return e.split("-")[1]}function bf(e){return e==="x"?"y":"x"}function kf(e){return e==="y"?"height":"width"}function cr(e){return["top","bottom"].includes(Nn(e))?"y":"x"}function _f(e){return bf(cr(e))}function hk(e,t,n){n===void 0&&(n=!1);const r=Jo(e),o=_f(e),i=kf(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=qa(s)),[s,qa(s)]}function pk(e){const t=qa(e);return[Jc(e),t,Jc(t)]}
vendor: 10,967 bytes, line 66
66function Jc(e){return e.replace(/start|end/g,t=>fk[t])}function mk(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function gk(e,t,n,r){const o=Jo(e);let i=mk(Nn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Jc)))),i}function qa(e){return e.replace(/left|right|bottom|top/g,t=>dk[t])}function yk(e){return{top:0,right:0,bottom:0,left:0,...e}}function ov(e){return typeof e!="number"?yk(e):{top:e,right:e,bottom:e,left:e}}function Za(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function kp(e,t,n){let{reference:r,floating:o}=e;const i=cr(t),s=_f(t),a=kf(s),l=Nn(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,c=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Jo(t)){case"start":h[s]-=c*(n&&u?-1:1);break;case"end":h[s]+=c*(n&&u?-1:1);break}return h}const vk=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=kp(u,r,l),c=r,h={},y=0;for(let g=0;g<a.length;g++){const{name:w,fn:m}=a[g],{x:v,y:p,data:x,reset:S}=await m({x:d,y:f,initialPlacement:r,placement:c,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=v??d,f=p??f,h={...h,[w]:{...h[w],...x}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(c=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:f}=kp(u,c,l)),g=-1)}return{x:d,y:f,placement:c,strategy:o,middlewareData:h}};async function qi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:c=!1,padding:h=0}=_n(t,e),y=ov(h),w=a[c?f==="floating"?"reference":"floating":f],m=Za(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),v=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},S=Za(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:p,strategy:l}):v);return{top:(m.top-S.top+y.top)/x.y,bottom:(S.bottom-m.bottom+y.bottom)/x.y,left:(m.left-S.left+y.left)/x.x,right:(S.right-m.right+y.right)/x.x}}const wk=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=_n(e,t)||{};if(u==null)return{};const f=ov(d),c={x:n,y:r},h=_f(o),y=kf(h),g=await s.getDimensions(u),w=h==="y",m=w?"top":"left",v=w?"bottom":"right",p=w?"clientHeight":"clientWidth",x=i.reference[y]+i.reference[h]-c[h]-i.floating[y],S=c[h]-i.reference[h],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=b?b[p]:0;(!k||!await(s.isElement==null?void 0:s.isElement(b)))&&(k=a.floating[p]||i.floating[y]);const P=x/2-S/2,I=k/2-g[y]/2-1,z=lr(f[m],I),D=lr(f[v],I),L=z,j=k-g[y]-D,C=k/2-g[y]/2+P,R=Zc(L,C,j),M=!l.arrow&&Jo(o)!=null&&C!==R&&i.reference[y]/2-(C<L?z:D)-g[y]/2<0,A=M?C<L?C-L:C-j:0;return{[h]:c[h]+A,data:{[h]:R,centerOffset:C-R-A,...M&&{alignmentOffset:A}},reset:M}}}),xk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:c,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=_n(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Nn(o),v=cr(a),p=Nn(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=c||(p||!g?[qa(a)]:pk(a)),b=y!=="none";!c&&b&&S.push(...gk(a,g,y,x));const k=[a,...S],P=await qi(t,w),I=[];let z=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&I.push(P[m]),f){const C=hk(o,s,x);I.push(P[C[0]],P[C[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every(C=>C<=0)){var D,L;const C=(((D=i.flip)==null?void 0:D.index)||0)+1,R=k[C];if(R)return{data:{index:C,overflows:z},reset:{placement:R}};let M=(L=z.filter(A=>A.overflows[0]<=0).sort((A,N)=>A.overflows[1]-N.overflows[1])[0])==null?void 0:L.placement;if(!M)switch(h){case"bestFit":{var j;const A=(j=z.filter(N=>{if(b){const T=cr(N.placement);return T===v||T==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(T=>T>0).reduce((T,O)=>T+O,0)]).sort((N,T)=>N[1]-T[1])[0])==null?void 0:j[0];A&&(M=A);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function _p(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Np(e){return ck.some(t=>e[t]>=0)}const Ek=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_n(e,t);switch(r){case"referenceHidden":{const i=await qi(t,{...o,elementContext:"reference"}),s=_p(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Np(s)}}}case"escaped":{const i=await qi(t,{...o,altBoundary:!0}),s=_p(i,n.floating);return{data:{escapedOffsets:s,escaped:Np(s)}}}default:return{}}}}};async function Sk(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Nn(n),a=Jo(n),l=cr(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,f=_n(t,e);let{mainAxis:c,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),l?{x:h*d,y:c*u}:{x:c*u,y:h*d}}const Ck=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Sk(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},bk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:m,y:v}=w;return{x:m,y:v}}},...l}=_n(e,t),u={x:n,y:r},d=await qi(t,l),f=cr(Nn(o)),c=bf(f);let h=u[c],y=u[f];if(i){const w=c==="y"?"top":"left",m=c==="y"?"bottom":"right",v=h+d[w],p=h-d[m];h=Zc(v,h,p)}if(s){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",v=y+d[w],p=y-d[m];y=Zc(v,y,p)}const g=a.fn({...t,[c]:h,[f]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[c]:i,[f]:s}}}}}},kk=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=_n(e,t),d={x:n,y:r},f=cr(o),c=bf(f);let h=d[c],y=d[f];const g=_n(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const p=c==="y"?"height":"width",x=i.reference[c]-i.floating[p]+w.mainAxis,S=i.reference[c]+i.reference[p]-w.mainAxis;h<x?h=x:h>S&&(h=S)}if(u){var m,v;const p=c==="y"?"width":"height",x=["top","left"].includes(Nn(o)),S=i.reference[f]-i.floating[p]+(x&&((m=s.offset)==null?void 0:m[f])||0)+(x?0:w.crossAxis),b=i.reference[f]+i.reference[p]+(x?0:((v=s.offset)==null?void 0:v[f])||0)-(x?w.crossAxis:0);y<S?y=S:y>b&&(y=b)}return{[c]:h,[f]:y}}}},_k=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=_n(e,t),d=await qi(t,u),f=Nn(o),c=Jo(o),h=cr(o)==="y",{width:y,height:g}=i.floating;let w,m;f==="top"||f==="bottom"?(w=f,m=c===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,w=c==="end"?"top":"bottom");const v=g-d.top-d.bottom,p=y-d.left-d.right,x=lr(g-d[w],v),S=lr(y-d[m],p),b=!t.middlewareData.shift;let k=x,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=p),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=v),b&&!c){const z=ct(d.left,0),D=ct(d.right,0),L=ct(d.top,0),j=ct(d.bottom,0);h?P=y-2*(z!==0||D!==0?z+D:ct(d.left,d.right)):k=g-2*(L!==0||j!==0?L+j:ct(d.top,d.bottom))}await l({...t,availableWidth:P,availableHeight:k});const I=await s.getDimensions(a.floating);return y!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Ol(){return typeof window<"u"}function ei(e){return iv(e)?(e.nodeName||"").toLowerCase():"#document"}function pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(iv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iv(e){return Ol()?e instanceof Node||e instanceof pt(e).Node:!1}function Vt(e){return Ol()?e instanceof Element||e instanceof pt(e).Element:!1}function un(e){return Ol()?e instanceof HTMLElement||e instanceof pt(e).HTMLElement:!1}function Pp(e){return!Ol()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pt(e).ShadowRoot}function vs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Nk(e){return["table","td","th"].includes(ei(e))}function Ll(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Nf(e){const t=Pf(),n=Vt(e)?Ut(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Pk(e){let t=dr(e);for(;un(t)&&!jo(t);){if(Nf(t))return t;if(Ll(t))return null;t=dr(t)}return null}function Pf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jo(e){return["html","body","#document"].includes(ei(e))}function Ut(e){return pt(e).getComputedStyle(e)}function $l(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dr(e){if(ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pp(e)&&e.host||dn(e);return Pp(t)?t.host:t}function sv(e){const t=dr(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:un(t)&&vs(t)?t:sv(t)}function Zi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=sv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=pt(o);if(i){const a=ed(s);
vendor: 4,595 bytes, line 66
66return t.concat(s,s.visualViewport||[],vs(o)?o:[],a&&n?Zi(a):[])}return t.concat(o,Zi(o,[],n))}function ed(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function av(e){const t=Ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=un(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ga(n)!==i||Ga(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Tf(e){return Vt(e)?e:e.contextElement}function wo(e){const t=Tf(e);if(!un(t))return ur(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=av(t);let s=(i?Ga(n.width):n.width)/r,a=(i?Ga(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Tk=ur(0);function lv(e){const t=pt(e);return!Pf()||!t.visualViewport?Tk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pt(e)?!1:t}function jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Tf(e);let s=ur(1);t&&(r?Vt(r)&&(s=wo(r)):s=wo(e));const a=Mk(i,n,r)?lv(i):ur(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const c=pt(i),h=r&&Vt(r)?pt(r):r;let y=c,g=ed(y);for(;g&&r&&h!==y;){const w=wo(g),m=g.getBoundingClientRect(),v=Ut(g),p=m.left+(g.clientLeft+parseFloat(v.paddingLeft))*w.x,x=m.top+(g.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,f*=w.y,l+=p,u+=x,y=pt(g),g=ed(y)}}return Za({width:d,height:f,x:l,y:u})}function Rk(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=dn(r),a=t?Ll(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ur(1);const d=ur(0),f=un(r);if((f||!f&&!i)&&((ei(r)!=="body"||vs(s))&&(l=$l(r)),un(r))){const c=jr(r);u=wo(r),d.x=c.x+r.clientLeft,d.y=c.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x,y:n.y*u.y-l.scrollTop*u.y+d.y}}function Ak(e){return Array.from(e.getClientRects())}function td(e,t){const n=$l(e).scrollLeft;return t?t.left+n:jr(dn(e)).left+n}function Ik(e){const t=dn(e),n=$l(e),r=e.ownerDocument.body,o=ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+td(e);const a=-n.scrollTop;return Ut(r).direction==="rtl"&&(s+=ct(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function Ok(e,t){const n=pt(e),r=dn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Pf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function Lk(e,t){const n=jr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=un(e)?wo(e):ur(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Tp(e,t,n){let r;if(t==="viewport")r=Ok(e,n);else if(t==="document")r=Ik(dn(e));else if(Vt(t))r=Lk(t,n);else{const o=lv(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Za(r)}function uv(e,t){const n=dr(e);return n===t||!Vt(n)||jo(n)?!1:Ut(n).position==="fixed"||uv(n,t)}function $k(e,t){const n=t.get(e);if(n)return n;let r=Zi(e,[],!1).filter(a=>Vt(a)&&ei(a)!=="body"),o=null;const i=Ut(e).position==="fixed";let s=i?dr(e):e;for(;Vt(s)&&!jo(s);){const a=Ut(s),l=Nf(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||vs(s)&&!l&&uv(e,s))?r=r.filter(d=>d!==s):o=a,s=dr(s)}return t.set(e,r),r}function Dk(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ll(t)?[]:$k(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const f=Tp(t,d,o);return u.top=ct(f.top,u.top),u.right=lr(f.right,u.right),u.bottom=lr(f.bottom,u.bottom),u.left=ct(f.left,u.left),u},Tp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function zk(e){const{width:t,height:n}=av(e);return{width:t,height:n}}function jk(e,t,n){const r=un(t),o=dn(t),i=n==="fixed",s=jr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ur(0);if(r||!r&&!i)if((ei(t)!=="body"||vs(o))&&(a=$l(t)),r){const h=jr(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&(l.x=td(o));let u=0,d=0;if(o&&!r&&!i){const h=o.getBoundingClientRect();d=h.top+a.scrollTop,u=h.left+a.scrollLeft-td(o,h)}const f=s.left+a.scrollLeft-l.x-u,c=s.top+a.scrollTop-l.y-d;return{x:f,y:c,width:s.width,height:s.height}}function Fu(e){return Ut(e).position==="static"}function Mp(e,t){if(!un(e)||Ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function cv(e,t){const n=pt(e);
vendor: 9,782 bytes, line 66
66if(Ll(e))return n;if(!un(e)){let o=dr(e);for(;o&&!jo(o);){if(Vt(o)&&!Fu(o))return o;o=dr(o)}return n}let r=Mp(e,t);for(;r&&Nk(r)&&Fu(r);)r=Mp(r,t);return r&&jo(r)&&Fu(r)&&!Nf(r)?n:r||Pk(e)||n}const Fk=async function(e){const t=this.getOffsetParent||cv,n=this.getDimensions,r=await n(e.floating);return{reference:jk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bk(e){return Ut(e).direction==="rtl"}const Hk={convertOffsetParentRelativeRectToViewportRelativeRect:Rk,getDocumentElement:dn,getClippingRect:Dk,getOffsetParent:cv,getElementRects:Fk,getClientRects:Ak,getDimensions:zk,getScale:wo,isElement:Vt,isRTL:Bk};function Vk(e,t){let n=null,r;const o=dn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:f,height:c}=e.getBoundingClientRect();if(a||t(),!f||!c)return;const h=Qs(d),y=Qs(o.clientWidth-(u+f)),g=Qs(o.clientHeight-(d+c)),w=Qs(u),v={rootMargin:-h+"px "+-y+"px "+-g+"px "+-w+"px",threshold:ct(0,lr(1,l))||1};let p=!0;function x(S){const b=S[0].intersectionRatio;if(b!==l){if(!p)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},1e3)}p=!1}try{n=new IntersectionObserver(x,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,v)}n.observe(e)}return s(!0),i}function Uk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Tf(e),d=o||i?[...u?Zi(u):[],...Zi(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=u&&a?Vk(u,n):null;let c=-1,h=null;s&&(h=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var p;(p=h)==null||p.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let y,g=l?jr(e):null;l&&w();function w(){const m=jr(e);g&&(m.x!==g.x||m.y!==g.y||m.width!==g.width||m.height!==g.height)&&n(),g=m,y=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f==null||f(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const Wk=Ck,Yk=bk,Xk=xk,Qk=_k,Kk=Ek,Rp=wk,Gk=kk,qk=(e,t,n)=>{const r=new Map,o={platform:Hk,...n},i={...o.platform,_c:r};return vk(e,t,{...o,platform:i})};var wa=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Ja(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ja(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ja(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function dv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ap(e,t){const n=dv(e);return Math.round(t*n)/n}function Bu(e){const t=E.useRef(e);return wa(()=>{t.current=e}),t}function Zk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[c,h]=E.useState(r);Ja(c,r)||h(r);const[y,g]=E.useState(null),[w,m]=E.useState(null),v=E.useCallback(N=>{N!==b.current&&(b.current=N,g(N))},[]),p=E.useCallback(N=>{N!==k.current&&(k.current=N,m(N))},[]),x=i||y,S=s||w,b=E.useRef(null),k=E.useRef(null),P=E.useRef(d),I=l!=null,z=Bu(l),D=Bu(o),L=Bu(u),j=E.useCallback(()=>{if(!b.current||!k.current)return;const N={placement:t,strategy:n,middleware:c};D.current&&(N.platform=D.current),qk(b.current,k.current,N).then(T=>{const O={...T,isPositioned:L.current!==!1};C.current&&!Ja(P.current,O)&&(P.current=O,ys.flushSync(()=>{f(O)}))})},[c,t,n,D,L]);wa(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);const C=E.useRef(!1);wa(()=>(C.current=!0,()=>{C.current=!1}),[]),wa(()=>{if(x&&(b.current=x),S&&(k.current=S),x&&S){if(z.current)return z.current(x,S,j);j()}},[x,S,j,z,I]);const R=E.useMemo(()=>({reference:b,floating:k,setReference:v,setFloating:p}),[v,p]),M=E.useMemo(()=>({reference:x,floating:S}),[x,S]),A=E.useMemo(()=>{const N={position:n,left:0,top:0};if(!M.floating)return N;const T=Ap(M.floating,d.x),O=Ap(M.floating,d.y);return a?{...N,transform:"translate("+T+"px, "+O+"px)",...dv(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:O}},[n,a,M.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:j,refs:R,elements:M,floatingStyles:A}),[d,j,R,M,A])}const Jk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Rp({element:r.current,padding:o}).fn(n):{}:r?Rp({element:r,padding:o}).fn(n):{}}}},e_=(e,t)=>({...Wk(e),options:[e,t]}),t_=(e,t)=>({...Yk(e),options:[e,t]}),n_=(e,t)=>({...Gk(e),options:[e,t]}),r_=(e,t)=>({...Xk(e),options:[e,t]}),o_=(e,t)=>({...Qk(e),options:[e,t]}),i_=(e,t)=>({...Kk(e),options:[e,t]}),s_=(e,t)=>({...Jk(e),options:[e,t]});var a_="Arrow",fv=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return _.jsx(it.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});fv.displayName=a_;var l_=fv;function u_(e,t=[]){let n=[];function r(i,s){const a=E.createContext(s),l=n.length;n=[...n,s];function u(f){const{scope:c,children:h,...y}=f,g=(c==null?void 0:c[e][l])||a,w=E.useMemo(()=>y,Object.values(y));return _.jsx(g.Provider,{value:w,children:h})}function d(f,c){const h=(c==null?void 0:c[e][l])||a,y=E.useContext(h);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>E.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return E.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,c_(o,...t)]}function c_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function d_(e){const[t,n]=E.useState(void 0);return zr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var hv="Popper",[pv,mv]=u_(hv),[vI,gv]=pv(hv),yv="PopperAnchor",vv=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=gv(yv,n),s=E.useRef(null),a=Ht(t,s);return E.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:_.jsx(it.div,{...o,ref:a})});vv.displayName=yv;var Mf="PopperContent",[f_,h_]=pv(Mf),wv=E.forwardRef((e,t)=>{var G,X,q,re,oe,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:c=!1,updatePositionStrategy:h="optimized",onPlaced:y,...g}=e,w=gv(Mf,n),[m,v]=E.useState(null),p=Ht(t,te=>v(te)),[x,S]=E.useState(null),b=d_(x),k=(b==null?void 0:b.width)??0,P=(b==null?void 0:b.height)??0,I=r+(i!=="center"?"-"+i:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],L=D.length>0,j={padding:z,boundary:D.filter(m_),altBoundary:L},{refs:C,floatingStyles:R,placement:M,isPositioned:A,middlewareData:N}=Zk({strategy:"fixed",placement:I,whileElementsMounted:(...te)=>Uk(...te,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[e_({mainAxis:o+P,alignmentAxis:s}),l&&t_({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?n_():void 0,...j}),l&&r_({...j}),o_({...j,apply:({elements:te,rects:J,availableWidth:ce,availableHeight:de})=>{const{width:st,height:Yt}=J.reference,_e=te.floating.style;_e.setProperty("--radix-popper-available-width",`${ce}px`),_e.setProperty("--radix-popper-available-height",`${de}px`),_e.setProperty("--radix-popper-anchor-width",`${st}px`),_e.setProperty("--radix-popper-anchor-height",`${Yt}px`)}}),x&&s_({element:x,padding:a}),g_({arrowWidth:k,arrowHeight:P}),c&&i_({strategy:"referenceHidden",...j})]}),[T,O]=Sv(M),$=ln(y);zr(()=>{A&&($==null||$())},[A,$]);const F=(G=N.arrow)==null?void 0:G.x,H=(X=N.arrow)==null?void 0:X.y,U=((q=N.arrow)==null?void 0:q.centerOffset)!==0,[Q,Y]=E.useState();return zr(()=>{m&&Y(window.getComputedStyle(m).zIndex)},[m]),_.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:A?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[(re=N.transformOrigin)==null?void 0:re.x,(oe=N.transformOrigin)==null?void 0:oe.y].join(" "),...((Z=N.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:_.jsx(f_,{scope:n,placedSide:T,onArrowChange:S,arrowX:F,arrowY:H,shouldHideArrow:U,children:_.jsx(it.div,{"data-side":T,"data-align":O,...g,ref:p,style:{...g.style,animation:A?void 0:"none"}})})})});
vendor: 8,556 bytes, line 66
66wv.displayName=Mf;var xv="PopperArrow",p_={top:"bottom",right:"left",bottom:"top",left:"right"},Ev=E.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=h_(xv,r),s=p_[i.placedSide];return _.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:_.jsx(l_,{...o,ref:n,style:{...o.style,display:"block"}})})});Ev.displayName=xv;function m_(e){return e!==null}var g_=e=>({name:"transformOrigin",options:e,fn(t){var w,m,v;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=Sv(n),f={start:"0%",center:"50%",end:"100%"}[d],c=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,h=(((v=o.arrow)==null?void 0:v.y)??0)+l/2;let y="",g="";return u==="bottom"?(y=s?f:`${c}px`,g=`${-l}px`):u==="top"?(y=s?f:`${c}px`,g=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,g=s?f:`${h}px`):u==="left"&&(y=`${r.floating.width+l}px`,g=s?f:`${h}px`),{data:{x:y,y:g}}}});function Sv(e){const[t,n="center"]=e.split("-");return[t,n]}var y_=vv,v_=wv,w_=Ev,[Dl,wI]=xy("Tooltip",[mv]),Rf=mv(),Cv="TooltipProvider",x_=700,Ip="tooltip.open",[E_,bv]=Dl(Cv),kv=e=>{const{__scopeTooltip:t,delayDuration:n=x_,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[s,a]=E.useState(!0),l=E.useRef(!1),u=E.useRef(0);return E.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),_.jsx(E_,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:E.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:E.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:i})};kv.displayName=Cv;var _v="Tooltip",[xI,zl]=Dl(_v),nd="TooltipTrigger",S_=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=zl(nd,n),i=bv(nd,n),s=Rf(n),a=E.useRef(null),l=Ht(t,a,o.onTriggerChange),u=E.useRef(!1),d=E.useRef(!1),f=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),_.jsx(y_,{asChild:!0,...s,children:_.jsx(it.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Ie(e.onPointerMove,c=>{c.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ie(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Ie(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ie(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Ie(e.onBlur,o.onClose),onClick:Ie(e.onClick,o.onClose)})})});S_.displayName=nd;var C_="TooltipPortal",[EI,b_]=Dl(C_,{forceMount:void 0}),Fo="TooltipContent",Nv=E.forwardRef((e,t)=>{const n=b_(Fo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=zl(Fo,e.__scopeTooltip);return _.jsx(wf,{present:r||s.open,children:s.disableHoverableContent?_.jsx(Pv,{side:o,...i,ref:t}):_.jsx(k_,{side:o,...i,ref:t})})}),k_=E.forwardRef((e,t)=>{const n=zl(Fo,e.__scopeTooltip),r=bv(Fo,e.__scopeTooltip),o=E.useRef(null),i=Ht(t,o),[s,a]=E.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,c=E.useCallback(()=>{a(null),f(!1)},[f]),h=E.useCallback((y,g)=>{const w=y.currentTarget,m={x:y.clientX,y:y.clientY},v=T_(m,w.getBoundingClientRect()),p=M_(m,v),x=R_(g.getBoundingClientRect()),S=I_([...p,...x]);a(S),f(!0)},[f]);return E.useEffect(()=>()=>c(),[c]),E.useEffect(()=>{if(l&&d){const y=w=>h(w,d),g=w=>h(w,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",g)}}},[l,d,h,c]),E.useEffect(()=>{if(s){const y=g=>{const w=g.target,m={x:g.clientX,y:g.clientY},v=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),p=!A_(m,s);v?c():p&&(c(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,s,u,c]),_.jsx(Pv,{...e,ref:i})}),[__,N_]=Dl(_v,{isInside:!1}),Pv=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=zl(Fo,n),u=Rf(n),{onClose:d}=l;return E.useEffect(()=>(document.addEventListener(Ip,d),()=>document.removeEventListener(Ip,d)),[d]),E.useEffect(()=>{if(l.trigger){const f=c=>{const h=c.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),_.jsx(vf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:_.jsxs(v_,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[_.jsx(wy,{children:r}),_.jsx(__,{scope:n,isInside:!0,children:_.jsx(PC,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Nv.displayName=Fo;var Tv="TooltipArrow",P_=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Rf(n);return N_(Tv,n).isInside?null:_.jsx(w_,{...o,...r,ref:t})});P_.displayName=Tv;function T_(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function M_(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function R_(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function A_(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,u=t[s].x,d=t[s].y;l>r!=d>r&&n<(u-a)*(r-l)/(d-l)+a&&(o=!o)}return o}function I_(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),O_(t)}function O_(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var L_=kv,Mv=Nv;const $_=L_,D_=E.forwardRef(({className:e,sideOffset:t=4,...n},r)=>_.jsx(Mv,{ref:r,sideOffset:t,className:Wr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));D_.displayName=Mv.displayName;var jl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fl=typeof window>"u"||"Deno"in globalThis;function At(){}function z_(e,t){return typeof e=="function"?e(t):e}function j_(e){return typeof e=="number"&&e>=0&&e!==1/0}function F_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Op(e,t){return typeof e=="function"?e(t):e}function B_(e,t){return typeof e=="function"?e(t):e}function Lp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Af(s,t.options))return!1}
vendor: 22,405 bytes, line 66
66else if(!es(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function $p(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ji(t.options.mutationKey)!==Ji(i))return!1}else if(!es(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Af(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ji)(e)}function Ji(e){return JSON.stringify(e,(t,n)=>rd(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function es(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!es(e[n],t[n])):!1}function Rv(e,t){if(e===t)return e;const n=Dp(e)&&Dp(t);if(n||rd(e)&&rd(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const d=n?u:i[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Rv(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function Dp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function rd(e){if(!zp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!zp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function zp(e){return Object.prototype.toString.call(e)==="[object Object]"}function H_(e){return new Promise(t=>{setTimeout(t,e)})}function V_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Rv(e,t):t}function U_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var If=Symbol();function Av(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===If?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var br,Vn,Co,Gm,Y_=(Gm=class extends jl{constructor(){super();fe(this,br);fe(this,Vn);fe(this,Co);se(this,Co,t=>{if(!Fl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){B(this,Vn)||this.setEventListener(B(this,Co))}onUnsubscribe(){var t;this.hasListeners()||((t=B(this,Vn))==null||t.call(this),se(this,Vn,void 0))}setEventListener(t){var n;se(this,Co,t),(n=B(this,Vn))==null||n.call(this),se(this,Vn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){B(this,br)!==t&&(se(this,br,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof B(this,br)=="boolean"?B(this,br):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},br=new WeakMap,Vn=new WeakMap,Co=new WeakMap,Gm),Iv=new Y_,bo,Un,ko,qm,X_=(qm=class extends jl{constructor(){super();fe(this,bo,!0);fe(this,Un);fe(this,ko);se(this,ko,t=>{if(!Fl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){B(this,Un)||this.setEventListener(B(this,ko))}onUnsubscribe(){var t;this.hasListeners()||((t=B(this,Un))==null||t.call(this),se(this,Un,void 0))}setEventListener(t){var n;se(this,ko,t),(n=B(this,Un))==null||n.call(this),se(this,Un,t(this.setOnline.bind(this)))}setOnline(t){B(this,bo)!==t&&(se(this,bo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return B(this,bo)}},bo=new WeakMap,Un=new WeakMap,ko=new WeakMap,qm),el=new X_;function Q_(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function K_(e){return Math.min(1e3*2**e,3e4)}function Ov(e){return(e??"online")==="online"?el.isOnline():!0}var Lv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Hu(e){return e instanceof Lv}function $v(e){let t=!1,n=0,r=!1,o;const i=Q_(),s=g=>{var w;r||(c(new Lv(g)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Iv.isFocused()&&(e.networkMode==="always"||el.isOnline())&&e.canRun(),d=()=>Ov(e.networkMode)&&e.canRun(),f=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),o==null||o(),i.resolve(g))},c=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),o==null||o(),i.reject(g))},h=()=>new Promise(g=>{var w;o=m=>{(r||u())&&g(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(f).catch(m=>{var b;if(r)return;const v=e.retry??(Fl?0:3),p=e.retryDelay??K_,x=typeof p=="function"?p(n,m):p,S=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,m);if(t||!S){c(m);return}n++,(b=e.onFail)==null||b.call(e,n,m),H_(x).then(()=>u()?void 0:h()).then(()=>{t?c(m):y()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?y():h().then(y),i)}}function G_(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=a=>setTimeout(a,0);const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Qe=G_(),kr,Zm,Dv=(Zm=class{constructor(){fe(this,kr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),j_(this.gcTime)&&se(this,kr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fl?1/0:5*60*1e3))}clearGcTimeout(){B(this,kr)&&(clearTimeout(B(this,kr)),se(this,kr,void 0))}},kr=new WeakMap,Zm),_o,No,St,Ve,cs,_r,It,mn,Jm,q_=(Jm=class extends Dv{constructor(t){super();fe(this,It);fe(this,_o);fe(this,No);fe(this,St);fe(this,Ve);fe(this,cs);fe(this,_r);se(this,_r,!1),se(this,cs,t.defaultOptions),this.setOptions(t.options),this.observers=[],se(this,St,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,se(this,_o,J_(this.options)),this.state=t.state??B(this,_o),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=B(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...B(this,cs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&B(this,St).remove(this)}setData(t,n){const r=V_(this.state.data,t,this.options);return Fe(this,It,mn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Fe(this,It,mn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=B(this,Ve))==null?void 0:r.promise;return(o=B(this,Ve))==null||o.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(B(this,_o))}isActive(){return this.observers.some(t=>B_(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===If||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!F_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=B(this,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=B(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),B(this,St).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(B(this,Ve)&&(B(this,_r)?B(this,Ve).cancel({revert:!0}):B(this,Ve).cancelRetry()),this.scheduleGc()),B(this,St).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,It,mn).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(B(this,Ve))return B(this,Ve).continueRetry(),B(this,Ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(c=>c.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(se(this,_r,!0),r.signal)})},i=()=>{const f=Av(this.options,n),c={queryKey:this.queryKey,meta:this.meta};return o(c),se(this,_r,!1),this.options.persister?this.options.persister(f,c,this):f(c)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(s),(l=this.options.behavior)==null||l.onFetch(s,this),se(this,No,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&Fe(this,It,mn).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const a=f=>{var c,h,y,g;Hu(f)&&f.silent||Fe(this,It,mn).call(this,{type:"error",error:f}),Hu(f)||((h=(c=B(this,St).config).onError)==null||h.call(c,f,this),(g=(y=B(this,St).config).onSettled)==null||g.call(y,this.state.data,f,this)),this.scheduleGc()};return se(this,Ve,$v({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var c,h,y,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){a(w);return}(h=(c=B(this,St).config).onSuccess)==null||h.call(c,f,this),(g=(y=B(this,St).config).onSettled)==null||g.call(y,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,c)=>{Fe(this,It,mn).call(this,{type:"failed",failureCount:f,error:c})},onPause:()=>{Fe(this,It,mn).call(this,{type:"pause"})},onContinue:()=>{Fe(this,It,mn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),B(this,Ve).start()}},_o=new WeakMap,No=new WeakMap,St=new WeakMap,Ve=new WeakMap,cs=new WeakMap,_r=new WeakMap,It=new WeakSet,mn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Z_(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Hu(o)&&o.revert&&B(this,No)?{...B(this,No),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),B(this,St).notify({query:this,type:"updated",action:t})})},Jm);function Z_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ov(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function J_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zt,eg,e2=(eg=class extends jl{constructor(t={}){super();fe(this,Zt);this.config=t,se(this,Zt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Af(o,n);let s=this.get(i);return s||(s=new q_({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){B(this,Zt).has(t.queryHash)||(B(this,Zt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=B(this,Zt).get(t.queryHash);n&&(t.destroy(),n===t&&B(this,Zt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return B(this,Zt).get(t)}getAll(){return[...B(this,Zt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Lp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Lp(t,r)):n}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zt=new WeakMap,eg),Jt,Ye,Nr,en,Dn,tg,t2=(tg=class extends Dv{constructor(t){super();fe(this,en);fe(this,Jt);fe(this,Ye);fe(this,Nr);this.mutationId=t.mutationId,se(this,Ye,t.mutationCache),se(this,Jt,[]),this.state=t.state||n2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){B(this,Jt).includes(t)||(B(this,Jt).push(t),this.clearGcTimeout(),B(this,Ye).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){se(this,Jt,B(this,Jt).filter(n=>n!==t)),this.scheduleGc(),B(this,Ye).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){B(this,Jt).length||(this.state.status==="pending"?this.scheduleGc():B(this,Ye).remove(this))}continue(){var t;return((t=B(this,Nr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,u,d,f,c,h,y,g,w,m,v,p,x,S,b,k;se(this,Nr,$v({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{Fe(this,en,Dn).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{Fe(this,en,Dn).call(this,{type:"pause"})},onContinue:()=>{Fe(this,en,Dn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>B(this,Ye).canRun(this)}));const n=this.state.status==="pending",r=!B(this,Nr).canStart();try{if(!n){Fe(this,en,Dn).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=B(this,Ye).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));I!==this.state.context&&Fe(this,en,Dn).call(this,{type:"pending",context:I,variables:t,isPaused:r})}const P=await B(this,Nr).start();return await((u=(l=B(this,Ye).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,P,t,this.state.context)),await((h=(c=B(this,Ye).config).onSettled)==null?void 0:h.call(c,P,null,this.state.variables,this.state.context,this)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,P,null,t,this.state.context)),Fe(this,en,Dn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((m=(w=B(this,Ye).config).onError)==null?void 0:m.call(w,P,t,this.state.context,this)),await((p=(v=this.options).onError)==null?void 0:p.call(v,P,t,this.state.context)),await((S=(x=B(this,Ye).config).onSettled)==null?void 0:S.call(x,void 0,P,this.state.variables,this.state.context,this)),await((k=(b=this.options).onSettled)==null?void 0:k.call(b,void 0,P,t,this.state.context)),P}finally{Fe(this,en,Dn).call(this,{type:"error",error:P})}}finally{B(this,Ye).runNext(this)}}},Jt=new WeakMap,Ye=new WeakMap,Nr=new WeakMap,en=new WeakSet,Dn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qe.batch(()=>{B(this,Jt).forEach(r=>{r.onMutationUpdate(t)}),B(this,Ye).notify({mutation:this,type:"updated",action:t})})},tg);function n2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var at,ds,ng,r2=(ng=class extends jl{constructor(t={}){super();fe(this,at);fe(this,ds);this.config=t,se(this,at,new Map),se(this,ds,Date.now())}build(t,n,r){const o=new t2({mutationCache:this,mutationId:++Ns(this,ds)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=Ks(t),r=B(this,at).get(n)??[];r.push(t),B(this,at).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ks(t);if(B(this,at).has(n)){const o=(r=B(this,at).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?B(this,at).delete(n):B(this,at).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=B(this,at).get(Ks(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=B(this,at).get(Ks(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...B(this,at).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$p(n,r))}findAll(t={}){return this.getAll().filter(n=>$p(t,n))}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(At))))}},at=new WeakMap,ds=new WeakMap,ng);function Ks(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function jp(e){return{onFetch:(t,n)=>{var d,f,c,h,y;const r=t.options,o=(c=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:c.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const w=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=Av(t.options,t.fetchOptions),v=async(p,x,S)=>{if(g)return Promise.reject();if(x==null&&p.pages.length)return Promise.resolve(p);const b={queryKey:t.queryKey,pageParam:x,direction:S?"backward":"forward",meta:t.options.meta};w(b);const k=await m(b),{maxPages:P}=t.options,I=S?W_:U_;return{pages:I(p.pages,k,P),pageParams:I(p.pageParams,x,P)}};if(o&&i.length){const p=o==="backward",x=p?o2:Fp,S={pages:i,pageParams:s},b=x(r,S);a=await v(S,b,p)}else{const p=e??i.length;do{const x=l===0?s[0]??r.initialPageParam:Fp(r,a);if(l>0&&x==null)break;a=await v(a,x),l++}while(l<p)}return a};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Fp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function o2(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ne,Wn,Yn,Po,To,Xn,Mo,Ro,rg,i2=(rg=class{constructor(e={}){fe(this,Ne);fe(this,Wn);fe(this,Yn);fe(this,Po);fe(this,To);fe(this,Xn);fe(this,Mo);fe(this,Ro);se(this,Ne,e.queryCache||new e2),se(this,Wn,e.mutationCache||new r2),se(this,Yn,e.defaultOptions||{}),se(this,Po,new Map),se(this,To,new Map),se(this,Xn,0)}mount(){Ns(this,Xn)._++,B(this,Xn)===1&&(se(this,Mo,Iv.subscribe(async e=>{e&&(await this.resumePausedMutations(),B(this,Ne).onFocus())})),se(this,Ro,el.subscribe(async e=>{e&&(await this.resumePausedMutations(),B(this,Ne).onOnline())})))}unmount(){var e,t;Ns(this,Xn)._--,B(this,Xn)===0&&((e=B(this,Mo))==null||e.call(this),se(this,Mo,void 0),(t=B(this,Ro))==null||t.call(this),se(this,Ro,void 0))}isFetching(e){return B(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return B(this,Wn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=B(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=B(this,Ne).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Op(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return B(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=B(this,Ne).get(r.queryHash),i=o==null?void 0:o.state.data,s=z_(t,i);if(s!==void 0)return B(this,Ne).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Qe.batch(()=>B(this,Ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=B(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=B(this,Ne);Qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=B(this,Ne),r={type:"active",...e};return Qe.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Qe.batch(()=>B(this,Ne).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(At).catch(At)}invalidateQueries(e={},t={}){return Qe.batch(()=>
66{if(B(this,Ne).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Qe.batch(()=>B(this,Ne).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(At)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=B(this,Ne).build(this,t);return n.isStaleByTime(Op(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=jp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=jp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return el.isOnline()?B(this,Wn).resumePausedMutations():Promise.resolve()}getQueryCache(){return B(this,Ne)}getMutationCache(){return B(this,Wn)}getDefaultOptions(){return B(this,Yn)}setDefaultOptions(e){se(this,Yn,e)}setQueryDefaults(e,t){B(this,Po).set(Ji(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...B(this,Po).values()];let n={};return t.forEach(r=>{es(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){B(this,To).set(Ji(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...B(this,To).values()];let n={};return t.forEach(r=>{es(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...B(this,Yn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Af(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===If&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...B(this,Yn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){B(this,Ne).clear(),B(this,Wn).clear()}},Ne=new WeakMap,Wn=new WeakMap,Yn=new WeakMap,Po=new WeakMap,To=new WeakMap,Xn=new WeakMap,Mo=new WeakMap,Ro=new WeakMap,rg),s2=E.createContext(void 0),a2=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),_.jsx(s2.Provider,{value:e,children:t}));/**
67 * @remix-run/router v1.20.0
68 *
69 * Copyright (c) Remix Software Inc.
70 *
71 * This source code is licensed under the MIT license found in the
72 * LICENSE.md file in the root directory of this source tree.
73 *
74 * @license MIT
75 */function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(this,arguments)}var Gn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Gn||(Gn={}));const Bp="popstate";function l2(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return od("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:jv(o)}return c2(t,n,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function u2(){return Math.random().toString(36).substr(2,8)}function Hp(e,t){return{usr:e.state,key:e.key,idx:t}}function od(e,t,n,r){return n===void 0&&(n=null),tl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bl(t):t,{state:n,key:t&&t.key||r||u2()})}function jv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function c2(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Gn.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(tl({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=Gn.Pop;let w=d(),m=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:m})}function c(w,m){a=Gn.Push;let v=od(g.location,w,m);u=d()+1;let p=Hp(v,u),x=g.createHref(v);try{s.pushState(p,"",x)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(x)}i&&l&&l({action:a,location:g.location,delta:1})}function h(w,m){a=Gn.Replace;let v=od(g.location,w,m);u=d();let p=Hp(v,u),x=g.createHref(v);s.replaceState(p,"",x),i&&l&&l({action:a,location:g.location,delta:0})}function y(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof w=="string"?w:jv(w);return v=v.replace(/ $/,"%20"),ot(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Bp,f),l=w,()=>{o.removeEventListener(Bp,f),l=null}},createHref(w){return t(o,w)},createURL:y,encodeLocation(w){let m=y(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:c,replace:h,go(w){return s.go(w)}};return g}var Vp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}
vendor: 6,433 bytes, lines 75-84
75)(Vp||(Vp={}));function d2(e,t,n){return n===void 0&&(n="/"),f2(e,t,n,!1)}function f2(e,t,n,r){let o=typeof t=="string"?Bl(t):t,i=Hv(o.pathname||"/",n);if(i==null)return null;let s=Fv(e);h2(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=b2(i);a=S2(s[l],u,r)}return a}function Fv(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ot(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=xo([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(ot(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fv(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:x2(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Bv(i.path))o(i,s,l)}),t}function Bv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Bv(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function h2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:E2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const p2=/^:[\w-]+$/,m2=3,g2=2,y2=1,v2=10,w2=-2,Up=e=>e==="*";function x2(e,t){let n=e.split("/"),r=n.length;return n.some(Up)&&(r+=w2),t&&(r+=g2),n.filter(o=>!Up(o)).reduce((o,i)=>o+(p2.test(i)?m2:i===""?y2:v2),r)}function E2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function S2(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=Wp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),c=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Wp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),s.push({params:o,pathname:xo([i,f.pathname]),pathnameBase:k2(xo([i,f.pathnameBase])),route:c}),f.pathnameBase!=="/"&&(i=xo([i,f.pathnameBase]))}return s}function Wp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=C2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:c,isOptional:h}=d;if(c==="*"){let g=a[f]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=a[f];return h&&!y?u[c]=void 0:u[c]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function C2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function b2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Hv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const xo=e=>e.join("/").replace(/\/\/+/g,"/"),k2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function _2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vv=["post","put","patch","delete"];new Set(Vv);const N2=["get",...Vv];new Set(N2);/**
76 * React Router v6.27.0
77 *
78 * Copyright (c) Remix Software Inc.
79 *
80 * This source code is licensed under the MIT license found in the
81 * LICENSE.md file in the root directory of this source tree.
82 *
83 * @license MIT
84 */function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nl.apply(this,arguments)}const P2=E.createContext(null),T2=E.createContext(null),Uv=E.createContext(null),Hl=E.createContext(null),Vl=E.createContext({outlet:null,matches:[],isDataRoute:!1}),Wv=E.createContext(null);function Of(){return E.useContext(Hl)!=null}function Yv(){return Of()||ot(!1),E.useContext(Hl).location}function M2(e,t){return R2(e,t)}function R2(e,t,n,r){Of()||ot(!1);let{navigator:o}=E.useContext(Uv),{matches:i}=E.useContext(Vl),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Yv(),d;if(t){var f;let w=typeof t=="string"?Bl(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||ot(!1),d=w}else d=u;let c=d.pathname||"/",h=c;if(l!=="/"){let w=l.replace(/^\//,"").split("/");h="/"+c.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=d2(e,{pathname:h}),g=$2(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:xo([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:xo([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&g?E.createElement(Hl.Provider,{value:{location:nl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Gn.Pop}},g):g}function A2(){let e=F2(),t=_2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application 
84Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,null)}const I2=E.createElement(A2,null);class O2 extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(Vl.Provider,{value:this.props.routeContext},E.createElement(Wv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function L2(e){let{routeContext:t,match:n,children:r}=e,o=E.useContext(P2);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Vl.Provider,{value:t},r)}function $2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||ot(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<s.length;d++){let f=s[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:c,errors:h}=n,y=f.route.loader&&c[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||y){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,c)=>{let h,y=!1,g=null,w=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||I2,l&&(u<0&&c===0?(y=!0,w=null):u===c&&(y=!0,w=f.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,c+1)),v=()=>{let p;return h?p=g:y?p=w:f.route.Component?p=E.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=d,E.createElement(L2,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||c===0)?E.createElement(O2,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var id=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(id||{});function D2(e){let t=E.useContext(T2);return t||ot(!1),t}function z2(e){let t=E.useContext(Vl);return t||ot(!1),t}function j2(e){let t=z2(),n=t.matches[t.matches.length-1];return n.route.id||ot(!1),n.route.id}function F2(){var e;let t=E.useContext(Wv),n=D2(id.UseRouteError),r=j2(id.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sd(e){ot(!1)}function B2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Gn.Pop,navigator:i,static:s=!1,future:a}=e;Of()&&ot(!1);let l=t.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:l,navigator:i,static:s,future:nl({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Bl(r));let{pathname:d="/",search:f="",hash:c="",state:h=null,key:y="default"}=r,g=E.useMemo(()=>{let w=Hv(d,l);return w==null?null:{location:{pathname:w,search:f,hash:c,state:h,key:y},navigationType:o}},[l,d,f,c,h,y,o]);return g==null?null:E.createElement(Uv.Provider,{value:u},E.createElement(Hl.Provider,{children:n,value:g}))}function H2(e){let{children:t,location:n}=e;return M2(ad(t),n)}new Promise(()=>{});function ad(e,t){t===void 0&&(t=[]);let n=[];
84return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let i=[...t,o];if(r.type===E.Fragment){n.push.apply(n,ad(r.props.children,i));return}r.type!==sd&&ot(!1),!r.props.index||!r.props.children||ot(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=ad(r.props.children,i)),n.push(s)}),n}/**
85 * React Router DOM v6.27.0
86 *
87 * Copyright (c) Remix Software Inc.
88 *
89 * This source code is licensed under the MIT license found in the
90 * LICENSE.md file in the root directory of this source tree.
91 *
92 * @license MIT
93 */const V2="6";try{window.__reactRouterVersion=V2}catch{}const U2="startTransition",Yp=F1[U2];function W2(e){let{basename:t,children:n,future:r,window:o}=e,i=E.useRef();i.current==null&&(i.current=l2({window:o,v5Compat:!0}));let s=i.current,[a,l]=E.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=E.useCallback(f=>{u&&Yp?Yp(()=>l(f)):l(f)},[l,u]);return E.useLayoutEffect(()=>s.listen(d),[s,d]),E.createElement(B2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var Xp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xp||(Xp={}));var Qp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qp||(Qp={}));function Re(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=Re(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var Y2={value:()=>{}};function Ul(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new xa(n)}function xa(e){this._=e}function X2(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}xa.prototype=Ul.prototype={constructor:xa,on:function(e,t){var n=this._,r=X2(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=Q2(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=r[i]).type)n[o]=Kp(n[o],e.name,t);else if(t==null)for(o in n)n[o]=Kp(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new xa(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function Q2(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function Kp(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Y2,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ld="http://www.w3.org/1999/xhtml";const Gp={svg:"http://www.w3.org/2000/svg",xhtml:ld,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wl(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Gp.hasOwnProperty(t)?{space:Gp[t],local:e}:e}function K2(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ld&&t.documentElement.namespaceURI===ld?t.createElement(e):t.createElementNS(n,e)}}function G2(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xv(e){var t=Wl(e);return(t.local?G2:K2)(t)}function q2(){}function Lf(e){return e==null?q2:function(){return this.querySelector(e)}}function Z2(e){typeof e!="function"&&(e=Lf(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=new Array(s),l,u,d=0;d<s;++d)(l=i[d])&&(u=e.call(l,l.__data__,d,i))&&("__data__"in l&&(u.__data__=l.__data__),a[d]=u);return new gt(r,this._parents)}function J2(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function eN(){return[]}function Qv(e){return e==null?eN:function(){return this.querySelectorAll(e)}}function tN(e){return function(){return J2(e.apply(this,arguments))}}function nN(e){typeof e=="function"?e=tN(e):e=Qv(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var s=t[i],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(e.call(l,l.__data__,u,s)),o.push(l));return new gt(r,o)}function Kv(e){return function(){return this.matches(e)}}function Gv(e){return function(t){return t.matches(e)}}var rN=Array.prototype.find;function oN(e){return function(){return rN.call(this.children,e)}}function iN(){return this.firstElementChild}function sN(e){return this.select(e==null?iN:oN(typeof e=="function"?e:Gv(e)))}var aN=Array.prototype.filter;function lN(){return Array.from(this.children)}function uN(e){return function(){return aN.call(this.children,e)}}function cN(e){return this.selectAll(e==null?lN:uN(typeof e=="function"?e:Gv(e)))}function dN(e){typeof e!="function"&&(e=Kv(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,u=0;u<s;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&a.push(l);return new gt(r,this._parents)}function qv(e){return new Array(e.length)}function fN(){return new gt(this._enter||this._groups.map(qv),this._parents)}function rl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}rl.prototype={constructor:rl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function hN(e){return function(){return e}}function pN(e,t,n,r,o,i){for(var s=0,a,l=t.length,u=i.length;s<u;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new rl(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function mN(e,t,n,r,o,i,s){var a,l,u=new Map,d=t.length,f=i.length,c=new Array(d),h;for(a=0;a<d;++a)(l=t[a])&&(c[a]=h=s.call(l,l.__data__,a,t)+"",u.has(h)?o[a]=l:u.set(h,l));for(a=0;a<f;++a)h=s.call(e,i[a],a,i)+"",(l=u.get(h))?(r[a]=l,l.__data__=i[a],u.delete(h)):n[a]=new rl(e,i[a]);for(a=0;a<d;++a)(l=t[a])&&u.get(c[a])===l&&(o[a]=l)}function gN(e){return e.__data__}function yN(e,t){if(!arguments.length)return Array.from(this,gN);var n=t?mN:pN,r=this._parents,o=this._groups;typeof e!="function"&&(e=hN(e));for(var i=o.length,s=new Array(i),a=new Array(i),l=new Array(i),u=0;u<i;++u){var d=r[u],f=o[u],c=f.length,h=vN(e.call(d,d&&d.__data__,u,r)),y=h.length,g=a[u]=new Array(y),w=s[u]=new Array(y),m=l[u]=new Array(c);n(d,f,g,w,m,h,t);for(var v=0,p=0,x,S;v<y;++v)if(x=g[v]){for(v>
vendor: 28,129 bytes, line 93
93=p&&(p=v+1);!(S=w[p])&&++p<y;);x._next=S||null}}return s=new gt(s,r),s._enter=a,s._exit=l,s}function vN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wN(){return new gt(this._exit||this._groups.map(qv),this._parents)}function xN(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function EN(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,s=Math.min(o,i),a=new Array(o),l=0;l<s;++l)for(var u=n[l],d=r[l],f=u.length,c=a[l]=new Array(f),h,y=0;y<f;++y)(h=u[y]||d[y])&&(c[y]=h);for(;l<o;++l)a[l]=n[l];return new gt(a,this._parents)}function SN(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function CN(e){e||(e=bN);function t(f,c){return f&&c?e(f.__data__,c.__data__):!f-!c}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],a=s.length,l=o[i]=new Array(a),u,d=0;d<a;++d)(u=s[d])&&(l[d]=u);l.sort(t)}return new gt(o,this._parents).order()}function bN(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function kN(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _N(){return Array.from(this)}function NN(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function PN(){let e=0;for(const t of this)++e;return e}function TN(){return!this.node()}function MN(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function RN(e){return function(){this.removeAttribute(e)}}function AN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function IN(e,t){return function(){this.setAttribute(e,t)}}function ON(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function LN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function $N(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function DN(e,t){var n=Wl(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?AN:RN:typeof t=="function"?n.local?$N:LN:n.local?ON:IN)(n,t))}function Zv(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function zN(e){return function(){this.style.removeProperty(e)}}function jN(e,t,n){return function(){this.style.setProperty(e,t,n)}}function FN(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function BN(e,t,n){return arguments.length>1?this.each((t==null?zN:typeof t=="function"?FN:jN)(e,t,n??"")):Bo(this.node(),e)}function Bo(e,t){return e.style.getPropertyValue(t)||Zv(e).getComputedStyle(e,null).getPropertyValue(t)}function HN(e){return function(){delete this[e]}}function VN(e,t){return function(){this[e]=t}}function UN(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function WN(e,t){return arguments.length>1?this.each((t==null?HN:typeof t=="function"?UN:VN)(e,t)):this.node()[e]}function Jv(e){return e.trim().split(/^|\s+/)}function $f(e){return e.classList||new ew(e)}function ew(e){this._node=e,this._names=Jv(e.getAttribute("class")||"")}ew.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tw(e,t){for(var n=$f(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function nw(e,t){for(var n=$f(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function YN(e){return function(){tw(this,e)}}function XN(e){return function(){nw(this,e)}}function QN(e,t){return function(){(t.apply(this,arguments)?tw:nw)(this,e)}}function KN(e,t){var n=Jv(e+"");if(arguments.length<2){for(var r=$f(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?QN:t?YN:XN)(n,t))}function GN(){this.textContent=""}function qN(e){return function(){this.textContent=e}}function ZN(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function JN(e){return arguments.length?this.each(e==null?GN:(typeof e=="function"?ZN:qN)(e)):this.node().textContent}function eP(){this.innerHTML=""}function tP(e){return function(){this.innerHTML=e}}function nP(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function rP(e){return arguments.length?this.each(e==null?eP:(typeof e=="function"?nP:tP)(e)):this.node().innerHTML}function oP(){this.nextSibling&&this.parentNode.appendChild(this)}function iP(){return this.each(oP)}function sP(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function aP(){return this.each(sP)}function lP(e){var t=typeof e=="function"?e:Xv(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function uP(){return null}function cP(e,t){var n=typeof e=="function"?e:Xv(e),r=t==null?uP:typeof t=="function"?t:Lf(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function dP(){var e=this.parentNode;e&&e.removeChild(this)}function fP(){return this.each(dP)}function hP(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function pP(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mP(e){return this.select(e?pP:hP)}function gP(e){return arguments.length?this.property("__data__",e):this.node().__data__}function yP(e){return function(t){e.call(this,t,this.__data__)}}function vP(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function wP(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function xP(e,t,n){return function(){var r=this.__on,o,i=yP(t);if(r){for(var s=0,a=r.length;s<a;++s)if((o=r[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function EP(e,t,n){var r=vP(e+""),o,i=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,d;l<u;++l)for(o=0,d=a[l];o<i;++o)if((s=r[o]).type===d.type&&s.name===d.name)return d.value}return}for(a=t?xP:wP,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function rw(e,t,n){var r=Zv(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function SP(e,t){return function(){return rw(this,e,t)}}function CP(e,t){return function(){return rw(this,e,t.apply(this,arguments))}}function bP(e,t){return this.each((typeof t=="function"?CP:SP)(e,t))}function*kP(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var ow=[null];function gt(e,t){this._groups=e,this._parents=t}function ws(){return new gt([[document.documentElement]],ow)}function _P(){return this}gt.prototype=ws.prototype={constructor:gt,select:Z2,selectAll:nN,selectChild:sN,selectChildren:cN,filter:dN,data:yN,enter:fN,exit:wN,join:xN,merge:EN,selection:_P,order:SN,sort:CN,call:kN,nodes:_N,node:NN,size:PN,empty:TN,each:MN,attr:DN,style:BN,property:WN,classed:KN,text:JN,html:rP,raise:iP,lower:aP,append:lP,insert:cP,remove:fP,clone:mP,datum:gP,on:EP,dispatch:bP,[Symbol.iterator]:kP};function dt(e){return typeof e=="string"?new gt([[document.querySelector(e)]],[document.documentElement]):new gt([[e]],ow)}function NP(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Lt(e,t){if(e=NP(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const PP={passive:!1},ts={capture:!0,passive:!1};function Vu(e){e.stopImmediatePropagation()}function Eo(e){e.preventDefault(),e.stopImmediatePropagation()}function iw(e){var t=e.document.documentElement,n=dt(e).on("dragstart.drag",Eo,ts);"onselectstart"in t?n.on("selectstart.drag",Eo,ts):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function sw(e,t){var n=e.document.documentElement,r=dt(e).on("dragstart.drag",null);t&&(r.on("click.drag",Eo,ts),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Gs=e=>()=>e;function ud(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:s,y:a,dx:l,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}ud.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function TP(e){return!e.ctrlKey&&!e.button}function MP(){return this.parentNode}function RP(e,t){return t??{x:e.x,y:e.y}}function AP(){return navigator.maxTouchPoints||"ontouchstart"in this}function aw(){var e=TP,t=MP,n=RP,r=AP,o={},i=Ul("start","drag","end"),s=0,a,l,u,d,f=0;function c(x){x.on("mousedown.drag",h).filter(r).on("touchstart.drag",w).on("touchmove.drag",m,PP).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(x,S){if(!(d||!e.call(this,x,S))){var b=p(this,t.call(this,x,S),x,S,"mouse");b&&(dt(x.view).on("mousemove.drag",y,ts).on("mouseup.drag",g,ts),iw(x.view),Vu(x),u=!1,a=x.clientX,l=x.clientY,b("start",x))}}function y(x){if(Eo(x),!u){var S=x.clientX-a,b=x.clientY-l;u=S*S+b*b>f}o.mouse("drag",x)}function g(x){dt(x.view).on("mousemove.drag mouseup.drag",null),sw(x.view,u),Eo(x),o.mouse("end",x)}function w(x,S){if(e.call(this,x,S)){var b=x.changedTouches,k=t.call(this,x,S),P=b.length,I,z;for(I=0;I<P;++I)(z=p(this,k,x,S,b[I].identifier,b[I]))&&(Vu(x),z("start",x,b[I]))}}function m(x){var S=x.changedTouches,b=S.length,k,P;for(k=0;k<b;++k)(P=o[S[k].identifier])&&(Eo(x),P("drag",x,S[k]))}function v(x){var S=x.changedTouches,b=S.length,k,P;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),k=0;k<b;++k)(P=o[S[k].identifier])&&(Vu(x),P("end",x,S[k]))}function p(x,S,b,k,P,I){var z=i.copy(),D=Lt(I||b,S),L,j,C;if((C=n.call(x,new ud("beforestart",{sourceEvent:b,target:c,identifier:P,active:s,x:D[0],y:D[1],dx:0,dy:0,dispatch:z}),k))!=null)return L=C.x-D[0]||0,j=C.y-D[1]||0,function R(M,A,N){var T=D,O;switch(M){case"start":o[P]=R,O=s++;break;case"end":delete o[P],--s;case"drag":D=Lt(N||A,S),O=s;break}z.call(M,x,new ud(M,{sourceEvent:A,subject:C,target:c,identifier:P,active:O,x:D[0]+L,y:D[1]+j,dx:D[0]-T[0],dy:D[1]-T[1],dispatch:z}),k)}}return c.filter=function(x){return arguments.length?(e=typeof x=="function"?x:Gs(!!x),c):e},c.container=function(x){return arguments.length?(t=typeof x=="function"?x:Gs(x),c):t},c.subject=function(x){return arguments.length?(n=typeof x=="function"?x:Gs(x),c):n},c.touchable=function(x){return arguments.length?(r=typeof x=="function"?x:Gs(!!x),c):r},c.on=function(){var x=i.on.apply(i,arguments);return x===i?c:x},c.clickDistance=function(x){return arguments.length?(f=(x=+x)*x,c):Math.sqrt(f)},c}function Df(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function lw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xs(){}var ns=.7,ol=1/ns,So="\\s*([+-]?\\d+)\\s*",rs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IP=/^#([0-9a-f]{3,8})$/,OP=new RegExp(`^rgb\\(${So},${So},${So}\\)$`),LP=new RegExp(`^rgb\\(${an},${an},${an}\\)$`),$P=new RegExp(`^rgba\\(${So},${So},${So},${rs}\\)$`),DP=new RegExp(`^rgba\\(${an},${an},${an},${rs}\\)$`),zP=new RegExp(`^hsl\\(${rs},${an},${an}\\)$`),jP=new RegExp(`^hsla\\(${rs},${an},${an},${rs}\\)$`),qp={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};Df(xs,Fr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zp,formatHex:Zp,formatHex8:FP,formatHsl:BP,formatRgb:Jp,toString:Jp});function Zp(){return this.rgb().formatHex()}function FP(){return this.rgb().formatHex8()}function BP(){return uw(this).formatHsl()}function Jp(){return this.rgb().formatRgb()}function Fr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=IP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?em(t):n===3?new et(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=OP.exec(e))?new et(t[1],t[2],t[3],1):(t=LP.exec(e))?new et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$P.exec(e))?qs(t[1],t[2],t[3],t[4]):(t=DP.exec(e))?qs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zP.exec(e))?rm(t[1],t[2]/100,t[3]/100,1):(t=jP.exec(e))?rm(t[1],t[2]/100,t[3]/100,t[4]):qp.hasOwnProperty(e)?em(qp[e]):e==="transparent"?new et(NaN,NaN,NaN,0):null}function em(e){return new et(e>>16&255,e>>8&255,e&255,1)}function qs(e,t,n,r){return r<=0&&(e=t=n=NaN),new et(e,t,n,r)}function HP(e){return e instanceof xs||(e=Fr(e)),e?(e=e.rgb(),new et(e.r,e.g,e.b,e.opacity)):new et}function cd(e,t,n,r){return arguments.length===1?HP(e):new et(e,t,n,r??1)}function et(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Df(et,cd,lw(xs,{brighter(e){return e=e==null?ol:Math.pow(ol,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ns:Math.pow(ns,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new et(Mr(this.r),Mr(this.g),Mr(this.b),il(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tm,formatHex:tm,formatHex8:VP,formatRgb:nm,toString:nm}));function tm(){return`#${Cr(this.r)}${Cr(this.g)}${Cr(this.b)}`}function VP(){return`#${Cr(this.r)}${Cr(this.g)}${Cr(this.b)}${Cr((isNaN(this.opacity)?1:this.opacity)*255)}`}function nm(){const e=il(this.opacity);return`${e===1?"rgb(":"rgba("}${Mr(this.r)}, ${Mr(this.g)}, ${Mr(this.b)}${e===1?")":`, ${e})`}`}function il(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cr(e){return e=Mr(e),(e<16?"0":"")+e.toString(16)}function rm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dt(e,t,n,r)}function uw(e){if(e instanceof Dt)return new Dt(e.h,e.s,e.l,e.opacity);if(e instanceof xs||(e=Fr(e)),!e)return new Dt;if(e instanceof Dt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new Dt(s,a,l,e.opacity)}function UP(e,t,n,r){return arguments.length===1?uw(e):new Dt(e,t,n,r??1)}function Dt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Df(Dt,UP,lw(xs,{brighter(e){return e=e==null?ol:Math.pow(ol,e),new Dt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ns:Math.pow(ns,e),new Dt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new et(Uu(e>=240?e-240:e+120,o,r),Uu(e,o,r),Uu(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Dt(om(this.h),Zs(this.s),Zs(this.l),il(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(){const e=il(this.opacity);return`${e===1?"hsl(":"hsla("}${om(this.h)}, ${Zs(this.s)*100}%, ${Zs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function om(e){return e=(e||0)%360,e<0?e+360:e}function Zs(e){return Math.max(0,Math.min(1,e||0))}function Uu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const zf=e=>()=>e;function WP(e,t){return function(n){return e+n*t}}function YP(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function XP(e){return(e=+e)==1?cw:function(t,n){return n-t?YP(t,n,e):zf(isNaN(t)?n:t)}}function cw(e,t){var n=t-e;return n?WP(e,n):zf(isNaN(e)?t:e)}const sl=function e(t){var n=XP(t);function r(o,i){var s=n((o=cd(o)).r,(i=cd(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=cw(o.opacity,i.opacity);return function(d){return o.r=s(d),o.g=a(d),o.b=l(d),o.opacity=u(d),o+""}}return r.gamma=e,r}(1);function QP(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function KP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function GP(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),s;for(s=0;s<r;++s)o[s]=Ai(e[s],t[s]);for(;s<n;++s)i[s]=t[s];return function(a){for(s=0;s<r;++s)i[s]=o[s](a);return i}}function qP(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ZP(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=Ai(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var dd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wu=new RegExp(dd.source,"g");function JP(e){return function(){return e}}function eT(e){return function(t){return e(t)+""}}function dw(e,t){var n=dd.lastIndex=Wu.lastIndex=0,r,o,i,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=dd.exec(e))&&(o=Wu.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:tn(r,o)})),n=Wu.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?eT(l[0].x):JP(t):(t=l.length,function(u){for(var d=0,f;d<t;++d)a[(f=l[d]).i]=f.x(u);return a.join("")})}function Ai(e,t){var n=typeof t,r;return t==null||n==="boolean"?zf(t):(n==="number"?tn:n==="string"?(r=Fr(t))?(t=r,sl):dw:t instanceof Fr?sl:t instanceof Date?qP:KP(t)?QP:Array.isArray(t)?GP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ZP:tn)(e,t)}var im=180/Math.PI,fd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fw(e,t,n,r,o,i){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*im,skewX:Math.atan(l)*im,scaleX:s,scaleY:a}}var Js;function tT(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?fd:fw(t.a,t.b,t.c,t.d,t.e,t.f)}function nT(e){return e==null||(Js||(Js=document.createElementNS("http://www.w3.org/2000/svg","g")),Js.setAttribute("transform",e),!(e=Js.transform.baseVal.consolidate()))?fd:(e=e.matrix,fw(e.a,e.b,e.c,e.d,e.e,e.f))}function hw(e,t,n,r){function o(u){return u.length?u.pop()+" ":""}function i(u,d,f,c,h,y){if(u!==f||d!==c){var g=h.push("translate(",null,t,null,n);y.push({i:g-4,x:tn(u,f)},{i:g-2,x:tn(d,c)})}else(f||c)&&h.push("translate("+f+t+c+n)}function s(u,d,f,c){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),c.push({i:f.push(o(f)+"rotate(",null,r)-2,x:tn(u,d)})):d&&f.push(o(f)+"rotate("+d+r)}function a(u,d,f,c){u!==d?c.push({i:f.push(o(f)+"skewX(",null,r)-2,x:tn(u,d)}):d&&f.push(o(f)+"skewX("+d+r)}function l(u,d,f,c,h,y){if(u!==f||d!==c){var g=h.push(o(h)+"scale(",null,",",null,")");y.push({i:g-4,x:tn(u,f)},{i:g-2,x:tn(d,c)})}else(f!==1||c!==1)&&h.push(o(h)+"scale("+f+","+c+")")}return function(u,d){var f=[],c=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,f,c),s(u.rotate,d.rotate,f,c),a(u.skewX,d.skewX,f,c),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,f,c),u=d=null,function(h){for(var y=-1,g=c.length,w;++y<g;)f[(w=c[y]).i]=w.x(h);return f.join("")}}}var rT=hw(tT,"px, ","px)","deg)"),oT=hw(nT,", ",")",")"),iT=1e-12;function sm(e){return((e=Math.exp(e))+1/e)/2}function sT(e){return((e=Math.exp(e))-1/e)/2}function aT(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ea=function e(t,n,r){function o(i,s){var a=i[0],l=i[1],u=i[2],d=s[0],f=s[1],c=s[2],h=d-a,y=f-l,g=h*h+y*y,w,m;if(g<iT)m=Math.log(c/u)/t,w=function(k){return[a+k*h,l+k*y,u*Math.exp(t*k*m)]};else{var v=Math.sqrt(g),p=(c*c-u*u+r*g)/(2*u*n*v),x=(c*c-u*u-r*g)/(2*c*n*v),S=Math.log(Math.sqrt(p*p+1)-p),b=Math.log(Math.sqrt(x*x+1)-x);m=(b-S)/t,w=function(k){var P=k*m,I=sm(S),z=u/(n*v)*(I*aT(t*P+S)-sT(S));return[a+z*h,l+z*y,u*I/sm(t*P+S)]}}return w.duration=m*1e3*t/Math.SQRT2,w}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,l=a*a;return e(s,a,l)},o}(Math.SQRT2,2,4);var Ho=0,xi=0,pi=0,pw=1e3,al,Ei,ll=0,Br=0,Yl=0,os=typeof performance=="object"&&performance.now?performance:Date,mw=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jf(){return Br||(mw(lT),Br=os.now()+Yl)}function lT(){Br=0}function ul(){this._call=this._time=this._next=null}ul.prototype=gw.prototype={constructor:ul,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?jf():+n)+(t==null?0:+t),!this._next&&Ei!==this&&(Ei?Ei._next=this:al=this,Ei=this),this._call=e,this._time=n,hd()},stop:function(){this._call&&(this._call=null,this._time=1/0,hd())}};function gw(e,t,n){var r=new ul;return r.restart(e,t,n),r}function uT(){jf(),++Ho;for(var e=al,t;e;)(t=Br-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ho}function am(){Br=(ll=os.now())+Yl,Ho=xi=0;try{uT()}finally{Ho=0,dT(),Br=0}}function cT(){var e=os.now(),t=e-ll;t>pw&&(Yl-=t,ll=e)}function dT(){for(var e,t=al,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:al=n);Ei=e,hd(r)}function hd(e){if(!Ho){xi&&(xi=clearTimeout(xi));var t=e-Br;t>24?(e<1/0&&(xi=setTimeout(am,e-os.now()-Yl)),pi&&(pi=clearInterval(pi))):(pi||(ll=os.now(),pi=setInterval(cT,pw)),Ho=1,mw(am))}}function lm(e,t,n){var r=new ul;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var fT=Ul("start","end","cancel","interrupt"),hT=[],yw=0,um=1,pd=2,Sa=3,cm=4,md=5,Ca=6;function Xl(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;pT(e,n,{name:t,index:r,group:o,on:fT,tween:hT,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:yw})}function Ff(e,t){var n=Wt(e,t);if(n.state>yw)throw new Error("too late; already scheduled");return n}function fn(e,t){var n=Wt(e,t);if(n.state>Sa)throw new Error("too late; already running");return n}function Wt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function pT(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=gw(i,0,n.time);function i(u){n.state=um,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var d,f,c,h;if(n.state!==um)return l();for(d in r)if(h=r[d],h.name===n.name){if(h.state===Sa)return lm(s);h.state===cm?(h.state=Ca,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[d]):+d<t&&(h.state=Ca,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[d])}if(lm(function(){n.state===Sa&&(n.state=cm,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=pd,n.on.call("start",e,e.__data__,n.index,n.group),n.state===pd){for(n.state=Sa,o=new Array(c=n.tween.length),d=0,f=-1;d<c;++d)(h=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(o[++f]=h);o.length=f+1}}function a(u){for(var d=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=md,1),f=-1,c=o.length;++f<c;)o[f].call(e,d);n.state===md&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ca,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function ba(e,t){var n=e.__transition,r,o,i=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){i=!1;continue}o=r.state>pd&&r.state<md,r.state=Ca,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function mT(e){return this.each(function(){ba(this,e)})}function gT(e,t){var n,r;return function(){var o=fn(this,e),i=o.tween;if(i!==n){r=n=i;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}o.tween=r}}function yT(e,t,n){var r,o;
vendor: 6,147 bytes, line 93
93if(typeof n!="function")throw new Error;return function(){var i=fn(this,e),s=i.tween;if(s!==r){o=(r=s).slice();for(var a={name:t,value:n},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=a;break}l===u&&o.push(a)}i.tween=o}}function vT(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Wt(this.node(),n).tween,o=0,i=r.length,s;o<i;++o)if((s=r[o]).name===e)return s.value;return null}return this.each((t==null?gT:yT)(n,e,t))}function Bf(e,t,n){var r=e._id;return e.each(function(){var o=fn(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Wt(o,r).value[t]}}function vw(e,t){var n;return(typeof t=="number"?tn:t instanceof Fr?sl:(n=Fr(t))?(t=n,sl):dw)(e,t)}function wT(e){return function(){this.removeAttribute(e)}}function xT(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ET(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function ST(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function CT(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function bT(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function kT(e,t){var n=Wl(e),r=n==="transform"?oT:vw;return this.attrTween(e,typeof t=="function"?(n.local?bT:CT)(n,r,Bf(this,"attr."+e,t)):t==null?(n.local?xT:wT)(n):(n.local?ST:ET)(n,r,t))}function _T(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function NT(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function PT(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&NT(e,i)),n}return o._value=t,o}function TT(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&_T(e,i)),n}return o._value=t,o}function MT(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Wl(e);return this.tween(n,(r.local?PT:TT)(r,t))}function RT(e,t){return function(){Ff(this,e).delay=+t.apply(this,arguments)}}function AT(e,t){return t=+t,function(){Ff(this,e).delay=t}}function IT(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?RT:AT)(t,e)):Wt(this.node(),t).delay}function OT(e,t){return function(){fn(this,e).duration=+t.apply(this,arguments)}}function LT(e,t){return t=+t,function(){fn(this,e).duration=t}}function $T(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?OT:LT)(t,e)):Wt(this.node(),t).duration}function DT(e,t){if(typeof t!="function")throw new Error;return function(){fn(this,e).ease=t}}function zT(e){var t=this._id;return arguments.length?this.each(DT(t,e)):Wt(this.node(),t).ease}function jT(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;fn(this,e).ease=n}}function FT(e){if(typeof e!="function")throw new Error;return this.each(jT(this._id,e))}function BT(e){typeof e!="function"&&(e=Kv(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,u=0;u<s;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&a.push(l);return new Pn(r,this._parents,this._name,this._id)}function HT(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),s=new Array(r),a=0;a<i;++a)for(var l=t[a],u=n[a],d=l.length,f=s[a]=new Array(d),c,h=0;h<d;++h)(c=l[h]||u[h])&&(f[h]=c);for(;a<r;++a)s[a]=t[a];return new Pn(s,this._parents,this._name,this._id)}function VT(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function UT(e,t,n){var r,o,i=VT(t)?Ff:fn;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function WT(e,t){var n=this._id;return arguments.length<2?Wt(this.node(),n).on.on(e):this.each(UT(n,e,t))}function YT(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function XT(){return this.on("end.remove",YT(this._id))}function QT(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Lf(e));for(var r=this._groups,o=r.length,i=new Array(o),s=0;s<o;++s)for(var a=r[s],l=a.length,u=i[s]=new Array(l),d,f,c=0;c<l;++c)(d=a[c])&&(f=e.call(d,d.__data__,c,a))&&("__data__"in d&&(f.__data__=d.__data__),u[c]=f,Xl(u[c],t,n,c,u,Wt(d,n)));return new Pn(i,this._parents,t,n)}function KT(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Qv(e));for(var r=this._groups,o=r.length,i=[],s=[],a=0;a<o;++a)for(var l=r[a],u=l.length,d,f=0;f<u;++f)if(d=l[f]){for(var c=e.call(d,d.__data__,f,l),h,y=Wt(d,n),g=0,w=c.length;g<w;++g)(h=c[g])&&Xl(h,t,n,g,c,y);i.push(c),s.push(d)}return new Pn(i,s,t,n)}var GT=ws.prototype.constructor;function qT(){return new GT(this._groups,this._parents)}function ZT(e,t){var n,r,o;return function(){var i=Bo(this,e),s=(this.style.removeProperty(e),Bo(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function ww(e){return function(){this.style.removeProperty(e)}}function JT(e,t,n){var r,o=n+"",i;return function(){var s=Bo(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function eM(e,t,n){var r,o,i;return function(){var s=Bo(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Bo(this,e))),s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a))}}function tM(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var l=fn(this,e),u=l.on,d=l.value[i]==null?a||(a=ww(t)):void 0;(u!==n||o!==d)&&(r=(n=u).copy()).on(s,o=d),l.on=r}}function nM(e,t,n){var r=(e+="")=="transform"?rT:vw;return t==null?this.styleTween(e,ZT(e,r)).on("end.style."+e,ww(e)):typeof t=="function"?this.styleTween(e,eM(e,r,Bf(this,"style."+e,t))).each(tM(this._id,e)):this.styleTween(e,JT(e,r,t),n).on("end.style."+e,null)}function rM(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}
vendor: 11,164 bytes, line 93
93function oM(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&rM(e,s,n)),r}return i._value=t,i}function iM(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,oM(e,t,n??""))}function sM(e){return function(){this.textContent=e}}function aM(e){return function(){var t=e(this);this.textContent=t??""}}function lM(e){return this.tween("text",typeof e=="function"?aM(Bf(this,"text",e)):sM(e==null?"":e+""))}function uM(e){return function(t){this.textContent=e.call(this,t)}}function cM(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&uM(o)),t}return r._value=e,r}function dM(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,cM(e))}function fM(){for(var e=this._name,t=this._id,n=xw(),r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var d=Wt(l,t);Xl(l,e,n,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Pn(r,this._parents,e,n)}function hM(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,s){var a={value:s},l={value:function(){--o===0&&i()}};n.each(function(){var u=fn(this,r),d=u.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),o===0&&i()})}var pM=0;function Pn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function xw(){return++pM}var pn=ws.prototype;Pn.prototype={constructor:Pn,select:QT,selectAll:KT,selectChild:pn.selectChild,selectChildren:pn.selectChildren,filter:BT,merge:HT,selection:qT,transition:fM,call:pn.call,nodes:pn.nodes,node:pn.node,size:pn.size,empty:pn.empty,each:pn.each,on:WT,attr:kT,attrTween:MT,style:nM,styleTween:iM,text:lM,textTween:dM,remove:XT,tween:vT,delay:IT,duration:$T,ease:zT,easeVarying:FT,end:hM,[Symbol.iterator]:pn[Symbol.iterator]};function mM(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var gM={time:null,delay:0,duration:250,ease:mM};function yM(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function vM(e){var t,n;e instanceof Pn?(t=e._id,e=e._name):(t=xw(),(n=gM).time=jf(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,u=0;u<a;++u)(l=s[u])&&Xl(l,e,t,u,s,n||yM(l,t));return new Pn(r,this._parents,e,t)}ws.prototype.interrupt=mT;ws.prototype.transition=vM;const ea=e=>()=>e;function wM(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function xn(e,t,n){this.k=e,this.x=t,this.y=n}xn.prototype={constructor:xn,scale:function(e){return e===1?this:new xn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xn(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ql=new xn(1,0,0);Ew.prototype=xn.prototype;function Ew(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ql;return e.__zoom}function Yu(e){e.stopImmediatePropagation()}function mi(e){e.preventDefault(),e.stopImmediatePropagation()}function xM(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function EM(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function dm(){return this.__zoom||Ql}function SM(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function CM(){return navigator.maxTouchPoints||"ontouchstart"in this}function bM(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function Sw(){var e=xM,t=EM,n=bM,r=SM,o=CM,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=Ea,u=Ul("start","zoom","end"),d,f,c,h=500,y=150,g=0,w=10;function m(C){C.property("__zoom",dm).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",z).filter(o).on("touchstart.zoom",D).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(C,R,M,A){var N=C.selection?C.selection():C;N.property("__zoom",dm),C!==N?S(C,R,M,A):N.interrupt().each(function(){b(this,arguments).event(A).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},m.scaleBy=function(C,R,M,A){m.scaleTo(C,function(){var N=this.__zoom.k,T=typeof R=="function"?R.apply(this,arguments):R;return N*T},M,A)},m.scaleTo=function(C,R,M,A){m.transform(C,function(){var N=t.apply(this,arguments),T=this.__zoom,O=M==null?x(N):typeof M=="function"?M.apply(this,arguments):M,$=T.invert(O),F=typeof R=="function"?R.apply(this,arguments):R;return n(p(v(T,F),O,$),N,s)},M,A)},m.translateBy=function(C,R,M,A){m.transform(C,function(){return n(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof M=="function"?M.apply(this,arguments):M),t.apply(this,arguments),s)},null,A)},m.translateTo=function(C,R,M,A,N){m.transform(C,function(){var T=t.apply(this,arguments),O=this.__zoom,$=A==null?x(T):typeof A=="function"?A.apply(this,arguments):A;return n(Ql.translate($[0],$[1]).scale(O.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof M=="function"?-M.apply(this,arguments):-M),T,s)},A,N)};function v(C,R){return R=Math.max(i[0],Math.min(i[1],R)),R===C.k?C:new xn(R,C.x,C.y)}function p(C,R,M){var A=R[0]-M[0]*C.k,N=R[1]-M[1]*C.k;return A===C.x&&N===C.y?C:new xn(C.k,A,N)}function x(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function S(C,R,M,A){C.on("start.zoom",function(){b(this,arguments).event(A).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).event(A).end()}).tween("zoom",function(){var N=this,T=arguments,O=b(N,T).event(A),$=t.apply(N,T),F=M==null?x($):typeof M=="function"?M.apply(N,T):M,H=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),U=N.__zoom,Q=typeof R=="function"?R.apply(N,T):R,Y=l(U.invert(F).concat(H/U.k),Q.invert(F).concat(H/Q.k));return function(G){if(G===1)G=Q;else{var X=Y(G),q=H/X[2];G=new xn(q,F[0]-X[0]*q,F[1]-X[1]*q)}O.zoom(null,G)}})}function b(C,R,M){return!M&&C.__zooming||new k(C,R)}function k(C,R){this.that=C,this.args=R,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,R),this.taps=0}k.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,R){return this.mouse&&C!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var R=dt(this.that).datum();u.call(C,this.that,new wM(C,{sourceEvent:this.sourceEvent,target:m,type:C,transform:this.that.__zoom,dispatch:u}),R)}};function P(C,...R){if(!e.apply(this,arguments))return;var M=b(this,R).event(C),A=this.__zoom,N=Math.max(i[0],Math.min(i[1],A.k*Math.pow(2,r.apply(this,arguments)))),T=Lt(C);if(M.wheel)(M.mouse[0][0]!==T[0]||M.mouse[0][1]!==T[1])&&(M.mouse[1]=A.invert(M.mouse[0]=T)),clearTimeout(M.wheel);else{if(A.k===N)return;M.mouse=[T,A.invert(T)],ba(this),M.start()}mi(C),M.wheel=setTimeout(O,y),M.zoom("mouse",n(p(v(A,N),M.mouse[0],M.mouse[1]),M.extent,s));function O(){M.wheel=null,M.end()}}function I(C,...R){if(c||!e.apply(this,arguments))return;var M=C.currentTarget,A=b(this,R,!0).event(C),N=dt(C.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",H,!0),T=Lt(C,M),O=C.clientX,$=C.clientY;iw(C.view),Yu(C),A.mouse=[T,this.__zoom.invert(T)],ba(this),A.start();function F(U){if(mi(U),!A.moved){var Q=U.clientX-O,Y=U.clientY-$;A.moved=Q*Q+Y*Y>g}A.event(U).zoom("mouse",n(p(A.that.__zoom,A.mouse[0]=Lt(U,M),A.mouse[1]),A.extent,s))}function H(U){N.on("mousemove.zoom mouseup.zoom",null),sw(U.view,A.moved),mi(U),A.event(U).end()}}function z(C,...R){if(e.apply(this,arguments)){var M=this.__zoom,A=Lt(C.changedTouches?C.changedTouches[0]:C,this),N=M.invert(A),T=M.k*(C.shiftKey?.5:2),O=n(p(v(M,T),A,N),t.apply(this,R),s);mi(C),a>0?dt(this).transition().duration(a).call(S,O,A,C):dt(this).call(m.transform,O,A,C)}}function D(C,...R){if(e.apply(this,arguments)){var M=C.touches,A=M.length,N=b(this,R,C.changedTouches.length===A).event(C),T,O,$,F;for(Yu(C),O=0;O<A;++O)$=M[O],F=Lt($,this),F=[F,this.__zoom.invert(F),$.identifier],N.touch0?!N.touch1&&N.touch0[2]!==F[2]&&(N.touch1=F,N.taps=0):(N.touch0=F,T=!0,N.taps=1+!!d);d&&(d=clearTimeout(d)),T&&(N.taps<2&&(f=F[0],d=setTimeout(function(){d=null},h)),ba(this),N.start())}}function L(C,...R){if(this.__zooming){var M=b(this,R).event(C),A=C.changedTouches,N=A.length,T,O,$,F;for(mi(C),T=0;T<N;++T)O=A[T],$=Lt(O,this),M.touch0&&M.touch0[2]===O.identifier?M.touch0[0]=$:M.touch1&&M.touch1[2]===O.identifier&&(M.touch1[0]=$);if(O=M.that.__zoom,M.touch1){var H=M.touch0[0],U=M.touch0[1],Q=M.touch1[0],Y=M.touch1[1],G=(G=Q[0]-H[0])*G+(G=Q[1]-H[1])*G,X=(X=Y[0]-U[0])*X+(X=Y[1]-U[1])*X;O=v(O,Math.sqrt(G/X)),$=[(H[0]+Q[0])/2,(H[1]+Q[1])/2],F=[(U[0]+Y[0])/2,(U[1]+Y[1])/2]}else if(M.touch0)$=M.touch0[0],F=M.touch0[1];else return;M.zoom("touch",n(p(O,$,F),M.extent,s))}}function j(C,...R){if(this.__zooming){var M=b(this,R).event(C),A=C.changedTouches,N=A.length,T,O;for(Yu(C),c&&clearTimeout(c),c=setTimeout(function(){c=null},h),T=0;T<N;++T)O=A[T],M.touch0&&M.touch0[2]===O.identifier?delete M.touch0:M.touch1&&M.touch1[2]===O.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(O=Lt(O,this),Math.hypot(f[0]-O[0],f[1]-O[1])<w)){var $=dt(this).on("dblclick.zoom");$&&$.apply(this,arguments)}}}return m.wheelDelta=function(C){return arguments.length?(r=typeof C=="function"?C:ea(+C),m):r},m.filter=function(C){return arguments.length?(e=typeof C=="function"?C:ea(!!C),m):e},m.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:ea(!!C),m):o},m.extent=function(C){return arguments.length?(t=typeof C=="function"?C:ea([[+C[0][0],
93+C[0][1]],[+C[1][0],+C[1][1]]]),m):t},m.scaleExtent=function(C){return arguments.length?(i[0]=+C[0],i[1]=+C[1],m):[i[0],i[1]]},m.translateExtent=function(C){return arguments.length?(s[0][0]=+C[0][0],s[1][0]=+C[1][0],s[0][1]=+C[0][1],s[1][1]=+C[1][1],m):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},m.constrain=function(C){return arguments.length?(n=C,m):n},m.duration=function(C){return arguments.length?(a=+C,m):a},m.interpolate=function(C){return arguments.length?(l=C,m):l},m.on=function(){var C=u.on.apply(u,arguments);return C===u?m:C},m.clickDistance=function(C){return arguments.length?(g=(C=+C)*C,m):Math.sqrt(g)},m.tapDistance=function(C){return arguments.length?(w=+C,m):w},m}const cn={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.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:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow 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:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/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."},is=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Cw=["Enter"," ","Escape"],bw={"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:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"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"};var Vo;(function(e){e.Strict="strict",e.Loose="loose"})(Vo||(Vo={}));var Rr;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Rr||(Rr={}));var ss;(function(e){e.Partial="partial",e.Full="full"})(ss||(ss={}));const kw={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var Hn;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Hn||(Hn={}));var Ar;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Ar||(Ar={}));var ee;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ee||(ee={}));const fm={[ee.Left]:ee.Right,[ee.Right]:ee.Left,[ee.Top]:ee.Bottom,[ee.Bottom]:ee.Top};function _w(e){return e===null?null:e?"valid":"invalid"}const Nw=e=>"id"in e&&"source"in e&&"target"in e,kM=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Hf=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Es=(e,t=[0,0])=>{const{width:n,height:r}=Mn(e),o=e.origin??t,i=n*o[0],s=r*o[1];return{x:e.position.x-i,y:e.position.y-s}},_M=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,o)=>
93{const i=typeof o=="string";let s=!t.nodeLookup&&!i?o:void 0;t.nodeLookup&&(s=i?t.nodeLookup.get(o):Hf(o)?o:t.nodeLookup.get(o.id));const a=s?cl(s,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Kl(r,a)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Gl(n)},Ss=(e,t={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(r=>{if(t.filter===void 0||t.filter(r)){const o=cl(r);n=Kl(n,o)}}),Gl(n)},Vf=(e,t,[n,r,o]=[0,0,1],i=!1,s=!1)=>{const a={...Cs(t,[n,r,o]),width:t.width/o,height:t.height/o},l=[];for(const u of e.values()){const{measured:d,selectable:f=!0,hidden:c=!1}=u;if(s&&!f||c)continue;const h=d.width??u.width??u.initialWidth??null,y=d.height??u.height??u.initialHeight??null,g=as(a,Wo(u)),w=(h??0)*(y??0),m=i&&g>0;(!u.internals.handleBounds||m||g>=w||u.dragging)&&l.push(u)}return l},NM=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function PM(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(o=>o.id)):null;return e.forEach(o=>{o.measured.width&&o.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!o.hidden)&&(!r||r.has(o.id))&&n.set(o.id,o)}),n}
93async function TM({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},s){if(e.size===0)return Promise.resolve(!0);const a=PM(e,s),l=Ss(a),u=Uf(l,t,n,(s==null?void 0:s.minZoom)??o,(s==null?void 0:s.maxZoom)??i,(s==null?void 0:s.padding)??.1);return await r.setViewport(u,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)}function Pw({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){const s=n.get(e),a=s.parentId?n.get(s.parentId):void 0,{x:l,y:u}=a?a.internals.positionAbsolute:{x:0,y:0},d=s.origin??r;let f=s.extent||o;if(s.extent==="parent"&&!s.expandParent)if(!a)i==null||i("005",cn.error005());else{const h=a.measured.width,y=a.measured.height;h&&y&&(f=[[l,u],[l+h,u+y]])}else a&&Yo(s.extent)&&(f=[[s.extent[0][0]+l,s.extent[0][1]+u],[s.extent[1][0]+l,s.extent[1][1]+u]]);const c=Yo(f)?Hr(t,f,s.measured):t;return(s.measured.width===void 0||s.measured.height===void 0)&&(i==null||i("015",cn.error015())),{position:{x:c.x-l+(s.measured.width??0)*d[0],y:c.y-u+(s.measured.height??0)*d[1]},positionAbsolute:c}}async function MM({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){const i=new Set(e.map(c=>c.id)),s=[];for(const c of n){if(c.deletable===!1)continue;const h=i.has(c.id),y=!h&&c.parentId&&s.find(g=>g.id===c.parentId);(h||y)&&s.push(c)}const a=new Set(t.map(c=>c.id)),l=r.filter(c=>c.deletable!==!1),d=NM(s,l);for(const c of l)a.has(c.id)&&!d.find(y=>y.id===c.id)&&d.push(c);if(!o)return{edges:d,nodes:s};const f=await o({nodes:s,edges:d});return typeof f=="boolean"?f?{edges:d,nodes:s}:{edges:[],nodes:[]}:f}const Uo=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Hr=(e={x:0,y:0},t,n)=>({x:Uo(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:Uo(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function Tw(e,t,n){const{width:r,height:o}=Mn(n),{x:i,y:s}=n.internals.positionAbsolute;return Hr(e,[[i,s],[i+r,s+o]],t)}const hm=(e,t,n)=>e<t?Uo(Math.abs(e-t),1,t)/t:e>n?-Uo(Math.abs(e-n),1,t)/t:0,Mw=(e,t,n=15,r=40)=>{const o=hm(e.x,r,t.width-r)*n,i=hm(e.y,r,t.height-r)*n;return[o,i]},Kl=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),gd=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Gl=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Wo=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Hf(e)?e.internals.positionAbsolute:Es(e,t);return{x:n,y:r,width:((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},cl=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Hf(e)?e.internals.positionAbsolute:Es(e,t);return{x:n,y:r,x2:n+(((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0),y2:r+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},Rw=(e,t)=>Gl(Kl(gd(e),gd(t))),as=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},pm=e=>zt(e.width)&&zt(e.height)&&zt(e.x)&&zt(e.y),zt=e=>!isNaN(e)&&isFinite(e),RM=(e,t)=>{},ql=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Cs=({x:e,y:t},[n,r,o],i=!1,s=[1,1])=>{const a={x:(e-n)/o,y:(t-r)/o};return i?ql(a,s):a},dl=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function Gr(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function AM(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=Gr(e,n),o=Gr(e,t);return{top:r,right:o,bottom:r,left:o,x:o*2,y:r*2}}if(typeof e=="object"){const r=Gr(e.top??e.y??0,n),o=Gr(e.bottom??e.y??0,n),i=Gr(e.left??e.x??0,t),s=Gr(e.right??e.x??0,t);return{top:r,right:s,bottom:o,left:i,x:i+s,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function IM(e,t,n,r,o,i){const{x:s,y:a}=dl(e,[t,n,r]),{x:l,y:u}=dl({x:e.x+e.width,y:e.y+e.height},[t,n,r]),d=o-l,f=i-u;return{left:Math.floor(s),top:Math.floor(a),right:Math.floor(d),bottom:Math.floor(f)}}const Uf=(e,t,n,r,o,i)=>{const s=AM(i,t,n),a=(t-s.x)/e.width,l=(n-s.y)/e.height,u=Math.min(a,l),d=Uo(u,r,o),f=e.x+e.width/2,c=e.y+e.height/2,h=t/2-f*d,y=n/2-c*d,g=IM(e,h,y,d,t,n),w={left:Math.min(g.left-s.left,0),top:Math.min(g.top-s.top,0),right:Math.min(g.right-s.right,0),bottom:Math.min(g.bottom-s.bottom,0)};return{x:h-w.left+w.right,y:y-w.top+w.bottom,zoom:d}},fl=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Yo(e){return e!==void 0&&e!=="parent"}function Mn(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function Aw(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function Iw(e,t={width:0,height:0},n,r,o){const i={...e},s=r.get(n);if(s){const a=s.origin||o;i.x+=s.internals.positionAbsolute.x-(t.width??0)*a[0],i.y+=s.internals.positionAbsolute.y-(t.height??0)*a[1]}return i}function mm(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function OM(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}function LM(e){return{...bw,...e||{}}}
93function Ii(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){const{x:i,y:s}=rn(e),a=Cs({x:i-((o==null?void 0:o.left)??0),y:s-((o==null?void 0:o.top)??0)},r),{x:l,y:u}=n?ql(a,t):a;return{xSnapped:l,ySnapped:u,...a}}const Wf=e=>({width:e.offsetWidth,height:e.offsetHeight}),Ow=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},$M=["INPUT","SELECT","TEXTAREA"];function Lw(e){var r,o;const t=((o=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:o[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:$M.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const $w=e=>"clientX"in e,rn=(e,t)=>{var i,s;const n=$w(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,o=n?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:o-((t==null?void 0:t.top)??0)}},gm=(e,t,n,r,o)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:o,position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...Wf(s)}})};function Dw({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:s,targetControlY:a}){const l=e*.125+o*.375+s*.375+n*.125,u=t*.125+i*.375+a*.375+r*.125,d=Math.abs(l-e),f=Math.abs(u-t);return[l,u,d,f]}function ta(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function ym({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case ee.Left:return[t-ta(t-r,i),n];case ee.Right:return[t+ta(r-t,i),n];case ee.Top:return[t,n-ta(n-o,i)];case ee.Bottom:return[t,n+ta(o-n,i)]}}function zw({sourceX:e,sourceY:t,sourcePosition:n=ee.Bottom,targetX:r,targetY:o,targetPosition:i=ee.Top,curvature:s=.25}){const[a,l]=ym({pos:n,x1:e,y1:t,x2:r,y2:o,c:s}),[u,d]=ym({pos:i,x1:r,y1:o,x2:e,y2:t,c:s}),[f,c,h,y]=Dw({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:d});return[`M${e},${t} C${a},${l} ${u},${d} ${r},${o}`,f,c,h,y]}function jw({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,s=Math.abs(r-t)/2,a=r<t?r+s:r-s;return[i,a,o,s]}function DM({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r,elevateOnSelect:o=!1}){if(r!==void 0)return r;const i=o&&n?1e3:0,s=Math.max(e.parentId?e.internals.z:0,t.parentId?t.internals.z:0);return i+s}function zM({sourceNode:e,targetNode:t,width:n,height:r,transform:o}){const i=Kl(cl(e),cl(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const s={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]};return as(s,Gl(i))>0}const jM=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,FM=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),Fw=(e,t)=>{if(!e.source||!e.target)return t;let n;return Nw(e)?n={...e}:n={...e,id:jM(e)},FM(n,t)?t:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,t.concat(n))};function Bw({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,s,a]=jw({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,s,a]}const vm={[ee.Left]:{x:-1,y:0},[ee.Right]:{x:1,y:0},[ee.Top]:{x:0,y:-1},[ee.Bottom]:{x:0,y:1}},BM=({source:e,sourcePosition:t=ee.Bottom,target:n})=>t===ee.Left||t===ee.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},wm=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function HM({source:e,sourcePosition:t=ee.Bottom,target:n,targetPosition:r=ee.Top,center:o,offset:i,stepPosition:s}){const a=vm[t],l=vm[r],u={x:e.x+a.x*i,y:e.y+a.y*i},d={x:n.x+l.x*i,y:n.y+l.y*i},f=BM({source:u,sourcePosition:t,target:d}),c=f.x!==0?"x":"y",h=f[c];let y=[],g,w;const m={x:0,y:0},v={x:0,y:0},[,,p,x]=jw({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[c]*l[c]===-1){c==="x"?(g=o.x??u.x+(d.x-u.x)*s,w=o.y??(u.y+d.y)/2):(g=o.x??(u.x+d.x)/2,w=o.y??u.y+(d.y-u.y)*s);const b=[{x:g,y:u.y},{x:g,y:d.y}],k=[{x:u.x,y:w},{x:d.x,y:w}];a[c]===h?y=c==="x"?b:k:y=c==="x"?k:b}else{const b=[{x:u.x,y:d.y}],k=[{x:d.x,y:u.y}];if(c==="x"?y=a.x===h?k:b:y=a.y===h?b:k,t===r){const L=Math.abs(e[c]-n[c]);if(L<=i){const j=Math.min(i-1,i-L);a[c]===h?m[c]=(u[c]>e[c]?-1:1)*j:v[c]=(d[c]>n[c]?-1:1)*j}}if(t!==r){const L=c==="x"?"y":"x",j=a[c]===l[L],C=u[L]>d[L],R=u[L]<d[L];(a[c]===1&&(!j&&C||j&&R)||a[c]!==1&&(!j&&R||j&&C))&&(y=c==="x"?b:k)}const P={x:u.x+m.x,y:u.y+m.y},I={x:d.x+v.x,y:d.y+v.y},z=Math.max(Math.abs(P.x-y[0].x),Math.abs(I.x-y[0].x)),D=Math.max(Math.abs(P.y-y[0].y),Math.abs(I.y-y[0].y));z>=D?(g=(P.x+I.x)/2,w=y[0].y):(g=y[0].x,w=(P.y+I.y)/2)}
93return[[e,{x:u.x+m.x,y:u.y+m.y},...y,{x:d.x+v.x,y:d.y+v.y},n],g,w,p,x]}function VM(e,t,n,r){const o=Math.min(wm(e,t)/2,wm(t,n)/2,r),{x:i,y:s}=t;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const u=e.x<n.x?-1:1,d=e.y<n.y?1:-1;return`L ${i+o*u},${s}Q ${i},${s} ${i},${s+o*d}`}const a=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${i},${s+o*l}Q ${i},${s} ${i+o*a},${s}`}function yd({sourceX:e,sourceY:t,sourcePosition:n=ee.Bottom,targetX:r,targetY:o,targetPosition:i=ee.Top,borderRadius:s=5,centerX:a,centerY:l,offset:u=20,stepPosition:d=.5}){const[f,c,h,y,g]=HM({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:a,y:l},offset:u,stepPosition:d});return[f.reduce((m,v,p)=>{let x="";return p>0&&p<f.length-1?x=VM(f[p-1],v,f[p+1],s):x=`${p===0?"M":"L"}${v.x} ${v.y}`,m+=x,m},""),c,h,y,g]}function xm(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function UM(e){var f;const{sourceNode:t,targetNode:n}=e;if(!xm(t)||!xm(n))return null;const r=t.internals.handleBounds||Em(t.handles),o=n.internals.handleBounds||Em(n.handles),i=Sm((r==null?void 0:r.source)??[],e.sourceHandle),s=Sm(e.connectionMode===Vo.Strict?(o==null?void 0:o.target)??[]:((o==null?void 0:o.target)??[]).concat((o==null?void 0:o.source)??[]),e.targetHandle);if(!i||!s)return(f=e.onError)==null||f.call(e,"008",cn.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const a=(i==null?void 0:i.position)||ee.Bottom,l=(s==null?void 0:s.position)||ee.Top,u=ls(t,i,a),d=ls(n,s,l);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:a,targetPosition:l}}function Em(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function ls(e,t,n=ee.Left,r=!1){const o=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:s,height:a}=t??Mn(e);if(r)return{x:o+s/2,y:i+a/2};switch((t==null?void 0:t.position)??n){case ee.Top:return{x:o+s/2,y:i};case ee.Right:return{x:o+s,y:i+a/2};case ee.Bottom:return{x:o+s/2,y:i+a};case ee.Left:return{x:o,y:i+a/2}}}function Sm(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function vd(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function WM(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){const i=new Set;return e.reduce((s,a)=>([a.markerStart||r,a.markerEnd||o].forEach(l=>{if(l&&typeof l=="object"){const u=vd(l,t);i.has(u)||(s.push({id:u,color:l.color||n,...l}),i.add(u))}}),s),[]).sort((s,a)=>s.id.localeCompare(a.id))}const Yf={nodeOrigin:[0,0],nodeExtent:is,elevateNodesOnSelect:!0,defaults:{}},YM={...Yf,checkEquality:!0};function Xf(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function XM(e,t,n){const r=Xf(Yf,n);for(const o of e.values())if(o.parentId)Qf(o,e,t,r);else{const i=Es(o,r.nodeOrigin),s=Yo(o.extent)?o.extent:r.nodeExtent,a=Hr(i,s,Mn(o));o.internals.positionAbsolute=a}}function wd(e,t,n,r){var l,u;const o=Xf(YM,r);let i=e.length>0;const s=new Map(t),a=o!=null&&o.elevateNodesOnSelect?1e3:0;t.clear(),n.clear();for(const d of e){let f=s.get(d.id);if(o.checkEquality&&d===(f==null?void 0:f.internals.userNode))t.set(d.id,f);else{const c=Es(d,o.nodeOrigin),h=Yo(d.extent)?d.extent:o.nodeExtent,y=Hr(c,h,Mn(d));f={...o.defaults,...d,measured:{width:(l=d.measured)==null?void 0:l.width,height:(u=d.measured)==null?void 0:u.height},internals:{positionAbsolute:y,handleBounds:d.measured?f==null?void 0:f.internals.handleBounds:void 0,z:Hw(d,a),userNode:d}},t.set(d.id,f)}(f.measured===void 0||f.measured.width===void 0||f.measured.height===void 0)&&!f.hidden&&(i=!1),d.parentId&&Qf(f,t,n,r)}return i}function QM(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Qf(e,t,n,r){const{elevateNodesOnSelect:o,nodeOrigin:i,nodeExtent:s}=Xf(Yf,r),a=e.parentId,l=t.get(a);if(!l){console.warn(`Parent node ${a} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}QM(e,n);const u=o?1e3:0,{x:d,y:f,z:c}=KM(e,l,i,s,u),{positionAbsolute:h}=e.internals,y=d!==h.x||f!==h.y;(y||c!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:y?{x:d,y:f}:h,z:c}})}function Hw(e,t){return(zt(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function KM(e,t,n,r,o){const{x:i,y:s}=t.internals.positionAbsolute,a=Mn(e),l=Es(e,n),u=Yo(e.extent)?Hr(l,e.extent,a):l;let d=Hr({x:i+u.x,y:s+u.y},r,a);e.extent==="parent"&&(d=Tw(d,a,t));const f=Hw(e,o),c=t.internals.z??0;return{x:d.x,y:d.y,z:c>=f?c+1:f}}function Kf(e,t,n,r=[0,0]){var s;const o=[],i=new Map;for(const a of e){const l=t.get(a.parentId);if(!l)continue;const u=((s=i.get(a.parentId))==null?void 0:s.expandedRect)??Wo(l),d=Rw(u,a.rect);i.set(a.parentId,{expandedRect:d,parent:l})}return i.size>
930&&i.forEach(({expandedRect:a,parent:l},u)=>{var p;const d=l.internals.positionAbsolute,f=Mn(l),c=l.origin??r,h=a.x<d.x?Math.round(Math.abs(d.x-a.x)):0,y=a.y<d.y?Math.round(Math.abs(d.y-a.y)):0,g=Math.max(f.width,Math.round(a.width)),w=Math.max(f.height,Math.round(a.height)),m=(g-f.width)*c[0],v=(w-f.height)*c[1];(h>0||y>0||m||v)&&(o.push({id:u,type:"position",position:{x:l.position.x-h+m,y:l.position.y-y+v}}),(p=n.get(u))==null||p.forEach(x=>{e.some(S=>S.id===x.id)||o.push({id:x.id,type:"position",position:{x:x.position.x+h,y:x.position.y+y}})})),(f.width<a.width||f.height<a.height||h||y)&&o.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:g+(h?c[0]*h-m:0),height:w+(y?c[1]*y-v:0)}})}),o}function GM(e,t,n,r,o,i){const s=r==null?void 0:r.querySelector(".xyflow__viewport");let a=!1;if(!s)return{changes:[],updatedInternals:a};const l=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(const c of e.values()){const h=t.get(c.id);if(!h)continue;if(h.hidden){t.set(h.id,{...h,internals:{...h.internals,handleBounds:void 0}}),a=!0;continue}const y=Wf(c.nodeElement),g=h.measured.width!==y.width||h.measured.height!==y.height;if(!!(y.width&&y.height&&(g||!h.internals.handleBounds||c.force))){const m=c.nodeElement.getBoundingClientRect(),v=Yo(h.extent)?h.extent:i;let{positionAbsolute:p}=h.internals;h.parentId&&h.extent==="parent"?p=Tw(p,y,t.get(h.parentId)):v&&(p=Hr(p,v,y));const x={...h,measured:y,internals:{...h.internals,positionAbsolute:p,handleBounds:{source:gm("source",c.nodeElement,m,d,h.id),target:gm("target",c.nodeElement,m,d,h.id)}}};t.set(h.id,x),h.parentId&&Qf(x,t,n,{nodeOrigin:o}),a=!0,g&&(l.push({id:h.id,type:"dimensions",dimensions:y}),h.expandParent&&h.parentId&&f.push({id:h.id,parentId:h.parentId,rect:Wo(x,o)}))}}if(f.length>0){const c=Kf(f,t,n,o);l.push(...c)}return{changes:l,updatedInternals:a}}async function qM({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r),a=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(a)}function Cm(e,t,n,r,o,i){let s=o;const a=r.get(s)||new Map;r.set(s,a.set(n,t)),s=`${o}-${e}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,t)),i){s=`${o}-${e}-${i}`;const u=r.get(s)||new Map;r.set(s,u.set(n,t))}}function Vw(e,t,n){e.clear(),t.clear();for(const r of n){const{source:o,target:i,sourceHandle:s=null,targetHandle:a=null}=r,l={edgeId:r.id,source:o,target:i,sourceHandle:s,targetHandle:a},u=`${o}-${s}--${i}-${a}`,d=`${i}-${a}--${o}-${s}`;Cm("source",l,d,e,o,s),Cm("target",l,u,e,i,a),t.set(r.id,r)}}function Uw(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:Uw(n,t):!1}function bm(e,t,n){var o;let r=e;do{if((o=r==null?void 0:r.matches)!=null&&o.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function ZM(e,t,n,r){const o=new Map;for(const[i,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!Uw(s,e))&&(s.draggable||t&&typeof s.draggable>"u")){const a=e.get(i);a&&o.set(i,{id:i,position:a.position||{x:0,y:0},distance:{x:n.x-a.internals.positionAbsolute.x,y:n.y-a.internals.positionAbsolute.y},extent:a.extent,parentId:a.parentId,origin:a.origin,expandParent:a.expandParent,internals:{positionAbsolute:a.internals.positionAbsolute||{x:0,y:0}},measured:{width:a.measured.width??0,height:a.measured.height??0}})}return o}function Xu({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var s,a,l;const o=[];for(const[u,d]of t){const f=(s=n.get(u))==null?void 0:s.internals.userNode;f&&o.push({...f,position:d.position,dragging:r})}if(!e)return[o[0],o];const i=(a=n.get(e))==null?void 0:a.internals.userNode;return[i?{...i,position:((l=t.get(e))==null?void 0:l.position)||i.position,dragging:r}:o[0],o]}function JM({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},s=0,a=new Map,l=!1,u={x:0,y:0},d=null,f=!1,c=null,h=!1,y=!1;function g({noDragClassName:m,handleSelector:v,domNode:p,isSelectable:x,nodeId:S,nodeClickDistance:b=0}){c=dt(p);function k({x:D,y:L}
93,j){const{nodeLookup:C,nodeExtent:R,snapGrid:M,snapToGrid:A,nodeOrigin:N,onNodeDrag:T,onSelectionDrag:O,onError:$,updateNodePositions:F}=t();i={x:D,y:L};let H=!1,U={x:0,y:0,x2:0,y2:0};if(a.size>1&&R){const Q=Ss(a);U=gd(Q)}for(const[Q,Y]of a){if(!C.has(Q))continue;let G={x:D-Y.distance.x,y:L-Y.distance.y};A&&(G=ql(G,M));let X=[[R[0][0],R[0][1]],[R[1][0],R[1][1]]];if(a.size>1&&R&&!Y.extent){const{positionAbsolute:oe}=Y.internals,Z=oe.x-U.x+R[0][0],te=oe.x+Y.measured.width-U.x2+R[1][0],J=oe.y-U.y+R[0][1],ce=oe.y+Y.measured.height-U.y2+R[1][1];X=[[Z,J],[te,ce]]}const{position:q,positionAbsolute:re}=Pw({nodeId:Q,nextPosition:G,nodeLookup:C,nodeExtent:X,nodeOrigin:N,onError:$});H=H||Y.position.x!==q.x||Y.position.y!==q.y,Y.position=q,Y.internals.positionAbsolute=re}if(y=y||H,!!H&&(F(a,!0),j&&(r||T||!S&&O))){const[Q,Y]=Xu({nodeId:S,dragItems:a,nodeLookup:C});r==null||r(j,a,Q,Y),T==null||T(j,Q,Y),S||O==null||O(j,Y)}}async function P(){if(!d)return;const{transform:D,panBy:L,autoPanSpeed:j,autoPanOnNodeDrag:C}=t();if(!C){l=!1,cancelAnimationFrame(s);return}const[R,M]=Mw(u,d,j);(R!==0||M!==0)&&(i.x=(i.x??0)-R/D[2],i.y=(i.y??0)-M/D[2],await L({x:R,y:M})&&k(i,null)),s=requestAnimationFrame(P)}function I(D){var H;const{nodeLookup:L,multiSelectionActive:j,nodesDraggable:C,transform:R,snapGrid:M,snapToGrid:A,selectNodesOnDrag:N,onNodeDragStart:T,onSelectionDragStart:O,unselectNodesAndEdges:$}=t();f=!0,(!N||!x)&&!j&&S&&((H=L.get(S))!=null&&H.selected||$()),x&&N&&S&&(e==null||e(S));const F=Ii(D.sourceEvent,{transform:R,snapGrid:M,snapToGrid:A,containerBounds:d});if(i=F,a=ZM(L,C,F,S),a.size>0&&(n||T||!S&&O)){const[U,Q]=Xu({nodeId:S,dragItems:a,nodeLookup:L});n==null||n(D.sourceEvent,a,U,Q),T==null||T(D.sourceEvent,U,Q),S||O==null||O(D.sourceEvent,Q)}}const z=aw().clickDistance(b).on("start",D=>{const{domNode:L,nodeDragThreshold:j,transform:C,snapGrid:R,snapToGrid:M}=t();d=(L==null?void 0:L.getBoundingClientRect())||null,h=!1,y=!1,j===0&&I(D),i=Ii(D.sourceEvent,{transform:C,snapGrid:R,snapToGrid:M,containerBounds:d}),u=rn(D.sourceEvent,d)}).on("drag",D=>{const{autoPanOnNodeDrag:L,transform:j,snapGrid:C,snapToGrid:R,nodeDragThreshold:M,nodeLookup:A}=t(),N=Ii(D.sourceEvent,{transform:j,snapGrid:C,snapToGrid:R,containerBounds:d});if((D.sourceEvent.type==="touchmove"&&D.sourceEvent.touches.length>1||S&&!A.has(S))&&(h=!0),!h){if(!l&&L&&f&&(l=!0,P()),!f){const T=N.xSnapped-(i.x??0),O=N.ySnapped-(i.y??0);Math.sqrt(T*T+O*O)>M&&I(D)}(i.x!==N.xSnapped||i.y!==N.ySnapped)&&a&&f&&(u=rn(D.sourceEvent,d),k(N,D.sourceEvent))}}).on("end",D=>{if(!(!f||h)&&(l=!1,f=!1,cancelAnimationFrame(s),a.size>0)){const{nodeLookup:L,updateNodePositions:j,onNodeDragStop:C,onSelectionDragStop:R}=t();if(y&&(j(a,!1),y=!1),o||C||!S&&R){const[M,A]=Xu({nodeId:S,dragItems:a,nodeLookup:L,dragging:!1});o==null||o(D.sourceEvent,a,M,A),C==null||C(D.sourceEvent,M,A),S||R==null||R(D.sourceEvent,A)}}}).filter(D=>{const L=D.target;return!D.button&&(!m||!bm(L,`.${m}`,p))&&(!v||bm(L,v,p))});c.call(z)}function w(){c==null||c.on(".drag",null)}return{update:g,destroy:w}}function eR(e,t,n){const r=[],o={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())as(o,Wo(i))>0&&r.push(i);return r}const tR=250;function nR(e,t,n,r){var a,l;let o=[],i=1/0;const s=eR(e,n,t+tR);for(const u of s){const d=[...((a=u.internals.handleBounds)==null?void 0:a.source)??[],...((l=u.internals.handleBounds)==null?void 0:l.target)??[]];for(const f of d){if(r.nodeId===f.nodeId&&r.type===f.type&&r.id===f.id)continue;const{x:c,y:h}=ls(u,f,f.position,!0),y=Math.sqrt(Math.pow(c-e.x,2)+Math.pow(h-e.y,2));y>t||(y<i?(o=[{...f,x:c,y:h}],i=y):y===i&&o.push({...f,x:c,y:h}))}}if(!o.length)return null;if(o.length>1){const u=r.type==="source"?"target":"source";return o.find(d=>d.type===u)??o[0]}return o[0]}function Ww(e,t,n,r,o,i=!1){var u,d,f;
93const s=r.get(e);if(!s)return null;const a=o==="strict"?(u=s.internals.handleBounds)==null?void 0:u[t]:[...((d=s.internals.handleBounds)==null?void 0:d.source)??[],...((f=s.internals.handleBounds)==null?void 0:f.target)??[]],l=(n?a==null?void 0:a.find(c=>c.id===n):a==null?void 0:a[0])??null;return l&&i?{...l,...ls(s,l,l.position,!0)}:l}function Yw(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function rR(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const Xw=()=>!0;function oR(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:s,domNode:a,nodeLookup:l,lib:u,autoPanOnConnect:d,flowId:f,panBy:c,cancelConnection:h,onConnectStart:y,onConnect:g,onConnectEnd:w,isValidConnection:m=Xw,onReconnectEnd:v,updateConnection:p,getTransform:x,getFromHandle:S,autoPanSpeed:b,dragThreshold:k=1}){const P=Ow(e.target);let I=0,z;const{x:D,y:L}=rn(e),j=P==null?void 0:P.elementFromPoint(D,L),C=Yw(i,j),R=a==null?void 0:a.getBoundingClientRect();let M=!1;if(!R||!C)return;const A=Ww(o,C,r,l,t);if(!A)return;let N=rn(e,R),T=!1,O=null,$=!1,F=null;function H(){if(!d||!R)return;const[oe,Z]=Mw(N,R,b);c({x:oe,y:Z}),I=requestAnimationFrame(H)}const U={...A,nodeId:o,type:C,position:A.position},Q=l.get(o);let G={inProgress:!0,isValid:null,from:ls(Q,U,ee.Left,!0),fromHandle:U,fromPosition:U.position,fromNode:Q,to:N,toHandle:null,toPosition:fm[U.position],toNode:null};function X(){M=!0,p(G),y==null||y(e,{nodeId:o,handleId:r,handleType:C})}k===0&&X();function q(oe){if(!M){const{x:ce,y:de}=rn(oe),st=ce-D,Yt=de-L;if(!(st*st+Yt*Yt>k*k))return;X()}if(!S()||!U){re(oe);return}const Z=x();N=rn(oe,R),z=nR(Cs(N,Z,!1,[1,1]),n,l,U),T||(H(),T=!0);const te=Qw(oe,{handle:z,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:s?"target":"source",isValidConnection:m,doc:P,lib:u,flowId:f,nodeLookup:l});F=te.handleDomNode,O=te.connection,$=rR(!!z,te.isValid);const J={...G,isValid:$,to:te.toHandle&&$?dl({x:te.toHandle.x,y:te.toHandle.y},Z):N,toHandle:te.toHandle,toPosition:$&&te.toHandle?te.toHandle.position:fm[U.position],toNode:te.toHandle?l.get(te.toHandle.nodeId):null};$&&z&&G.toHandle&&J.toHandle&&G.toHandle.type===J.toHandle.type&&G.toHandle.nodeId===J.toHandle.nodeId&&G.toHandle.id===J.toHandle.id&&G.to.x===J.to.x&&G.to.y===J.to.y||(p(J),G=J)}function re(oe){if(M){(z||F)&&O&&$&&(g==null||g(O));const{inProgress:Z,...te}=G,J={...te,toPosition:G.toHandle?G.toPosition:null};w==null||w(oe,J),i&&(v==null||v(oe,J))}h(),cancelAnimationFrame(I),T=!1,$=!1,O=null,F=null,P.removeEventListener("mousemove",q),P.removeEventListener("mouseup",re),P.removeEventListener("touchmove",q),P.removeEventListener("touchend",re)}P.addEventListener("mousemove",q),P.addEventListener("mouseup",re),P.addEventListener("touchmove",q),P.addEventListener("touchend",re)}function Qw(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:s,lib:a,flowId:l,isValidConnection:u=Xw,nodeLookup:d}){const f=i==="target",c=t?s.querySelector(`.${a}-flow__handle[data-id="${l}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:h,y}=rn(e),g=s.elementFromPoint(h,y),w=g!=null&&g.classList.contains(`${a}-flow__handle`)?g:c,m={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const v=Yw(void 0,w),p=w.getAttribute("data-nodeid"),x=w.getAttribute("data-handleid"),S=w.classList.contains("connectable"),b=w.classList.contains("connectableend");if(!p||!v)return m;const k={source:f?p:r,sourceHandle:f?x:o,target:f?r:p,targetHandle:f?o:x};m.connection=k;const I=S&&b&&(n===Vo.Strict?f&&v==="source"||!f&&v==="target":p!==r||x!==o);m.isValid=I&&u(k),m.toHandle=Ww(p,v,x,d,n,!0)}return m}const xd={onPointerDown:oR,isValid:Qw};function iR({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const o=dt(e);function i({translateExtent:a,width:l,height:u,zoomStep:d=10,pannable:f=!0,zoomable:c=!0,inversePan:h=!1}){const y=p=>{const x=n();if(p.sourceEvent.type!=="wheel"||!t)return;const S=-p.sourceEvent.deltaY*(p.sourceEvent.deltaMode===1?.05:p.sourceEvent.deltaMode?1:.002)*d,b=x[2]*Math.pow(2,S);t.scaleTo(b)};let g=[0,0];const w=p=>{(p.sourceEvent.type==="mousedown"||p.sourceEvent.type==="touchstart")&&(g=[p.sourceEvent.clientX??p.sourceEvent.touches[0].clientX,p.sourceEvent.clientY??p.sourceEvent.touches[0].clientY])},m=p=>{const x=n();if(p.sourceEvent.type!=="mousemove"&&p.sourceEvent.type!=="touchmove"||!t)return;const S=[p.sourceEvent.clientX??p.sourceEvent.touches[0].clientX,p.sourceEvent.clientY??p.sourceEvent.touches[0].clientY],b=[S[0]-g[0],S[1]-g[1]];g=S;const k=r()*Math.max(x[2],Math.log(x[2]))*(h?-1:1),P={x:x[0]-b[0]*k,y:x[1]-b[1]*k},I=[[0,0],[l,u]];t.setViewportConstrained({x:P.x,y:P.y,zoom:x[2]},I,a)},v=Sw().on("start",w).on("zoom",f?m:null).on("zoom.wheel",c?y:null);o.call(v,{})}function s(){o.on("zoom",null)}return{update:i,destroy:s,pointer:Lt}}const sR=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,Zl=e=>({x:e.x,y:e.y,zoom:e.k}),Qu=({x:e,y:t,zoom:n})=>Ql.translate(e,t).scale(n),uo=(e,t)=>e.target.closest(`.${t}`),Kw=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),aR=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Ku=(e,t=0,n=aR,r=()=>{})=>{const o=typeof t=="number"&&t>0;return o||r(),o?e.transition().duration(t).ease(n).on("end",r):e},Gw=e=>{const t=e.ctrlKey&&fl()?10:1;
93return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function lR({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:a,onPanZoom:l,onPanZoomEnd:u}){return d=>{if(uo(d,t))return!1;d.preventDefault(),d.stopImmediatePropagation();const f=n.property("__zoom").k||1;if(d.ctrlKey&&s){const w=Lt(d),m=Gw(d),v=f*Math.pow(2,m);r.scaleTo(n,v,w,d);return}const c=d.deltaMode===1?20:1;let h=o===Rr.Vertical?0:d.deltaX*c,y=o===Rr.Horizontal?0:d.deltaY*c;!fl()&&d.shiftKey&&o!==Rr.Vertical&&(h=d.deltaY*c,y=0),r.translateBy(n,-(h/f)*i,-(y/f)*i,{internal:!0});const g=Zl(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,a==null||a(d,g)),e.isPanScrolling&&(l==null||l(d,g),e.panScrollTimeout=setTimeout(()=>{u==null||u(d,g),e.isPanScrolling=!1},150))}}function uR({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){const i=r.type==="wheel",s=!t&&i&&!r.ctrlKey,a=uo(r,e);if(r.ctrlKey&&i&&a&&r.preventDefault(),s||a)return null;r.preventDefault(),n.call(this,r,o)}}function cR({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var i,s,a;if((i=r.sourceEvent)!=null&&i.internal)return;const o=Zl(r.transform);e.mouseButton=((s=r.sourceEvent)==null?void 0:s.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=o,((a=r.sourceEvent)==null?void 0:a.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,o))}}function dR({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{var s,a;e.usedRightMouseButton=!!(n&&Kw(t,e.mouseButton??0)),(s=i.sourceEvent)!=null&&s.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!((a=i.sourceEvent)!=null&&a.internal)&&(o==null||o(i.sourceEvent,Zl(i.transform)))}}function fR({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return s=>{var a;if(!((a=s.sourceEvent)!=null&&a.internal)&&(e.isZoomingOrPanning=!1,i&&Kw(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),o&&sR(e.prevViewport,s.transform))){const l=Zl(s.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o==null||o(s.sourceEvent,l)},n?150:0)}}}function hR({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:a,noPanClassName:l,lib:u}){return d=>{var y;const f=e||t,c=n&&d.ctrlKey;if(d.button===1&&d.type==="mousedown"&&(uo(d,`${u}-flow__node`)||uo(d,`${u}-flow__edge`)))return!0;if(!r&&!f&&!o&&!i&&!n||s||uo(d,a)&&d.type==="wheel"||uo(d,l)&&(d.type!=="wheel"||o&&d.type==="wheel"&&!e)||!n&&d.ctrlKey&&d.type==="wheel")return!1;if(!n&&d.type==="touchstart"&&((y=d.touches)==null?void 0:y.length)>1)return d.preventDefault(),!1;if(!f&&!o&&!c&&d.type==="wheel"||!r&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(r)&&!r.includes(d.button)&&d.type==="mousedown")return!1;const h=Array.isArray(r)&&r.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||d.type==="wheel")&&h}}function pR({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:o,viewport:i,onPanZoom:s,onPanZoomStart:a,onPanZoomEnd:l,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),c=Sw().clickDistance(!zt(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(o),h=dt(e).call(c);p({x:i.x,y:i.y,zoom:Uo(i.zoom,t,n)},[[0,0],[f.width,f.height]],o);const y=h.on("wheel.zoom"),g=h.on("dblclick.zoom");c.wheelDelta(Gw);function w(L,j){return h?new Promise(C=>{c==null||c.interpolate((j==null?void 0:j.interpolate)==="linear"?Ai:Ea).transform(Ku(h,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>C(!0)),L)}):Promise.resolve(!1)}function m({noWheelClassName:L,noPanClassName:j,onPaneContextMenu:C,userSelectionActive:R,panOnScroll:M,panOnDrag:A,panOnScrollMode:N,panOnScrollSpeed:T,preventScrolling:O,zoomOnPinch:$,zoomOnScroll:F,zoomOnDoubleClick:H,zoomActivationKeyPressed:U,lib:Q,onTransformChange:Y}){R&&!d.isZoomingOrPanning&&v();const X=M&&!U&&!R?lR({zoomPanValues:d,noWheelClassName:L,d3Selection:h,d3Zoom:c,panOnScrollMode:N,panOnScrollSpeed:T,zoomOnPinch:$,onPanZoomStart:a,onPanZoom:s,onPanZoomEnd:l}):uR({noWheelClassName:L,preventScrolling:O,d3ZoomHandler:y});if(h.on("wheel.zoom",X,{passive:!1}),!R){const re=cR({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:a});c.on("start",re);const oe=dR({zoomPanValues:d,panOnDrag:A,onPaneContextMenu:!!C,onPanZoom:s,onTransformChange:Y});c.on("zoom",oe);const Z=fR({zoomPanValues:d,panOnDrag:A,panOnScroll:M,onPaneContextMenu:C,onPanZoomEnd:l,onDraggingChange:u});c.on("end",Z)}const q=hR({zoomActivationKeyPressed:U,panOnDrag:A,zoomOnScroll:F,panOnScroll:M,zoomOnDoubleClick:H,zoomOnPinch:$,userSelectionActive:R,noPanClassName:j,noWheelClassName:L,lib:Q});c.filter(q),H?h.on("dblclick.zoom",g):h.on("dblclick.zoom",null)}function v(){c.on("zoom",null)}async function p(L,j,C){const R=Qu(L),M=c==null?void 0:c.constrain()(R,j,C);return M&&await w(M),new Promise(A=>A(M))}async function x(L,j){const C=Qu(L);return await w(C,j),new Promise(R=>R(C))}function S(L){if(h){const j=Qu(L),C=h.property("__zoom");(C.k!==L.zoom||C.x!==L.x||C.y!==L.y)&&(c==null||c.transform(h,j,null,{sync:!0}))}}function b(){const L=h?Ew(h.node()):{x:0,y:0,k:1};return{x:L.x,y:L.y,zoom:L.k}}function k(L,j){return h?new Promise(C=>{c==null||c.interpolate((j==null?void 0:j.interpolate)==="linear"?Ai:Ea).scaleTo(Ku(h,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>C(!0)),L)}):Promise.resolve(!1)}function P(L,j){return h?new Promise(C=>{c==null||c.interpolate((j==null?void 0:j.interpolate)==="linear"?Ai:Ea).scaleBy(Ku(h,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>C(!0)),L)}):Promise.resolve(!1)}function I(L){c==null||c.scaleExtent(L)}function z(L){c==null||c.translateExtent(L)}function D(L){const j=!zt(L)||L<0?0:L;c==null||c.clickDistance(j)}
93return{update:m,destroy:v,setViewport:x,setViewportConstrained:p,getViewport:b,scaleTo:k,scaleBy:P,setScaleExtent:I,setTranslateExtent:z,syncViewport:S,setClickDistance:D}}var Xo;(function(e){e.Line="line",e.Handle="handle"})(Xo||(Xo={}));function mR({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:o,affectsY:i}){const s=e-t,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&o&&(l[0]=l[0]*-1),a&&i&&(l[1]=l[1]*-1),l}function gR(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),o=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:o}}function Ln(e,t){return Math.max(0,t-e)}function $n(e,t){return Math.max(0,e-t)}function na(e,t,n){return Math.max(0,t-e,e-n)}function km(e,t){return e?!t:t}function yR(e,t,n,r,o,i,s,a){let{affectsX:l,affectsY:u}=t;const{isHorizontal:d,isVertical:f}=t,c=d&&f,{xSnapped:h,ySnapped:y}=n,{minWidth:g,maxWidth:w,minHeight:m,maxHeight:v}=r,{x:p,y:x,width:S,height:b,aspectRatio:k}=e;let P=Math.floor(d?h-e.pointerX:0),I=Math.floor(f?y-e.pointerY:0);const z=S+(l?-P:P),D=b+(u?-I:I),L=-i[0]*S,j=-i[1]*b;let C=na(z,g,w),R=na(D,m,v);if(s){let N=0,T=0;l&&P<0?N=Ln(p+P+L,s[0][0]):!l&&P>0&&(N=$n(p+z+L,s[1][0])),u&&I<0?T=Ln(x+I+j,s[0][1]):!u&&I>0&&(T=$n(x+D+j,s[1][1])),C=Math.max(C,N),R=Math.max(R,T)}if(a){let N=0,T=0;l&&P>0?N=$n(p+P,a[0][0]):!l&&P<0&&(N=Ln(p+z,a[1][0])),u&&I>0?T=$n(x+I,a[0][1]):!u&&I<0&&(T=Ln(x+D,a[1][1])),C=Math.max(C,N),R=Math.max(R,T)}if(o){if(d){const N=na(z/k,m,v)*k;if(C=Math.max(C,N),s){let T=0;!l&&!u||l&&!u&&c?T=$n(x+j+z/k,s[1][1])*k:T=Ln(x+j+(l?P:-P)/k,s[0][1])*k,C=Math.max(C,T)}if(a){let T=0;!l&&!u||l&&!u&&c?T=Ln(x+z/k,a[1][1])*k:T=$n(x+(l?P:-P)/k,a[0][1])*k,C=Math.max(C,T)}}if(f){const N=na(D*k,g,w)/k;if(R=Math.max(R,N),s){let T=0;!l&&!u||u&&!l&&c?T=$n(p+D*k+L,s[1][0])/k:T=Ln(p+(u?I:-I)*k+L,s[0][0])/k,R=Math.max(R,T)}if(a){let T=0;!l&&!u||u&&!l&&c?T=Ln(p+D*k,a[1][0])/k:T=$n(p+(u?I:-I)*k,a[0][0])/k,R=Math.max(R,T)}}}I=I+(I<0?R:-R),P=P+(P<0?C:-C),o&&(c?z>D*k?I=(km(l,u)?-P:P)/k:P=(km(l,u)?-I:I)*k:d?(I=P/k,u=l):(P=I*k,l=u));const M=l?p+P:p,A=u?x+I:x;return{width:S+(l?-P:P),height:b+(u?-I:I),x:i[0]*P*(l?-1:1)+M,y:i[1]*I*(u?-1:1)+A}}const qw={width:0,height:0,x:0,y:0},vR={...qw,pointerX:0,pointerY:0,aspectRatio:1};function wR(e){return[[0,0],[e.measured.width,e.measured.height]]}function xR(e,t,n){const r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,a=n[0]*i,l=n[1]*s;return[[r-a,o-l],[r+i-a,o+s-l]]}function ER({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){const i=dt(e);function s({controlPosition:l,boundaries:u,keepAspectRatio:d,resizeDirection:f,onResizeStart:c,onResize:h,onResizeEnd:y,shouldResize:g}){let w={...qw},m={...vR};const v=gR(l);let p,x=null,S=[],b,k,P;const I=aw().on("start",z=>
93{const{nodeLookup:D,transform:L,snapGrid:j,snapToGrid:C,nodeOrigin:R,paneDomNode:M}=n();if(p=D.get(t),!p)return;x=(M==null?void 0:M.getBoundingClientRect())??null;const{xSnapped:A,ySnapped:N}=Ii(z.sourceEvent,{transform:L,snapGrid:j,snapToGrid:C,containerBounds:x});w={width:p.measured.width??0,height:p.measured.height??0,x:p.position.x??0,y:p.position.y??0},m={...w,pointerX:A,pointerY:N,aspectRatio:w.width/w.height},b=void 0,p.parentId&&(p.extent==="parent"||p.expandParent)&&(b=D.get(p.parentId),k=b&&p.extent==="parent"?wR(b):void 0),S=[],P=void 0;for(const[T,O]of D)if(O.parentId===t&&(S.push({id:T,position:{...O.position},extent:O.extent}),O.extent==="parent"||O.expandParent)){const $=xR(O,p,O.origin??R);P?P=[[Math.min($[0][0],P[0][0]),Math.min($[0][1],P[0][1])],[Math.max($[1][0],P[1][0]),Math.max($[1][1],P[1][1])]]:P=$}c==null||c(z,{...w})}).on("drag",z=>{const{transform:D,snapGrid:L,snapToGrid:j,nodeOrigin:C}=n(),R=Ii(z.sourceEvent,{transform:D,snapGrid:L,snapToGrid:j,containerBounds:x}),M=[];if(!p)return;const{x:A,y:N,width:T,height:O}=w,$={},F=p.origin??C,{width:H,height:U,x:Q,y:Y}=yR(m,v,R,u,d,F,k,P),G=H!==T,X=U!==O,q=Q!==A&&G,re=Y!==N&&X;if(!q&&!re&&!G&&!X)return;if((q||re||F[0]===1||F[1]===1)&&($.x=q?Q:w.x,$.y=re?Y:w.y,w.x=$.x,w.y=$.y,S.length>0)){const J=Q-A,ce=Y-N;for(const de of S)de.position={x:de.position.x-J+F[0]*(H-T),y:de.position.y-ce+F[1]*(U-O)},M.push(de)}if((G||X)&&($.width=G&&(!f||f==="horizontal")?H:w.width,$.height=X&&(!f||f==="vertical")?U:w.height,w.width=$.width,w.height=$.height),b&&p.expandParent){const J=F[0]*($.width??0);$.x&&$.x<J&&(w.x=J,m.x=m.x-($.x-J));const ce=F[1]*($.height??0);$.y&&$.y<ce&&(w.y=ce,m.y=m.y-($.y-ce))}const oe=mR({width:w.width,prevWidth:T,height:w.height,prevHeight:O,affectsX:v.affectsX,affectsY:v.affectsY}),Z={...w,direction:oe};(g==null?void 0:g(z,Z))!==!1&&(h==null||h(z,Z),r($,M))}).on("end",z=>{y==null||y(z,{...w}),o==null||o({...w})});i.call(I)}function a(){i.on(".drag",null)}return{update:s,destroy:a}}var Zw={exports:{}},Jw={},ex={exports:{}},tx={};/**
94 * @license React
95 * use-sync-external-store-shim.production.js
96 *
97 * Copyright (c) Meta Platforms, Inc. and affiliates.
98 *
99 * This source code is licensed under the MIT license found in the
100 * LICENSE file in the root directory of this source tree.
101 */var Qo=E;function SR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var CR=typeof Object.is=="function"?Object.is:SR,bR=Qo.useState,kR=Qo.useEffect,_R=Qo.useLayoutEffect,NR=Qo.useDebugValue;function PR(e,t){var n=t(),r=bR({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return _R(function(){o.value=n,o.getSnapshot=t,Gu(o)&&i({inst:o})},[e,n,t]),kR(function(){return Gu(o)&&i({inst:o}),e(function(){Gu(o)&&i({inst:o})})},[e]),NR(n),n}function Gu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!CR(e,n)}catch{return!0}}function TR(e,t){return t()}var MR=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?TR:PR;tx.useSyncExternalStore=Qo.useSyncExternalStore!==void 0?Qo.useSyncExternalStore:MR;ex.exports=tx;var RR=ex.exports;/**
102 * @license React
103 * use-sync-external-store-shim/with-selector.production.js
104 *
105 * Copyright (c) Meta Platforms, Inc. and affiliates.
106 *
107 * This source code is licensed under the MIT license found in the
108 * LICENSE file in the root directory of this source tree.
109 */var Jl=E,AR=RR;function IR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OR=typeof Object.is=="function"?Object.is:IR,LR=AR.useSyncExternalStore,$R=Jl.useRef,DR=Jl.useEffect,zR=Jl.useMemo,jR=Jl.useDebugValue;Jw.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=$R(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=zR(function(){function l(h){if(!u){if(u=!0,d=h,h=r(h),o!==void 0&&s.hasValue){var y=s.value;if(o(y,h))return f=y}return f=h}if(y=f,OR(d,h))return y;var g=r(h);return o!==void 0&&o(y,g)?(d=h,y):(d=h,f=g)}var u=!1,d,f,c=n===void 0?null:n;return[function(){return l(t())},c===null?void 0:function(){return l(c())}]},[t,n,r,o]);var a=LR(e,i[0],i[1]);return DR(function(){s.hasValue=!0,s.value=a},[a]),jR(a),a};Zw.exports=Jw;var FR=Zw.exports;const BR=Sd(FR),HR={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},_m=e=>{let t;const n=new Set,r=(d,f)=>{const c=typeof d=="function"?d(t):d;if(!Object.is(c,t)){const h=t;t=f??(typeof c!="object"||c===null)?c:Object.assign({}
109,t,c),n.forEach(y=>y(t,h))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(HR?"production":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."),n.clear()}},u=t=e(r,o,l);return l},VR=e=>e?_m(e):_m,{useDebugValue:UR}=W,{useSyncExternalStoreWithSelector:WR}=BR,YR=e=>e;function nx(e,t=YR,n){const r=WR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return UR(r),r}const Nm=(e,t)=>{const n=VR(e),r=(o,i=t)=>nx(n,o,i);return Object.assign(r,n),r},XR=(e,t)=>e?Nm(e,t):Nm;function ke(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const eu=E.createContext(null),QR=eu.Provider,rx=cn.error001();function le(e,t){const n=E.useContext(eu);if(n===null)throw new Error(rx);return nx(n,e,t)}function Ee(){const e=E.useContext(eu);if(e===null)throw new Error(rx);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const Pm={display:"none"},KR={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ox="react-flow__node-desc",ix="react-flow__edge-desc",GR="react-flow__aria-live",qR=e=>e.ariaLiveMessage,ZR=e=>e.ariaLabelConfig;function JR({rfId:e}){const t=le(qR);return _.jsx("div",{id:`${GR}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:KR,children:t})}function eA({rfId:e,disableKeyboardA11y:t}){const n=le(ZR);return _.jsxs(_.Fragment,{children:[_.jsx("div",{id:`${ox}-${e}`,style:Pm,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),_.jsx("div",{id:`${ix}-${e}`,style:Pm,children:n["edge.a11yDescription.default"]}),!t&&_.jsx(JR,{rfId:e})]})}const tu=E.forwardRef(({position:e="top-left",children:t,className:n,style:r,...o},i)=>{const s=`${e}`.split("-");return _.jsx("div",{className:Re(["react-flow__panel",n,...s]),style:r,ref:i,...o,children:t})});tu.displayName="Panel";function tA({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:_.jsx(tu,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:_.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const nA=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},ra=e=>e.id;function rA(e,t){return ke(e.selectedNodes.map(ra),t.selectedNodes.map(ra))&&ke(e.selectedEdges.map(ra),t.selectedEdges.map(ra))}function oA({onSelectionChange:e}){const t=Ee(),{selectedNodes:n,selectedEdges:r}=le(nA,rA);return E.useEffect(()=>{const o={nodes:n,edges:r};e==null||e(o),t.getState().onSelectionChangeHandlers.forEach(i=>i(o))},[n,r,e]),null}const iA=e=>!!e.onSelectionChangeHandlers;function sA({onSelectionChange:e}){const t=le(iA);return e||t?_.jsx(oA,{onSelectionChange:e}):null}const sx=[0,0],aA={x:0,y:0,zoom:1},lA=["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","snapToGri
109d","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","paneClickDistance","ariaLabelConfig"],Tm=[...lA,"rfId"],uA=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),Mm={translateExtent:is,nodeOrigin:sx,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function cA(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:o,setTranslateExtent:i,setNodeExtent:s,reset:a,setDefaultNodesAndEdges:l,setPaneClickDistance:u}=le(uA,ke),d=Ee();E.useEffect(()=>(l(e.defaultNodes,e.defaultEdges),()=>{f.current=Mm,a()}),[]);const f=E.useRef(Mm);return E.useEffect(()=>{for(const c of Tm){const h=e[c],y=f.current[c];h!==y&&(typeof e[c]>"u"||(c==="nodes"?t(h):c==="edges"?n(h):c==="minZoom"?r(h):c==="maxZoom"?o(h):c==="translateExtent"?i(h):c==="nodeExtent"?s(h):c==="paneClickDistance"?u(h):c==="ariaLabelConfig"?d.setState({ariaLabelConfig:LM(h)}):c==="fitView"?d.setState({fitViewQueued:h}):c==="fitViewOptions"?d.setState({fitViewOptions:h}):d.setState({[c]:h})))}f.current=e},Tm.map(c=>e[c])),null}function Rm(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function dA(e){var r;const[t,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const o=Rm(),i=()=>n(o!=null&&o.matches?"dark":"light");return i(),o==null||o.addEventListener("change",i),()=>{o==null||o.removeEventListener("change",i)}},[e]),t!==null?t:(r=Rm())!=null&&r.matches?"dark":"light"}const Am=typeof document<"u"?document:null;function us(e=null,t={target:Am,actInsideInputWithModifier:!0}){const[n,r]=E.useState(!1),o=E.useRef(!1),i=E.useRef(new Set([])),[s,a]=E.useMemo(()=>{if(e!==null){const u=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.replace("+",`
110`).replace(`
111
112`,`
113+`).split(`
114`)),d=u.reduce((f,c)=>f.concat(...c),[]);return[u,d]}return[[],[]]},[e]);return E.useEffect(()=>{const l=(t==null?void 0:t.target)??Am,u=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const d=h=>{var w,m;if(o.current=h.ctrlKey||h.metaKey||h.shiftKey||h.altKey,(!o.current||o.current&&!u)&&Lw(h))return!1;
114const g=Om(h.code,a);if(i.current.add(h[g]),Im(s,i.current,!1)){const v=((m=(w=h.composedPath)==null?void 0:w.call(h))==null?void 0:m[0])||h.target,p=(v==null?void 0:v.nodeName)==="BUTTON"||(v==null?void 0:v.nodeName)==="A";t.preventDefault!==!1&&(o.current||!p)&&h.preventDefault(),r(!0)}},f=h=>{const y=Om(h.code,a);Im(s,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(h[y]),h.key==="Meta"&&i.current.clear(),o.current=!1},c=()=>{i.current.clear(),r(!1)};return l==null||l.addEventListener("keydown",d),l==null||l.addEventListener("keyup",f),window.addEventListener("blur",c),window.addEventListener("contextmenu",c),()=>{l==null||l.removeEventListener("keydown",d),l==null||l.removeEventListener("keyup",f),window.removeEventListener("blur",c),window.removeEventListener("contextmenu",c)}}},[e,r]),n}function Im(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function Om(e,t){return t.includes(e)?"code":"key"}const fA=()=>{const e=Ee();return E.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,o,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??r,y:t.y??o,zoom:t.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:o,minZoom:i,maxZoom:s,panZoom:a}=e.getState(),l=Uf(t,r,o,i,s,(n==null?void 0:n.padding)??.1);return a?(await a.setViewport(l,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:o,snapToGrid:i,domNode:s}=e.getState();if(!s)return t;const{x:a,y:l}=s.getBoundingClientRect(),u={x:t.x-a,y:t.y-l}
114,d=n.snapGrid??o,f=n.snapToGrid??i;return Cs(u,r,f,d)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:o,y:i}=r.getBoundingClientRect(),s=dl(t,n);return{x:s.x+o,y:s.y+i}}}),[])};function ax(e,t){const n=[],r=new Map,o=[];for(const i of e)if(i.type==="add"){o.push(i);continue}else if(i.type==="remove"||i.type==="replace")r.set(i.id,[i]);else{const s=r.get(i.id);s?s.push(i):r.set(i.id,[i])}for(const i of t){const s=r.get(i.id);if(!s){n.push(i);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const a={...i};for(const l of s)hA(l,a);n.push(a)}return o.length&&o.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function hA(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured??(t.measured={}),t.measured.width=e.dimensions.width,t.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function lx(e,t){return ax(e,t)}function ux(e,t){return ax(e,t)}function wr(e,t){return{id:e,type:"select",selected:t}}function co(e,t=new Set,n=!1){const r=[];for(const[o,i]of e){const s=t.has(o);!(i.selected===void 0&&!s)&&i.selected!==s&&(n&&(i.selected=s),r.push(wr(i.id,s)))}return r}function Lm({items:e=[],lookup:t}){var o;const n=[],r=new Map(e.map(i=>[i.id,i]));for(const[i,s]of e.entries()){const a=t.get(s.id),l=((o=a==null?void 0:a.internals)==null?void 0:o.userNode)??a;l!==void 0&&l!==s&&n.push({id:s.id,item:s,type:"replace"}),l===void 0&&n.push({item:s,type:"add",index:i})}for(const[i]of t)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function $m(e){return{id:e.id,type:"remove"}}const Dm=e=>kM(e),pA=e=>Nw(e);function cx(e){return E.forwardRef(e)}const mA=typeof window<"u"?E.useLayoutEffect:E.useEffect;function zm(e){const[t,n]=E.useState(BigInt(0)),[r]=E.useState(()=>gA(()=>n(o=>o+BigInt(1))));return mA(()=>{const o=r.get();o.length&&(e(o),r.reset())},[t]),r}function gA(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const dx=E.createContext(null);function yA({children:e}){const t=Ee(),n=E.useCallback(a=>{const{nodes:l=[],setNodes:u,hasDefaultNodes:d,onNodesChange:f,nodeLookup:c,fitViewQueued:h}=t.getState();let y=l;for(const w of a)y=typeof w=="function"?w(y):w;const g=Lm({items:y,lookup:c});d&&u(y),g.length>0?f==null||f(g):h&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:m,setNodes:v}=t.getState();w&&v(m)})},[]),r=zm(n),o=E.useCallback(a=>{const{edges:l=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:f,edgeLookup:c}=t.getState();let h=l;for(const y of a)h=typeof y=="function"?y(h):y;d?u(h):f&&f(Lm({items:h,lookup:c}))},[]),i=zm(o),s=E.useMemo(()=>({nodeQueue:r,edgeQueue:i}),[]);return _.jsx(dx.Provider,{value:s,children:e})}function vA(){const e=E.useContext(dx);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const wA=e=>!!e.panZoom;function Gf(){const e=fA(),t=Ee(),n=vA(),r=le(wA),o=E.useMemo(()=>{const i=f=>t.getState().nodeLookup.get(f),s=f=>{n.nodeQueue.push(f)},a=f=>{n.edgeQueue.push(f)},l=f=>{var m,v;const{nodeLookup:c,nodeOrigin:h}=t.getState(),y=Dm(f)?f:c.get(f.id),g=y.parentId?Iw(y.position,y.measured,y.parentId,c,h):y.position,w={...y,position:g,width:((m=y.measured)==null?void 0:m.width)??y.width,height:((v=y.measured)==null?void 0:v.height)??y.height};return Wo(w)},u=(f,c,h={replace:!1})=>{s(y=>y.map(g=>{if(g.id===f){const w=typeof c=="function"?c(g):c;return h.replace&&Dm(w)?w:{...g,...w}}return g}))},d=(f,c,h={replace:!1})=>{a(y=>y.map(g=>{if(g.id===f){const w=typeof c=="function"?c(g):c;return h.replace&&pA(w)?w:{...g,...w}}return g}))};return{getNodes:()=>t.getState().nodes.map(f=>({...f})),getNode:f=>{var c;return(c=i(f))==null?void 0:c.internals.userNode},getInternalNode:i,getEdges:()=>{const{edges:f=[]}=t.getState();return f.map(c=>({...c}))},getEdge:f=>t.getState().edgeLookup.get(f),setNodes:s,setEdges:a,addNodes:f=>{const c=Array.isArray(f)?f:[f];n.nodeQueue.push(h=>[...h,...c])},addEdges:f=>{const c=Array.isArray(f)?f:[f];n.edgeQueue.push(h=>[...h,...c])},toObject:()=>{const{nodes:f=[],edges:c=[],transform:h}=t.getState(),[y,g,w]=h;return{nodes:f.map(m=>({...m})),edges:c.map(m=>({...m})),viewport:{x:y,y:g,zoom:w}
114}},deleteElements:async({nodes:f=[],edges:c=[]})=>{const{nodes:h,edges:y,onNodesDelete:g,onEdgesDelete:w,triggerNodeChanges:m,triggerEdgeChanges:v,onDelete:p,onBeforeDelete:x}=t.getState(),{nodes:S,edges:b}=await MM({nodesToRemove:f,edgesToRemove:c,nodes:h,edges:y,onBeforeDelete:x}),k=b.length>0,P=S.length>0;if(k){const I=b.map($m);w==null||w(b),v(I)}if(P){const I=S.map($m);g==null||g(S),m(I)}return(P||k)&&(p==null||p({nodes:S,edges:b})),{deletedNodes:S,deletedEdges:b}},getIntersectingNodes:(f,c=!0,h)=>{const y=pm(f),g=y?f:l(f),w=h!==void 0;return g?(h||t.getState().nodes).filter(m=>{const v=t.getState().nodeLookup.get(m.id);if(v&&!y&&(m.id===f.id||!v.internals.positionAbsolute))return!1;const p=Wo(w?m:v),x=as(p,g);return c&&x>0||x>=p.width*p.height||x>=g.width*g.height}):[]},isNodeIntersecting:(f,c,h=!0)=>{const g=pm(f)?f:l(f);if(!g)return!1;const w=as(g,c);return h&&w>0||w>=g.width*g.height},updateNode:u,updateNodeData:(f,c,h={replace:!1})=>{u(f,y=>{const g=typeof c=="function"?c(y):c;return h.replace?{...y,data:g}:{...y,data:{...y.data,...g}}},h)},updateEdge:d,updateEdgeData:(f,c,h={replace:!1})=>{d(f,y=>{const g=typeof c=="function"?c(y):c;return h.replace?{...y,data:g}:{...y,data:{...y.data,...g}}},h)},getNodesBounds:f=>{const{nodeLookup:c,nodeOrigin:h}=t.getState();return _M(f,{nodeLookup:c,nodeOrigin:h})},getHandleConnections:({type:f,id:c,nodeId:h})=>{var y;return Array.from(((y=t.getState().connectionLookup.get(`${h}-${f}${c?`-${c}`:""}`))==null?void 0:y.values())??[])},getNodeConnections:({type:f,handleId:c,nodeId:h})=>{var y;return Array.from(((y=t.getState().connectionLookup.get(`${h}${f?c?`-${f}-${c}`:`-${f}`:""}`))==null?void 0:y.values())??[])},fitView:async f=>{const c=t.getState().fitViewResolver??OM();return t.setState({fitViewQueued:!0,fitViewOptions:f,fitViewResolver:c}),n.nodeQueue.push(h=>[...h]),c.promise}}},[]);return E.useMemo(()=>({...o,...e,viewportInitialized:r}),[r])}const jm=e=>e.selected,xA=typeof window<"u"?window:void 0;function EA({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Ee(),{deleteElements:r}=Gf(),o=us(e,{actInsideInputWithModifier:!1}),i=us(t,{target:xA});E.useEffect(()=>{if(o){const{edges:s,nodes:a}=n.getState();r({nodes:a.filter(jm),edges:s.filter(jm)}),n.setState({nodesSelectionActive:!1})}},[o]),E.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function SA(e){const t=Ee();E.useEffect(()=>{const n=()=>{var o,i;if(!e.current)return!1;const r=Wf(e.current);(r.height===0||r.width===0)&&((i=(o=t.getState()).onError)==null||i.call(o,"004",cn.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const nu={position:"absolute",width:"100%",height:"100%",top:0,left:0},CA=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function bA({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:o=.5,panOnScrollMode:i=Rr.Free,zoomOnDoubleClick:s=!0,panOnDrag:a=!0,defaultViewport:l,translateExtent:u,minZoom:d,maxZoom:f,zoomActivationKeyCode:c,preventScrolling:h=!0,children:y,noWheelClassName:g,noPanClassName:w,onViewportChange:m,isControlledViewport:v,paneClickDistance:p}){const x=Ee(),S=E.useRef(null),{userSelectionActive:b,lib:k}=le(CA,ke),P=us(c),I=E.useRef();SA(S);const z=E.useCallback(D=>{m==null||m({x:D[0],y:D[1],zoom:D[2]}),v||x.setState({transform:D})},[m,v]);return E.useEffect(()=>{if(S.current){I.current=pR({domNode:S.current,minZoom:d,maxZoom:f,translateExtent:u,viewport:l,paneClickDistance:p,onDraggingChange:C=>x.setState({paneDragging:C}),onPanZoomStart:(C,R)=>{const{onViewportChangeStart:M,onMoveStart:A}=x.getState();A==null||A(C,R),M==null||M(R)},onPanZoom:(C,R)=>{const{onViewportChange:M,onMove:A}=x.getState();A==null||A(C,R),M==null||M(R)},onPanZoomEnd:(C,R)=>{const{onViewportChangeEnd:M,onMoveEnd:A}=x.getState();A==null||A(C,R),M==null||M(R)}});const{x:D,y:L,zoom:j}=I.current.getViewport();return x.setState({panZoom:I.current,transform:[D,L,j],domNode:S.current.closest(".react-flow")}),()=>{var C;(C=I.current)==null||C.destroy()}}},[]),E.useEffect(()=>{var D;(D=I.current)==null||D.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:o,panOnScrollMode:i,zoomOnDoubleClick:s,panOnDrag:a,zoomActivationKeyPressed:P,preventScrolling:h,noPanClassName:w,userSelectionActive:b,noWheelClassName:g,lib:k,onTransformChange:z})},[e,t,n,r,o,i,s,a,P,h,w,b,g,k,z]),_.jsx("div",{className:"react-flow__renderer",ref:S,style:nu,children:y})}const kA=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function _A(){const{userSelectionActive:e,userSelectionRect:t}
114=le(kA,ke);return e&&t?_.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const qu=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},NA=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function PA({isSelecting:e,selectionKeyPressed:t,selectionMode:n=ss.Full,panOnDrag:r,selectionOnDrag:o,onSelectionStart:i,onSelectionEnd:s,onPaneClick:a,onPaneContextMenu:l,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:f,onPaneMouseLeave:c,children:h}){const y=Ee(),{userSelectionActive:g,elementsSelectable:w,dragging:m,connectionInProgress:v}=le(NA,ke),p=w&&(e||g),x=E.useRef(null),S=E.useRef(),b=E.useRef(new Set),k=E.useRef(new Set),P=E.useRef(!1),I=E.useRef(!1),z=A=>{if(P.current||v){P.current=!1;return}a==null||a(A),y.getState().resetSelectedElements(),y.setState({nodesSelectionActive:!1})},D=A=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){A.preventDefault();return}l==null||l(A)},L=u?A=>u(A):void 0,j=A=>{var F,H;const{resetSelectedElements:N,domNode:T}=y.getState();if(S.current=T==null?void 0:T.getBoundingClientRect(),!w||!e||A.button!==0||A.target!==x.current||!S.current)return;(H=(F=A.target)==null?void 0:F.setPointerCapture)==null||H.call(F,A.pointerId),I.current=!0,P.current=!1;const{x:O,y:$}=rn(A.nativeEvent,S.current);N(),y.setState({userSelectionRect:{width:0,height:0,startX:O,startY:$,x:O,y:$}}),i==null||i(A)},C=A=>{const{userSelectionRect:N,transform:T,nodeLookup:O,edgeLookup:$,connectionLookup:F,triggerNodeChanges:H,triggerEdgeChanges:U,defaultEdgeOptions:Q}=y.getState();if(!S.current||!N)return;P.current=!0;const{x:Y,y:G}=rn(A.nativeEvent,S.current),{startX:X,startY:q}=N,re={startX:X,startY:q,x:Y<X?Y:X,y:G<q?G:q,width:Math.abs(Y-X),height:Math.abs(G-q)},oe=b.current,Z=k.current;b.current=new Set(Vf(O,re,T,n===ss.Partial,!0).map(J=>J.id)),k.current=new Set;const te=(Q==null?void 0:Q.selectable)??!0;for(const J of b.current){const ce=F.get(J);if(ce)for(const{edgeId:de}of ce.values()){const st=$.get(de);st&&(st.selectable??te)&&k.current.add(de)}}if(!mm(oe,b.current)){const J=co(O,b.current,!0);H(J)}if(!mm(Z,k.current)){const J=co($,k.current);U(J)}y.setState({userSelectionRect:re,userSelectionActive:!0,nodesSelectionActive:!1})},R=A=>{var T,O;if(A.button!==0||!I.current)return;(O=(T=A.target)==null?void 0:T.releasePointerCapture)==null||O.call(T,A.pointerId);const{userSelectionRect:N}=y.getState();!g&&N&&A.target===x.current&&(z==null||z(A)),y.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:b.current.size>0}),s==null||s(A),(t||o)&&(P.current=!1),I.current=!1},M=r===!0||Array.isArray(r)&&r.includes(0);return _.jsxs("div",{className:Re(["react-flow__pane",{draggable:M,dragging:m,selection:e}]),onClick:p?void 0:qu(z,x),onContextMenu:qu(D,x),onWheel:qu(L,x),onPointerEnter:p?void 0:d,onPointerDown:p?j:f,onPointerMove:p?C:f,onPointerUp:p?R:void 0,onPointerLeave:c,ref:x,style:nu,children:[h,_.jsx(_A,{})]})}function Ed({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:a,onError:l}=t.getState(),u=a.get(e);if(!u){l==null||l("012",cn.error012(e));return}t.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&s)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>{var d;return(d=r==null?void 0:r.current)==null?void 0:d.blur()})):o([e])}function fx({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,nodeClickDistance:s}){const a=Ee(),[l,u]=E.useState(!1),d=E.useRef();return E.useEffect(()=>{d.current=JM({getStoreItems:()=>a.getState(),onNodeMouseDown:f=>{Ed({id:f,store:a,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),E.useEffect(()=>{var f,c;if(t)(f=d.current)==null||f.destroy();else if(e.current)return(c=d.current)==null||c.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:i,nodeId:o,nodeClickDistance:s}),()=>{var h;(h=d.current)==null||h.destroy()}},[n,r,t,i,e,o]),l}const TA=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function hx(){const e=Ee();return E.useCallback(n=>
114{const{nodeExtent:r,snapToGrid:o,snapGrid:i,nodesDraggable:s,onError:a,updateNodePositions:l,nodeLookup:u,nodeOrigin:d}=e.getState(),f=new Map,c=TA(s),h=o?i[0]:5,y=o?i[1]:5,g=n.direction.x*h*n.factor,w=n.direction.y*y*n.factor;for(const[,m]of u){if(!c(m))continue;let v={x:m.internals.positionAbsolute.x+g,y:m.internals.positionAbsolute.y+w};o&&(v=ql(v,i));const{position:p,positionAbsolute:x}=Pw({nodeId:m.id,nextPosition:v,nodeLookup:u,nodeExtent:r,nodeOrigin:d,onError:a});m.position=p,m.internals.positionAbsolute=x,f.set(m.id,m)}l(f)},[])}const qf=E.createContext(null),MA=qf.Provider;qf.Consumer;const px=()=>E.useContext(qf),RA=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),AA=(e,t,n)=>r=>{const{connectionClickStartHandle:o,connectionMode:i,connection:s}=r,{fromHandle:a,toHandle:l,isValid:u}=s,d=(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===n;return{connectingFrom:(a==null?void 0:a.nodeId)===e&&(a==null?void 0:a.id)===t&&(a==null?void 0:a.type)===n,connectingTo:d,clickConnecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.id)===t&&(o==null?void 0:o.type)===n,isPossibleEndHandle:i===Vo.Strict?(a==null?void 0:a.type)!==n:e!==(a==null?void 0:a.nodeId)||t!==(a==null?void 0:a.id),connectionInProcess:!!a,clickConnectionInProcess:!!o,valid:d&&u}};function IA({type:e="source",position:t=ee.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:s,onConnect:a,children:l,className:u,onMouseDown:d,onTouchStart:f,...c},h){var R,M;const y=s||null,g=e==="target",w=Ee(),m=px(),{connectOnClick:v,noPanClassName:p,rfId:x}=le(RA,ke),{connectingFrom:S,connectingTo:b,clickConnecting:k,isPossibleEndHandle:P,connectionInProcess:I,clickConnectionInProcess:z,valid:D}=le(AA(m,y,e),ke);m||(M=(R=w.getState()).onError)==null||M.call(R,"010",cn.error010());const L=A=>{const{defaultEdgeOptions:N,onConnect:T,hasDefaultEdges:O}=w.getState(),$={...N,...A};if(O){const{edges:F,setEdges:H}=w.getState();H(Fw($,F))}T==null||T($),a==null||a($)},j=A=>{if(!m)return;const N=$w(A.nativeEvent);if(o&&(N&&A.button===0||!N)){const T=w.getState();xd.onPointerDown(A.nativeEvent,{autoPanOnConnect:T.autoPanOnConnect,connectionMode:T.connectionMode,connectionRadius:T.connectionRadius,domNode:T.domNode,nodeLookup:T.nodeLookup,lib:T.lib,isTarget:g,handleId:y,nodeId:m,flowId:T.rfId,panBy:T.panBy,cancelConnection:T.cancelConnection,onConnectStart:T.onConnectStart,onConnectEnd:T.onConnectEnd,updateConnection:T.updateConnection,onConnect:L,isValidConnection:n||T.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:T.autoPanSpeed,dragThreshold:T.connectionDragThreshold})}N?d==null||d(A):f==null||f(A)},C=A=>{const{onClickConnectStart:N,onClickConnectEnd:T,connectionClickStartHandle:O,connectionMode:$,isValidConnection:F,lib:H,rfId:U,nodeLookup:Q,connection:Y}=w.getState();if(!m||!O&&!o)return;if(!O){N==null||N(A.nativeEvent,{nodeId:m,handleId:y,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:m,type:e,id:y}});return}const G=Ow(A.target),X=n||F,{connection:q,isValid:re}=xd.isValid(A.nativeEvent,{handle:{nodeId:m,id:y,type:e},connectionMode:$,fromNodeId:O.nodeId,fromHandleId:O.id||null,fromType:O.type,isValidConnection:X,flowId:U,doc:G,lib:H,nodeLookup:Q});re&&q&&L(q);const oe=structuredClone(Y);delete oe.inProgress,oe.toPosition=oe.toHandle?oe.toHandle.position:null,T==null||T(A,oe),w.setState({connectionClickStartHandle:null})};return _.jsx("div",{"data-handleid":y,"data-nodeid":m,"data-handlepos":t,"data-id":`${x}-${m}-${y}-${e}`,className:Re(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",p,u,{source:!g,target:g,connectable:r,connectablestart:o,connectableend:i,clickconnecting:k,connectingfrom:S,connectingto:b,valid:D,connectionindicator:r&&(!I||P)&&(I||z?i:o)}]),onMouseDown:j,onTouchStart:j,onClick:v?C:void 0,ref:h,...c,children:l})}const hl=E.memo(cx(IA));function OA({data:e,isConnectable:t,sourcePosition:n=ee.Bottom}){return _.jsxs(_.Fragment,{children:[e==null?void 0:e.label,_.jsx(hl,{type:"source",position:n,isConnectable:t})]})}function LA({data:e,isConnectable:t,targetPosition:n=ee.Top,sourcePosition:r=ee.Bottom}){return _.jsxs(_.Fragment,{children:[_.jsx(hl,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,_.jsx(hl,{type:"source",position:r,isConnectable:t})]})}function $A(){return null}function DA({data:e,isConnectable:t,targetPosition:n=ee.Top}){return _.jsxs(_.Fragment,{children:[_.jsx(hl,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const pl={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Fm={input:OA,default:LA,output:DA,group:$A};function zA(e){var t,n,r,o;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((o=e.style)==null?void 0:o.height)}}const jA=e=>{const{width:t,height:n,x:r,y:o}=Ss(e.nodeLookup,{filter:i=>!!i.selected});return{width:zt(t)?t:null,height:zt(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${o}px)`}};function FA({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Ee(),{width:o,height:i,transformString:s,userSelectionActive:a}=le(jA,ke),l=hx(),u=E.useRef(null);if(E.useEffect(()=>{var c;n||(c=u.current)==null||c.focus({preventScroll:!0})},[n]),fx({nodeRef:u}),a||!o||!i)return null;const d=e?c=>{const h=r.getState().nodes.filter(y=>y.selected);e(c,h)}:void 0,f=c=>{Object.prototype.hasOwnProperty.call(pl,c.key)&&(c.preventDefault(),l({direction:pl[c.key],factor:c.shiftKey?4:1}))};return _.jsx("div",{className:Re(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s},children:_.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:f,style:{width:o,height:i}})})}const Bm=typeof window<"u"?window:void 0,BA=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function mx({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,paneClickDistance:a,deleteKeyCode:l,selectionKeyCode:u,selectionOnDrag:d,selectionMode:f,onSelectionStart:c,onSelectionEnd:h,multiSelectionKeyCode:y,panActivationKeyCode:g,zoomActivationKeyCode:w,elementsSelectable:m,zoomOnScroll:v,zoomOnPinch:p,panOnScroll:x,panOnScrollSpeed:S,panOnScrollMode:b,zoomOnDoubleClick:k,panOnDrag:P,defaultViewport:I,translateExtent:z,minZoom:D,maxZoom:L,preventScrolling:j,onSelectionContextMenu:C,noWheelClassName:R,noPanClassName:M,disableKeyboardA11y:A,onViewportChange:N,isControlledViewport:T}){const{nodesSelectionActive:O,userSelectionActive:$}
114=le(BA),F=us(u,{target:Bm}),H=us(g,{target:Bm}),U=H||P,Q=H||x,Y=d&&U!==!0,G=F||$||Y;return EA({deleteKeyCode:l,multiSelectionKeyCode:y}),_.jsx(bA,{onPaneContextMenu:i,elementsSelectable:m,zoomOnScroll:v,zoomOnPinch:p,panOnScroll:Q,panOnScrollSpeed:S,panOnScrollMode:b,zoomOnDoubleClick:k,panOnDrag:!F&&U,defaultViewport:I,translateExtent:z,minZoom:D,maxZoom:L,zoomActivationKeyCode:w,preventScrolling:j,noWheelClassName:R,noPanClassName:M,onViewportChange:N,isControlledViewport:T,paneClickDistance:a,children:_.jsxs(PA,{onSelectionStart:c,onSelectionEnd:h,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:U,isSelecting:!!G,selectionMode:f,selectionKeyPressed:F,selectionOnDrag:Y,children:[e,O&&_.jsx(FA,{onSelectionContextMenu:C,noPanClassName:M,disableKeyboardA11y:A})]})})}mx.displayName="FlowRenderer";const HA=E.memo(mx),VA=e=>t=>e?Vf(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function UA(e){return le(E.useCallback(VA(e),[e]),ke)}const WA=e=>e.updateNodeInternals;function YA(){const e=le(WA),[t]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(o=>{const i=o.target.getAttribute("data-id");r.set(i,{id:i,nodeElement:o.target,force:!0})}),e(r)}));return E.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function XA({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const o=Ee(),i=E.useRef(null),s=E.useRef(null),a=E.useRef(e.sourcePosition),l=E.useRef(e.targetPosition),u=E.useRef(t),d=n&&!!e.internals.handleBounds;return E.useEffect(()=>{i.current&&!e.hidden&&(!d||s.current!==i.current)&&(s.current&&(r==null||r.unobserve(s.current)),r==null||r.observe(i.current),s.current=i.current)},[d,e.hidden]),E.useEffect(()=>()=>{s.current&&(r==null||r.unobserve(s.current),s.current=null)},[]),E.useEffect(()=>{if(i.current){const f=u.current!==t,c=a.current!==e.sourcePosition,h=l.current!==e.targetPosition;(f||c||h)&&(u.current=t,a.current=e.sourcePosition,l.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),i}function QA({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onContextMenu:i,onDoubleClick:s,nodesDraggable:a,elementsSelectable:l,nodesConnectable:u,nodesFocusable:d,resizeObserver:f,noDragClassName:c,noPanClassName:h,disableKeyboardA11y:y,rfId:g,nodeTypes:w,nodeClickDistance:m,onError:v}){const{node:p,internals:x,isParent:S}=le(X=>{const q=X.nodeLookup.get(e),re=X.parentLookup.has(e);return{node:q,internals:q.internals,isParent:re}},ke);let b=p.type||"default",k=(w==null?void 0:w[b])||Fm[b];k===void 0&&(v==null||v("003",cn.error003(b)),b="default",k=(w==null?void 0:w.default)||Fm.default);const P=!!(p.draggable||a&&typeof p.draggable>"u"),I=!!(p.selectable||l&&typeof p.selectable>"u"),z=!!(p.connectable||u&&typeof p.connectable>"u"),D=!!(p.focusable||d&&typeof p.focusable>"u"),L=Ee(),j=Aw(p),C=XA({node:p,nodeType:b,hasDimensions:j,resizeObserver:f}),R=fx({nodeRef:C,disabled:p.hidden||!P,noDragClassName:c,handleSelector:p.dragHandle,nodeId:e,isSelectable:I,nodeClickDistance:m}),M=hx();if(p.hidden)return null;const A=Mn(p),N=zA(p),T=I||P||t||n||r||o,O=n?X=>n(X,{...x.userNode}):void 0,$=r?X=>r(X,{...x.userNode}):void 0,F=o?X=>o(X,{...x.userNode}):void 0,H=i?X=>i(X,{...x.userNode}):void 0,U=s?X=>s(X,{...x.userNode}):void 0,Q=X=>{const{selectNodesOnDrag:q,nodeDragThreshold:re}=L.getState();I&&(!q||!P||re>0)&&Ed({id:e,store:L,nodeRef:C}),t&&t(X,{...x.userNode})},Y=X=>{if(!(Lw(X.nativeEvent)||y)){if(Cw.includes(X.key)&&I){const q=X.key==="Escape";Ed({id:e,store:L,unselect:q,nodeRef:C})}else if(P&&p.selected&&Object.prototype.hasOwnProperty.call(pl,X.key)){X.preventDefault();const{ariaLabelConfig:q}=L.getState();L.setState({ariaLiveMessage:q["node.a11yDescription.ariaLiveMessage"]({direction:X.key.replace("Arrow","").toLowerCase(),x:~~x.positionAbsolute.x,y:~~x.positionAbsolute.y})}),M({direction:pl[X.key],factor:X.shiftKey?4:1})}}},G=()=>{var J;if(y||!((J=C.current)!=null&&J.matches(":focus-visible")))return;const{transform:X,width:q,height:re,autoPanOnNodeFocus:oe,setCenter:Z}=L.getState();if(!oe)return;Vf(new Map([[e,p]]),{x:0,y:0,width:q,height:re},X,!0).length>0||Z(p.position.x+A.width/2,p.position.y+A.height/2,{zoom:X[2]})};return _.jsx("div",{className:Re(["react-flow__node",`react-flow__node-${b}`,{[h]:P},p.className,{selected:p.selected,selectable:I,parent:S,draggable:P,dragging:R}]),ref:C,style:{zIndex:x.z,transform:`translate(${x.positionAbsolute.x}px,${x.positionAbsolute.y}px)`,pointerEvents:T?"all":"none",visibility:j?"visible":"hidden",...p.style,...N},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:O,onMouseMove:$,onMouseLeave:F,onContextMenu:H,onClick:Q,onDoubleClick:U,onKeyDown:D?Y:void 0,tabIndex:D?0:void 0,onFocus:D?G:void 0,role:p.ariaRole??(D?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${ox}-${g}`,"aria-label":p.ariaLabel,...p.domAttributes,children:_.jsx(MA,{value:e,children:_.jsx(k,{id:e,data:p.data,type:b,positionAbsoluteX:x.positionAbsolute.x,positionAbsoluteY:x.positionAbsolute.y,selected:p.selected??!1,selectable:I,draggable:P,deletable:p.deletable??!0,isConnectable:z,sourcePosition:p.sourcePosition,targetPosition:p.targetPosition,dragging:R,dragHandle:p.dragHandle,zIndex:x.z,parentId:p.parentId,...A})})})}const KA=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,no
114desFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function gx(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,onError:i}=le(KA,ke),s=UA(e.onlyRenderVisibleElements),a=YA();return _.jsx("div",{className:"react-flow__nodes",style:nu,children:s.map(l=>_.jsx(QA,{id:l,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:a,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:i},l))})}gx.displayName="NodeRenderer";const GA=E.memo(gx);function qA(e){return le(E.useCallback(n=>{if(!e)return n.edges.map(o=>o.id);const r=[];if(n.width&&n.height)for(const o of n.edges){const i=n.nodeLookup.get(o.source),s=n.nodeLookup.get(o.target);i&&s&&zM({sourceNode:i,targetNode:s,width:n.width,height:n.height,transform:n.transform})&&r.push(o.id)}return r},[e]),ke)}const ZA=({color:e="none",strokeWidth:t=1})=>_.jsx("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),JA=({color:e="none",strokeWidth:t=1})=>_.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Hm={[Ar.Arrow]:ZA,[Ar.ArrowClosed]:JA};function e3(e){const t=Ee();return E.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(Hm,e)?Hm[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",cn.error009(e)),null)},[e])}const t3=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:a="auto-start-reverse"})=>{const l=e3(t);return l?_.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:a,refX:"0",refY:"0",children:_.jsx(l,{color:n,strokeWidth:s})}):null},yx=({defaultColor:e,rfId:t})=>{const n=le(i=>i.edges),r=le(i=>i.defaultEdgeOptions),o=E.useMemo(()=>WM(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return o.length?_.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:_.jsx("defs",{children:o.map(i=>_.jsx(t3,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};yx.displayName="MarkerDefinitions";var n3=E.memo(yx);function vx({x:e,y:t,label:n,labelStyle:r,labelShowBg:o=!0,labelBgStyle:i,labelBgPadding:s=[2,4],labelBgBorderRadius:a=2,children:l,className:u,...d}){const[f,c]=E.useState({x:1,y:0,width:0,height:0}),h=Re(["react-flow__edge-textwrapper",u]),y=E.useRef(null);return E.useEffect(()=>{if(y.current){const g=y.current.getBBox();c({x:g.x,y:g.y,width:g.width,height:g.height})}},[n]),n?_.jsxs("g",{transform:`translate(${e-f.width/2} ${t-f.height/2})`,className:h,visibility:f.width?"visible":"hidden",...d,children:[o&&_.jsx("rect",{width:f.width+2*s[0],x:-s[0],y:-s[1],height:f.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:a,ry:a}),_.jsx("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:y,style:r,children:n}),l]}):null}vx.displayName="EdgeText";const r3=E.memo(vx);function ru({path:e,labelX:t,labelY:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l,interactionWidth:u=20,...d}){return _.jsxs(_.Fragment,{children:[_.jsx("path",{...d,d:e,fill:"none",className:Re(["react-flow__edge-path",d.className])}),u&&_.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}),r&&zt(t)&&zt(n)?_.jsx(r3,{x:t,y:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l}):null]})}function Vm({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===ee.Left||e===ee.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function wx({sourceX:e,sourceY:t,sourcePosition:n=ee.Bottom,targetX:r,targetY:o,targetPosition:i=ee.Top}){const[s,a]=Vm({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,u]=Vm({pos:i,x1:r,y1:o,x2:e,y2:t}),[d,f,c,h]=Dw({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${a} ${l},${u} ${r},${o}`,d,f,c,h]}function xx(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:s,targetPosition:a,label:l,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:c,labelBgBorderRadius:h,style:y,markerEnd:g,markerStart:w,interactionWidth:m})=>{const[v,p,x]=wx({sourceX:n,sourceY:r,sourcePosition:s,targetX:o,targetY:i,targetPosition:a}),S=e.isInternal?void 0:t;return _.jsx(ru,{id:S,path:v,labelX:p,labelY:x,label:l,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:c,labelBgBorderRadius:h,style:y,markerEnd:g,markerStart:w,interactionWidth:m})})}const o3=xx({isInternal:!1}),Ex=xx({isInternal:!0});o3.displayName="SimpleBezierEdge";Ex.displayName="SimpleBezierEdgeInternal";function Sx(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:c,sourcePosition:h=ee.Bottom,targetPosition:y=ee.Top,markerEnd:g,markerStart:w,pathOptions:m,interactionWidth:v})=>{const[p,x,S]=yd({sourceX:n,sourceY:r,sourcePosition:h,targetX:o,targetY:i,targetPosition:y,borderRadius:m==null?void 0:m.borderRadius,offset:m==null?void 0:m.offset,stepPosition:m==null?void 0:m.stepPosition}),b=e.isInternal?void 0:t;return _.jsx(ru,{id:b,path:p,labelX:x,labelY:S,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:c,markerEnd:g,markerStart:w,interactionWidth:v})})}const Cx=Sx({isInternal:!1}),bx=Sx({isInternal:!0});Cx.displayName="SmoothStepEdge";bx.displayName="SmoothStepEdgeInternal";function kx(e){return E.memo(({id:t,...n})=>{var o;const r=e.isInternal?void 0:t;return _.jsx(Cx,{...n,id:r,pathOptions:E.useMemo(()=>{var i;return{borderRadius:0,offset:(i=n.pathOptions)==null?void 0:i.offset}},[(o=n.pathOptions)==null?void 0:o.offset])})})}const i3=kx({isInternal:!1}),_x=kx({isInternal:!0});
114i3.displayName="StepEdge";_x.displayName="StepEdgeInternal";function Nx(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:c,markerEnd:h,markerStart:y,interactionWidth:g})=>{const[w,m,v]=Bw({sourceX:n,sourceY:r,targetX:o,targetY:i}),p=e.isInternal?void 0:t;return _.jsx(ru,{id:p,path:w,labelX:m,labelY:v,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:c,markerEnd:h,markerStart:y,interactionWidth:g})})}const s3=Nx({isInternal:!1}),Px=Nx({isInternal:!0});s3.displayName="StraightEdge";Px.displayName="StraightEdgeInternal";function Tx(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:s=ee.Bottom,targetPosition:a=ee.Top,label:l,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:c,labelBgBorderRadius:h,style:y,markerEnd:g,markerStart:w,pathOptions:m,interactionWidth:v})=>{const[p,x,S]=zw({sourceX:n,sourceY:r,sourcePosition:s,targetX:o,targetY:i,targetPosition:a,curvature:m==null?void 0:m.curvature}),b=e.isInternal?void 0:t;return _.jsx(ru,{id:b,path:p,labelX:x,labelY:S,label:l,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:c,labelBgBorderRadius:h,style:y,markerEnd:g,markerStart:w,interactionWidth:v})})}const a3=Tx({isInternal:!1}),Mx=Tx({isInternal:!0});a3.displayName="BezierEdge";Mx.displayName="BezierEdgeInternal";const Um={default:Mx,straight:Px,step:_x,smoothstep:bx,simplebezier:Ex},Wm={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},l3=(e,t,n)=>n===ee.Left?e-t:n===ee.Right?e+t:e,u3=(e,t,n)=>n===ee.Top?e-t:n===ee.Bottom?e+t:e,Ym="react-flow__edgeupdater";function Xm({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:s,type:a}){return _.jsx("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:s,className:Re([Ym,`${Ym}-${a}`]),cx:l3(t,r,e),cy:u3(n,r,e),r,stroke:"transparent",fill:"transparent"})}function c3({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:o,targetX:i,targetY:s,sourcePosition:a,targetPosition:l,onReconnect:u,onReconnectStart:d,onReconnectEnd:f,setReconnecting:c,setUpdateHover:h}){const y=Ee(),g=(x,S)=>{if(x.button!==0)return;const{autoPanOnConnect:b,domNode:k,isValidConnection:P,connectionMode:I,connectionRadius:z,lib:D,onConnectStart:L,onConnectEnd:j,cancelConnection:C,nodeLookup:R,rfId:M,panBy:A,updateConnection:N}=y.getState(),T=S.type==="target",O=(H,U)=>{c(!1),f==null||f(H,n,S.type,U)},$=H=>u==null?void 0:u(n,H),F=(H,U)=>{c(!0),d==null||d(x,n,S.type),L==null||L(H,U)};xd.onPointerDown(x.nativeEvent,{autoPanOnConnect:b,connectionMode:I,connectionRadius:z,domNode:k,handleId:S.id,nodeId:S.nodeId,nodeLookup:R,isTarget:T,edgeUpdaterType:S.type,lib:D,flowId:M,cancelConnection:C,panBy:A,isValidConnection:P,onConnect:$,onConnectStart:F,onConnectEnd:j,onReconnectEnd:O,updateConnection:N,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold})},w=x=>g(x,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),m=x=>g(x,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),v=()=>h(!0),p=()=>h(!1);return _.jsxs(_.Fragment,{children:[(e===!0||e==="source")&&_.jsx(Xm,{position:a,centerX:r,centerY:o,radius:t,onMouseDown:w,onMouseEnter:v,onMouseOut:p,type:"source"}),(e===!0||e==="target")&&_.jsx(Xm,{position:l,centerX:i,centerY:s,radius:t,onMouseDown:m,onMouseEnter:v,onMouseOut:p,type:"target"})]})}function d3({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:o,onDoubleClick:i,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:u,reconnectRadius:d,onReconnect:f,onReconnectStart:c,onReconnectEnd:h,rfId:y,edgeTypes:g,noPanClassName:w,onError:m,disableKeyboardA11y:v}){let p=le(Z=>Z.edgeLookup.get(e));const x=le(Z=>Z.defaultEdgeOptions);p=x?{...x,...p}:p;let S=p.type||"default",b=(g==null?void 0:g[S])||Um[S];b===void 0&&(m==null||m("011",cn.error011(S)),S="default",b=(g==null?void 0:g.default)||Um.default);const k=!!(p.focusable||t&&typeof p.focusable>"u"),P=typeof f<"u"&&(p.reconnectable||n&&typeof p.reconnectable>"u"),I=!!(p.selectable||r&&typeof p.selectable>"u"),z=E.useRef(null),[D,L]=E.useState(!1),[j,C]=E.useState(!1),R=Ee(),{zIndex:M,sourceX:A,sourceY:N,targetX:T,targetY:O,sourcePosition:$,targetPosition:F}=le(E.useCallback(Z=>{const te=Z.nodeLookup.get(p.source),J=Z.nodeLookup.get(p.target);if(!te||!J)return{zIndex:p.zIndex,...Wm};const ce=UM({id:e,sourceNode:te,targetNode:J,sourceHandle:p.sourceHandle||null,targetHandle:p.targetHandle||null,connectionMode:Z.c
114onnectionMode,onError:m});return{zIndex:DM({selected:p.selected,zIndex:p.zIndex,sourceNode:te,targetNode:J,elevateOnSelect:Z.elevateEdgesOnSelect}),...ce||Wm}},[p.source,p.target,p.sourceHandle,p.targetHandle,p.selected,p.zIndex]),ke),H=E.useMemo(()=>p.markerStart?`url('#${vd(p.markerStart,y)}')`:void 0,[p.markerStart,y]),U=E.useMemo(()=>p.markerEnd?`url('#${vd(p.markerEnd,y)}')`:void 0,[p.markerEnd,y]);if(p.hidden||A===null||N===null||T===null||O===null)return null;const Q=Z=>{var de;const{addSelectedEdges:te,unselectNodesAndEdges:J,multiSelectionActive:ce}=R.getState();I&&(R.setState({nodesSelectionActive:!1}),p.selected&&ce?(J({nodes:[],edges:[p]}),(de=z.current)==null||de.blur()):te([e])),o&&o(Z,p)},Y=i?Z=>{i(Z,{...p})}:void 0,G=s?Z=>{s(Z,{...p})}:void 0,X=a?Z=>{a(Z,{...p})}:void 0,q=l?Z=>{l(Z,{...p})}:void 0,re=u?Z=>{u(Z,{...p})}:void 0,oe=Z=>{var te;if(!v&&Cw.includes(Z.key)&&I){const{unselectNodesAndEdges:J,addSelectedEdges:ce}=R.getState();Z.key==="Escape"?((te=z.current)==null||te.blur(),J({edges:[p]})):ce([e])}};return _.jsx("svg",{style:{zIndex:M},children:_.jsxs("g",{className:Re(["react-flow__edge",`react-flow__edge-${S}`,p.className,w,{selected:p.selected,animated:p.animated,inactive:!I&&!o,updating:D,selectable:I}]),onClick:Q,onDoubleClick:Y,onContextMenu:G,onMouseEnter:X,onMouseMove:q,onMouseLeave:re,onKeyDown:k?oe:void 0,tabIndex:k?0:void 0,role:p.ariaRole??(k?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":p.ariaLabel===null?void 0:p.ariaLabel||`Edge from ${p.source} to ${p.target}`,"aria-describedby":k?`${ix}-${y}`:void 0,ref:z,...p.domAttributes,children:[!j&&_.jsx(b,{id:e,source:p.source,target:p.target,type:p.type,selected:p.selected,animated:p.animated,selectable:I,deletable:p.deletable??!0,label:p.label,labelStyle:p.labelStyle,labelShowBg:p.labelShowBg,labelBgStyle:p.labelBgStyle,labelBgPadding:p.labelBgPadding,labelBgBorderRadius:p.labelBgBorderRadius,sourceX:A,sourceY:N,targetX:T,targetY:O,sourcePosition:$,targetPosition:F,data:p.data,style:p.style,sourceHandleId:p.sourceHandle,targetHandleId:p.targetHandle,markerStart:H,markerEnd:U,pathOptions:"pathOptions"in p?p.pathOptions:void 0,interactionWidth:p.interactionWidth}),P&&_.jsx(c3,{edge:p,isReconnectable:P,reconnectRadius:d,onReconnect:f,onReconnectStart:c,onReconnectEnd:h,sourceX:A,sourceY:N,targetX:T,targetY:O,sourcePosition:$,targetPosition:F,setUpdateHover:L,setReconnecting:C})]})})}const f3=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Rx({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:o,onReconnect:i,onEdgeContextMenu:s,onEdgeMouseEnter:a,onEdgeMouseMove:l,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:f,onEdgeDoubleClick:c,onReconnectStart:h,onReconnectEnd:y,disableKeyboardA11y:g}){const{edgesFocusable:w,edgesReconnectable:m,elementsSelectable:v,onError:p}=le(f3,ke),x=qA(t);return _.jsxs("div",{className:"react-flow__edges",children:[_.jsx(n3,{defaultColor:e,rfId:n}),x.map(S=>_.jsx(d3,{id:S,edgesFocusable:w,edgesReconnectable:m,elementsSelectable:v,noPanClassName:o,onReconnect:i,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:u,onClick:d,reconnectRadius:f,onDoubleClick:c,onReconnectStart:h,onReconnectEnd:y,rfId:n,onError:p,edgeTypes:r,disableKeyboardA11y:g},S))]})}Rx.displayName="EdgeRenderer";const h3=E.memo(Rx),p3=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function m3({children:e}){const t=le(p3);return _.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function g3(e){const t=Gf(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const y3=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function v3(e){const t=le(y3),n=Ee();return E.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function w3(e){return e.connection.inProgress?{...e.connection,to:Cs(e.connection.to,e.transform)}:{...e.connection}}function x3(e){return w3}function E3(e){const t=x3();return le(t,ke)}const S3=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function C3({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:o,width:i,height:s,isValid:a,inProgress:l}=le(S3,ke);return!(i&&o&&l)?null:_.jsx("svg",{style:e,width:i,height:s,className:"react-flow__connectionline react-flow__container",children:_.jsx("g",{className:Re(["react-flow__connection",_w(a)]),children:_.jsx(Ax,{style:t,type:n,CustomComponent:r,isValid:a})})})}const Ax=({style:e,type:t=Hn.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:o,from:i,fromNode:s,fromHandle:a,fromPosition:l,to:u,toNode:d,toHandle:f,toPosition:c}=E3();if(!o)return;if(n)return _.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:s,fromHandle:a,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:l,toPosition:c,connectionStatus:_w(r),toNode:d,toHandle:f});let h="";const y={sourceX:i.x,sourceY:i.y,sourcePosition:l,targetX:u.x,targetY:u.y,targetPosition:c};switch(t){case Hn.Bezier:[h]=zw(y);break;case Hn.SimpleBezier:[h]=wx(y);break;case Hn.Step:[h]=yd({...y,borderRadius:0});break;case Hn.SmoothStep:[h]=yd(y);break;default:[h]=Bw(y)}return _.jsx("path",{d:h,fill:"none",className:"react-flow__connection-path",style:e})};Ax.displayName="ConnectionLine";const b3={};function Qm(e=b3){E.useRef(e),Ee(),E.useEffect(()=>{},[e])}function k3(){Ee(),E.useRef(!1),E.useEffect(()=>{},[])}function Ix({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:o,onNodeDoubleClick:i,onEdgeDoubleClick:s,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:f,onSelectionStart:c,onSelectionEnd:h,connectionLineType:y,connectionLineStyle:g,connectionLineComponent:w,connectionLineContainerStyle:m,selectionKeyCode:v,selectionOnDrag:p,selectionMode:x,multiSelectionKeyCode:S,panActivationKeyCode:b,zoomActivationKeyCode:k,deleteKeyCode:P,onlyRenderVisibleElements:I,elementsSelectable:z,defaultViewport:D,translateExtent:L,minZoom:j,maxZoom:C,preventScrolling:R,defaultMarkerColor:M,zoomOnScroll:A,zoomOnPinch:N,panOnScroll:T,panOnScrollSpeed:O,panOnScrollMode:$,zoomOnDoubleClick:F,panOnDrag:H,onPaneClick:U,onPaneMouseEnter:Q,onPaneMouseMove:Y,onPaneMouseLeave:G,onPaneScroll:X,onPaneContextMenu:q,paneClickDistance:re,nodeClickDistance:oe,onEdgeContextMenu:Z,onEdgeMouseEnter:te,onEdgeMouseMove:J,onEdgeMouseLeave:ce,reconnectRadius:de,onReconnect:st,onReconnectStart:Yt,onReconnectEnd:_e,noDragClassName:Tt,noWheelClassName:Yr,noPanClassName:mr,disableKeyboardA11y:Xt,no
114deExtent:ti,rfId:gr,viewport:Qt,onViewportChange:wt}){return Qm(e),Qm(t),k3(),g3(n),v3(Qt),_.jsx(HA,{onPaneClick:U,onPaneMouseEnter:Q,onPaneMouseMove:Y,onPaneMouseLeave:G,onPaneContextMenu:q,onPaneScroll:X,paneClickDistance:re,deleteKeyCode:P,selectionKeyCode:v,selectionOnDrag:p,selectionMode:x,onSelectionStart:c,onSelectionEnd:h,multiSelectionKeyCode:S,panActivationKeyCode:b,zoomActivationKeyCode:k,elementsSelectable:z,zoomOnScroll:A,zoomOnPinch:N,zoomOnDoubleClick:F,panOnScroll:T,panOnScrollSpeed:O,panOnScrollMode:$,panOnDrag:H,defaultViewport:D,translateExtent:L,minZoom:j,maxZoom:C,onSelectionContextMenu:f,preventScrolling:R,noDragClassName:Tt,noWheelClassName:Yr,noPanClassName:mr,disableKeyboardA11y:Xt,onViewportChange:wt,isControlledViewport:!!Qt,children:_.jsxs(m3,{children:[_.jsx(h3,{edgeTypes:t,onEdgeClick:o,onEdgeDoubleClick:s,onReconnect:st,onReconnectStart:Yt,onReconnectEnd:_e,onlyRenderVisibleElements:I,onEdgeContextMenu:Z,onEdgeMouseEnter:te,onEdgeMouseMove:J,onEdgeMouseLeave:ce,reconnectRadius:de,defaultMarkerColor:M,noPanClassName:mr,disableKeyboardA11y:Xt,rfId:gr}),_.jsx(C3,{style:g,type:y,component:w,containerStyle:m}),_.jsx("div",{className:"react-flow__edgelabel-renderer"}),_.jsx(GA,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:i,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:oe,onlyRenderVisibleElements:I,noPanClassName:mr,noDragClassName:Tt,disableKeyboardA11y:Xt,nodeExtent:ti,rfId:gr}),_.jsx("div",{className:"react-flow__viewport-portal"})]})})}Ix.displayName="GraphView";const _3=E.memo(Ix),Km=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,fitViewOptions:a,minZoom:l=.5,maxZoom:u=2,nodeOrigin:d,nodeExtent:f}={})=>{const c=new Map,h=new Map,y=new Map,g=new Map,w=r??t??[],m=n??e??[],v=d??[0,0],p=f??is;Vw(y,g,w);const x=wd(m,c,h,{nodeOrigin:v,nodeExtent:p,elevateNodesOnSelect:!1});let S=[0,0,1];if(s&&o&&i){const b=Ss(c,{filter:z=>!!((z.width||z.initialWidth)&&(z.height||z.initialHeight))}),{x:k,y:P,zoom:I}=Uf(b,o,i,l,u,(a==null?void 0:a.padding)??.1);S=[k,P,I]}return{rfId:"1",width:0,height:0,transform:S,nodes:m,nodesInitialized:x,nodeLookup:c,parentLookup:h,edges:w,edgeLookup:g,connectionLookup:y,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:l,maxZoom:u,translateExtent:is,nodeExtent:p,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Vo.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:v,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:a,fitViewResolver:null,connection:{...kw},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:RM,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:bw}},N3=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:u,nodeOrigin:d,nodeExtent:f})=>XR((c,h)=>{async function y(){const{nodeLookup:g,panZoom:w,fitViewOptions:m,fitViewResolver:v,width:p,height:x,minZoom:S,maxZoom:b}=h();w&&(await TM({nodes:g,width:p,height:x,panZoom:w,minZoom:S,maxZoom:b},m),v==null||v.resolve(!0),c({fitViewResolver:null}))}return{...Km({nodes:e,edges:t,width:o,height:i,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:u,nodeOrigin:d,nodeExtent:f,defaultNodes:n,defaultEdges:r}),setNodes:g=>{const{nodeLookup:w,parentLookup:m,nodeOrigin:v,elevateNodesOnSelect:p,fitViewQueued:x}=h(),S=wd(g,w,m,{nodeOrigin:v,nodeExtent:f,elevateNodesOnSelect:p,checkEquality:!0});x&&S?(y(),c({nodes:g,nodesInitialized:S,fitViewQueued:!1,fitViewOptions:void 0})):c({nodes:g,nodesInitialized:S})},setEdges:g=>{const{connectionLookup:w,edgeLookup:m}=h();Vw(w,m,g),c({edges:g})},setDefaultNodesAndEdges:(g,w)=>{if(g){const{setNodes:m}=h();m(g),c({hasDefaultNodes:!0})}if(w){const{setEdges:m}=h();m(w),c({hasDefaultEdges:!0})}},updateNodeInternals:g=>{const{triggerNodeChanges:w,nodeLookup:m,parentLookup:v,domNode:p,nodeOrigin:x,nodeExtent:S,debug:b,fitViewQueued:k}=h(),{changes:P,updatedInternals:I}=GM(g,m,v,p,x,S);I&&(XM(m,v,{nodeOrigin:x,nodeExtent:S}),k?(y(),c({fitViewQueued:!1,fitViewOptions:void 0})):c({}),(P==null?void 0:P.length)>0&&(b&&console.log("React Flow: trigger node changes",P),w==null||w(P)))},updateNodePositions:(g,w=!1)=>{const m=[],v=[],{nodeLookup:p,triggerNodeChanges:x}=h();for(const[S,b]of g){const k=p.get(S),P=!!(k!=null&&k.expandParent&&(k!=null&&k.parentId)&&(b!=null&&b.position)),I={id:S,type:"position",position:P?{x:Math.max(0,b.position.x),y:Math.max(0,b.position.y)}:b.position,dragging:w};P&&k.parentId&&m.push({id:S,parentId:k.parentId,rect:{...b.internals.positionAbsolute,width:b.measured.width??0,height:b.measured.height??0}}),v.push(I)}if(m.length>0){const{parentLookup:S,nodeOrigin:b}
114=h(),k=Kf(m,p,S,b);v.push(...k)}x(v)},triggerNodeChanges:g=>{const{onNodesChange:w,setNodes:m,nodes:v,hasDefaultNodes:p,debug:x}=h();if(g!=null&&g.length){if(p){const S=lx(g,v);m(S)}x&&console.log("React Flow: trigger node changes",g),w==null||w(g)}},triggerEdgeChanges:g=>{const{onEdgesChange:w,setEdges:m,edges:v,hasDefaultEdges:p,debug:x}=h();if(g!=null&&g.length){if(p){const S=ux(g,v);m(S)}x&&console.log("React Flow: trigger edge changes",g),w==null||w(g)}},addSelectedNodes:g=>{const{multiSelectionActive:w,edgeLookup:m,nodeLookup:v,triggerNodeChanges:p,triggerEdgeChanges:x}=h();if(w){const S=g.map(b=>wr(b,!0));p(S);return}p(co(v,new Set([...g]),!0)),x(co(m))},addSelectedEdges:g=>{const{multiSelectionActive:w,edgeLookup:m,nodeLookup:v,triggerNodeChanges:p,triggerEdgeChanges:x}=h();if(w){const S=g.map(b=>wr(b,!0));x(S);return}x(co(m,new Set([...g]))),p(co(v,new Set,!0))},unselectNodesAndEdges:({nodes:g,edges:w}={})=>{const{edges:m,nodes:v,nodeLookup:p,triggerNodeChanges:x,triggerEdgeChanges:S}=h(),b=g||v,k=w||m,P=b.map(z=>{const D=p.get(z.id);return D&&(D.selected=!1),wr(z.id,!1)}),I=k.map(z=>wr(z.id,!1));x(P),S(I)},setMinZoom:g=>{const{panZoom:w,maxZoom:m}=h();w==null||w.setScaleExtent([g,m]),c({minZoom:g})}
114,setMaxZoom:g=>{const{panZoom:w,minZoom:m}=h();w==null||w.setScaleExtent([m,g]),c({maxZoom:g})},setTranslateExtent:g=>{var w;(w=h().panZoom)==null||w.setTranslateExtent(g),c({translateExtent:g})},setPaneClickDistance:g=>{var w;(w=h().panZoom)==null||w.setClickDistance(g)},resetSelectedElements:()=>{const{edges:g,nodes:w,triggerNodeChanges:m,triggerEdgeChanges:v,elementsSelectable:p}=h();if(!p)return;const x=w.reduce((b,k)=>k.selected?[...b,wr(k.id,!1)]:b,[]),S=g.reduce((b,k)=>k.selected?[...b,wr(k.id,!1)]:b,[]);m(x),v(S)},setNodeExtent:g=>{const{nodes:w,nodeLookup:m,parentLookup:v,nodeOrigin:p,elevateNodesOnSelect:x,nodeExtent:S}=h();g[0][0]===S[0][0]&&g[0][1]===S[0][1]&&g[1][0]===S[1][0]&&g[1][1]===S[1][1]||(wd(w,m,v,{nodeOrigin:p,nodeExtent:g,elevateNodesOnSelect:x,checkEquality:!1}),c({nodeExtent:g}))},panBy:g=>{const{transform:w,width:m,height:v,panZoom:p,translateExtent:x}=h();return qM({delta:g,panZoom:p,transform:w,translateExtent:x,width:m,height:v})},setCenter:async(g,w,m)=>{const{width:v,height:p,maxZoom:x,panZoom:S}=h();if(!S)return Promise.resolve(!1);const b=typeof(m==null?void 0:m.zoom)<"u"?m.zoom:x;return await S.setViewport({x:v/2-g*b,y:p/2-w*b,zoom:b},{duration:m==null?void 0:m.duration,ease:m==null?void 0:m.ease,interpolate:m==null?void 0:m.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{c({connection:{...kw}})},updateConnection:g=>{c({connection:g})},reset:()=>c({...Km()})}},Object.is);function P3({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:o,initialHeight:i,initialMinZoom:s,initialMaxZoom:a,initialFitViewOptions:l,fitView:u,nodeOrigin:d,nodeExtent:f,children:c}){const[h]=E.useState(()=>N3({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:u,minZoom:s,maxZoom:a,fitViewOptions:l,nodeOrigin:d,nodeExtent:f}));return _.jsx(QR,{value:h,children:_.jsx(yA,{children:c})})}function T3({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:o,width:i,height:s,fitView:a,fitViewOptions:l,minZoom:u,maxZoom:d,nodeOrigin:f,nodeExtent:c}){return E.useContext(eu)?_.jsx(_.Fragment,{children:e}):_.jsx(P3,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:o,initialWidth:i,initialHeight:s,fitView:a,initialFitViewOptions:l,initialMinZoom:u,initialMaxZoom:d,nodeOrigin:f,nodeExtent:c,children:e})}const M3={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function R3({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i,edgeTypes:s,onNodeClick:a,onEdgeClick:l,onInit:u,onMove:d,onMoveStart:f,onMoveEnd:c,onConnect:h,onConnectStart:y,onConnectEnd:g,onClickConnectStart:w,onClickConnectEnd:m,onNodeMouseEnter:v,onNodeMouseMove:p,onNodeMouseLeave:x,onNodeContextMenu:S,onNodeDoubleClick:b,onNodeDragStart:k,onNodeDrag:P,onNodeDragStop:I,onNodesDelete:z,onEdgesDelete:D,onDelete:L,onSelectionChange:j,onSelectionDragStart:C,onSelectionDrag:R,onSelectionDragStop:M,onSelectionContextMenu:A,onSelectionStart:N,onSelectionEnd:T,onBeforeDelete:O,connectionMode:$,connectionLineType:F=Hn.Bezier,connectionLineStyle:H,connectionLineComponent:U,connectionLineContainerStyle:Q,deleteKeyCode:Y="Backspace",selectionKeyCode:G="Shift",selectionOnDrag:X=!1,selectionMode:q=ss.Full,panActivationKeyCode:re="Space",multiSelectionKeyCode:oe=fl()?"Meta":"Control",zoomActivationKeyCode:Z=fl()?"Meta":"Control",snapToGrid:te,snapGrid:J,onlyRenderVisibleElements:ce=!1,selectNodesOnDrag:de,nodesDraggable:st,autoPanOnNodeFocus:Yt,nodesConnectable:_e,nodesFocusable:Tt,nodeOrigin:Yr=sx,edgesFocusable:mr,edgesReconnectable:Xt,elementsSelectable:ti=!0,defaultViewport:gr=aA,minZoom:Qt=.5,maxZoom:wt=2,translateExtent:ni=is,preventScrolling:Rn=!0,nodeExtent:Xr,defaultMarkerColor:ou="#b1b1b7",zoomOnScroll:bs=!0,zoomOnPinch:ks=!0,panOnScroll:iu=!1,panOnScrollSpeed:ri=.5,panOnScrollMode:Kt=Rr.Free,zoomOnDoubleClick:su=!0,panOnDrag:ne=!0,onPaneClick:me,onPaneMouseEnter:pe,onPaneMouseMove:xt,onPaneMouseLeave:Et,onPaneScroll:Qr,onPaneContextMenu:au,paneClickDistance:Zf=0,nodeClickDistance:Dx=0,children:zx,onReconnect:jx,onReconnectStart:Fx,onReconnectEnd:Bx,onEdgeContextMenu:Hx,onEdgeDoubleClick:Vx,onEdgeMouseEnter:Ux,onEdgeMouseMove:Wx,onEdgeMouseLeave:Yx,reconnectRadius:Xx=10,onNodesChange:Qx,onEdgesChange:Kx,noDragClassName:Gx="nodrag",noWheelClassName:qx="nowheel",noPanClassName:Jf="nopan",fitView:eh,fitViewOptions:th,connectOnClick:Zx,attributionPosition:Jx,proOptions:e1,defaultEdgeOptions:t1,elevateNodesOnSelect:n1,elevateEdgesOnSelect:r1,disableKeyboardA11y:nh=!1,autoPanOnConnect:o1,autoPanOnNodeDrag:i1,autoPanSpeed:s1,connectionRadius:a1,isValidConnection:l1,onError:u1,style:c1,id:rh,nodeDragThreshold:d1,connectionDragThreshold:f1,viewport:h1,onViewportChange:p1,width:m1,height:g1,colorMode:y1="light",debug:v1,onScroll:_s,ariaLabelConfig:w1,...x1},E1){const lu=rh||"1",S1=dA(y1),C1=E.useCallback(oh=>{oh.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),_s==null||_s(oh)},[_s]);return _.jsx("div",{"data-testid":"rf__wrapper",...x1,onScroll:C1,style:{...c1,...M3},ref:E1,className:Re(["react-flow",o,S1]),id:rh,role:"application",children:_.jsxs(T3,{nodes:e,edges:t,width:m1,height:g1,fitView:eh,fitViewOptions:th,minZoom:Qt,maxZoom:wt,nodeOrigin:Yr,nodeExtent:Xr,children:[_.jsx(_3,{onInit:u,onNodeClick:a,onEdgeClick:l,onNodeMouseEnter:v,onNodeMouseMove:p,onNodeMouseLeave:x,onNodeContextMenu:S,onNodeDoubleClick:b,nodeTypes:i,edgeTypes:s,connectionLineType:F,connectionLineStyle:H,connectionLineComponent:U,connectionLineContainerStyle:Q,selectionKeyCode:G,selectionOnDrag:X,selectionMode:q,deleteKeyCode:Y,multiSelectionKeyCode:oe,panActivationKeyCode:re,zoomActivationKeyCode:Z,onlyRenderVisibleElements:ce,defaultViewport:gr,translateExtent:ni,minZoom:Qt,maxZoom:wt,preventScrolling:Rn,zoomOnScroll:bs,zoomOnPinch:ks,zoomOnDoubleClick:su,panOnScroll:iu,panOnScrollSpeed:ri,panOnScrollMode:Kt,panOnDrag:ne,onPaneClick:me,onPaneMouseEnter:pe,onPaneMouseMove:xt,onPaneMouseLeave:Et,onPaneScroll:Qr,onPaneContextMenu:au,paneClickDistance:Zf,nodeClickDistance:Dx,onSelectionContextMenu:A,onSelectionStart:N,onSelectionEnd:T,onReconnect:jx,onReconnectStart:Fx,onReconnectEnd:Bx,onEdgeContextMenu:Hx,onEdgeDoubleClick:Vx,onEdgeMouseEnter:Ux,onEdgeMouseMove:Wx,onEdgeMouseLeave:Yx,reconnectRadius:Xx,defaultMarkerColor:ou,noDragClassName:Gx,noWheelClassName:qx,noPanClassName:Jf,rfId:lu,disableKeyboardA11y:nh,nodeExtent:Xr,viewport:h1,onViewportChange:p1}),_.jsx(cA,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:h,onConnectStart:y,onConnectEnd:g,onClickConnectStart:w,onClickConnectEnd:m,nodesDraggable:st,autoPanOnNodeFocus:Yt,nodesConnectable:_e,nodesFocusable:Tt,edgesFocusable:mr,edgesReconnectable:Xt,elementsSelectable:ti,elevateNodesOnSelect:n1,elevateEdgesOnSelect:r1,minZ
114oom:Qt,maxZoom:wt,nodeExtent:Xr,onNodesChange:Qx,onEdgesChange:Kx,snapToGrid:te,snapGrid:J,connectionMode:$,translateExtent:ni,connectOnClick:Zx,defaultEdgeOptions:t1,fitView:eh,fitViewOptions:th,onNodesDelete:z,onEdgesDelete:D,onDelete:L,onNodeDragStart:k,onNodeDrag:P,onNodeDragStop:I,onSelectionDrag:R,onSelectionDragStart:C,onSelectionDragStop:M,onMove:d,onMoveStart:f,onMoveEnd:c,noPanClassName:Jf,nodeOrigin:Yr,rfId:lu,autoPanOnConnect:o1,autoPanOnNodeDrag:i1,autoPanSpeed:s1,onError:u1,connectionRadius:a1,isValidConnection:l1,selectNodesOnDrag:de,nodeDragThreshold:d1,connectionDragThreshold:f1,onBeforeDelete:O,paneClickDistance:Zf,debug:v1,ariaLabelConfig:w1}),_.jsx(sA,{onSelectionChange:j}),zx,_.jsx(tA,{proOptions:e1,position:Jx}),_.jsx(eA,{rfId:lu,disableKeyboardA11y:nh})]})})}var A3=cx(R3);function I3(e){const[t,n]=E.useState(e),r=E.useCallback(o=>n(i=>lx(o,i)),[]);return[t,n,r]}function O3(e){const[t,n]=E.useState(e),r=E.useCallback(o=>n(i=>ux(o,i)),[]);return[t,n,r]}function L3({dimensions:e,lineWidth:t,variant:n,className:r}){return _.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Re(["react-flow__background-pattern",n,r])})}function $3({radius:e,className:t}){return _.jsx("circle",{cx:e,cy:e,r:e,className:Re(["react-flow__background-pattern","dots",t])})}var ir;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ir||(ir={}));const D3={[ir.Dots]:1,[ir.Lines]:1,[ir.Cross]:6},z3=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Ox({id:e,variant:t=ir.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=0,color:s,bgColor:a,style:l,className:u,patternClassName:d}){const f=E.useRef(null),{transform:c,patternId:h}=le(z3,ke),y=r||D3[t],g=t===ir.Dots,w=t===ir.Cross,m=Array.isArray(n)?n:[n,n],v=[m[0]*c[2]||1,m[1]*c[2]||1],p=y*c[2],x=Array.isArray(i)?i:[i,i],S=w?[p,p]:v,b=[x[0]*c[2]||1+S[0]/2,x[1]*c[2]||1+S[1]/2],k=`${h}${e||""}`;return _.jsxs("svg",{className:Re(["react-flow__background",u]),style:{...l,...nu,"--xy-background-color-props":a,"--xy-background-pattern-color-props":s},ref:f,"data-testid":"rf__background",children:[_.jsx("pattern",{id:k,x:c[0]%v[0],y:c[1]%v[1],width:v[0],height:v[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${b[0]},-${b[1]})`,children:g?_.jsx($3,{radius:p/2,className:d}):_.jsx(L3,{dimensions:S,lineWidth:o,variant:t,className:d})}),_.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${k})`})]})}Ox.displayName="Background";const j3=E.memo(Ox);function F3(){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:_.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function B3(){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:_.jsx("path",{d:"M0 0h32v4.2H0z"})})}function H3(){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:_.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 V3(){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:_.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 U3(){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:_.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 oa({children:e,className:t,...n}){return _.jsx("button",{type:"button",className:Re(["react-flow__controls-button",t]),...n,children:e})}const W3=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function Lx({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:o,onZoomIn:i,onZoomOut:s,onFitView:a,onInteractiveChange:l,className:u,children:d,position:f="bottom-left",orientation:c="vertical","aria-label":h}){const y=Ee(),{isInteractive:g,minZoomReached:w,maxZoomReached:m,ariaLabelConfig:v}=le(W3,ke),{zoomIn:p,zoomOut:x,fitView:S}=Gf(),b=()=>{p(),i==null||i()},k=()=>{x(),s==null||s()},P=()=>{S(o),a==null||a()},I=()=>{y.setState({nodesDraggable:!g,nodesConnectable:!g,elementsSelectable:!g}),l==null||l(!g)},z=c==="horizontal"?"horizontal":"vertical";return _.jsxs(tu,{className:Re(["react-flow__controls",z,u]),position:f,style:e,"data-testid":"rf__controls","aria-label":h??v["controls.ariaLabel"],children:[t&&_.jsxs(_.Fragment,{children:[_.jsx(oa,{onClick:b,className:"react-flow__controls-zoomin",title:v["controls.zoomIn.ariaLabel"],"aria-label":v["controls.zoomIn.ariaLabel"],disabled:m,children:_.jsx(F3,{})}),_.jsx(oa,{onClick:k,className:"react-flow__controls-zoomout",title:v["controls.zoomOut.ariaLabel"],"aria-label":v["controls.zoomOut.ariaLabel"],disabled:w,children:_.jsx(B3,{})})]}),n&&_.jsx(oa,{className:"react-flow__controls-fitview",onClick:P,title:v["controls.fitView.ariaLabel"],"aria-label":v["controls.fitView.ariaLabel"],children:_.jsx(H3,{})}),r&&_.jsx(oa,{className:"react-flow__controls-interactive",onClick:I,title:v["controls.interactive.ariaLabel"],"aria-label":v["controls.interactive.ariaLabel"],children:g?_.jsx(U3,{}):_.jsx(V3,{})}),d]})}Lx.displayName="Controls";const Y3=E.memo(Lx);function X3({id:e,x:t,y:n,width:r,height:o,style:i,color:s,strokeColor:a,strokeWidth:l,className:u,borderRadius:d,shapeRendering:f,selected:c,onClick:h}){const{background:y,backgroundColor:g}=i||{},w=s||y||g;return _.jsx("rect",{className:Re(["react-flow__minimap-node",{selected:c},u]),x:t,y:n,rx:d,ry:d,width:r,height:o,style:{fill:w,stroke:a,strokeWidth:l},shapeRendering:f,onClick:h?m=>h(m,e):void 0})}const Q3=E.memo(X3),K3=e=>e.nodes.map(t=>
114t.id),Zu=e=>e instanceof Function?e:()=>e;function G3({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o,nodeComponent:i=Q3,onClick:s}){const a=le(K3,ke),l=Zu(t),u=Zu(e),d=Zu(n),f=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return _.jsx(_.Fragment,{children:a.map(c=>_.jsx(Z3,{id:c,nodeColorFunc:l,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:r,nodeStrokeWidth:o,NodeComponent:i,onClick:s,shapeRendering:f},c))})}function q3({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:o,nodeStrokeWidth:i,shapeRendering:s,NodeComponent:a,onClick:l}){const{node:u,x:d,y:f,width:c,height:h}=le(y=>{const{internals:g}=y.nodeLookup.get(e),w=g.userNode,{x:m,y:v}=g.positionAbsolute,{width:p,height:x}=Mn(w);return{node:w,x:m,y:v,width:p,height:x}},ke);return!u||u.hidden||!Aw(u)?null:_.jsx(a,{x:d,y:f,width:c,height:h,style:u.style,selected:!!u.selected,className:r(u),color:t(u),borderRadius:o,strokeColor:n(u),strokeWidth:i,shapeRendering:s,onClick:l,id:u.id})}const Z3=E.memo(q3);var J3=E.memo(G3);const eI=200,tI=150,nI=e=>!e.hidden,rI=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?Rw(Ss(e.nodeLookup,{filter:nI}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},oI="react-flow__minimap-desc";function $x({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:a,bgColor:l,maskColor:u,maskStrokeColor:d,maskStrokeWidth:f,position:c="bottom-right",onClick:h,onNodeClick:y,pannable:g=!1,zoomable:w=!1,ariaLabel:m,inversePan:v,zoomStep:p=10,offsetScale:x=5}){const S=Ee(),b=E.useRef(null),{boundingRect:k,viewBB:P,rfId:I,panZoom:z,translateExtent:D,flowWidth:L,flowHeight:j,ariaLabelConfig:C}=le(rI,ke),R=(e==null?void 0:e.width)??eI,M=(e==null?void 0:e.height)??tI,A=k.width/R,N=k.height/M,T=Math.max(A,N),O=T*R,$=T*M,F=x*T,H=k.x-(O-k.width)/2-F,U=k.y-($-k.height)/2-F,Q=O+F*2,Y=$+F*2,G=`${oI}-${I}`,X=E.useRef(0),q=E.useRef();X.current=T,E.useEffect(()=>{if(b.current&&z)return q.current=iR({domNode:b.current,panZoom:z,getTransform:()=>S.getState().transform,getViewScale:()=>X.current}),()=>{var te;(te=q.current)==null||te.destroy()}},[z]),E.useEffect(()=>{var te;(te=q.current)==null||te.update({translateExtent:D,width:L,height:j,inversePan:v,pannable:g,zoomStep:p,zoomable:w})},[g,w,v,p,D,L,j]);const re=h?te=>{var de;const[J,ce]=((de=q.current)==null?void 0:de.pointer(te))||[0,0];h(te,{x:J,y:ce})}:void 0,oe=y?E.useCallback((te,J)=>{const ce=S.getState().nodeLookup.get(J).internals.userNode;y(te,ce)},[]):void 0,Z=m??C["minimap.ariaLabel"];return _.jsx(tu,{position:c,style:{...e,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof f=="number"?f*T:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:Re(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:_.jsxs("svg",{width:R,height:M,viewBox:`${H} ${U} ${Q} ${Y}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":G,ref:b,onClick:re,children:[Z&&_.jsx("title",{id:G,children:Z}),_.jsx(J3,{onClick:oe,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:s,nodeComponent:a}),_.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-F},${U-F}h${Q+F*2}v${Y+F*2}h${-Q-F*2}z
115        M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}$x.displayName="MiniMap";const iI=E.memo($x),sI=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,aI={[Xo.Line]:"right",[Xo.Handle]:"bottom-right"};function lI({nodeId:e,position:t,variant:n=Xo.Handle,className:r,style:o=void 0,children:i,color:s,minWidth:a=10,minHeight:l=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:f=!1,resizeDirection:c,autoScale:h=!0,shouldResize:y,onResizeStart:g,onResize:w,onResizeEnd:m}){const v=px(),p=typeof e=="string"?e:v,x=Ee(),S=E.useRef(null),b=n===Xo.Handle,k=le(E.useCallback(sI(b&&h),[b,h]),ke),P=E.useRef(null),I=t??aI[n];E.useEffect(()=>{if(!(!S.current||!p))return P.current||(P.current=ER({domNode:S.current,nodeId:p,getStoreItems:()=>
115{const{nodeLookup:D,transform:L,snapGrid:j,snapToGrid:C,nodeOrigin:R,domNode:M}=x.getState();return{nodeLookup:D,transform:L,snapGrid:j,snapToGrid:C,nodeOrigin:R,paneDomNode:M}},onChange:(D,L)=>{const{triggerNodeChanges:j,nodeLookup:C,parentLookup:R,nodeOrigin:M}=x.getState(),A=[],N={x:D.x,y:D.y},T=C.get(p);if(T&&T.expandParent&&T.parentId){const O=T.origin??M,$=D.width??T.measured.width??0,F=D.height??T.measured.height??0,H={id:T.id,parentId:T.parentId,rect:{width:$,height:F,...Iw({x:D.x??T.position.x,y:D.y??T.position.y},{width:$,height:F},T.parentId,C,O)}},U=Kf([H],C,R,M);A.push(...U),N.x=D.x?Math.max(O[0]*$,D.x):void 0,N.y=D.y?Math.max(O[1]*F,D.y):void 0}if(N.x!==void 0&&N.y!==void 0){const O={id:p,type:"position",position:{...N}};A.push(O)}if(D.width!==void 0&&D.height!==void 0){const $={id:p,type:"dimensions",resizing:!0,setAttributes:c?c==="horizontal"?"width":"height":!0,dimensions:{width:D.width,height:D.height}};A.push($)}for(const O of L){const $={...O,type:"position"};A.push($)}j(A)},onEnd:({width:D,height:L})=>{const j={id:p,type:"dimensions",resizing:!1,dimensions:{width:D,height:L}};x.getState().triggerNodeChanges([j])}})),P.current.update({controlPosition:I,boundaries:{minWidth:a,minHeight:l,maxWidth:u,maxHeight:d},keepAspectRatio:f,resizeDirection:c,onResizeStart:g,onResize:w,onResizeEnd:m,shouldResize:y}),()=>{var D;(D=P.current)==null||D.destroy()}},[I,a,l,u,d,f,g,w,m,y]);const z=I.split("-");return _.jsx("div",{className:Re(["react-flow__resize-control","nodrag",...z,n,r]),ref:S,style:{...o,scale:k,...s&&{[b?"backgroundColor":"borderColor"]:s}},children:i})}E.memo(lI);const uI=[{id:"seo",type:"default",data:{label:_.jsxs("div",{className:"text-center",children:[_.jsx("div",{className:"text-lg font-bold text-seo-foreground",children:"SEO"}),_.jsx("div",{className:"text-sm text-seo-foreground",children:"(Search Engine Optimization)"})]})},position:{x:100,y:300},className:"seo-node",style:{backgroundColor:"hsl(var(--seo-primary))",border:"2px solid hsl(var(--seo-secondary))",borderRadius:"50px",width:200,height:80,fontSize:"14px",fontWeight:"bold"}},{id:"aeo",type:"default",data:{label:_.jsxs("div",{className:"text-center",children:[_.jsx("div",{className:"text-lg font-bold text-aeo-foreground",children:"AEO"}),_.jsx("div",{className:"text-sm text-aeo-foreground",children:"(Answer Engine Optimization)"})]})},position:{x:100,y:150},className:"aeo-node",style:{backgroundColor:"hsl(var(--aeo-primary))",border:"2px solid hsl(var(--aeo-secondary))",borderRadius:"50px",width:200,height:80,fontSize:"14px",fontWeight:"bold"}},{id:"geo",type:"default",data:{label:_.jsxs("div",{className:"text-center",children:[_.jsx("div",{className:"text-lg font-bold text-geo-foreground",children:"GEO"}),_.jsx("div",{className:"text-sm text-geo-foreground",children:"(Generative Engine Optimization)"})]})},position:{x:600,y:60},className:"geo-node",style:{backgroundColor:"hsl(var(--geo-primary))",border:"2px solid hsl(var(--geo-secondary))",borderRadius:"50px",width:200,height:80,fontSize:"14px",fontWeight:"bold"}},{id:"keywords-content",type:"default",data:{label:"Keywords & Content"},position:{x:400,y:250},className:"seo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--seo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"backlinks-authority",type:"default",data:{label:"Backlinks & Authority"},position:{x:400,y:350},className:"seo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--seo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"technical-seo",type:"default",data:{label:"Technical SEO"},position:{x:600,y:350},className:"seo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--seo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"higher-serp",type:"default",data:{label:"Higher SERP Ranking"},position:{x:800,y:350},className:"seo-result",style:{backgroundColor:"hsl(var(--card))",border:"2px solid hsl(var(--seo-secondary))",borderRadius:"12px",padding:"8px 12px",fontWeight:"bold"}},{id:"clicks-results",type:"default",data:{label:"Clicks from Results"},position:{x:1e3,y:350},className:"seo-result",style:{backgroundColor:"hsl(var(--card))",border:"2px s
115olid hsl(var(--seo-secondary))",borderRadius:"12px",padding:"8px 12px",fontWeight:"bold"}},{id:"faq-snippet",type:"default",data:{label:"FAQ & Snippet Content"},position:{x:400,y:150},className:"aeo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--aeo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"clear-answers",type:"default",data:{label:"Clear, Direct Answers"},position:{x:600,y:200},className:"aeo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--aeo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"voice-search",type:"default",data:{label:"Voice Search Optimized"},position:{x:800,y:200},className:"aeo-result",style:{backgroundColor:"hsl(var(--card))",border:"2px solid hsl(var(--aeo-secondary))",borderRadius:"12px",padding:"8px 12px",fontWeight:"bold"}},{id:"knowledge-graph",type:"default",data:{label:"Knowledge Graph Presence"},position:{x:1e3,y:200},className:"aeo-result",style:{backgroundColor:"hsl(var(--card))",border:"2px solid hsl(var(--aeo-secondary))",borderRadius:"12px",padding:"8px 12px",fontWeight:"bold"}},{id:"featured-ai",type:"default",data:{label:"Featured in AI Overview"},position:{x:1200,y:200},className:"aeo-result",style:{backgroundColor:"hsl(var(--card))",border:"2px solid hsl(var(--aeo-secondary))",borderRadius:"12px",padding:"8px 12px",fontWeight:"bold"}},{id:"comprehensive-content",type:"default",data:{label:"Comprehensive Content"},position:{x:900,y:60},className:"geo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--geo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"strong-eat",type:"default",data:{label:"Strong E-A-T Signals"},position:{x:1100,y:100},className:"geo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--geo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"structured-data",type:"default",data:{label:"Structured Data Markup"},position:{x:1300,y:100},className:"geo-related",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--geo-accent))",borderRadius:"12px",padding:"8px 12px"}},{id:"ai-cites",type:"default",data:{label:"AI Cites Your Info"},position:{x:1500,y:100},className:"geo-result",style:{backgroundColor:"hsl(var(--card))",border:"2px solid hsl(var(--geo-secondary))",borderRadius:"12px",padding:"8px 12px",fontWeight:"bold"}},{id:"present-ai-answers",type:"default",data:{label:"Present in AI Answers"},position:{x:1700,y:100},className:"geo-result",style:{backgroundColor:"hsl(var(--card))",border:"2px solid hsl(var(--geo-secondary))",borderRadius:"12px",padding:"8px 12px",fontWeight:"bold"}}],cI=[{id:"e1",source:"seo",target:"keywords-content",type:"smoothstep",animated:!1},{id:"e2",source:"seo",target:"backlinks-authority",type:"smoothstep",animated:!1},{id:"e3",source:"backlinks-authority",target:"technical-seo",type:"smoothstep",animated:!1},{id:"e4",source:"technical-seo",target:"higher-serp",type:"smoothstep",animated:!1},{id:"e5",source:"higher-serp",target:"clicks-results",type:"smoothstep",animated:!1},{id:"e6",source:"aeo",target:"faq-snippet",type:"smoothstep",animated:!1},{id:"e7",source:"faq-snippet",target:"clear-answers",type:"smoothstep",animated:!1},{id:"e8",source:"clear-answers",target:"voice-search",type:"smoothstep",animated:!1},{id:"e9",source:"voice-search",target:"knowledge-graph",type:"smoothstep",animated:!1},{id:"e10",source:"knowledge-graph",target:"featured-ai",type:"smoothstep",animated:!1},{id:"e11",source:"geo",target:"comprehensive-content",type:"smoothstep",animated:!1},{id:"e12",source:"comprehensive-content",target:"strong-eat",type:"smoothstep",animated:!1},{id:"e13",source:"strong-eat",target:"structured-data",type:"smoothstep",animated:!1},{id:"e14",source:"structured-data",target:"ai-cites",type:"smoothstep",animated:!1},{id:"e15",source:"ai-cites",target:"present-ai-answers",type:"smoothstep",animated:!1},{id:"e16",source:"seo",target:"aeo",type:"smoothstep",animated:!0,style:{strokeDasharray:"5,5",stroke:"hsl(var(--muted-foreground))"},markerEnd:{type:Ar.ArrowClosed,color:"hsl(var(--muted-foreground))"}},{id:"e17",source:"aeo",target:"geo",type:"smoothstep",animated:!0,style:{strokeDasharray:"5,5",stroke:"hsl(var(--muted-foreground))"},markerEnd:{type:Ar.ArrowClosed,color:"hsl(var(--muted-foreground))"}},{id:"e18",source:"seo",target:"geo",type:"smoothstep",animated:!0,style:{strokeDasharray:"10,10",stroke:"hsl(var(--muted-foreground))"},markerEnd:{type:Ar.ArrowClosed,color:"hsl(var(--muted-foreground))"}}],dI=()=>{const[e,t,n]=I3(uI),[r,o,i]=O3(cI),s=E.useCallback(a=>o(l=>Fw(a,l)),[o]);return _.jsxs("div",{className:"w-full h-screen",children:[_.jsxs("div",{className:"absolute top-4 left-4 z-10 bg-white/90 backdrop-blur-sm rounded-lg p-4 shadow-lg border",children:[_.jsx("h1",{className:"text-2xl font-bold text-foreground mb-2",children:"SEO Strategy Evolution"}),_.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("div",{className:"w-4 h-4 bg-seo-secondary rounded-full"}),_.jsx("span",{children:"SEO - Search Engine Optimization"})]}),_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("div",{className:"w-4 h-4 bg-aeo-secondary rounded-full"}),_.jsx("span",{children:"AEO - Answer Engine Optimization"})]}),_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("div",{className:"w-4 h-4 bg-geo-secondary rounded-full"}),_.jsx("span",{children:"GEO - Generative Engine Optimization"})]})]})]}),_.jsxs(A3,{nodes:e,edges:r,onNodesChange:n,onEdgesChange:i,onConnect:s,fitView:!0,attributionPosition:"bottom-left",className:"bg-background",minZoom:.2,maxZoom:1.5,defaultViewport:{x:0,y:0,zoom:.8},children:[_.jsx(iI,{zoomable:!0,pannable:!0,className:"bg-white border border-border rounded-lg",nodeColor:a=>a.type==="seo"?"hsl(var(--seo-secondary))":a.type==="aeo"?"hsl(var(--aeo-secondary))":a.type==="geo"?"hsl(var(--geo-secondary))":"hsl(var(--muted))"}),_.jsx(Y3,{className:"bg-white border border-border rounded-lg"}),_.jsx(j3,{color:"hsl(var(--border))",gap:20})]})]})},fI=()=>_.jsx("div",{className:"min-h-screen bg-background",children:_.jsx(dI,{})}),hI=()=>{const e=Yv();return E.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),_.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:_.jsxs("div",{className:"text-center",children:[_.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),_.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),_.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},pI=new i2,mI=()=>
115_.jsx(a2,{client:pI,children:_.jsxs($_,{children:[_.jsx(Ob,{}),_.jsx(uk,{}),_.jsx(W2,{children:_.jsxs(H2,{children:[_.jsx(sd,{path:"/",element:_.jsx(fI,{})}),_.jsx(sd,{path:"*",element:_.jsx(hI,{})})]})})]})});yy(document.getElementById("root")).render(_.jsx(mI,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.