@dooc-dev/dooc 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.global.js +1 -0
- package/dist/code-worker.global.js +11 -11
- package/dist/code.global.js +75 -75
- package/dist/edit.global.js +234 -231
- package/dist/{compiler → engine/compiler}/bundle-urls.js +1 -4
- package/dist/{compiler → engine/compiler}/check-prose.d.ts +1 -1
- package/dist/{compiler → engine/compiler}/check-prose.js +1 -1
- package/dist/{compiler → engine/compiler}/check.js +15 -27
- package/dist/{compiler → engine/compiler}/code-blocks.js +3 -1
- package/dist/{compiler → engine/compiler}/code-languages.js +1 -2
- package/dist/{compiler → engine/compiler}/compile.d.ts +5 -4
- package/dist/{compiler → engine/compiler}/compile.js +91 -32
- package/dist/{compiler → engine/compiler}/config.js +1 -3
- package/dist/{compiler → engine/compiler}/dialect.d.ts +1 -3
- package/dist/{compiler → engine/compiler}/dialect.js +8 -52
- package/dist/{compiler → engine/compiler}/dxf.js +1 -1
- package/dist/{compiler → engine/compiler}/export.js +15 -8
- package/dist/{compiler → engine/compiler}/figures.js +26 -22
- package/dist/{compiler → engine/compiler}/file-cache.d.ts +1 -2
- package/dist/{compiler → engine/compiler}/file-cache.js +8 -15
- package/dist/{compiler → engine/compiler}/files.js +49 -38
- package/dist/{compiler → engine/compiler}/fonts.js +1 -3
- package/dist/{compiler → engine/compiler}/from-mdast.js +1 -1
- package/dist/engine/compiler/host.d.ts +10 -0
- package/dist/engine/compiler/host.js +16 -0
- package/dist/{compiler → engine/compiler}/icons.d.ts +3 -0
- package/dist/{compiler → engine/compiler}/icons.js +28 -10
- package/dist/{compiler → engine/compiler}/ignored-files.d.ts +2 -0
- package/dist/{compiler → engine/compiler}/ignored-files.js +12 -3
- package/dist/{compiler → engine/compiler}/locales.js +2 -8
- package/dist/{compiler → engine/compiler}/manifest.d.ts +3 -2
- package/dist/engine/compiler/manifest.js +46 -0
- package/dist/{compiler → engine/compiler}/ops.d.ts +4 -1
- package/dist/{compiler → engine/compiler}/ops.js +36 -21
- package/dist/engine/compiler/schema-file-references.d.ts +2 -0
- package/dist/engine/compiler/schema-file-references.js +82 -0
- package/dist/engine/compiler/serialize.d.ts +2 -0
- package/dist/engine/compiler/serialize.js +5 -0
- package/dist/{compiler → engine/compiler}/subformat-schema.js +1 -3
- package/dist/{compiler → engine/compiler}/subformats.d.ts +10 -0
- package/dist/{compiler → engine/compiler}/subformats.js +122 -18
- package/dist/{compiler → engine/compiler}/textfile-remote.js +1 -2
- package/dist/{compiler → engine/compiler}/textfile.js +4 -6
- package/dist/{compiler → engine/compiler}/theme-variants.js +1 -1
- package/dist/{compiler → engine/compiler}/zip.js +1 -1
- package/dist/{core → engine/core}/blocks.d.ts +6 -4
- package/dist/{core → engine/core}/content-metadata.d.ts +6 -1
- package/dist/{core → engine/core}/content-metadata.js +84 -18
- package/dist/{core → engine/core}/content-types.d.ts +4 -2
- package/dist/{core → engine/core}/html.d.ts +7 -0
- package/dist/{core → engine/core}/html.js +44 -3
- package/dist/{core → engine/core}/icons.d.ts +3 -0
- package/dist/engine/core/icons.js +20 -0
- package/dist/{core → engine/core}/routing.d.ts +2 -0
- package/dist/{core → engine/core}/routing.js +9 -0
- package/dist/{core → engine/core}/schema-refs.d.ts +1 -1
- package/dist/{core → engine/core}/schema-refs.js +3 -1
- package/dist/engine/core/subformat-references.d.ts +5 -0
- package/dist/engine/core/subformat-references.js +33 -0
- package/dist/{core → engine/core}/subformats.d.ts +7 -0
- package/dist/{core → engine/core}/subformats.js +5 -1
- package/dist/{core → engine/core}/taxonomy.d.ts +2 -3
- package/dist/{core → engine/core}/taxonomy.js +1 -5
- package/dist/flow.global.js +306 -306
- package/dist/frontend/application-request.d.ts +14 -0
- package/dist/frontend/application-request.js +36 -0
- package/dist/frontend/document-application.d.ts +200 -0
- package/dist/{viewer/serve.js → frontend/document-application.js} +1611 -1670
- package/dist/frontend/figure-preview.d.ts +4 -0
- package/dist/{viewer → frontend}/figure-preview.js +4 -4
- package/dist/{viewer → frontend}/file-references.d.ts +1 -1
- package/dist/{viewer → frontend}/file-references.js +3 -3
- package/dist/{viewer → frontend}/font-picker.d.ts +1 -1
- package/dist/{viewer → frontend}/font-settings.d.ts +1 -1
- package/dist/{viewer → frontend}/language-picker.js +112 -18
- package/dist/{viewer → frontend}/locales/eng.json +16 -2
- package/dist/{viewer → frontend}/locales/jpn.json +16 -2
- package/dist/{viewer → frontend}/locales/zho.json +16 -2
- package/dist/{viewer → frontend}/nav-focus.js +2 -0
- package/dist/{viewer → frontend}/plugin-blocks.js +2 -2
- package/dist/{viewer → frontend}/resize.js +14 -2
- package/dist/frontend/resource-download.d.ts +2 -0
- package/dist/frontend/resource-download.js +43 -0
- package/dist/{viewer → frontend}/resource-library.d.ts +9 -2
- package/dist/{viewer → frontend}/resource-library.js +133 -37
- package/dist/{core → frontend}/schema-graph-flow.d.ts +1 -1
- package/dist/{core → frontend}/schema-graph-flow.js +1 -1
- package/dist/{viewer → frontend}/search.d.ts +2 -2
- package/dist/{viewer → frontend}/search.js +26 -8
- package/dist/graph/schema-graph-global.js +17 -17
- package/dist/install.sh +68 -0
- package/dist/plugins.global.js +62 -62
- package/dist/{viewer → server}/assets.d.ts +2 -0
- package/dist/server/assets.js +7 -0
- package/dist/{viewer → server}/build-plugins.js +4 -4
- package/dist/{viewer → server}/build.d.ts +2 -1
- package/dist/{viewer → server}/build.js +31 -15
- package/dist/{cli.js → server/cli.js} +199 -66
- package/dist/server/editor-tools.d.ts +1 -0
- package/dist/server/editor-tools.js +1 -0
- package/dist/{viewer → server}/extension-pack.js +2 -2
- package/dist/{viewer → server}/extensions.d.ts +1 -1
- package/dist/{viewer → server}/extensions.js +3 -3
- package/dist/server/git-diff.d.ts +10 -0
- package/dist/{viewer → server}/git-diff.js +45 -10
- package/dist/server/git-origin.d.ts +4 -0
- package/dist/server/git-origin.js +103 -0
- package/dist/server/git.d.ts +9 -0
- package/dist/{viewer → server}/git.js +50 -6
- package/dist/server/history.d.ts +14 -0
- package/dist/server/history.js +205 -0
- package/dist/{viewer → server}/hmr.d.ts +0 -22
- package/dist/server/hmr.js +168 -0
- package/dist/server/index.d.ts +17 -0
- package/dist/{index.js → server/index.js} +16 -16
- package/dist/{viewer → server}/ja-lint.d.ts +1 -1
- package/dist/{viewer → server}/languages.d.ts +1 -1
- package/dist/{viewer → server}/languages.js +3 -3
- package/dist/{mcp.d.ts → server/mcp.d.ts} +2 -2
- package/dist/{mcp.js → server/mcp.js} +60 -21
- package/dist/{viewer → server}/plugin-config.d.ts +2 -2
- package/dist/{viewer → server}/plugin-config.js +2 -2
- package/dist/{plugins → server/plugins}/local-storage.d.ts +1 -1
- package/dist/{plugins → server/plugins}/local-storage.js +1 -1
- package/dist/{plugins → server/plugins}/runtime.d.ts +4 -4
- package/dist/{plugins → server/plugins}/runtime.js +4 -4
- package/dist/{viewer → server}/plugins.d.ts +3 -3
- package/dist/{viewer → server}/plugins.js +14 -13
- package/dist/server/resource-library.d.ts +1 -0
- package/dist/server/resource-library.js +1 -0
- package/dist/server/self.d.ts +5 -0
- package/dist/server/self.js +98 -0
- package/dist/server/serve.d.ts +61 -0
- package/dist/server/serve.js +503 -0
- package/dist/server/static-client.d.ts +4 -0
- package/dist/server/static-client.js +117 -0
- package/dist/server/workspace-server.d.ts +16 -0
- package/dist/server/workspace-server.js +266 -0
- package/dist/{viewer → server}/workspace.d.ts +6 -1
- package/dist/{viewer → server}/workspace.js +46 -0
- package/dist/subformats.global.js +92 -6
- package/dist/ui.global.js +85 -72
- package/dist/workspace/client.d.ts +13 -0
- package/dist/workspace/client.js +114 -0
- package/dist/{viewer → workspace}/code-file.d.ts +1 -1
- package/dist/{viewer → workspace}/code-file.js +7 -7
- package/dist/workspace/connection.d.ts +27 -0
- package/dist/workspace/connection.js +38 -0
- package/dist/{viewer → workspace}/editor-tools.d.ts +7 -1
- package/dist/{viewer → workspace}/editor-tools.js +12 -9
- package/dist/{viewer → workspace}/git-types.d.ts +7 -0
- package/dist/workspace/github.d.ts +4 -0
- package/dist/workspace/github.js +99 -0
- package/dist/workspace/history.d.ts +46 -0
- package/dist/workspace/history.js +86 -0
- package/dist/workspace/protocol.d.ts +38 -0
- package/dist/workspace/protocol.js +20 -0
- package/dist/workspace/resource-download.d.ts +1 -0
- package/dist/workspace/resource-download.js +8 -0
- package/dist/workspace/server.d.ts +9 -0
- package/dist/workspace/server.js +48 -0
- package/dist/{viewer → workspace}/site-icon.js +9 -10
- package/dist/{viewer → workspace}/site-title.js +6 -7
- package/dist/{viewer → workspace}/textfile.d.ts +1 -1
- package/dist/{viewer → workspace}/textfile.js +5 -5
- package/dist/workspace-worker.global.js +2859 -0
- package/package.json +34 -20
- package/dist/compiler/manifest.js +0 -37
- package/dist/compiler/serialize.d.ts +0 -3
- package/dist/compiler/serialize.js +0 -16
- package/dist/core/icons.js +0 -5
- package/dist/index.d.ts +0 -17
- package/dist/viewer/assets.js +0 -3
- package/dist/viewer/figure-preview.d.ts +0 -4
- package/dist/viewer/git-diff.d.ts +0 -6
- package/dist/viewer/git.d.ts +0 -5
- package/dist/viewer/hmr.js +0 -341
- package/dist/viewer/serve.d.ts +0 -216
- /package/dist/{compiler → engine/compiler}/asset-references.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/asset-references.js +0 -0
- /package/dist/{compiler → engine/compiler}/bundle-urls.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/check-types.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/check-types.js +0 -0
- /package/dist/{compiler → engine/compiler}/check.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/code-blocks.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/code-languages.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/config.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/drawio.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/drawio.js +0 -0
- /package/dist/{compiler → engine/compiler}/dxf.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/export.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/figures.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/files.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/fonts.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/format.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/format.js +0 -0
- /package/dist/{compiler → engine/compiler}/from-mdast.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/language-codes.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/language-codes.js +0 -0
- /package/dist/{compiler → engine/compiler}/locales.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/public-file.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/public-file.js +0 -0
- /package/dist/{compiler → engine/compiler}/subformat-schema.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/terms.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/terms.js +0 -0
- /package/dist/{compiler → engine/compiler}/textfile-remote.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/textfile.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/theme-variants.d.ts +0 -0
- /package/dist/{compiler → engine/compiler}/zip.d.ts +0 -0
- /package/dist/{core → engine/core}/blocks.js +0 -0
- /package/dist/{core → engine/core}/code-file.d.ts +0 -0
- /package/dist/{core → engine/core}/code-file.js +0 -0
- /package/dist/{core → engine/core}/code-grammars.d.ts +0 -0
- /package/dist/{core → engine/core}/code-grammars.js +0 -0
- /package/dist/{core → engine/core}/content-types.js +0 -0
- /package/dist/{core → engine/core}/escape-html.d.ts +0 -0
- /package/dist/{core → engine/core}/escape-html.js +0 -0
- /package/dist/{core → engine/core}/extension-package.d.ts +0 -0
- /package/dist/{core → engine/core}/extension-package.js +0 -0
- /package/dist/{core → engine/core}/figure-frame.d.ts +0 -0
- /package/dist/{core → engine/core}/figure-frame.js +0 -0
- /package/dist/{core → engine/core}/file-embed.d.ts +0 -0
- /package/dist/{core → engine/core}/file-embed.js +0 -0
- /package/dist/{core → engine/core}/files.d.ts +0 -0
- /package/dist/{core → engine/core}/files.js +0 -0
- /package/dist/{core → engine/core}/graph-common.d.ts +0 -0
- /package/dist/{core → engine/core}/graph-common.js +0 -0
- /package/dist/{core → engine/core}/graph.d.ts +0 -0
- /package/dist/{core → engine/core}/graph.js +0 -0
- /package/dist/{core → engine/core}/inline.d.ts +0 -0
- /package/dist/{core → engine/core}/inline.js +0 -0
- /package/dist/{core → engine/core}/json-tools.d.ts +0 -0
- /package/dist/{core → engine/core}/json-tools.js +0 -0
- /package/dist/{core → engine/core}/language.d.ts +0 -0
- /package/dist/{core → engine/core}/language.js +0 -0
- /package/dist/{core → engine/core}/languages/ja.d.ts +0 -0
- /package/dist/{core → engine/core}/languages/ja.js +0 -0
- /package/dist/{core → engine/core}/markdown.d.ts +0 -0
- /package/dist/{core → engine/core}/markdown.js +0 -0
- /package/dist/{core → engine/core}/previewers.d.ts +0 -0
- /package/dist/{core → engine/core}/previewers.js +0 -0
- /package/dist/{core → engine/core}/schema-comments.d.ts +0 -0
- /package/dist/{core → engine/core}/schema-comments.js +0 -0
- /package/dist/{core → engine/core}/schema-fields.d.ts +0 -0
- /package/dist/{core → engine/core}/schema-fields.js +0 -0
- /package/dist/{core → engine/core}/schema-graph.d.ts +0 -0
- /package/dist/{core → engine/core}/schema-graph.js +0 -0
- /package/dist/{core → engine/core}/subformat-record.d.ts +0 -0
- /package/dist/{core → engine/core}/subformat-record.js +0 -0
- /package/dist/{core → engine/core}/term-reference.d.ts +0 -0
- /package/dist/{core → engine/core}/term-reference.js +0 -0
- /package/dist/{core → engine/core}/textfile.d.ts +0 -0
- /package/dist/{core → engine/core}/textfile.js +0 -0
- /package/dist/{core → engine/core}/theme-variants.d.ts +0 -0
- /package/dist/{core → engine/core}/theme-variants.js +0 -0
- /package/dist/{core → engine/core}/workspace.d.ts +0 -0
- /package/dist/{core → engine/core}/workspace.js +0 -0
- /package/dist/{viewer → frontend}/bundle-network.d.ts +0 -0
- /package/dist/{viewer → frontend}/bundle-network.js +0 -0
- /package/dist/{core → frontend}/flow-base-css.generated.d.ts +0 -0
- /package/dist/{core → frontend}/flow-base-css.generated.js +0 -0
- /package/dist/{core → frontend}/flow-css.d.ts +0 -0
- /package/dist/{core → frontend}/flow-css.js +0 -0
- /package/dist/{viewer → frontend}/font-picker.js +0 -0
- /package/dist/{viewer → frontend}/font-settings.js +0 -0
- /package/dist/{viewer → frontend}/i18n.d.ts +0 -0
- /package/dist/{viewer → frontend}/i18n.js +0 -0
- /package/dist/{viewer → frontend}/language-picker.d.ts +0 -0
- /package/dist/{viewer → frontend}/lazy-preview.d.ts +0 -0
- /package/dist/{viewer → frontend}/lazy-preview.js +0 -0
- /package/dist/{viewer → frontend}/nav-focus.d.ts +0 -0
- /package/dist/{viewer → frontend}/nav-update.d.ts +0 -0
- /package/dist/{viewer → frontend}/nav-update.js +0 -0
- /package/dist/{viewer → frontend}/plugin-blocks.d.ts +0 -0
- /package/dist/{viewer → frontend}/plugin-style.d.ts +0 -0
- /package/dist/{viewer → frontend}/plugin-style.js +0 -0
- /package/dist/{viewer → frontend}/plugin-view.d.ts +0 -0
- /package/dist/{viewer → frontend}/plugin-view.js +0 -0
- /package/dist/{viewer → frontend}/resize.d.ts +0 -0
- /package/dist/{core → frontend}/schema-graph-mount.d.ts +0 -0
- /package/dist/{core → frontend}/schema-graph-mount.js +0 -0
- /package/dist/{core → frontend}/table-ui.d.ts +0 -0
- /package/dist/{core → frontend}/table-ui.js +0 -0
- /package/dist/{core → frontend}/terms-ui.d.ts +0 -0
- /package/dist/{core → frontend}/terms-ui.js +0 -0
- /package/dist/{viewer → frontend}/theme-picker.d.ts +0 -0
- /package/dist/{viewer → frontend}/theme-picker.js +0 -0
- /package/dist/{core → frontend}/toc-ui.d.ts +0 -0
- /package/dist/{core → frontend}/toc-ui.js +0 -0
- /package/dist/{core → frontend}/video-ui.d.ts +0 -0
- /package/dist/{core → frontend}/video-ui.js +0 -0
- /package/dist/{viewer → server}/build-plugins.d.ts +0 -0
- /package/dist/{cli.d.ts → server/cli.d.ts} +0 -0
- /package/dist/{viewer → server}/extension-pack.d.ts +0 -0
- /package/dist/{viewer → server}/fonts/LICENSE.txt +0 -0
- /package/dist/{viewer → server}/fonts/udev-gothic-regular.woff2 +0 -0
- /package/dist/{viewer → server}/fonts.d.ts +0 -0
- /package/dist/{viewer → server}/fonts.js +0 -0
- /package/dist/{viewer → server}/ja-lint.js +0 -0
- /package/dist/{viewer → workspace}/git-types.js +0 -0
- /package/dist/{viewer → workspace}/site-icon.d.ts +0 -0
- /package/dist/{viewer → workspace}/site-title.d.ts +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import{a as sp}from"./chunk-67BPVAXC.js";import{a as Vg,b as Yg}from"./chunk-AARGNXTW.js";import{a as cp}from"./chunk-GWYODWCE.js";import"./chunk-WQHTQAFY.js";import"./chunk-EWYECPNJ.js";import"./chunk-7JQUFVT4.js";import"./chunk-NDAMZVXQ.js";import"./chunk-BOXAA5AP.js";import"./chunk-4QDE4SUK.js";import"./chunk-DIDARDST.js";import{a as up}from"./chunk-7LSMJ4VU.js";import{b as np}from"./chunk-5N2X2DXU.js";import"./chunk-3CJU2RDX.js";import{b as vf,d as ap,m as bf,n as op,p as rp,q as jo,r as ip,s as lp}from"./chunk-QLS7NIYR.js";import"./chunk-ICJPOOXG.js";import{A as pf,B as Fg,C as oo,D as Pg,E as yi,G as Wg,P as ep,R as yf,S as tp,ea as vi,fa as su,g as kg,i as qg,j as Gg,k as ou,l as ru,m as iu,n as Xg,o as Zg,q as lu,r as $g,t as Ig,u as uu,v as Qg,w as cu,x as jg,y as Kg,z as Jg}from"./chunk-IVZHB6RS.js";import{b as Oe,c as gf,d as Vn}from"./chunk-QQIGL7OP.js";import{a as B}from"./chunk-RJFVWYCA.js";import{a as vt,b as an}from"./chunk-SQE76S5B.js";var G0=vt(Me=>{"use strict";function Af(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,o=e[a];if(0<Tu(o,t))e[a]=t,e[n]=o,n=a;else break e}}function pn(e){return e.length===0?null:e[0]}function Mu(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,o=e.length,r=o>>>1;a<r;){var i=2*(a+1)-1,l=e[i],u=i+1,c=e[u];if(0>Tu(l,n))u<o&&0>Tu(c,l)?(e[a]=c,e[u]=n,a=u):(e[a]=l,e[i]=n,a=i);else if(u<o&&0>Tu(c,n))e[a]=c,e[u]=n,a=u;else break e}}return t}function Tu(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Me.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(R0=performance,Me.unstable_now=function(){return R0.now()}):(Cf=Date,H0=Cf.now(),Me.unstable_now=function(){return Cf.now()-H0});var R0,Cf,H0,Xn=[],fa=[],JC=1,Xt=null,lt=3,Of=!1,Ei=!1,_i=!1,Df=!1,U0=typeof setTimeout=="function"?setTimeout:null,V0=typeof clearTimeout=="function"?clearTimeout:null,B0=typeof setImmediate<"u"?setImmediate:null;function Cu(e){for(var t=pn(fa);t!==null;){if(t.callback===null)Mu(fa);else if(t.startTime<=e)Mu(fa),t.sortIndex=t.expirationTime,Af(Xn,t);else break;t=pn(fa)}}function Rf(e){if(_i=!1,Cu(e),!Ei)if(pn(Xn)!==null)Ei=!0,tr||(tr=!0,er());else{var t=pn(fa);t!==null&&Hf(Rf,t.startTime-e)}}var tr=!1,Ni=-1,Y0=5,k0=-1;function q0(){return Df?!0:!(Me.unstable_now()-k0<Y0)}function Mf(){if(Df=!1,tr){var e=Me.unstable_now();k0=e;var t=!0;try{e:{Ei=!1,_i&&(_i=!1,V0(Ni),Ni=-1),Of=!0;var n=lt;try{t:{for(Cu(e),Xt=pn(Xn);Xt!==null&&!(Xt.expirationTime>e&&q0());){var a=Xt.callback;if(typeof a=="function"){Xt.callback=null,lt=Xt.priorityLevel;var o=a(Xt.expirationTime<=e);if(e=Me.unstable_now(),typeof o=="function"){Xt.callback=o,Cu(e),t=!0;break t}Xt===pn(Xn)&&Mu(Xn),Cu(e)}else Mu(Xn);Xt=pn(Xn)}if(Xt!==null)t=!0;else{var r=pn(fa);r!==null&&Hf(Rf,r.startTime-e),t=!1}}break e}finally{Xt=null,lt=n,Of=!1}t=void 0}}finally{t?er():tr=!1}}}var er;typeof B0=="function"?er=function(){B0(Mf)}:typeof MessageChannel<"u"?(zf=new MessageChannel,L0=zf.port2,zf.port1.onmessage=Mf,er=function(){L0.postMessage(null)}):er=function(){U0(Mf,0)};var zf,L0;function Hf(e,t){Ni=U0(function(){e(Me.unstable_now())},t)}Me.unstable_IdlePriority=5;Me.unstable_ImmediatePriority=1;Me.unstable_LowPriority=4;Me.unstable_NormalPriority=3;Me.unstable_Profiling=null;Me.unstable_UserBlockingPriority=2;Me.unstable_cancelCallback=function(e){e.callback=null};Me.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y0=0<e?Math.floor(1e3/e):5};Me.unstable_getCurrentPriorityLevel=function(){return lt};Me.unstable_next=function(e){switch(lt){case 1:case 2:case 3:var t=3;break;default:t=lt}var n=lt;lt=t;try{return e()}finally{lt=n}};Me.unstable_requestPaint=function(){Df=!0};Me.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=lt;lt=e;try{return t()}finally{lt=n}};Me.unstable_scheduleCallback=function(e,t,n){var a=Me.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:JC++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>a?(e.sortIndex=n,Af(fa,e),pn(Xn)===null&&e===pn(fa)&&(_i?(V0(Ni),Ni=-1):_i=!0,Hf(Rf,n-a))):(e.sortIndex=o,Af(Xn,e),Ei||Of||(Ei=!0,tr||(tr=!0,er()))),e};Me.unstable_shouldYield=q0;Me.unstable_wrapCallback=function(e){var t=lt;return function(){var n=lt;lt=t;try{return e.apply(this,arguments)}finally{lt=n}}}});var Z0=vt((aH,X0)=>{"use strict";X0.exports=G0()});var ay=vt(ee=>{"use strict";var Uf=Symbol.for("react.transitional.element"),FC=Symbol.for("react.portal"),PC=Symbol.for("react.fragment"),WC=Symbol.for("react.strict_mode"),eM=Symbol.for("react.profiler"),tM=Symbol.for("react.consumer"),nM=Symbol.for("react.context"),aM=Symbol.for("react.forward_ref"),oM=Symbol.for("react.suspense"),rM=Symbol.for("react.memo"),K0=Symbol.for("react.lazy"),iM=Symbol.for("react.activity"),lM=Symbol.for("react.view_transition"),$0=Symbol.iterator;function uM(e){return e===null||typeof e!="object"?null:(e=$0&&e[$0]||e["@@iterator"],typeof e=="function"?e:null)}var J0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F0=Object.assign,P0={};function ar(e,t,n){this.props=e,this.context=t,this.refs=P0,this.updater=n||J0}ar.prototype.isReactComponent={};ar.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function W0(){}W0.prototype=ar.prototype;function Vf(e,t,n){this.props=e,this.context=t,this.refs=P0,this.updater=n||J0}var Yf=Vf.prototype=new W0;Yf.constructor=Vf;F0(Yf,ar.prototype);Yf.isPureReactComponent=!0;var I0=Array.isArray;function Lf(){}var Ee={H:null,A:null,T:null,S:null},ey=Object.prototype.hasOwnProperty;function kf(e,t,n){var a=n.ref;return{$$typeof:Uf,type:e,key:t,ref:a!==void 0?a:null,props:n}}function cM(e,t){return kf(e.type,t,e.props)}function qf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uf}function sM(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Q0=/\/+/g;function Bf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sM(""+e.key):t.toString(36)}function fM(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Lf,Lf):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function nr(e,t,n,a,o){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(r){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Uf:case FC:i=!0;break;case K0:return i=e._init,nr(i(e._payload),t,n,a,o)}}if(i)return o=o(e),i=a===""?"."+Bf(e,0):a,I0(o)?(n="",i!=null&&(n=i.replace(Q0,"$&/")+"/"),nr(o,t,n,"",function(c){return c})):o!=null&&(qf(o)&&(o=cM(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(Q0,"$&/")+"/")+i)),t.push(o)),1;i=0;var l=a===""?".":a+":";if(I0(e))for(var u=0;u<e.length;u++)a=e[u],r=l+Bf(a,u),i+=nr(a,t,n,r,o);else if(u=uM(e),typeof u=="function")for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,r=l+Bf(a,u++),i+=nr(a,t,n,r,o);else if(r==="object"){if(typeof e.then=="function")return nr(fM(e),t,n,a,o);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 i}function zu(e,t,n){if(e==null)return e;var a=[],o=0;return nr(e,a,"","",function(r){return t.call(n,r,o++)}),a}function dM(e){if(e._status===-1){var t=e._result,n=t();n.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a,n.status===void 0&&(n.status="fulfilled",n.value=a))},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a,n.status===void 0&&(n.status="rejected",n.reason=a))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var j0=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function ty(e){var t=Ee.T,n={};n.types=t!==null?t.types:null,Ee.T=n;try{var a=e(),o=Ee.S;o!==null&&o(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(Lf,j0)}catch(r){j0(r)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ee.T=t}}function ny(e){var t=Ee.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ty(ny.bind(null,e))}var mM={map:zu,forEach:function(e,t,n){zu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return zu(e,function(){t++}),t},toArray:function(e){return zu(e,function(t){return t})||[]},only:function(e){if(!qf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Activity=iM;ee.Children=mM;ee.Component=ar;ee.Fragment=PC;ee.Profiler=eM;ee.PureComponent=Vf;ee.StrictMode=WC;ee.Suspense=oM;ee.ViewTransition=lM;ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee;ee.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ee.H.useMemoCache(e)}};ee.addTransitionType=ny;ee.cache=function(e){return function(){return e.apply(null,arguments)}};ee.cacheSignal=function(){return null};ee.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=F0({},e.props),o=e.key;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)!ey.call(t,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&t.ref===void 0||(a[r]=t[r]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+2];a.children=i}return kf(e.type,o,a)};ee.createContext=function(e){return e={$$typeof:nM,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:tM,_context:e},e};ee.createElement=function(e,t,n){var a,o={},r=null;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)ey.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(o[a]=t[a]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)o[a]===void 0&&(o[a]=i[a]);return kf(e,r,o)};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:aM,render:e}};ee.isValidElement=qf;ee.lazy=function(e){return{$$typeof:K0,_payload:{_status:-1,_result:e},_init:dM}};ee.memo=function(e,t){return{$$typeof:rM,type:e,compare:t===void 0?null:t}};ee.startTransition=ty;ee.unstable_useCacheRefresh=function(){return Ee.H.useCacheRefresh()};ee.use=function(e){return Ee.H.use(e)};ee.useActionState=function(e,t,n){return Ee.H.useActionState(e,t,n)};ee.useCallback=function(e,t){return Ee.H.useCallback(e,t)};ee.useContext=function(e){return Ee.H.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e,t){return Ee.H.useDeferredValue(e,t)};ee.useEffect=function(e,t){return Ee.H.useEffect(e,t)};ee.useEffectEvent=function(e){return Ee.H.useEffectEvent(e)};ee.useId=function(){return Ee.H.useId()};ee.useImperativeHandle=function(e,t,n){return Ee.H.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Ee.H.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Ee.H.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Ee.H.useMemo(e,t)};ee.useOptimistic=function(e,t){return Ee.H.useOptimistic(e,t)};ee.useReducer=function(e,t,n){return Ee.H.useReducer(e,t,n)};ee.useRef=function(e){return Ee.H.useRef(e)};ee.useState=function(e){return Ee.H.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Ee.H.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Ee.H.useTransition()};ee.version="19.3.1"});var da=vt((rH,oy)=>{"use strict";oy.exports=ay()});var ly=vt(ut=>{"use strict";var hM=da();function iy(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function ma(){}var st={d:{f:ma,r:function(){throw Error(iy(522))},D:ma,C:ma,L:ma,m:ma,X:ma,S:ma,M:ma},p:0,findDOMNode:null},gM=Symbol.for("react.portal"),pM=Symbol.for("react.recoverable"),ry=Symbol.for("react.optimistic_key");function yM(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gM,key:a==null?null:a===ry?ry:""+a,children:e,containerInfo:t,implementation:n}}var Ti=hM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Au(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st;ut.browser=function(e){return{$$typeof:pM,_reason:e}};ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(iy(299));return yM(e,t,null,n)};ut.flushSync=function(e){var t=Ti.T,n=st.p;try{if(Ti.T=null,st.p=2,e)return e()}finally{Ti.T=t,st.p=n,st.d.f()}};ut.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,st.d.C(e,t))};ut.prefetchDNS=function(e){typeof e=="string"&&st.d.D(e)};ut.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=Au(n,t.crossOrigin),o=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?st.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:o,fetchPriority:r}):n==="script"&&st.d.X(e,{crossOrigin:a,integrity:o,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ut.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Au(t.as,t.crossOrigin);st.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&st.d.M(e)};ut.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=Au(n,t.crossOrigin);st.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ut.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Au(t.as,t.crossOrigin);st.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else st.d.m(e)};ut.requestFormReset=function(e){st.d.r(e)};ut.unstable_batchedUpdates=function(e,t){return e(t)};ut.useFormState=function(e,t,n){return Ti.H.useFormState(e,t,n)};ut.useFormStatus=function(){return Ti.H.useHostTransitionStatus()};ut.version="19.3.1"});var Gf=vt((lH,cy)=>{"use strict";function uy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uy)}catch(e){console.error(e)}}uy(),cy.exports=ly()});var Kx=vt(fs=>{"use strict";var Ze=Z0(),jv=da(),vM=Gf();function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function Kv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Jv(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 Fv(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sy(e){if(ml(e)!==e)throw Error(U(188))}function bM(e){var t=e.alternate;if(!t){if(t=ml(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var r=o.alternate;if(r===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===n)return sy(o),e;if(r===a)return sy(o),t;r=r.sibling}throw Error(U(188))}if(n.return!==a.return)n=o,a=r;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,a=r;break}if(l===a){i=!0,a=o,n=r;break}l=l.sibling}if(!i){for(l=r.child;l;){if(l===n){i=!0,n=r,a=o;break}if(l===a){i=!0,a=r,n=o;break}l=l.sibling}if(!i)throw Error(U(189))}}if(n.alternate!==a)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function Pv(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Pv(e),t!==null)return t;e=e.sibling}return null}function Nt(e,t,n,a,o,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,o,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Nt(e.child,t,n,a,o,r))return!0;e=e.sibling}return!1}function Mo(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function fy(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Wv(e){var t=[null,null],n=Mo(e);return n===null||e1(t,e,n.child,{foundSelf:!1}),t}function e1(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&e1(e,t,n.child,a))return!0;n=n.sibling}return!1}function Xe(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(U(559))}}var sr=null,xd=null;function xM(e,t,n){return e===n?!0:e===t?(sr=e,!0):!1}function SM(e,t,n){return e===n?(xd=e,!1):e===t?(xd!==null&&(sr=e),!0):!1}function dy(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Sd(e,t,n){for(var a=0,o=e;o;o=n(o))a++;o=0;for(var r=t;r;r=n(r))o++;for(;0<a-o;)e=n(e),a--;for(;0<o-a;)t=n(t),o--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var we=Object.assign,wM=Symbol.for("react.element"),Ou=Symbol.for("react.transitional.element"),Ri=Symbol.for("react.portal"),fr=Symbol.for("react.fragment"),t1=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),n1=Symbol.for("react.consumer"),wn=Symbol.for("react.context"),Om=Symbol.for("react.forward_ref"),Ed=Symbol.for("react.suspense"),_d=Symbol.for("react.suspense_list"),Dm=Symbol.for("react.memo"),ya=Symbol.for("react.lazy"),Nd=Symbol.for("react.activity"),EM=Symbol.for("react.legacy_hidden"),_M=Symbol.for("react.memo_cache_sentinel"),Td=Symbol.for("react.view_transition"),NM=Symbol.for("react.recoverable"),my=Symbol.iterator;function Ci(e){return e===null||typeof e!="object"?null:(e=my&&e[my]||e["@@iterator"],typeof e=="function"?e:null)}var TM=Symbol.for("react.client.reference");function Cd(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===TM?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fr:return"Fragment";case wd:return"Profiler";case t1:return"StrictMode";case Ed:return"Suspense";case _d:return"SuspenseList";case Nd:return"Activity";case Td:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Ri:return"Portal";case wn:return e.displayName||"Context";case n1:return(e._context.displayName||"Context")+".Consumer";case Om:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Dm:return t=e.displayName||null,t!==null?t:Cd(e.type)||"Memo";case ya:t=e._payload,e=e._init;try{return Cd(e(t))}catch{}}return null}var Hi=Array.isArray,F=jv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=vM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,go={pending:!1,data:null,method:null,action:null},Md=[],dr=-1;function zn(e){return{current:e}}function nt(e){0>dr||(e.current=Md[dr],Md[dr]=null,dr--)}function Te(e,t){dr++,Md[dr]=e.current,e.current=t}var Tn=zn(null),Fi=zn(null),Ta=zn(null),yc=zn(null);function vc(e,t){switch(Te(Ta,t),Te(Fi,e),Te(Tn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cv(t),e=_x(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}nt(Tn),Te(Tn,e)}function Dr(){nt(Tn),nt(Fi),nt(Ta)}function zd(e){var t=e.memoizedState;t!==null&&(Gr._currentValue=t.memoizedState,Te(yc,e)),t=Tn.current;var n=_x(t,e.type);t!==n&&(Te(Fi,e),Te(Tn,n))}function bc(e){Fi.current===e&&(nt(Tn),nt(Fi)),yc.current===e&&(nt(yc),Gr._currentValue=go)}var Xf,hy;function ga(e){if(Xf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xf=t&&t[1]||"",hy=-1<n.stack.indexOf(`
|
|
1
|
+
import{a as fp}from"./chunk-67BPVAXC.js";import{a as Yg,b as kg}from"./chunk-AARGNXTW.js";import{a as sp}from"./chunk-GWYODWCE.js";import"./chunk-WQHTQAFY.js";import"./chunk-EWYECPNJ.js";import"./chunk-7JQUFVT4.js";import"./chunk-NDAMZVXQ.js";import"./chunk-BOXAA5AP.js";import"./chunk-4QDE4SUK.js";import"./chunk-DIDARDST.js";import{a as cp}from"./chunk-7LSMJ4VU.js";import{b as ap}from"./chunk-5N2X2DXU.js";import"./chunk-3CJU2RDX.js";import{b as bf,d as op,m as xf,n as rp,p as ip,q as jo,r as lp,s as up}from"./chunk-QLS7NIYR.js";import"./chunk-ICJPOOXG.js";import{A as yf,B as Pg,C as oo,D as Wg,E as yi,G as ep,P as tp,R as vf,S as np,ea as vi,fa as su,g as qg,i as Gg,j as Xg,k as ou,l as ru,m as iu,n as Zg,o as $g,q as lu,r as Ig,t as Qg,u as uu,v as jg,w as cu,x as Kg,y as Jg,z as Fg}from"./chunk-IVZHB6RS.js";import{b as Oe,c as pf,d as Un}from"./chunk-QQIGL7OP.js";import{a as B}from"./chunk-RJFVWYCA.js";import{a as vt,b as an}from"./chunk-SQE76S5B.js";var Z0=vt(Me=>{"use strict";function Of(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,o=e[a];if(0<Cu(o,t))e[a]=t,e[n]=o,n=a;else break e}}function pn(e){return e.length===0?null:e[0]}function zu(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,o=e.length,r=o>>>1;a<r;){var i=2*(a+1)-1,l=e[i],u=i+1,c=e[u];if(0>Cu(l,n))u<o&&0>Cu(c,l)?(e[a]=c,e[u]=n,a=u):(e[a]=l,e[i]=n,a=i);else if(u<o&&0>Cu(c,n))e[a]=c,e[u]=n,a=u;else break e}}return t}function Cu(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Me.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(B0=performance,Me.unstable_now=function(){return B0.now()}):(Mf=Date,L0=Mf.now(),Me.unstable_now=function(){return Mf.now()-L0});var B0,Mf,L0,Xn=[],fa=[],tM=1,Xt=null,lt=3,Df=!1,Ei=!1,_i=!1,Rf=!1,Y0=typeof setTimeout=="function"?setTimeout:null,k0=typeof clearTimeout=="function"?clearTimeout:null,V0=typeof setImmediate<"u"?setImmediate:null;function Mu(e){for(var t=pn(fa);t!==null;){if(t.callback===null)zu(fa);else if(t.startTime<=e)zu(fa),t.sortIndex=t.expirationTime,Of(Xn,t);else break;t=pn(fa)}}function Hf(e){if(_i=!1,Mu(e),!Ei)if(pn(Xn)!==null)Ei=!0,tr||(tr=!0,er());else{var t=pn(fa);t!==null&&Bf(Hf,t.startTime-e)}}var tr=!1,Ni=-1,q0=5,G0=-1;function X0(){return Rf?!0:!(Me.unstable_now()-G0<q0)}function zf(){if(Rf=!1,tr){var e=Me.unstable_now();G0=e;var t=!0;try{e:{Ei=!1,_i&&(_i=!1,k0(Ni),Ni=-1),Df=!0;var n=lt;try{t:{for(Mu(e),Xt=pn(Xn);Xt!==null&&!(Xt.expirationTime>e&&X0());){var a=Xt.callback;if(typeof a=="function"){Xt.callback=null,lt=Xt.priorityLevel;var o=a(Xt.expirationTime<=e);if(e=Me.unstable_now(),typeof o=="function"){Xt.callback=o,Mu(e),t=!0;break t}Xt===pn(Xn)&&zu(Xn),Mu(e)}else zu(Xn);Xt=pn(Xn)}if(Xt!==null)t=!0;else{var r=pn(fa);r!==null&&Bf(Hf,r.startTime-e),t=!1}}break e}finally{Xt=null,lt=n,Df=!1}t=void 0}}finally{t?er():tr=!1}}}var er;typeof V0=="function"?er=function(){V0(zf)}:typeof MessageChannel<"u"?(Af=new MessageChannel,U0=Af.port2,Af.port1.onmessage=zf,er=function(){U0.postMessage(null)}):er=function(){Y0(zf,0)};var Af,U0;function Bf(e,t){Ni=Y0(function(){e(Me.unstable_now())},t)}Me.unstable_IdlePriority=5;Me.unstable_ImmediatePriority=1;Me.unstable_LowPriority=4;Me.unstable_NormalPriority=3;Me.unstable_Profiling=null;Me.unstable_UserBlockingPriority=2;Me.unstable_cancelCallback=function(e){e.callback=null};Me.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q0=0<e?Math.floor(1e3/e):5};Me.unstable_getCurrentPriorityLevel=function(){return lt};Me.unstable_next=function(e){switch(lt){case 1:case 2:case 3:var t=3;break;default:t=lt}var n=lt;lt=t;try{return e()}finally{lt=n}};Me.unstable_requestPaint=function(){Rf=!0};Me.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=lt;lt=e;try{return t()}finally{lt=n}};Me.unstable_scheduleCallback=function(e,t,n){var a=Me.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:tM++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>a?(e.sortIndex=n,Of(fa,e),pn(Xn)===null&&e===pn(fa)&&(_i?(k0(Ni),Ni=-1):_i=!0,Bf(Hf,n-a))):(e.sortIndex=o,Of(Xn,e),Ei||Df||(Ei=!0,tr||(tr=!0,er()))),e};Me.unstable_shouldYield=X0;Me.unstable_wrapCallback=function(e){var t=lt;return function(){var n=lt;lt=t;try{return e.apply(this,arguments)}finally{lt=n}}}});var I0=vt((uH,$0)=>{"use strict";$0.exports=Z0()});var ry=vt(ee=>{"use strict";var Uf=Symbol.for("react.transitional.element"),nM=Symbol.for("react.portal"),aM=Symbol.for("react.fragment"),oM=Symbol.for("react.strict_mode"),rM=Symbol.for("react.profiler"),iM=Symbol.for("react.consumer"),lM=Symbol.for("react.context"),uM=Symbol.for("react.forward_ref"),cM=Symbol.for("react.suspense"),sM=Symbol.for("react.memo"),F0=Symbol.for("react.lazy"),fM=Symbol.for("react.activity"),dM=Symbol.for("react.view_transition"),Q0=Symbol.iterator;function mM(e){return e===null||typeof e!="object"?null:(e=Q0&&e[Q0]||e["@@iterator"],typeof e=="function"?e:null)}var P0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W0=Object.assign,ey={};function ar(e,t,n){this.props=e,this.context=t,this.refs=ey,this.updater=n||P0}ar.prototype.isReactComponent={};ar.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ty(){}ty.prototype=ar.prototype;function Yf(e,t,n){this.props=e,this.context=t,this.refs=ey,this.updater=n||P0}var kf=Yf.prototype=new ty;kf.constructor=Yf;W0(kf,ar.prototype);kf.isPureReactComponent=!0;var j0=Array.isArray;function Vf(){}var Ee={H:null,A:null,T:null,S:null},ny=Object.prototype.hasOwnProperty;function qf(e,t,n){var a=n.ref;return{$$typeof:Uf,type:e,key:t,ref:a!==void 0?a:null,props:n}}function hM(e,t){return qf(e.type,t,e.props)}function Gf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uf}function gM(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var K0=/\/+/g;function Lf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?gM(""+e.key):t.toString(36)}function pM(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Vf,Vf):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function nr(e,t,n,a,o){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(r){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Uf:case nM:i=!0;break;case F0:return i=e._init,nr(i(e._payload),t,n,a,o)}}if(i)return o=o(e),i=a===""?"."+Lf(e,0):a,j0(o)?(n="",i!=null&&(n=i.replace(K0,"$&/")+"/"),nr(o,t,n,"",function(c){return c})):o!=null&&(Gf(o)&&(o=hM(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(K0,"$&/")+"/")+i)),t.push(o)),1;i=0;var l=a===""?".":a+":";if(j0(e))for(var u=0;u<e.length;u++)a=e[u],r=l+Lf(a,u),i+=nr(a,t,n,r,o);else if(u=mM(e),typeof u=="function")for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,r=l+Lf(a,u++),i+=nr(a,t,n,r,o);else if(r==="object"){if(typeof e.then=="function")return nr(pM(e),t,n,a,o);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 i}function Au(e,t,n){if(e==null)return e;var a=[],o=0;return nr(e,a,"","",function(r){return t.call(n,r,o++)}),a}function yM(e){if(e._status===-1){var t=e._result,n=t();n.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a,n.status===void 0&&(n.status="fulfilled",n.value=a))},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a,n.status===void 0&&(n.status="rejected",n.reason=a))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var J0=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function ay(e){var t=Ee.T,n={};n.types=t!==null?t.types:null,Ee.T=n;try{var a=e(),o=Ee.S;o!==null&&o(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(Vf,J0)}catch(r){J0(r)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ee.T=t}}function oy(e){var t=Ee.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ay(oy.bind(null,e))}var vM={map:Au,forEach:function(e,t,n){Au(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Au(e,function(){t++}),t},toArray:function(e){return Au(e,function(t){return t})||[]},only:function(e){if(!Gf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Activity=fM;ee.Children=vM;ee.Component=ar;ee.Fragment=aM;ee.Profiler=rM;ee.PureComponent=Yf;ee.StrictMode=oM;ee.Suspense=cM;ee.ViewTransition=dM;ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee;ee.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ee.H.useMemoCache(e)}};ee.addTransitionType=oy;ee.cache=function(e){return function(){return e.apply(null,arguments)}};ee.cacheSignal=function(){return null};ee.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=W0({},e.props),o=e.key;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)!ny.call(t,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&t.ref===void 0||(a[r]=t[r]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+2];a.children=i}return qf(e.type,o,a)};ee.createContext=function(e){return e={$$typeof:lM,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:iM,_context:e},e};ee.createElement=function(e,t,n){var a,o={},r=null;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)ny.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(o[a]=t[a]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)o[a]===void 0&&(o[a]=i[a]);return qf(e,r,o)};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:uM,render:e}};ee.isValidElement=Gf;ee.lazy=function(e){return{$$typeof:F0,_payload:{_status:-1,_result:e},_init:yM}};ee.memo=function(e,t){return{$$typeof:sM,type:e,compare:t===void 0?null:t}};ee.startTransition=ay;ee.unstable_useCacheRefresh=function(){return Ee.H.useCacheRefresh()};ee.use=function(e){return Ee.H.use(e)};ee.useActionState=function(e,t,n){return Ee.H.useActionState(e,t,n)};ee.useCallback=function(e,t){return Ee.H.useCallback(e,t)};ee.useContext=function(e){return Ee.H.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e,t){return Ee.H.useDeferredValue(e,t)};ee.useEffect=function(e,t){return Ee.H.useEffect(e,t)};ee.useEffectEvent=function(e){return Ee.H.useEffectEvent(e)};ee.useId=function(){return Ee.H.useId()};ee.useImperativeHandle=function(e,t,n){return Ee.H.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Ee.H.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Ee.H.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Ee.H.useMemo(e,t)};ee.useOptimistic=function(e,t){return Ee.H.useOptimistic(e,t)};ee.useReducer=function(e,t,n){return Ee.H.useReducer(e,t,n)};ee.useRef=function(e){return Ee.H.useRef(e)};ee.useState=function(e){return Ee.H.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Ee.H.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Ee.H.useTransition()};ee.version="19.3.1"});var da=vt((sH,iy)=>{"use strict";iy.exports=ry()});var cy=vt(ut=>{"use strict";var bM=da();function uy(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function ma(){}var st={d:{f:ma,r:function(){throw Error(uy(522))},D:ma,C:ma,L:ma,m:ma,X:ma,S:ma,M:ma},p:0,findDOMNode:null},xM=Symbol.for("react.portal"),SM=Symbol.for("react.recoverable"),ly=Symbol.for("react.optimistic_key");function wM(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xM,key:a==null?null:a===ly?ly:""+a,children:e,containerInfo:t,implementation:n}}var Ti=bM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ou(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st;ut.browser=function(e){return{$$typeof:SM,_reason:e}};ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(uy(299));return wM(e,t,null,n)};ut.flushSync=function(e){var t=Ti.T,n=st.p;try{if(Ti.T=null,st.p=2,e)return e()}finally{Ti.T=t,st.p=n,st.d.f()}};ut.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,st.d.C(e,t))};ut.prefetchDNS=function(e){typeof e=="string"&&st.d.D(e)};ut.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=Ou(n,t.crossOrigin),o=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?st.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:o,fetchPriority:r}):n==="script"&&st.d.X(e,{crossOrigin:a,integrity:o,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ut.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Ou(t.as,t.crossOrigin);st.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&st.d.M(e)};ut.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=Ou(n,t.crossOrigin);st.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ut.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Ou(t.as,t.crossOrigin);st.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else st.d.m(e)};ut.requestFormReset=function(e){st.d.r(e)};ut.unstable_batchedUpdates=function(e,t){return e(t)};ut.useFormState=function(e,t,n){return Ti.H.useFormState(e,t,n)};ut.useFormStatus=function(){return Ti.H.useHostTransitionStatus()};ut.version="19.3.1"});var Xf=vt((dH,fy)=>{"use strict";function sy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sy)}catch(e){console.error(e)}}sy(),fy.exports=cy()});var Fx=vt(ds=>{"use strict";var Ze=I0(),Jv=da(),EM=Xf();function V(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function Fv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Pv(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 Wv(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function dy(e){if(ml(e)!==e)throw Error(V(188))}function _M(e){var t=e.alternate;if(!t){if(t=ml(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var r=o.alternate;if(r===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===n)return dy(o),e;if(r===a)return dy(o),t;r=r.sibling}throw Error(V(188))}if(n.return!==a.return)n=o,a=r;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,a=r;break}if(l===a){i=!0,a=o,n=r;break}l=l.sibling}if(!i){for(l=r.child;l;){if(l===n){i=!0,n=r,a=o;break}if(l===a){i=!0,a=r,n=o;break}l=l.sibling}if(!i)throw Error(V(189))}}if(n.alternate!==a)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function e1(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=e1(e),t!==null)return t;e=e.sibling}return null}function Nt(e,t,n,a,o,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,o,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Nt(e.child,t,n,a,o,r))return!0;e=e.sibling}return!1}function Mo(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function my(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function t1(e){var t=[null,null],n=Mo(e);return n===null||n1(t,e,n.child,{foundSelf:!1}),t}function n1(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&n1(e,t,n.child,a))return!0;n=n.sibling}return!1}function Xe(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(V(559))}}var sr=null,Sd=null;function NM(e,t,n){return e===n?!0:e===t?(sr=e,!0):!1}function TM(e,t,n){return e===n?(Sd=e,!1):e===t?(Sd!==null&&(sr=e),!0):!1}function hy(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function wd(e,t,n){for(var a=0,o=e;o;o=n(o))a++;o=0;for(var r=t;r;r=n(r))o++;for(;0<a-o;)e=n(e),a--;for(;0<o-a;)t=n(t),o--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var we=Object.assign,CM=Symbol.for("react.element"),Du=Symbol.for("react.transitional.element"),Ri=Symbol.for("react.portal"),fr=Symbol.for("react.fragment"),a1=Symbol.for("react.strict_mode"),Ed=Symbol.for("react.profiler"),o1=Symbol.for("react.consumer"),wn=Symbol.for("react.context"),Dm=Symbol.for("react.forward_ref"),_d=Symbol.for("react.suspense"),Nd=Symbol.for("react.suspense_list"),Rm=Symbol.for("react.memo"),ya=Symbol.for("react.lazy"),Td=Symbol.for("react.activity"),MM=Symbol.for("react.legacy_hidden"),zM=Symbol.for("react.memo_cache_sentinel"),Cd=Symbol.for("react.view_transition"),AM=Symbol.for("react.recoverable"),gy=Symbol.iterator;function Ci(e){return e===null||typeof e!="object"?null:(e=gy&&e[gy]||e["@@iterator"],typeof e=="function"?e:null)}var OM=Symbol.for("react.client.reference");function Md(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===OM?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fr:return"Fragment";case Ed:return"Profiler";case a1:return"StrictMode";case _d:return"Suspense";case Nd:return"SuspenseList";case Td:return"Activity";case Cd:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Ri:return"Portal";case wn:return e.displayName||"Context";case o1:return(e._context.displayName||"Context")+".Consumer";case Dm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rm:return t=e.displayName||null,t!==null?t:Md(e.type)||"Memo";case ya:t=e._payload,e=e._init;try{return Md(e(t))}catch{}}return null}var Hi=Array.isArray,F=Jv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=EM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,go={pending:!1,data:null,method:null,action:null},zd=[],dr=-1;function zn(e){return{current:e}}function nt(e){0>dr||(e.current=zd[dr],zd[dr]=null,dr--)}function Te(e,t){dr++,zd[dr]=e.current,e.current=t}var Tn=zn(null),Fi=zn(null),Ta=zn(null),vc=zn(null);function bc(e,t){switch(Te(Ta,t),Te(Fi,e),Te(Tn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?zv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=zv(t),e=Tx(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}nt(Tn),Te(Tn,e)}function Dr(){nt(Tn),nt(Fi),nt(Ta)}function Ad(e){var t=e.memoizedState;t!==null&&(Gr._currentValue=t.memoizedState,Te(vc,e)),t=Tn.current;var n=Tx(t,e.type);t!==n&&(Te(Fi,e),Te(Tn,n))}function xc(e){Fi.current===e&&(nt(Tn),nt(Fi)),vc.current===e&&(nt(vc),Gr._currentValue=go)}var Zf,py;function ga(e){if(Zf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zf=t&&t[1]||"",py=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
3
|
+
`+Zf+e+py}var $f=!1;function If(e,t){if(!e||$f)return"";$f=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(y){var s=y}Reflect.construct(e,[],d)}else{try{d.call()}catch(y){s=y}d=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),d=!0,new e}finally{d&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(y){s=y}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(y){if(y&&s&&typeof y.stack=="string")return[y.stack,s.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),i=r[0],l=r[1];if(i&&l){var u=i.split(`
|
|
4
4
|
`),c=l.split(`
|
|
5
5
|
`);for(o=a=0;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(a===u.length||o===c.length)for(a=u.length-1,o=c.length-1;1<=a&&0<=o&&u[a]!==c[o];)o--;for(;1<=a&&0<=o;a--,o--)if(u[a]!==c[o]){if(a!==1||o!==1)do if(a--,o--,0>o||u[a]!==c[o]){var f=`
|
|
6
|
-
`+u[a].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=a&&0<=o);break}}}finally{
|
|
6
|
+
`+u[a].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=a&&0<=o);break}}}finally{$f=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ga(n):""}function DM(e,t){switch(e.tag){case 26:case 27:case 5:return ga(e.type);case 16:return ga("Lazy");case 13:return e.child!==t&&t!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return If(e.type,!1);case 11:return If(e.type.render,!1);case 1:return If(e.type,!0);case 31:return ga("Activity");case 30:return ga("ViewTransition");default:return""}}function yy(e){try{var t="",n=null;do t+=DM(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
7
|
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var Ad=Object.prototype.hasOwnProperty,Rm=Ze.unstable_scheduleCallback,If=Ze.unstable_cancelCallback,MM=Ze.unstable_shouldYield,zM=Ze.unstable_requestPaint,Ht=Ze.unstable_now,AM=Ze.unstable_getCurrentPriorityLevel,a1=Ze.unstable_ImmediatePriority,o1=Ze.unstable_UserBlockingPriority,xc=Ze.unstable_NormalPriority,OM=Ze.unstable_LowPriority,r1=Ze.unstable_IdlePriority,DM=Ze.log,RM=Ze.unstable_setDisableYieldValue,hl=null,Bt=null;function xa(e){if(typeof DM=="function"&&RM(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(hl,e)}catch{}}var Lt=Math.clz32?Math.clz32:LM,HM=Math.log,BM=Math.LN2;function LM(e){return e>>>=0,e===0?32:31-(HM(e)/BM|0)|0}var Du=256,Ru=262144,Hu=4194304;function co(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ic(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=a&134217727;return l!==0?(a=l&~r,a!==0?o=co(a):(i&=l,i!==0?o=co(i):n||(n=l&~e,n!==0&&(o=co(n))))):(l=a&~r,l!==0?o=co(l):i!==0?o=co(i):n||(n=a&~e,n!==0&&(o=co(n)))),o===0?0:t!==0&&t!==o&&(t&r)===0&&(r=o&-o,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:o}function gl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function i1(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Lt(n),o=1<<a;t|=e[a],n&=~o}return t}function UM(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function l1(){var e=Hu;return Hu<<=1,(Hu&62914560)===0&&(Hu=4194304),e}function Qf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function VM(e,t,n,a,o,r){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var f=31-Lt(n),d=1<<f;l[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var h=s[f];h!==null&&(h.lane&=-536870913)}n&=~d}a!==0&&u1(e,a,0),r!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=r&~(i&~t))}function u1(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Lt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function c1(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Lt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function s1(e,t){var n=t&-t;return n=(n&42)!==0?1:Hm(n),(n&(e.suspendedLanes|t))!==0?0:n}function Hm(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bm(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function f1(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:Ix(e.type))}function py(e,t){var n=he.p;try{return he.p=e,t()}finally{he.p=n}}var na=Math.random().toString(36).slice(2),et="__reactFiber$"+na,Tt="__reactProps$"+na,$r="__reactContainer$"+na,yy="__reactEvents$"+na,YM="__reactListeners$"+na,kM="__reactHandles$"+na,vy="__reactResources$"+na,yl="__reactMarker$"+na,Sc="__reactLoad$"+na;function Qc(e){delete e[et],delete e[Tt],delete e[YM],delete e[kM]}function mo(e){var t;if(t=e[et])return t;for(var n=e.parentNode;n;){if(t=n[$r]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bv(e);e!==null;){if(n=e[et])return n;e=Bv(e)}return t}e=n,n=e.parentNode}return null}function Ir(e){if(e=e[et]||e[$r]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function wr(e){var t=e[vy];return t||(t=e[vy]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function je(e){e[yl]=!0}function d1(e){e[Sc]=void 0}var m1=new Set,h1={};function zo(e,t){Rr(e,t),Rr(e+"Capture",t)}function Rr(e,t){for(h1[e]=t,e=0;e<t.length;e++)m1.add(t[e])}var qM=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),by={},xy={};function GM(e){return Ad.call(xy,e)?!0:Ad.call(by,e)?!1:qM.test(e)?xy[e]=!0:(by[e]=!0,!1)}var de=!1;function Sy(){var e=de;return de=!1,e}function Pu(e,t,n){if(GM(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Bu(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function Zn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function XM(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,r.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Od(e){if(!e._valueTracker){var t=g1(e)?"checked":"value";e._valueTracker=XM(e,t,""+e[t])}}function p1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=g1(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var ZM=/[\n"\\]/g;function jt(e){return e.replace(ZM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dd(e,t,n,a,o,r,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?jf(e,At(e.value)):jf(e,At(t)):n!=null?jf(e,At(n)):a!=null&&e.removeAttribute("value"),o==null&&r!=null&&(e.defaultChecked=!!r),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+At(l):e.removeAttribute("name")}function y1(e,t,n,a,o,r,i,l){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Od(e);return}n=n!=null?""+At(n):"",t=t!=null?""+At(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=l?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Od(e)}function jf(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Er(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+At(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function v1(e,t,n){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+At(n):""}function b1(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(U(92));if(Hi(a)){if(1<a.length)throw Error(U(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=At(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Od(e)}function Hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $M=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wy(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||$M.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function x1(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",de=!0);for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&(wy(e,o,a),de=!0)}else for(var r in t)t.hasOwnProperty(r)&&wy(e,r,t[r])}function Lm(e){if(e.indexOf("-")===-1)return!1;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 IM=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),QM=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wu(e){return QM.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var Rd=null;function Um(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mr=null,_r=null;function Ey(e){var t=Ir(e);if(t&&(e=t.stateNode)){var n=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Dd(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[Tt]||null;if(!o)throw Error(U(90));Dd(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&p1(a)}break e;case"textarea":v1(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Er(e,!!n.multiple,t,!1)}}}var Kf=!1;function S1(e,t,n){if(Kf)return e(t,n);Kf=!0;try{var a=e(t);return a}finally{if(Kf=!1,(mr!==null||_r!==null)&&(ls(),mr&&(t=mr,e=_r,_r=mr=null,Ey(t),e)))for(t=0;t<e.length;t++)Ey(e[t])}}function Pi(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Tt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hd=!1;if(Jn)try{or={},Object.defineProperty(or,"passive",{get:function(){Hd=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Hd=!1}var or,Sa=null,Vm=null,ec=null;function w1(){if(ec)return ec;var e,t=Vm,n=t.length,a,o="value"in Sa?Sa.value:Sa.textContent,r=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(a=1;a<=i&&t[n-a]===o[r-a];a++);return ec=o.slice(e,1<a?1-a:void 0)}function tc(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 Lu(){return!0}function _y(){return!1}function ht(e){function t(n,a,o,r,i){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=r,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(r):r[l]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Lu:_y,this.isPropagationStopped=_y,this}return we(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=Lu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lu)},persist:function(){},isPersistent:Lu}),t}var qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jc=ht(qa),vl=we({},qa,{view:0,detail:0}),jM=ht(vl),Jf,Ff,Mi,Kc=we({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ym,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!==Mi&&(Mi&&e.type==="mousemove"?(Jf=e.screenX-Mi.screenX,Ff=e.screenY-Mi.screenY):Ff=Jf=0,Mi=e),Jf)},movementY:function(e){return"movementY"in e?e.movementY:Ff}}),Ny=ht(Kc),KM=we({},Kc,{dataTransfer:0}),JM=ht(KM),FM=we({},vl,{relatedTarget:0}),Pf=ht(FM),PM=we({},qa,{animationName:0,elapsedTime:0,pseudoElement:0}),WM=ht(PM),ez=we({},qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tz=ht(ez),nz=we({},qa,{data:0}),Ty=ht(nz),az={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oz={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"},rz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rz[e])?!!t[e]:!1}function Ym(){return iz}var lz=we({},vl,{key:function(e){if(e.key){var t=az[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ym,charCode:function(e){return e.type==="keypress"?tc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uz=ht(lz),cz=we({},Kc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cy=ht(cz),sz=we({},qa,{submitter:0}),fz=ht(sz),dz=we({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ym}),mz=ht(dz),hz=we({},qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),gz=ht(hz),pz=we({},Kc,{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}),yz=ht(pz),vz=we({},qa,{newState:0,oldState:0,source:0}),bz=ht(vz),xz=[9,13,27,32],km=Jn&&"CompositionEvent"in window,Vi=null;Jn&&"documentMode"in document&&(Vi=document.documentMode);var Sz=Jn&&"TextEvent"in window&&!Vi,E1=Jn&&(!km||Vi&&8<Vi&&11>=Vi),My=" ",zy=!1;function _1(e,t){switch(e){case"keyup":return xz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hr=!1;function wz(e,t){switch(e){case"compositionend":return N1(t);case"keypress":return t.which!==32?null:(zy=!0,My);case"textInput":return e=t.data,e===My&&zy?null:e;default:return null}}function Ez(e,t){if(hr)return e==="compositionend"||!km&&_1(e,t)?(e=w1(),ec=Vm=Sa=null,hr=!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 E1&&t.locale!=="ko"?null:t.data;default:return null}}var _z={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 Ay(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_z[e.type]:t==="textarea"}function T1(e,t,n,a){mr?_r?_r.push(a):_r=[a]:mr=a,t=Xc(t,"onChange"),0<t.length&&(n=new jc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Yi=null,Wi=null;function Nz(e){Sx(e,0)}function Jc(e){var t=Bi(e);if(p1(t))return e}function Oy(e,t){if(e==="change")return t}var C1=!1;Jn&&(Jn?(Vu="oninput"in document,Vu||(Wf=document.createElement("div"),Wf.setAttribute("oninput","return;"),Vu=typeof Wf.oninput=="function"),Uu=Vu):Uu=!1,C1=Uu&&(!document.documentMode||9<document.documentMode));var Uu,Vu,Wf;function Dy(){Yi&&(Yi.detachEvent("onpropertychange",M1),Wi=Yi=null)}function M1(e){if(e.propertyName==="value"&&Jc(Wi)){var t=[];T1(t,Wi,e,Um(e)),S1(Nz,t)}}function Tz(e,t,n){e==="focusin"?(Dy(),Yi=t,Wi=n,Yi.attachEvent("onpropertychange",M1)):e==="focusout"&&Dy()}function Cz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jc(Wi)}function Mz(e,t){if(e==="click")return Jc(t)}function zz(e,t){if(e==="input"||e==="change")return Jc(t)}function Az(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:Az;function el(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!Ad.call(t,o)||!Vt(e[o],t[o]))return!1}return!0}function Bd(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 Ry(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hy(e,t){var n=Ry(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ry(n)}}function z1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?z1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function A1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bd(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bd(e.document)}return t}function qm(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")}var Oz=Jn&&"documentMode"in document&&11>=document.documentMode,gr=null,Ld=null,ki=null,Ud=!1;function By(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ud||gr==null||gr!==Bd(a)||(a=gr,"selectionStart"in a&&qm(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ki&&el(ki,a)||(ki=a,a=Xc(Ld,"onSelect"),0<a.length&&(t=new jc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=gr)))}function lo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pr={animationend:lo("Animation","AnimationEnd"),animationiteration:lo("Animation","AnimationIteration"),animationstart:lo("Animation","AnimationStart"),transitionrun:lo("Transition","TransitionRun"),transitionstart:lo("Transition","TransitionStart"),transitioncancel:lo("Transition","TransitionCancel"),transitionend:lo("Transition","TransitionEnd")},ed={},O1={};Jn&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete pr.animationend.animation,delete pr.animationiteration.animation,delete pr.animationstart.animation),"TransitionEvent"in window||delete pr.transitionend.transition);function Ao(e){if(ed[e])return ed[e];if(!pr[e])return e;var t=pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in O1)return ed[e]=t[n];return e}var D1=Ao("animationend"),R1=Ao("animationiteration"),H1=Ao("animationstart"),Dz=Ao("transitionrun"),Rz=Ao("transitionstart"),Hz=Ao("transitioncancel"),B1=Ao("transitionend"),L1=new Map,Vd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Vd.push("scrollEnd");function sn(e,t){L1.set(e,t),zo(t,[e])}var Bz=0;function Fn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=cn.identifierPrefix;var n=Bz++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Ly(e){if(e==null||typeof e=="string")return e;var t=null,n=Or;if(n!==null)for(var a=0;a<n.length;a++){var o=e[n[a]];if(o!=null){if(o==="none")return"none";t=t==null?o:t+(" "+o)}}return t??e.default}function aa(e,t){return e=Ly(e),t=Ly(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var wc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},$t=[],yr=0,Gm=0;function Fc(){for(var e=yr,t=Gm=yr=0;t<e;){var n=$t[t];$t[t++]=null;var a=$t[t];$t[t++]=null;var o=$t[t];$t[t++]=null;var r=$t[t];if($t[t++]=null,a!==null&&o!==null){var i=a.pending;i===null?o.next=o:(o.next=i.next,i.next=o),a.pending=o}r!==0&&U1(n,o,r)}}function Pc(e,t,n,a){$t[yr++]=e,$t[yr++]=t,$t[yr++]=n,$t[yr++]=a,Gm|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Xm(e,t,n,a){return Pc(e,t,n,a),Ec(e)}function Oo(e,t){return Pc(e,null,null,t),Ec(e)}function U1(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(o=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,o&&t!==null&&(o=31-Lt(n),e=r.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),r):null}function Ec(e){if(50<Ji)throw Ji=0,fc=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vr={};function Lz(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,a){return new Lz(e,t,n,a)}function Zm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=Et(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&1206910976,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.refCleanup=e.refCleanup,n}function V1(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nc(e,t,n,a,o,r){var i=0;if(a=e,typeof a=="function")Zm(a)&&(i=1);else if(typeof a=="string")i=u4(e,n,Tn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Nd:return e=Et(31,n,t,o),e.elementType=Nd,e.lanes=r,e;case fr:return po(n.children,o,r,t);case t1:i=8,o|=24;break;case wd:return e=Et(12,n,t,o|2),e.elementType=wd,e.lanes=r,e;case Ed:return e=Et(13,n,t,o),e.elementType=Ed,e.lanes=r,e;case _d:return e=Et(19,n,t,o),e.elementType=_d,e.lanes=r,e;case EM:case Td:return e=o|32,e=Et(30,n,t,e),e.elementType=Td,e.lanes=r,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case wn:i=10;break e;case n1:i=9;break e;case Om:i=11;break e;case Dm:i=14;break e;case ya:i=16,a=null;break e}i=29,n=Error(U(130,e===null?"null":typeof e,"")),a=null}return t=Et(i,n,t,o),t.elementType=e,t.type=a,t.lanes=r,t}function po(e,t,n,a){return e=Et(7,e,a,t),e.lanes=n,e}function td(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function Y1(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function nd(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uy=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var n=Uy.get(e);return n!==void 0?n:(t={value:e,source:t,stack:gy(t)},Uy.set(e,t),t)}return{value:e,source:t,stack:gy(t)}}var br=[],xr=0,_c=null,tl=0,It=[],Qt=0,La=null,_n=1,Nn="";function In(e,t){br[xr++]=tl,br[xr++]=_c,_c=e,tl=t}function k1(e,t,n){It[Qt++]=_n,It[Qt++]=Nn,It[Qt++]=La,La=e;var a=_n;e=Nn;var o=32-Lt(a)-1;a&=~(1<<o),n+=1;var r=32-Lt(t)+o;if(30<r){var i=o-o%5;r=(a&(1<<i)-1).toString(32),a>>=i,o-=i,_n=1<<32-Lt(t)+o|n<<o|a,Nn=r+e}else _n=1<<r|n<<o|a,Nn=e}function Wc(e){e.return!==null&&(In(e,1),k1(e,1,0))}function $m(e){for(;e===_c;)_c=br[--xr],br[xr]=null,tl=br[--xr],br[xr]=null;for(;e===La;)La=It[--Qt],It[Qt]=null,Nn=It[--Qt],It[Qt]=null,_n=It[--Qt],It[Qt]=null}function q1(e,t){It[Qt++]=_n,It[Qt++]=Nn,It[Qt++]=La,_n=t.id,Nn=t.overflow,La=e}var Ke=null,Ne=null,oe=!1,Ca=null,Jt=!1,Yd=Error(U(519));function Ua(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nl(Kt(t,e)),Yd}function Vy(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[et]=e,t[Tt]=a,n){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(n=0;n<il.length;n++)le(il[n],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),y1(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),b1(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Ex(t.textContent,n)?(a.popover!=null&&(le("beforetoggle",t),le("toggle",t)),a.onScroll!=null&&le("scroll",t),a.onScrollEnd!=null&&le("scrollend",t),a.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||Ua(e,!0)}function Nc(e){for(Ke=e.return;Ke;)switch(Ke.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:Ke=Ke.return}}function rr(e){if(e!==Ke)return!1;if(!oe)return Nc(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Em(e.type,e.memoizedProps)),n=!n),n&&Ne&&Ua(e),Nc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Ne=Hv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Ne=Hv(e)}else t===27?(t=Ne,Ga(e.type)?(e=Cm,Cm=null,Ne=e):Ne=t):Ne=Ke?Ft(e.stateNode.nextSibling):null;return!0}function xo(){Ne=Ke=null,oe=!1}function ad(){var e=Ca;return e!==null&&(St===null?St=e:St.push.apply(St,e),Ca=null),e}function nl(e){Ca===null?Ca=[e]:Ca.push(e)}var kd=zn(null),Do=null,Qn=null;function wa(e,t,n){Te(kd,t._currentValue),t._currentValue=n}function Kn(e){e._currentValue=kd.current,nt(kd)}function ac(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function qd(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var r=o.dependencies;if(r!==null){var i=o.child;r=r.firstContext;e:for(;r!==null;){var l=r;r=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),ac(r.return,n,e),a||(i=null);break e}r=l.next}}else if(o.tag===18){if(i=o.return,i===null)throw Error(U(341));i.lanes|=n,r=i.alternate,r!==null&&(r.lanes|=n),ac(i,n,e),i=null}else o.tag===13&&o.memoizedState!==null&&o.memoizedState.dehydrated===null?(o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),ac(o.return,n,e),i=o.child,i=i!==null?i.sibling:null):i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===e){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}}function So(e,t,n,a){e=null;for(var o=t,r=!1;o!==null;){if(!r){if((o.flags&524288)!==0)r=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var i=o.alternate;if(i===null)throw Error(U(387));if(i=i.memoizedProps,i!==null){var l=o.type;Vt(o.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(o===yc.current){if(i=o.alternate,i===null)throw Error(U(387));i.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Gr):e=[Gr])}o=o.return}return e!==null&&qd(t,e,n,a),t.flags|=262144,e!==null}function Tc(e){for(e=e.firstContext;e!==null;){if(!Vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wo(e){Do=e,Qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return G1(Do,e)}function Yu(e,t){return Do===null&&wo(e),G1(e,t)}function G1(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qn===null){if(e===null)throw Error(U(308));Qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qn=Qn.next=t;return n}var Uz=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Vz=Ze.unstable_scheduleCallback,Yz=Ze.unstable_NormalPriority,ke={$$typeof:wn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Im(){return{controller:new Uz,data:new Map,refCount:0}}function bl(e){e.refCount--,e.refCount===0&&Vz(Yz,function(){e.controller.abort()})}function Yy(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Li=null;function kz(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var qi=null,Gd=0,Eo=0,Nr=null;function qz(e,t){if(qi===null){var n=qi=[];Gd=0,Eo=xh(),Nr={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Gd++,t.then(ky,ky),t}function ky(){if(--Gd===0&&(Li=null,qi!==null)){Nr!==null&&(Nr.status="fulfilled");var e=qi;qi=null,Eo=0,Nr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gz(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var qy=F.S;F.S=function(e,t){if(ix=Ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qz(e,t),Li!==null)for(var n=Yr;n!==null;)Yy(n,Li),n=n.next;if(n=e.types,n!==null){for(var a=Yr;a!==null;)Yy(a,n),a=a.next;if(Eo!==0){a=Li,a===null&&(a=Li=[]);for(var o=0;o<n.length;o++){var r=n[o];a.indexOf(r)===-1&&a.push(r)}}}qy!==null&&qy(e,t)};var yo=zn(null);function Qm(){var e=yo.current;return e!==null?e:Se.pooledCache}function oc(e,t){t===null?Te(yo,yo.current):Te(yo,t.pool)}function X1(){var e=Qm();return e===null?null:{parent:ke._currentValue,pool:e}}var Qr=Error(U(460)),jm=Error(U(474)),es=Error(U(542)),Cc={then:function(){}};function Gy(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Z1(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zy(e),e===void 0&&!("reason"in t)?Error(U(600)):e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=Se,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zy(e),e}throw vo=t,Qr}}function so(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vo=n,Qr):n}}var vo=null;function Xy(){if(vo===null)throw Error(U(459));var e=vo;return vo=null,e}function Zy(e){if(e===Qr||e===es)throw Error(U(483))}var Tr=null,al=0;function ku(e){var t=al;return al+=1,Tr===null&&(Tr=[]),Z1(Tr,e,t)}function ha(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qu(e,t){throw t.$$typeof===wM?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $1(e){function t(g,p){if(e){var m=g.deletions;m===null?(g.deletions=[p],g.flags|=16):m.push(p)}}function n(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function a(g){for(var p=new Map;g!==null;)g.key===null?p.set(g.index,g):p.set(g.key,g),g=g.sibling;return p}function o(g,p){return g=jn(g,p),g.index=0,g.sibling=null,g}function r(g,p,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<p?(g.flags|=2,p):m):(g.flags|=134217730,p)):(g.flags|=1048576,p)}function i(g){return e&&g.alternate===null&&(g.flags|=134217730),g}function l(g,p,m,v){return p===null||p.tag!==6?(p=td(m,g.mode,v),p.return=g,p):(p=o(p,m),p.return=g,p)}function u(g,p,m,v){var b=m.type;return b===fr?(g=f(g,p,m.props.children,v,m.key),ha(g,m),g):p!==null&&(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ya&&so(b)===p.type)?(p=o(p,m.props),ha(p,m),p.return=g,p):(p=nc(m.type,m.key,m.props,null,g.mode,v),ha(p,m),p.return=g,p)}function c(g,p,m,v){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=nd(m,g.mode,v),p.return=g,p):(p=o(p,m.children||[]),p.return=g,p)}function f(g,p,m,v,b){return p===null||p.tag!==7?(p=po(m,g.mode,v,b),p.return=g,p):(p=o(p,m),p.return=g,p)}function d(g,p,m){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=td(""+p,g.mode,m),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ou:return m=nc(p.type,p.key,p.props,null,g.mode,m),ha(m,p),m.return=g,m;case Ri:return p=nd(p,g.mode,m),p.return=g,p;case ya:return p=so(p),d(g,p,m)}if(Hi(p)||Ci(p))return p=po(p,g.mode,m,null),p.return=g,p;if(typeof p.then=="function")return d(g,ku(p),m);if(p.$$typeof===wn)return d(g,Yu(g,p),m);qu(g,p)}return null}function s(g,p,m,v){var b=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return b!==null?null:l(g,p,""+m,v);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ou:return m.key===b?u(g,p,m,v):null;case Ri:return m.key===b?c(g,p,m,v):null;case ya:return m=so(m),s(g,p,m,v)}if(Hi(m)||Ci(m))return b!==null?null:f(g,p,m,v,null);if(typeof m.then=="function")return s(g,p,ku(m),v);if(m.$$typeof===wn)return s(g,p,Yu(g,m),v);qu(g,m)}return null}function h(g,p,m,v,b){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(m)||null,l(p,g,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ou:return g=g.get(v.key===null?m:v.key)||null,u(p,g,v,b);case Ri:return g=g.get(v.key===null?m:v.key)||null,c(p,g,v,b);case ya:return v=so(v),h(g,p,m,v,b)}if(Hi(v)||Ci(v))return g=g.get(m)||null,f(p,g,v,b,null);if(typeof v.then=="function")return h(g,p,m,ku(v),b);if(v.$$typeof===wn)return h(g,p,m,Yu(p,v),b);qu(p,v)}return null}function y(g,p,m,v){for(var b=null,E=null,N=p,_=p=0,T=null;N!==null&&_<m.length;_++){N.index>_?(T=N,N=null):T=N.sibling;var D=s(g,N,m[_],v);if(D===null){N===null&&(N=T);break}e&&N&&D.alternate===null&&t(g,N),p=r(D,p,_),E===null?b=D:E.sibling=D,E=D,N=T}if(_===m.length)return n(g,N),oe&&In(g,_),b;if(N===null){for(;_<m.length;_++)N=d(g,m[_],v),N!==null&&(p=r(N,p,_),E===null?b=N:E.sibling=N,E=N);return oe&&In(g,_),b}for(N=a(N);_<m.length;_++)T=h(N,g,_,m[_],v),T!==null&&(e&&(D=T.alternate,D!==null&&N.delete(D.key===null?_:D.key)),p=r(T,p,_),E===null?b=T:E.sibling=T,E=T);return e&&N.forEach(function(L){return t(g,L)}),oe&&In(g,_),b}function x(g,p,m,v){if(m==null)throw Error(U(151));for(var b=null,E=null,N=p,_=p=0,T=null,D=m.next();N!==null&&!D.done;_++,D=m.next()){N.index>_?(T=N,N=null):T=N.sibling;var L=s(g,N,D.value,v);if(L===null){N===null&&(N=T);break}e&&N&&L.alternate===null&&t(g,N),p=r(L,p,_),E===null?b=L:E.sibling=L,E=L,N=T}if(D.done)return n(g,N),oe&&In(g,_),b;if(N===null){for(;!D.done;_++,D=m.next())D=d(g,D.value,v),D!==null&&(p=r(D,p,_),E===null?b=D:E.sibling=D,E=D);return oe&&In(g,_),b}for(N=a(N);!D.done;_++,D=m.next())D=h(N,g,_,D.value,v),D!==null&&(e&&(T=D.alternate,T!==null&&N.delete(T.key===null?_:T.key)),p=r(D,p,_),E===null?b=D:E.sibling=D,E=D);return e&&N.forEach(function(k){return t(g,k)}),oe&&In(g,_),b}function S(g,p,m,v){if(typeof m=="object"&&m!==null&&m.type===fr&&m.key===null&&m.props.ref===void 0&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ou:e:{for(var b=m.key;p!==null;){if(p.key===b){if(b=m.type,b===fr){if(p.tag===7){n(g,p.sibling),v=o(p,m.props.children),ha(v,m),v.return=g,g=v;break e}}else if(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ya&&so(b)===p.type){n(g,p.sibling),v=o(p,m.props),ha(v,m),v.return=g,g=v;break e}n(g,p);break}else t(g,p);p=p.sibling}m.type===fr?(v=po(m.props.children,g.mode,v,m.key),ha(v,m),v.return=g,g=v):(v=nc(m.type,m.key,m.props,null,g.mode,v),ha(v,m),v.return=g,g=v)}return i(g);case Ri:e:{for(b=m.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),v=o(p,m.children||[]),v.return=g,g=v;break e}else{n(g,p);break}else t(g,p);p=p.sibling}v=nd(m,g.mode,v),v.return=g,g=v}return i(g);case ya:return m=so(m),S(g,p,m,v)}if(Hi(m))return y(g,p,m,v);if(Ci(m)){if(b=Ci(m),typeof b!="function")throw Error(U(150));return m=b.call(m),x(g,p,m,v)}if(typeof m.then=="function")return S(g,p,ku(m),v);if(m.$$typeof===wn)return S(g,p,Yu(g,m),v);qu(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),v=o(p,m),v.return=g,g=v):(n(g,p),v=td(m,g.mode,v),v.return=g,g=v),i(g)):n(g,p)}return function(g,p,m,v){try{al=0;var b=S(g,p,m,v);return Tr=null,b}catch(N){if(N===Qr||N===es)throw N;var E=Et(29,N,null,g.mode);return E.lanes=v,E.return=g,E}}}var _o=$1(!0),I1=$1(!1),va=!1;function Km(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Ec(e),U1(e,null,n),t}return Pc(e,a,t,n),Ec(e)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,c1(e,n)}}function od(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?o=r=i:r=r.next=i,n=n.next}while(n!==null);r===null?o=r=t:r=r.next=t}else o=r=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Zd=!1;function Xi(){if(Zd){var e=Nr;if(e!==null)throw e}}function Zi(e,t,n,a){Zd=!1;var o=e.updateQueue;va=!1;var r=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var u=l,c=u.next;u.next=null,i===null?r=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=u))}if(r!==null){var d=o.baseState;i=0,f=c=u=null,l=r;do{var s=l.lane&-536870913,h=s!==l.lane;if(h?(se&s)===s:(a&s)===s){s!==0&&s===Eo&&(Zd=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var y=e,x=l;s=t;var S=n;switch(x.tag){case 1:if(y=x.payload,typeof y=="function"){d=y.call(S,d,s);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,s=typeof y=="function"?y.call(S,d,s):y,s==null)break e;d=we({},d,s);break e;case 2:va=!0}}s=l.callback,s!==null&&(e.flags|=64,h&&(e.flags|=8192),h=o.callbacks,h===null?o.callbacks=[s]:h.push(s))}else h={lane:s,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=h,u=d):f=f.next=h,i|=s;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);f===null&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,r===null&&(o.shared.lanes=0),ka|=i,e.lanes=i,e.memoizedState=d}}function Q1(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function j1(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Q1(n[e],t)}var Va=zn(null),Mc=zn(0);function $y(e,t){e=ta,Te(Mc,e),Te(Va,t),ta=e|t.baseLanes}function $d(){Te(Mc,ta),Te(Va,Va.current)}function Jm(){ta=Mc.current,nt(Va),nt(Mc)}var rt=zn(null),ct=null;function Aa(e){var t=e.alternate;Te(at,at.current&1),Te(rt,e),ct===null&&(t===null||Va.current!==null||t.memoizedState!==null)&&(ct=e)}function Id(e){Te(at,at.current),Te(rt,e),ct===null&&(ct=e)}function K1(e){e.tag===22?(Te(at,at.current),Te(rt,e),ct===null&&(ct=e)):Oa()}function Oa(){Te(at,at.current),Te(rt,rt.current)}function Ot(e){nt(rt),ct===e&&(ct=null),nt(at)}var at=zn(0);function ol(e,t){Te(rt,rt.current),Te(at,t)}function Fm(e){nt(at),nt(rt),ct===e&&(ct=null)}function zc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tm(n)||_h(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)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 Pn=0,ne=null,xe=null,Ye=null,Ac=!1,Cr=!1,No=!1,Oc=0,rl=0,Mr=null,Xz=0;function Re(){throw Error(U(321))}function Pm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vt(e[n],t[n]))return!1;return!0}function Wm(e,t,n,a,o,r){return Pn=r,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?Tb:Cb,No=!1,r=n(a,o),No=!1,Cr&&(r=F1(t,n,a,o)),J1(e),r}function J1(e){F.H=Dc;var t=xe!==null&&xe.next!==null;if(Pn=0,Ye=xe=ne=null,Ac=!1,rl=0,Mr=null,t)throw Error(U(300));e===null||qe||(e=e.dependencies,e!==null&&Tc(e)&&(qe=!0))}function F1(e,t,n,a){ne=e;var o=0;do{if(Cr&&(Mr=null),rl=0,Cr=!1,25<=o)throw Error(U(301));if(o+=1,Ye=xe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}F.H=Fz,r=t(n,a)}while(Cr);return r}function Zz(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?xl(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(ne.flags|=1024),t}function eh(){var e=Oc!==0;return Oc=0,e}function th(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function nh(e){if(Ac){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ac=!1}Pn=0,Ye=xe=ne=null,Cr=!1,rl=Oc=0,Mr=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?ne.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Ue(){if(xe===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Ye===null?ne.memoizedState:Ye.next;if(t!==null)Ye=t,xe=e;else{if(e===null)throw ne.alternate===null?Error(U(467)):Error(U(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Ye===null?ne.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xl(e){var t=rl;return rl+=1,Mr===null&&(Mr=[]),e=Z1(Mr,e,t),t=ne,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?Tb:Cb),e}function ns(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xl(e);if(e.$$typeof===NM)return;if(e.$$typeof===wn)return tt(e)}throw Error(U(438,String(e)))}function ah(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ne.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ts(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=_M;return t.index++,n}function Wn(e,t){return typeof t=="function"?t(e):t}function rc(e){var t=Ue();return oh(t,xe,e)}function oh(e,t,n){var a=e.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=n;var o=e.baseQueue,r=a.pending;if(r!==null){if(o!==null){var i=o.next;o.next=r.next,r.next=i}t.baseQueue=o=r,a.pending=null}if(r=e.baseState,o===null)e.memoizedState=r;else{t=o.next;var l=i=null,u=null,c=t,f=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(se&d)===d:(Pn&d)===d){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Eo&&(f=!0);else if((Pn&s)===s){c=c.next,s===Eo&&(f=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=d,i=r):u=u.next=d,ne.lanes|=s,ka|=s;d=c.action,No&&n(r,d),r=c.hasEagerState?c.eagerState:n(r,d)}else s={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=s,i=r):u=u.next=s,ne.lanes|=d,ka|=d;c=c.next}while(c!==null&&c!==t);if(u===null?i=r:u.next=l,!Vt(r,e.memoizedState)&&(qe=!0,f&&(n=Nr,n!==null)))throw n;e.memoizedState=r,e.baseState=i,e.baseQueue=u,a.lastRenderedState=r}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function rd(e){var t=Ue(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,r=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do r=e(r,i.action),i=i.next;while(i!==o);Vt(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function P1(e,t,n){var a=ne,o=Ue(),r=oe;if(r){if(n===void 0)throw Error(U(407));n=n()}else n=t();var i=!Vt((xe||o).memoizedState,n);if(i&&(o.memoizedState=n,qe=!0),o=o.queue,rh(tb.bind(null,a,o,e),[e]),e=o.getSnapshot!==t||i||Ye!==null&&(Ye.memoizedState.tag&1)!==0,Br(e?9:8,{destroy:void 0},eb.bind(null,a,o,n,t),null),e){if(a.flags|=2048,Se===null)throw Error(U(349));r||(Pn&127)!==0||W1(a,t,n)}return n}function W1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=ts(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function eb(e,t,n,a){t.value=n,t.getSnapshot=a,nb(t)&&ab(e)}function tb(e,t,n){return n(function(){nb(t)&&ab(e)})}function nb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vt(e,n)}catch{return!0}}function ab(e){var t=Oo(e,2);t!==null&&_t(t,e,2)}function Qd(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),No){xa(!0);try{n()}finally{xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function ob(e,t,n,a){return e.baseState=n,oh(e,xe,typeof a=="function"?a:Wn)}function $z(e,t,n,a,o){if(os(e))throw Error(U(485));if(e=t.action,e!==null){var r={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){r.listeners.push(i)}};F.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,rb(t,r)):(r.next=n.next,t.pending=n.next=r)}}function rb(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var r=F.T,i={};i.types=r!==null?r.types:null,F.T=i;try{var l=n(o,a),u=F.S;u!==null&&u(i,l),Iy(e,t,l)}catch(c){jd(e,t,c)}finally{r!==null&&i.types!==null&&(r.types=i.types),F.T=r}}else try{r=n(o,a),Iy(e,t,r)}catch(c){jd(e,t,c)}}function Iy(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Qy(e,t,a)},function(a){return jd(e,t,a)}):Qy(e,t,n)}function Qy(e,t,n){t.status="fulfilled",t.value=n,ib(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,rb(e,n)))}function jd(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ib(t),t=t.next;while(t!==a)}e.action=null}function ib(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lb(e,t){return t}function jy(e,t){if(oe){var n=Se.formState;if(n!==null){e:{var a=ne;if(oe){if(Ne){t:{for(var o=Ne,r=Jt;o.nodeType!==8;){if(!r){o=null;break t}if(o=Ft(o.nextSibling),o===null){o=null;break t}}r=o.data,o=r==="F!"||r==="F"?o:null}if(o){Ne=Ft(o.nextSibling),a=o.data==="F!";break e}}Ua(a)}a=!1}a&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lb,lastRenderedState:t},n.queue=a,n=Eb.bind(null,ne,a),a.dispatch=n,a=Qd(!1),r=ch.bind(null,ne,!1,a.queue),a=mt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=$z.bind(null,ne,o,r,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function Ky(e){var t=Ue();return ub(t,xe,e)}function ub(e,t,n){if(t=oh(e,t,lb)[0],e=rc(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=xl(t)}catch(i){throw i===Qr?es:i}else a=t;t=Ue();var o=t.queue,r=o.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,Br(9,{destroy:void 0},Iz.bind(null,o,n),null)),[a,r,e]}function Iz(e,t){e.action=t}function Jy(e){var t=Ue(),n=xe;if(n!==null)return ub(t,n,e);Ue(),t=t.memoizedState,n=Ue();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Br(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=ts(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function cb(){return Ue().memoizedState}function ic(e,t,n,a){var o=mt();ne.flags|=e,o.memoizedState=Br(1|t,{destroy:void 0},n,a===void 0?null:a)}function as(e,t,n,a){var o=Ue();a=a===void 0?null:a;var r=o.memoizedState.inst;xe!==null&&a!==null&&Pm(a,xe.memoizedState.deps)?o.memoizedState=Br(t,r,n,a):(ne.flags|=e,o.memoizedState=Br(1|t,r,n,a))}function Fy(e,t){ic(8390656,8,e,t)}function rh(e,t){as(2048,8,e,t)}function Qz(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=ts(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function sb(e){var t=Ue().memoizedState;return Qz({ref:t,nextImpl:e}),function(){if((me&2)!==0)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function fb(e,t){return as(4,2,e,t)}function db(e,t){return as(4,4,e,t)}function mb(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hb(e,t,n){n=n!=null?n.concat([e]):null,as(4,4,mb.bind(null,t,e),n)}function ih(){}function gb(e,t){var n=Ue();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Pm(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function pb(e,t){var n=Ue();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Pm(t,a[1]))return a[0];if(a=e(),No){xa(!0);try{e()}finally{xa(!1)}}return n.memoizedState=[a,t],a}function lh(e,t,n){return n===void 0||(Pn&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ux(),ne.lanes|=e,ka|=e,n)}function yb(e,t,n,a){return Vt(n,t)?n:Va.current!==null?(e=lh(e,n,a),Vt(e,t)||(qe=!0),e):(Pn&106)===0||(Pn&1073741824)!==0&&(se&261930)===0?(qe=!0,e.memoizedState=n):(e=ux(),ne.lanes|=e,ka|=e,t)}function vb(e,t,n,a,o){var r=he.p;he.p=r!==0&&8>r?r:8;var i=F.T,l={};l.types=i!==null?i.types:null,F.T=l,ch(e,!1,t,n);try{var u=o(),c=F.S;if(c!==null&&c(l,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=Gz(u,a);$i(e,t,f,Ut(e))}else $i(e,t,a,Ut(e))}catch(d){$i(e,t,{then:function(){},status:"rejected",reason:d},Ut())}finally{he.p=r,i!==null&&l.types!==null&&(i.types=l.types),F.T=i}}function jz(){}function Kd(e,t,n,a){if(e.tag!==5)throw Error(U(476));var o=bb(e).queue;vb(e,o,t,go,n===null?jz:function(){return xb(e),n(a)})}function bb(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:go,baseState:go,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:go},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xb(e){var t=bb(e);t.next===null&&(t=e.alternate.memoizedState),$i(e,t.next.queue,{},Ut())}function uh(){return tt(Gr)}function Sb(){return Ue().memoizedState}function wb(){return Ue().memoizedState}function Kz(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ut();e=Ma(n);var a=za(t,e,n);a!==null&&(_t(a,t,n),Gi(a,t,n)),t={cache:Im()},e.payload=t;return}t=t.return}}function Jz(e,t,n){var a=Ut();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},os(e)?_b(t,n):(n=Xm(e,t,n,a),n!==null&&(_t(n,e,a),Nb(n,t,a)))}function Eb(e,t,n){var a=Ut();$i(e,t,n,a)}function $i(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(os(e))_b(t,o);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var i=t.lastRenderedState,l=r(i,n);if(o.hasEagerState=!0,o.eagerState=l,Vt(l,i))return Pc(e,t,o,0),Se===null&&Fc(),!1}catch{}if(n=Xm(e,t,o,a),n!==null)return _t(n,e,a),Nb(n,t,a),!0}return!1}function ch(e,t,n,a){if(a={lane:2,revertLane:xh(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},os(e)){if(t)throw Error(U(479))}else t=Xm(e,n,a,2),t!==null&&_t(t,e,2)}function os(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function _b(e,t){Cr=Ac=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nb(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,c1(e,n)}}var Dc={readContext:tt,use:ns,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re,useEffectEvent:Re},Tb={readContext:tt,use:ns,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Fy,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ic(4194308,4,mb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){ic(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var a=e();if(No){xa(!0);try{e()}finally{xa(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=mt();if(n!==void 0){var o=n(t);if(No){xa(!0);try{n(t)}finally{xa(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Jz.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Qd(e);var t=e.queue,n=Eb.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ih,useDeferredValue:function(e,t){var n=mt();return lh(n,e,t)},useTransition:function(){var e=Qd(!1);return e=vb.bind(null,ne,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ne,o=mt();if(oe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Se===null)throw Error(U(349));(se&127)!==0||W1(a,t,n)}o.memoizedState=n;var r={value:n,getSnapshot:t};return o.queue=r,Fy(tb.bind(null,a,r,e),[e]),a.flags|=2048,Br(9,{destroy:void 0},eb.bind(null,a,r,n,t),null),n},useId:function(){var e=mt(),t=Se.identifierPrefix;if(oe){var n=Nn,a=_n;n=(a&~(1<<32-Lt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Oc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Xz++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:uh,useFormState:jy,useActionState:jy,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ch.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:ah,useCacheRefresh:function(){return mt().memoizedState=Kz.bind(null,ne)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((me&2)!==0)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},Cb={readContext:tt,use:ns,useCallback:gb,useContext:tt,useEffect:rh,useImperativeHandle:hb,useInsertionEffect:fb,useLayoutEffect:db,useMemo:pb,useReducer:rc,useRef:cb,useState:function(){return rc(Wn)},useDebugValue:ih,useDeferredValue:function(e,t){var n=Ue();return yb(n,xe.memoizedState,e,t)},useTransition:function(){var e=rc(Wn)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:P1,useId:Sb,useHostTransitionStatus:uh,useFormState:Ky,useActionState:Ky,useOptimistic:function(e,t){var n=Ue();return ob(n,xe,e,t)},useMemoCache:ah,useCacheRefresh:wb,useEffectEvent:sb},Fz={readContext:tt,use:ns,useCallback:gb,useContext:tt,useEffect:rh,useImperativeHandle:hb,useInsertionEffect:fb,useLayoutEffect:db,useMemo:pb,useReducer:rd,useRef:cb,useState:function(){return rd(Wn)},useDebugValue:ih,useDeferredValue:function(e,t){var n=Ue();return xe===null?lh(n,e,t):yb(n,xe.memoizedState,e,t)},useTransition:function(){var e=rd(Wn)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:P1,useId:Sb,useHostTransitionStatus:uh,useFormState:Jy,useActionState:Jy,useOptimistic:function(e,t){var n=Ue();return xe!==null?ob(n,xe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ah,useCacheRefresh:wb,useEffectEvent:sb};function id(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jd={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Ut(),o=Ma(a);o.payload=t,n!=null&&(o.callback=n),t=za(e,o,a),t!==null&&(_t(t,e,a),Gi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Ut(),o=Ma(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=za(e,o,a),t!==null&&(_t(t,e,a),Gi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ut(),a=Ma(n);a.tag=2,t!=null&&(a.callback=t),t=za(e,a,n),t!==null&&(_t(t,e,n),Gi(t,e,n))}};function Py(e,t,n,a,o,r,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,i):t.prototype&&t.prototype.isPureReactComponent?!el(n,a)||!el(o,r):!0}function Wy(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Jd.enqueueReplaceState(t,t.state,null)}function To(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=we({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Mb(e){wc(e)}function zb(e){console.error(e)}function Ab(e){wc(e)}function Rc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ev(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Fd(e,t,n){return n=Ma(n),n.tag=3,n.payload={element:null},n.callback=function(){Rc(e,t)},n}function Ob(e){return e=Ma(e),e.tag=3,e}function Db(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var r=a.value;e.payload=function(){return o(r)},e.callback=function(){ev(t,n,a)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){ev(t,n,a),typeof o!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var l=a.stack;this.componentDidCatch(a.value,{componentStack:l!==null?l:""})})}function Pz(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&So(t,n,o,!0),n=rt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ct===null?qc():n.alternate===null&&He===0&&(He=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Cc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),md(e,a,o)),!1;case 22:return n.flags|=65536,a===Cc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),md(e,a,o)),!1}throw Error(U(435,n.tag))}return md(e,a,o),qc(),!1}if(oe)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Yd&&(e=Error(U(422),{cause:a}),nl(Kt(e,n)))):(a!==Yd&&(t=Error(U(423),{cause:a}),nl(Kt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Kt(a,n),o=Fd(e.stateNode,a,o),od(e,o),He!==4&&(He=2)),!1;var r=Error(U(520),{cause:a});if(r=Kt(r,n),Ki===null?Ki=[r]:Ki.push(r),He!==4&&(He=2),t===null)return!0;a=Kt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Fd(n.stateNode,a,e),od(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Da===null||!Da.has(r))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Ob(o),Db(o,e,n,a),od(n,o),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var sh=Error(U(461)),qe=!1;function Ge(e,t,n,a){t.child=e===null?I1(t,null,n,a):_o(t,e.child,n,a)}function tv(e,t,n,a,o){n=n.render;var r=t.ref;if("ref"in a){var i={};for(var l in a)l!=="ref"&&(i[l]=a[l])}else i=a;return wo(t),a=Wm(e,t,n,i,r,o),l=eh(),e!==null&&!qe?(th(e,t,o),ea(e,t,o)):(oe&&l&&Wc(t),t.flags|=1,Ge(e,t,a,o),t.child)}function nv(e,t,n,a,o){if(e===null){var r=n.type;return typeof r=="function"&&!Zm(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,Rb(e,t,r,a,o)):(e=nc(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!dh(e,o)){var i=r.memoizedProps;if(n=n.compare,n=n!==null?n:el,n(i,a)&&e.ref===t.ref)return ea(e,t,o)}return t.flags|=1,e=jn(r,a),e.ref=t.ref,e.return=t,t.child=e}function Rb(e,t,n,a,o){if(e!==null){var r=e.memoizedProps;if(el(r,a)&&e.ref===t.ref)if(qe=!1,t.pendingProps=a=r,dh(e,o))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,ea(e,t,o)}return Pd(e,t,n,a,o)}function Hb(e,t,n,a){var o=a.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~r}else a=0,t.child=null;return av(e,t,r,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&oc(t,r!==null?r.cachePool:null),r!==null?$y(t,r):$d(),K1(t);else return a=t.lanes=536870912,av(e,t,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(oc(t,r.cachePool),$y(t,r),Oa(),t.memoizedState=null):(e!==null&&oc(t,null),$d(),Oa());return Ge(e,t,o,n),t.child}function Ii(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function av(e,t,n,a,o){var r=Qm();return r=r===null?null:{parent:ke._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&oc(t,null),$d(),K1(t),e!==null&&So(e,t,a,!0),t.childLanes=o,null}function lc(e,t){return t=rs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ov(e,t,n){return _o(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function Wz(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=lc(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ii(null,e);if(Id(t),(e=Ne)?(e=Hx(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:_n,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=Y1(e),n.return=t,t.child=n,Ke=t,Ne=null)):e=null,e===null)throw Ua(t);return t.lanes=536870912,null}return lc(t,a)}var r=e.memoizedState;if(r!==null){var i=r.dehydrated;if(Id(t),o)if(t.flags&256)t.flags&=-257,t=ov(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(qe||So(e,t,n,!1),o=(n&e.childLanes)!==0,qe||o){if(Va.current===null){if(a=Se,a!==null&&(i=s1(a,n),i!==0&&i!==r.retryLane))throw r.retryLane=i,Oo(e,i),_t(a,e,i),sh;qc()}t=ov(e,t,n)}else e=r.treeContext,Ne=Ft(i.nextSibling),Ke=t,oe=!0,Ca=null,Jt=!1,e!==null&&q1(t,e),t=lc(t,a),t.flags|=134221824;return t}return e=jn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Pd(e,t,n,a,o){return wo(t),n=Wm(e,t,n,a,void 0,o),a=eh(),e!==null&&!qe?(th(e,t,o),ea(e,t,o)):(oe&&a&&Wc(t),t.flags|=1,Ge(e,t,n,o),t.child)}function rv(e,t,n,a,o,r){return wo(t),t.updateQueue=null,n=F1(t,a,n,o),J1(e),a=eh(),e!==null&&!qe?(th(e,t,r),ea(e,t,r)):(oe&&a&&Wc(t),t.flags|=1,Ge(e,t,n,r),t.child)}function iv(e,t,n,a,o){if(wo(t),t.stateNode===null){var r=vr,i=n.contextType;typeof i=="object"&&i!==null&&(r=tt(i)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Jd,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},Km(t),i=n.contextType,r.context=typeof i=="object"&&i!==null?tt(i):vr,r.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(id(t,n,i,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(i=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),i!==r.state&&Jd.enqueueReplaceState(r,r.state,null),Zi(t,a,r,o),Xi(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var l=t.memoizedProps,u=To(n,l);r.props=u;var c=r.context,f=n.contextType;i=vr,typeof f=="object"&&f!==null&&(i=tt(f));var d=n.getDerivedStateFromProps;f=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,f||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l||c!==i)&&Wy(t,r,a,i),va=!1;var s=t.memoizedState;r.state=s,Zi(t,a,r,o),Xi(),c=t.memoizedState,l||s!==c||va?(typeof d=="function"&&(id(t,n,d,a),c=t.memoizedState),(u=va||Py(t,n,u,a,s,c,i))?(f||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),r.props=a,r.state=c,r.context=i,a=u):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,Xd(e,t),i=t.memoizedProps,f=To(n,i),r.props=f,d=t.pendingProps,s=r.context,c=n.contextType,u=vr,typeof c=="object"&&c!==null&&(u=tt(c)),l=n.getDerivedStateFromProps,(c=typeof l=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(i!==d||s!==u)&&Wy(t,r,a,u),va=!1,s=t.memoizedState,r.state=s,Zi(t,a,r,o),Xi();var h=t.memoizedState;i!==d||s!==h||va||e!==null&&e.dependencies!==null&&Tc(e.dependencies)?(typeof l=="function"&&(id(t,n,l,a),h=t.memoizedState),(f=va||Py(t,n,f,a,s,h,u)||e!==null&&e.dependencies!==null&&Tc(e.dependencies))?(c||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,h,u),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,h,u)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),r.props=a,r.state=h,r.context=u,a=f):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,lr(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,n,o)):Ge(e,t,n,o),t.memoizedState=r.state,e=t.child):e=ea(e,t,o),e}function lv(e,t,n,a){return xo(),t.flags|=256,Ge(e,t,n,a),t.child}var Wd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function em(e){return{baseLanes:e,cachePool:X1()}}function tm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function Bb(e,t,n){var a=t.pendingProps,o=!1,r=(t.flags&128)!==0,i;if((i=r)||(i=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),i&&(o=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(o?Aa(t):Oa(),(e=Ne)?(e=Hx(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:_n,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=Y1(e),n.return=t,t.child=n,Ke=t,Ne=null)):e=null,e===null)throw Ua(t);return _h(e)?t.lanes=32:t.lanes=536870912,null}return r=a.children,a=a.fallback,o?(Oa(),o=t.mode,r=rs({mode:"hidden",children:r},o),a=po(a,o,n,null),r.return=t,a.return=t,r.sibling=a,t.child=r,a=t.child,a.memoizedState=em(n),a.childLanes=tm(e,i,n),t.memoizedState=Wd,Ii(null,a)):(Aa(t),fh(t,r))}var l=e.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return e5(e,t,r,i,a,u,l,n)}return o?(Oa(),o=a.fallback,r=t.mode,l=e.child,u=l.sibling,a=jn(l,{mode:"hidden",children:a.children}),a.subtreeFlags=l.subtreeFlags&1206910976,u!==null?o=jn(u,o):(o=po(o,r,n,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,Ii(null,a),a=t.child,o=e.child.memoizedState,o===null?o=em(n):(r=o.cachePool,r!==null?(l=ke._currentValue,r=r.parent!==l?{parent:l,pool:l}:r):r=X1(),o={baseLanes:o.baseLanes|n,cachePool:r}),a.memoizedState=o,a.childLanes=tm(e,i,n),t.memoizedState=Wd,Ii(e.child,a)):(Aa(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function fh(e,t){return t=rs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rs(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function Gu(e,t,n){return _o(t,e.child,null,n),e=fh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e5(e,t,n,a,o,r,i,l){if(n)return t.flags&256?(Aa(t),t.flags&=-257,Gu(e,t,l)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,null):(Oa(),r=o.fallback,i=t.mode,o=rs({mode:"visible",children:o.children},i),r=po(r,i,l,null),r.flags|=2,o.return=t,r.return=t,o.sibling=r,t.child=o,_o(t,e.child,null,l),o=t.child,o.memoizedState=em(l),o.childLanes=tm(e,a,l),t.memoizedState=Wd,Ii(null,o));if(Aa(t),_h(r)){if(a=r.nextSibling&&r.nextSibling.dataset,a)var u=a.dgst;return a=u,a!==""&&(o=Error(U(419)),o.stack="",o.digest=a,nl({value:o,source:null,stack:null})),Gu(e,t,l)}if(qe||So(e,t,l,!1),a=(l&e.childLanes)!==0,qe||a){if(Va.current!==null)return Gu(e,t,l);if(a=Se,a!==null&&(o=s1(a,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,Oo(e,o),_t(a,e,o),sh;return Tm(r)||qc(),Gu(e,t,l)}return Tm(r)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,Ne=Ft(r.nextSibling),Ke=t,oe=!0,Ca=null,Jt=!1,e!==null&&q1(t,e),t=fh(t,o.children),t.flags|=134221824,t)}function uv(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ac(e.return,t,n)}function cv(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&zc(n)===null&&(t=e),e=e.sibling}return t}function Xu(e,t,n,a,o,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=o,i.treeForkCount=r)}function ld(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function nm(e,t,n){var a=t.pendingProps,o=a.revealOrder,r=a.tail;a=a.children;var i=at.current;if(t.flags&128)return ol(t,i),null;var l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,ol(t,i),o==="backwards"&&e!==null?(ld(e),Ge(e,t,a,n),ld(e)):Ge(e,t,a,n),a=oe?tl:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uv(e,n,t);else if(e.tag===19)uv(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}switch(o){case"backwards":n=cv(t.child),n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null,ld(t)),Xu(t,!0,o,null,r,a);break;case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&zc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Xu(t,!0,n,null,r,a);break;case"together":Xu(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=cv(t.child),n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Xu(t,!1,o,n,r,a)}return t.child}function sv(e,t,n){var a=t.pendingProps;return wa(t,t.type,a.value),Ge(e,t,a.children,n),t.child}function ea(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(So(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Tc(e)))}function t5(e,t,n){switch(t.tag){case 3:vc(t,t.stateNode.containerInfo),wa(t,ke,e.memoizedState.cache),xo();break;case 27:case 5:zd(t);break;case 4:vc(t,t.stateNode.containerInfo);break;case 10:wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Id(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Aa(t),t.flags|=128,null;a=So(e,t,n,!1);var o=t.child.childLanes;return a||(n&o)!==0?Bb(e,t,n):(Aa(t),e=ea(e,t,n),e!==null?e.sibling:null)}Aa(t);break;case 19:if(t.flags&128)return nm(e,t,n);if(o=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(So(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return nm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ol(t,at.current),a)break;return null;case 22:return t.lanes=0,Hb(e,t,n,t.pendingProps);case 24:wa(t,ke,e.memoizedState.cache)}return ea(e,t,n)}function Lb(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!dh(e,n)&&(t.flags&128)===0)return qe=!1,t5(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,oe&&(t.flags&1048576)!==0&&k1(t,tl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=so(t.elementType),t.type=e,typeof e=="function")Zm(e)?(a=To(e,a),t.tag=1,t=iv(null,t,e,a,n)):(t.tag=0,t=Pd(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===Om){t.tag=11,t=tv(null,t,e,a,n);break e}else if(o===Dm){t.tag=14,t=nv(null,t,e,a,n);break e}else if(o===wn){t.tag=10,t.type=e,t=sv(null,t,n);break e}}throw t=Cd(e)||e,Error(U(306,t,""))}}return t;case 0:return Pd(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=To(a,t.pendingProps),iv(e,t,a,o,n);case 3:e:{if(vc(t,t.stateNode.containerInfo),e===null)throw Error(U(387));a=t.pendingProps;var r=t.memoizedState;o=r.element,Xd(e,t),Zi(t,a,null,n);var i=t.memoizedState;if(a=i.cache,wa(t,ke,a),a!==r.cache&&qd(t,[ke],n,!0),Xi(),a=i.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=lv(e,t,a,n);break e}else if(a!==o){o=Kt(Error(U(424)),t),nl(o),t=lv(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ne=Ft(e.firstChild),Ke=t,oe=!0,Ca=null,Jt=!0,n=I1(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(xo(),a===o){t=ea(e,t,n);break e}Ge(e,t,a,n)}t=t.child}return t;case 26:return lr(e,t),e===null?(n=Uv(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=Nx(t.type,t.pendingProps,Ta.current,t)):t.memoizedState=Uv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zd(t),e===null&&oe&&(a=t.stateNode=Bx(t.type,t.pendingProps,Ta.current),Ke=t,Jt=!0,o=Ne,Ga(t.type)?(Cm=o,Ne=Ft(a.firstChild)):Ne=o),Ge(e,t,t.pendingProps.children,n),lr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((o=a=Ne)&&(a=Q5(a,t.type,t.pendingProps,Jt),a!==null?(t.stateNode=a,Ke=t,Ne=Ft(a.firstChild),Jt=!1,o=!0):o=!1),o||Ua(t)),zd(t),o=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,a=r.children,Em(o,r)?a=null:i!==null&&Em(o,i)&&(t.flags|=32),t.memoizedState!==null&&(o=Wm(e,t,Zz,null,null,n),Gr._currentValue=o),lr(e,t),Ge(e,t,a,n),t.child;case 6:return e===null&&oe&&((e=n=Ne)&&(n=j5(n,t.pendingProps,Jt),n!==null?(t.stateNode=n,Ke=t,Ne=null,e=!0):e=!1),e||Ua(t)),null;case 13:return Bb(e,t,n);case 4:return vc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_o(t,null,a,n):Ge(e,t,a,n),t.child;case 11:return tv(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,lr(e,t),Ge(e,t,a,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:return sv(e,t,n);case 9:return o=t.type._context,a=t.pendingProps.children,wo(t),o=tt(o),a=a(o),t.flags|=1,Ge(e,t,a,n),t.child;case 14:return nv(e,t,t.type,t.pendingProps,n);case 15:return Rb(e,t,t.type,t.pendingProps,n);case 19:return nm(e,t,n);case 31:return Wz(e,t,n);case 22:return Hb(e,t,n,t.pendingProps);case 24:return wo(t),a=tt(ke),e===null?(o=Qm(),o===null&&(o=Se,r=Im(),o.pooledCache=r,r.refCount++,r!==null&&(o.pooledCacheLanes|=n),o=r),t.memoizedState={parent:a,cache:o},Km(t),wa(t,ke,o)):((e.lanes&n)!==0&&(Xd(e,t),Zi(t,null,null,n),Xi()),o=e.memoizedState,r=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),wa(t,ke,a)):(a=r.cache,wa(t,ke,a),a!==o.cache&&qd(t,[ke],n,!0))),Ge(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&Wc(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:lr(e,t),Ge(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function $n(e){e.flags|=4}function ud(e,t,n,a,o){var r;if((r=(e.mode&32)!==0)&&(r=n===null?kv(t,a):kv(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),r){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(fx())e.flags|=8192;else throw vo=Cc,jm}else e.flags&=-16777217}function fv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yx(t))if(fx())e.flags|=8192;else throw vo=Cc,jm}function Zu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?l1():536870912,e.lanes|=t,Lr|=t)}function zi(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&1206910976,a|=o.flags&1206910976,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function n5(e,t,n){var a=t.pendingProps;switch($m(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kn(ke),Dr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(rr(t)?$n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ad())),_e(t),null;case 26:var o=t.type,r=t.memoizedState;return e===null?($n(t),r!==null?(_e(t),fv(t,r)):(_e(t),ud(t,o,null,a,n))):r?r!==e.memoizedState?($n(t),_e(t),fv(t,r)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$n(t),_e(t),ud(t,o,e,a,n)),null;case 27:if(bc(t),n=Ta.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(U(166));return _e(t),t.subtreeFlags&=-33554433,null}e=Tn.current,rr(t)?Vy(t,e):(e=Bx(o,a,n),t.stateNode=e,$n(t))}return _e(t),t.subtreeFlags&=-33554433,null;case 5:if(bc(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(U(166));return _e(t),t.subtreeFlags&=-33554433,null}if(r=Tn.current,rr(t))Vy(t,r);else{var i=ul(Ta.current);switch(r){case 1:r=i.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=i.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=i.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?i.createElement(o,{is:a.is}):i.createElement(o)}}r[et]=t,r[Tt]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)r.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=r;e:switch(ot(r,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$n(t)}}return _e(t),t.subtreeFlags&=-33554433,ud(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(U(166));if(e=Ta.current,rr(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=Ke,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Ex(e.nodeValue,n)),e||Ua(t,!0)}else e=ul(e).createTextNode(a),e[et]=t,t.stateNode=e}return _e(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=rr(t),n!==null){if(e===null){if(!a)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[et]=t}else xo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else n=ad(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(U(558))}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=rr(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(U(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(U(317));o[et]=t}else xo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),o=!1}else o=ad(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Zu(t,t.updateQueue),_e(t),null);case 4:return Dr(),e===null&&Sh(t.stateNode.containerInfo),t.flags|=67108864,_e(t),null;case 10:return Kn(t.type),_e(t),null;case 19:if(Fm(t),a=t.memoizedState,a===null)return _e(t),null;if(o=(t.flags&128)!==0,r=a.rendering,r===null)if(o)zi(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=zc(e),r!==null){for(t.flags|=128,zi(a,!1),e=r.updateQueue,t.updateQueue=e,Zu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)V1(n,e),n=n.sibling;return ol(t,at.current&1|2),oe&&In(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ht()>Yc&&(t.flags|=128,o=!0,zi(a,!1),t.lanes=4194304)}else{if(!o)if(e=zc(r),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Zu(t,e),zi(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!r.alternate&&!oe)return _e(t),null}else 2*Ht()-a.renderingStartTime>Yc&&n!==536870912&&(t.flags|=128,o=!0,zi(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ht(),e.sibling=null,r=at.current,r=o?r&1|2:r&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||oe?ol(t,r):(n=r,Te(rt,t),Te(at,n),ct===null&&(ct=t)),oe&&In(t,a.treeForkCount),e}return _e(t),null;case 22:case 23:return Ot(t),Jm(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),n=t.updateQueue,n!==null&&Zu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&nt(yo),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Kn(ke),_e(t),null;case 25:return null;case 30:return t.flags|=33554432,_e(t),null}throw Error(U(156,t.tag))}function a5(e,t){switch($m(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(ke),Dr(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bc(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(U(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fm(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Dr(),null;case 10:return Kn(t.type),null;case 22:case 23:return Ot(t),Jm(),e!==null&&nt(yo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kn(ke),null;case 25:return null;default:return null}}function Ub(e,t){switch($m(t),t.tag){case 3:Kn(ke),Dr();break;case 26:case 27:case 5:bc(t);break;case 4:Dr();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:Fm(t);break;case 10:Kn(t.type);break;case 22:case 23:Ot(t),Jm(),e!==null&&nt(yo);break;case 24:Kn(ke)}}function Sl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var r=n.create,i=n.inst;a=r(),i.destroy=a}n=n.next}while(n!==o)}}catch(l){be(t,t.return,l)}}function Ya(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){var i=a.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,o=t;var u=n,c=l;try{c()}catch(f){be(o,u,f)}}}a=a.next}while(a!==r)}}catch(f){be(t,t.return,f)}}function Vb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{j1(t,n)}catch(a){be(e,e.return,a)}}}function Yb(e,t,n){n.props=To(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){be(e,t,a)}}function xn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var o=e.stateNode,r=Fn(e.memoizedProps,o);(o.ref===null||o.ref.name!==r)&&(o.ref=zx(r)),a=o.ref;break;case 7:if(e.stateNode===null){var i=new Yt(e);Nt(e.child,!1,$5,i,void 0,void 0),e.stateNode=i}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(l){be(e,t,l)}}function We(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){be(e,t,o)}else n.current=null}function Hc(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Rx(e.stateNode,t[n])}function dv(e){for(var t=e.return;t!==null&&(hh(t)&&Rx(e.stateNode,t.stateNode),!mh(t));)t=t.return}function Qi(e){for(var t=e.return;t!==null&&(hh(t)&&I5(e.stateNode,t.stateNode),!mh(t));)t=t.return}function mh(e){return e.tag===5||e.tag===3||e.tag===27}function hh(e){return e&&e.tag===7&&e.stateNode!==null}function am(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){be(e,e.return,o)}}function cd(e,t,n){try{var a=e.stateNode;C5(a,e.type,n,t),a[Tt]=t}catch(o){be(e,e.return,o)}}function kb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ga(e.type)||e.tag===4}function sd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kb(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.tag===27&&Ga(e.type)||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 om(e,t,n,a){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(o,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(o),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=En)),Hc(e,a),de=!0;else if(o!==4&&(o===27&&(Hc(e,a),a=null,Ga(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(om(e,t,n,a),e=e.sibling;e!==null;)om(e,t,n,a),e=e.sibling}function Bc(e,t,n,a){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?n.insertBefore(o,t):n.appendChild(o),Hc(e,a),de=!0;else if(o!==4&&(o===27&&(Hc(e,a),a=null,Ga(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Bc(e,t,n,a),e=e.sibling;e!==null;)Bc(e,t,n,a),e=e.sibling}function qb(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ot(t,a,n),t[et]=e,t[Tt]=n}catch(r){be(e,e.return,r)}}var Lc=!1,Dt=null;function mv(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Lc=!0)}var Sn=null;function hv(){var e=Sn;return Sn=null,e}var wt=0;function jr(e,t,n,a,o){return wt=0,Gb(e.child,t,n,a,o)}function Gb(e,t,n,a,o){for(var r=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(a!==null){var l=_m(i);a.push(l),l.view&&(r=!0)}else r||_m(i).view&&(r=!0);Lc=!0,Tx(i,wt===0?t:t+"_"+wt,n),wt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&o||Gb(e.child,t,n,a,o)&&(r=!0));e=e.sibling}return r}function Mn(e,t){for(;e!==null;)e.tag===5?Cx(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Mn(e.child,t)),e=e.sibling}function uc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(uc(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(U(544));var n=t.name;t=aa(t.default,t.share),t!=="none"&&(jr(e,n,t,null,!1)||Mn(e.child,!1))}e=e.sibling}}function rm(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,o=Fn(a,n),r=aa(a.default,n.paired?a.share:a.enter);r!=="none"?jr(e,o,r,null,!1)?(uc(e),n.paired||t||Ur(e,a.onEnter)):Mn(e.child,!1):uc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)rm(e,t),e=e.sibling;else uc(e)}function im(e){if(Dt!==null&&Dt.size!==0){var t=Dt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var o=t.get(a);if(o!==void 0){var r=aa(n.default,n.share);if(r!=="none"&&(jr(e,a,r,null,!1)?(r=e.stateNode,o.paired=r,r.paired=o,Ur(e,n.onShare)):Mn(e.child,!1)),t.delete(a),t.size===0)break}}}im(e)}e=e.sibling}}}function lm(e){if(e.tag===30){var t=e.memoizedProps,n=Fn(t,e.stateNode),a=Dt!==null?Dt.get(n):void 0,o=aa(t.default,a!==void 0?t.share:t.exit);o!=="none"&&(jr(e,n,o,null,!1)?a!==void 0?(o=e.stateNode,a.paired=o,o.paired=a,Dt.delete(n),Ur(e,t.onShare)):Ur(e,t.onExit):Mn(e.child,!1)),Dt!==null&&im(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)lm(e),e=e.sibling;else Dt!==null&&im(e)}function Xb(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Fn(t,e.stateNode);t=aa(t.default,t.update),e.flags&=-5,t!=="none"&&jr(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Xb(e);e=e.sibling}}function um(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Mn(e.child,!1))}um(e)}e=e.sibling}}function cc(e){if(e.tag===30)e.stateNode.paired=null,Mn(e.child,!1),um(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)cc(e),e=e.sibling;else um(e)}function Zb(e){for(e=e.child;e!==null;)e.tag===30?Mn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Zb(e),e=e.sibling}function gh(e,t,n,a,o,r,i){for(var l=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(r!==null&&wt<r.length){var c=r[wt],f=_m(u);(c.view||f.view)&&(l=!0);var d;if(d=(e.flags&4)===0)if(f.clip)d=!0;else{d=c.rect;var s=f.rect;d=d.y!==s.y||d.x!==s.x||d.height!==s.height||d.width!==s.width}d&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Tx(u,wt===0?n:n+"_"+wt,o),l&&(e.flags&4)!==0||(Sn===null&&(Sn=[]),Sn.push(u,wt===0?a:a+"_"+wt,t.memoizedProps)),wt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:gh(e,t.child,n,a,o,r,i)&&(l=!0));t=t.sibling}return l}function $b(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,o=Fn(n,a),r=aa(n.default,n.update);if(t){a=a.clones;var i=a===null?null:a.map(R5)}else i=e.memoizedState,e.memoizedState=null;a=e;var l=e.child;wt=0,o=gh(a,l,o,o,r,i,!1),(e.flags&4)!==0&&o&&(t||Ur(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&$b(e,t);e=e.sibling}}var Ie=!1,pe=!1,yn=!1,fd=!1,gv=typeof WeakSet=="function"?WeakSet:Set,Qe=null,vn=!1,Ui=!1,Uc=!1,cm=!1;function o5(e,t,n){if(e=e.containerInfo,Sm=Xr,e=A1(e),qm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var r=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var l=0,u=-1,c=-1,f=0,d=0,s=e,h=null;t:for(;;){for(var y;s!==a||r!==0&&s.nodeType!==3||(u=l+r),s!==i||o!==0&&s.nodeType!==3||(c=l+o),s.nodeType===3&&(l+=s.nodeValue.length),(y=s.firstChild)!==null;)h=s,s=y;for(;;){if(s===e)break t;if(h===a&&++f===r&&(u=l),h===i&&++d===o&&(c=l),(y=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=y}a=u===-1||c===-1?null:{start:u,end:c}}else a=null}a=a||{start:0,end:0}}else a=null;for(wm={focusedElem:e,selectionRange:a},Xr=!1,n=(n&335544064)===n,Qe=t,t=n?9270:1024;Qe!==null;){if(e=Qe,n&&(a=e.deletions,a!==null))for(r=0;r<a.length;r++)n&&lm(a[r]);if(e.alternate===null&&(e.flags&2)!==0)n&&mv(e),$u(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&lm(a),$u(n);continue}else if(a!==null&&a.memoizedState!==null){n&&mv(e),$u(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,Qe=a):(n&&Xb(e),$u(n))}}Dt=null}function $u(e){for(;Qe!==null;){var t=Qe,n=e,a=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((o&1024)!==0&&a!==null){n=void 0,o=a.memoizedProps,a=a.memoizedState;var r=t.stateNode;try{var i=To(t.type,o);n=r.getSnapshotBeforeUpdate(i,a),r.__reactInternalSnapshotBeforeUpdate=n}catch(l){be(t,t.return,l)}}break;case 3:if((o&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)Nm(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Nm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=Fn(a.memoizedProps,a.stateNode),o=t.memoizedProps,o=aa(o.default,o.update),o!=="none"&&jr(a,n,o,a.memoizedState=[],!0));break;default:if((o&1024)!==0)throw Error(U(163))}if(a=t.sibling,a!==null){a.return=t.return,Qe=a;break}Qe=t.return}}function Ib(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:bn(e,n),a&4&&Sl(5,n);break;case 1:if(bn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){be(n,n.return,i)}else{var o=To(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){be(n,n.return,i)}}a&64&&Vb(n),a&512&&xn(n,n.return);break;case 3:if(bn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{j1(e,t)}catch(i){be(n,n.return,i)}}break;case 27:t===null&&a&4&&qb(n);case 26:case 5:bn(e,n),t===null&&a&4&&am(n),a&512&&xn(n,n.return);break;case 12:bn(e,n);break;case 31:bn(e,n),a&4&&Jb(e,n);break;case 13:bn(e,n),a&4&&Fb(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=p5.bind(null,n),K5(e,n))));break;case 22:if(a=n.memoizedState!==null||Ie,!a){var r=t!==null&&t.memoizedState!==null||pe;t=Ie,o=pe,Ie=a,(pe=r)&&!o?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),rn(e,n,a)):bn(e,n),Ie=t,pe=o}break;case 30:bn(e,n),a&512&&xn(n,n.return);break;case 7:a&512&&xn(n,n.return);default:bn(e,n)}}function sm(e,t){for(e=e.child;e!==null;)Qb(e,t),e=e.sibling}function Qb(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var o=e.stateNode,r=e.memoizedProps.style,i=r!=null&&r.hasOwnProperty("display")?r.display:null;o.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(u){be(e,e.return,u)}fm(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,de=!0}catch(u){be(e,e.return,u)}break;case 18:try{var l=e.stateNode;t?Ov(l,!0):Ov(e.stateNode,!1)}catch(u){be(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&sm(e,t);break;default:sm(e,t)}}function fm(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:Qb(n,a);break e;case 22:n.memoizedState===null&&fm(n,a);break e;default:fm(n,a)}}e=e.sibling}}function jb(e){var t=e.alternate;t!==null&&(e.alternate=null,jb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,xt=!1;function on(e,t,n){for(n=n.child;n!==null;)Kb(e,t,n),n=n.sibling}function Kb(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(hl,n)}catch{}switch(n.tag){case 26:pe||We(n,t),on(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!pe&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pe||We(n,t),Qi(n);var a=ze,o=xt;Ga(n.type)&&(ze=n.stateNode,xt=!1),on(e,t,n),Lx(n.stateNode,n.type,n.memoizedProps),ze=a,xt=o;break;case 5:pe||We(n,t),Qi(n);case 6:if(n.tag===6&&Qi(n),a=ze,o=xt,ze=null,on(e,t,n),ze=a,xt=o,ze!==null)if(xt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(n.stateNode),de=!0}catch(r){be(n,t,r)}else try{ze.removeChild(n.stateNode),de=!0}catch(r){be(n,t,r)}break;case 18:ze!==null&&(xt?(e=ze,Av(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Zr(e)):Av(ze,n.stateNode));break;case 4:a=ze,o=xt,ze=n.stateNode.containerInfo,xt=!0,on(e,t,n),ze=a,xt=o;break;case 0:case 11:case 14:case 15:Ya(2,n,t),pe||Ya(4,n,t),on(e,t,n);break;case 1:pe||(We(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Yb(n,t,a)),on(e,t,n);break;case 21:on(e,t,n);break;case 22:pe=(a=pe)||n.memoizedState!==null,on(e,t,n),pe=a;break;case 30:We(n,t),on(e,t,n);break;case 7:pe||We(n,t),on(e,t,n);break;default:on(e,t,n)}}function Jb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Zr(e)}catch(n){be(t,t.return,n)}}}function Fb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zr(e)}catch(n){be(t,t.return,n)}}function r5(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gv),t;default:throw Error(U(435,e.tag))}}function Iu(e,t){var n=r5(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=y5.bind(null,e,a);a.then(o,o)}})}function ft(e,t,n){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o],i=e,l=t,u=l;e:for(;u!==null;){switch(u.tag){case 27:if(Ga(u.type)){ze=u.stateNode,xt=!1;break e}break;case 5:ze=u.stateNode,xt=!1;break e;case 3:case 4:ze=u.stateNode.containerInfo,xt=!0;break e}u=u.return}if(ze===null)throw Error(U(160));Kb(i,l,r),ze=null,xt=!1,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Pb(t,e,n),t=t.sibling}var ln=null;function Pb(e,t,n){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(o&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var r=0;r<a.length;r++){var i=a[r];i.ref.impl=i.nextImpl}ft(t,e,n),dt(e),o&4&&(Ya(3,e,e.return),Sl(3,e),Ya(5,e,e.return));break;case 1:ft(t,e,n),dt(e),o&512&&(pe||a===null||We(a,a.return)),o&64&&Ie&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(r=ln,ft(t,e,n),dt(e),o&512&&(pe||a===null||We(a,a.return)),o&4)if(o=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(Ie)e.stateNode=Nx(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,o=r.ownerDocument||r;t:switch(t){case"title":a=o.getElementsByTagName("title")[0],(!a||a[yl]||a[et]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=o.createElement(t),o.head.insertBefore(a,o.querySelector("head > title"))),ot(a,t,n),a[et]=e,je(a),t=a;break e;case"link":if(r=Yv("link","href",o).get(t+(n.href||""))){for(i=0;i<r.length;i++)if(a=r[i],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(i,1);break t}}a=o.createElement(t),ot(a,t,n),o.head.appendChild(a);break;case"meta":if(r=Yv("meta","content",o).get(t+(n.content||""))){for(i=0;i<r.length;i++)if(a=r[i],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(i,1);break t}}a=o.createElement(t),ot(a,t,n),o.head.appendChild(a);break;default:throw Error(U(468,t))}a[et]=e,je(a),t=a}e.stateNode=t}else Ie||Mm(r,e.type,e.stateNode);else e.stateNode=Vv(r,n,e.memoizedProps);else o!==n?(o===null?(t=a.stateNode,t===null||pe||t.parentNode.removeChild(t)):o.count--,n===null?Ie||Mm(r,e.type,e.stateNode):Vv(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&cd(e,e.memoizedProps,a.memoizedProps);break;case 27:ft(t,e,n),dt(e),o&512&&(pe||a===null||We(a,a.return)),a!==null&&o&4&&cd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(r=yn,yn=!1,ft(t,e,n),yn=r,dt(e),o&512&&(pe||a===null||We(a,a.return)),e.flags&32){t=e.stateNode;try{Hr(t,""),de=!0}catch(f){be(e,e.return,f)}}o&4&&e.stateNode!=null&&(t=e.memoizedProps,cd(e,t,a!==null?a.memoizedProps:t)),o&1024&&(fd=!0);break;case 6:if(ft(t,e,n),dt(e),o&4){if(e.stateNode===null)throw Error(U(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,de=!0}catch(f){be(e,e.return,f)}}break;case 3:if(de=!1,mc=null,r=ln,ln=cl(t.containerInfo),ft(t,e,n),ln=r,dt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Zr(t.containerInfo)}catch(f){be(e,e.return,f)}fd&&(fd=!1,Wb(e)),de=!1;break;case 4:o=yn,yn=Ie,a=Sy(),r=ln,ln=cl(e.stateNode.containerInfo),ft(t,e,n),dt(e),ln=r,de&&Ui&&(Uc=!0),de=a,yn=o;break;case 12:ft(t,e,n),dt(e);break;case 31:ft(t,e,n),dt(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Iu(e,t)));break;case 13:ft(t,e,n),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(is=Ht()),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Iu(e,t)));break;case 22:r=e.memoizedState!==null,i=a!==null&&a.memoizedState!==null;var l=Ie,u=pe,c=yn;Ie=l||r,yn=c||r,pe=u||i,ft(t,e,n),pe=u,yn=c,Ie=l,dt(e),o&8192&&(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,!r||a===null||i||Ie||pe||(t=i||pe,n=Ie,a=pe,Ie=r||Ie,pe=t,pa(e,2),Ie=n,pe=a),!r&&yn||sm(e,r)),o&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Iu(e,n))));break;case 19:ft(t,e,n),dt(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Iu(e,t)));break;case 30:o&512&&(pe||a===null||We(a,a.return)),o=Sy(),r=Ui,i=(n&335544064)===n,l=e.memoizedProps,Ui=i&&aa(l.default,l.update)!=="none",ft(t,e,n),dt(e),i&&a!==null&&de&&(e.flags|=4),Ui=r,de=o;break;case 21:break;case 7:o&512&&(pe||a===null||We(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:ft(t,e,n),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(kb(a)){n=a;break}a=a.return}a=null;for(var o=e.return;o!==null;){if(hh(o)){var r=o.stateNode;a===null?a=[r]:a.push(r)}if(mh(o))break;o=o.return}var i=a;if(n==null)throw Error(U(160));switch(n.tag){case 27:var l=n.stateNode,u=sd(e);Bc(e,u,l,i);break;case 5:var c=n.stateNode;n.flags&32&&(Hr(c,""),n.flags&=-33);var f=sd(e);Bc(e,f,c,i);break;case 3:case 4:var d=n.stateNode.containerInfo,s=sd(e);om(e,s,d,i);break;default:throw Error(U(161))}}catch(h){be(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wb(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Xr=!0,t.reset(),Xr=!1),e=e.sibling}}function ir(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ex(t,e),t=t.sibling;else $b(t,!1)}function ex(e,t){var n=e.alternate;if(n===null)rm(e,!1);else switch(e.tag){case 3:if(cm=vn=!1,hv(),ir(t,e),!vn&&!Uc){if(e=Sn,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var o=e[a+1];Cx(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+o+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),cm=!0}Sn=null;break;case 5:ir(t,e);break;case 4:a=vn,vn=!1,ir(t,e),vn&&(Uc=!0),vn=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?rm(e,!1):ir(t,e));break;case 30:a=vn,o=hv(),vn=!1,ir(t,e),vn&&(e.flags|=4);var r=e.memoizedProps,i=e.stateNode;t=Fn(r,i),i=Fn(n.memoizedProps,i);var l=aa(r.default,r.update);l==="none"?t=!1:(r=n.memoizedState,n.memoizedState=null,n=e.child,wt=0,t=gh(e,n,t,i,l,r,!0),wt!==(r===null?0:r.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ur(e,e.memoizedProps.onUpdate),Sn=o):o!==null&&(o.push.apply(o,Sn),Sn=o),vn=(e.flags&32)!==0?!0:a;break;default:ir(t,e)}}function bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ib(e,t.alternate,t),t=t.sibling}function pa(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:Ya(4,n,n.return),pa(n,a);break;case 1:We(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&Yb(n,n.return,o),pa(n,a);break;case 27:(a&2)!==0&&Lx(n.stateNode,n.type,n.memoizedProps);case 5:We(n,n.return),n.tag!==5&&n.tag!==27||Qi(n),pa(n,a);break;case 6:Qi(n);break;case 26:We(n,n.return),o=n.stateNode,n.memoizedState!==null||o===null||pe||o.parentNode.removeChild(o),pa(n,a);break;case 22:n.memoizedState===null&&pa(n,a);break;case 30:We(n,n.return),pa(n,a);break;case 7:We(n,n.return);default:pa(n,a)}e=e.sibling}}function rn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,o=e,r=t,i=r.flags,l=(n&1)!==0;switch(r.tag){case 0:case 11:case 15:rn(o,r,n),Sl(4,r);break;case 1:if(rn(o,r,n),a=r,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(f){be(a,a.return,f)}if(a=r,o=a.updateQueue,o!==null){var u=a.stateNode;try{var c=o.shared.hiddenCallbacks;if(c!==null)for(o.shared.hiddenCallbacks=null,o=0;o<c.length;o++)Q1(c[o],u)}catch(f){be(a,a.return,f)}}l&&i&64&&Vb(r),xn(r,r.return);break;case 27:(n&2)!==0&&qb(r);case 5:r.tag!==5&&r.tag!==27||dv(r),rn(o,r,n),l&&a===null&&i&4&&am(r),xn(r,r.return);break;case 6:dv(r);break;case 26:u=r.stateNode,r.memoizedState!==null||u===null||Ie||Mm(cl(u.ownerDocument),r.type,u),rn(o,r,n),l&&a===null&&i&4&&am(r),xn(r,r.return);break;case 12:rn(o,r,n);break;case 31:rn(o,r,n),l&&i&4&&Jb(o,r);break;case 13:rn(o,r,n),l&&i&4&&Fb(o,r);break;case 22:r.memoizedState===null&&rn(o,r,n),xn(r,r.return);break;case 30:rn(o,r,n),xn(r,r.return);break;case 7:xn(r,r.return);default:rn(o,r,n)}t=t.sibling}}function ph(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&bl(n))}function yh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bl(e))}function Zt(e,t,n,a){var o=(n&335544064)===n;if(t.subtreeFlags&(o?10262:10256))for(t=t.child;t!==null;)tx(e,t,n,a),t=t.sibling;else o&&Zb(t)}function tx(e,t,n,a){var o=(n&335544064)===n;o&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&cc(t);var r=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,n,a),r&2048&&Sl(9,t);break;case 1:Zt(e,t,n,a);break;case 3:Zt(e,t,n,a),o&&cm&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),r&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(t.refCount++,r!=null&&bl(r)));break;case 12:if(r&2048){Zt(e,t,n,a),r=t.stateNode;try{var i=t.memoizedProps,l=i.id,u=i.onPostCommit;typeof u=="function"&&u(l,t.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(c){be(t,t.return,c)}}else Zt(e,t,n,a);break;case 31:Zt(e,t,n,a);break;case 13:Zt(e,t,n,a);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,t.memoizedState!==null?(o&&l!==null&&l.memoizedState===null&&cc(l),i._visibility&2?Zt(e,t,n,a):ji(e,t)):(o&&l!==null&&l.memoizedState!==null&&cc(t),i._visibility&2?Zt(e,t,n,a):(i._visibility|=2,ur(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),r&2048&&ph(l,t);break;case 24:Zt(e,t,n,a),r&2048&&yh(t.alternate,t);break;case 30:o&&(r=t.alternate,r!==null&&(Mn(r.child,!0),Mn(t.child,!0))),Zt(e,t,n,a);break;default:Zt(e,t,n,a)}}function ur(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,i=t,l=n,u=a,c=i.flags;switch(i.tag){case 0:case 11:case 15:ur(r,i,l,u,o),Sl(8,i);break;case 23:break;case 22:var f=i.stateNode;i.memoizedState!==null?f._visibility&2?ur(r,i,l,u,o):ji(r,i):(f._visibility|=2,ur(r,i,l,u,o)),o&&c&2048&&ph(i.alternate,i);break;case 24:ur(r,i,l,u,o),o&&c&2048&&yh(i.alternate,i);break;default:ur(r,i,l,u,o)}t=t.sibling}}function ji(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ji(n,a),o&2048&&ph(a.alternate,a);break;case 24:ji(n,a),o&2048&&yh(a.alternate,a);break;default:ji(n,a)}t=t.sibling}}var fo=8192;function uo(e,t,n){if(e.subtreeFlags&fo)for(e=e.child;e!==null;)nx(e,t,n),e=e.sibling}function nx(e,t,n){switch(e.tag){case 26:uo(e,t,n),e.flags&fo&&(e.memoizedState!==null?c4(n,ln,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&qv(n,e)));break;case 5:uo(e,t,n),e.flags&fo&&(e=e.stateNode,(t&335544128)===t&&qv(n,e));break;case 3:case 4:var a=ln;ln=cl(e.stateNode.containerInfo),uo(e,t,n),ln=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=fo,fo=16777216,uo(e,t,n),fo=a):uo(e,t,n));break;case 30:if((e.flags&fo)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var o=e.stateNode;o.paired=null,Dt===null&&(Dt=new Map),Dt.set(a,o)}uo(e,t,n);break;default:uo(e,t,n)}}function ax(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ai(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Qe=a,rx(a,e)}ax(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ox(e),e=e.sibling}function ox(e){switch(e.tag){case 0:case 11:case 15:Ai(e),e.flags&2048&&Ya(9,e,e.return);break;case 3:Ai(e);break;case 12:Ai(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,sc(e)):Ai(e);break;default:Ai(e)}}function sc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Qe=a,rx(a,e)}ax(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ya(8,t,t.return),sc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,sc(t));break;default:sc(t)}e=e.sibling}}function rx(e,t){for(;Qe!==null;){var n=Qe;switch(n.tag){case 0:case 11:case 15:Ya(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:bl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Qe=a;else e:for(n=e;Qe!==null;){a=Qe;var o=a.sibling,r=a.return;if(jb(a),a===n){Qe=null;break e}if(o!==null){o.return=r,Qe=o;break e}Qe=r}}}var i5={getCacheForType:function(e){var t=tt(ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return tt(ke).controller.signal}},l5=typeof WeakMap=="function"?WeakMap:Map,me=0,Se=null,ue=null,se=0,ye=0,zt=null,Ea=!1,Kr=!1,vh=!1,ta=0,He=0,ka=0,bo=0,Vc=0,Rt=0,Lr=0,Ki=null,St=null,dm=!1,is=0,ix=0,Yc=1/0,kc=null,Da=null,De=0,cn=null,Co=null,Cn=0,mm=0,hm=null,lx=null,zr=null,Ar=null,Or=null,Ji=0,fc=null;function Ut(){return(me&2)!==0&&se!==0?se&-se:F.T!==null?xh():f1()}function ux(){if(Rt===0)if((se&536870912)===0||oe){var e=Ru;Ru<<=1,(Ru&3932160)===0&&(Ru=262144),Rt=e}else Rt=536870912;return e=rt.current,e!==null&&(e.flags|=32),Rt}function Ur(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=zx(Fn(e.memoizedProps,n))),Ar===null&&(Ar=[]),Ar.push(t.bind(null,a))}}function _t(e,t,n){(e===Se&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Vr(e,0),_a(e,se,Rt,!1)),pl(e,n),((me&2)===0||e!==Se)&&(e===Se&&((me&2)===0&&(bo|=n),He===4&&_a(e,se,Rt,!1)),An(e))}function cx(e,t,n){if((me&6)!==0)throw Error(U(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||gl(e,t),o=a?s5(e,t):dd(e,t,!0),r=a;do{if(o===0){Kr&&!a&&_a(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!u5(n)){o=dd(e,t,!1),r=!1;continue}if(o===2){if(r=t,e.errorRecoveryDisabledLanes&r)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;o=Ki;var u=l.current.memoizedState.isDehydrated;if(u&&(Vr(l,i).flags|=256),i=dd(l,i,!1),i!==2&&i!==6){if(vh&&!u){l.errorRecoveryDisabledLanes|=r,bo|=r,o=4;break e}r=St,St=o,r!==null&&(St===null?St=r:St.push.apply(St,r))}o=i}if(r=!1,o!==2)continue}}if(o===1){Vr(e,0),_a(e,t,0,!0);break}e:{switch(a=e,r=o,r){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:_a(a,t,Rt,!Ea);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(o=is+300-Ht(),10<o)){if(_a(a,t,Rt,!Ea),Ic(a,0,!0)!==0)break e;Cn=t,a.timeoutHandle=wh(pv.bind(null,a,n,St,kc,dm,t,Rt,bo,Lr,Ea,r,"Throttled",-0,0),o);break e}pv(a,n,St,kc,dm,t,Rt,bo,Lr,Ea,r,null,-0,0)}}break}while(!0);An(e)}function pv(e,t,n,a,o,r,i,l,u,c,f,d,s,h){e.timeoutHandle=-1;var y=t.subtreeFlags,x=(r&335544064)===r;if(d=null,(x||y&8192||(y&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Dt=null,nx(t,r,d),x&&(y=d,x=e.containerInfo,x=(x.nodeType===9?x:x.ownerDocument).__reactViewTransition,x!=null&&(y.count++,y.waitingForViewTransition=!0,y=sl.bind(y),x.finished.then(y,y))),y=(r&62914560)===r?is-Ht():(r&4194048)===r?ix-Ht():0,y=s4(d,y),y!==null)){Cn=r,e.cancelPendingCommit=y(vv.bind(null,e,t,r,n,a,o,i,l,u,c,f,d,null,s,h)),_a(e,r,i,!c);return}vv(e,t,r,n,a,o,i,l,u,c,f,d)}function u5(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],r=o.getSnapshot;o=o.value;try{if(!Vt(r(),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 _a(e,t,n,a){t=i1(e,t),t&=~Vc,t&=~bo,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var r=31-Lt(o),i=1<<r;a[r]=-1,o&=~i}n!==0&&u1(e,n,t)}function ls(){return(me&6)===0?(wl(0,!1),!1):!0}function bh(){if(ue!==null){if(ye===0)var e=ue.return;else e=ue,Qn=Do=null,nh(e),Tr=null,al=0,e=ue;for(;e!==null;)Ub(e.alternate,e),e=e.return;ue=null}}function Vr(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,A5(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cn=0,bh(),Se=e,ue=n=jn(e.current,null),se=t,ye=0,zt=null,Ea=!1,Kr=gl(e,t),vh=!1,Lr=Rt=Vc=bo=ka=He=0,St=Ki=null,dm=!1,ta=i1(e,t),Fc(),n}function sx(e,t){ne=null,F.H=Dc,t===Qr||t===es?(t=Xy(),ye=3):t===jm?(t=Xy(),ye=4):ye=t===sh?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,ue===null&&(He=1,Rc(e,Kt(t,e.current)))}function fx(){var e=rt.current;return e===null?!0:(se&4194048)===se?ct===null:(se&62914560)===se||(se&536870912)!==0?e===ct:!1}function dx(){var e=F.H;return F.H=Dc,e===null?Dc:e}function mx(){var e=F.A;return F.A=i5,e}function qc(){He=4,Ea||(se&4194048)!==se&&rt.current!==null||(Kr=!0),(ka&134217727)===0&&(bo&134217727)===0||Se===null||_a(Se,se,Rt,!1)}function dd(e,t,n){var a=me;me|=2;var o=dx(),r=mx();(Se!==e||se!==t)&&(kc=null,Vr(e,t)),t=!1;var i=He;e:do try{if(ye!==0&&ue!==null){var l=ue,u=zt;switch(ye){case 8:bh(),i=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var c=ye;if(ye=0,zt=null,Sr(e,l,u,c),n&&Kr){i=0;break e}break;default:c=ye,ye=0,zt=null,Sr(e,l,u,c)}}c5(),i=He;break}catch(f){sx(e,f)}while(!0);return t&&e.shellSuspendCounter++,Qn=Do=null,me=a,F.H=o,F.A=r,ue===null&&(Se=null,se=0,Fc()),i}function c5(){for(;ue!==null;)hx(ue)}function s5(e,t){var n=me;me|=2;var a=dx(),o=mx();Se!==e||se!==t?(kc=null,Yc=Ht()+500,Vr(e,t)):Kr=gl(e,t);e:do try{if(ye!==0&&ue!==null){t=ue;var r=zt;t:switch(ye){case 1:ye=0,zt=null,Sr(e,t,r,1);break;case 2:case 9:if(Gy(r)){ye=0,zt=null,yv(t);break}t=function(){ye!==2&&ye!==9||Se!==e||(ye=7),An(e)},r.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:Gy(r)?(ye=0,zt=null,yv(t)):(ye=0,zt=null,Sr(e,t,r,7));break;case 5:var i=null;switch(ue.tag){case 26:i=ue.memoizedState;case 5:case 27:var l=ue;if(i?Yx(i):l.stateNode.complete){ye=0,zt=null;var u=l.sibling;if(u!==null)ue=u;else{var c=l.return;c!==null?(ue=c,us(c)):ue=null}break t}}ye=0,zt=null,Sr(e,t,r,5);break;case 6:ye=0,zt=null,Sr(e,t,r,6);break;case 8:bh(),He=6;break e;default:throw Error(U(462))}}f5();break}catch(f){sx(e,f)}while(!0);return Qn=Do=null,F.H=a,F.A=o,me=n,ue!==null?0:(Se=null,se=0,Fc(),He)}function f5(){for(;ue!==null&&!MM();)hx(ue)}function hx(e){var t=Lb(e.alternate,e,ta);e.memoizedProps=e.pendingProps,t===null?us(e):ue=t}function yv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=rv(n,t,t.pendingProps,t.type,void 0,se);break;case 11:t=rv(n,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:nh(t);var a=t;a===Ke&&(oe?(Nc(a),a.tag===5&&a.stateNode!=null&&(Ne=a.stateNode)):(Nc(a),oe=!0));default:Ub(n,t),t=ue=V1(t,ta),t=Lb(n,t,ta)}e.memoizedProps=e.pendingProps,t===null?us(e):ue=t}function Sr(e,t,n,a){Qn=Do=null,nh(t),Tr=null,al=0;var o=t.return;try{if(Pz(e,o,t,n,se)){He=1,Rc(e,Kt(n,e.current)),ue=null;return}}catch(r){if(o!==null)throw ue=o,r;He=1,Rc(e,Kt(n,e.current)),ue=null;return}t.flags&32768?(oe||a===1?e=!0:Kr||(se&536870912)!==0?e=!1:(Ea=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),gx(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){gx(t,Ea);return}e=t.return;var n=n5(t.alternate,t,ta);if(n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);He===0&&(He=5)}function gx(e,t){do{var n=a5(e.alternate,e);if(n!==null){n.flags&=32767,ue=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=n}while(e!==null);He=6,ue=null}function vv(e,t,n,a,o,r,i,l,u,c,f,d){e.cancelPendingCommit=null;do cs();while(De!==0);if((me&6)!==0)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));e===Se&&(ue=Se=null,se=0),Co=t,cn=e,Cn=n,hm=o,lx=a,d5(e,t,n,i,l,u,d)}}function d5(e,t,n,a,o,r,i){var l=t.lanes|t.childLanes;if(mm=l,l|=Gm,VM(e,n,l,a,o,r),Ar=null,(n&335544064)===n?(Or=kz(e),a=10262):(Or=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,v5(xc,function(){return vm(),null})):(e.callbackNode=null,e.callbackPriority=0),Lc=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=F.T,F.T=null,o=he.p,he.p=2,r=me,me|=4;try{o5(e,t,n)}finally{me=r,he.p=o,F.T=a}}De=1,Lc?zr=L5(i,e.containerInfo,Or,gm,pm,h5,ym,vm,m5,null,null):(gm(),pm(),ym())}function m5(e){if(De!==0){var t=cn.onRecoverableError;t(e,{componentStack:null})}}function h5(){De===3&&(De=0,ex(Co,cn),De=4)}function gm(){if(De===1){De=0;var e=cn,t=Co,n=Cn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=F.T,F.T=null;var o=he.p;he.p=2;var r=me;me|=4;try{Ui=Uc=!1,Pb(t,e,n),n=wm;var i=A1(e.containerInfo),l=n.focusedElem,u=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&z1(l.ownerDocument.documentElement,l)){if(u!==null&&qm(l)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(f,l.value.length);else{var d=l.ownerDocument||document,s=d&&d.defaultView||window;if(s.getSelection){var h=s.getSelection(),y=l.textContent.length,x=Math.min(u.start,y),S=u.end===void 0?x:Math.min(u.end,y);!h.extend&&x>S&&(i=S,S=x,x=i);var g=Hy(l,x),p=Hy(l,S);if(g&&p&&(h.rangeCount!==1||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==p.node||h.focusOffset!==p.offset)){var m=d.createRange();m.setStart(g.node,g.offset),h.removeAllRanges(),x>S?(h.addRange(m),h.extend(p.node,p.offset)):(m.setEnd(p.node,p.offset),h.addRange(m))}}}}for(d=[],h=l;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<d.length;l++){var v=d[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}Xr=!!Sm,wm=Sm=null}finally{me=r,he.p=o,F.T=a}}e.current=t,De=2}}function pm(){if(De===2){De=0;var e=cn,t=Co,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var a=he.p;he.p=2;var o=me;me|=4;try{Ib(e,t.alternate,t)}finally{me=o,he.p=a,F.T=n}}De=3}}function ym(){if(De===4||De===3){De=0;var e=zr;zr=null,zM();var t=cn,n=Co,a=Cn,o=lx,r=(a&335544064)===a?10262:10256;if((n.subtreeFlags&r)!==0||(n.flags&r)!==0?De=5:(De=0,Co=cn=null,px(t,t.pendingLanes)),r=t.pendingLanes,r===0&&(Da=null),Bm(a),n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(hl,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=F.T,r=he.p,he.p=2,F.T=null;try{for(var i=t.onRecoverableError,l=0;l<o.length;l++){var u=o[l];i(u.value,{componentStack:u.stack})}}finally{F.T=n,he.p=r}}if(o=Ar,i=Or,Or=null,o!==null&&(Ar=null,i===null&&(i=[]),e!==null))for(u=0;u<o.length;u++)n=(0,o[u])(i),n!==void 0&&e.finished.finally(n);(Cn&3)!==0&&cs(),An(t),r=t.pendingLanes,(a&261930)!==0&&(r&42)!==0?t===fc?Ji++:(Ji=0,fc=t):(Ji=0,fc=null),wl(0,!1)}}function px(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bl(t)))}function cs(){return zr!==null&&(zr.skipTransition(),zr=null),gm(),pm(),ym(),vm()}function vm(){if(De!==5)return!1;var e=cn,t=mm;mm=0;var n=Bm(Cn),a=F.T,o=he.p;try{he.p=32>n?32:n,F.T=null,n=hm,hm=null;var r=cn,i=Cn;if(De=0,Co=cn=null,Cn=0,(me&6)!==0)throw Error(U(331));var l=me;if(me|=4,ox(r.current),tx(r,r.current,i,n),me=l,wl(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(hl,r)}catch{}return!0}finally{he.p=o,F.T=a,px(e,t)}}function bv(e,t,n){t=Kt(n,t),t=Fd(e.stateNode,t,2),e=za(e,t,2),e!==null&&(pl(e,2),An(e))}function be(e,t,n){if(e.tag===3)bv(e,e,n);else for(;t!==null;){if(t.tag===3){bv(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Da===null||!Da.has(a))){e=Kt(n,e),n=Ob(2),a=za(t,n,2),a!==null&&(Db(n,a,t,e),pl(a,2),An(a));break}}t=t.return}}function md(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new l5;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(vh=!0,o.add(n),e=g5.bind(null,e,t,n),t.then(e,e))}function g5(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Se===e&&(se&n)===n&&((He===4||He===3&&(se&62914560)===se&&300>Ht()-is)&&(me&2)===0?Vr(e,0):Vc|=n,Lr===se&&(Lr=0)),An(e)}function yx(e,t){t===0&&(t=l1()),e=Oo(e,t),e!==null&&(pl(e,t),An(e))}function p5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yx(e,n)}function y5(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(U(314))}a!==null&&a.delete(t),yx(e,n)}function v5(e,t){return Rm(e,t)}var Yr=null,cr=null,bm=!1,Gc=!1,hd=!1,Na=0;function An(e){e!==cr&&e.next===null&&(cr===null?Yr=cr=e:cr=cr.next=e),Gc=!0,bm||(bm=!0,x5())}function wl(e,t){if(!hd&&Gc){hd=!0;do for(var n=!1,a=Yr;a!==null;){if(!t)if(e!==0){var o=a.pendingLanes;if(o===0)var r=0;else{var i=a.suspendedLanes,l=a.pingedLanes;r=(1<<31-Lt(42|e)+1)-1,r&=o&~(i&~l),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,xv(a,r))}else r=se,r=Ic(a,a===Se?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||gl(a,r)||(n=!0,xv(a,r));a=a.next}while(n);hd=!1}}function b5(){vx()}function vx(){Gc=bm=!1;var e=0;Na!==0&&z5()&&(e=Na);for(var t=Ht(),n=null,a=Yr;a!==null;){var o=a.next,r=bx(a,t);r===0?(a.next=null,n===null?Yr=o:n.next=o,o===null&&(cr=n)):(n=a,(e!==0||(r&3)!==0)&&(Gc=!0)),a=o}De!==0&&De!==5||wl(e,!1),Na!==0&&(Na=0)}function bx(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var i=31-Lt(r),l=1<<i,u=o[i];u===-1?((l&n)===0||(l&a)!==0)&&(o[i]=UM(l,t)):u<=t&&(e.expiredLanes|=l),r&=~l}if(t=Se,n=se,n=Ic(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&If(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||gl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&If(a),Bm(n)){case 2:case 8:n=o1;break;case 32:n=xc;break;case 268435456:n=r1;break;default:n=xc}return a=xx.bind(null,e),n=Rm(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&If(a),e.callbackPriority=2,e.callbackNode=null,2}function xx(e,t){if(De!==0&&De!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cs()&&e.callbackNode!==n)return null;var a=se;return a=Ic(e,e===Se?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(cx(e,a,t),bx(e,Ht()),e.callbackNode!=null&&e.callbackNode===n?xx.bind(null,e):null)}function xv(e,t){if(cs())return null;cx(e,t,!0)}function x5(){O5(function(){(me&6)!==0?Rm(a1,b5):vx()})}function xh(){if(Na===0){var e=Eo;e===0&&(e=Du,Du<<=1,(Du&261888)===0&&(Du=256)),Na=e}return Na}function Sv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wu(e)}function S5(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var r=Sv((o[Tt]||null).action),i=a.submitter;i&&(t=(t=i[Tt]||null)?Sv(t.formAction):i.getAttribute("formAction"),t!==null&&(r=t,i=null));var l=new jc("action","action",null,a,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Na!==0){var u=new FormData(o,i);Kd(n,{pending:!0,data:u,method:o.method,action:r},null,u)}}else typeof r=="function"&&(l.preventDefault(),u=new FormData(o,i),Kd(n,{pending:!0,data:u,method:o.method,action:r},r,u))},currentTarget:o}]})}}for(Qu=0;Qu<Vd.length;Qu++)ju=Vd[Qu],wv=ju.toLowerCase(),Ev=ju[0].toUpperCase()+ju.slice(1),sn(wv,"on"+Ev);var ju,wv,Ev,Qu;sn(D1,"onAnimationEnd");sn(R1,"onAnimationIteration");sn(H1,"onAnimationStart");sn("dblclick","onDoubleClick");sn("focusin","onFocus");sn("focusout","onBlur");sn(Dz,"onTransitionRun");sn(Rz,"onTransitionStart");sn(Hz,"onTransitionCancel");sn(B1,"onTransitionEnd");Rr("onMouseEnter",["mouseout","mouseover"]);Rr("onMouseLeave",["mouseout","mouseover"]);Rr("onPointerEnter",["pointerout","pointerover"]);Rr("onPointerLeave",["pointerout","pointerover"]);zo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zo("onBeforeInput",["compositionend","keypress","textInput","paste"]);zo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var il="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(" "),w5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(il));function Sx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var i=a.length-1;0<=i;i--){var l=a[i],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==r&&o.isPropagationStopped())break e;r=l,o.currentTarget=c;try{r(o)}catch(f){wc(f)}o.currentTarget=null,r=u}else for(i=0;i<a.length;i++){if(l=a[i],u=l.instance,c=l.currentTarget,l=l.listener,u!==r&&o.isPropagationStopped())break e;r=l,o.currentTarget=c;try{r(o)}catch(f){wc(f)}o.currentTarget=null,r=u}}}}function le(e,t){var n=t[yy];n===void 0&&(n=t[yy]=new Set);var a=e+"__bubble";n.has(a)||(wx(t,e,2,!1),n.add(a))}function gd(e,t,n){var a=0;t&&(a|=4),wx(n,e,a,t)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function Sh(e){if(!e[Ku]){e[Ku]=!0,m1.forEach(function(n){n!=="selectionchange"&&(w5.has(n)||gd(n,!1,e),gd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ku]||(t[Ku]=!0,gd("selectionchange",!1,t))}}function wx(e,t,n,a){switch(Ix(t)){case 2:var o=h4;break;case 8:o=g4;break;default:o=Mh}n=o.bind(null,t,n,e),o=void 0,!Hd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?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 pd(e,t,n,a,o){var r=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var l=a.stateNode.containerInfo;if(l===o)break;if(i===4)for(i=a.return;i!==null;){var u=i.tag;if((u===3||u===4)&&i.stateNode.containerInfo===o)return;i=i.return}for(;l!==null;){if(i=mo(l),i===null)return;if(u=i.tag,u===5||u===6||u===26||u===27){a=r=i;continue e}l=l.parentNode}}a=a.return}S1(function(){var c=r,f=Um(n),d=[];e:{var s=L1.get(e);if(s!==void 0){var h=jc,y=e;switch(e){case"keypress":if(tc(n)===0)break e;case"keydown":case"keyup":h=uz;break;case"focusin":y="focus",h=Pf;break;case"focusout":y="blur",h=Pf;break;case"beforeblur":case"afterblur":h=Pf;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=Ny;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=JM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=mz;break;case D1:case R1:case H1:h=WM;break;case B1:h=gz;break;case"scroll":case"scrollend":h=jM;break;case"wheel":h=yz;break;case"copy":case"cut":case"paste":h=tz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Cy;break;case"submit":h=fz;break;case"toggle":case"beforetoggle":h=bz}var x=(t&4)!==0,S=!x&&(e==="scroll"||e==="scrollend"),g=x?s!==null?s+"Capture":null:s;x=[];for(var p=c,m;p!==null;){var v=p;if(m=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||m===null||g===null||(v=Pi(p,g),v!=null&&x.push(ll(p,v,m))),S)break;p=p.return}0<x.length&&(s=new h(s,y,null,n,f),d.push({event:s,listeners:x}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",h&&n!==Rd&&(y=n.relatedTarget||n.fromElement)&&(mo(y)||y[$r]))break e;(s||h)&&(y=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,s?(h=n.relatedTarget||n.toElement,s=c,h=h?mo(h):null,h!==null&&(S=ml(h),x=h.tag,h!==S||x!==5&&x!==27&&x!==6)&&(h=null)):(s=null,h=c),s!==h&&(x=Ny,v="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=Cy,v="onPointerLeave",g="onPointerEnter",p="pointer"),S=s==null?y:Bi(s),m=h==null?y:Bi(h),y=new x(v,p+"leave",s,n,f),y.target=S,y.relatedTarget=m,v=null,mo(f)===c&&(x=new x(g,p+"enter",h,n,f),x.target=m,x.relatedTarget=S,v=x),S=v,x=s&&h?Sd(s,h,E5):null,s!==null&&_v(d,y,s,x,!1),h!==null&&S!==null&&_v(d,S,h,x,!0)))}e:{if(s=c?Bi(c):window,h=s.nodeName&&s.nodeName.toLowerCase(),h==="select"||h==="input"&&s.type==="file")var b=Oy;else if(Ay(s))if(C1)b=zz;else{b=Cz;var E=Tz}else h=s.nodeName,!h||h.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Lm(c.elementType)&&(b=Oy):b=Mz;if(b&&(b=b(e,c))){T1(d,b,n,f);break e}E&&E(e,s,c)}switch(E=c?Bi(c):window,e){case"focusin":(Ay(E)||E.contentEditable==="true")&&(gr=E,Ld=c,ki=null);break;case"focusout":ki=Ld=gr=null;break;case"mousedown":Ud=!0;break;case"contextmenu":case"mouseup":case"dragend":Ud=!1,By(d,n,f);break;case"selectionchange":if(Oz)break;case"keydown":case"keyup":By(d,n,f)}var N;if(km)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else hr?_1(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(E1&&n.locale!=="ko"&&(hr||_!=="onCompositionStart"?_==="onCompositionEnd"&&hr&&(N=w1()):(Sa=f,Vm="value"in Sa?Sa.value:Sa.textContent,hr=!0)),E=Xc(c,_),0<E.length&&(_=new Ty(_,e,null,n,f),d.push({event:_,listeners:E}),N?_.data=N:(N=N1(n),N!==null&&(_.data=N)))),(N=Sz?wz(e,n):Ez(e,n))&&(_=Xc(c,"onBeforeInput"),0<_.length&&(E=new Ty("onBeforeInput","beforeinput",null,n,f),d.push({event:E,listeners:_}),E.data=N)),S5(d,e,c,n,f)}Sx(d,t)})}function ll(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xc(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,r=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||r===null||(o=Pi(e,n),o!=null&&a.unshift(ll(e,o,r)),o=Pi(e,t),o!=null&&a.push(ll(e,o,r))),e.tag===3)return a;e=e.return}return[]}function E5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _v(e,t,n,a,o){for(var r=t._reactName,i=[];n!==null&&n!==a;){var l=n,u=l.alternate,c=l.stateNode;if(l=l.tag,u!==null&&u===a)break;l!==5&&l!==26&&l!==27||c===null||(u=c,o?(c=Pi(n,r),c!=null&&i.unshift(ll(n,c,u))):o||(c=Pi(n,r),c!=null&&i.push(ll(n,c,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var _5=/\r\n?/g,N5=/\u0000|\uFFFD/g;function Nv(e){return(typeof e=="string"?e:""+e).replace(_5,`
|
|
9
|
-
`).replace(N5,"")}function Ex(e,t){return t=Nv(t),Nv(e)===t}function ve(e,t,n,a,o,r){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Hr(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Hr(e,""+a);else return;break;case"className":Bu(e,"class",a);break;case"tabIndex":Bu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Bu(e,n,a);break;case"style":x1(e,a,r);return;case"data":if(t!=="object"){Bu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Wu(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&ve(e,t,"name",o.name,o,null),ve(e,t,"formEncType",o.formEncType,o,null),ve(e,t,"formMethod",o.formMethod,o,null),ve(e,t,"formTarget",o.formTarget,o,null)):(ve(e,t,"encType",o.encType,o,null),ve(e,t,"method",o.method,o,null),ve(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Wu(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=En);return;case"onScroll":a!=null&&le("scroll",e);return;case"onScrollEnd":a!=null&&le("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(U(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(U(60));r?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Wu(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":le("beforetoggle",e),le("toggle",e),Pu(e,"popover",a);break;case"xlinkActuate":Zn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Pu(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=IM.get(n)||n,Pu(e,n,a);else return}de=!0}function xm(e,t,n,a,o,r){switch(n){case"style":x1(e,a,r);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(U(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(U(60));r?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")Hr(e,a);else if(typeof a=="number"||typeof a=="bigint")Hr(e,""+a);else return;break;case"onScroll":a!=null&&le("scroll",e);return;case"onScrollEnd":a!=null&&le("scrollend",e);return;case"onClick":a!=null&&(e.onclick=En);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!h1.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),r=n.slice(2,o?n.length-7:void 0),t=e[Tt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(r,t,o),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(r,a,o);break e}de=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):Pu(e,n,a)}return}de=!0}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var a=!1,o=!1,r;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(i!=null)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ve(e,t,r,i,n,null)}}o&&ve(e,t,"srcSet",n.srcSet,n,null),a&&ve(e,t,"src",n.src,n,null);return;case"input":le("invalid",e);var l=r=i=o=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var f=n[a];if(f!=null)switch(a){case"name":o=f;break;case"type":i=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":r=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(137,t));break;default:ve(e,t,a,f,n,null)}}y1(e,r,l,u,c,i,o,!1);return;case"select":le("invalid",e),a=i=r=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"multiple":a=l;default:ve(e,t,o,l,n,null)}t=r,n=i,e.multiple=!!a,t!=null?Er(e,!!a,t,!1):n!=null&&Er(e,!!a,n,!0);return;case"textarea":le("invalid",e),r=o=a=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(U(91));break;default:ve(e,t,i,l,n,null)}b1(e,a,o,r);return;case"option":for(u in n)n.hasOwnProperty(u)&&(a=n[u],a!=null)&&(u==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":ve(e,t,u,a,n,null));return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(a=0;a<il.length;a++)le(il[a],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(a=n[c],a!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ve(e,t,c,a,n,null)}return;default:if(Lm(t)){for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!==void 0&&xm(e,t,f,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(a=n[l],a!=null&&ve(e,t,l,a,n,null))}var T5={};function C5(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,r=null,i=null,l=null,u=null,c=null,f=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=d;default:a.hasOwnProperty(h)||ve(e,t,h,null,a,d)}}for(var s in a){var h=a[s];if(d=n[s],a.hasOwnProperty(s)&&(h!=null||d!=null))switch(s){case"type":h!==d&&(de=!0),r=h;break;case"name":h!==d&&(de=!0),o=h;break;case"checked":h!==d&&(de=!0),c=h;break;case"defaultChecked":h!==d&&(de=!0),f=h;break;case"value":h!==d&&(de=!0),i=h;break;case"defaultValue":h!==d&&(de=!0),l=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(U(137,t));break;default:h!==d&&ve(e,t,s,h,a,d)}}Dd(e,i,l,u,c,f,r,o);return;case"select":h=i=l=s=null;for(r in n)if(u=n[r],n.hasOwnProperty(r)&&u!=null)switch(r){case"value":break;case"multiple":h=u;default:a.hasOwnProperty(r)||ve(e,t,r,null,a,u)}for(o in a)if(r=a[o],u=n[o],a.hasOwnProperty(o)&&(r!=null||u!=null))switch(o){case"value":r!==u&&(de=!0),s=r;break;case"defaultValue":r!==u&&(de=!0),l=r;break;case"multiple":r!==u&&(de=!0),i=r;default:r!==u&&ve(e,t,o,r,a,u)}t=l,n=i,a=h,s!=null?Er(e,!!n,s,!1):!!a!=!!n&&(t!=null?Er(e,!!n,t,!0):Er(e,!!n,n?[]:"",!1));return;case"textarea":h=s=null;for(l in n)if(o=n[l],n.hasOwnProperty(l)&&o!=null&&!a.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:ve(e,t,l,null,a,o)}for(i in a)if(o=a[i],r=n[i],a.hasOwnProperty(i)&&(o!=null||r!=null))switch(i){case"value":o!==r&&(de=!0),s=o;break;case"defaultValue":o!==r&&(de=!0),h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(U(91));break;default:o!==r&&ve(e,t,i,o,a,r)}v1(e,s,h);return;case"option":for(var y in n)s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y)&&(y==="selected"?e.selected=!1:ve(e,t,y,null,a,s));for(u in a)s=a[u],h=n[u],a.hasOwnProperty(u)&&s!==h&&(s!=null||h!=null)&&(u==="selected"?(s!==h&&(de=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol"):ve(e,t,u,s,a,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var x in n)s=n[x],n.hasOwnProperty(x)&&s!=null&&!a.hasOwnProperty(x)&&ve(e,t,x,null,a,s);for(c in a)if(s=a[c],h=n[c],a.hasOwnProperty(c)&&s!==h&&(s!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(U(137,t));break;default:ve(e,t,c,s,a,h)}return;default:if(Lm(t)){for(var S in n)s=n[S],n.hasOwnProperty(S)&&s!==void 0&&!a.hasOwnProperty(S)&&xm(e,t,S,void 0,a,s);for(f in a)s=a[f],h=n[f],!a.hasOwnProperty(f)||s===h||s===void 0&&h===void 0||xm(e,t,f,s,a,h);return}}for(var g in n)s=n[g],n.hasOwnProperty(g)&&s!=null&&!a.hasOwnProperty(g)&&ve(e,t,g,null,a,s);for(d in a)s=a[d],h=n[d],!a.hasOwnProperty(d)||s===h||s==null&&h==null||ve(e,t,d,s,a,h)}function Tv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function M5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],r=o.transferSize,i=o.initiatorType,l=o.duration;if(r&&l&&Tv(i)){for(i=0,l=o.responseEnd,a+=1;a<n.length;a++){var u=n[a],c=u.startTime;if(c>l)break;var f=u.transferSize,d=u.initiatorType;f&&Tv(d)&&(u=u.responseEnd,i+=f*(u<l?1:(l-c)/(u-c)))}if(--a,t+=8*(r+i)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Sm=null,wm=null;function ul(e){return e.nodeType===9?e:e.ownerDocument}function Cv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _x(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nx(e,t,n,a){return n=ul(n).createElement(e),n[et]=a,n[Tt]=t,ot(n,e,t),je(n),n}function Em(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yd=null;function z5(){var e=window.event;return e&&e.type==="popstate"?e===yd?!1:(yd=e,!0):(yd=null,!1)}var wh=typeof setTimeout=="function"?setTimeout:void 0,A5=typeof clearTimeout=="function"?clearTimeout:void 0,Mv=typeof Promise=="function"?Promise:void 0,zv=typeof requestAnimationFrame=="function"?requestAnimationFrame:wh,O5=typeof queueMicrotask=="function"?queueMicrotask:typeof Mv<"u"?function(e){return Mv.resolve(null).then(e).catch(D5)}:wh;function D5(e){setTimeout(function(){throw e})}function Ga(e){return e==="head"}function Av(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Zr(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")bd(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,bd(n);for(var r=n.firstChild;r;){var i=r.nextSibling,l=r.nodeName;r[yl]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=i}}else n==="body"&&bd(e.ownerDocument.body);n=o}while(n);Zr(t)}function Ov(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Tx(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var o=a=0;o<t.length;o++){var r=t[o];0<r.width&&0<r.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Cx(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Mx(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function _m(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Mx(t,n,e)}function R5(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Mx(t,n,e)}function H5(e){return e.documentElement.clientHeight}function B5(e){this.addEventListener("load",e),this.addEventListener("error",e)}function L5(e,t,n,a,o,r,i,l,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,h=s.navigation&&s.navigation.transition,y=c.fonts.status;a();var x=[];if(y==="loaded"&&(H5(c),c.fonts.status==="loading"&&x.push(c.fonts.ready)),y=x.length,e!==null)for(var S=e.suspenseyImages,g=0,p=0;p<S.length;p++){var m=S[p];if(!m.complete){var v=m.getBoundingClientRect();if(0<v.bottom&&0<v.right&&v.top<s.innerHeight&&v.left<s.innerWidth){if(g+=kx(m),g>hc){x.length=y;break}m=new Promise(B5.bind(m)),x.push(m)}}}if(0<x.length)return s=Promise.race([Promise.all(x),new Promise(function(b){return setTimeout(b,500)})]).then(o,o),(h?Promise.allSettled([h.finished,s]):s).then(r,r);if(o(),h)return h.finished.then(r,r);r()},types:n});c.__reactViewTransition=f;var d=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),h=0;h<s.length;h++){var y=s[h],x=y.effect,S=x.pseudoElement;if(S!=null&&S.startsWith("::view-transition")){d.push(y),y=x.getKeyframes();for(var g=S=void 0,p=!0,m=0;m<y.length;m++){var v=y[m],b=v.width;if(S===void 0)S=b;else if(S!==b){p=!1;break}if(b=v.height,g===void 0)g=b;else if(g!==b){p=!1;break}delete v.width,delete v.height,v.transform==="none"&&delete v.transform}p&&S!==void 0&&g!==void 0&&(x.setKeyframes(y),p=getComputedStyle(x.target,x.pseudoElement),p.width!==S||p.height!==g)&&(p=y[0],p.width=S,p.height=g,p=y[y.length-1],p.width=S,p.height=g,x.setKeyframes(y))}}i()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{typeof s=="object"&&s!==null&&s.name==="InvalidStateError"&&(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null),s!==null&&u(s)}finally{a(),o(),i()}}),f.finished.finally(function(){for(var s=0;s<d.length;s++)d[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),l()}),f}catch{return a(),o(),i(),null}}function ho(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ho.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:we({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};ho.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],o=0;o<n.length;o++){var r=n[o].effect;r!==null&&r.target===e&&r.pseudoElement===t&&a.push(n[o])}return a};ho.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zx(e){return{name:e,group:new ho("group",e),imagePair:new ho("image-pair",e),old:new ho("old",e),new:new ho("new",e)}}function Yt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Yt.prototype.addEventListener=function(e,t,n){var a=null,o=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(Ax(r,e,t,n)===-1){var i=this,l=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(l=function(u){i.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),a!==null&&(o=i.removeEventListener.bind(i,e,t,n),a.addEventListener("abort",o,{once:!0}),o=a.removeEventListener.bind(a,"abort",o)),a=kr(n),r.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:l,cleanup:o}),Nt(this._fragmentFiber.child,!1,U5,e,l,a)}this._eventListeners=r}};function U5(e,t,n,a){return Xe(e).addEventListener(t,n,a),!1}Yt.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=Ax(a,e,t,n),t!==-1)){var o=a[t];n=o.attachedListener;var r=o.cleanup;o=kr(o.optionsOrUseCapture),Nt(this._fragmentFiber.child,!1,V5,e,n,o),a.splice(t,1),r!==null&&r()}};function V5(e,t,n,a){return Xe(e).removeEventListener(t,n,a),!1}function kr(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Dv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Ax(e,t,n,a){if(e.length===0)return-1;a=Dv(a);for(var o=0;o<e.length;o++){var r=e[o];if(r.type===t&&r.listener===n&&Dv(r.optionsOrUseCapture)===a)return o}return-1}Yt.prototype.dispatchEvent=function(e){var t=Mo(this._fragmentFiber);if(t===null)return!0;t=Xe(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var o=0;o<n.length;o++){var r=n[o];a.addEventListener(r.type,r.attachedListener,kr(r.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(o=0;o<n.length;o++)r=n[o],a.removeEventListener(r.type,r.attachedListener,kr(r.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)};Yt.prototype.focus=function(e){Nt(this._fragmentFiber.child,!0,Ox,e,void 0,void 0)};function Ox(e,t){return e.tag===6?!1:(e=Xe(e),J5(e,t))}Yt.prototype.focusLast=function(e){var t=[];Nt(this._fragmentFiber.child,!0,Eh,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Ox(t[n],e);n--);};function Eh(e,t){return t.push(e),!1}Yt.prototype.blur=function(){var e=Mo(this._fragmentFiber);e!==null&&(e=Xe(e),e=ul(e).activeElement,e!==null&&Nt(this._fragmentFiber.child,!1,Y5,e,void 0,void 0))};function Y5(e,t){return e.tag===6?!1:(e=Xe(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Yt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Nt(this._fragmentFiber.child,!1,k5,e,void 0,void 0)};function k5(e,t){return e.tag===6||(e=Xe(e),t.observe(e)),!1}Yt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Nt(this._fragmentFiber.child,!1,q5,e,void 0,void 0);for(var n=t=0;n<un.length;n++){var a=un[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):un[t++]=a}un.length=t}};function q5(e,t){return e.tag===6||(e=Xe(e),t.unobserve(e)),!1}var un=[],vd=!1;function G5(e,t,n){un.push({fragmentInstance:e,observer:t,instance:n}),vd||(vd=!0,F5(function(){vd=!1;var a=un;un=[];for(var o=0;o<a.length;o++){var r=a[o];r.observer.unobserve(r.instance)}}))}Yt.prototype.getClientRects=function(){var e=[];return Nt(this._fragmentFiber.child,!1,X5,e,void 0,void 0),e};function X5(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Xe(e),t.push.apply(t,e.getClientRects());return!1}Yt.prototype.getRootNode=function(e){var t=Mo(this._fragmentFiber);return t===null?this:Xe(t).getRootNode(e)};Yt.prototype.compareDocumentPosition=function(e){var t=Mo(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Nt(this._fragmentFiber.child,!1,Eh,n,void 0,void 0);var a=Xe(t);if(n.length===0){if(n=a,fy(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var o=a=n.compareDocumentPosition(e);return n===e?o=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Wv(t)[1],n===null?o=Node.DOCUMENT_POSITION_PRECEDING:(e=Xe(n).compareDocumentPosition(e),o=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),o|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Xe(n[0]),o=Xe(n[n.length-1]);var r=fy(this._fragmentFiber)?t.parentElement:a;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),l=o.compareDocumentPosition(e),u=i&Node.DOCUMENT_POSITION_CONTAINED_BY||l&Node.DOCUMENT_POSITION_CONTAINED_BY;return l=a&&r&&i&Node.DOCUMENT_POSITION_FOLLOWING&&l&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||r&&o===e||u||l?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!r&&o===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Z5(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Z5(e,t,n,a,o){var r=mo(o);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!r)e:{for(;r!==null;){if(r.tag===7&&(r===t||r.alternate===t)){n=!0;break e}r=r.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=o.ownerDocument,o===r||o===r.documentElement||o===r.body;e:{for(r=t,t=Mo(t);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==t&&r.alternate!==t)){r=!0;break e}r=r.return}r=!1}return r}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!r)&&!(t=r===n)&&(t=Sd(n,r,dy),t===null?t=!1:(Nt(t,!0,xM,r,n),r=sr,sr=null,t=r!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!r)&&!(t=r===a)&&(t=Sd(a,r,dy),t===null?t=!1:(Nt(t,!0,SM,r,a),r=sr,xd=sr=null,t=r!==null)),t):!1}function Rv(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Yt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(U(566));var t=[];Nt(this._fragmentFiber.child,!1,Eh,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=Wv(this._fragmentFiber);if(a=n?a[1]||a[0]||Mo(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=Xe(a),Rv(e,n);return}if(a=Xe(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var o=t[a];o.tag===6?(o=Xe(o),Rv(o,n)):Xe(o).scrollIntoView(e),a+=n?-1:1}};function $5(e,t){return e=Xe(e),Dx(e,t),!1}function Dx(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Rx(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];e.addEventListener(o.type,o.attachedListener,kr(o.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(r){for(var i=0,l=0;l<un.length;l++){var u=un[l];(u.fragmentInstance!==t||u.observer!==r||u.instance!==e)&&(un[i++]=u)}un.length=i,r.observe(e)}),Dx(e,t))}function I5(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];e.removeEventListener(o.type,o.attachedListener,kr(o.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(r){typeof r.rootMargin=="string"?G5(t,r,e):r.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Nm(n),Qc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Q5(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[yl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function j5(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ft(e.nextSibling),e===null))return null;return e}function Hx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function Tm(e){return e.data==="$?"||e.data==="$~"}function _h(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function K5(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ft(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Cm=null;function Hv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ft(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Bv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function J5(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function F5(e){zv(function(){zv(function(t){return e(t)})})}function Bx(e,t,n){switch(t=ul(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function Lx(e,t,n){for(var a in n){var o=n[a];n.hasOwnProperty(a)&&o!=null&&ve(e,t,a,null,T5,o)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===En&&(e.onclick=null),Qc(e)}function bd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qc(e)}var Pt=new Map,Lv=new Set;function cl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var oa=he.d;he.d={f:P5,r:W5,D:e4,C:t4,L:n4,m:a4,X:r4,S:o4,M:i4};function P5(){var e=oa.f(),t=ls();return e||t}function W5(e){var t=Ir(e);t!==null&&t.tag===5&&t.type==="form"?xb(t):oa.r(e)}var Jr=typeof document>"u"?null:document;function Ux(e,t,n){var a=Jr;if(a&&typeof t=="string"&&t){var o=jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Lv.has(o)||(Lv.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),ot(t,"link",e),je(t),a.head.appendChild(t)))}}function e4(e){oa.D(e),Ux("dns-prefetch",e,null)}function t4(e,t){oa.C(e,t),Ux("preconnect",e,t)}function n4(e,t,n){oa.L(e,t,n);var a=Jr;if(a&&e&&t){var o='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+jt(n.imageSizes)+'"]')):o+='[href="'+jt(e)+'"]';var r=o;switch(t){case"style":r=qr(e);break;case"script":r=Fr(e)}if(!(Pt.has(r)||(e=we({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Pt.set(r,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(El(r))||t==="script"&&a.querySelector(_l(r))))){var i=a.createElement("link");ot(i,"link",e),t==="style"&&(i[Sc]=!0,i.onload=i.onerror=function(){d1(i)}),je(i),a.head.appendChild(i)}}}function a4(e,t){oa.m(e,t);var n=Jr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',r=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Fr(e)}if(!Pt.has(r)&&(e=we({rel:"modulepreload",href:e},t),Pt.set(r,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_l(r)))return}a=n.createElement("link"),ot(a,"link",e),je(a),n.head.appendChild(a)}}}function o4(e,t,n){oa.S(e,t,n);var a=Jr;if(a&&e){var o=wr(a).hoistableStyles,r=qr(e);t=t||"default";var i=o.get(r);if(!i){var l={loading:0,preload:null};if(i=a.querySelector(El(r)))l.loading=5;else{e=we({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Pt.get(r))&&Nh(e,n);var u=i=a.createElement("link");je(u),ot(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){l.loading|=1}),u.addEventListener("error",function(){l.loading|=2}),l.loading|=4,dc(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:l},o.set(r,i)}}}function r4(e,t){oa.X(e,t);var n=Jr;if(n&&e){var a=wr(n).hoistableScripts,o=Fr(e),r=a.get(o);r||(r=n.querySelector(_l(o)),r||(e=we({src:e,async:!0},t),(t=Pt.get(o))&&Th(e,t),r=n.createElement("script"),je(r),ot(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(o,r))}}function i4(e,t){oa.M(e,t);var n=Jr;if(n&&e){var a=wr(n).hoistableScripts,o=Fr(e),r=a.get(o);r||(r=n.querySelector(_l(o)),r||(e=we({src:e,async:!0,type:"module"},t),(t=Pt.get(o))&&Th(e,t),r=n.createElement("script"),je(r),ot(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(o,r))}}function Uv(e,t,n,a){var o=(o=Ta.current)?cl(o):null;if(!o)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=qr(n.href),t=wr(o).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=qr(n.href);var r=wr(o).hoistableStyles,i=r.get(e);if(i||(o=o.ownerDocument||o,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,i),(r=o.querySelector(El(e)))?r._p||(i.instance=r,i.state.loading=5):(r=Pt.get(e),r||(r={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Pt.set(e,r)),l4(o,e,r,i.state))),t&&a===null)throw Error(U(528,""));return i}if(t&&a!==null)throw Error(U(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Fr(n),t=wr(o).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function qr(e){return'href="'+jt(e)+'"'}function El(e){return'link[rel="stylesheet"]['+e+"]"}function Vx(e){return we({},e,{"data-precedence":e.precedence,precedence:null})}function l4(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Sc]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[Sc]=!0,t.onload=t.onerror=d1.bind(null,t),ot(t,"link",n),je(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Fr(e){return'[src="'+jt(e)+'"]'}function _l(e){return"script[async]"+e}function Vv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(n.href)+'"]');if(a)return t.instance=a,je(a),a;var o=we({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),je(a),ot(a,"style",o),dc(a,n.precedence,e),t.instance=a;case"stylesheet":o=qr(n.href);var r=e.querySelector(El(o));if(r)return t.state.loading|=4,t.instance=r,je(r),r;a=Vx(n),(o=Pt.get(o))&&Nh(a,o),r=(e.ownerDocument||e).createElement("link"),je(r);var i=r;return i._p=new Promise(function(l,u){i.onload=l,i.onerror=u}),ot(r,"link",a),t.state.loading|=4,dc(r,n.precedence,e),t.instance=r;case"script":return r=Fr(n.src),(o=e.querySelector(_l(r)))?(t.instance=o,je(o),o):(a=n,(o=Pt.get(r))&&(a=we({},n),Th(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),je(o),ot(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,dc(a,n.precedence,e));return t.instance}function dc(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,r=o,i=0;i<a.length;i++){var l=a[i];if(l.dataset.precedence===t)r=l;else if(r!==o)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Nh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Th(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mc=null;function Yv(e,t,n){if(mc===null){var a=new Map,o=mc=new Map;o.set(n,a)}else o=mc,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var r=n[o];if(!(r[yl]||r[et]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var i=r.getAttribute(t)||"";i=e+i;var l=a.get(i);l?l.push(r):a.set(i,[r])}}return a}function Mm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function u4(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function kv(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Yx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kx(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function qv(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=kx(t),e.suspenseyImages.push(t)),e=f4.bind(e),t.decode().then(e,e))}function c4(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=qr(a.href),r=t.querySelector(El(o));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=sl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,je(r);return}r=t.ownerDocument||t,a=Vx(a),(o=Pt.get(o))&&Nh(a,o),r=r.createElement("link"),je(r);var i=r;i._p=new Promise(function(l,u){i.onload=l,i.onerror=u}),ot(r,"link",a),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=sl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var hc=0;function s4(e,t){return e.stylesheets&&e.count===0&&gc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&gc(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&hc===0&&(hc=62500*M5());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gc(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>hc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function qx(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)gc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function sl(){this.count--,qx(this)}function f4(){this.imgCount--,qx(this)}var Zc=null;function gc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zc=new Map,t.forEach(d4,e),Zc=null,sl.call(e))}function d4(e,t){if(!(t.state.loading&4)){var n=Zc.get(e);if(n)var a=n.get(null);else{n=new Map,Zc.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<o.length;r++){var i=o[r];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),a=i)}a&&n.set(null,a)}o=t.instance,i=o.getAttribute("data-precedence"),r=n.get(i)||a,r===a&&n.set(null,o),n.set(i,o),this.count++,a=sl.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),r?r.parentNode.insertBefore(o,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Gr={$$typeof:wn,Provider:null,Consumer:null,_currentValue:go,_currentValue2:go,_threadCount:0};function m4(e,t,n,a,o,r,i,l,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qf(0),this.hiddenUpdates=Qf(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=r,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Gx(e,t,n,a,o,r,i,l,u,c,f,d){return e=new m4(e,t,n,i,u,c,f,d,l),t=1,r===!0&&(t|=24),r=Et(3,null,null,t),e.current=r,r.stateNode=e,t=Im(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:t},Km(r),e}function Xx(e){return e?(e=vr,e):vr}function Zx(e,t,n,a,o,r){o=Xx(o),a.context===null?a.context=o:a.pendingContext=o,a=Ma(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=za(e,a,t),n!==null&&(_t(n,e,t),Gi(n,e,t))}function Gv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ch(e,t){Gv(e,t),(e=e.alternate)&&Gv(e,t)}function $x(e){if(e.tag===13||e.tag===31){var t=Oo(e,67108864);t!==null&&_t(t,e,67108864),Ch(e,67108864)}}function Xv(e){if(e.tag===13||e.tag===31){var t=Ut();t=Hm(t);var n=Oo(e,t);n!==null&&_t(n,e,t),Ch(e,t)}}var Xr=!0;function h4(e,t,n,a){var o=F.T;F.T=null;var r=he.p;try{he.p=2,Mh(e,t,n,a)}finally{he.p=r,F.T=o}}function g4(e,t,n,a){var o=F.T;F.T=null;var r=he.p;try{he.p=8,Mh(e,t,n,a)}finally{he.p=r,F.T=o}}function Mh(e,t,n,a){if(Xr){var o=zm(a);if(o===null)pd(e,t,a,$c,n),Zv(e,a);else if(y4(o,e,t,n,a))a.stopPropagation();else if(Zv(e,a),t&4&&-1<p4.indexOf(e)){for(;o!==null;){var r=Ir(o);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var i=co(r.pendingLanes);if(i!==0){var l=r;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var u=1<<31-Lt(i);l.entanglements[1]|=u,i&=~u}An(r),(me&6)===0&&(Yc=Ht()+500,wl(0,!1))}}break;case 31:case 13:l=Oo(r,2),l!==null&&_t(l,r,2),ls(),Ch(r,2)}if(r=zm(a),r===null&&pd(e,t,a,$c,n),r===o)break;o=r}o!==null&&a.stopPropagation()}else pd(e,t,a,null,n)}}function zm(e){return e=Um(e),zh(e)}var $c=null;function zh(e){if($c=null,e=mo(e),e!==null){var t=ml(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Jv(t),e!==null)return e;e=null}else if(n===31){if(e=Fv(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 $c=e,null}function Ix(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(AM()){case a1:return 2;case o1:return 8;case xc:case OM:return 32;case r1:return 268435456;default:return 32}default:return 32}}var Am=!1,Ra=null,Ha=null,Ba=null,fl=new Map,dl=new Map,ba=[],p4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Zv(e,t){switch(e){case"focusin":case"focusout":Ra=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(t.pointerId)}}function Oi(e,t,n,a,o,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[o]},t!==null&&(t=Ir(t),t!==null&&$x(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function y4(e,t,n,a,o){switch(t){case"focusin":return Ra=Oi(Ra,e,t,n,a,o),!0;case"dragenter":return Ha=Oi(Ha,e,t,n,a,o),!0;case"mouseover":return Ba=Oi(Ba,e,t,n,a,o),!0;case"pointerover":var r=o.pointerId;return fl.set(r,Oi(fl.get(r)||null,e,t,n,a,o)),!0;case"gotpointercapture":return r=o.pointerId,dl.set(r,Oi(dl.get(r)||null,e,t,n,a,o)),!0}return!1}function Qx(e){var t=mo(e.target);if(t!==null){var n=ml(t);if(n!==null){if(t=n.tag,t===13){if(t=Jv(n),t!==null){e.blockedOn=t,py(e.priority,function(){Xv(n)});return}}else if(t===31){if(t=Fv(n),t!==null){e.blockedOn=t,py(e.priority,function(){Xv(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 pc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zm(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Rd=a,n.target.dispatchEvent(a),Rd=null}else return t=Ir(n),t!==null&&$x(t),e.blockedOn=n,!1;t.shift()}return!0}function $v(e,t,n){pc(e)&&n.delete(t)}function v4(){Am=!1,Ra!==null&&pc(Ra)&&(Ra=null),Ha!==null&&pc(Ha)&&(Ha=null),Ba!==null&&pc(Ba)&&(Ba=null),fl.forEach($v),dl.forEach($v)}function Ju(e,t){e.blockedOn===t&&(e.blockedOn=null,Am||(Am=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,v4)))}var Fu=null;function Iv(e){Fu!==e&&(Fu=e,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,function(){Fu===e&&(Fu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(zh(a||n)===null)continue;break}var r=Ir(n);r!==null&&(e.splice(t,3),t-=3,Kd(r,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Zr(e){function t(u){return Ju(u,e)}Ra!==null&&Ju(Ra,e),Ha!==null&&Ju(Ha,e),Ba!==null&&Ju(Ba,e),fl.forEach(t),dl.forEach(t);for(var n=0;n<ba.length;n++){var a=ba[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ba.length&&(n=ba[0],n.blockedOn===null);)Qx(n),n.blockedOn===null&&ba.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],r=n[a+1],i=o[Tt]||null;if(typeof r=="function")i||Iv(n);else if(i){var l=null;if(r&&r.hasAttribute("formAction")){if(o=r,i=r[Tt]||null)l=i.formAction;else if(zh(o)!==null)continue}else l=i.action;typeof l=="function"?n[a+1]=l:(n.splice(a,3),a-=3),Iv(n)}}}function jx(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(i){return o=i})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Ah(e){this._internalRoot=e}ss.prototype.render=Ah.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,a=Ut();Zx(n,a,e,t,null,null)};ss.prototype.unmount=Ah.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zx(e.current,2,null,e,null,null),ls(),t[$r]=null}};function ss(e){this._internalRoot=e}ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=f1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ba.length&&t!==0&&t<ba[n].priority;n++);ba.splice(n,0,e),n===0&&Qx(e)}};var Qv=jv.version;if(Qv!=="19.3.1")throw Error(U(527,Qv,"19.3.1"));he.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=bM(t),e=e!==null?Pv(e):null,e=e===null?null:e.stateNode,e};var b4={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Di=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Di.isDisabled&&Di.supportsFiber))try{hl=Di.inject(b4),Bt=Di}catch{}var Di;fs.createRoot=function(e,t){if(!Kv(e))throw Error(U(299));var n=!1,a="",o=Mb,r=zb,i=Ab;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Gx(e,1,!1,null,null,n,a,null,o,r,i,jx),e[$r]=t.current,Sh(e),new Ah(t)};fs.hydrateRoot=function(e,t,n){if(!Kv(e))throw Error(U(299));var a=!1,o="",r=Mb,i=zb,l=Ab,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Gx(e,1,!0,t,n??null,a,o,u,r,i,l,jx),t.context=Xx(null),n=t.current,a=Ut(),a=Hm(a),o=Ma(a),o.callback=null,za(n,o,a),n=a,t.current.lanes=n,pl(t,n),An(t),e[$r]=t.current,Sh(e),new ss(t)};fs.version="19.3.1"});var Px=vt((cH,Fx)=>{"use strict";function Jx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jx)}catch(e){console.error(e)}}Jx(),Fx.exports=Kx()});var aS=vt(ds=>{"use strict";var w4=Symbol.for("react.transitional.element"),E4=Symbol.for("react.fragment");function nS(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:w4,type:e,key:a,ref:t!==void 0?t:null,props:n}}ds.Fragment=E4;ds.jsx=nS;ds.jsxs=nS});var Pr=vt((hH,oS)=>{"use strict";oS.exports=aS()});var GE=vt(qE=>{"use strict";var di=da();function yD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vD=typeof Object.is=="function"?Object.is:yD,bD=di.useState,xD=di.useEffect,SD=di.useLayoutEffect,wD=di.useDebugValue;function ED(e,t){var n=t(),a=bD({inst:{value:n,getSnapshot:t}}),o=a[0].inst,r=a[1];return SD(function(){o.value=n,o.getSnapshot=t,vg(o)&&r({inst:o})},[e,n,t]),xD(function(){return vg(o)&&r({inst:o}),e(function(){vg(o)&&r({inst:o})})},[e]),wD(n),n}function vg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vD(e,n)}catch{return!0}}function _D(e,t){return t()}var ND=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_D:ED;qE.useSyncExternalStore=di.useSyncExternalStore!==void 0?di.useSyncExternalStore:ND});var ZE=vt((lV,XE)=>{"use strict";XE.exports=GE()});var IE=vt($E=>{"use strict";var of=da(),TD=ZE();function CD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MD=typeof Object.is=="function"?Object.is:CD,zD=TD.useSyncExternalStore,AD=of.useRef,OD=of.useEffect,DD=of.useMemo,RD=of.useDebugValue;$E.useSyncExternalStoreWithSelector=function(e,t,n,a,o){var r=AD(null);if(r.current===null){var i={hasValue:!1,value:null};r.current=i}else i=r.current;r=DD(function(){function u(h){if(!c){if(c=!0,f=h,h=a(h),o!==void 0&&i.hasValue){var y=i.value;if(o(y,h))return d=y}return d=h}if(y=d,MD(f,h))return y;var x=a(h);return o!==void 0&&o(y,x)?(f=h,y):(f=h,d=x)}var c=!1,f,d,s=n===void 0?null:n;return[function(){return u(t())},s===null?void 0:function(){return u(s())}]},[t,n,a,o]);var l=zD(e,r[0],r[1]);return OD(function(){i.hasValue=!0,i.value=l},[l]),RD(l),l}});var jE=vt((cV,QE)=>{"use strict";QE.exports=IE()});var Ko="comm",fu="rule",du="decl";var fp="@media",dp="@import";var mp="@supports";var hp="@namespace",bi="@keyframes";var mu="@layer",gp="@scope";var pp=Math.abs,ro=String.fromCharCode;function hu(e){return e.trim()}function xi(e,t,n){return e.replace(t,n)}function Yn(e,t){return e.charCodeAt(t)|0}function kn(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function gu(e){return e.length}function Jo(e,t){return t.push(e),e}var pu=1,Fo=1,yp=0,qt=0,Ve=0,Wo="";function yu(e,t,n,a,o,r,i,l){return{value:e,root:t,parent:n,type:a,props:o,children:r,line:pu,column:Fo,length:i,return:"",siblings:l}}function vp(){return Ve}function bp(){return Ve=qt>0?Yn(Wo,--qt):0,Fo--,Ve===10&&(Fo=1,pu--),Ve}function Gt(){return Ve=qt<yp?Yn(Wo,qt++):0,Fo++,Ve===10&&(Fo=1,pu++),Ve}function qn(){return Yn(Wo,qt)}function Si(){return qt}function vu(e,t){return kn(Wo,e,t)}function Po(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xp(e){return pu=Fo=1,yp=bt(Wo=e),qt=0,[]}function Sp(e){return Wo="",e}function bu(e){return hu(vu(qt-1,xf(e===91?e+2:e===40?e+1:e)))}function wp(e){for(;(Ve=qn())&&Ve<33;)Gt();return Po(e)>2||Po(Ve)>3?"":" "}function Ep(e,t){for(;--t&&Gt()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return vu(e,Si()+(t<6&&qn()==32&&Gt()==32))}function xf(e){for(;Gt();)switch(Ve){case e:return qt;case 34:case 39:e!==34&&e!==39&&xf(Ve);break;case 40:e===41&&xf(e);break;case 92:Gt();break}return qt}function _p(e,t){for(;Gt()&&e+Ve!==57;)if(e+Ve===84&&qn()===47)break;return"/*"+vu(t,qt-1)+"*"+ro(e===47?e:Gt())}function Np(e){for(;!Po(qn());)Gt();return vu(e,qt)}function Mp(e){return Sp(xu("",null,null,null,[""],e=xp(e),0,[0],e))}function xu(e,t,n,a,o,r,i,l,u){for(var c=0,f=0,d=i,s=0,h=0,y=0,x=1,S=1,g=1,p=0,m=0,v="",b=o,E=r,N=a,_=v;S;)switch(y=m,m=Gt()){case 40:y!=108&&Yn(_,d-1)==58?(p++,_+="("):_+=bu(m);break;case 41:p--,_+=")";break;case 34:case 39:case 91:_+=bu(m);break;case 9:case 10:case 13:case 32:if(p>0){_+=ro(m);break}_+=wp(y);break;case 92:_+=Ep(Si()-1,7);continue;case 47:switch(qn()){case 42:case 47:Jo(AN(_p(Gt(),Si()),t,n,u),u),(Po(y||1)==5||Po(qn()||1)==5)&&bt(_)&&kn(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*x:l[c++]=bt(_)*g;case 125*x:case 59:case 0:if(p>0&&m){_+=ro(m);break}switch(m){case 0:case 125:S=0;case 59+f:g==-1&&(_=xi(_,/\f/g,"")),h>0&&(bt(_)-d||x===0)&&Jo(h>32?Cp(_+";",a,n,d-1,u):Cp(xi(_," ","")+";",a,n,d-2,u),u);break;case 59:_+=";";default:if(Jo(N=Tp(_,t,n,c,f,o,l,v,b=[],E=[],d,r),r),m===123)if(f===0)xu(_,t,N,N,b,r,d,l,E);else{switch(s){case 99:if(Yn(_,3)===110)break;case 108:if(Yn(_,2)===97)break;default:f=0;case 100:case 109:case 115:}f?xu(e,N,N,a&&Jo(Tp(e,N,N,0,0,o,l,v,o,b=[],d,E),E),o,E,d,l,a?b:E):xu(_,N,N,N,[""],E,0,l,E)}}c=f=h=0,x=g=1,v=_="",d=i;break;case 58:d=1+bt(_),h=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&bp()==125)continue}switch(_+=ro(m),m*x){case 38:g=f>0?1:(_+="\f",-1);break;case 44:if(p>0)break;l[c++]=(bt(_)-1)*g,g=1;break;case 64:qn()===45&&(_+=bu(Gt())),s=qn(),f=d=bt(v=_+=Np(Si())),m++;break;case 45:y===45&&bt(_)==2&&(x=0)}}return r}function Tp(e,t,n,a,o,r,i,l,u,c,f,d){for(var s=o-1,h=o===0?r:[""],y=gu(h),x=0,S=0,g=0;x<a;++x)for(var p=0,m=kn(e,s+1,s=pp(S=i[x])),v=e;p<y;++p)(v=hu(S>0?h[p]+" "+m:xi(m,/&\f/g,h[p])))&&(u[g++]=v);return yu(e,t,n,o===0?fu:l,u,c,f,d)}function AN(e,t,n,a){return yu(e,t,n,Ko,ro(vp()),kn(e,2,-2),0,a)}function Cp(e,t,n,a,o){return yu(e,t,n,du,kn(e,0,a),kn(e,a+1,-1),a,o)}function Su(e,t){for(var n="",a=0;a<e.length;a++)n+=t(e[a],a,e,t)||"";return n}function zp(e,t,n,a){switch(e.type){case mu:if(e.children.length)break;case dp:case hp:case du:return e.return=e.return||e.value;case Ko:return"";case bi:return e.return=e.value+"{"+Su(e.children,a)+"}";case fu:if(!bt(e.value=e.props.join(",")))return""}return bt(n=Su(e.children,a))?e.return=e.value+"{"+n+"}":""}function Ap(e){var t=gu(e);return function(n,a,o,r){for(var i="",l=0;l<t;l++)i+=e[l](n,a,o,r)||"";return i}}var Bp="c4",ON=B(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),DN=B(async()=>{let{diagram:e}=await import("./c4Diagram-KJ2TOQU5-3IYS34YL.js");return{id:Bp,diagram:e}},"loader"),RN={id:Bp,detector:ON,loader:DN},HN=RN,Lp="flowchart-v2",BN=B(e=>/^\s*(graph|flowchart)/.test(e),"detector"),LN=B(async()=>{let{diagram:e}=await import("./flowDiagram-MALGAFMO-AAUEIPCR.js");return{id:Lp,diagram:e}},"loader"),UN={id:Lp,detector:BN,loader:LN},VN=UN,Up="agentflow",YN=B(e=>/^\s*agentflow-beta\b/.test(e),"detector"),kN=B(async()=>{let{diagram:e}=await import("./diagram-3B7GL73J-ESCBJM3O.js");return{id:Up,diagram:e}},"loader"),qN={id:Up,detector:YN,loader:kN},GN=qN,Vp="swimlane",XN=B(e=>/^\s*swimlane-beta\b/.test(e),"detector"),ZN=B(async()=>{let{diagram:e}=await import("./swimlanesDiagram-OMPLPG4O-HZAKM45N.js");return{id:Vp,diagram:e}},"loader"),$N={id:Vp,detector:XN,loader:ZN},IN=$N,Yp="er",QN=B(e=>/^\s*erDiagram/.test(e),"detector"),jN=B(async()=>{let{diagram:e}=await import("./erDiagram-EYBAPDEH-Y7KUBH7A.js");return{id:Yp,diagram:e}},"loader"),KN={id:Yp,detector:QN,loader:jN},JN=KN,kp="gitGraph",FN=B(e=>/^\s*gitGraph/.test(e),"detector"),PN=B(async()=>{let{diagram:e}=await import("./gitGraphDiagram-STJD7YCW-3ZA5FT3G.js");return{id:kp,diagram:e}},"loader"),WN={id:kp,detector:FN,loader:PN},e3=WN,qp="gantt",t3=B(e=>/^\s*gantt/.test(e),"detector"),n3=B(async()=>{let{diagram:e}=await import("./ganttDiagram-23REXITY-JSBTFSSJ.js");return{id:qp,diagram:e}},"loader"),a3={id:qp,detector:t3,loader:n3},o3=a3,Gp="info",r3=B(e=>/^\s*info/.test(e),"detector"),i3=B(async()=>{let{diagram:e}=await import("./infoDiagram-KBXO4MBG-6LFMPP2O.js");return{id:Gp,diagram:e}},"loader"),l3={id:Gp,detector:r3,loader:i3},Xp="pie",u3=B(e=>/^\s*pie/.test(e),"detector"),c3=B(async()=>{let{diagram:e}=await import("./pieDiagram-J4AKIIQI-TJ5WOOSV.js");return{id:Xp,diagram:e}},"loader"),s3={id:Xp,detector:u3,loader:c3},Zp="quadrantChart",f3=B(e=>/^\s*quadrantChart/.test(e),"detector"),d3=B(async()=>{let{diagram:e}=await import("./quadrantDiagram-XTYBLID2-G6MSSZLW.js");return{id:Zp,diagram:e}},"loader"),m3={id:Zp,detector:f3,loader:d3},h3=m3,$p="xychart",g3=B(e=>/^\s*xychart(-beta)?/.test(e),"detector"),p3=B(async()=>{let{diagram:e}=await import("./xychartDiagram-GGNKY7IX-K6MUQVXR.js");return{id:$p,diagram:e}},"loader"),y3={id:$p,detector:g3,loader:p3},v3=y3,Ip="requirement",b3=B(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),x3=B(async()=>{let{diagram:e}=await import("./requirementDiagram-Y7LWUY3S-4LQIQWHQ.js");return{id:Ip,diagram:e}},"loader"),S3={id:Ip,detector:b3,loader:x3},w3=S3,Qp="sequence",E3=B(e=>/^\s*sequenceDiagram/.test(e),"detector"),_3=B(async()=>{let{diagram:e}=await import("./sequenceDiagram-5NDRBG5M-Y6RBHRS3.js");return{id:Qp,diagram:e}},"loader"),N3={id:Qp,detector:E3,loader:_3},T3=N3,jp="classDiagram",C3=B(e=>/^\s*classDiagram/.test(e),"detector"),M3=B(async()=>{let{diagram:e}=await import("./classDiagram-v2-L25IHNXF-HNTCDTNK.js");return{id:jp,diagram:e}},"loader"),z3={id:jp,detector:C3,loader:M3},A3=z3,Kp="stateDiagram",O3=B(e=>/^\s*stateDiagram/.test(e),"detector"),D3=B(async()=>{let{diagram:e}=await import("./stateDiagram-v2-FJ4FJNEA-4M5WZORG.js");return{id:Kp,diagram:e}},"loader"),R3={id:Kp,detector:O3,loader:D3},H3=R3,Jp="journey",B3=B(e=>/^\s*journey/.test(e),"detector"),L3=B(async()=>{let{diagram:e}=await import("./journeyDiagram-OPLOXDXO-ZHJV66ZT.js");return{id:Jp,diagram:e}},"loader"),U3={id:Jp,detector:B3,loader:L3},V3=U3,wu=4,wi=75,Y3=B(e=>{let t=[];for(let o of e.split(/\s+/)){let r=[...o];for(;r.length>wi;)t.push(r.slice(0,wi).join("")),r=r.slice(wi);r.length>0&&t.push(r.join(""))}let n=[],a="";for(let o of t){let r=a?`${a} ${o}`:o;[...r].length>wi?(n.push(a),a=o):a=r}if(a&&n.push(a),n.length>wu){n.length=wu;let o=n[wu-1]??"";n[wu-1]=`${[...o].slice(0,wi-3).join("")}...`}return n},"wrapErrorMessage"),k3=B((e,t,n,a)=>{Oe.debug(`rendering svg for syntax error
|
|
10
|
-
`);let o=
|
|
11
|
-
`;return a.frontmatterLineOffset&&i.setFrontmatterLineOffset?.(a.frontmatterLineOffset),await l.parse(d),new
|
|
8
|
+
`+a.stack}}var Od=Object.prototype.hasOwnProperty,Hm=Ze.unstable_scheduleCallback,Qf=Ze.unstable_cancelCallback,RM=Ze.unstable_shouldYield,HM=Ze.unstable_requestPaint,Ht=Ze.unstable_now,BM=Ze.unstable_getCurrentPriorityLevel,r1=Ze.unstable_ImmediatePriority,i1=Ze.unstable_UserBlockingPriority,Sc=Ze.unstable_NormalPriority,LM=Ze.unstable_LowPriority,l1=Ze.unstable_IdlePriority,VM=Ze.log,UM=Ze.unstable_setDisableYieldValue,hl=null,Bt=null;function xa(e){if(typeof VM=="function"&&UM(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(hl,e)}catch{}}var Lt=Math.clz32?Math.clz32:qM,YM=Math.log,kM=Math.LN2;function qM(e){return e>>>=0,e===0?32:31-(YM(e)/kM|0)|0}var Ru=256,Hu=262144,Bu=4194304;function co(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qc(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=a&134217727;return l!==0?(a=l&~r,a!==0?o=co(a):(i&=l,i!==0?o=co(i):n||(n=l&~e,n!==0&&(o=co(n))))):(l=a&~r,l!==0?o=co(l):i!==0?o=co(i):n||(n=a&~e,n!==0&&(o=co(n)))),o===0?0:t!==0&&t!==o&&(t&r)===0&&(r=o&-o,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:o}function gl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function u1(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Lt(n),o=1<<a;t|=e[a],n&=~o}return t}function GM(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function c1(){var e=Bu;return Bu<<=1,(Bu&62914560)===0&&(Bu=4194304),e}function jf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function XM(e,t,n,a,o,r){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var f=31-Lt(n),d=1<<f;l[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var h=s[f];h!==null&&(h.lane&=-536870913)}n&=~d}a!==0&&s1(e,a,0),r!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=r&~(i&~t))}function s1(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Lt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function f1(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Lt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function d1(e,t){var n=t&-t;return n=(n&42)!==0?1:Bm(n),(n&(e.suspendedLanes|t))!==0?0:n}function Bm(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Lm(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function m1(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:jx(e.type))}function vy(e,t){var n=he.p;try{return he.p=e,t()}finally{he.p=n}}var na=Math.random().toString(36).slice(2),et="__reactFiber$"+na,Tt="__reactProps$"+na,$r="__reactContainer$"+na,by="__reactEvents$"+na,ZM="__reactListeners$"+na,$M="__reactHandles$"+na,xy="__reactResources$"+na,yl="__reactMarker$"+na,wc="__reactLoad$"+na;function jc(e){delete e[et],delete e[Tt],delete e[ZM],delete e[$M]}function mo(e){var t;if(t=e[et])return t;for(var n=e.parentNode;n;){if(t=n[$r]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vv(e);e!==null;){if(n=e[et])return n;e=Vv(e)}return t}e=n,n=e.parentNode}return null}function Ir(e){if(e=e[et]||e[$r]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(V(33))}function wr(e){var t=e[xy];return t||(t=e[xy]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function je(e){e[yl]=!0}function h1(e){e[wc]=void 0}var g1=new Set,p1={};function zo(e,t){Rr(e,t),Rr(e+"Capture",t)}function Rr(e,t){for(p1[e]=t,e=0;e<t.length;e++)g1.add(t[e])}var IM=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sy={},wy={};function QM(e){return Od.call(wy,e)?!0:Od.call(Sy,e)?!1:IM.test(e)?wy[e]=!0:(Sy[e]=!0,!1)}var de=!1;function Ey(){var e=de;return de=!1,e}function Wu(e,t,n){if(QM(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Lu(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function Zn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function y1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jM(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,r.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dd(e){if(!e._valueTracker){var t=y1(e)?"checked":"value";e._valueTracker=jM(e,t,""+e[t])}}function v1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=y1(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var KM=/[\n"\\]/g;function jt(e){return e.replace(KM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rd(e,t,n,a,o,r,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?Kf(e,At(e.value)):Kf(e,At(t)):n!=null?Kf(e,At(n)):a!=null&&e.removeAttribute("value"),o==null&&r!=null&&(e.defaultChecked=!!r),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+At(l):e.removeAttribute("name")}function b1(e,t,n,a,o,r,i,l){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Dd(e);return}n=n!=null?""+At(n):"",t=t!=null?""+At(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=l?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Dd(e)}function Kf(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Er(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+At(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function x1(e,t,n){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+At(n):""}function S1(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(V(92));if(Hi(a)){if(1<a.length)throw Error(V(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=At(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Dd(e)}function Hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var JM=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _y(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||JM.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function w1(e,t,n){if(t!=null&&typeof t!="object")throw Error(V(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",de=!0);for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&(_y(e,o,a),de=!0)}else for(var r in t)t.hasOwnProperty(r)&&_y(e,r,t[r])}function Vm(e){if(e.indexOf("-")===-1)return!1;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 FM=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),PM=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ec(e){return PM.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var Hd=null;function Um(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mr=null,_r=null;function Ny(e){var t=Ir(e);if(t&&(e=t.stateNode)){var n=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rd(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[Tt]||null;if(!o)throw Error(V(90));Rd(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&v1(a)}break e;case"textarea":x1(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Er(e,!!n.multiple,t,!1)}}}var Jf=!1;function E1(e,t,n){if(Jf)return e(t,n);Jf=!0;try{var a=e(t);return a}finally{if(Jf=!1,(mr!==null||_r!==null)&&(us(),mr&&(t=mr,e=_r,_r=mr=null,Ny(t),e)))for(t=0;t<e.length;t++)Ny(e[t])}}function Pi(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Tt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bd=!1;if(Jn)try{or={},Object.defineProperty(or,"passive",{get:function(){Bd=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Bd=!1}var or,Sa=null,Ym=null,tc=null;function _1(){if(tc)return tc;var e,t=Ym,n=t.length,a,o="value"in Sa?Sa.value:Sa.textContent,r=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(a=1;a<=i&&t[n-a]===o[r-a];a++);return tc=o.slice(e,1<a?1-a:void 0)}function nc(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 Vu(){return!0}function Ty(){return!1}function ht(e){function t(n,a,o,r,i){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=r,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(r):r[l]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Vu:Ty,this.isPropagationStopped=Ty,this}return we(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=Vu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vu)},persist:function(){},isPersistent:Vu}),t}var qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kc=ht(qa),vl=we({},qa,{view:0,detail:0}),WM=ht(vl),Ff,Pf,Mi,Jc=we({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:km,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!==Mi&&(Mi&&e.type==="mousemove"?(Ff=e.screenX-Mi.screenX,Pf=e.screenY-Mi.screenY):Pf=Ff=0,Mi=e),Ff)},movementY:function(e){return"movementY"in e?e.movementY:Pf}}),Cy=ht(Jc),ez=we({},Jc,{dataTransfer:0}),tz=ht(ez),nz=we({},vl,{relatedTarget:0}),Wf=ht(nz),az=we({},qa,{animationName:0,elapsedTime:0,pseudoElement:0}),oz=ht(az),rz=we({},qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iz=ht(rz),lz=we({},qa,{data:0}),My=ht(lz),uz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cz={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"},sz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sz[e])?!!t[e]:!1}function km(){return fz}var dz=we({},vl,{key:function(e){if(e.key){var t=uz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:km,charCode:function(e){return e.type==="keypress"?nc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mz=ht(dz),hz=we({},Jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zy=ht(hz),gz=we({},qa,{submitter:0}),pz=ht(gz),yz=we({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:km}),vz=ht(yz),bz=we({},qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),xz=ht(bz),Sz=we({},Jc,{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}),wz=ht(Sz),Ez=we({},qa,{newState:0,oldState:0,source:0}),_z=ht(Ez),Nz=[9,13,27,32],qm=Jn&&"CompositionEvent"in window,Ui=null;Jn&&"documentMode"in document&&(Ui=document.documentMode);var Tz=Jn&&"TextEvent"in window&&!Ui,N1=Jn&&(!qm||Ui&&8<Ui&&11>=Ui),Ay=" ",Oy=!1;function T1(e,t){switch(e){case"keyup":return Nz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hr=!1;function Cz(e,t){switch(e){case"compositionend":return C1(t);case"keypress":return t.which!==32?null:(Oy=!0,Ay);case"textInput":return e=t.data,e===Ay&&Oy?null:e;default:return null}}function Mz(e,t){if(hr)return e==="compositionend"||!qm&&T1(e,t)?(e=_1(),tc=Ym=Sa=null,hr=!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 N1&&t.locale!=="ko"?null:t.data;default:return null}}var zz={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 Dy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zz[e.type]:t==="textarea"}function M1(e,t,n,a){mr?_r?_r.push(a):_r=[a]:mr=a,t=Zc(t,"onChange"),0<t.length&&(n=new Kc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Yi=null,Wi=null;function Az(e){Ex(e,0)}function Fc(e){var t=Bi(e);if(v1(t))return e}function Ry(e,t){if(e==="change")return t}var z1=!1;Jn&&(Jn?(Yu="oninput"in document,Yu||(ed=document.createElement("div"),ed.setAttribute("oninput","return;"),Yu=typeof ed.oninput=="function"),Uu=Yu):Uu=!1,z1=Uu&&(!document.documentMode||9<document.documentMode));var Uu,Yu,ed;function Hy(){Yi&&(Yi.detachEvent("onpropertychange",A1),Wi=Yi=null)}function A1(e){if(e.propertyName==="value"&&Fc(Wi)){var t=[];M1(t,Wi,e,Um(e)),E1(Az,t)}}function Oz(e,t,n){e==="focusin"?(Hy(),Yi=t,Wi=n,Yi.attachEvent("onpropertychange",A1)):e==="focusout"&&Hy()}function Dz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fc(Wi)}function Rz(e,t){if(e==="click")return Fc(t)}function Hz(e,t){if(e==="input"||e==="change")return Fc(t)}function Bz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:Bz;function el(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!Od.call(t,o)||!Ut(e[o],t[o]))return!1}return!0}function Ld(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 By(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ly(e,t){var n=By(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=By(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function D1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ld(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ld(e.document)}return t}function Gm(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")}var Lz=Jn&&"documentMode"in document&&11>=document.documentMode,gr=null,Vd=null,ki=null,Ud=!1;function Vy(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ud||gr==null||gr!==Ld(a)||(a=gr,"selectionStart"in a&&Gm(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ki&&el(ki,a)||(ki=a,a=Zc(Vd,"onSelect"),0<a.length&&(t=new Kc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=gr)))}function lo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pr={animationend:lo("Animation","AnimationEnd"),animationiteration:lo("Animation","AnimationIteration"),animationstart:lo("Animation","AnimationStart"),transitionrun:lo("Transition","TransitionRun"),transitionstart:lo("Transition","TransitionStart"),transitioncancel:lo("Transition","TransitionCancel"),transitionend:lo("Transition","TransitionEnd")},td={},R1={};Jn&&(R1=document.createElement("div").style,"AnimationEvent"in window||(delete pr.animationend.animation,delete pr.animationiteration.animation,delete pr.animationstart.animation),"TransitionEvent"in window||delete pr.transitionend.transition);function Ao(e){if(td[e])return td[e];if(!pr[e])return e;var t=pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in R1)return td[e]=t[n];return e}var H1=Ao("animationend"),B1=Ao("animationiteration"),L1=Ao("animationstart"),Vz=Ao("transitionrun"),Uz=Ao("transitionstart"),Yz=Ao("transitioncancel"),V1=Ao("transitionend"),U1=new Map,Yd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Yd.push("scrollEnd");function sn(e,t){U1.set(e,t),zo(t,[e])}var kz=0;function Fn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=cn.identifierPrefix;var n=kz++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Uy(e){if(e==null||typeof e=="string")return e;var t=null,n=Or;if(n!==null)for(var a=0;a<n.length;a++){var o=e[n[a]];if(o!=null){if(o==="none")return"none";t=t==null?o:t+(" "+o)}}return t??e.default}function aa(e,t){return e=Uy(e),t=Uy(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Ec=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},$t=[],yr=0,Xm=0;function Pc(){for(var e=yr,t=Xm=yr=0;t<e;){var n=$t[t];$t[t++]=null;var a=$t[t];$t[t++]=null;var o=$t[t];$t[t++]=null;var r=$t[t];if($t[t++]=null,a!==null&&o!==null){var i=a.pending;i===null?o.next=o:(o.next=i.next,i.next=o),a.pending=o}r!==0&&Y1(n,o,r)}}function Wc(e,t,n,a){$t[yr++]=e,$t[yr++]=t,$t[yr++]=n,$t[yr++]=a,Xm|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Zm(e,t,n,a){return Wc(e,t,n,a),_c(e)}function Oo(e,t){return Wc(e,null,null,t),_c(e)}function Y1(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(o=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,o&&t!==null&&(o=31-Lt(n),e=r.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),r):null}function _c(e){if(50<Ji)throw Ji=0,dc=null,Error(V(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vr={};function qz(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,a){return new qz(e,t,n,a)}function $m(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=Et(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&1206910976,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.refCleanup=e.refCleanup,n}function k1(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ac(e,t,n,a,o,r){var i=0;if(a=e,typeof a=="function")$m(a)&&(i=1);else if(typeof a=="string")i=m4(e,n,Tn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Td:return e=Et(31,n,t,o),e.elementType=Td,e.lanes=r,e;case fr:return po(n.children,o,r,t);case a1:i=8,o|=24;break;case Ed:return e=Et(12,n,t,o|2),e.elementType=Ed,e.lanes=r,e;case _d:return e=Et(13,n,t,o),e.elementType=_d,e.lanes=r,e;case Nd:return e=Et(19,n,t,o),e.elementType=Nd,e.lanes=r,e;case MM:case Cd:return e=o|32,e=Et(30,n,t,e),e.elementType=Cd,e.lanes=r,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case wn:i=10;break e;case o1:i=9;break e;case Dm:i=11;break e;case Rm:i=14;break e;case ya:i=16,a=null;break e}i=29,n=Error(V(130,e===null?"null":typeof e,"")),a=null}return t=Et(i,n,t,o),t.elementType=e,t.type=a,t.lanes=r,t}function po(e,t,n,a){return e=Et(7,e,a,t),e.lanes=n,e}function nd(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function q1(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function ad(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yy=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var n=Yy.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yy(t)},Yy.set(e,t),t)}return{value:e,source:t,stack:yy(t)}}var br=[],xr=0,Nc=null,tl=0,It=[],Qt=0,La=null,_n=1,Nn="";function In(e,t){br[xr++]=tl,br[xr++]=Nc,Nc=e,tl=t}function G1(e,t,n){It[Qt++]=_n,It[Qt++]=Nn,It[Qt++]=La,La=e;var a=_n;e=Nn;var o=32-Lt(a)-1;a&=~(1<<o),n+=1;var r=32-Lt(t)+o;if(30<r){var i=o-o%5;r=(a&(1<<i)-1).toString(32),a>>=i,o-=i,_n=1<<32-Lt(t)+o|n<<o|a,Nn=r+e}else _n=1<<r|n<<o|a,Nn=e}function es(e){e.return!==null&&(In(e,1),G1(e,1,0))}function Im(e){for(;e===Nc;)Nc=br[--xr],br[xr]=null,tl=br[--xr],br[xr]=null;for(;e===La;)La=It[--Qt],It[Qt]=null,Nn=It[--Qt],It[Qt]=null,_n=It[--Qt],It[Qt]=null}function X1(e,t){It[Qt++]=_n,It[Qt++]=Nn,It[Qt++]=La,_n=t.id,Nn=t.overflow,La=e}var Ke=null,Ne=null,oe=!1,Ca=null,Jt=!1,kd=Error(V(519));function Va(e){var t=Error(V(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nl(Kt(t,e)),kd}function ky(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[et]=e,t[Tt]=a,n){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(n=0;n<il.length;n++)le(il[n],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),b1(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),S1(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Nx(t.textContent,n)?(a.popover!=null&&(le("beforetoggle",t),le("toggle",t)),a.onScroll!=null&&le("scroll",t),a.onScrollEnd!=null&&le("scrollend",t),a.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||Va(e,!0)}function Tc(e){for(Ke=e.return;Ke;)switch(Ke.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:Ke=Ke.return}}function rr(e){if(e!==Ke)return!1;if(!oe)return Tc(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||_m(e.type,e.memoizedProps)),n=!n),n&&Ne&&Va(e),Tc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));Ne=Lv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));Ne=Lv(e)}else t===27?(t=Ne,Ga(e.type)?(e=Mm,Mm=null,Ne=e):Ne=t):Ne=Ke?Ft(e.stateNode.nextSibling):null;return!0}function xo(){Ne=Ke=null,oe=!1}function od(){var e=Ca;return e!==null&&(St===null?St=e:St.push.apply(St,e),Ca=null),e}function nl(e){Ca===null?Ca=[e]:Ca.push(e)}var qd=zn(null),Do=null,Qn=null;function wa(e,t,n){Te(qd,t._currentValue),t._currentValue=n}function Kn(e){e._currentValue=qd.current,nt(qd)}function oc(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Gd(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var r=o.dependencies;if(r!==null){var i=o.child;r=r.firstContext;e:for(;r!==null;){var l=r;r=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),oc(r.return,n,e),a||(i=null);break e}r=l.next}}else if(o.tag===18){if(i=o.return,i===null)throw Error(V(341));i.lanes|=n,r=i.alternate,r!==null&&(r.lanes|=n),oc(i,n,e),i=null}else o.tag===13&&o.memoizedState!==null&&o.memoizedState.dehydrated===null?(o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),oc(o.return,n,e),i=o.child,i=i!==null?i.sibling:null):i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===e){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}}function So(e,t,n,a){e=null;for(var o=t,r=!1;o!==null;){if(!r){if((o.flags&524288)!==0)r=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var i=o.alternate;if(i===null)throw Error(V(387));if(i=i.memoizedProps,i!==null){var l=o.type;Ut(o.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(o===vc.current){if(i=o.alternate,i===null)throw Error(V(387));i.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Gr):e=[Gr])}o=o.return}return e!==null&&Gd(t,e,n,a),t.flags|=262144,e!==null}function Cc(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wo(e){Do=e,Qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return Z1(Do,e)}function ku(e,t){return Do===null&&wo(e),Z1(e,t)}function Z1(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qn===null){if(e===null)throw Error(V(308));Qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qn=Qn.next=t;return n}var Gz=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Xz=Ze.unstable_scheduleCallback,Zz=Ze.unstable_NormalPriority,ke={$$typeof:wn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qm(){return{controller:new Gz,data:new Map,refCount:0}}function bl(e){e.refCount--,e.refCount===0&&Xz(Zz,function(){e.controller.abort()})}function qy(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Li=null;function $z(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var qi=null,Xd=0,Eo=0,Nr=null;function Iz(e,t){if(qi===null){var n=qi=[];Xd=0,Eo=Sh(),Nr={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Xd++,t.then(Gy,Gy),t}function Gy(){if(--Xd===0&&(Li=null,qi!==null)){Nr!==null&&(Nr.status="fulfilled");var e=qi;qi=null,Eo=0,Nr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qz(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Xy=F.S;F.S=function(e,t){if(ux=Ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Iz(e,t),Li!==null)for(var n=Yr;n!==null;)qy(n,Li),n=n.next;if(n=e.types,n!==null){for(var a=Yr;a!==null;)qy(a,n),a=a.next;if(Eo!==0){a=Li,a===null&&(a=Li=[]);for(var o=0;o<n.length;o++){var r=n[o];a.indexOf(r)===-1&&a.push(r)}}}Xy!==null&&Xy(e,t)};var yo=zn(null);function jm(){var e=yo.current;return e!==null?e:Se.pooledCache}function rc(e,t){t===null?Te(yo,yo.current):Te(yo,t.pool)}function $1(){var e=jm();return e===null?null:{parent:ke._currentValue,pool:e}}var Qr=Error(V(460)),Km=Error(V(474)),ts=Error(V(542)),Mc={then:function(){}};function Zy(e){return e=e.status,e==="fulfilled"||e==="rejected"}function I1(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Iy(e),e===void 0&&!("reason"in t)?Error(V(600)):e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=Se,e!==null&&100<e.shellSuspendCounter)throw Error(V(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Iy(e),e}throw vo=t,Qr}}function so(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vo=n,Qr):n}}var vo=null;function $y(){if(vo===null)throw Error(V(459));var e=vo;return vo=null,e}function Iy(e){if(e===Qr||e===ts)throw Error(V(483))}var Tr=null,al=0;function qu(e){var t=al;return al+=1,Tr===null&&(Tr=[]),I1(Tr,e,t)}function ha(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gu(e,t){throw t.$$typeof===CM?Error(V(525)):(e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Q1(e){function t(g,p){if(e){var m=g.deletions;m===null?(g.deletions=[p],g.flags|=16):m.push(p)}}function n(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function a(g){for(var p=new Map;g!==null;)g.key===null?p.set(g.index,g):p.set(g.key,g),g=g.sibling;return p}function o(g,p){return g=jn(g,p),g.index=0,g.sibling=null,g}function r(g,p,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<p?(g.flags|=2,p):m):(g.flags|=134217730,p)):(g.flags|=1048576,p)}function i(g){return e&&g.alternate===null&&(g.flags|=134217730),g}function l(g,p,m,v){return p===null||p.tag!==6?(p=nd(m,g.mode,v),p.return=g,p):(p=o(p,m),p.return=g,p)}function u(g,p,m,v){var b=m.type;return b===fr?(g=f(g,p,m.props.children,v,m.key),ha(g,m),g):p!==null&&(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ya&&so(b)===p.type)?(p=o(p,m.props),ha(p,m),p.return=g,p):(p=ac(m.type,m.key,m.props,null,g.mode,v),ha(p,m),p.return=g,p)}function c(g,p,m,v){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=ad(m,g.mode,v),p.return=g,p):(p=o(p,m.children||[]),p.return=g,p)}function f(g,p,m,v,b){return p===null||p.tag!==7?(p=po(m,g.mode,v,b),p.return=g,p):(p=o(p,m),p.return=g,p)}function d(g,p,m){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=nd(""+p,g.mode,m),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Du:return m=ac(p.type,p.key,p.props,null,g.mode,m),ha(m,p),m.return=g,m;case Ri:return p=ad(p,g.mode,m),p.return=g,p;case ya:return p=so(p),d(g,p,m)}if(Hi(p)||Ci(p))return p=po(p,g.mode,m,null),p.return=g,p;if(typeof p.then=="function")return d(g,qu(p),m);if(p.$$typeof===wn)return d(g,ku(g,p),m);Gu(g,p)}return null}function s(g,p,m,v){var b=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return b!==null?null:l(g,p,""+m,v);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Du:return m.key===b?u(g,p,m,v):null;case Ri:return m.key===b?c(g,p,m,v):null;case ya:return m=so(m),s(g,p,m,v)}if(Hi(m)||Ci(m))return b!==null?null:f(g,p,m,v,null);if(typeof m.then=="function")return s(g,p,qu(m),v);if(m.$$typeof===wn)return s(g,p,ku(g,m),v);Gu(g,m)}return null}function h(g,p,m,v,b){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(m)||null,l(p,g,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Du:return g=g.get(v.key===null?m:v.key)||null,u(p,g,v,b);case Ri:return g=g.get(v.key===null?m:v.key)||null,c(p,g,v,b);case ya:return v=so(v),h(g,p,m,v,b)}if(Hi(v)||Ci(v))return g=g.get(m)||null,f(p,g,v,b,null);if(typeof v.then=="function")return h(g,p,m,qu(v),b);if(v.$$typeof===wn)return h(g,p,m,ku(p,v),b);Gu(p,v)}return null}function y(g,p,m,v){for(var b=null,E=null,N=p,_=p=0,T=null;N!==null&&_<m.length;_++){N.index>_?(T=N,N=null):T=N.sibling;var D=s(g,N,m[_],v);if(D===null){N===null&&(N=T);break}e&&N&&D.alternate===null&&t(g,N),p=r(D,p,_),E===null?b=D:E.sibling=D,E=D,N=T}if(_===m.length)return n(g,N),oe&&In(g,_),b;if(N===null){for(;_<m.length;_++)N=d(g,m[_],v),N!==null&&(p=r(N,p,_),E===null?b=N:E.sibling=N,E=N);return oe&&In(g,_),b}for(N=a(N);_<m.length;_++)T=h(N,g,_,m[_],v),T!==null&&(e&&(D=T.alternate,D!==null&&N.delete(D.key===null?_:D.key)),p=r(T,p,_),E===null?b=T:E.sibling=T,E=T);return e&&N.forEach(function(L){return t(g,L)}),oe&&In(g,_),b}function x(g,p,m,v){if(m==null)throw Error(V(151));for(var b=null,E=null,N=p,_=p=0,T=null,D=m.next();N!==null&&!D.done;_++,D=m.next()){N.index>_?(T=N,N=null):T=N.sibling;var L=s(g,N,D.value,v);if(L===null){N===null&&(N=T);break}e&&N&&L.alternate===null&&t(g,N),p=r(L,p,_),E===null?b=L:E.sibling=L,E=L,N=T}if(D.done)return n(g,N),oe&&In(g,_),b;if(N===null){for(;!D.done;_++,D=m.next())D=d(g,D.value,v),D!==null&&(p=r(D,p,_),E===null?b=D:E.sibling=D,E=D);return oe&&In(g,_),b}for(N=a(N);!D.done;_++,D=m.next())D=h(N,g,_,D.value,v),D!==null&&(e&&(T=D.alternate,T!==null&&N.delete(T.key===null?_:T.key)),p=r(D,p,_),E===null?b=D:E.sibling=D,E=D);return e&&N.forEach(function(k){return t(g,k)}),oe&&In(g,_),b}function S(g,p,m,v){if(typeof m=="object"&&m!==null&&m.type===fr&&m.key===null&&m.props.ref===void 0&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Du:e:{for(var b=m.key;p!==null;){if(p.key===b){if(b=m.type,b===fr){if(p.tag===7){n(g,p.sibling),v=o(p,m.props.children),ha(v,m),v.return=g,g=v;break e}}else if(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ya&&so(b)===p.type){n(g,p.sibling),v=o(p,m.props),ha(v,m),v.return=g,g=v;break e}n(g,p);break}else t(g,p);p=p.sibling}m.type===fr?(v=po(m.props.children,g.mode,v,m.key),ha(v,m),v.return=g,g=v):(v=ac(m.type,m.key,m.props,null,g.mode,v),ha(v,m),v.return=g,g=v)}return i(g);case Ri:e:{for(b=m.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),v=o(p,m.children||[]),v.return=g,g=v;break e}else{n(g,p);break}else t(g,p);p=p.sibling}v=ad(m,g.mode,v),v.return=g,g=v}return i(g);case ya:return m=so(m),S(g,p,m,v)}if(Hi(m))return y(g,p,m,v);if(Ci(m)){if(b=Ci(m),typeof b!="function")throw Error(V(150));return m=b.call(m),x(g,p,m,v)}if(typeof m.then=="function")return S(g,p,qu(m),v);if(m.$$typeof===wn)return S(g,p,ku(g,m),v);Gu(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),v=o(p,m),v.return=g,g=v):(n(g,p),v=nd(m,g.mode,v),v.return=g,g=v),i(g)):n(g,p)}return function(g,p,m,v){try{al=0;var b=S(g,p,m,v);return Tr=null,b}catch(N){if(N===Qr||N===ts)throw N;var E=Et(29,N,null,g.mode);return E.lanes=v,E.return=g,E}}}var _o=Q1(!0),j1=Q1(!1),va=!1;function Jm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=_c(e),Y1(e,null,n),t}return Wc(e,a,t,n),_c(e)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,f1(e,n)}}function rd(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?o=r=i:r=r.next=i,n=n.next}while(n!==null);r===null?o=r=t:r=r.next=t}else o=r=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var $d=!1;function Xi(){if($d){var e=Nr;if(e!==null)throw e}}function Zi(e,t,n,a){$d=!1;var o=e.updateQueue;va=!1;var r=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var u=l,c=u.next;u.next=null,i===null?r=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=u))}if(r!==null){var d=o.baseState;i=0,f=c=u=null,l=r;do{var s=l.lane&-536870913,h=s!==l.lane;if(h?(se&s)===s:(a&s)===s){s!==0&&s===Eo&&($d=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var y=e,x=l;s=t;var S=n;switch(x.tag){case 1:if(y=x.payload,typeof y=="function"){d=y.call(S,d,s);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,s=typeof y=="function"?y.call(S,d,s):y,s==null)break e;d=we({},d,s);break e;case 2:va=!0}}s=l.callback,s!==null&&(e.flags|=64,h&&(e.flags|=8192),h=o.callbacks,h===null?o.callbacks=[s]:h.push(s))}else h={lane:s,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=h,u=d):f=f.next=h,i|=s;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);f===null&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,r===null&&(o.shared.lanes=0),ka|=i,e.lanes=i,e.memoizedState=d}}function K1(e,t){if(typeof e!="function")throw Error(V(191,e));e.call(t)}function J1(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)K1(n[e],t)}var Ua=zn(null),zc=zn(0);function Qy(e,t){e=ta,Te(zc,e),Te(Ua,t),ta=e|t.baseLanes}function Id(){Te(zc,ta),Te(Ua,Ua.current)}function Fm(){ta=zc.current,nt(Ua),nt(zc)}var rt=zn(null),ct=null;function Aa(e){var t=e.alternate;Te(at,at.current&1),Te(rt,e),ct===null&&(t===null||Ua.current!==null||t.memoizedState!==null)&&(ct=e)}function Qd(e){Te(at,at.current),Te(rt,e),ct===null&&(ct=e)}function F1(e){e.tag===22?(Te(at,at.current),Te(rt,e),ct===null&&(ct=e)):Oa()}function Oa(){Te(at,at.current),Te(rt,rt.current)}function Ot(e){nt(rt),ct===e&&(ct=null),nt(at)}var at=zn(0);function ol(e,t){Te(rt,rt.current),Te(at,t)}function Pm(e){nt(at),nt(rt),ct===e&&(ct=null)}function Ac(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Cm(n)||Nh(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)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 Pn=0,ne=null,xe=null,Ye=null,Oc=!1,Cr=!1,No=!1,Dc=0,rl=0,Mr=null,jz=0;function Re(){throw Error(V(321))}function Wm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ut(e[n],t[n]))return!1;return!0}function eh(e,t,n,a,o,r){return Pn=r,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?Mb:zb,No=!1,r=n(a,o),No=!1,Cr&&(r=W1(t,n,a,o)),P1(e),r}function P1(e){F.H=Rc;var t=xe!==null&&xe.next!==null;if(Pn=0,Ye=xe=ne=null,Oc=!1,rl=0,Mr=null,t)throw Error(V(300));e===null||qe||(e=e.dependencies,e!==null&&Cc(e)&&(qe=!0))}function W1(e,t,n,a){ne=e;var o=0;do{if(Cr&&(Mr=null),rl=0,Cr=!1,25<=o)throw Error(V(301));if(o+=1,Ye=xe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}F.H=n5,r=t(n,a)}while(Cr);return r}function Kz(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?xl(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(ne.flags|=1024),t}function th(){var e=Dc!==0;return Dc=0,e}function nh(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ah(e){if(Oc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Oc=!1}Pn=0,Ye=xe=ne=null,Cr=!1,rl=Dc=0,Mr=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?ne.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Ve(){if(xe===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Ye===null?ne.memoizedState:Ye.next;if(t!==null)Ye=t,xe=e;else{if(e===null)throw ne.alternate===null?Error(V(467)):Error(V(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Ye===null?ne.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xl(e){var t=rl;return rl+=1,Mr===null&&(Mr=[]),e=I1(Mr,e,t),t=ne,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?Mb:zb),e}function as(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xl(e);if(e.$$typeof===AM)return;if(e.$$typeof===wn)return tt(e)}throw Error(V(438,String(e)))}function oh(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ne.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ns(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=zM;return t.index++,n}function Wn(e,t){return typeof t=="function"?t(e):t}function ic(e){var t=Ve();return rh(t,xe,e)}function rh(e,t,n){var a=e.queue;if(a===null)throw Error(V(311));a.lastRenderedReducer=n;var o=e.baseQueue,r=a.pending;if(r!==null){if(o!==null){var i=o.next;o.next=r.next,r.next=i}t.baseQueue=o=r,a.pending=null}if(r=e.baseState,o===null)e.memoizedState=r;else{t=o.next;var l=i=null,u=null,c=t,f=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(se&d)===d:(Pn&d)===d){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Eo&&(f=!0);else if((Pn&s)===s){c=c.next,s===Eo&&(f=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=d,i=r):u=u.next=d,ne.lanes|=s,ka|=s;d=c.action,No&&n(r,d),r=c.hasEagerState?c.eagerState:n(r,d)}else s={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=s,i=r):u=u.next=s,ne.lanes|=d,ka|=d;c=c.next}while(c!==null&&c!==t);if(u===null?i=r:u.next=l,!Ut(r,e.memoizedState)&&(qe=!0,f&&(n=Nr,n!==null)))throw n;e.memoizedState=r,e.baseState=i,e.baseQueue=u,a.lastRenderedState=r}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function id(e){var t=Ve(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,r=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do r=e(r,i.action),i=i.next;while(i!==o);Ut(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function eb(e,t,n){var a=ne,o=Ve(),r=oe;if(r){if(n===void 0)throw Error(V(407));n=n()}else n=t();var i=!Ut((xe||o).memoizedState,n);if(i&&(o.memoizedState=n,qe=!0),o=o.queue,ih(ab.bind(null,a,o,e),[e]),e=o.getSnapshot!==t||i||Ye!==null&&(Ye.memoizedState.tag&1)!==0,Br(e?9:8,{destroy:void 0},nb.bind(null,a,o,n,t),null),e){if(a.flags|=2048,Se===null)throw Error(V(349));r||(Pn&127)!==0||tb(a,t,n)}return n}function tb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=ns(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nb(e,t,n,a){t.value=n,t.getSnapshot=a,ob(t)&&rb(e)}function ab(e,t,n){return n(function(){ob(t)&&rb(e)})}function ob(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ut(e,n)}catch{return!0}}function rb(e){var t=Oo(e,2);t!==null&&_t(t,e,2)}function jd(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),No){xa(!0);try{n()}finally{xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function ib(e,t,n,a){return e.baseState=n,rh(e,xe,typeof a=="function"?a:Wn)}function Jz(e,t,n,a,o){if(rs(e))throw Error(V(485));if(e=t.action,e!==null){var r={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){r.listeners.push(i)}};F.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,lb(t,r)):(r.next=n.next,t.pending=n.next=r)}}function lb(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var r=F.T,i={};i.types=r!==null?r.types:null,F.T=i;try{var l=n(o,a),u=F.S;u!==null&&u(i,l),jy(e,t,l)}catch(c){Kd(e,t,c)}finally{r!==null&&i.types!==null&&(r.types=i.types),F.T=r}}else try{r=n(o,a),jy(e,t,r)}catch(c){Kd(e,t,c)}}function jy(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Ky(e,t,a)},function(a){return Kd(e,t,a)}):Ky(e,t,n)}function Ky(e,t,n){t.status="fulfilled",t.value=n,ub(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,lb(e,n)))}function Kd(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ub(t),t=t.next;while(t!==a)}e.action=null}function ub(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cb(e,t){return t}function Jy(e,t){if(oe){var n=Se.formState;if(n!==null){e:{var a=ne;if(oe){if(Ne){t:{for(var o=Ne,r=Jt;o.nodeType!==8;){if(!r){o=null;break t}if(o=Ft(o.nextSibling),o===null){o=null;break t}}r=o.data,o=r==="F!"||r==="F"?o:null}if(o){Ne=Ft(o.nextSibling),a=o.data==="F!";break e}}Va(a)}a=!1}a&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cb,lastRenderedState:t},n.queue=a,n=Nb.bind(null,ne,a),a.dispatch=n,a=jd(!1),r=sh.bind(null,ne,!1,a.queue),a=mt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Jz.bind(null,ne,o,r,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function Fy(e){var t=Ve();return sb(t,xe,e)}function sb(e,t,n){if(t=rh(e,t,cb)[0],e=ic(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=xl(t)}catch(i){throw i===Qr?ts:i}else a=t;t=Ve();var o=t.queue,r=o.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,Br(9,{destroy:void 0},Fz.bind(null,o,n),null)),[a,r,e]}function Fz(e,t){e.action=t}function Py(e){var t=Ve(),n=xe;if(n!==null)return sb(t,n,e);Ve(),t=t.memoizedState,n=Ve();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Br(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=ns(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function fb(){return Ve().memoizedState}function lc(e,t,n,a){var o=mt();ne.flags|=e,o.memoizedState=Br(1|t,{destroy:void 0},n,a===void 0?null:a)}function os(e,t,n,a){var o=Ve();a=a===void 0?null:a;var r=o.memoizedState.inst;xe!==null&&a!==null&&Wm(a,xe.memoizedState.deps)?o.memoizedState=Br(t,r,n,a):(ne.flags|=e,o.memoizedState=Br(1|t,r,n,a))}function Wy(e,t){lc(8390656,8,e,t)}function ih(e,t){os(2048,8,e,t)}function Pz(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=ns(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function db(e){var t=Ve().memoizedState;return Pz({ref:t,nextImpl:e}),function(){if((me&2)!==0)throw Error(V(440));return t.impl.apply(void 0,arguments)}}function mb(e,t){return os(4,2,e,t)}function hb(e,t){return os(4,4,e,t)}function gb(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pb(e,t,n){n=n!=null?n.concat([e]):null,os(4,4,gb.bind(null,t,e),n)}function lh(){}function yb(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wm(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function vb(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wm(t,a[1]))return a[0];if(a=e(),No){xa(!0);try{e()}finally{xa(!1)}}return n.memoizedState=[a,t],a}function uh(e,t,n){return n===void 0||(Pn&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=sx(),ne.lanes|=e,ka|=e,n)}function bb(e,t,n,a){return Ut(n,t)?n:Ua.current!==null?(e=uh(e,n,a),Ut(e,t)||(qe=!0),e):(Pn&106)===0||(Pn&1073741824)!==0&&(se&261930)===0?(qe=!0,e.memoizedState=n):(e=sx(),ne.lanes|=e,ka|=e,t)}function xb(e,t,n,a,o){var r=he.p;he.p=r!==0&&8>r?r:8;var i=F.T,l={};l.types=i!==null?i.types:null,F.T=l,sh(e,!1,t,n);try{var u=o(),c=F.S;if(c!==null&&c(l,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=Qz(u,a);$i(e,t,f,Vt(e))}else $i(e,t,a,Vt(e))}catch(d){$i(e,t,{then:function(){},status:"rejected",reason:d},Vt())}finally{he.p=r,i!==null&&l.types!==null&&(i.types=l.types),F.T=i}}function Wz(){}function Jd(e,t,n,a){if(e.tag!==5)throw Error(V(476));var o=Sb(e).queue;xb(e,o,t,go,n===null?Wz:function(){return wb(e),n(a)})}function Sb(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:go,baseState:go,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:go},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wb(e){var t=Sb(e);t.next===null&&(t=e.alternate.memoizedState),$i(e,t.next.queue,{},Vt())}function ch(){return tt(Gr)}function Eb(){return Ve().memoizedState}function _b(){return Ve().memoizedState}function e5(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Vt();e=Ma(n);var a=za(t,e,n);a!==null&&(_t(a,t,n),Gi(a,t,n)),t={cache:Qm()},e.payload=t;return}t=t.return}}function t5(e,t,n){var a=Vt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?Tb(t,n):(n=Zm(e,t,n,a),n!==null&&(_t(n,e,a),Cb(n,t,a)))}function Nb(e,t,n){var a=Vt();$i(e,t,n,a)}function $i(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))Tb(t,o);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var i=t.lastRenderedState,l=r(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ut(l,i))return Wc(e,t,o,0),Se===null&&Pc(),!1}catch{}if(n=Zm(e,t,o,a),n!==null)return _t(n,e,a),Cb(n,t,a),!0}return!1}function sh(e,t,n,a){if(a={lane:2,revertLane:Sh(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},rs(e)){if(t)throw Error(V(479))}else t=Zm(e,n,a,2),t!==null&&_t(t,e,2)}function rs(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function Tb(e,t){Cr=Oc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cb(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,f1(e,n)}}var Rc={readContext:tt,use:as,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re,useEffectEvent:Re},Mb={readContext:tt,use:as,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Wy,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,lc(4194308,4,gb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lc(4194308,4,e,t)},useInsertionEffect:function(e,t){lc(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var a=e();if(No){xa(!0);try{e()}finally{xa(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=mt();if(n!==void 0){var o=n(t);if(No){xa(!0);try{n(t)}finally{xa(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=t5.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=jd(e);var t=e.queue,n=Nb.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:lh,useDeferredValue:function(e,t){var n=mt();return uh(n,e,t)},useTransition:function(){var e=jd(!1);return e=xb.bind(null,ne,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ne,o=mt();if(oe){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),Se===null)throw Error(V(349));(se&127)!==0||tb(a,t,n)}o.memoizedState=n;var r={value:n,getSnapshot:t};return o.queue=r,Wy(ab.bind(null,a,r,e),[e]),a.flags|=2048,Br(9,{destroy:void 0},nb.bind(null,a,r,n,t),null),n},useId:function(){var e=mt(),t=Se.identifierPrefix;if(oe){var n=Nn,a=_n;n=(a&~(1<<32-Lt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Dc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=jz++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ch,useFormState:Jy,useActionState:Jy,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=sh.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:oh,useCacheRefresh:function(){return mt().memoizedState=e5.bind(null,ne)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((me&2)!==0)throw Error(V(440));return n.impl.apply(void 0,arguments)}}},zb={readContext:tt,use:as,useCallback:yb,useContext:tt,useEffect:ih,useImperativeHandle:pb,useInsertionEffect:mb,useLayoutEffect:hb,useMemo:vb,useReducer:ic,useRef:fb,useState:function(){return ic(Wn)},useDebugValue:lh,useDeferredValue:function(e,t){var n=Ve();return bb(n,xe.memoizedState,e,t)},useTransition:function(){var e=ic(Wn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:eb,useId:Eb,useHostTransitionStatus:ch,useFormState:Fy,useActionState:Fy,useOptimistic:function(e,t){var n=Ve();return ib(n,xe,e,t)},useMemoCache:oh,useCacheRefresh:_b,useEffectEvent:db},n5={readContext:tt,use:as,useCallback:yb,useContext:tt,useEffect:ih,useImperativeHandle:pb,useInsertionEffect:mb,useLayoutEffect:hb,useMemo:vb,useReducer:id,useRef:fb,useState:function(){return id(Wn)},useDebugValue:lh,useDeferredValue:function(e,t){var n=Ve();return xe===null?uh(n,e,t):bb(n,xe.memoizedState,e,t)},useTransition:function(){var e=id(Wn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:eb,useId:Eb,useHostTransitionStatus:ch,useFormState:Py,useActionState:Py,useOptimistic:function(e,t){var n=Ve();return xe!==null?ib(n,xe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:oh,useCacheRefresh:_b,useEffectEvent:db};function ld(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fd={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Vt(),o=Ma(a);o.payload=t,n!=null&&(o.callback=n),t=za(e,o,a),t!==null&&(_t(t,e,a),Gi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Vt(),o=Ma(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=za(e,o,a),t!==null&&(_t(t,e,a),Gi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vt(),a=Ma(n);a.tag=2,t!=null&&(a.callback=t),t=za(e,a,n),t!==null&&(_t(t,e,n),Gi(t,e,n))}};function ev(e,t,n,a,o,r,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,i):t.prototype&&t.prototype.isPureReactComponent?!el(n,a)||!el(o,r):!0}function tv(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Fd.enqueueReplaceState(t,t.state,null)}function To(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=we({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Ab(e){Ec(e)}function Ob(e){console.error(e)}function Db(e){Ec(e)}function Hc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function nv(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Pd(e,t,n){return n=Ma(n),n.tag=3,n.payload={element:null},n.callback=function(){Hc(e,t)},n}function Rb(e){return e=Ma(e),e.tag=3,e}function Hb(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var r=a.value;e.payload=function(){return o(r)},e.callback=function(){nv(t,n,a)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){nv(t,n,a),typeof o!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var l=a.stack;this.componentDidCatch(a.value,{componentStack:l!==null?l:""})})}function a5(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&So(t,n,o,!0),n=rt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ct===null?Gc():n.alternate===null&&He===0&&(He=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Mc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),hd(e,a,o)),!1;case 22:return n.flags|=65536,a===Mc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),hd(e,a,o)),!1}throw Error(V(435,n.tag))}return hd(e,a,o),Gc(),!1}if(oe)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==kd&&(e=Error(V(422),{cause:a}),nl(Kt(e,n)))):(a!==kd&&(t=Error(V(423),{cause:a}),nl(Kt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Kt(a,n),o=Pd(e.stateNode,a,o),rd(e,o),He!==4&&(He=2)),!1;var r=Error(V(520),{cause:a});if(r=Kt(r,n),Ki===null?Ki=[r]:Ki.push(r),He!==4&&(He=2),t===null)return!0;a=Kt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Pd(n.stateNode,a,e),rd(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Da===null||!Da.has(r))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Rb(o),Hb(o,e,n,a),rd(n,o),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var fh=Error(V(461)),qe=!1;function Ge(e,t,n,a){t.child=e===null?j1(t,null,n,a):_o(t,e.child,n,a)}function av(e,t,n,a,o){n=n.render;var r=t.ref;if("ref"in a){var i={};for(var l in a)l!=="ref"&&(i[l]=a[l])}else i=a;return wo(t),a=eh(e,t,n,i,r,o),l=th(),e!==null&&!qe?(nh(e,t,o),ea(e,t,o)):(oe&&l&&es(t),t.flags|=1,Ge(e,t,a,o),t.child)}function ov(e,t,n,a,o){if(e===null){var r=n.type;return typeof r=="function"&&!$m(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,Bb(e,t,r,a,o)):(e=ac(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!mh(e,o)){var i=r.memoizedProps;if(n=n.compare,n=n!==null?n:el,n(i,a)&&e.ref===t.ref)return ea(e,t,o)}return t.flags|=1,e=jn(r,a),e.ref=t.ref,e.return=t,t.child=e}function Bb(e,t,n,a,o){if(e!==null){var r=e.memoizedProps;if(el(r,a)&&e.ref===t.ref)if(qe=!1,t.pendingProps=a=r,mh(e,o))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,ea(e,t,o)}return Wd(e,t,n,a,o)}function Lb(e,t,n,a){var o=a.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~r}else a=0,t.child=null;return rv(e,t,r,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rc(t,r!==null?r.cachePool:null),r!==null?Qy(t,r):Id(),F1(t);else return a=t.lanes=536870912,rv(e,t,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(rc(t,r.cachePool),Qy(t,r),Oa(),t.memoizedState=null):(e!==null&&rc(t,null),Id(),Oa());return Ge(e,t,o,n),t.child}function Ii(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rv(e,t,n,a,o){var r=jm();return r=r===null?null:{parent:ke._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&rc(t,null),Id(),F1(t),e!==null&&So(e,t,a,!0),t.childLanes=o,null}function uc(e,t){return t=is({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function iv(e,t,n){return _o(t,e.child,null,n),e=uc(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function o5(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=uc(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ii(null,e);if(Qd(t),(e=Ne)?(e=Lx(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:_n,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=q1(e),n.return=t,t.child=n,Ke=t,Ne=null)):e=null,e===null)throw Va(t);return t.lanes=536870912,null}return uc(t,a)}var r=e.memoizedState;if(r!==null){var i=r.dehydrated;if(Qd(t),o)if(t.flags&256)t.flags&=-257,t=iv(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(V(558));else if(qe||So(e,t,n,!1),o=(n&e.childLanes)!==0,qe||o){if(Ua.current===null){if(a=Se,a!==null&&(i=d1(a,n),i!==0&&i!==r.retryLane))throw r.retryLane=i,Oo(e,i),_t(a,e,i),fh;Gc()}t=iv(e,t,n)}else e=r.treeContext,Ne=Ft(i.nextSibling),Ke=t,oe=!0,Ca=null,Jt=!1,e!==null&&X1(t,e),t=uc(t,a),t.flags|=134221824;return t}return e=jn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(V(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wd(e,t,n,a,o){return wo(t),n=eh(e,t,n,a,void 0,o),a=th(),e!==null&&!qe?(nh(e,t,o),ea(e,t,o)):(oe&&a&&es(t),t.flags|=1,Ge(e,t,n,o),t.child)}function lv(e,t,n,a,o,r){return wo(t),t.updateQueue=null,n=W1(t,a,n,o),P1(e),a=th(),e!==null&&!qe?(nh(e,t,r),ea(e,t,r)):(oe&&a&&es(t),t.flags|=1,Ge(e,t,n,r),t.child)}function uv(e,t,n,a,o){if(wo(t),t.stateNode===null){var r=vr,i=n.contextType;typeof i=="object"&&i!==null&&(r=tt(i)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Fd,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},Jm(t),i=n.contextType,r.context=typeof i=="object"&&i!==null?tt(i):vr,r.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(ld(t,n,i,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(i=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),i!==r.state&&Fd.enqueueReplaceState(r,r.state,null),Zi(t,a,r,o),Xi(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var l=t.memoizedProps,u=To(n,l);r.props=u;var c=r.context,f=n.contextType;i=vr,typeof f=="object"&&f!==null&&(i=tt(f));var d=n.getDerivedStateFromProps;f=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,f||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l||c!==i)&&tv(t,r,a,i),va=!1;var s=t.memoizedState;r.state=s,Zi(t,a,r,o),Xi(),c=t.memoizedState,l||s!==c||va?(typeof d=="function"&&(ld(t,n,d,a),c=t.memoizedState),(u=va||ev(t,n,u,a,s,c,i))?(f||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),r.props=a,r.state=c,r.context=i,a=u):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,Zd(e,t),i=t.memoizedProps,f=To(n,i),r.props=f,d=t.pendingProps,s=r.context,c=n.contextType,u=vr,typeof c=="object"&&c!==null&&(u=tt(c)),l=n.getDerivedStateFromProps,(c=typeof l=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(i!==d||s!==u)&&tv(t,r,a,u),va=!1,s=t.memoizedState,r.state=s,Zi(t,a,r,o),Xi();var h=t.memoizedState;i!==d||s!==h||va||e!==null&&e.dependencies!==null&&Cc(e.dependencies)?(typeof l=="function"&&(ld(t,n,l,a),h=t.memoizedState),(f=va||ev(t,n,f,a,s,h,u)||e!==null&&e.dependencies!==null&&Cc(e.dependencies))?(c||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,h,u),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,h,u)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),r.props=a,r.state=h,r.context=u,a=f):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,lr(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,n,o)):Ge(e,t,n,o),t.memoizedState=r.state,e=t.child):e=ea(e,t,o),e}function cv(e,t,n,a){return xo(),t.flags|=256,Ge(e,t,n,a),t.child}var em={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tm(e){return{baseLanes:e,cachePool:$1()}}function nm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function Vb(e,t,n){var a=t.pendingProps,o=!1,r=(t.flags&128)!==0,i;if((i=r)||(i=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),i&&(o=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(o?Aa(t):Oa(),(e=Ne)?(e=Lx(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:_n,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=q1(e),n.return=t,t.child=n,Ke=t,Ne=null)):e=null,e===null)throw Va(t);return Nh(e)?t.lanes=32:t.lanes=536870912,null}return r=a.children,a=a.fallback,o?(Oa(),o=t.mode,r=is({mode:"hidden",children:r},o),a=po(a,o,n,null),r.return=t,a.return=t,r.sibling=a,t.child=r,a=t.child,a.memoizedState=tm(n),a.childLanes=nm(e,i,n),t.memoizedState=em,Ii(null,a)):(Aa(t),dh(t,r))}var l=e.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return r5(e,t,r,i,a,u,l,n)}return o?(Oa(),o=a.fallback,r=t.mode,l=e.child,u=l.sibling,a=jn(l,{mode:"hidden",children:a.children}),a.subtreeFlags=l.subtreeFlags&1206910976,u!==null?o=jn(u,o):(o=po(o,r,n,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,Ii(null,a),a=t.child,o=e.child.memoizedState,o===null?o=tm(n):(r=o.cachePool,r!==null?(l=ke._currentValue,r=r.parent!==l?{parent:l,pool:l}:r):r=$1(),o={baseLanes:o.baseLanes|n,cachePool:r}),a.memoizedState=o,a.childLanes=nm(e,i,n),t.memoizedState=em,Ii(e.child,a)):(Aa(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function dh(e,t){return t=is({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function is(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function Xu(e,t,n){return _o(t,e.child,null,n),e=dh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function r5(e,t,n,a,o,r,i,l){if(n)return t.flags&256?(Aa(t),t.flags&=-257,Xu(e,t,l)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,null):(Oa(),r=o.fallback,i=t.mode,o=is({mode:"visible",children:o.children},i),r=po(r,i,l,null),r.flags|=2,o.return=t,r.return=t,o.sibling=r,t.child=o,_o(t,e.child,null,l),o=t.child,o.memoizedState=tm(l),o.childLanes=nm(e,a,l),t.memoizedState=em,Ii(null,o));if(Aa(t),Nh(r)){if(a=r.nextSibling&&r.nextSibling.dataset,a)var u=a.dgst;return a=u,a!==""&&(o=Error(V(419)),o.stack="",o.digest=a,nl({value:o,source:null,stack:null})),Xu(e,t,l)}if(qe||So(e,t,l,!1),a=(l&e.childLanes)!==0,qe||a){if(Ua.current!==null)return Xu(e,t,l);if(a=Se,a!==null&&(o=d1(a,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,Oo(e,o),_t(a,e,o),fh;return Cm(r)||Gc(),Xu(e,t,l)}return Cm(r)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,Ne=Ft(r.nextSibling),Ke=t,oe=!0,Ca=null,Jt=!1,e!==null&&X1(t,e),t=dh(t,o.children),t.flags|=134221824,t)}function sv(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),oc(e.return,t,n)}function fv(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ac(n)===null&&(t=e),e=e.sibling}return t}function Zu(e,t,n,a,o,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=o,i.treeForkCount=r)}function ud(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function am(e,t,n){var a=t.pendingProps,o=a.revealOrder,r=a.tail;a=a.children;var i=at.current;if(t.flags&128)return ol(t,i),null;var l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,ol(t,i),o==="backwards"&&e!==null?(ud(e),Ge(e,t,a,n),ud(e)):Ge(e,t,a,n),a=oe?tl:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sv(e,n,t);else if(e.tag===19)sv(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}switch(o){case"backwards":n=fv(t.child),n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null,ud(t)),Zu(t,!0,o,null,r,a);break;case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ac(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Zu(t,!0,n,null,r,a);break;case"together":Zu(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=fv(t.child),n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Zu(t,!1,o,n,r,a)}return t.child}function dv(e,t,n){var a=t.pendingProps;return wa(t,t.type,a.value),Ge(e,t,a.children,n),t.child}function ea(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(So(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Cc(e)))}function i5(e,t,n){switch(t.tag){case 3:bc(t,t.stateNode.containerInfo),wa(t,ke,e.memoizedState.cache),xo();break;case 27:case 5:Ad(t);break;case 4:bc(t,t.stateNode.containerInfo);break;case 10:wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qd(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Aa(t),t.flags|=128,null;a=So(e,t,n,!1);var o=t.child.childLanes;return a||(n&o)!==0?Vb(e,t,n):(Aa(t),e=ea(e,t,n),e!==null?e.sibling:null)}Aa(t);break;case 19:if(t.flags&128)return am(e,t,n);if(o=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(So(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return am(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ol(t,at.current),a)break;return null;case 22:return t.lanes=0,Lb(e,t,n,t.pendingProps);case 24:wa(t,ke,e.memoizedState.cache)}return ea(e,t,n)}function Ub(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!mh(e,n)&&(t.flags&128)===0)return qe=!1,i5(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,oe&&(t.flags&1048576)!==0&&G1(t,tl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=so(t.elementType),t.type=e,typeof e=="function")$m(e)?(a=To(e,a),t.tag=1,t=uv(null,t,e,a,n)):(t.tag=0,t=Wd(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===Dm){t.tag=11,t=av(null,t,e,a,n);break e}else if(o===Rm){t.tag=14,t=ov(null,t,e,a,n);break e}else if(o===wn){t.tag=10,t.type=e,t=dv(null,t,n);break e}}throw t=Md(e)||e,Error(V(306,t,""))}}return t;case 0:return Wd(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=To(a,t.pendingProps),uv(e,t,a,o,n);case 3:e:{if(bc(t,t.stateNode.containerInfo),e===null)throw Error(V(387));a=t.pendingProps;var r=t.memoizedState;o=r.element,Zd(e,t),Zi(t,a,null,n);var i=t.memoizedState;if(a=i.cache,wa(t,ke,a),a!==r.cache&&Gd(t,[ke],n,!0),Xi(),a=i.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=cv(e,t,a,n);break e}else if(a!==o){o=Kt(Error(V(424)),t),nl(o),t=cv(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ne=Ft(e.firstChild),Ke=t,oe=!0,Ca=null,Jt=!0,n=j1(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(xo(),a===o){t=ea(e,t,n);break e}Ge(e,t,a,n)}t=t.child}return t;case 26:return lr(e,t),e===null?(n=Yv(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=Cx(t.type,t.pendingProps,Ta.current,t)):t.memoizedState=Yv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ad(t),e===null&&oe&&(a=t.stateNode=Vx(t.type,t.pendingProps,Ta.current),Ke=t,Jt=!0,o=Ne,Ga(t.type)?(Mm=o,Ne=Ft(a.firstChild)):Ne=o),Ge(e,t,t.pendingProps.children,n),lr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((o=a=Ne)&&(a=P5(a,t.type,t.pendingProps,Jt),a!==null?(t.stateNode=a,Ke=t,Ne=Ft(a.firstChild),Jt=!1,o=!0):o=!1),o||Va(t)),Ad(t),o=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,a=r.children,_m(o,r)?a=null:i!==null&&_m(o,i)&&(t.flags|=32),t.memoizedState!==null&&(o=eh(e,t,Kz,null,null,n),Gr._currentValue=o),lr(e,t),Ge(e,t,a,n),t.child;case 6:return e===null&&oe&&((e=n=Ne)&&(n=W5(n,t.pendingProps,Jt),n!==null?(t.stateNode=n,Ke=t,Ne=null,e=!0):e=!1),e||Va(t)),null;case 13:return Vb(e,t,n);case 4:return bc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_o(t,null,a,n):Ge(e,t,a,n),t.child;case 11:return av(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,lr(e,t),Ge(e,t,a,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:return dv(e,t,n);case 9:return o=t.type._context,a=t.pendingProps.children,wo(t),o=tt(o),a=a(o),t.flags|=1,Ge(e,t,a,n),t.child;case 14:return ov(e,t,t.type,t.pendingProps,n);case 15:return Bb(e,t,t.type,t.pendingProps,n);case 19:return am(e,t,n);case 31:return o5(e,t,n);case 22:return Lb(e,t,n,t.pendingProps);case 24:return wo(t),a=tt(ke),e===null?(o=jm(),o===null&&(o=Se,r=Qm(),o.pooledCache=r,r.refCount++,r!==null&&(o.pooledCacheLanes|=n),o=r),t.memoizedState={parent:a,cache:o},Jm(t),wa(t,ke,o)):((e.lanes&n)!==0&&(Zd(e,t),Zi(t,null,null,n),Xi()),o=e.memoizedState,r=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),wa(t,ke,a)):(a=r.cache,wa(t,ke,a),a!==o.cache&&Gd(t,[ke],n,!0))),Ge(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&es(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:lr(e,t),Ge(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(V(156,t.tag))}function $n(e){e.flags|=4}function cd(e,t,n,a,o){var r;if((r=(e.mode&32)!==0)&&(r=n===null?Gv(t,a):Gv(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),r){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(mx())e.flags|=8192;else throw vo=Mc,Km}else e.flags&=-16777217}function mv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qx(t))if(mx())e.flags|=8192;else throw vo=Mc,Km}function $u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?c1():536870912,e.lanes|=t,Lr|=t)}function zi(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&1206910976,a|=o.flags&1206910976,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function l5(e,t,n){var a=t.pendingProps;switch(Im(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kn(ke),Dr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(rr(t)?$n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,od())),_e(t),null;case 26:var o=t.type,r=t.memoizedState;return e===null?($n(t),r!==null?(_e(t),mv(t,r)):(_e(t),cd(t,o,null,a,n))):r?r!==e.memoizedState?($n(t),_e(t),mv(t,r)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$n(t),_e(t),cd(t,o,e,a,n)),null;case 27:if(xc(t),n=Ta.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(V(166));return _e(t),t.subtreeFlags&=-33554433,null}e=Tn.current,rr(t)?ky(t,e):(e=Vx(o,a,n),t.stateNode=e,$n(t))}return _e(t),t.subtreeFlags&=-33554433,null;case 5:if(xc(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(V(166));return _e(t),t.subtreeFlags&=-33554433,null}if(r=Tn.current,rr(t))ky(t,r);else{var i=ul(Ta.current);switch(r){case 1:r=i.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=i.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=i.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?i.createElement(o,{is:a.is}):i.createElement(o)}}r[et]=t,r[Tt]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)r.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=r;e:switch(ot(r,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$n(t)}}return _e(t),t.subtreeFlags&=-33554433,cd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(V(166));if(e=Ta.current,rr(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=Ke,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Nx(e.nodeValue,n)),e||Va(t,!0)}else e=ul(e).createTextNode(a),e[et]=t,t.stateNode=e}return _e(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=rr(t),n!==null){if(e===null){if(!a)throw Error(V(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(557));e[et]=t}else xo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else n=od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(V(558))}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=rr(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(V(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(V(317));o[et]=t}else xo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),o=!1}else o=od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),$u(t,t.updateQueue),_e(t),null);case 4:return Dr(),e===null&&wh(t.stateNode.containerInfo),t.flags|=67108864,_e(t),null;case 10:return Kn(t.type),_e(t),null;case 19:if(Pm(t),a=t.memoizedState,a===null)return _e(t),null;if(o=(t.flags&128)!==0,r=a.rendering,r===null)if(o)zi(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ac(e),r!==null){for(t.flags|=128,zi(a,!1),e=r.updateQueue,t.updateQueue=e,$u(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)k1(n,e),n=n.sibling;return ol(t,at.current&1|2),oe&&In(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ht()>kc&&(t.flags|=128,o=!0,zi(a,!1),t.lanes=4194304)}else{if(!o)if(e=Ac(r),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,$u(t,e),zi(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!r.alternate&&!oe)return _e(t),null}else 2*Ht()-a.renderingStartTime>kc&&n!==536870912&&(t.flags|=128,o=!0,zi(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ht(),e.sibling=null,r=at.current,r=o?r&1|2:r&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||oe?ol(t,r):(n=r,Te(rt,t),Te(at,n),ct===null&&(ct=t)),oe&&In(t,a.treeForkCount),e}return _e(t),null;case 22:case 23:return Ot(t),Fm(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),n=t.updateQueue,n!==null&&$u(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&nt(yo),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Kn(ke),_e(t),null;case 25:return null;case 30:return t.flags|=33554432,_e(t),null}throw Error(V(156,t.tag))}function u5(e,t){switch(Im(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(ke),Dr(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xc(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(V(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pm(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Dr(),null;case 10:return Kn(t.type),null;case 22:case 23:return Ot(t),Fm(),e!==null&&nt(yo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kn(ke),null;case 25:return null;default:return null}}function Yb(e,t){switch(Im(t),t.tag){case 3:Kn(ke),Dr();break;case 26:case 27:case 5:xc(t);break;case 4:Dr();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:Pm(t);break;case 10:Kn(t.type);break;case 22:case 23:Ot(t),Fm(),e!==null&&nt(yo);break;case 24:Kn(ke)}}function Sl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var r=n.create,i=n.inst;a=r(),i.destroy=a}n=n.next}while(n!==o)}}catch(l){be(t,t.return,l)}}function Ya(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){var i=a.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,o=t;var u=n,c=l;try{c()}catch(f){be(o,u,f)}}}a=a.next}while(a!==r)}}catch(f){be(t,t.return,f)}}function kb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{J1(t,n)}catch(a){be(e,e.return,a)}}}function qb(e,t,n){n.props=To(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){be(e,t,a)}}function xn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var o=e.stateNode,r=Fn(e.memoizedProps,o);(o.ref===null||o.ref.name!==r)&&(o.ref=Ox(r)),a=o.ref;break;case 7:if(e.stateNode===null){var i=new Yt(e);Nt(e.child,!1,J5,i,void 0,void 0),e.stateNode=i}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(l){be(e,t,l)}}function We(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){be(e,t,o)}else n.current=null}function Bc(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Bx(e.stateNode,t[n])}function hv(e){for(var t=e.return;t!==null&&(gh(t)&&Bx(e.stateNode,t.stateNode),!hh(t));)t=t.return}function Qi(e){for(var t=e.return;t!==null&&(gh(t)&&F5(e.stateNode,t.stateNode),!hh(t));)t=t.return}function hh(e){return e.tag===5||e.tag===3||e.tag===27}function gh(e){return e&&e.tag===7&&e.stateNode!==null}function om(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){be(e,e.return,o)}}function sd(e,t,n){try{var a=e.stateNode;D5(a,e.type,n,t),a[Tt]=t}catch(o){be(e,e.return,o)}}function Gb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ga(e.type)||e.tag===4}function fd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gb(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.tag===27&&Ga(e.type)||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 rm(e,t,n,a){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(o,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(o),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=En)),Bc(e,a),de=!0;else if(o!==4&&(o===27&&(Bc(e,a),a=null,Ga(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(rm(e,t,n,a),e=e.sibling;e!==null;)rm(e,t,n,a),e=e.sibling}function Lc(e,t,n,a){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?n.insertBefore(o,t):n.appendChild(o),Bc(e,a),de=!0;else if(o!==4&&(o===27&&(Bc(e,a),a=null,Ga(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Lc(e,t,n,a),e=e.sibling;e!==null;)Lc(e,t,n,a),e=e.sibling}function Xb(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ot(t,a,n),t[et]=e,t[Tt]=n}catch(r){be(e,e.return,r)}}var Vc=!1,Dt=null;function gv(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Vc=!0)}var Sn=null;function pv(){var e=Sn;return Sn=null,e}var wt=0;function jr(e,t,n,a,o){return wt=0,Zb(e.child,t,n,a,o)}function Zb(e,t,n,a,o){for(var r=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(a!==null){var l=Nm(i);a.push(l),l.view&&(r=!0)}else r||Nm(i).view&&(r=!0);Vc=!0,Mx(i,wt===0?t:t+"_"+wt,n),wt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&o||Zb(e.child,t,n,a,o)&&(r=!0));e=e.sibling}return r}function Mn(e,t){for(;e!==null;)e.tag===5?zx(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Mn(e.child,t)),e=e.sibling}function cc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(cc(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(V(544));var n=t.name;t=aa(t.default,t.share),t!=="none"&&(jr(e,n,t,null,!1)||Mn(e.child,!1))}e=e.sibling}}function im(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,o=Fn(a,n),r=aa(a.default,n.paired?a.share:a.enter);r!=="none"?jr(e,o,r,null,!1)?(cc(e),n.paired||t||Vr(e,a.onEnter)):Mn(e.child,!1):cc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)im(e,t),e=e.sibling;else cc(e)}function lm(e){if(Dt!==null&&Dt.size!==0){var t=Dt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var o=t.get(a);if(o!==void 0){var r=aa(n.default,n.share);if(r!=="none"&&(jr(e,a,r,null,!1)?(r=e.stateNode,o.paired=r,r.paired=o,Vr(e,n.onShare)):Mn(e.child,!1)),t.delete(a),t.size===0)break}}}lm(e)}e=e.sibling}}}function um(e){if(e.tag===30){var t=e.memoizedProps,n=Fn(t,e.stateNode),a=Dt!==null?Dt.get(n):void 0,o=aa(t.default,a!==void 0?t.share:t.exit);o!=="none"&&(jr(e,n,o,null,!1)?a!==void 0?(o=e.stateNode,a.paired=o,o.paired=a,Dt.delete(n),Vr(e,t.onShare)):Vr(e,t.onExit):Mn(e.child,!1)),Dt!==null&&lm(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)um(e),e=e.sibling;else Dt!==null&&lm(e)}function $b(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Fn(t,e.stateNode);t=aa(t.default,t.update),e.flags&=-5,t!=="none"&&jr(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&$b(e);e=e.sibling}}function cm(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Mn(e.child,!1))}cm(e)}e=e.sibling}}function sc(e){if(e.tag===30)e.stateNode.paired=null,Mn(e.child,!1),cm(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)sc(e),e=e.sibling;else cm(e)}function Ib(e){for(e=e.child;e!==null;)e.tag===30?Mn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Ib(e),e=e.sibling}function ph(e,t,n,a,o,r,i){for(var l=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(r!==null&&wt<r.length){var c=r[wt],f=Nm(u);(c.view||f.view)&&(l=!0);var d;if(d=(e.flags&4)===0)if(f.clip)d=!0;else{d=c.rect;var s=f.rect;d=d.y!==s.y||d.x!==s.x||d.height!==s.height||d.width!==s.width}d&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Mx(u,wt===0?n:n+"_"+wt,o),l&&(e.flags&4)!==0||(Sn===null&&(Sn=[]),Sn.push(u,wt===0?a:a+"_"+wt,t.memoizedProps)),wt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:ph(e,t.child,n,a,o,r,i)&&(l=!0));t=t.sibling}return l}function Qb(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,o=Fn(n,a),r=aa(n.default,n.update);if(t){a=a.clones;var i=a===null?null:a.map(U5)}else i=e.memoizedState,e.memoizedState=null;a=e;var l=e.child;wt=0,o=ph(a,l,o,o,r,i,!1),(e.flags&4)!==0&&o&&(t||Vr(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Qb(e,t);e=e.sibling}}var Ie=!1,pe=!1,yn=!1,dd=!1,yv=typeof WeakSet=="function"?WeakSet:Set,Qe=null,vn=!1,Vi=!1,Uc=!1,sm=!1;function c5(e,t,n){if(e=e.containerInfo,wm=Xr,e=D1(e),Gm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var r=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var l=0,u=-1,c=-1,f=0,d=0,s=e,h=null;t:for(;;){for(var y;s!==a||r!==0&&s.nodeType!==3||(u=l+r),s!==i||o!==0&&s.nodeType!==3||(c=l+o),s.nodeType===3&&(l+=s.nodeValue.length),(y=s.firstChild)!==null;)h=s,s=y;for(;;){if(s===e)break t;if(h===a&&++f===r&&(u=l),h===i&&++d===o&&(c=l),(y=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=y}a=u===-1||c===-1?null:{start:u,end:c}}else a=null}a=a||{start:0,end:0}}else a=null;for(Em={focusedElem:e,selectionRange:a},Xr=!1,n=(n&335544064)===n,Qe=t,t=n?9270:1024;Qe!==null;){if(e=Qe,n&&(a=e.deletions,a!==null))for(r=0;r<a.length;r++)n&&um(a[r]);if(e.alternate===null&&(e.flags&2)!==0)n&&gv(e),Iu(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&um(a),Iu(n);continue}else if(a!==null&&a.memoizedState!==null){n&&gv(e),Iu(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,Qe=a):(n&&$b(e),Iu(n))}}Dt=null}function Iu(e){for(;Qe!==null;){var t=Qe,n=e,a=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((o&1024)!==0&&a!==null){n=void 0,o=a.memoizedProps,a=a.memoizedState;var r=t.stateNode;try{var i=To(t.type,o);n=r.getSnapshotBeforeUpdate(i,a),r.__reactInternalSnapshotBeforeUpdate=n}catch(l){be(t,t.return,l)}}break;case 3:if((o&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)Tm(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Tm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=Fn(a.memoizedProps,a.stateNode),o=t.memoizedProps,o=aa(o.default,o.update),o!=="none"&&jr(a,n,o,a.memoizedState=[],!0));break;default:if((o&1024)!==0)throw Error(V(163))}if(a=t.sibling,a!==null){a.return=t.return,Qe=a;break}Qe=t.return}}function jb(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:bn(e,n),a&4&&Sl(5,n);break;case 1:if(bn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){be(n,n.return,i)}else{var o=To(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){be(n,n.return,i)}}a&64&&kb(n),a&512&&xn(n,n.return);break;case 3:if(bn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{J1(e,t)}catch(i){be(n,n.return,i)}}break;case 27:t===null&&a&4&&Xb(n);case 26:case 5:bn(e,n),t===null&&a&4&&om(n),a&512&&xn(n,n.return);break;case 12:bn(e,n);break;case 31:bn(e,n),a&4&&Pb(e,n);break;case 13:bn(e,n),a&4&&Wb(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=S5.bind(null,n),e4(e,n))));break;case 22:if(a=n.memoizedState!==null||Ie,!a){var r=t!==null&&t.memoizedState!==null||pe;t=Ie,o=pe,Ie=a,(pe=r)&&!o?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),rn(e,n,a)):bn(e,n),Ie=t,pe=o}break;case 30:bn(e,n),a&512&&xn(n,n.return);break;case 7:a&512&&xn(n,n.return);default:bn(e,n)}}function fm(e,t){for(e=e.child;e!==null;)Kb(e,t),e=e.sibling}function Kb(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var o=e.stateNode,r=e.memoizedProps.style,i=r!=null&&r.hasOwnProperty("display")?r.display:null;o.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(u){be(e,e.return,u)}dm(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,de=!0}catch(u){be(e,e.return,u)}break;case 18:try{var l=e.stateNode;t?Rv(l,!0):Rv(e.stateNode,!1)}catch(u){be(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&fm(e,t);break;default:fm(e,t)}}function dm(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:Kb(n,a);break e;case 22:n.memoizedState===null&&dm(n,a);break e;default:dm(n,a)}}e=e.sibling}}function Jb(e){var t=e.alternate;t!==null&&(e.alternate=null,Jb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,xt=!1;function on(e,t,n){for(n=n.child;n!==null;)Fb(e,t,n),n=n.sibling}function Fb(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(hl,n)}catch{}switch(n.tag){case 26:pe||We(n,t),on(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!pe&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pe||We(n,t),Qi(n);var a=ze,o=xt;Ga(n.type)&&(ze=n.stateNode,xt=!1),on(e,t,n),Ux(n.stateNode,n.type,n.memoizedProps),ze=a,xt=o;break;case 5:pe||We(n,t),Qi(n);case 6:if(n.tag===6&&Qi(n),a=ze,o=xt,ze=null,on(e,t,n),ze=a,xt=o,ze!==null)if(xt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(n.stateNode),de=!0}catch(r){be(n,t,r)}else try{ze.removeChild(n.stateNode),de=!0}catch(r){be(n,t,r)}break;case 18:ze!==null&&(xt?(e=ze,Dv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Zr(e)):Dv(ze,n.stateNode));break;case 4:a=ze,o=xt,ze=n.stateNode.containerInfo,xt=!0,on(e,t,n),ze=a,xt=o;break;case 0:case 11:case 14:case 15:Ya(2,n,t),pe||Ya(4,n,t),on(e,t,n);break;case 1:pe||(We(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&qb(n,t,a)),on(e,t,n);break;case 21:on(e,t,n);break;case 22:pe=(a=pe)||n.memoizedState!==null,on(e,t,n),pe=a;break;case 30:We(n,t),on(e,t,n);break;case 7:pe||We(n,t),on(e,t,n);break;default:on(e,t,n)}}function Pb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Zr(e)}catch(n){be(t,t.return,n)}}}function Wb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zr(e)}catch(n){be(t,t.return,n)}}function s5(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yv),t;default:throw Error(V(435,e.tag))}}function Qu(e,t){var n=s5(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=w5.bind(null,e,a);a.then(o,o)}})}function ft(e,t,n){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o],i=e,l=t,u=l;e:for(;u!==null;){switch(u.tag){case 27:if(Ga(u.type)){ze=u.stateNode,xt=!1;break e}break;case 5:ze=u.stateNode,xt=!1;break e;case 3:case 4:ze=u.stateNode.containerInfo,xt=!0;break e}u=u.return}if(ze===null)throw Error(V(160));Fb(i,l,r),ze=null,xt=!1,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ex(t,e,n),t=t.sibling}var ln=null;function ex(e,t,n){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(o&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var r=0;r<a.length;r++){var i=a[r];i.ref.impl=i.nextImpl}ft(t,e,n),dt(e),o&4&&(Ya(3,e,e.return),Sl(3,e),Ya(5,e,e.return));break;case 1:ft(t,e,n),dt(e),o&512&&(pe||a===null||We(a,a.return)),o&64&&Ie&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(r=ln,ft(t,e,n),dt(e),o&512&&(pe||a===null||We(a,a.return)),o&4)if(o=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(Ie)e.stateNode=Cx(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,o=r.ownerDocument||r;t:switch(t){case"title":a=o.getElementsByTagName("title")[0],(!a||a[yl]||a[et]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=o.createElement(t),o.head.insertBefore(a,o.querySelector("head > title"))),ot(a,t,n),a[et]=e,je(a),t=a;break e;case"link":if(r=qv("link","href",o).get(t+(n.href||""))){for(i=0;i<r.length;i++)if(a=r[i],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(i,1);break t}}a=o.createElement(t),ot(a,t,n),o.head.appendChild(a);break;case"meta":if(r=qv("meta","content",o).get(t+(n.content||""))){for(i=0;i<r.length;i++)if(a=r[i],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(i,1);break t}}a=o.createElement(t),ot(a,t,n),o.head.appendChild(a);break;default:throw Error(V(468,t))}a[et]=e,je(a),t=a}e.stateNode=t}else Ie||zm(r,e.type,e.stateNode);else e.stateNode=kv(r,n,e.memoizedProps);else o!==n?(o===null?(t=a.stateNode,t===null||pe||t.parentNode.removeChild(t)):o.count--,n===null?Ie||zm(r,e.type,e.stateNode):kv(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&sd(e,e.memoizedProps,a.memoizedProps);break;case 27:ft(t,e,n),dt(e),o&512&&(pe||a===null||We(a,a.return)),a!==null&&o&4&&sd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(r=yn,yn=!1,ft(t,e,n),yn=r,dt(e),o&512&&(pe||a===null||We(a,a.return)),e.flags&32){t=e.stateNode;try{Hr(t,""),de=!0}catch(f){be(e,e.return,f)}}o&4&&e.stateNode!=null&&(t=e.memoizedProps,sd(e,t,a!==null?a.memoizedProps:t)),o&1024&&(dd=!0);break;case 6:if(ft(t,e,n),dt(e),o&4){if(e.stateNode===null)throw Error(V(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,de=!0}catch(f){be(e,e.return,f)}}break;case 3:if(de=!1,hc=null,r=ln,ln=cl(t.containerInfo),ft(t,e,n),ln=r,dt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Zr(t.containerInfo)}catch(f){be(e,e.return,f)}dd&&(dd=!1,tx(e)),de=!1;break;case 4:o=yn,yn=Ie,a=Ey(),r=ln,ln=cl(e.stateNode.containerInfo),ft(t,e,n),dt(e),ln=r,de&&Vi&&(Uc=!0),de=a,yn=o;break;case 12:ft(t,e,n),dt(e);break;case 31:ft(t,e,n),dt(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Qu(e,t)));break;case 13:ft(t,e,n),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ls=Ht()),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Qu(e,t)));break;case 22:r=e.memoizedState!==null,i=a!==null&&a.memoizedState!==null;var l=Ie,u=pe,c=yn;Ie=l||r,yn=c||r,pe=u||i,ft(t,e,n),pe=u,yn=c,Ie=l,dt(e),o&8192&&(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,!r||a===null||i||Ie||pe||(t=i||pe,n=Ie,a=pe,Ie=r||Ie,pe=t,pa(e,2),Ie=n,pe=a),!r&&yn||fm(e,r)),o&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Qu(e,n))));break;case 19:ft(t,e,n),dt(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Qu(e,t)));break;case 30:o&512&&(pe||a===null||We(a,a.return)),o=Ey(),r=Vi,i=(n&335544064)===n,l=e.memoizedProps,Vi=i&&aa(l.default,l.update)!=="none",ft(t,e,n),dt(e),i&&a!==null&&de&&(e.flags|=4),Vi=r,de=o;break;case 21:break;case 7:o&512&&(pe||a===null||We(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:ft(t,e,n),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Gb(a)){n=a;break}a=a.return}a=null;for(var o=e.return;o!==null;){if(gh(o)){var r=o.stateNode;a===null?a=[r]:a.push(r)}if(hh(o))break;o=o.return}var i=a;if(n==null)throw Error(V(160));switch(n.tag){case 27:var l=n.stateNode,u=fd(e);Lc(e,u,l,i);break;case 5:var c=n.stateNode;n.flags&32&&(Hr(c,""),n.flags&=-33);var f=fd(e);Lc(e,f,c,i);break;case 3:case 4:var d=n.stateNode.containerInfo,s=fd(e);rm(e,s,d,i);break;default:throw Error(V(161))}}catch(h){be(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;tx(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Xr=!0,t.reset(),Xr=!1),e=e.sibling}}function ir(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)nx(t,e),t=t.sibling;else Qb(t,!1)}function nx(e,t){var n=e.alternate;if(n===null)im(e,!1);else switch(e.tag){case 3:if(sm=vn=!1,pv(),ir(t,e),!vn&&!Uc){if(e=Sn,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var o=e[a+1];zx(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+o+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),sm=!0}Sn=null;break;case 5:ir(t,e);break;case 4:a=vn,vn=!1,ir(t,e),vn&&(Uc=!0),vn=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?im(e,!1):ir(t,e));break;case 30:a=vn,o=pv(),vn=!1,ir(t,e),vn&&(e.flags|=4);var r=e.memoizedProps,i=e.stateNode;t=Fn(r,i),i=Fn(n.memoizedProps,i);var l=aa(r.default,r.update);l==="none"?t=!1:(r=n.memoizedState,n.memoizedState=null,n=e.child,wt=0,t=ph(e,n,t,i,l,r,!0),wt!==(r===null?0:r.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Vr(e,e.memoizedProps.onUpdate),Sn=o):o!==null&&(o.push.apply(o,Sn),Sn=o),vn=(e.flags&32)!==0?!0:a;break;default:ir(t,e)}}function bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jb(e,t.alternate,t),t=t.sibling}function pa(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:Ya(4,n,n.return),pa(n,a);break;case 1:We(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&qb(n,n.return,o),pa(n,a);break;case 27:(a&2)!==0&&Ux(n.stateNode,n.type,n.memoizedProps);case 5:We(n,n.return),n.tag!==5&&n.tag!==27||Qi(n),pa(n,a);break;case 6:Qi(n);break;case 26:We(n,n.return),o=n.stateNode,n.memoizedState!==null||o===null||pe||o.parentNode.removeChild(o),pa(n,a);break;case 22:n.memoizedState===null&&pa(n,a);break;case 30:We(n,n.return),pa(n,a);break;case 7:We(n,n.return);default:pa(n,a)}e=e.sibling}}function rn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,o=e,r=t,i=r.flags,l=(n&1)!==0;switch(r.tag){case 0:case 11:case 15:rn(o,r,n),Sl(4,r);break;case 1:if(rn(o,r,n),a=r,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(f){be(a,a.return,f)}if(a=r,o=a.updateQueue,o!==null){var u=a.stateNode;try{var c=o.shared.hiddenCallbacks;if(c!==null)for(o.shared.hiddenCallbacks=null,o=0;o<c.length;o++)K1(c[o],u)}catch(f){be(a,a.return,f)}}l&&i&64&&kb(r),xn(r,r.return);break;case 27:(n&2)!==0&&Xb(r);case 5:r.tag!==5&&r.tag!==27||hv(r),rn(o,r,n),l&&a===null&&i&4&&om(r),xn(r,r.return);break;case 6:hv(r);break;case 26:u=r.stateNode,r.memoizedState!==null||u===null||Ie||zm(cl(u.ownerDocument),r.type,u),rn(o,r,n),l&&a===null&&i&4&&om(r),xn(r,r.return);break;case 12:rn(o,r,n);break;case 31:rn(o,r,n),l&&i&4&&Pb(o,r);break;case 13:rn(o,r,n),l&&i&4&&Wb(o,r);break;case 22:r.memoizedState===null&&rn(o,r,n),xn(r,r.return);break;case 30:rn(o,r,n),xn(r,r.return);break;case 7:xn(r,r.return);default:rn(o,r,n)}t=t.sibling}}function yh(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&bl(n))}function vh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bl(e))}function Zt(e,t,n,a){var o=(n&335544064)===n;if(t.subtreeFlags&(o?10262:10256))for(t=t.child;t!==null;)ax(e,t,n,a),t=t.sibling;else o&&Ib(t)}function ax(e,t,n,a){var o=(n&335544064)===n;o&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&sc(t);var r=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,n,a),r&2048&&Sl(9,t);break;case 1:Zt(e,t,n,a);break;case 3:Zt(e,t,n,a),o&&sm&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),r&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(t.refCount++,r!=null&&bl(r)));break;case 12:if(r&2048){Zt(e,t,n,a),r=t.stateNode;try{var i=t.memoizedProps,l=i.id,u=i.onPostCommit;typeof u=="function"&&u(l,t.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(c){be(t,t.return,c)}}else Zt(e,t,n,a);break;case 31:Zt(e,t,n,a);break;case 13:Zt(e,t,n,a);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,t.memoizedState!==null?(o&&l!==null&&l.memoizedState===null&&sc(l),i._visibility&2?Zt(e,t,n,a):ji(e,t)):(o&&l!==null&&l.memoizedState!==null&&sc(t),i._visibility&2?Zt(e,t,n,a):(i._visibility|=2,ur(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),r&2048&&yh(l,t);break;case 24:Zt(e,t,n,a),r&2048&&vh(t.alternate,t);break;case 30:o&&(r=t.alternate,r!==null&&(Mn(r.child,!0),Mn(t.child,!0))),Zt(e,t,n,a);break;default:Zt(e,t,n,a)}}function ur(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,i=t,l=n,u=a,c=i.flags;switch(i.tag){case 0:case 11:case 15:ur(r,i,l,u,o),Sl(8,i);break;case 23:break;case 22:var f=i.stateNode;i.memoizedState!==null?f._visibility&2?ur(r,i,l,u,o):ji(r,i):(f._visibility|=2,ur(r,i,l,u,o)),o&&c&2048&&yh(i.alternate,i);break;case 24:ur(r,i,l,u,o),o&&c&2048&&vh(i.alternate,i);break;default:ur(r,i,l,u,o)}t=t.sibling}}function ji(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ji(n,a),o&2048&&yh(a.alternate,a);break;case 24:ji(n,a),o&2048&&vh(a.alternate,a);break;default:ji(n,a)}t=t.sibling}}var fo=8192;function uo(e,t,n){if(e.subtreeFlags&fo)for(e=e.child;e!==null;)ox(e,t,n),e=e.sibling}function ox(e,t,n){switch(e.tag){case 26:uo(e,t,n),e.flags&fo&&(e.memoizedState!==null?h4(n,ln,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Xv(n,e)));break;case 5:uo(e,t,n),e.flags&fo&&(e=e.stateNode,(t&335544128)===t&&Xv(n,e));break;case 3:case 4:var a=ln;ln=cl(e.stateNode.containerInfo),uo(e,t,n),ln=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=fo,fo=16777216,uo(e,t,n),fo=a):uo(e,t,n));break;case 30:if((e.flags&fo)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var o=e.stateNode;o.paired=null,Dt===null&&(Dt=new Map),Dt.set(a,o)}uo(e,t,n);break;default:uo(e,t,n)}}function rx(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ai(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Qe=a,lx(a,e)}rx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ix(e),e=e.sibling}function ix(e){switch(e.tag){case 0:case 11:case 15:Ai(e),e.flags&2048&&Ya(9,e,e.return);break;case 3:Ai(e);break;case 12:Ai(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fc(e)):Ai(e);break;default:Ai(e)}}function fc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Qe=a,lx(a,e)}rx(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ya(8,t,t.return),fc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fc(t));break;default:fc(t)}e=e.sibling}}function lx(e,t){for(;Qe!==null;){var n=Qe;switch(n.tag){case 0:case 11:case 15:Ya(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:bl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Qe=a;else e:for(n=e;Qe!==null;){a=Qe;var o=a.sibling,r=a.return;if(Jb(a),a===n){Qe=null;break e}if(o!==null){o.return=r,Qe=o;break e}Qe=r}}}var f5={getCacheForType:function(e){var t=tt(ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return tt(ke).controller.signal}},d5=typeof WeakMap=="function"?WeakMap:Map,me=0,Se=null,ue=null,se=0,ye=0,zt=null,Ea=!1,Kr=!1,bh=!1,ta=0,He=0,ka=0,bo=0,Yc=0,Rt=0,Lr=0,Ki=null,St=null,mm=!1,ls=0,ux=0,kc=1/0,qc=null,Da=null,De=0,cn=null,Co=null,Cn=0,hm=0,gm=null,cx=null,zr=null,Ar=null,Or=null,Ji=0,dc=null;function Vt(){return(me&2)!==0&&se!==0?se&-se:F.T!==null?Sh():m1()}function sx(){if(Rt===0)if((se&536870912)===0||oe){var e=Hu;Hu<<=1,(Hu&3932160)===0&&(Hu=262144),Rt=e}else Rt=536870912;return e=rt.current,e!==null&&(e.flags|=32),Rt}function Vr(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=Ox(Fn(e.memoizedProps,n))),Ar===null&&(Ar=[]),Ar.push(t.bind(null,a))}}function _t(e,t,n){(e===Se&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Ur(e,0),_a(e,se,Rt,!1)),pl(e,n),((me&2)===0||e!==Se)&&(e===Se&&((me&2)===0&&(bo|=n),He===4&&_a(e,se,Rt,!1)),An(e))}function fx(e,t,n){if((me&6)!==0)throw Error(V(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||gl(e,t),o=a?g5(e,t):md(e,t,!0),r=a;do{if(o===0){Kr&&!a&&_a(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!m5(n)){o=md(e,t,!1),r=!1;continue}if(o===2){if(r=t,e.errorRecoveryDisabledLanes&r)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;o=Ki;var u=l.current.memoizedState.isDehydrated;if(u&&(Ur(l,i).flags|=256),i=md(l,i,!1),i!==2&&i!==6){if(bh&&!u){l.errorRecoveryDisabledLanes|=r,bo|=r,o=4;break e}r=St,St=o,r!==null&&(St===null?St=r:St.push.apply(St,r))}o=i}if(r=!1,o!==2)continue}}if(o===1){Ur(e,0),_a(e,t,0,!0);break}e:{switch(a=e,r=o,r){case 0:case 1:throw Error(V(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:_a(a,t,Rt,!Ea);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(V(329))}if((t&62914560)===t&&(o=ls+300-Ht(),10<o)){if(_a(a,t,Rt,!Ea),Qc(a,0,!0)!==0)break e;Cn=t,a.timeoutHandle=Eh(vv.bind(null,a,n,St,qc,mm,t,Rt,bo,Lr,Ea,r,"Throttled",-0,0),o);break e}vv(a,n,St,qc,mm,t,Rt,bo,Lr,Ea,r,null,-0,0)}}break}while(!0);An(e)}function vv(e,t,n,a,o,r,i,l,u,c,f,d,s,h){e.timeoutHandle=-1;var y=t.subtreeFlags,x=(r&335544064)===r;if(d=null,(x||y&8192||(y&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Dt=null,ox(t,r,d),x&&(y=d,x=e.containerInfo,x=(x.nodeType===9?x:x.ownerDocument).__reactViewTransition,x!=null&&(y.count++,y.waitingForViewTransition=!0,y=sl.bind(y),x.finished.then(y,y))),y=(r&62914560)===r?ls-Ht():(r&4194048)===r?ux-Ht():0,y=g4(d,y),y!==null)){Cn=r,e.cancelPendingCommit=y(xv.bind(null,e,t,r,n,a,o,i,l,u,c,f,d,null,s,h)),_a(e,r,i,!c);return}xv(e,t,r,n,a,o,i,l,u,c,f,d)}function m5(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],r=o.getSnapshot;o=o.value;try{if(!Ut(r(),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 _a(e,t,n,a){t=u1(e,t),t&=~Yc,t&=~bo,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var r=31-Lt(o),i=1<<r;a[r]=-1,o&=~i}n!==0&&s1(e,n,t)}function us(){return(me&6)===0?(wl(0,!1),!1):!0}function xh(){if(ue!==null){if(ye===0)var e=ue.return;else e=ue,Qn=Do=null,ah(e),Tr=null,al=0,e=ue;for(;e!==null;)Yb(e.alternate,e),e=e.return;ue=null}}function Ur(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,B5(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cn=0,xh(),Se=e,ue=n=jn(e.current,null),se=t,ye=0,zt=null,Ea=!1,Kr=gl(e,t),bh=!1,Lr=Rt=Yc=bo=ka=He=0,St=Ki=null,mm=!1,ta=u1(e,t),Pc(),n}function dx(e,t){ne=null,F.H=Rc,t===Qr||t===ts?(t=$y(),ye=3):t===Km?(t=$y(),ye=4):ye=t===fh?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,ue===null&&(He=1,Hc(e,Kt(t,e.current)))}function mx(){var e=rt.current;return e===null?!0:(se&4194048)===se?ct===null:(se&62914560)===se||(se&536870912)!==0?e===ct:!1}function hx(){var e=F.H;return F.H=Rc,e===null?Rc:e}function gx(){var e=F.A;return F.A=f5,e}function Gc(){He=4,Ea||(se&4194048)!==se&&rt.current!==null||(Kr=!0),(ka&134217727)===0&&(bo&134217727)===0||Se===null||_a(Se,se,Rt,!1)}function md(e,t,n){var a=me;me|=2;var o=hx(),r=gx();(Se!==e||se!==t)&&(qc=null,Ur(e,t)),t=!1;var i=He;e:do try{if(ye!==0&&ue!==null){var l=ue,u=zt;switch(ye){case 8:xh(),i=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var c=ye;if(ye=0,zt=null,Sr(e,l,u,c),n&&Kr){i=0;break e}break;default:c=ye,ye=0,zt=null,Sr(e,l,u,c)}}h5(),i=He;break}catch(f){dx(e,f)}while(!0);return t&&e.shellSuspendCounter++,Qn=Do=null,me=a,F.H=o,F.A=r,ue===null&&(Se=null,se=0,Pc()),i}function h5(){for(;ue!==null;)px(ue)}function g5(e,t){var n=me;me|=2;var a=hx(),o=gx();Se!==e||se!==t?(qc=null,kc=Ht()+500,Ur(e,t)):Kr=gl(e,t);e:do try{if(ye!==0&&ue!==null){t=ue;var r=zt;t:switch(ye){case 1:ye=0,zt=null,Sr(e,t,r,1);break;case 2:case 9:if(Zy(r)){ye=0,zt=null,bv(t);break}t=function(){ye!==2&&ye!==9||Se!==e||(ye=7),An(e)},r.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:Zy(r)?(ye=0,zt=null,bv(t)):(ye=0,zt=null,Sr(e,t,r,7));break;case 5:var i=null;switch(ue.tag){case 26:i=ue.memoizedState;case 5:case 27:var l=ue;if(i?qx(i):l.stateNode.complete){ye=0,zt=null;var u=l.sibling;if(u!==null)ue=u;else{var c=l.return;c!==null?(ue=c,cs(c)):ue=null}break t}}ye=0,zt=null,Sr(e,t,r,5);break;case 6:ye=0,zt=null,Sr(e,t,r,6);break;case 8:xh(),He=6;break e;default:throw Error(V(462))}}p5();break}catch(f){dx(e,f)}while(!0);return Qn=Do=null,F.H=a,F.A=o,me=n,ue!==null?0:(Se=null,se=0,Pc(),He)}function p5(){for(;ue!==null&&!RM();)px(ue)}function px(e){var t=Ub(e.alternate,e,ta);e.memoizedProps=e.pendingProps,t===null?cs(e):ue=t}function bv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lv(n,t,t.pendingProps,t.type,void 0,se);break;case 11:t=lv(n,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:ah(t);var a=t;a===Ke&&(oe?(Tc(a),a.tag===5&&a.stateNode!=null&&(Ne=a.stateNode)):(Tc(a),oe=!0));default:Yb(n,t),t=ue=k1(t,ta),t=Ub(n,t,ta)}e.memoizedProps=e.pendingProps,t===null?cs(e):ue=t}function Sr(e,t,n,a){Qn=Do=null,ah(t),Tr=null,al=0;var o=t.return;try{if(a5(e,o,t,n,se)){He=1,Hc(e,Kt(n,e.current)),ue=null;return}}catch(r){if(o!==null)throw ue=o,r;He=1,Hc(e,Kt(n,e.current)),ue=null;return}t.flags&32768?(oe||a===1?e=!0:Kr||(se&536870912)!==0?e=!1:(Ea=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),yx(t,e)):cs(t)}function cs(e){var t=e;do{if((t.flags&32768)!==0){yx(t,Ea);return}e=t.return;var n=l5(t.alternate,t,ta);if(n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);He===0&&(He=5)}function yx(e,t){do{var n=u5(e.alternate,e);if(n!==null){n.flags&=32767,ue=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=n}while(e!==null);He=6,ue=null}function xv(e,t,n,a,o,r,i,l,u,c,f,d){e.cancelPendingCommit=null;do ss();while(De!==0);if((me&6)!==0)throw Error(V(327));if(t!==null){if(t===e.current)throw Error(V(177));e===Se&&(ue=Se=null,se=0),Co=t,cn=e,Cn=n,gm=o,cx=a,y5(e,t,n,i,l,u,d)}}function y5(e,t,n,a,o,r,i){var l=t.lanes|t.childLanes;if(hm=l,l|=Xm,XM(e,n,l,a,o,r),Ar=null,(n&335544064)===n?(Or=$z(e),a=10262):(Or=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,E5(Sc,function(){return bm(),null})):(e.callbackNode=null,e.callbackPriority=0),Vc=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=F.T,F.T=null,o=he.p,he.p=2,r=me,me|=4;try{c5(e,t,n)}finally{me=r,he.p=o,F.T=a}}De=1,Vc?zr=q5(i,e.containerInfo,Or,pm,ym,b5,vm,bm,v5,null,null):(pm(),ym(),vm())}function v5(e){if(De!==0){var t=cn.onRecoverableError;t(e,{componentStack:null})}}function b5(){De===3&&(De=0,nx(Co,cn),De=4)}function pm(){if(De===1){De=0;var e=cn,t=Co,n=Cn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=F.T,F.T=null;var o=he.p;he.p=2;var r=me;me|=4;try{Vi=Uc=!1,ex(t,e,n),n=Em;var i=D1(e.containerInfo),l=n.focusedElem,u=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&O1(l.ownerDocument.documentElement,l)){if(u!==null&&Gm(l)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(f,l.value.length);else{var d=l.ownerDocument||document,s=d&&d.defaultView||window;if(s.getSelection){var h=s.getSelection(),y=l.textContent.length,x=Math.min(u.start,y),S=u.end===void 0?x:Math.min(u.end,y);!h.extend&&x>S&&(i=S,S=x,x=i);var g=Ly(l,x),p=Ly(l,S);if(g&&p&&(h.rangeCount!==1||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==p.node||h.focusOffset!==p.offset)){var m=d.createRange();m.setStart(g.node,g.offset),h.removeAllRanges(),x>S?(h.addRange(m),h.extend(p.node,p.offset)):(m.setEnd(p.node,p.offset),h.addRange(m))}}}}for(d=[],h=l;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<d.length;l++){var v=d[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}Xr=!!wm,Em=wm=null}finally{me=r,he.p=o,F.T=a}}e.current=t,De=2}}function ym(){if(De===2){De=0;var e=cn,t=Co,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var a=he.p;he.p=2;var o=me;me|=4;try{jb(e,t.alternate,t)}finally{me=o,he.p=a,F.T=n}}De=3}}function vm(){if(De===4||De===3){De=0;var e=zr;zr=null,HM();var t=cn,n=Co,a=Cn,o=cx,r=(a&335544064)===a?10262:10256;if((n.subtreeFlags&r)!==0||(n.flags&r)!==0?De=5:(De=0,Co=cn=null,vx(t,t.pendingLanes)),r=t.pendingLanes,r===0&&(Da=null),Lm(a),n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(hl,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=F.T,r=he.p,he.p=2,F.T=null;try{for(var i=t.onRecoverableError,l=0;l<o.length;l++){var u=o[l];i(u.value,{componentStack:u.stack})}}finally{F.T=n,he.p=r}}if(o=Ar,i=Or,Or=null,o!==null&&(Ar=null,i===null&&(i=[]),e!==null))for(u=0;u<o.length;u++)n=(0,o[u])(i),n!==void 0&&e.finished.finally(n);(Cn&3)!==0&&ss(),An(t),r=t.pendingLanes,(a&261930)!==0&&(r&42)!==0?t===dc?Ji++:(Ji=0,dc=t):(Ji=0,dc=null),wl(0,!1)}}function vx(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bl(t)))}function ss(){return zr!==null&&(zr.skipTransition(),zr=null),pm(),ym(),vm(),bm()}function bm(){if(De!==5)return!1;var e=cn,t=hm;hm=0;var n=Lm(Cn),a=F.T,o=he.p;try{he.p=32>n?32:n,F.T=null,n=gm,gm=null;var r=cn,i=Cn;if(De=0,Co=cn=null,Cn=0,(me&6)!==0)throw Error(V(331));var l=me;if(me|=4,ix(r.current),ax(r,r.current,i,n),me=l,wl(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(hl,r)}catch{}return!0}finally{he.p=o,F.T=a,vx(e,t)}}function Sv(e,t,n){t=Kt(n,t),t=Pd(e.stateNode,t,2),e=za(e,t,2),e!==null&&(pl(e,2),An(e))}function be(e,t,n){if(e.tag===3)Sv(e,e,n);else for(;t!==null;){if(t.tag===3){Sv(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Da===null||!Da.has(a))){e=Kt(n,e),n=Rb(2),a=za(t,n,2),a!==null&&(Hb(n,a,t,e),pl(a,2),An(a));break}}t=t.return}}function hd(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new d5;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(bh=!0,o.add(n),e=x5.bind(null,e,t,n),t.then(e,e))}function x5(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Se===e&&(se&n)===n&&((He===4||He===3&&(se&62914560)===se&&300>Ht()-ls)&&(me&2)===0?Ur(e,0):Yc|=n,Lr===se&&(Lr=0)),An(e)}function bx(e,t){t===0&&(t=c1()),e=Oo(e,t),e!==null&&(pl(e,t),An(e))}function S5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bx(e,n)}function w5(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(V(314))}a!==null&&a.delete(t),bx(e,n)}function E5(e,t){return Hm(e,t)}var Yr=null,cr=null,xm=!1,Xc=!1,gd=!1,Na=0;function An(e){e!==cr&&e.next===null&&(cr===null?Yr=cr=e:cr=cr.next=e),Xc=!0,xm||(xm=!0,N5())}function wl(e,t){if(!gd&&Xc){gd=!0;do for(var n=!1,a=Yr;a!==null;){if(!t)if(e!==0){var o=a.pendingLanes;if(o===0)var r=0;else{var i=a.suspendedLanes,l=a.pingedLanes;r=(1<<31-Lt(42|e)+1)-1,r&=o&~(i&~l),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,wv(a,r))}else r=se,r=Qc(a,a===Se?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||gl(a,r)||(n=!0,wv(a,r));a=a.next}while(n);gd=!1}}function _5(){xx()}function xx(){Xc=xm=!1;var e=0;Na!==0&&H5()&&(e=Na);for(var t=Ht(),n=null,a=Yr;a!==null;){var o=a.next,r=Sx(a,t);r===0?(a.next=null,n===null?Yr=o:n.next=o,o===null&&(cr=n)):(n=a,(e!==0||(r&3)!==0)&&(Xc=!0)),a=o}De!==0&&De!==5||wl(e,!1),Na!==0&&(Na=0)}function Sx(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var i=31-Lt(r),l=1<<i,u=o[i];u===-1?((l&n)===0||(l&a)!==0)&&(o[i]=GM(l,t)):u<=t&&(e.expiredLanes|=l),r&=~l}if(t=Se,n=se,n=Qc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Qf(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||gl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Qf(a),Lm(n)){case 2:case 8:n=i1;break;case 32:n=Sc;break;case 268435456:n=l1;break;default:n=Sc}return a=wx.bind(null,e),n=Hm(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Qf(a),e.callbackPriority=2,e.callbackNode=null,2}function wx(e,t){if(De!==0&&De!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ss()&&e.callbackNode!==n)return null;var a=se;return a=Qc(e,e===Se?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(fx(e,a,t),Sx(e,Ht()),e.callbackNode!=null&&e.callbackNode===n?wx.bind(null,e):null)}function wv(e,t){if(ss())return null;fx(e,t,!0)}function N5(){L5(function(){(me&6)!==0?Hm(r1,_5):xx()})}function Sh(){if(Na===0){var e=Eo;e===0&&(e=Ru,Ru<<=1,(Ru&261888)===0&&(Ru=256)),Na=e}return Na}function Ev(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ec(e)}function T5(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var r=Ev((o[Tt]||null).action),i=a.submitter;i&&(t=(t=i[Tt]||null)?Ev(t.formAction):i.getAttribute("formAction"),t!==null&&(r=t,i=null));var l=new Kc("action","action",null,a,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Na!==0){var u=new FormData(o,i);Jd(n,{pending:!0,data:u,method:o.method,action:r},null,u)}}else typeof r=="function"&&(l.preventDefault(),u=new FormData(o,i),Jd(n,{pending:!0,data:u,method:o.method,action:r},r,u))},currentTarget:o}]})}}for(ju=0;ju<Yd.length;ju++)Ku=Yd[ju],_v=Ku.toLowerCase(),Nv=Ku[0].toUpperCase()+Ku.slice(1),sn(_v,"on"+Nv);var Ku,_v,Nv,ju;sn(H1,"onAnimationEnd");sn(B1,"onAnimationIteration");sn(L1,"onAnimationStart");sn("dblclick","onDoubleClick");sn("focusin","onFocus");sn("focusout","onBlur");sn(Vz,"onTransitionRun");sn(Uz,"onTransitionStart");sn(Yz,"onTransitionCancel");sn(V1,"onTransitionEnd");Rr("onMouseEnter",["mouseout","mouseover"]);Rr("onMouseLeave",["mouseout","mouseover"]);Rr("onPointerEnter",["pointerout","pointerover"]);Rr("onPointerLeave",["pointerout","pointerover"]);zo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zo("onBeforeInput",["compositionend","keypress","textInput","paste"]);zo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var il="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(" "),C5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(il));function Ex(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var i=a.length-1;0<=i;i--){var l=a[i],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==r&&o.isPropagationStopped())break e;r=l,o.currentTarget=c;try{r(o)}catch(f){Ec(f)}o.currentTarget=null,r=u}else for(i=0;i<a.length;i++){if(l=a[i],u=l.instance,c=l.currentTarget,l=l.listener,u!==r&&o.isPropagationStopped())break e;r=l,o.currentTarget=c;try{r(o)}catch(f){Ec(f)}o.currentTarget=null,r=u}}}}function le(e,t){var n=t[by];n===void 0&&(n=t[by]=new Set);var a=e+"__bubble";n.has(a)||(_x(t,e,2,!1),n.add(a))}function pd(e,t,n){var a=0;t&&(a|=4),_x(n,e,a,t)}var Ju="_reactListening"+Math.random().toString(36).slice(2);function wh(e){if(!e[Ju]){e[Ju]=!0,g1.forEach(function(n){n!=="selectionchange"&&(C5.has(n)||pd(n,!1,e),pd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ju]||(t[Ju]=!0,pd("selectionchange",!1,t))}}function _x(e,t,n,a){switch(jx(t)){case 2:var o=b4;break;case 8:o=x4;break;default:o=zh}n=o.bind(null,t,n,e),o=void 0,!Bd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?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 yd(e,t,n,a,o){var r=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var l=a.stateNode.containerInfo;if(l===o)break;if(i===4)for(i=a.return;i!==null;){var u=i.tag;if((u===3||u===4)&&i.stateNode.containerInfo===o)return;i=i.return}for(;l!==null;){if(i=mo(l),i===null)return;if(u=i.tag,u===5||u===6||u===26||u===27){a=r=i;continue e}l=l.parentNode}}a=a.return}E1(function(){var c=r,f=Um(n),d=[];e:{var s=U1.get(e);if(s!==void 0){var h=Kc,y=e;switch(e){case"keypress":if(nc(n)===0)break e;case"keydown":case"keyup":h=mz;break;case"focusin":y="focus",h=Wf;break;case"focusout":y="blur",h=Wf;break;case"beforeblur":case"afterblur":h=Wf;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=Cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=tz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=vz;break;case H1:case B1:case L1:h=oz;break;case V1:h=xz;break;case"scroll":case"scrollend":h=WM;break;case"wheel":h=wz;break;case"copy":case"cut":case"paste":h=iz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=zy;break;case"submit":h=pz;break;case"toggle":case"beforetoggle":h=_z}var x=(t&4)!==0,S=!x&&(e==="scroll"||e==="scrollend"),g=x?s!==null?s+"Capture":null:s;x=[];for(var p=c,m;p!==null;){var v=p;if(m=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||m===null||g===null||(v=Pi(p,g),v!=null&&x.push(ll(p,v,m))),S)break;p=p.return}0<x.length&&(s=new h(s,y,null,n,f),d.push({event:s,listeners:x}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",h&&n!==Hd&&(y=n.relatedTarget||n.fromElement)&&(mo(y)||y[$r]))break e;(s||h)&&(y=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,s?(h=n.relatedTarget||n.toElement,s=c,h=h?mo(h):null,h!==null&&(S=ml(h),x=h.tag,h!==S||x!==5&&x!==27&&x!==6)&&(h=null)):(s=null,h=c),s!==h&&(x=Cy,v="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=zy,v="onPointerLeave",g="onPointerEnter",p="pointer"),S=s==null?y:Bi(s),m=h==null?y:Bi(h),y=new x(v,p+"leave",s,n,f),y.target=S,y.relatedTarget=m,v=null,mo(f)===c&&(x=new x(g,p+"enter",h,n,f),x.target=m,x.relatedTarget=S,v=x),S=v,x=s&&h?wd(s,h,M5):null,s!==null&&Tv(d,y,s,x,!1),h!==null&&S!==null&&Tv(d,S,h,x,!0)))}e:{if(s=c?Bi(c):window,h=s.nodeName&&s.nodeName.toLowerCase(),h==="select"||h==="input"&&s.type==="file")var b=Ry;else if(Dy(s))if(z1)b=Hz;else{b=Dz;var E=Oz}else h=s.nodeName,!h||h.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Vm(c.elementType)&&(b=Ry):b=Rz;if(b&&(b=b(e,c))){M1(d,b,n,f);break e}E&&E(e,s,c)}switch(E=c?Bi(c):window,e){case"focusin":(Dy(E)||E.contentEditable==="true")&&(gr=E,Vd=c,ki=null);break;case"focusout":ki=Vd=gr=null;break;case"mousedown":Ud=!0;break;case"contextmenu":case"mouseup":case"dragend":Ud=!1,Vy(d,n,f);break;case"selectionchange":if(Lz)break;case"keydown":case"keyup":Vy(d,n,f)}var N;if(qm)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else hr?T1(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(N1&&n.locale!=="ko"&&(hr||_!=="onCompositionStart"?_==="onCompositionEnd"&&hr&&(N=_1()):(Sa=f,Ym="value"in Sa?Sa.value:Sa.textContent,hr=!0)),E=Zc(c,_),0<E.length&&(_=new My(_,e,null,n,f),d.push({event:_,listeners:E}),N?_.data=N:(N=C1(n),N!==null&&(_.data=N)))),(N=Tz?Cz(e,n):Mz(e,n))&&(_=Zc(c,"onBeforeInput"),0<_.length&&(E=new My("onBeforeInput","beforeinput",null,n,f),d.push({event:E,listeners:_}),E.data=N)),T5(d,e,c,n,f)}Ex(d,t)})}function ll(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zc(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,r=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||r===null||(o=Pi(e,n),o!=null&&a.unshift(ll(e,o,r)),o=Pi(e,t),o!=null&&a.push(ll(e,o,r))),e.tag===3)return a;e=e.return}return[]}function M5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tv(e,t,n,a,o){for(var r=t._reactName,i=[];n!==null&&n!==a;){var l=n,u=l.alternate,c=l.stateNode;if(l=l.tag,u!==null&&u===a)break;l!==5&&l!==26&&l!==27||c===null||(u=c,o?(c=Pi(n,r),c!=null&&i.unshift(ll(n,c,u))):o||(c=Pi(n,r),c!=null&&i.push(ll(n,c,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var z5=/\r\n?/g,A5=/\u0000|\uFFFD/g;function Cv(e){return(typeof e=="string"?e:""+e).replace(z5,`
|
|
9
|
+
`).replace(A5,"")}function Nx(e,t){return t=Cv(t),Cv(e)===t}function ve(e,t,n,a,o,r){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Hr(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Hr(e,""+a);else return;break;case"className":Lu(e,"class",a);break;case"tabIndex":Lu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Lu(e,n,a);break;case"style":w1(e,a,r);return;case"data":if(t!=="object"){Lu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ec(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&ve(e,t,"name",o.name,o,null),ve(e,t,"formEncType",o.formEncType,o,null),ve(e,t,"formMethod",o.formMethod,o,null),ve(e,t,"formTarget",o.formTarget,o,null)):(ve(e,t,"encType",o.encType,o,null),ve(e,t,"method",o.method,o,null),ve(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ec(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=En);return;case"onScroll":a!=null&&le("scroll",e);return;case"onScrollEnd":a!=null&&le("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(V(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(V(60));r?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=ec(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":le("beforetoggle",e),le("toggle",e),Wu(e,"popover",a);break;case"xlinkActuate":Zn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Wu(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=FM.get(n)||n,Wu(e,n,a);else return}de=!0}function Sm(e,t,n,a,o,r){switch(n){case"style":w1(e,a,r);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(V(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(V(60));r?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")Hr(e,a);else if(typeof a=="number"||typeof a=="bigint")Hr(e,""+a);else return;break;case"onScroll":a!=null&&le("scroll",e);return;case"onScrollEnd":a!=null&&le("scrollend",e);return;case"onClick":a!=null&&(e.onclick=En);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!p1.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),r=n.slice(2,o?n.length-7:void 0),t=e[Tt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(r,t,o),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(r,a,o);break e}de=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):Wu(e,n,a)}return}de=!0}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var a=!1,o=!1,r;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(i!=null)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(V(137,t));default:ve(e,t,r,i,n,null)}}o&&ve(e,t,"srcSet",n.srcSet,n,null),a&&ve(e,t,"src",n.src,n,null);return;case"input":le("invalid",e);var l=r=i=o=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var f=n[a];if(f!=null)switch(a){case"name":o=f;break;case"type":i=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":r=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(V(137,t));break;default:ve(e,t,a,f,n,null)}}b1(e,r,l,u,c,i,o,!1);return;case"select":le("invalid",e),a=i=r=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"multiple":a=l;default:ve(e,t,o,l,n,null)}t=r,n=i,e.multiple=!!a,t!=null?Er(e,!!a,t,!1):n!=null&&Er(e,!!a,n,!0);return;case"textarea":le("invalid",e),r=o=a=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(V(91));break;default:ve(e,t,i,l,n,null)}S1(e,a,o,r);return;case"option":for(u in n)n.hasOwnProperty(u)&&(a=n[u],a!=null)&&(u==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":ve(e,t,u,a,n,null));return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(a=0;a<il.length;a++)le(il[a],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(a=n[c],a!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(V(137,t));default:ve(e,t,c,a,n,null)}return;default:if(Vm(t)){for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!==void 0&&Sm(e,t,f,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(a=n[l],a!=null&&ve(e,t,l,a,n,null))}var O5={};function D5(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,r=null,i=null,l=null,u=null,c=null,f=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=d;default:a.hasOwnProperty(h)||ve(e,t,h,null,a,d)}}for(var s in a){var h=a[s];if(d=n[s],a.hasOwnProperty(s)&&(h!=null||d!=null))switch(s){case"type":h!==d&&(de=!0),r=h;break;case"name":h!==d&&(de=!0),o=h;break;case"checked":h!==d&&(de=!0),c=h;break;case"defaultChecked":h!==d&&(de=!0),f=h;break;case"value":h!==d&&(de=!0),i=h;break;case"defaultValue":h!==d&&(de=!0),l=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(V(137,t));break;default:h!==d&&ve(e,t,s,h,a,d)}}Rd(e,i,l,u,c,f,r,o);return;case"select":h=i=l=s=null;for(r in n)if(u=n[r],n.hasOwnProperty(r)&&u!=null)switch(r){case"value":break;case"multiple":h=u;default:a.hasOwnProperty(r)||ve(e,t,r,null,a,u)}for(o in a)if(r=a[o],u=n[o],a.hasOwnProperty(o)&&(r!=null||u!=null))switch(o){case"value":r!==u&&(de=!0),s=r;break;case"defaultValue":r!==u&&(de=!0),l=r;break;case"multiple":r!==u&&(de=!0),i=r;default:r!==u&&ve(e,t,o,r,a,u)}t=l,n=i,a=h,s!=null?Er(e,!!n,s,!1):!!a!=!!n&&(t!=null?Er(e,!!n,t,!0):Er(e,!!n,n?[]:"",!1));return;case"textarea":h=s=null;for(l in n)if(o=n[l],n.hasOwnProperty(l)&&o!=null&&!a.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:ve(e,t,l,null,a,o)}for(i in a)if(o=a[i],r=n[i],a.hasOwnProperty(i)&&(o!=null||r!=null))switch(i){case"value":o!==r&&(de=!0),s=o;break;case"defaultValue":o!==r&&(de=!0),h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(V(91));break;default:o!==r&&ve(e,t,i,o,a,r)}x1(e,s,h);return;case"option":for(var y in n)s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y)&&(y==="selected"?e.selected=!1:ve(e,t,y,null,a,s));for(u in a)s=a[u],h=n[u],a.hasOwnProperty(u)&&s!==h&&(s!=null||h!=null)&&(u==="selected"?(s!==h&&(de=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol"):ve(e,t,u,s,a,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var x in n)s=n[x],n.hasOwnProperty(x)&&s!=null&&!a.hasOwnProperty(x)&&ve(e,t,x,null,a,s);for(c in a)if(s=a[c],h=n[c],a.hasOwnProperty(c)&&s!==h&&(s!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(V(137,t));break;default:ve(e,t,c,s,a,h)}return;default:if(Vm(t)){for(var S in n)s=n[S],n.hasOwnProperty(S)&&s!==void 0&&!a.hasOwnProperty(S)&&Sm(e,t,S,void 0,a,s);for(f in a)s=a[f],h=n[f],!a.hasOwnProperty(f)||s===h||s===void 0&&h===void 0||Sm(e,t,f,s,a,h);return}}for(var g in n)s=n[g],n.hasOwnProperty(g)&&s!=null&&!a.hasOwnProperty(g)&&ve(e,t,g,null,a,s);for(d in a)s=a[d],h=n[d],!a.hasOwnProperty(d)||s===h||s==null&&h==null||ve(e,t,d,s,a,h)}function Mv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function R5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],r=o.transferSize,i=o.initiatorType,l=o.duration;if(r&&l&&Mv(i)){for(i=0,l=o.responseEnd,a+=1;a<n.length;a++){var u=n[a],c=u.startTime;if(c>l)break;var f=u.transferSize,d=u.initiatorType;f&&Mv(d)&&(u=u.responseEnd,i+=f*(u<l?1:(l-c)/(u-c)))}if(--a,t+=8*(r+i)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var wm=null,Em=null;function ul(e){return e.nodeType===9?e:e.ownerDocument}function zv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tx(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Cx(e,t,n,a){return n=ul(n).createElement(e),n[et]=a,n[Tt]=t,ot(n,e,t),je(n),n}function _m(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vd=null;function H5(){var e=window.event;return e&&e.type==="popstate"?e===vd?!1:(vd=e,!0):(vd=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,B5=typeof clearTimeout=="function"?clearTimeout:void 0,Av=typeof Promise=="function"?Promise:void 0,Ov=typeof requestAnimationFrame=="function"?requestAnimationFrame:Eh,L5=typeof queueMicrotask=="function"?queueMicrotask:typeof Av<"u"?function(e){return Av.resolve(null).then(e).catch(V5)}:Eh;function V5(e){setTimeout(function(){throw e})}function Ga(e){return e==="head"}function Dv(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Zr(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")xd(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xd(n);for(var r=n.firstChild;r;){var i=r.nextSibling,l=r.nodeName;r[yl]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=i}}else n==="body"&&xd(e.ownerDocument.body);n=o}while(n);Zr(t)}function Rv(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Mx(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var o=a=0;o<t.length;o++){var r=t[o];0<r.width&&0<r.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function zx(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Ax(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Nm(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Ax(t,n,e)}function U5(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ax(t,n,e)}function Y5(e){return e.documentElement.clientHeight}function k5(e){this.addEventListener("load",e),this.addEventListener("error",e)}function q5(e,t,n,a,o,r,i,l,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,h=s.navigation&&s.navigation.transition,y=c.fonts.status;a();var x=[];if(y==="loaded"&&(Y5(c),c.fonts.status==="loading"&&x.push(c.fonts.ready)),y=x.length,e!==null)for(var S=e.suspenseyImages,g=0,p=0;p<S.length;p++){var m=S[p];if(!m.complete){var v=m.getBoundingClientRect();if(0<v.bottom&&0<v.right&&v.top<s.innerHeight&&v.left<s.innerWidth){if(g+=Gx(m),g>gc){x.length=y;break}m=new Promise(k5.bind(m)),x.push(m)}}}if(0<x.length)return s=Promise.race([Promise.all(x),new Promise(function(b){return setTimeout(b,500)})]).then(o,o),(h?Promise.allSettled([h.finished,s]):s).then(r,r);if(o(),h)return h.finished.then(r,r);r()},types:n});c.__reactViewTransition=f;var d=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),h=0;h<s.length;h++){var y=s[h],x=y.effect,S=x.pseudoElement;if(S!=null&&S.startsWith("::view-transition")){d.push(y),y=x.getKeyframes();for(var g=S=void 0,p=!0,m=0;m<y.length;m++){var v=y[m],b=v.width;if(S===void 0)S=b;else if(S!==b){p=!1;break}if(b=v.height,g===void 0)g=b;else if(g!==b){p=!1;break}delete v.width,delete v.height,v.transform==="none"&&delete v.transform}p&&S!==void 0&&g!==void 0&&(x.setKeyframes(y),p=getComputedStyle(x.target,x.pseudoElement),p.width!==S||p.height!==g)&&(p=y[0],p.width=S,p.height=g,p=y[y.length-1],p.width=S,p.height=g,x.setKeyframes(y))}}i()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{typeof s=="object"&&s!==null&&s.name==="InvalidStateError"&&(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null),s!==null&&u(s)}finally{a(),o(),i()}}),f.finished.finally(function(){for(var s=0;s<d.length;s++)d[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),l()}),f}catch{return a(),o(),i(),null}}function ho(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ho.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:we({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};ho.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],o=0;o<n.length;o++){var r=n[o].effect;r!==null&&r.target===e&&r.pseudoElement===t&&a.push(n[o])}return a};ho.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ox(e){return{name:e,group:new ho("group",e),imagePair:new ho("image-pair",e),old:new ho("old",e),new:new ho("new",e)}}function Yt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Yt.prototype.addEventListener=function(e,t,n){var a=null,o=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(Dx(r,e,t,n)===-1){var i=this,l=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(l=function(u){i.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),a!==null&&(o=i.removeEventListener.bind(i,e,t,n),a.addEventListener("abort",o,{once:!0}),o=a.removeEventListener.bind(a,"abort",o)),a=kr(n),r.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:l,cleanup:o}),Nt(this._fragmentFiber.child,!1,G5,e,l,a)}this._eventListeners=r}};function G5(e,t,n,a){return Xe(e).addEventListener(t,n,a),!1}Yt.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=Dx(a,e,t,n),t!==-1)){var o=a[t];n=o.attachedListener;var r=o.cleanup;o=kr(o.optionsOrUseCapture),Nt(this._fragmentFiber.child,!1,X5,e,n,o),a.splice(t,1),r!==null&&r()}};function X5(e,t,n,a){return Xe(e).removeEventListener(t,n,a),!1}function kr(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Hv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Dx(e,t,n,a){if(e.length===0)return-1;a=Hv(a);for(var o=0;o<e.length;o++){var r=e[o];if(r.type===t&&r.listener===n&&Hv(r.optionsOrUseCapture)===a)return o}return-1}Yt.prototype.dispatchEvent=function(e){var t=Mo(this._fragmentFiber);if(t===null)return!0;t=Xe(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var o=0;o<n.length;o++){var r=n[o];a.addEventListener(r.type,r.attachedListener,kr(r.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(o=0;o<n.length;o++)r=n[o],a.removeEventListener(r.type,r.attachedListener,kr(r.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)};Yt.prototype.focus=function(e){Nt(this._fragmentFiber.child,!0,Rx,e,void 0,void 0)};function Rx(e,t){return e.tag===6?!1:(e=Xe(e),t4(e,t))}Yt.prototype.focusLast=function(e){var t=[];Nt(this._fragmentFiber.child,!0,_h,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Rx(t[n],e);n--);};function _h(e,t){return t.push(e),!1}Yt.prototype.blur=function(){var e=Mo(this._fragmentFiber);e!==null&&(e=Xe(e),e=ul(e).activeElement,e!==null&&Nt(this._fragmentFiber.child,!1,Z5,e,void 0,void 0))};function Z5(e,t){return e.tag===6?!1:(e=Xe(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Yt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Nt(this._fragmentFiber.child,!1,$5,e,void 0,void 0)};function $5(e,t){return e.tag===6||(e=Xe(e),t.observe(e)),!1}Yt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Nt(this._fragmentFiber.child,!1,I5,e,void 0,void 0);for(var n=t=0;n<un.length;n++){var a=un[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):un[t++]=a}un.length=t}};function I5(e,t){return e.tag===6||(e=Xe(e),t.unobserve(e)),!1}var un=[],bd=!1;function Q5(e,t,n){un.push({fragmentInstance:e,observer:t,instance:n}),bd||(bd=!0,n4(function(){bd=!1;var a=un;un=[];for(var o=0;o<a.length;o++){var r=a[o];r.observer.unobserve(r.instance)}}))}Yt.prototype.getClientRects=function(){var e=[];return Nt(this._fragmentFiber.child,!1,j5,e,void 0,void 0),e};function j5(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Xe(e),t.push.apply(t,e.getClientRects());return!1}Yt.prototype.getRootNode=function(e){var t=Mo(this._fragmentFiber);return t===null?this:Xe(t).getRootNode(e)};Yt.prototype.compareDocumentPosition=function(e){var t=Mo(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Nt(this._fragmentFiber.child,!1,_h,n,void 0,void 0);var a=Xe(t);if(n.length===0){if(n=a,my(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var o=a=n.compareDocumentPosition(e);return n===e?o=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=t1(t)[1],n===null?o=Node.DOCUMENT_POSITION_PRECEDING:(e=Xe(n).compareDocumentPosition(e),o=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),o|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Xe(n[0]),o=Xe(n[n.length-1]);var r=my(this._fragmentFiber)?t.parentElement:a;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),l=o.compareDocumentPosition(e),u=i&Node.DOCUMENT_POSITION_CONTAINED_BY||l&Node.DOCUMENT_POSITION_CONTAINED_BY;return l=a&&r&&i&Node.DOCUMENT_POSITION_FOLLOWING&&l&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||r&&o===e||u||l?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!r&&o===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||K5(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function K5(e,t,n,a,o){var r=mo(o);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!r)e:{for(;r!==null;){if(r.tag===7&&(r===t||r.alternate===t)){n=!0;break e}r=r.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=o.ownerDocument,o===r||o===r.documentElement||o===r.body;e:{for(r=t,t=Mo(t);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==t&&r.alternate!==t)){r=!0;break e}r=r.return}r=!1}return r}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!r)&&!(t=r===n)&&(t=wd(n,r,hy),t===null?t=!1:(Nt(t,!0,NM,r,n),r=sr,sr=null,t=r!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!r)&&!(t=r===a)&&(t=wd(a,r,hy),t===null?t=!1:(Nt(t,!0,TM,r,a),r=sr,Sd=sr=null,t=r!==null)),t):!1}function Bv(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Yt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(V(566));var t=[];Nt(this._fragmentFiber.child,!1,_h,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=t1(this._fragmentFiber);if(a=n?a[1]||a[0]||Mo(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=Xe(a),Bv(e,n);return}if(a=Xe(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var o=t[a];o.tag===6?(o=Xe(o),Bv(o,n)):Xe(o).scrollIntoView(e),a+=n?-1:1}};function J5(e,t){return e=Xe(e),Hx(e,t),!1}function Hx(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Bx(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];e.addEventListener(o.type,o.attachedListener,kr(o.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(r){for(var i=0,l=0;l<un.length;l++){var u=un[l];(u.fragmentInstance!==t||u.observer!==r||u.instance!==e)&&(un[i++]=u)}un.length=i,r.observe(e)}),Hx(e,t))}function F5(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];e.removeEventListener(o.type,o.attachedListener,kr(o.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(r){typeof r.rootMargin=="string"?Q5(t,r,e):r.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Tm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Tm(n),jc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function P5(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[yl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function W5(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ft(e.nextSibling),e===null))return null;return e}function Lx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function Cm(e){return e.data==="$?"||e.data==="$~"}function Nh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function e4(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ft(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mm=null;function Lv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ft(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Vv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function t4(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function n4(e){Ov(function(){Ov(function(t){return e(t)})})}function Vx(e,t,n){switch(t=ul(n),e){case"html":if(e=t.documentElement,!e)throw Error(V(452));return e;case"head":if(e=t.head,!e)throw Error(V(453));return e;case"body":if(e=t.body,!e)throw Error(V(454));return e;default:throw Error(V(451))}}function Ux(e,t,n){for(var a in n){var o=n[a];n.hasOwnProperty(a)&&o!=null&&ve(e,t,a,null,O5,o)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===En&&(e.onclick=null),jc(e)}function xd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jc(e)}var Pt=new Map,Uv=new Set;function cl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var oa=he.d;he.d={f:a4,r:o4,D:r4,C:i4,L:l4,m:u4,X:s4,S:c4,M:f4};function a4(){var e=oa.f(),t=us();return e||t}function o4(e){var t=Ir(e);t!==null&&t.tag===5&&t.type==="form"?wb(t):oa.r(e)}var Jr=typeof document>"u"?null:document;function Yx(e,t,n){var a=Jr;if(a&&typeof t=="string"&&t){var o=jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Uv.has(o)||(Uv.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),ot(t,"link",e),je(t),a.head.appendChild(t)))}}function r4(e){oa.D(e),Yx("dns-prefetch",e,null)}function i4(e,t){oa.C(e,t),Yx("preconnect",e,t)}function l4(e,t,n){oa.L(e,t,n);var a=Jr;if(a&&e&&t){var o='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+jt(n.imageSizes)+'"]')):o+='[href="'+jt(e)+'"]';var r=o;switch(t){case"style":r=qr(e);break;case"script":r=Fr(e)}if(!(Pt.has(r)||(e=we({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Pt.set(r,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(El(r))||t==="script"&&a.querySelector(_l(r))))){var i=a.createElement("link");ot(i,"link",e),t==="style"&&(i[wc]=!0,i.onload=i.onerror=function(){h1(i)}),je(i),a.head.appendChild(i)}}}function u4(e,t){oa.m(e,t);var n=Jr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',r=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Fr(e)}if(!Pt.has(r)&&(e=we({rel:"modulepreload",href:e},t),Pt.set(r,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_l(r)))return}a=n.createElement("link"),ot(a,"link",e),je(a),n.head.appendChild(a)}}}function c4(e,t,n){oa.S(e,t,n);var a=Jr;if(a&&e){var o=wr(a).hoistableStyles,r=qr(e);t=t||"default";var i=o.get(r);if(!i){var l={loading:0,preload:null};if(i=a.querySelector(El(r)))l.loading=5;else{e=we({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Pt.get(r))&&Th(e,n);var u=i=a.createElement("link");je(u),ot(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){l.loading|=1}),u.addEventListener("error",function(){l.loading|=2}),l.loading|=4,mc(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:l},o.set(r,i)}}}function s4(e,t){oa.X(e,t);var n=Jr;if(n&&e){var a=wr(n).hoistableScripts,o=Fr(e),r=a.get(o);r||(r=n.querySelector(_l(o)),r||(e=we({src:e,async:!0},t),(t=Pt.get(o))&&Ch(e,t),r=n.createElement("script"),je(r),ot(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(o,r))}}function f4(e,t){oa.M(e,t);var n=Jr;if(n&&e){var a=wr(n).hoistableScripts,o=Fr(e),r=a.get(o);r||(r=n.querySelector(_l(o)),r||(e=we({src:e,async:!0,type:"module"},t),(t=Pt.get(o))&&Ch(e,t),r=n.createElement("script"),je(r),ot(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(o,r))}}function Yv(e,t,n,a){var o=(o=Ta.current)?cl(o):null;if(!o)throw Error(V(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=qr(n.href),t=wr(o).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=qr(n.href);var r=wr(o).hoistableStyles,i=r.get(e);if(i||(o=o.ownerDocument||o,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,i),(r=o.querySelector(El(e)))?r._p||(i.instance=r,i.state.loading=5):(r=Pt.get(e),r||(r={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Pt.set(e,r)),d4(o,e,r,i.state))),t&&a===null)throw Error(V(528,""));return i}if(t&&a!==null)throw Error(V(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Fr(n),t=wr(o).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(V(444,e))}}function qr(e){return'href="'+jt(e)+'"'}function El(e){return'link[rel="stylesheet"]['+e+"]"}function kx(e){return we({},e,{"data-precedence":e.precedence,precedence:null})}function d4(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[wc]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[wc]=!0,t.onload=t.onerror=h1.bind(null,t),ot(t,"link",n),je(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Fr(e){return'[src="'+jt(e)+'"]'}function _l(e){return"script[async]"+e}function kv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(n.href)+'"]');if(a)return t.instance=a,je(a),a;var o=we({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),je(a),ot(a,"style",o),mc(a,n.precedence,e),t.instance=a;case"stylesheet":o=qr(n.href);var r=e.querySelector(El(o));if(r)return t.state.loading|=4,t.instance=r,je(r),r;a=kx(n),(o=Pt.get(o))&&Th(a,o),r=(e.ownerDocument||e).createElement("link"),je(r);var i=r;return i._p=new Promise(function(l,u){i.onload=l,i.onerror=u}),ot(r,"link",a),t.state.loading|=4,mc(r,n.precedence,e),t.instance=r;case"script":return r=Fr(n.src),(o=e.querySelector(_l(r)))?(t.instance=o,je(o),o):(a=n,(o=Pt.get(r))&&(a=we({},n),Ch(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),je(o),ot(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(V(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,mc(a,n.precedence,e));return t.instance}function mc(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,r=o,i=0;i<a.length;i++){var l=a[i];if(l.dataset.precedence===t)r=l;else if(r!==o)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Th(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ch(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hc=null;function qv(e,t,n){if(hc===null){var a=new Map,o=hc=new Map;o.set(n,a)}else o=hc,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var r=n[o];if(!(r[yl]||r[et]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var i=r.getAttribute(t)||"";i=e+i;var l=a.get(i);l?l.push(r):a.set(i,[r])}}return a}function zm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function m4(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gv(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function qx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Gx(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Xv(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Gx(t),e.suspenseyImages.push(t)),e=p4.bind(e),t.decode().then(e,e))}function h4(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=qr(a.href),r=t.querySelector(El(o));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=sl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,je(r);return}r=t.ownerDocument||t,a=kx(a),(o=Pt.get(o))&&Th(a,o),r=r.createElement("link"),je(r);var i=r;i._p=new Promise(function(l,u){i.onload=l,i.onerror=u}),ot(r,"link",a),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=sl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var gc=0;function g4(e,t){return e.stylesheets&&e.count===0&&pc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&pc(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&gc===0&&(gc=62500*R5());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pc(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>gc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Xx(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)pc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function sl(){this.count--,Xx(this)}function p4(){this.imgCount--,Xx(this)}var $c=null;function pc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$c=new Map,t.forEach(y4,e),$c=null,sl.call(e))}function y4(e,t){if(!(t.state.loading&4)){var n=$c.get(e);if(n)var a=n.get(null);else{n=new Map,$c.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<o.length;r++){var i=o[r];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),a=i)}a&&n.set(null,a)}o=t.instance,i=o.getAttribute("data-precedence"),r=n.get(i)||a,r===a&&n.set(null,o),n.set(i,o),this.count++,a=sl.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),r?r.parentNode.insertBefore(o,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Gr={$$typeof:wn,Provider:null,Consumer:null,_currentValue:go,_currentValue2:go,_threadCount:0};function v4(e,t,n,a,o,r,i,l,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=jf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jf(0),this.hiddenUpdates=jf(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=r,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Zx(e,t,n,a,o,r,i,l,u,c,f,d){return e=new v4(e,t,n,i,u,c,f,d,l),t=1,r===!0&&(t|=24),r=Et(3,null,null,t),e.current=r,r.stateNode=e,t=Qm(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:t},Jm(r),e}function $x(e){return e?(e=vr,e):vr}function Ix(e,t,n,a,o,r){o=$x(o),a.context===null?a.context=o:a.pendingContext=o,a=Ma(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=za(e,a,t),n!==null&&(_t(n,e,t),Gi(n,e,t))}function Zv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mh(e,t){Zv(e,t),(e=e.alternate)&&Zv(e,t)}function Qx(e){if(e.tag===13||e.tag===31){var t=Oo(e,67108864);t!==null&&_t(t,e,67108864),Mh(e,67108864)}}function $v(e){if(e.tag===13||e.tag===31){var t=Vt();t=Bm(t);var n=Oo(e,t);n!==null&&_t(n,e,t),Mh(e,t)}}var Xr=!0;function b4(e,t,n,a){var o=F.T;F.T=null;var r=he.p;try{he.p=2,zh(e,t,n,a)}finally{he.p=r,F.T=o}}function x4(e,t,n,a){var o=F.T;F.T=null;var r=he.p;try{he.p=8,zh(e,t,n,a)}finally{he.p=r,F.T=o}}function zh(e,t,n,a){if(Xr){var o=Am(a);if(o===null)yd(e,t,a,Ic,n),Iv(e,a);else if(w4(o,e,t,n,a))a.stopPropagation();else if(Iv(e,a),t&4&&-1<S4.indexOf(e)){for(;o!==null;){var r=Ir(o);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var i=co(r.pendingLanes);if(i!==0){var l=r;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var u=1<<31-Lt(i);l.entanglements[1]|=u,i&=~u}An(r),(me&6)===0&&(kc=Ht()+500,wl(0,!1))}}break;case 31:case 13:l=Oo(r,2),l!==null&&_t(l,r,2),us(),Mh(r,2)}if(r=Am(a),r===null&&yd(e,t,a,Ic,n),r===o)break;o=r}o!==null&&a.stopPropagation()}else yd(e,t,a,null,n)}}function Am(e){return e=Um(e),Ah(e)}var Ic=null;function Ah(e){if(Ic=null,e=mo(e),e!==null){var t=ml(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Pv(t),e!==null)return e;e=null}else if(n===31){if(e=Wv(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 Ic=e,null}function jx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(BM()){case r1:return 2;case i1:return 8;case Sc:case LM:return 32;case l1:return 268435456;default:return 32}default:return 32}}var Om=!1,Ra=null,Ha=null,Ba=null,fl=new Map,dl=new Map,ba=[],S4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Iv(e,t){switch(e){case"focusin":case"focusout":Ra=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(t.pointerId)}}function Oi(e,t,n,a,o,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[o]},t!==null&&(t=Ir(t),t!==null&&Qx(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function w4(e,t,n,a,o){switch(t){case"focusin":return Ra=Oi(Ra,e,t,n,a,o),!0;case"dragenter":return Ha=Oi(Ha,e,t,n,a,o),!0;case"mouseover":return Ba=Oi(Ba,e,t,n,a,o),!0;case"pointerover":var r=o.pointerId;return fl.set(r,Oi(fl.get(r)||null,e,t,n,a,o)),!0;case"gotpointercapture":return r=o.pointerId,dl.set(r,Oi(dl.get(r)||null,e,t,n,a,o)),!0}return!1}function Kx(e){var t=mo(e.target);if(t!==null){var n=ml(t);if(n!==null){if(t=n.tag,t===13){if(t=Pv(n),t!==null){e.blockedOn=t,vy(e.priority,function(){$v(n)});return}}else if(t===31){if(t=Wv(n),t!==null){e.blockedOn=t,vy(e.priority,function(){$v(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 yc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Am(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Hd=a,n.target.dispatchEvent(a),Hd=null}else return t=Ir(n),t!==null&&Qx(t),e.blockedOn=n,!1;t.shift()}return!0}function Qv(e,t,n){yc(e)&&n.delete(t)}function E4(){Om=!1,Ra!==null&&yc(Ra)&&(Ra=null),Ha!==null&&yc(Ha)&&(Ha=null),Ba!==null&&yc(Ba)&&(Ba=null),fl.forEach(Qv),dl.forEach(Qv)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,Om||(Om=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,E4)))}var Pu=null;function jv(e){Pu!==e&&(Pu=e,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,function(){Pu===e&&(Pu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Ah(a||n)===null)continue;break}var r=Ir(n);r!==null&&(e.splice(t,3),t-=3,Jd(r,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Zr(e){function t(u){return Fu(u,e)}Ra!==null&&Fu(Ra,e),Ha!==null&&Fu(Ha,e),Ba!==null&&Fu(Ba,e),fl.forEach(t),dl.forEach(t);for(var n=0;n<ba.length;n++){var a=ba[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ba.length&&(n=ba[0],n.blockedOn===null);)Kx(n),n.blockedOn===null&&ba.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],r=n[a+1],i=o[Tt]||null;if(typeof r=="function")i||jv(n);else if(i){var l=null;if(r&&r.hasAttribute("formAction")){if(o=r,i=r[Tt]||null)l=i.formAction;else if(Ah(o)!==null)continue}else l=i.action;typeof l=="function"?n[a+1]=l:(n.splice(a,3),a-=3),jv(n)}}}function Jx(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(i){return o=i})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Oh(e){this._internalRoot=e}fs.prototype.render=Oh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));var n=t.current,a=Vt();Ix(n,a,e,t,null,null)};fs.prototype.unmount=Oh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ix(e.current,2,null,e,null,null),us(),t[$r]=null}};function fs(e){this._internalRoot=e}fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=m1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ba.length&&t!==0&&t<ba[n].priority;n++);ba.splice(n,0,e),n===0&&Kx(e)}};var Kv=Jv.version;if(Kv!=="19.3.1")throw Error(V(527,Kv,"19.3.1"));he.findDOMNode=function(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=_M(t),e=e!==null?e1(e):null,e=e===null?null:e.stateNode,e};var _4={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Di=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Di.isDisabled&&Di.supportsFiber))try{hl=Di.inject(_4),Bt=Di}catch{}var Di;ds.createRoot=function(e,t){if(!Fv(e))throw Error(V(299));var n=!1,a="",o=Ab,r=Ob,i=Db;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Zx(e,1,!1,null,null,n,a,null,o,r,i,Jx),e[$r]=t.current,wh(e),new Oh(t)};ds.hydrateRoot=function(e,t,n){if(!Fv(e))throw Error(V(299));var a=!1,o="",r=Ab,i=Ob,l=Db,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Zx(e,1,!0,t,n??null,a,o,u,r,i,l,Jx),t.context=$x(null),n=t.current,a=Vt(),a=Bm(a),o=Ma(a),o.callback=null,za(n,o,a),n=a,t.current.lanes=n,pl(t,n),An(t),e[$r]=t.current,wh(e),new fs(t)};ds.version="19.3.1"});var eS=vt((hH,Wx)=>{"use strict";function Px(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Px)}catch(e){console.error(e)}}Px(),Wx.exports=Fx()});var rS=vt(ms=>{"use strict";var C4=Symbol.for("react.transitional.element"),M4=Symbol.for("react.fragment");function oS(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:C4,type:e,key:a,ref:t!==void 0?t:null,props:n}}ms.Fragment=M4;ms.jsx=oS;ms.jsxs=oS});var Pr=vt((bH,iS)=>{"use strict";iS.exports=rS()});var ZE=vt(XE=>{"use strict";var di=da();function wD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ED=typeof Object.is=="function"?Object.is:wD,_D=di.useState,ND=di.useEffect,TD=di.useLayoutEffect,CD=di.useDebugValue;function MD(e,t){var n=t(),a=_D({inst:{value:n,getSnapshot:t}}),o=a[0].inst,r=a[1];return TD(function(){o.value=n,o.getSnapshot=t,bg(o)&&r({inst:o})},[e,n,t]),ND(function(){return bg(o)&&r({inst:o}),e(function(){bg(o)&&r({inst:o})})},[e]),CD(n),n}function bg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ED(e,n)}catch{return!0}}function zD(e,t){return t()}var AD=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zD:MD;XE.useSyncExternalStore=di.useSyncExternalStore!==void 0?di.useSyncExternalStore:AD});var IE=vt((dU,$E)=>{"use strict";$E.exports=ZE()});var jE=vt(QE=>{"use strict";var rf=da(),OD=IE();function DD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var RD=typeof Object.is=="function"?Object.is:DD,HD=OD.useSyncExternalStore,BD=rf.useRef,LD=rf.useEffect,VD=rf.useMemo,UD=rf.useDebugValue;QE.useSyncExternalStoreWithSelector=function(e,t,n,a,o){var r=BD(null);if(r.current===null){var i={hasValue:!1,value:null};r.current=i}else i=r.current;r=VD(function(){function u(h){if(!c){if(c=!0,f=h,h=a(h),o!==void 0&&i.hasValue){var y=i.value;if(o(y,h))return d=y}return d=h}if(y=d,RD(f,h))return y;var x=a(h);return o!==void 0&&o(y,x)?(f=h,y):(f=h,d=x)}var c=!1,f,d,s=n===void 0?null:n;return[function(){return u(t())},s===null?void 0:function(){return u(s())}]},[t,n,a,o]);var l=HD(e,r[0],r[1]);return LD(function(){i.hasValue=!0,i.value=l},[l]),UD(l),l}});var JE=vt((hU,KE)=>{"use strict";KE.exports=jE()});var Ko="comm",fu="rule",du="decl";var dp="@media",mp="@import";var hp="@supports";var gp="@namespace",bi="@keyframes";var mu="@layer",pp="@scope";var yp=Math.abs,ro=String.fromCharCode;function hu(e){return e.trim()}function xi(e,t,n){return e.replace(t,n)}function Yn(e,t){return e.charCodeAt(t)|0}function kn(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function gu(e){return e.length}function Jo(e,t){return t.push(e),e}var pu=1,Fo=1,vp=0,qt=0,Ue=0,Wo="";function yu(e,t,n,a,o,r,i,l){return{value:e,root:t,parent:n,type:a,props:o,children:r,line:pu,column:Fo,length:i,return:"",siblings:l}}function bp(){return Ue}function xp(){return Ue=qt>0?Yn(Wo,--qt):0,Fo--,Ue===10&&(Fo=1,pu--),Ue}function Gt(){return Ue=qt<vp?Yn(Wo,qt++):0,Fo++,Ue===10&&(Fo=1,pu++),Ue}function qn(){return Yn(Wo,qt)}function Si(){return qt}function vu(e,t){return kn(Wo,e,t)}function Po(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Sp(e){return pu=Fo=1,vp=bt(Wo=e),qt=0,[]}function wp(e){return Wo="",e}function bu(e){return hu(vu(qt-1,Sf(e===91?e+2:e===40?e+1:e)))}function Ep(e){for(;(Ue=qn())&&Ue<33;)Gt();return Po(e)>2||Po(Ue)>3?"":" "}function _p(e,t){for(;--t&&Gt()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return vu(e,Si()+(t<6&&qn()==32&&Gt()==32))}function Sf(e){for(;Gt();)switch(Ue){case e:return qt;case 34:case 39:e!==34&&e!==39&&Sf(Ue);break;case 40:e===41&&Sf(e);break;case 92:Gt();break}return qt}function Np(e,t){for(;Gt()&&e+Ue!==57;)if(e+Ue===84&&qn()===47)break;return"/*"+vu(t,qt-1)+"*"+ro(e===47?e:Gt())}function Tp(e){for(;!Po(qn());)Gt();return vu(e,qt)}function zp(e){return wp(xu("",null,null,null,[""],e=Sp(e),0,[0],e))}function xu(e,t,n,a,o,r,i,l,u){for(var c=0,f=0,d=i,s=0,h=0,y=0,x=1,S=1,g=1,p=0,m=0,v="",b=o,E=r,N=a,_=v;S;)switch(y=m,m=Gt()){case 40:y!=108&&Yn(_,d-1)==58?(p++,_+="("):_+=bu(m);break;case 41:p--,_+=")";break;case 34:case 39:case 91:_+=bu(m);break;case 9:case 10:case 13:case 32:if(p>0){_+=ro(m);break}_+=Ep(y);break;case 92:_+=_p(Si()-1,7);continue;case 47:switch(qn()){case 42:case 47:Jo(DN(Np(Gt(),Si()),t,n,u),u),(Po(y||1)==5||Po(qn()||1)==5)&&bt(_)&&kn(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*x:l[c++]=bt(_)*g;case 125*x:case 59:case 0:if(p>0&&m){_+=ro(m);break}switch(m){case 0:case 125:S=0;case 59+f:g==-1&&(_=xi(_,/\f/g,"")),h>0&&(bt(_)-d||x===0)&&Jo(h>32?Mp(_+";",a,n,d-1,u):Mp(xi(_," ","")+";",a,n,d-2,u),u);break;case 59:_+=";";default:if(Jo(N=Cp(_,t,n,c,f,o,l,v,b=[],E=[],d,r),r),m===123)if(f===0)xu(_,t,N,N,b,r,d,l,E);else{switch(s){case 99:if(Yn(_,3)===110)break;case 108:if(Yn(_,2)===97)break;default:f=0;case 100:case 109:case 115:}f?xu(e,N,N,a&&Jo(Cp(e,N,N,0,0,o,l,v,o,b=[],d,E),E),o,E,d,l,a?b:E):xu(_,N,N,N,[""],E,0,l,E)}}c=f=h=0,x=g=1,v=_="",d=i;break;case 58:d=1+bt(_),h=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&xp()==125)continue}switch(_+=ro(m),m*x){case 38:g=f>0?1:(_+="\f",-1);break;case 44:if(p>0)break;l[c++]=(bt(_)-1)*g,g=1;break;case 64:qn()===45&&(_+=bu(Gt())),s=qn(),f=d=bt(v=_+=Tp(Si())),m++;break;case 45:y===45&&bt(_)==2&&(x=0)}}return r}function Cp(e,t,n,a,o,r,i,l,u,c,f,d){for(var s=o-1,h=o===0?r:[""],y=gu(h),x=0,S=0,g=0;x<a;++x)for(var p=0,m=kn(e,s+1,s=yp(S=i[x])),v=e;p<y;++p)(v=hu(S>0?h[p]+" "+m:xi(m,/&\f/g,h[p])))&&(u[g++]=v);return yu(e,t,n,o===0?fu:l,u,c,f,d)}function DN(e,t,n,a){return yu(e,t,n,Ko,ro(bp()),kn(e,2,-2),0,a)}function Mp(e,t,n,a,o){return yu(e,t,n,du,kn(e,0,a),kn(e,a+1,-1),a,o)}function Su(e,t){for(var n="",a=0;a<e.length;a++)n+=t(e[a],a,e,t)||"";return n}function Ap(e,t,n,a){switch(e.type){case mu:if(e.children.length)break;case mp:case gp:case du:return e.return=e.return||e.value;case Ko:return"";case bi:return e.return=e.value+"{"+Su(e.children,a)+"}";case fu:if(!bt(e.value=e.props.join(",")))return""}return bt(n=Su(e.children,a))?e.return=e.value+"{"+n+"}":""}function Op(e){var t=gu(e);return function(n,a,o,r){for(var i="",l=0;l<t;l++)i+=e[l](n,a,o,r)||"";return i}}var Lp="c4",RN=B(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),HN=B(async()=>{let{diagram:e}=await import("./c4Diagram-KJ2TOQU5-3IYS34YL.js");return{id:Lp,diagram:e}},"loader"),BN={id:Lp,detector:RN,loader:HN},LN=BN,Vp="flowchart-v2",VN=B(e=>/^\s*(graph|flowchart)/.test(e),"detector"),UN=B(async()=>{let{diagram:e}=await import("./flowDiagram-MALGAFMO-AAUEIPCR.js");return{id:Vp,diagram:e}},"loader"),YN={id:Vp,detector:VN,loader:UN},kN=YN,Up="agentflow",qN=B(e=>/^\s*agentflow-beta\b/.test(e),"detector"),GN=B(async()=>{let{diagram:e}=await import("./diagram-3B7GL73J-ESCBJM3O.js");return{id:Up,diagram:e}},"loader"),XN={id:Up,detector:qN,loader:GN},ZN=XN,Yp="swimlane",$N=B(e=>/^\s*swimlane-beta\b/.test(e),"detector"),IN=B(async()=>{let{diagram:e}=await import("./swimlanesDiagram-OMPLPG4O-HZAKM45N.js");return{id:Yp,diagram:e}},"loader"),QN={id:Yp,detector:$N,loader:IN},jN=QN,kp="er",KN=B(e=>/^\s*erDiagram/.test(e),"detector"),JN=B(async()=>{let{diagram:e}=await import("./erDiagram-EYBAPDEH-Y7KUBH7A.js");return{id:kp,diagram:e}},"loader"),FN={id:kp,detector:KN,loader:JN},PN=FN,qp="gitGraph",WN=B(e=>/^\s*gitGraph/.test(e),"detector"),e3=B(async()=>{let{diagram:e}=await import("./gitGraphDiagram-STJD7YCW-3ZA5FT3G.js");return{id:qp,diagram:e}},"loader"),t3={id:qp,detector:WN,loader:e3},n3=t3,Gp="gantt",a3=B(e=>/^\s*gantt/.test(e),"detector"),o3=B(async()=>{let{diagram:e}=await import("./ganttDiagram-23REXITY-JSBTFSSJ.js");return{id:Gp,diagram:e}},"loader"),r3={id:Gp,detector:a3,loader:o3},i3=r3,Xp="info",l3=B(e=>/^\s*info/.test(e),"detector"),u3=B(async()=>{let{diagram:e}=await import("./infoDiagram-KBXO4MBG-6LFMPP2O.js");return{id:Xp,diagram:e}},"loader"),c3={id:Xp,detector:l3,loader:u3},Zp="pie",s3=B(e=>/^\s*pie/.test(e),"detector"),f3=B(async()=>{let{diagram:e}=await import("./pieDiagram-J4AKIIQI-TJ5WOOSV.js");return{id:Zp,diagram:e}},"loader"),d3={id:Zp,detector:s3,loader:f3},$p="quadrantChart",m3=B(e=>/^\s*quadrantChart/.test(e),"detector"),h3=B(async()=>{let{diagram:e}=await import("./quadrantDiagram-XTYBLID2-G6MSSZLW.js");return{id:$p,diagram:e}},"loader"),g3={id:$p,detector:m3,loader:h3},p3=g3,Ip="xychart",y3=B(e=>/^\s*xychart(-beta)?/.test(e),"detector"),v3=B(async()=>{let{diagram:e}=await import("./xychartDiagram-GGNKY7IX-K6MUQVXR.js");return{id:Ip,diagram:e}},"loader"),b3={id:Ip,detector:y3,loader:v3},x3=b3,Qp="requirement",S3=B(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),w3=B(async()=>{let{diagram:e}=await import("./requirementDiagram-Y7LWUY3S-4LQIQWHQ.js");return{id:Qp,diagram:e}},"loader"),E3={id:Qp,detector:S3,loader:w3},_3=E3,jp="sequence",N3=B(e=>/^\s*sequenceDiagram/.test(e),"detector"),T3=B(async()=>{let{diagram:e}=await import("./sequenceDiagram-5NDRBG5M-Y6RBHRS3.js");return{id:jp,diagram:e}},"loader"),C3={id:jp,detector:N3,loader:T3},M3=C3,Kp="classDiagram",z3=B(e=>/^\s*classDiagram/.test(e),"detector"),A3=B(async()=>{let{diagram:e}=await import("./classDiagram-v2-L25IHNXF-HNTCDTNK.js");return{id:Kp,diagram:e}},"loader"),O3={id:Kp,detector:z3,loader:A3},D3=O3,Jp="stateDiagram",R3=B(e=>/^\s*stateDiagram/.test(e),"detector"),H3=B(async()=>{let{diagram:e}=await import("./stateDiagram-v2-FJ4FJNEA-4M5WZORG.js");return{id:Jp,diagram:e}},"loader"),B3={id:Jp,detector:R3,loader:H3},L3=B3,Fp="journey",V3=B(e=>/^\s*journey/.test(e),"detector"),U3=B(async()=>{let{diagram:e}=await import("./journeyDiagram-OPLOXDXO-ZHJV66ZT.js");return{id:Fp,diagram:e}},"loader"),Y3={id:Fp,detector:V3,loader:U3},k3=Y3,wu=4,wi=75,q3=B(e=>{let t=[];for(let o of e.split(/\s+/)){let r=[...o];for(;r.length>wi;)t.push(r.slice(0,wi).join("")),r=r.slice(wi);r.length>0&&t.push(r.join(""))}let n=[],a="";for(let o of t){let r=a?`${a} ${o}`:o;[...r].length>wi?(n.push(a),a=o):a=r}if(a&&n.push(a),n.length>wu){n.length=wu;let o=n[wu-1]??"";n[wu-1]=`${[...o].slice(0,wi-3).join("")}...`}return n},"wrapErrorMessage"),G3=B((e,t,n,a)=>{Oe.debug(`rendering svg for syntax error
|
|
10
|
+
`);let o=fp(t),r=o.append("g"),i=q3(a?.db.getErrorMessage?.()??""),l=i.length>0?500+i.length*56:512;o.attr("viewBox",`0 0 2412 ${l}`),tp(o,100,l,!0),r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`),i.forEach((u,c)=>{r.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(u)})},"draw"),Pp={draw:G3},X3=Pp,wf,Z3={clear(){wf=void 0},setErrorMessage(e){wf=e},getErrorMessage(){return wf}},$3={db:Z3,renderer:Pp,parser:{parse:B(()=>{},"parse")}},I3=$3,Wp="flowchart-elk",Q3=B((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),j3=B(async()=>{let{diagram:e}=await import("./flowDiagram-MALGAFMO-AAUEIPCR.js");return{id:Wp,diagram:e}},"loader"),K3={id:Wp,detector:Q3,loader:j3},J3=K3,e0="timeline",F3=B(e=>/^\s*timeline/.test(e),"detector"),P3=B(async()=>{let{diagram:e}=await import("./timeline-definition-SEUHKTQE-IHISQ4Q7.js");return{id:e0,diagram:e}},"loader"),W3={id:e0,detector:F3,loader:P3},eT=W3,t0="mindmap",tT=B(e=>/^\s*mindmap/.test(e),"detector"),nT=B(async()=>{let{diagram:e}=await import("./mindmap-definition-I2QAS2VK-XQNBCYHN.js");return{id:t0,diagram:e}},"loader"),aT={id:t0,detector:tT,loader:nT},oT=aT,n0="kanban",rT=B(e=>/^\s*kanban/.test(e),"detector"),iT=B(async()=>{let{diagram:e}=await import("./kanban-definition-BZKZHSQY-SDU25WUM.js");return{id:n0,diagram:e}},"loader"),lT={id:n0,detector:rT,loader:iT},uT=lT,a0="sankey",cT=B(e=>/^\s*sankey(-beta)?/.test(e),"detector"),sT=B(async()=>{let{diagram:e}=await import("./sankeyDiagram-WGJFYUXA-K3RXG5FB.js");return{id:a0,diagram:e}},"loader"),fT={id:a0,detector:cT,loader:sT},dT=fT,o0="packet",mT=B(e=>/^\s*packet(-beta)?/.test(e),"detector"),hT=B(async()=>{let{diagram:e}=await import("./diagram-DNEMPZML-ZIBUSQZI.js");return{id:o0,diagram:e}},"loader"),gT={id:o0,detector:mT,loader:hT},r0="radar",pT=B(e=>/^\s*radar-beta/.test(e),"detector"),yT=B(async()=>{let{diagram:e}=await import("./diagram-L3MUGCDN-IGK62IPN.js");return{id:r0,diagram:e}},"loader"),vT={id:r0,detector:pT,loader:yT},i0="block",bT=B(e=>/^\s*block(-beta)?/.test(e),"detector"),xT=B(async()=>{let{diagram:e}=await import("./blockDiagram-APKKGZFW-H7ZNJMOM.js");return{id:i0,diagram:e}},"loader"),ST={id:i0,detector:bT,loader:xT},wT=ST,l0="treeView",ET=B(e=>/^\s*treeView-beta/.test(e),"detector"),_T=B(async()=>{let{diagram:e}=await import("./diagram-XPFHEONP-OZ5ARGMG.js");return{id:l0,diagram:e}},"loader"),NT={id:l0,detector:ET,loader:_T},TT=NT,u0="architecture",CT=B(e=>/^\s*architecture/.test(e),"detector"),MT=B(async()=>{let{diagram:e}=await import("./architectureDiagram-YGSQEFNW-WQ7QKSUJ.js");return{id:u0,diagram:e}},"loader"),zT={id:u0,detector:CT,loader:MT},AT=zT,c0="eventmodeling",OT=B(e=>/^\s*eventmodeling/.test(e),"detector"),DT=B(async()=>{let{diagram:e}=await import("./diagram-MHCOC4E2-EYAAB236.js");return{id:c0,diagram:e}},"loader"),RT={id:c0,detector:OT,loader:DT},HT=RT,s0="ishikawa",BT=B(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),LT=B(async()=>{let{diagram:e}=await import("./ishikawaDiagram-M35NCXHK-YLEU44DY.js");return{id:s0,diagram:e}},"loader"),VT={id:s0,detector:BT,loader:LT},f0="venn",UT=B(e=>/^\s*venn-beta/.test(e),"detector"),YT=B(async()=>{let{diagram:e}=await import("./vennDiagram-NNMJR3RB-K3HWMON6.js");return{id:f0,diagram:e}},"loader"),kT={id:f0,detector:UT,loader:YT},qT=kT,d0="treemap",GT=B(e=>/^\s*treemap/.test(e),"detector"),XT=B(async()=>{let{diagram:e}=await import("./diagram-LA4NIPWU-2KZCOFJ5.js");return{id:d0,diagram:e}},"loader"),ZT={id:d0,detector:GT,loader:XT},m0="usecase",$T=B(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),IT=B(async()=>{let{diagram:e}=await import("./usecaseDiagram-AFA6YXN4-B645A3J6.js");return{id:m0,diagram:e}},"loader"),QT={id:m0,detector:$T,loader:IT},h0="wardley",jT=B(e=>/^\s*wardley-beta/i.test(e),"detector"),KT=B(async()=>{let{diagram:e}=await import("./wardleyDiagram-S7YFUSEH-DMMWKJEK.js");return{id:h0,diagram:e}},"loader"),JT={id:h0,detector:jT,loader:KT},FT=JT,g0="cynefin",PT=B(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),WT=B(async()=>{let{diagram:e}=await import("./cynefinDiagram-L36ESFBY-OKQ5BLVF.js");return{id:g0,diagram:e}},"loader"),eC={id:g0,detector:PT,loader:WT},p0="railroad",tC=B(e=>/^\s*railroad-beta/i.test(e),"detector"),nC=B(async()=>{let{diagram:e}=await import("./railroadDiagram-MRQ6NCDL-RACSFXC4.js");return{id:p0,diagram:e}},"loader"),aC={id:p0,detector:tC,loader:nC},y0="railroadEbnf",oC=B(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),rC=B(async()=>{let{diagram:e}=await import("./ebnfDiagram-UZSYDL2S-M3XJHARD.js");return{id:y0,diagram:e}},"loader"),iC={id:y0,detector:oC,loader:rC},v0="railroadAbnf",lC=B(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),uC=B(async()=>{let{diagram:e}=await import("./abnfDiagram-S7VZAUFO-GAGCW2J5.js");return{id:v0,diagram:e}},"loader"),cC={id:v0,detector:lC,loader:uC},b0="railroadPeg",sC=B(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),fC=B(async()=>{let{diagram:e}=await import("./pegDiagram-FD4XPPHP-YO4VWH6V.js");return{id:b0,diagram:e}},"loader"),dC={id:b0,detector:sC,loader:fC},Dp=!1,Nu=B(()=>{Dp||(Dp=!0,vi("error",I3,e=>e.toLowerCase().trim()==="error"),vi("---",{db:{clear:B(()=>{},"clear")},styles:{},renderer:{draw:B(()=>{},"draw")},parser:{parse:B(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:B(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),iu(J3,oT,AT),iu(ZN,LN,uT,D3,PN,i3,c3,d3,_3,M3,jN,kN,eT,n3,L3,k3,p3,dT,gT,x3,wT,HT,TT,vT,VT,ZT,aC,iC,cC,dC,qT,FT,eC,QT))},"addDiagrams"),mC=B(async()=>{Oe.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(ou).map(async([n,{detector:a,loader:o}])=>{if(o)try{su(n)}catch{try{let{diagram:r,id:i}=await o();vi(i,r,a)}catch(r){throw Oe.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete ou[n],r}}}))).filter(n=>n.status==="rejected");if(t.length>0){Oe.error(`Failed to load ${t.length} external diagrams`);for(let n of t)Oe.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),hC="graphics-document document";function x0(e,t){e.attr("role",hC),t!==""&&e.attr("aria-roledescription",t)}B(x0,"setA11yDiagramInfo");function S0(e,t,n,a){if(e.insert!==void 0){if(n){let o=`chart-desc-${a}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(n)}if(t){let o=`chart-title-${a}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}B(S0,"addSVGa11yTitleDescription");var Eu=class w0{constructor(t,n,a,o,r){this.type=t,this.text=n,this.db=a,this.parser=o,this.renderer=r}static{B(this,"Diagram")}static async fromText(t,n={}){let a=typeof t=="string"?{raw:t,cleaned:t}:t,o=oo(),r=ru(a.cleaned,o);try{su(r)}catch{let s=Zg(r);if(!s)throw new Xg(`Diagram ${r} not found.`);let{id:h,diagram:y}=await s();vi(h,y)}let{db:i,parser:l,renderer:u,init:c}=su(r);l.parser&&(l.parser.yy=i),i.clear?.(),c?.(o),n.title&&i.setDiagramTitle?.(n.title);let f=a.cleaned;if(i.preserveCommentsWhenParsing&&a.withComments){let s=o.maxTextSize??Ig.maxTextSize;a.withComments.length>s?Oe.warn(`Comment-preserving source exceeds maxTextSize (${a.withComments.length} > ${s}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):f=a.withComments}let d=lp(f)+`
|
|
11
|
+
`;return a.frontmatterLineOffset&&i.setFrontmatterLineOffset?.(a.frontmatterLineOffset),await l.parse(d),new w0(r,d,i,l,u)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}},Rp=[],gC=B(()=>{Rp.forEach(e=>{e()}),Rp=[]},"attachFunctions"),pC=B(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function E0(e){let t=Gg(e);if(!t)return{text:e,metadata:{}};let n=t.indent,a=n?t.body.split(`
|
|
12
12
|
`).map(i=>i.startsWith(n)?i.slice(n.length):i).join(`
|
|
13
|
-
`):t.body,o=
|
|
14
|
-
`).replace(/<(\w+)([^>]*)>/g,(t,n,a)=>"<"+n+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),
|
|
13
|
+
`):t.body,o=kg(a,{schema:Yg})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};let r={};return o.displayMode&&(r.displayMode=o.displayMode.toString()),o.title&&(r.title=o.title.toString()),o.config&&(r.config=o.config),{text:e.slice(t.length),metadata:r}}B(E0,"extractFrontMatter");var yC=B(e=>e.replace(/\r\n?/g,`
|
|
14
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,n,a)=>"<"+n+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),vC=B(e=>{let{text:t,metadata:n}=E0(e),{displayMode:a,title:o,config:r={}}=n;return a&&(r.gantt||(r.gantt={}),r.gantt.displayMode=a),{title:o,config:r,text:t}},"processFrontmatter"),bC=B(e=>{let t=jo.detectInit(e)??{},n=jo.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:a})=>a==="wrap"):n?.type==="wrap"&&(t.wrap=!0),{text:op(e),directive:t}},"processDirectives");function Nf(e){let t=e,n=yC(e),a=vC(n),o=bC(a.text),r=ip(a.config,o.directive),i=o.text,l=pC(i),u=n.length>a.text.length?(n.substring(0,n.length-a.text.length).match(/\n/g)??[]).length:0;return{code:{raw:t,cleaned:l,withComments:i,frontmatterLineOffset:u},title:a.title,config:r}}B(Nf,"preprocessDiagram");function _0(e){let t=new TextEncoder().encode(e),n=Array.from(t,a=>String.fromCodePoint(a)).join("");return btoa(n)}B(_0,"toBase64");var xC=5e4,SC="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",wC="sandbox",EC="loose",_C="http://www.w3.org/2000/svg",NC="http://www.w3.org/1999/xlink",TC="http://www.w3.org/1999/xhtml",CC="100%",MC="100%",zC="border:0;margin:0;",AC="margin:0",OC="allow-top-navigation-by-user-activation allow-popups",DC='The "iframe" tag is not supported by your browser.',RC=["foreignobject"],HC=["dominant-baseline"];function Tf(e){let t=Nf(e);yi();let n;try{n=ru(t.code.cleaned,oo())}catch{n=void 0}return cu(n),Wg(t.config??{}),t}B(Tf,"processAndSetConfigs");async function N0(e,t){Nu();try{let{code:n,config:a}=Tf(e);return{diagramType:(await Eu.fromText(n)).type,config:a}}catch(n){if(t?.suppressErrors)return!1;throw n}finally{cu(void 0)}}B(N0,"parse");var Hp=B((e,t,n=[])=>{let a=Qg(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${a}`},"cssImportantStyles"),BC=B((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let l=ep(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(u=>{bf(u.styles)||l.forEach(c=>{n.insertRule(Hp(u.id,c,u.styles),n.cssRules.length)}),bf(u.textStyles)||n.insertRule(Hp(u.id,"tspan",(u?.textStyles||[]).map(c=>c.replace("color","fill"))),n.cssRules.length)})}let a="";if(e.themeCSS!==void 0)if(typeof n.replaceSync=="function"){let o=new CSSStyleSheet;o.replaceSync(e.themeCSS),a=vf(o)+`
|
|
15
15
|
`}else a+=`${e.themeCSS}
|
|
16
|
-
`;return a+
|
|
17
|
-
${
|
|
18
|
-
</iframe>`},"putIntoIFrame"),
|
|
16
|
+
`;return a+vf(n)},"createCssStyles"),LC=B((e,t)=>Su(zp(`${e}{${t}}`),Op([B(function(a,o,r,i){if(a.type==="rule"&&Array.isArray(a.props)){if(a.parent&&a.parent.type===bi)return;a.props=a.props.map(l=>l===e&&Array.isArray(a.children)&&a.children.every(c=>c.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(c.props))||(l.startsWith(`${e} `)||l.startsWith(`${e}>`))&&!l.startsWith(`${e} ||`)?l:`${e} ${l}`)}else a.type.startsWith("@")&&([...[dp,hp,mu,pp,"@container","@starting-style"],bi].includes(a.type)||(Oe.warn(`Removing unsupported at-rule ${a.type} from CSS`),a.type=Ko))},"addNamespace"),Ap])),"compileCSS"),VC=B((e,t,n,a)=>{let o=BC(e,n),r=np(t,o,{...e.themeVariables,theme:e.theme,look:e.look},a);return LC(a,r)},"createUserStyles"),UC=B((e="",t,n)=>{let a=e;return!n&&!t&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=up(a),a=a.replace(/<br>/g,"<br/>"),a},"cleanUpSvgCode"),YC=B((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":MC,a=_0(`<body style="${AC}">${e}</body>`);return`<iframe style="width:${CC};height:${n};${zC}" src="data:text/html;charset=UTF-8;base64,${a}" sandbox="${OC}">
|
|
17
|
+
${DC}
|
|
18
|
+
</iframe>`},"putIntoIFrame"),Bp=B((e,t,n,a,o)=>{let r=e.append("div");r.attr("id",n),a&&r.attr("style",a);let i=r.append("svg").attr("id",t).attr("width","100%").attr("xmlns",_C);return o&&i.attr("xmlns:xlink",o),i.append("g"),e},"appendDivSvgG");function _f(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}B(_f,"sandboxedIframe");var kC=B((e,t,n,a)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(a)?.remove()},"removeExistingElements"),qC=B(async function(e,t,n){Nu();let a=Tf(t),o=a.code;t=o.cleaned;let r=oo();Oe.debug(r),t.length>(r?.maxTextSize??xC)&&(t=SC,o={raw:t,cleaned:t});let i=`#${e}`,l="i"+e,u="#"+l,c="d"+e,f="#"+c,d=B(()=>{let C=Un(h?u:f).node();C&&"remove"in C&&C.remove()},"removeTempElements"),s=Un(document.body),h=r.securityLevel===wC,y=r.securityLevel===EC,x=r.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),h){let w=_f(Un(n),l);s=Un(w.nodes()[0].contentDocument.body),s.node().style.margin="0"}else s=Un(n);Bp(s,e,c,`font-family: ${x}`,NC)}else{if(kC(document,e,c,l),h){let w=_f(Un(document.body),l);s=Un(w.nodes()[0].contentDocument.body),s.node().style.margin="0"}else s=Un("body");Bp(s,e,c)}let S,g;try{S=await Eu.fromText(o,{title:a.title})}catch(w){if(r.suppressErrorRendering)throw d(),w;S=await Eu.fromText("error"),g=w,S.db.setErrorMessage?.(rp(w))}let p=s.select(f).node(),m=S.type,v=p.firstChild,b=v.firstChild,E=S.renderer.getClasses?.(t,S),N=VC(r,m,E,i),_=document.createElement("style");_.innerHTML=N,v.insertBefore(_,b);try{await S.renderer.draw(t,e,"12.3.0",S)}catch(w){throw r.suppressErrorRendering?d():X3.draw(t,e,"12.3.0"),w}let T=s.select(`${f} svg`),D=S.db.getAccTitle?.(),L=S.db.getAccDescription?.();C0(m,T,D,L);let U=B(()=>{s.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",TC);let w=s.select(f).node().innerHTML;if(Oe.debug("config.arrowMarkerAbsolute",r.arrowMarkerAbsolute),w=UC(w,h,jg(r.arrowMarkerAbsolute)),h){let C=s.select(f+" svg").node();w=YC(w,C)}else y||(w=qg.sanitize(w,{ADD_TAGS:RC,ADD_ATTR:HC,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return gC(),w},"serializeSvg")();if(g)throw g;return d(),{diagramType:m,svg:U,bindFunctions:S.db.bindFunctions}},"renderDiagram"),GC=B(async function(e,t,n){try{return await qC(e,t,n)}finally{cu(void 0)}},"render");function T0(e={}){let t=$g({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Jg(t);let n=uu.theme;t?.theme&&Object.hasOwn(lu,t.theme)?t.themeVariables=lu[t.theme].getThemeVariables(t.themeVariables):t&&(t.theme!=null&&t.theme!=="null"&&(t.theme=n),t.themeVariables=lu[n].getThemeVariables(t.themeVariables));let a=typeof t=="object"?Kg(t):yf();pf(a.logLevel),Nu()}B(T0,"initialize");var XC=B((e,t={})=>{let{code:n}=Nf(e);return Eu.fromText(n,t)},"getDiagramFromText");function C0(e,t,n,a){x0(t,e),S0(t,n,a,t.attr("id"))}B(C0,"addA11yInfo");var io=Object.freeze({render:GC,parse:N0,getDiagramFromText:XC,initialize:T0,getConfig:oo,setConfig:Pg,getSiteConfig:yf,updateSiteConfig:Fg,reset:B(()=>{yi()},"reset"),globalReset:B(()=>{yi(uu)},"globalReset"),defaultConfig:uu});pf(oo().logLevel);yi(oo());var ZC=B((e,t,n)=>{Oe.warn(e),xf(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),M0=B(async function(e={querySelector:".mermaid"}){try{await $C(e)}catch(t){if(xf(t)&&Oe.error(t.str),Gn.parseError&&Gn.parseError(t),!e.suppressErrors)throw Oe.error("Use the suppressErrors option to suppress these errors"),t}},"run"),$C=B(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let a=io.getConfig();Oe.debug(`${e?"":"No "}Callback function found`);let o;if(n)o=n;else if(t)o=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Oe.debug(`Found ${o.length} diagrams`),a?.startOnLoad!==void 0&&(Oe.debug("Start On Load: "+a?.startOnLoad),io.updateSiteConfig({startOnLoad:a?.startOnLoad}));let r=new jo.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),i,l=[];for(let u of Array.from(o)){if(Oe.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");let c=`mermaid-${r.next()}`;i=u.innerHTML,i=cp(jo.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let f=jo.detectInit(i);f&&Oe.debug("Detected early reinit: ",f);try{let{svg:d,bindFunctions:s}=await D0(c,i,u);u.innerHTML=d,e&&await e(c),s&&s(u)}catch(d){ZC(d,l,Gn.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),z0=B(function(e){io.initialize(e)},"initialize"),IC=B(async function(e,t,n){Oe.warn("mermaid.init is deprecated. Please use run instead."),e&&z0(e);let a={postRenderCallback:n,querySelector:".mermaid"};typeof t=="string"?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await M0(a)},"init"),QC=B(async(e,{lazyLoad:t=!0}={})=>{Nu(),iu(...e),t===!1&&await mC()},"registerExternalDiagrams"),A0=B(function(){if(Gn.startOnLoad){let{startOnLoad:e}=io.getConfig();e&&Gn.run().catch(t=>Oe.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",A0,!1);var jC=B(function(e){Gn.parseError=e},"setParseErrorHandler"),_u=[],Ef=!1,O0=B(async()=>{if(!Ef){for(Ef=!0;_u.length>0;){let e=_u.shift();if(e)try{await e()}catch(t){Oe.error("Error executing queue",t)}}Ef=!1}},"executeQueue"),KC=B(async(e,t)=>new Promise((n,a)=>{let o=B(()=>new Promise((r,i)=>{io.parse(e,t).then(l=>{r(l),n(l)},l=>{Oe.error("Error parsing",l),Gn.parseError?.(l),i(l),a(l)})}),"performCall");_u.push(o),O0().catch(a)}),"parse"),D0=B((e,t,n)=>new Promise((a,o)=>{let r=B(()=>new Promise((i,l)=>{io.render(e,t,n).then(u=>{i(u),a(u)},u=>{Oe.error("Error parsing",u),Gn.parseError?.(u),l(u),o(u)})}),"performCall");_u.push(r),O0().catch(o)}),"render"),JC=B(()=>Object.keys(ou).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Gn={startOnLoad:!0,mermaidAPI:io,parse:KC,render:D0,init:IC,run:M0,registerExternalDiagrams:QC,registerLayoutLoaders:sp,initialize:z0,parseError:void 0,contentLoaded:A0,setParseErrorHandler:jC,detectType:ru,registerIconPacks:ap,getRegisteredDiagramsMetadata:JC},Tu=Gn;var Cf={startOnLoad:!1,securityLevel:"strict",suppressErrorRendering:!0,layout:"dagre"};Tu.initialize(Cf);var FC=["accent","info","ok","warn","danger"].flatMap(e=>[e,`${e}-2`]),PC=(e,t)=>{let n=e("bg"),a=e("fg");if(!n||!a)return;let o=e("border-2")||a,r={darkMode:t,background:n,primaryColor:e("panel-2")||n,primaryTextColor:a,primaryBorderColor:o,secondaryColor:e("bg-2")||n,secondaryBorderColor:o,tertiaryColor:e("bg-3")||n,tertiaryBorderColor:o,textColor:a,lineColor:e("fg-3")||a,edgeLabelBackground:n,noteBkgColor:e("panel")||n,noteTextColor:a,noteBorderColor:o,pieStrokeColor:n,pieOuterStrokeColor:o,pieTitleTextColor:a,pieLegendTextColor:a};return FC.forEach((i,l)=>{let u=e(i);u&&(r[`pie${l+1}`]=u)}),r},WC=e=>{let t=getComputedStyle(e),n=PC(a=>t.getPropertyValue(`--doc-${a}`).trim(),t.colorScheme==="dark");Tu.initialize(n?{...Cf,theme:"base",themeVariables:n}:Cf)},eM=0,R0=new WeakMap,H0=e=>{let t=new Set,n=new IntersectionObserver(u=>{for(let c of u){if(!c.isIntersecting)continue;let f=c.target;if(n.unobserve(f),t.delete(f),!e.contains(f)||f.dataset.mermaid!=="pending")continue;f.dataset.mermaid="rendering";let d=(f.firstElementChild&&R0.get(f))??f.textContent??"";WC(f),Tu.render(`dooc-mermaid-${++eM}`,d).then(({svg:s})=>{e.contains(f)&&(f.innerHTML=s,R0.set(f,d),f.dataset.mermaid="ready")},s=>{e.contains(f)&&(f.dataset.mermaid="error",f.textContent=`${d}
|
|
19
19
|
|
|
20
|
-
${
|
|
20
|
+
${s instanceof Error?s.message:String(s)}`,f.setAttribute("role","status"))})}},{rootMargin:"200px"}),a=u=>{let c=[...u.querySelectorAll("[data-mermaid]")];u instanceof HTMLElement&&u.matches("[data-mermaid]")&&c.unshift(u);for(let f of c)f.dataset.mermaid!=="pending"||t.has(f)||(t.add(f),n.observe(f))};a(e);let o=new MutationObserver(u=>{for(let c of t)e.contains(c)||(t.delete(c),n.unobserve(c));for(let c of u)for(let f of c.addedNodes)f instanceof Element&&e.contains(f)&&a(f)});o.observe(e,{childList:!0,subtree:!0});let r=()=>{for(let u of e.querySelectorAll('[data-mermaid="ready"]'))u.dataset.mermaid="pending";a(e)},i=new MutationObserver(r);i.observe(document.documentElement,{attributeFilter:["data-theme"],subtree:!0});let l=matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",r),()=>{o.disconnect(),i.disconnect(),l.removeEventListener("change",r),n.disconnect(),t.clear()}};var E_=an(eS(),1);var tS=`/* this will be exported as base.css and can be used for a basic styling */
|
|
21
21
|
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
|
|
22
22
|
.react-flow {
|
|
23
23
|
direction: ltr;
|
|
@@ -522,7 +522,7 @@ svg.react-flow__connectionline {
|
|
|
522
522
|
border-bottom-width: 1px;
|
|
523
523
|
top: 100%;
|
|
524
524
|
}
|
|
525
|
-
`;var
|
|
525
|
+
`;var nS="doc-sg-flow-css",N4=`
|
|
526
526
|
.doc-sg-flow .react-flow__controls {
|
|
527
527
|
border-radius: 6px;
|
|
528
528
|
overflow: hidden;
|
|
@@ -545,13 +545,13 @@ svg.react-flow__connectionline {
|
|
|
545
545
|
.doc-sg-flow .react-flow__controls-button:disabled {
|
|
546
546
|
opacity: 0.45;
|
|
547
547
|
}
|
|
548
|
-
`,S4=`${Wx}${x4}`,tS=e=>{if(e.getElementById(eS)!=null)return;let t=e.createElement("style");t.id=eS,t.textContent=S4,e.head.prepend(t)};var A=an(Pr()),O=an(da());function Be(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,a;n<e.length;n++)(a=Be(e[n]))!==""&&(t+=(t&&" ")+a);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var _4={value:()=>{}};function iS(){for(var e=0,t=arguments.length,n={},a;e<t;++e){if(!(a=arguments[e]+"")||a in n||/[\s.]/.test(a))throw new Error("illegal type: "+a);n[a]=[]}return new ms(n)}function ms(e){this._=e}function N4(e,t){return e.trim().split(/^|\s+/).map(function(n){var a="",o=n.indexOf(".");if(o>=0&&(a=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}ms.prototype=iS.prototype={constructor:ms,on:function(e,t){var n=this._,a=N4(e+"",n),o,r=-1,i=a.length;if(arguments.length<2){for(;++r<i;)if((o=(e=a[r]).type)&&(o=T4(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<i;)if(o=(e=a[r]).type)n[o]=rS(n[o],e.name,t);else if(t==null)for(o in n)n[o]=rS(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 ms(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),a=0,o,r;a<o;++a)n[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],a=0,o=r.length;a<o;++a)r[a].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],o=0,r=a.length;o<r;++o)a[o].value.apply(t,n)}};function T4(e,t){for(var n=0,a=e.length,o;n<a;++n)if((o=e[n]).name===t)return o.value}function rS(e,t,n){for(var a=0,o=e.length;a<o;++a)if(e[a].name===t){e[a]=_4,e=e.slice(0,a).concat(e.slice(a+1));break}return n!=null&&e.push({name:t,value:n}),e}var Ro=iS;var hs="http://www.w3.org/1999/xhtml",Oh={svg:"http://www.w3.org/2000/svg",xhtml:hs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ra(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Oh.hasOwnProperty(t)?{space:Oh[t],local:e}:e}function C4(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===hs&&t.documentElement.namespaceURI===hs?t.createElement(e):t.createElementNS(n,e)}}function M4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function gs(e){var t=ra(e);return(t.local?M4:C4)(t)}function z4(){}function Ho(e){return e==null?z4:function(){return this.querySelector(e)}}function lS(e){typeof e!="function"&&(e=Ho(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var r=t[o],i=r.length,l=a[o]=new Array(i),u,c,f=0;f<i;++f)(u=r[f])&&(c=e.call(u,u.__data__,f,r))&&("__data__"in u&&(c.__data__=u.__data__),l[f]=c);return new Le(a,this._parents)}function Dh(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function A4(){return[]}function Nl(e){return e==null?A4:function(){return this.querySelectorAll(e)}}function O4(e){return function(){return Dh(e.apply(this,arguments))}}function uS(e){typeof e=="function"?e=O4(e):e=Nl(e);for(var t=this._groups,n=t.length,a=[],o=[],r=0;r<n;++r)for(var i=t[r],l=i.length,u,c=0;c<l;++c)(u=i[c])&&(a.push(e.call(u,u.__data__,c,i)),o.push(u));return new Le(a,o)}function Tl(e){return function(){return this.matches(e)}}function ps(e){return function(t){return t.matches(e)}}var D4=Array.prototype.find;function R4(e){return function(){return D4.call(this.children,e)}}function H4(){return this.firstElementChild}function cS(e){return this.select(e==null?H4:R4(typeof e=="function"?e:ps(e)))}var B4=Array.prototype.filter;function L4(){return Array.from(this.children)}function U4(e){return function(){return B4.call(this.children,e)}}function sS(e){return this.selectAll(e==null?L4:U4(typeof e=="function"?e:ps(e)))}function fS(e){typeof e!="function"&&(e=Tl(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var r=t[o],i=r.length,l=a[o]=[],u,c=0;c<i;++c)(u=r[c])&&e.call(u,u.__data__,c,r)&&l.push(u);return new Le(a,this._parents)}function ys(e){return new Array(e.length)}function dS(){return new Le(this._enter||this._groups.map(ys),this._parents)}function Cl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Cl.prototype={constructor:Cl,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 mS(e){return function(){return e}}function V4(e,t,n,a,o,r){for(var i=0,l,u=t.length,c=r.length;i<c;++i)(l=t[i])?(l.__data__=r[i],a[i]=l):n[i]=new Cl(e,r[i]);for(;i<u;++i)(l=t[i])&&(o[i]=l)}function Y4(e,t,n,a,o,r,i){var l,u,c=new Map,f=t.length,d=r.length,s=new Array(f),h;for(l=0;l<f;++l)(u=t[l])&&(s[l]=h=i.call(u,u.__data__,l,t)+"",c.has(h)?o[l]=u:c.set(h,u));for(l=0;l<d;++l)h=i.call(e,r[l],l,r)+"",(u=c.get(h))?(a[l]=u,u.__data__=r[l],c.delete(h)):n[l]=new Cl(e,r[l]);for(l=0;l<f;++l)(u=t[l])&&c.get(s[l])===u&&(o[l]=u)}function k4(e){return e.__data__}function hS(e,t){if(!arguments.length)return Array.from(this,k4);var n=t?Y4:V4,a=this._parents,o=this._groups;typeof e!="function"&&(e=mS(e));for(var r=o.length,i=new Array(r),l=new Array(r),u=new Array(r),c=0;c<r;++c){var f=a[c],d=o[c],s=d.length,h=q4(e.call(f,f&&f.__data__,c,a)),y=h.length,x=l[c]=new Array(y),S=i[c]=new Array(y),g=u[c]=new Array(s);n(f,d,x,S,g,h,t);for(var p=0,m=0,v,b;p<y;++p)if(v=x[p]){for(p>=m&&(m=p+1);!(b=S[m])&&++m<y;);v._next=b||null}}return i=new Le(i,a),i._enter=l,i._exit=u,i}function q4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gS(){return new Le(this._exit||this._groups.map(ys),this._parents)}function pS(e,t,n){var a=this.enter(),o=this,r=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?r.remove():n(r),a&&o?a.merge(o).order():o}function yS(e){for(var t=e.selection?e.selection():e,n=this._groups,a=t._groups,o=n.length,r=a.length,i=Math.min(o,r),l=new Array(o),u=0;u<i;++u)for(var c=n[u],f=a[u],d=c.length,s=l[u]=new Array(d),h,y=0;y<d;++y)(h=c[y]||f[y])&&(s[y]=h);for(;u<o;++u)l[u]=n[u];return new Le(l,this._parents)}function vS(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var a=e[t],o=a.length-1,r=a[o],i;--o>=0;)(i=a[o])&&(r&&i.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(i,r),r=i);return this}function bS(e){e||(e=G4);function t(d,s){return d&&s?e(d.__data__,s.__data__):!d-!s}for(var n=this._groups,a=n.length,o=new Array(a),r=0;r<a;++r){for(var i=n[r],l=i.length,u=o[r]=new Array(l),c,f=0;f<l;++f)(c=i[f])&&(u[f]=c);u.sort(t)}return new Le(o,this._parents).order()}function G4(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xS(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function SS(){return Array.from(this)}function wS(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var a=e[t],o=0,r=a.length;o<r;++o){var i=a[o];if(i)return i}return null}function ES(){let e=0;for(let t of this)++e;return e}function _S(){return!this.node()}function NS(e){for(var t=this._groups,n=0,a=t.length;n<a;++n)for(var o=t[n],r=0,i=o.length,l;r<i;++r)(l=o[r])&&e.call(l,l.__data__,r,o);return this}function X4(e){return function(){this.removeAttribute(e)}}function Z4(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $4(e,t){return function(){this.setAttribute(e,t)}}function I4(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Q4(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function j4(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 TS(e,t){var n=ra(e);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((t==null?n.local?Z4:X4:typeof t=="function"?n.local?j4:Q4:n.local?I4:$4)(n,t))}function vs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function K4(e){return function(){this.style.removeProperty(e)}}function J4(e,t,n){return function(){this.style.setProperty(e,t,n)}}function F4(e,t,n){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,n)}}function CS(e,t,n){return arguments.length>1?this.each((t==null?K4:typeof t=="function"?F4:J4)(e,t,n??"")):Xa(this.node(),e)}function Xa(e,t){return e.style.getPropertyValue(t)||vs(e).getComputedStyle(e,null).getPropertyValue(t)}function P4(e){return function(){delete this[e]}}function W4(e,t){return function(){this[e]=t}}function eA(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function MS(e,t){return arguments.length>1?this.each((t==null?P4:typeof t=="function"?eA:W4)(e,t)):this.node()[e]}function zS(e){return e.trim().split(/^|\s+/)}function Rh(e){return e.classList||new AS(e)}function AS(e){this._node=e,this._names=zS(e.getAttribute("class")||"")}AS.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 OS(e,t){for(var n=Rh(e),a=-1,o=t.length;++a<o;)n.add(t[a])}function DS(e,t){for(var n=Rh(e),a=-1,o=t.length;++a<o;)n.remove(t[a])}function tA(e){return function(){OS(this,e)}}function nA(e){return function(){DS(this,e)}}function aA(e,t){return function(){(t.apply(this,arguments)?OS:DS)(this,e)}}function RS(e,t){var n=zS(e+"");if(arguments.length<2){for(var a=Rh(this.node()),o=-1,r=n.length;++o<r;)if(!a.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?aA:t?tA:nA)(n,t))}function oA(){this.textContent=""}function rA(e){return function(){this.textContent=e}}function iA(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function HS(e){return arguments.length?this.each(e==null?oA:(typeof e=="function"?iA:rA)(e)):this.node().textContent}function lA(){this.innerHTML=""}function uA(e){return function(){this.innerHTML=e}}function cA(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function BS(e){return arguments.length?this.each(e==null?lA:(typeof e=="function"?cA:uA)(e)):this.node().innerHTML}function sA(){this.nextSibling&&this.parentNode.appendChild(this)}function LS(){return this.each(sA)}function fA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function US(){return this.each(fA)}function VS(e){var t=typeof e=="function"?e:gs(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function dA(){return null}function YS(e,t){var n=typeof e=="function"?e:gs(e),a=t==null?dA:typeof t=="function"?t:Ho(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}function mA(){var e=this.parentNode;e&&e.removeChild(this)}function kS(){return this.each(mA)}function hA(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gA(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qS(e){return this.select(e?gA:hA)}function GS(e){return arguments.length?this.property("__data__",e):this.node().__data__}function pA(e){return function(t){e.call(this,t,this.__data__)}}function yA(e){return e.trim().split(/^|\s+/).map(function(t){var n="",a=t.indexOf(".");return a>=0&&(n=t.slice(a+1),t=t.slice(0,a)),{type:t,name:n}})}function vA(e){return function(){var t=this.__on;if(t){for(var n=0,a=-1,o=t.length,r;n<o;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++a]=r;++a?t.length=a:delete this.__on}}}function bA(e,t,n){return function(){var a=this.__on,o,r=pA(t);if(a){for(var i=0,l=a.length;i<l;++i)if((o=a[i]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=r,o.options=n),o.value=t;return}}this.addEventListener(e.type,r,n),o={type:e.type,name:e.name,value:t,listener:r,options:n},a?a.push(o):this.__on=[o]}}function XS(e,t,n){var a=yA(e+""),o,r=a.length,i;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,c=l.length,f;u<c;++u)for(o=0,f=l[u];o<r;++o)if((i=a[o]).type===f.type&&i.name===f.name)return f.value}return}for(l=t?bA:vA,o=0;o<r;++o)this.each(l(a[o],t,n));return this}function ZS(e,t,n){var a=vs(e),o=a.CustomEvent;typeof o=="function"?o=new o(t,n):(o=a.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function xA(e,t){return function(){return ZS(this,e,t)}}function SA(e,t){return function(){return ZS(this,e,t.apply(this,arguments))}}function $S(e,t){return this.each((typeof t=="function"?SA:xA)(e,t))}function*IS(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var a=e[t],o=0,r=a.length,i;o<r;++o)(i=a[o])&&(yield i)}var Hh=[null];function Le(e,t){this._groups=e,this._parents=t}function QS(){return new Le([[document.documentElement]],Hh)}function wA(){return this}Le.prototype=QS.prototype={constructor:Le,select:lS,selectAll:uS,selectChild:cS,selectChildren:sS,filter:fS,data:hS,enter:dS,exit:gS,join:pS,merge:yS,selection:wA,order:vS,sort:bS,call:xS,nodes:SS,node:wS,size:ES,empty:_S,each:NS,attr:TS,style:CS,property:MS,classed:RS,text:HS,html:BS,raise:LS,lower:US,append:VS,insert:YS,remove:kS,clone:qS,datum:GS,on:XS,dispatch:$S,[Symbol.iterator]:IS};var ia=QS;function Je(e){return typeof e=="string"?new Le([[document.querySelector(e)]],[document.documentElement]):new Le([[e]],Hh)}function jS(e){let t;for(;t=e.sourceEvent;)e=t;return e}function gt(e,t){if(e=jS(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(t.getScreenCTM().inverse()),[a.x,a.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]}var KS={passive:!1},Bo={capture:!0,passive:!1};function bs(e){e.stopImmediatePropagation()}function Za(e){e.preventDefault(),e.stopImmediatePropagation()}function Ml(e){var t=e.document.documentElement,n=Je(e).on("dragstart.drag",Za,Bo);"onselectstart"in t?n.on("selectstart.drag",Za,Bo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function zl(e,t){var n=e.document.documentElement,a=Je(e).on("dragstart.drag",null);t&&(a.on("click.drag",Za,Bo),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in n?a.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Al=e=>()=>e;function Ol(e,{sourceEvent:t,subject:n,target:a,identifier:o,active:r,x:i,y:l,dx:u,dy:c,dispatch:f}){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:a,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:f}})}Ol.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function EA(e){return!e.ctrlKey&&!e.button}function _A(){return this.parentNode}function NA(e,t){return t??{x:e.x,y:e.y}}function TA(){return navigator.maxTouchPoints||"ontouchstart"in this}function xs(){var e=EA,t=_A,n=NA,a=TA,o={},r=Ro("start","drag","end"),i=0,l,u,c,f,d=0;function s(v){v.on("mousedown.drag",h).filter(a).on("touchstart.drag",S).on("touchmove.drag",g,KS).on("touchend.drag touchcancel.drag",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(v,b){if(!(f||!e.call(this,v,b))){var E=m(this,t.call(this,v,b),v,b,"mouse");E&&(Je(v.view).on("mousemove.drag",y,Bo).on("mouseup.drag",x,Bo),Ml(v.view),bs(v),c=!1,l=v.clientX,u=v.clientY,E("start",v))}}function y(v){if(Za(v),!c){var b=v.clientX-l,E=v.clientY-u;c=b*b+E*E>d}o.mouse("drag",v)}function x(v){Je(v.view).on("mousemove.drag mouseup.drag",null),zl(v.view,c),Za(v),o.mouse("end",v)}function S(v,b){if(e.call(this,v,b)){var E=v.changedTouches,N=t.call(this,v,b),_=E.length,T,D;for(T=0;T<_;++T)(D=m(this,N,v,b,E[T].identifier,E[T]))&&(bs(v),D("start",v,E[T]))}}function g(v){var b=v.changedTouches,E=b.length,N,_;for(N=0;N<E;++N)(_=o[b[N].identifier])&&(Za(v),_("drag",v,b[N]))}function p(v){var b=v.changedTouches,E=b.length,N,_;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),N=0;N<E;++N)(_=o[b[N].identifier])&&(bs(v),_("end",v,b[N]))}function m(v,b,E,N,_,T){var D=r.copy(),L=gt(T||E,b),k,V,w;if((w=n.call(v,new Ol("beforestart",{sourceEvent:E,target:s,identifier:_,active:i,x:L[0],y:L[1],dx:0,dy:0,dispatch:D}),N))!=null)return k=w.x-L[0]||0,V=w.y-L[1]||0,function C(M,z,R){var H=L,G;switch(M){case"start":o[_]=C,G=i++;break;case"end":delete o[_],--i;case"drag":L=gt(R||z,b),G=i;break}D.call(M,v,new Ol(M,{sourceEvent:z,subject:w,target:s,identifier:_,active:G,x:L[0]+k,y:L[1]+V,dx:L[0]-H[0],dy:L[1]-H[1],dispatch:D}),N)}}return s.filter=function(v){return arguments.length?(e=typeof v=="function"?v:Al(!!v),s):e},s.container=function(v){return arguments.length?(t=typeof v=="function"?v:Al(v),s):t},s.subject=function(v){return arguments.length?(n=typeof v=="function"?v:Al(v),s):n},s.touchable=function(v){return arguments.length?(a=typeof v=="function"?v:Al(!!v),s):a},s.on=function(){var v=r.on.apply(r,arguments);return v===r?s:v},s.clickDistance=function(v){return arguments.length?(d=(v=+v)*v,s):Math.sqrt(d)},s}function Ss(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Bh(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function Hl(){}var Dl=.7,_s=1/Dl,Wr="\\s*([+-]?\\d+)\\s*",Rl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",CA=/^#([0-9a-f]{3,8})$/,MA=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),zA=new RegExp(`^rgb\\(${On},${On},${On}\\)$`),AA=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${Rl}\\)$`),OA=new RegExp(`^rgba\\(${On},${On},${On},${Rl}\\)$`),DA=new RegExp(`^hsl\\(${Rl},${On},${On}\\)$`),RA=new RegExp(`^hsla\\(${Rl},${On},${On},${Rl}\\)$`),JS={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};Ss(Hl,dn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:FS,formatHex:FS,formatHex8:HA,formatHsl:BA,formatRgb:PS,toString:PS});function FS(){return this.rgb().formatHex()}function HA(){return this.rgb().formatHex8()}function BA(){return ow(this).formatHsl()}function PS(){return this.rgb().formatRgb()}function dn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=CA.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?WS(t):n===3?new Ct(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ws(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ws(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=MA.exec(e))?new Ct(t[1],t[2],t[3],1):(t=zA.exec(e))?new Ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=AA.exec(e))?ws(t[1],t[2],t[3],t[4]):(t=OA.exec(e))?ws(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DA.exec(e))?nw(t[1],t[2]/100,t[3]/100,1):(t=RA.exec(e))?nw(t[1],t[2]/100,t[3]/100,t[4]):JS.hasOwnProperty(e)?WS(JS[e]):e==="transparent"?new Ct(NaN,NaN,NaN,0):null}function WS(e){return new Ct(e>>16&255,e>>8&255,e&255,1)}function ws(e,t,n,a){return a<=0&&(e=t=n=NaN),new Ct(e,t,n,a)}function LA(e){return e instanceof Hl||(e=dn(e)),e?(e=e.rgb(),new Ct(e.r,e.g,e.b,e.opacity)):new Ct}function ei(e,t,n,a){return arguments.length===1?LA(e):new Ct(e,t,n,a??1)}function Ct(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}Ss(Ct,ei,Bh(Hl,{brighter(e){return e=e==null?_s:Math.pow(_s,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dl:Math.pow(Dl,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ct(Uo(this.r),Uo(this.g),Uo(this.b),Ns(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:ew,formatHex:ew,formatHex8:UA,formatRgb:tw,toString:tw}));function ew(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}`}function UA(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}${Lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function tw(){let e=Ns(this.opacity);return`${e===1?"rgb(":"rgba("}${Uo(this.r)}, ${Uo(this.g)}, ${Uo(this.b)}${e===1?")":`, ${e})`}`}function Ns(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Uo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lo(e){return e=Uo(e),(e<16?"0":"")+e.toString(16)}function nw(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fn(e,t,n,a)}function ow(e){if(e instanceof fn)return new fn(e.h,e.s,e.l,e.opacity);if(e instanceof Hl||(e=dn(e)),!e)return new fn;if(e instanceof fn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,a=e.b/255,o=Math.min(t,n,a),r=Math.max(t,n,a),i=NaN,l=r-o,u=(r+o)/2;return l?(t===r?i=(n-a)/l+(n<a)*6:n===r?i=(a-t)/l+2:i=(t-n)/l+4,l/=u<.5?r+o:2-r-o,i*=60):l=u>0&&u<1?0:i,new fn(i,l,u,e.opacity)}function rw(e,t,n,a){return arguments.length===1?ow(e):new fn(e,t,n,a??1)}function fn(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}Ss(fn,rw,Bh(Hl,{brighter(e){return e=e==null?_s:Math.pow(_s,e),new fn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dl:Math.pow(Dl,e),new fn(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,a=n+(n<.5?n:1-n)*t,o=2*n-a;return new Ct(Lh(e>=240?e-240:e+120,o,a),Lh(e,o,a),Lh(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new fn(aw(this.h),Es(this.s),Es(this.l),Ns(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Ns(this.opacity);return`${e===1?"hsl(":"hsla("}${aw(this.h)}, ${Es(this.s)*100}%, ${Es(this.l)*100}%${e===1?")":`, ${e})`}`}}));function aw(e){return e=(e||0)%360,e<0?e+360:e}function Es(e){return Math.max(0,Math.min(1,e||0))}function Lh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Uh(e,t,n,a,o){var r=e*e,i=r*e;return((1-3*e+3*r-i)*t+(4-6*r+3*i)*n+(1+3*e+3*r-3*i)*a+i*o)/6}function iw(e){var t=e.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[a],r=e[a+1],i=a>0?e[a-1]:2*o-r,l=a<t-1?e[a+2]:2*r-o;return Uh((n-a/t)*t,i,o,r,l)}}function lw(e){var t=e.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*t),o=e[(a+t-1)%t],r=e[a%t],i=e[(a+1)%t],l=e[(a+2)%t];return Uh((n-a/t)*t,o,r,i,l)}}var Bl=e=>()=>e;function VA(e,t){return function(n){return e+n*t}}function YA(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(a){return Math.pow(e+a*t,n)}}function uw(e){return(e=+e)==1?Ts:function(t,n){return n-t?YA(t,n,e):Bl(isNaN(t)?n:t)}}function Ts(e,t){var n=t-e;return n?VA(e,n):Bl(isNaN(e)?t:e)}var Vo=(function e(t){var n=uw(t);function a(o,r){var i=n((o=ei(o)).r,(r=ei(r)).r),l=n(o.g,r.g),u=n(o.b,r.b),c=Ts(o.opacity,r.opacity);return function(f){return o.r=i(f),o.g=l(f),o.b=u(f),o.opacity=c(f),o+""}}return a.gamma=e,a})(1);function cw(e){return function(t){var n=t.length,a=new Array(n),o=new Array(n),r=new Array(n),i,l;for(i=0;i<n;++i)l=ei(t[i]),a[i]=l.r||0,o[i]=l.g||0,r[i]=l.b||0;return a=e(a),o=e(o),r=e(r),l.opacity=1,function(u){return l.r=a(u),l.g=o(u),l.b=r(u),l+""}}}var kA=cw(iw),qA=cw(lw);function sw(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,a=t.slice(),o;return function(r){for(o=0;o<n;++o)a[o]=e[o]*(1-r)+t[o]*r;return a}}function fw(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dw(e,t){var n=t?t.length:0,a=e?Math.min(n,e.length):0,o=new Array(a),r=new Array(n),i;for(i=0;i<a;++i)o[i]=la(e[i],t[i]);for(;i<n;++i)r[i]=t[i];return function(l){for(i=0;i<a;++i)r[i]=o[i](l);return r}}function mw(e,t){var n=new Date;return e=+e,t=+t,function(a){return n.setTime(e*(1-a)+t*a),n}}function pt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function hw(e,t){var n={},a={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=la(e[o],t[o]):a[o]=t[o];return function(r){for(o in n)a[o]=n[o](r);return a}}var Yh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vh=new RegExp(Yh.source,"g");function GA(e){return function(){return e}}function XA(e){return function(t){return e(t)+""}}function Ll(e,t){var n=Yh.lastIndex=Vh.lastIndex=0,a,o,r,i=-1,l=[],u=[];for(e=e+"",t=t+"";(a=Yh.exec(e))&&(o=Vh.exec(t));)(r=o.index)>n&&(r=t.slice(n,r),l[i]?l[i]+=r:l[++i]=r),(a=a[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,u.push({i,x:pt(a,o)})),n=Vh.lastIndex;return n<t.length&&(r=t.slice(n),l[i]?l[i]+=r:l[++i]=r),l.length<2?u[0]?XA(u[0].x):GA(t):(t=u.length,function(c){for(var f=0,d;f<t;++f)l[(d=u[f]).i]=d.x(c);return l.join("")})}function la(e,t){var n=typeof t,a;return t==null||n==="boolean"?Bl(t):(n==="number"?pt:n==="string"?(a=dn(t))?(t=a,Vo):Ll:t instanceof dn?Vo:t instanceof Date?mw:fw(t)?sw:Array.isArray(t)?dw:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?hw:pt)(e,t)}var gw=180/Math.PI,Cs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kh(e,t,n,a,o,r){var i,l,u;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(u=e*n+t*a)&&(n-=e*u,a-=t*u),(l=Math.sqrt(n*n+a*a))&&(n/=l,a/=l,u/=l),e*a<t*n&&(e=-e,t=-t,u=-u,i=-i),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*gw,skewX:Math.atan(u)*gw,scaleX:i,scaleY:l}}var Ms;function pw(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Cs:kh(t.a,t.b,t.c,t.d,t.e,t.f)}function yw(e){return e==null?Cs:(Ms||(Ms=document.createElementNS("http://www.w3.org/2000/svg","g")),Ms.setAttribute("transform",e),(e=Ms.transform.baseVal.consolidate())?(e=e.matrix,kh(e.a,e.b,e.c,e.d,e.e,e.f)):Cs)}function vw(e,t,n,a){function o(c){return c.length?c.pop()+" ":""}function r(c,f,d,s,h,y){if(c!==d||f!==s){var x=h.push("translate(",null,t,null,n);y.push({i:x-4,x:pt(c,d)},{i:x-2,x:pt(f,s)})}else(d||s)&&h.push("translate("+d+t+s+n)}function i(c,f,d,s){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),s.push({i:d.push(o(d)+"rotate(",null,a)-2,x:pt(c,f)})):f&&d.push(o(d)+"rotate("+f+a)}function l(c,f,d,s){c!==f?s.push({i:d.push(o(d)+"skewX(",null,a)-2,x:pt(c,f)}):f&&d.push(o(d)+"skewX("+f+a)}function u(c,f,d,s,h,y){if(c!==d||f!==s){var x=h.push(o(h)+"scale(",null,",",null,")");y.push({i:x-4,x:pt(c,d)},{i:x-2,x:pt(f,s)})}else(d!==1||s!==1)&&h.push(o(h)+"scale("+d+","+s+")")}return function(c,f){var d=[],s=[];return c=e(c),f=e(f),r(c.translateX,c.translateY,f.translateX,f.translateY,d,s),i(c.rotate,f.rotate,d,s),l(c.skewX,f.skewX,d,s),u(c.scaleX,c.scaleY,f.scaleX,f.scaleY,d,s),c=f=null,function(h){for(var y=-1,x=s.length,S;++y<x;)d[(S=s[y]).i]=S.x(h);return d.join("")}}}var qh=vw(pw,"px, ","px)","deg)"),Gh=vw(yw,", ",")",")");var ZA=1e-12;function bw(e){return((e=Math.exp(e))+1/e)/2}function $A(e){return((e=Math.exp(e))-1/e)/2}function IA(e){return((e=Math.exp(2*e))-1)/(e+1)}var Yo=(function e(t,n,a){function o(r,i){var l=r[0],u=r[1],c=r[2],f=i[0],d=i[1],s=i[2],h=f-l,y=d-u,x=h*h+y*y,S,g;if(x<ZA)g=Math.log(s/c)/t,S=function(N){return[l+N*h,u+N*y,c*Math.exp(t*N*g)]};else{var p=Math.sqrt(x),m=(s*s-c*c+a*x)/(2*c*n*p),v=(s*s-c*c-a*x)/(2*s*n*p),b=Math.log(Math.sqrt(m*m+1)-m),E=Math.log(Math.sqrt(v*v+1)-v);g=(E-b)/t,S=function(N){var _=N*g,T=bw(b),D=c/(n*p)*(T*IA(t*_+b)-$A(b));return[l+D*h,u+D*y,c*T/bw(t*_+b)]}}return S.duration=g*1e3*t/Math.SQRT2,S}return o.rho=function(r){var i=Math.max(.001,+r),l=i*i,u=l*l;return e(i,l,u)},o})(Math.SQRT2,2,4);var ti=0,Vl=0,Ul=0,Sw=1e3,zs,Yl,As=0,ko=0,Os=0,kl=typeof performance=="object"&&performance.now?performance:Date,ww=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Gl(){return ko||(ww(QA),ko=kl.now()+Os)}function QA(){ko=0}function ql(){this._call=this._time=this._next=null}ql.prototype=Ds.prototype={constructor:ql,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Gl():+n)+(t==null?0:+t),!this._next&&Yl!==this&&(Yl?Yl._next=this:zs=this,Yl=this),this._call=e,this._time=n,Xh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xh())}};function Ds(e,t,n){var a=new ql;return a.restart(e,t,n),a}function Ew(){Gl(),++ti;for(var e=zs,t;e;)(t=ko-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ti}function xw(){ko=(As=kl.now())+Os,ti=Vl=0;try{Ew()}finally{ti=0,KA(),ko=0}}function jA(){var e=kl.now(),t=e-As;t>Sw&&(Os-=t,As=e)}function KA(){for(var e,t=zs,n,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:zs=n);Yl=e,Xh(a)}function Xh(e){if(!ti){Vl&&(Vl=clearTimeout(Vl));var t=e-ko;t>24?(e<1/0&&(Vl=setTimeout(xw,e-kl.now()-Os)),Ul&&(Ul=clearInterval(Ul))):(Ul||(As=kl.now(),Ul=setInterval(jA,Sw)),ti=1,ww(xw))}}function Rs(e,t,n){var a=new ql;return t=t==null?0:+t,a.restart(o=>{a.stop(),e(o+t)},t,n),a}var JA=Ro("start","end","cancel","interrupt"),FA=[],Tw=0,_w=1,Bs=2,Hs=3,Nw=4,Ls=5,Xl=6;function $a(e,t,n,a,o,r){var i=e.__transition;if(!i)e.__transition={};else if(n in i)return;PA(e,n,{name:t,index:a,group:o,on:JA,tween:FA,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Tw})}function Zl(e,t){var n=$e(e,t);if(n.state>Tw)throw new Error("too late; already scheduled");return n}function it(e,t){var n=$e(e,t);if(n.state>Hs)throw new Error("too late; already running");return n}function $e(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function PA(e,t,n){var a=e.__transition,o;a[t]=n,n.timer=Ds(r,0,n.time);function r(c){n.state=_w,n.timer.restart(i,n.delay,n.time),n.delay<=c&&i(c-n.delay)}function i(c){var f,d,s,h;if(n.state!==_w)return u();for(f in a)if(h=a[f],h.name===n.name){if(h.state===Hs)return Rs(i);h.state===Nw?(h.state=Xl,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete a[f]):+f<t&&(h.state=Xl,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete a[f])}if(Rs(function(){n.state===Hs&&(n.state=Nw,n.timer.restart(l,n.delay,n.time),l(c))}),n.state=Bs,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Bs){for(n.state=Hs,o=new Array(s=n.tween.length),f=0,d=-1;f<s;++f)(h=n.tween[f].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=h);o.length=d+1}}function l(c){for(var f=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=Ls,1),d=-1,s=o.length;++d<s;)o[d].call(e,f);n.state===Ls&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Xl,n.timer.stop(),delete a[t];for(var c in a)return;delete e.__transition}}function qo(e,t){var n=e.__transition,a,o,r=!0,i;if(n){t=t==null?null:t+"";for(i in n){if((a=n[i]).name!==t){r=!1;continue}o=a.state>Bs&&a.state<Ls,a.state=Xl,a.timer.stop(),a.on.call(o?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete n[i]}r&&delete e.__transition}}function Cw(e){return this.each(function(){qo(this,e)})}function WA(e,t){var n,a;return function(){var o=it(this,e),r=o.tween;if(r!==n){a=n=r;for(var i=0,l=a.length;i<l;++i)if(a[i].name===t){a=a.slice(),a.splice(i,1);break}}o.tween=a}}function eO(e,t,n){var a,o;if(typeof n!="function")throw new Error;return function(){var r=it(this,e),i=r.tween;if(i!==a){o=(a=i).slice();for(var l={name:t,value:n},u=0,c=o.length;u<c;++u)if(o[u].name===t){o[u]=l;break}u===c&&o.push(l)}r.tween=o}}function Mw(e,t){var n=this._id;if(e+="",arguments.length<2){for(var a=$e(this.node(),n).tween,o=0,r=a.length,i;o<r;++o)if((i=a[o]).name===e)return i.value;return null}return this.each((t==null?WA:eO)(n,e,t))}function ni(e,t,n){var a=e._id;return e.each(function(){var o=it(this,a);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return $e(o,a).value[t]}}function Us(e,t){var n;return(typeof t=="number"?pt:t instanceof dn?Vo:(n=dn(t))?(t=n,Vo):Ll)(e,t)}function tO(e){return function(){this.removeAttribute(e)}}function nO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function aO(e,t,n){var a,o=n+"",r;return function(){var i=this.getAttribute(e);return i===o?null:i===a?r:r=t(a=i,n)}}function oO(e,t,n){var a,o=n+"",r;return function(){var i=this.getAttributeNS(e.space,e.local);return i===o?null:i===a?r:r=t(a=i,n)}}function rO(e,t,n){var a,o,r;return function(){var i,l=n(this),u;return l==null?void this.removeAttribute(e):(i=this.getAttribute(e),u=l+"",i===u?null:i===a&&u===o?r:(o=u,r=t(a=i,l)))}}function iO(e,t,n){var a,o,r;return function(){var i,l=n(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(i=this.getAttributeNS(e.space,e.local),u=l+"",i===u?null:i===a&&u===o?r:(o=u,r=t(a=i,l)))}}function zw(e,t){var n=ra(e),a=n==="transform"?Gh:Us;return this.attrTween(e,typeof t=="function"?(n.local?iO:rO)(n,a,ni(this,"attr."+e,t)):t==null?(n.local?nO:tO)(n):(n.local?oO:aO)(n,a,t))}function lO(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function uO(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function cO(e,t){var n,a;function o(){var r=t.apply(this,arguments);return r!==a&&(n=(a=r)&&uO(e,r)),n}return o._value=t,o}function sO(e,t){var n,a;function o(){var r=t.apply(this,arguments);return r!==a&&(n=(a=r)&&lO(e,r)),n}return o._value=t,o}function Aw(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 a=ra(e);return this.tween(n,(a.local?cO:sO)(a,t))}function fO(e,t){return function(){Zl(this,e).delay=+t.apply(this,arguments)}}function dO(e,t){return t=+t,function(){Zl(this,e).delay=t}}function Ow(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?fO:dO)(t,e)):$e(this.node(),t).delay}function mO(e,t){return function(){it(this,e).duration=+t.apply(this,arguments)}}function hO(e,t){return t=+t,function(){it(this,e).duration=t}}function Dw(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?mO:hO)(t,e)):$e(this.node(),t).duration}function gO(e,t){if(typeof t!="function")throw new Error;return function(){it(this,e).ease=t}}function Rw(e){var t=this._id;return arguments.length?this.each(gO(t,e)):$e(this.node(),t).ease}function pO(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;it(this,e).ease=n}}function Hw(e){if(typeof e!="function")throw new Error;return this.each(pO(this._id,e))}function Bw(e){typeof e!="function"&&(e=Tl(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var r=t[o],i=r.length,l=a[o]=[],u,c=0;c<i;++c)(u=r[c])&&e.call(u,u.__data__,c,r)&&l.push(u);return new yt(a,this._parents,this._name,this._id)}function Lw(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,a=t.length,o=n.length,r=Math.min(a,o),i=new Array(a),l=0;l<r;++l)for(var u=t[l],c=n[l],f=u.length,d=i[l]=new Array(f),s,h=0;h<f;++h)(s=u[h]||c[h])&&(d[h]=s);for(;l<a;++l)i[l]=t[l];return new yt(i,this._parents,this._name,this._id)}function yO(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 vO(e,t,n){var a,o,r=yO(t)?Zl:it;return function(){var i=r(this,e),l=i.on;l!==a&&(o=(a=l).copy()).on(t,n),i.on=o}}function Uw(e,t){var n=this._id;return arguments.length<2?$e(this.node(),n).on.on(e):this.each(vO(n,e,t))}function bO(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Vw(){return this.on("end.remove",bO(this._id))}function Yw(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ho(e));for(var a=this._groups,o=a.length,r=new Array(o),i=0;i<o;++i)for(var l=a[i],u=l.length,c=r[i]=new Array(u),f,d,s=0;s<u;++s)(f=l[s])&&(d=e.call(f,f.__data__,s,l))&&("__data__"in f&&(d.__data__=f.__data__),c[s]=d,$a(c[s],t,n,s,c,$e(f,n)));return new yt(r,this._parents,t,n)}function kw(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Nl(e));for(var a=this._groups,o=a.length,r=[],i=[],l=0;l<o;++l)for(var u=a[l],c=u.length,f,d=0;d<c;++d)if(f=u[d]){for(var s=e.call(f,f.__data__,d,u),h,y=$e(f,n),x=0,S=s.length;x<S;++x)(h=s[x])&&$a(h,t,n,x,s,y);r.push(s),i.push(f)}return new yt(r,i,t,n)}var xO=ia.prototype.constructor;function qw(){return new xO(this._groups,this._parents)}function SO(e,t){var n,a,o;return function(){var r=Xa(this,e),i=(this.style.removeProperty(e),Xa(this,e));return r===i?null:r===n&&i===a?o:o=t(n=r,a=i)}}function Gw(e){return function(){this.style.removeProperty(e)}}function wO(e,t,n){var a,o=n+"",r;return function(){var i=Xa(this,e);return i===o?null:i===a?r:r=t(a=i,n)}}function EO(e,t,n){var a,o,r;return function(){var i=Xa(this,e),l=n(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),Xa(this,e))),i===u?null:i===a&&u===o?r:(o=u,r=t(a=i,l))}}function _O(e,t){var n,a,o,r="style."+t,i="end."+r,l;return function(){var u=it(this,e),c=u.on,f=u.value[r]==null?l||(l=Gw(t)):void 0;(c!==n||o!==f)&&(a=(n=c).copy()).on(i,o=f),u.on=a}}function Xw(e,t,n){var a=(e+="")=="transform"?qh:Us;return t==null?this.styleTween(e,SO(e,a)).on("end.style."+e,Gw(e)):typeof t=="function"?this.styleTween(e,EO(e,a,ni(this,"style."+e,t))).each(_O(this._id,e)):this.styleTween(e,wO(e,a,t),n).on("end.style."+e,null)}function NO(e,t,n){return function(a){this.style.setProperty(e,t.call(this,a),n)}}function TO(e,t,n){var a,o;function r(){var i=t.apply(this,arguments);return i!==o&&(a=(o=i)&&NO(e,i,n)),a}return r._value=t,r}function Zw(e,t,n){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,TO(e,t,n??""))}function CO(e){return function(){this.textContent=e}}function MO(e){return function(){var t=e(this);this.textContent=t??""}}function $w(e){return this.tween("text",typeof e=="function"?MO(ni(this,"text",e)):CO(e==null?"":e+""))}function zO(e){return function(t){this.textContent=e.call(this,t)}}function AO(e){var t,n;function a(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&zO(o)),t}return a._value=e,a}function Iw(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,AO(e))}function Qw(){for(var e=this._name,t=this._id,n=Vs(),a=this._groups,o=a.length,r=0;r<o;++r)for(var i=a[r],l=i.length,u,c=0;c<l;++c)if(u=i[c]){var f=$e(u,t);$a(u,e,n,c,i,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new yt(a,this._parents,e,n)}function jw(){var e,t,n=this,a=n._id,o=n.size();return new Promise(function(r,i){var l={value:i},u={value:function(){--o===0&&r()}};n.each(function(){var c=it(this,a),f=c.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),c.on=t}),o===0&&r()})}var OO=0;function yt(e,t,n,a){this._groups=e,this._parents=t,this._name=n,this._id=a}function Kw(e){return ia().transition(e)}function Vs(){return++OO}var ua=ia.prototype;yt.prototype=Kw.prototype={constructor:yt,select:Yw,selectAll:kw,selectChild:ua.selectChild,selectChildren:ua.selectChildren,filter:Bw,merge:Lw,selection:qw,transition:Qw,call:ua.call,nodes:ua.nodes,node:ua.node,size:ua.size,empty:ua.empty,each:ua.each,on:Uw,attr:zw,attrTween:Aw,style:Xw,styleTween:Zw,text:$w,textTween:Iw,remove:Vw,tween:Mw,delay:Ow,duration:Dw,ease:Rw,easeVarying:Hw,end:jw,[Symbol.iterator]:ua[Symbol.iterator]};function Ys(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var DO={time:null,delay:0,duration:250,ease:Ys};function RO(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 Jw(e){var t,n;e instanceof yt?(t=e._id,e=e._name):(t=Vs(),(n=DO).time=Gl(),e=e==null?null:e+"");for(var a=this._groups,o=a.length,r=0;r<o;++r)for(var i=a[r],l=i.length,u,c=0;c<l;++c)(u=i[c])&&$a(u,e,t,c,i,n||RO(u,t));return new yt(a,this._parents,e,t)}ia.prototype.interrupt=Cw;ia.prototype.transition=Jw;var $l=e=>()=>e;function Zh(e,{sourceEvent:t,target:n,transform:a,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:a,enumerable:!0,configurable:!0},_:{value:o}})}function mn(e,t,n){this.k=e,this.x=t,this.y=n}mn.prototype={constructor:mn,scale:function(e){return e===1?this:new mn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new mn(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 Go=new mn(1,0,0);Il.prototype=mn.prototype;function Il(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Go;return e.__zoom}function ks(e){e.stopImmediatePropagation()}function ai(e){e.preventDefault(),e.stopImmediatePropagation()}function HO(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function BO(){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 Fw(){return this.__zoom||Go}function LO(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function UO(){return navigator.maxTouchPoints||"ontouchstart"in this}function VO(e,t,n){var a=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],i=e.invertY(t[1][1])-n[1][1];return e.translate(o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o),i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i))}function qs(){var e=HO,t=BO,n=VO,a=LO,o=UO,r=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],l=250,u=Yo,c=Ro("start","zoom","end"),f,d,s,h=500,y=150,x=0,S=10;function g(w){w.property("__zoom",Fw).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",D).filter(o).on("touchstart.zoom",L).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(w,C,M,z){var R=w.selection?w.selection():w;R.property("__zoom",Fw),w!==R?b(w,C,M,z):R.interrupt().each(function(){E(this,arguments).event(z).start().zoom(null,typeof C=="function"?C.apply(this,arguments):C).end()})},g.scaleBy=function(w,C,M,z){g.scaleTo(w,function(){var R=this.__zoom.k,H=typeof C=="function"?C.apply(this,arguments):C;return R*H},M,z)},g.scaleTo=function(w,C,M,z){g.transform(w,function(){var R=t.apply(this,arguments),H=this.__zoom,G=M==null?v(R):typeof M=="function"?M.apply(this,arguments):M,q=H.invert(G),X=typeof C=="function"?C.apply(this,arguments):C;return n(m(p(H,X),G,q),R,i)},M,z)},g.translateBy=function(w,C,M,z){g.transform(w,function(){return n(this.__zoom.translate(typeof C=="function"?C.apply(this,arguments):C,typeof M=="function"?M.apply(this,arguments):M),t.apply(this,arguments),i)},null,z)},g.translateTo=function(w,C,M,z,R){g.transform(w,function(){var H=t.apply(this,arguments),G=this.__zoom,q=z==null?v(H):typeof z=="function"?z.apply(this,arguments):z;return n(Go.translate(q[0],q[1]).scale(G.k).translate(typeof C=="function"?-C.apply(this,arguments):-C,typeof M=="function"?-M.apply(this,arguments):-M),H,i)},z,R)};function p(w,C){return C=Math.max(r[0],Math.min(r[1],C)),C===w.k?w:new mn(C,w.x,w.y)}function m(w,C,M){var z=C[0]-M[0]*w.k,R=C[1]-M[1]*w.k;return z===w.x&&R===w.y?w:new mn(w.k,z,R)}function v(w){return[(+w[0][0]+ +w[1][0])/2,(+w[0][1]+ +w[1][1])/2]}function b(w,C,M,z){w.on("start.zoom",function(){E(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){E(this,arguments).event(z).end()}).tween("zoom",function(){var R=this,H=arguments,G=E(R,H).event(z),q=t.apply(R,H),X=M==null?v(q):typeof M=="function"?M.apply(R,H):M,K=Math.max(q[1][0]-q[0][0],q[1][1]-q[0][1]),Z=R.__zoom,J=typeof C=="function"?C.apply(R,H):C,re=u(Z.invert(X).concat(K/Z.k),J.invert(X).concat(K/J.k));return function(j){if(j===1)j=J;else{var Y=re(j),I=K/Y[2];j=new mn(I,X[0]-Y[0]*I,X[1]-Y[1]*I)}G.zoom(null,j)}})}function E(w,C,M){return!M&&w.__zooming||new N(w,C)}function N(w,C){this.that=w,this.args=C,this.active=0,this.sourceEvent=null,this.extent=t.apply(w,C),this.taps=0}N.prototype={event:function(w){return w&&(this.sourceEvent=w),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(w,C){return this.mouse&&w!=="mouse"&&(this.mouse[1]=C.invert(this.mouse[0])),this.touch0&&w!=="touch"&&(this.touch0[1]=C.invert(this.touch0[0])),this.touch1&&w!=="touch"&&(this.touch1[1]=C.invert(this.touch1[0])),this.that.__zoom=C,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(w){var C=Je(this.that).datum();c.call(w,this.that,new Zh(w,{sourceEvent:this.sourceEvent,target:g,type:w,transform:this.that.__zoom,dispatch:c}),C)}};function _(w,...C){if(!e.apply(this,arguments))return;var M=E(this,C).event(w),z=this.__zoom,R=Math.max(r[0],Math.min(r[1],z.k*Math.pow(2,a.apply(this,arguments)))),H=gt(w);if(M.wheel)(M.mouse[0][0]!==H[0]||M.mouse[0][1]!==H[1])&&(M.mouse[1]=z.invert(M.mouse[0]=H)),clearTimeout(M.wheel);else{if(z.k===R)return;M.mouse=[H,z.invert(H)],qo(this),M.start()}ai(w),M.wheel=setTimeout(G,y),M.zoom("mouse",n(m(p(z,R),M.mouse[0],M.mouse[1]),M.extent,i));function G(){M.wheel=null,M.end()}}function T(w,...C){if(s||!e.apply(this,arguments))return;var M=w.currentTarget,z=E(this,C,!0).event(w),R=Je(w.view).on("mousemove.zoom",X,!0).on("mouseup.zoom",K,!0),H=gt(w,M),G=w.clientX,q=w.clientY;Ml(w.view),ks(w),z.mouse=[H,this.__zoom.invert(H)],qo(this),z.start();function X(Z){if(ai(Z),!z.moved){var J=Z.clientX-G,re=Z.clientY-q;z.moved=J*J+re*re>x}z.event(Z).zoom("mouse",n(m(z.that.__zoom,z.mouse[0]=gt(Z,M),z.mouse[1]),z.extent,i))}function K(Z){R.on("mousemove.zoom mouseup.zoom",null),zl(Z.view,z.moved),ai(Z),z.event(Z).end()}}function D(w,...C){if(e.apply(this,arguments)){var M=this.__zoom,z=gt(w.changedTouches?w.changedTouches[0]:w,this),R=M.invert(z),H=M.k*(w.shiftKey?.5:2),G=n(m(p(M,H),z,R),t.apply(this,C),i);ai(w),l>0?Je(this).transition().duration(l).call(b,G,z,w):Je(this).call(g.transform,G,z,w)}}function L(w,...C){if(e.apply(this,arguments)){var M=w.touches,z=M.length,R=E(this,C,w.changedTouches.length===z).event(w),H,G,q,X;for(ks(w),G=0;G<z;++G)q=M[G],X=gt(q,this),X=[X,this.__zoom.invert(X),q.identifier],R.touch0?!R.touch1&&R.touch0[2]!==X[2]&&(R.touch1=X,R.taps=0):(R.touch0=X,H=!0,R.taps=1+!!f);f&&(f=clearTimeout(f)),H&&(R.taps<2&&(d=X[0],f=setTimeout(function(){f=null},h)),qo(this),R.start())}}function k(w,...C){if(this.__zooming){var M=E(this,C).event(w),z=w.changedTouches,R=z.length,H,G,q,X;for(ai(w),H=0;H<R;++H)G=z[H],q=gt(G,this),M.touch0&&M.touch0[2]===G.identifier?M.touch0[0]=q:M.touch1&&M.touch1[2]===G.identifier&&(M.touch1[0]=q);if(G=M.that.__zoom,M.touch1){var K=M.touch0[0],Z=M.touch0[1],J=M.touch1[0],re=M.touch1[1],j=(j=J[0]-K[0])*j+(j=J[1]-K[1])*j,Y=(Y=re[0]-Z[0])*Y+(Y=re[1]-Z[1])*Y;G=p(G,Math.sqrt(j/Y)),q=[(K[0]+J[0])/2,(K[1]+J[1])/2],X=[(Z[0]+re[0])/2,(Z[1]+re[1])/2]}else if(M.touch0)q=M.touch0[0],X=M.touch0[1];else return;M.zoom("touch",n(m(G,q,X),M.extent,i))}}function V(w,...C){if(this.__zooming){var M=E(this,C).event(w),z=w.changedTouches,R=z.length,H,G;for(ks(w),s&&clearTimeout(s),s=setTimeout(function(){s=null},h),H=0;H<R;++H)G=z[H],M.touch0&&M.touch0[2]===G.identifier?delete M.touch0:M.touch1&&M.touch1[2]===G.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&&(G=gt(G,this),Math.hypot(d[0]-G[0],d[1]-G[1])<S)){var q=Je(this).on("dblclick.zoom");q&&q.apply(this,arguments)}}}return g.wheelDelta=function(w){return arguments.length?(a=typeof w=="function"?w:$l(+w),g):a},g.filter=function(w){return arguments.length?(e=typeof w=="function"?w:$l(!!w),g):e},g.touchable=function(w){return arguments.length?(o=typeof w=="function"?w:$l(!!w),g):o},g.extent=function(w){return arguments.length?(t=typeof w=="function"?w:$l([[+w[0][0],+w[0][1]],[+w[1][0],+w[1][1]]]),g):t},g.scaleExtent=function(w){return arguments.length?(r[0]=+w[0],r[1]=+w[1],g):[r[0],r[1]]},g.translateExtent=function(w){return arguments.length?(i[0][0]=+w[0][0],i[1][0]=+w[1][0],i[0][1]=+w[0][1],i[1][1]=+w[1][1],g):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},g.constrain=function(w){return arguments.length?(n=w,g):n},g.duration=function(w){return arguments.length?(l=+w,g):l},g.interpolate=function(w){return arguments.length?(u=w,g):u},g.on=function(){var w=c.on.apply(c,arguments);return w===c?g:w},g.clickDistance=function(w){return arguments.length?(x=(w=+w)*w,g):Math.sqrt(x)},g.tapDistance=function(w){return arguments.length?(S=+w,g):S},g}var kt={error001:(e="react")=>`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007: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:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:a}", 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.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},ii=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Kh=["Enter"," ","Escape"],Jh={"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"},Ka;(function(e){e.Strict="strict",e.Loose="loose"})(Ka||(Ka={}));var ca;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(ca||(ca={}));var Xo;(function(e){e.Partial="partial",e.Full="full"})(Xo||(Xo={}));var Fh={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},Dn;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Dn||(Dn={}));var Ja;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Ja||(Ja={}));var $;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})($||($={}));var Pw={[$.Left]:$.Right,[$.Right]:$.Left,[$.Top]:$.Bottom,[$.Bottom]:$.Top},Ph=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,fE=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Wh=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e);var jl=(e,t=[0,0])=>{let{width:n,height:a}=tn(e),o=e.origin??t,r=n*o[0],i=a*o[1];return{x:e.position.x-r,y:e.position.y-i}},eg=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};let n=!1,a=e.reduce((o,r)=>{let i=typeof r=="string",l=!t.nodeLookup&&!i?r:void 0;return t.nodeLookup&&(l=i?t.nodeLookup.get(r):Wh(r)?r:t.nodeLookup.get(r.id)),l?(n=!0,Qs(o,Zs(l,t.nodeOrigin))):o},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return n?js(a):{x:0,y:0,width:0,height:0}},li=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(o=>{(t.filter===void 0||t.filter(o))&&(n=Qs(n,Zs(o)),a=!0)}),a?js(n):{x:0,y:0,width:0,height:0}},$s=(e,t,[n,a,o]=[0,0,1],r=!1,i=!1)=>{let l=(t.x-n)/o,u=(t.y-a)/o,c=t.width/o,f=t.height/o,d=[];for(let s of e.values()){let{measured:h,selectable:y=!0,hidden:x=!1}=s;if(i&&!y||x)continue;let S=h.width??s.width??s.initialWidth??0,g=h.height??s.height??s.initialHeight??0,{x:p,y:m}=s.internals.positionAbsolute,v=pE(l,u,c,f,p,m,S,g),b=S*g,E=r&&v>0;(!s.internals.handleBounds||E||v>=b||s.dragging)&&d.push(s)}return d},dE=(e,t)=>{let n=new Set;return e.forEach(a=>{n.add(a.id)}),t.filter(a=>n.has(a.source)||n.has(a.target))};function YO(e,t){let n=new Map,a=t?.nodes?new Set(t.nodes.map(o=>o.id)):null;return e.forEach(o=>{let r;if(t?.includeHiddenNodes){let{width:i,height:l}=tn(o);r=i>0&&l>0}else r=!!(o.measured.width&&o.measured.height&&!o.hidden);r&&(!a||a.has(o.id))&&n.set(o.id,o)}),n}async function mE({nodes:e,width:t,height:n,panZoom:a,minZoom:o,maxZoom:r},i){if(e.size===0)return!0;let l=YO(e,i),u=li(l),c=Jl(u,t,n,i?.minZoom??o,i?.maxZoom??r,i?.padding??.1);return await a.setViewport(c,{duration:i?.duration,ease:i?.ease,interpolate:i?.interpolate}),!0}function tg({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:a=[0,0],nodeExtent:o,onError:r}){let i=n.get(e),l=i.parentId?n.get(i.parentId):void 0,{x:u,y:c}=l?l.internals.positionAbsolute:{x:0,y:0},f=i.origin??a,d=i.extent||o;if(i.extent==="parent"&&!i.expandParent)if(!l)r?.("005",kt.error005());else{let{width:h,height:y}=tn(l);h&&y&&(d=[[u,c],[u+h,c+y]])}else l&&Io(i.extent)&&(d=[[i.extent[0][0]+u,i.extent[0][1]+c],[i.extent[1][0]+u,i.extent[1][1]+c]]);let s=Io(d)?Zo(t,d,i.measured):t;return(i.measured.width===void 0||i.measured.height===void 0)&&r?.("015",kt.error015()),{position:{x:s.x-u+(i.measured.width??0)*f[0],y:s.y-c+(i.measured.height??0)*f[1]},positionAbsolute:s}}async function hE({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:a,onBeforeDelete:o}){let r=new Set(e.map(s=>s.id)),i=[];for(let s of n){if(s.deletable===!1)continue;let h=r.has(s.id),y=!h&&s.parentId&&i.find(x=>x.id===s.parentId);(h||y)&&i.push(s)}let l=new Set(t.map(s=>s.id)),u=a.filter(s=>s.deletable!==!1),f=dE(i,u);for(let s of u)l.has(s.id)&&!f.find(y=>y.id===s.id)&&f.push(s);if(!o)return{edges:f,nodes:i};let d=await o({nodes:i,edges:f});return typeof d=="boolean"?d?{edges:f,nodes:i}:{edges:[],nodes:[]}:d}var ri=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Zo=(e={x:0,y:0},t,n)=>({x:ri(e.x,t[0][0],t[1][0]-(n?.width??0)),y:ri(e.y,t[0][1],t[1][1]-(n?.height??0))});function gE(e,t,n){let{width:a,height:o}=tn(n),{x:r,y:i}=n.internals.positionAbsolute;return Zo(e,[[r,i],[r+a,i+o]],t)}var Ww=(e,t,n)=>e<t?ri(Math.abs(e-t),1,t)/t:e>n?-ri(Math.abs(e-n),1,t)/t:0,Is=(e,t,n=15,a=40)=>{let o=Ww(e.x,a,t.width-a)*n,r=Ww(e.y,a,t.height-a)*n;return[o,r]},Qs=(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)}),jh=({x:e,y:t,width:n,height:a})=>({x:e,y:t,x2:e+n,y2:t+a}),js=({x:e,y:t,x2:n,y2:a})=>({x:e,y:t,width:n-e,height:a-t}),ui=(e,t=[0,0])=>{let{x:n,y:a}=Wh(e)?e.internals.positionAbsolute:jl(e,t);return{x:n,y:a,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},Zs=(e,t=[0,0])=>{let{x:n,y:a}=Wh(e)?e.internals.positionAbsolute:jl(e,t);return{x:n,y:a,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:a+(e.measured?.height??e.height??e.initialHeight??0)}},ng=(e,t)=>js(Qs(jh(e),jh(t))),pE=(e,t,n,a,o,r,i,l)=>{let u=Math.max(0,Math.min(e+n,o+i)-Math.max(e,o)),c=Math.max(0,Math.min(t+a,r+l)-Math.max(t,r));return Math.ceil(u*c)},Kl=(e,t)=>pE(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),ag=e=>Wt(e.width)&&Wt(e.height)&&Wt(e.x)&&Wt(e.y),Wt=e=>!isNaN(e)&&isFinite(e),og=(e,t)=>(n,a)=>{},ci=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),si=({x:e,y:t},[n,a,o],r=!1,i=[1,1])=>{let l={x:(e-n)/o,y:(t-a)/o};return r?ci(l,i):l},$o=({x:e,y:t},[n,a,o])=>({x:e*o+n,y:t*o+a});function oi(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function kO(e,t,n){if(typeof e=="string"||typeof e=="number"){let a=oi(e,n),o=oi(e,t);return{top:a,right:o,bottom:a,left:o,x:o*2,y:a*2}}if(typeof e=="object"){let a=oi(e.top??e.y??0,n),o=oi(e.bottom??e.y??0,n),r=oi(e.left??e.x??0,t),i=oi(e.right??e.x??0,t);return{top:a,right:i,bottom:o,left:r,x:r+i,y:a+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function qO(e,t,n,a,o,r){let{x:i,y:l}=$o(e,[t,n,a]),{x:u,y:c}=$o({x:e.x+e.width,y:e.y+e.height},[t,n,a]),f=o-u,d=r-c;return{left:Math.floor(i),top:Math.floor(l),right:Math.floor(f),bottom:Math.floor(d)}}var Jl=(e,t,n,a,o,r)=>{let i=kO(r,t,n),l=(t-i.x)/e.width,u=(n-i.y)/e.height,c=Math.min(l,u),f=ri(c,a,o),d=e.x+e.width/2,s=e.y+e.height/2,h=t/2-d*f,y=n/2-s*f,x=qO(e,h,y,f,t,n),S={left:Math.min(x.left-i.left,0),top:Math.min(x.top-i.top,0),right:Math.min(x.right-i.right,0),bottom:Math.min(x.bottom-i.bottom,0)};return{x:h-S.left+S.right,y:y-S.top+S.bottom,zoom:f}},fi=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function Io(e){return e!=null&&e!=="parent"}function tn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function rg(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function ig(e,t={width:0,height:0},n,a,o){let r={...e},i=a.get(n);if(i){let l=i.origin||o;r.x+=i.internals.positionAbsolute.x-(t.width??0)*l[0],r.y+=i.internals.positionAbsolute.y-(t.height??0)*l[1]}return r}function lg(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function yE(){let e,t;return{promise:new Promise((a,o)=>{e=a,t=o}),resolve:e,reject:t}}function vE(e){return{...Jh,...e||{}}}function ug(e){return e===null?null:e?"valid":"invalid"}function Ql(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:a,containerBounds:o}){let{x:r,y:i}=en(e),l=si({x:r-(o?.left??0),y:i-(o?.top??0)},a),{x:u,y:c}=n?ci(l,t):l;return{xSnapped:u,ySnapped:c,...l}}var Ks=e=>({width:e.offsetWidth,height:e.offsetHeight}),cg=e=>e?.getRootNode?.()||window?.document,GO=["INPUT","SELECT","TEXTAREA"];function sg(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType!==1?!1:GO.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}var fg=e=>"clientX"in e,en=(e,t)=>{let n=fg(e),a=n?e.clientX:e.touches?.[0].clientX,o=n?e.clientY:e.touches?.[0].clientY;return{x:a-(t?.left??0),y:o-(t?.top??0)}},eE=(e,t,n,a,o)=>{let r=t.querySelectorAll(`.${e}`);return!r||!r.length?null:Array.from(r).map(i=>{let l=i.getBoundingClientRect();return{id:i.getAttribute("data-handleid"),type:e,nodeId:o,position:i.getAttribute("data-handlepos"),x:(l.left-n.left)/a,y:(l.top-n.top)/a,...Ks(i)}})};function Js({sourceX:e,sourceY:t,targetX:n,targetY:a,sourceControlX:o,sourceControlY:r,targetControlX:i,targetControlY:l}){let u=e*.125+o*.375+i*.375+n*.125,c=t*.125+r*.375+l*.375+a*.125,f=Math.abs(u-e),d=Math.abs(c-t);return[u,c,f,d]}function Gs(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function tE({pos:e,x1:t,y1:n,x2:a,y2:o,c:r}){switch(e){case $.Left:return[t-Gs(t-a,r),n];case $.Right:return[t+Gs(a-t,r),n];case $.Top:return[t,n-Gs(n-o,r)];case $.Bottom:return[t,n+Gs(o-n,r)]}}function Fs({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:a,targetY:o,targetPosition:r=$.Top,curvature:i=.25}){let[l,u]=tE({pos:n,x1:e,y1:t,x2:a,y2:o,c:i}),[c,f]=tE({pos:r,x1:a,y1:o,x2:e,y2:t,c:i}),[d,s,h,y]=Js({sourceX:e,sourceY:t,targetX:a,targetY:o,sourceControlX:l,sourceControlY:u,targetControlX:c,targetControlY:f});return[`M${e},${t} C${l},${u} ${c},${f} ${a},${o}`,d,s,h,y]}function dg({sourceX:e,sourceY:t,targetX:n,targetY:a}){let o=Math.abs(n-e)/2,r=n<e?n+o:n-o,i=Math.abs(a-t)/2,l=a<t?a+i:a-i;return[r,l,o,i]}function bE({sourceNode:e,targetNode:t,selected:n=!1,zIndex:a=0,elevateOnSelect:o=!1,zIndexMode:r="basic"}){if(r==="manual")return a;let i=o&&n?a+1e3:a,l=Math.max(e.parentId||o&&e.selected?e.internals.z:0,t.parentId||o&&t.selected?t.internals.z:0);return i+l}function xE({sourceNode:e,targetNode:t,width:n,height:a,transform:o}){let r=Qs(Zs(e),Zs(t));r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1);let i={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:a/o[2]};return Kl(i,js(r))>0}var XO=({source:e,sourceHandle:t,target:n,targetHandle:a})=>`xy-edge__${e}${t||""}-${n}${a||""}`,ZO=(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)),SE=(e,t,n={})=>{if(!e.source||!e.target)return n.onError?.("006",kt.error006()),t;let a=n.getEdgeId||XO,o;return Ph(e)?o={...e}:o={...e,id:a(e)},ZO(o,t)?t:(o.sourceHandle===null&&delete o.sourceHandle,o.targetHandle===null&&delete o.targetHandle,t.concat(o))};function Ps({sourceX:e,sourceY:t,targetX:n,targetY:a}){let[o,r,i,l]=dg({sourceX:e,sourceY:t,targetX:n,targetY:a});return[`M ${e},${t}L ${n},${a}`,o,r,i,l]}var nE={[$.Left]:{x:-1,y:0},[$.Right]:{x:1,y:0},[$.Top]:{x:0,y:-1},[$.Bottom]:{x:0,y:1}},$O=({source:e,sourcePosition:t=$.Bottom,target:n})=>t===$.Left||t===$.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},aE=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function IO({source:e,sourcePosition:t=$.Bottom,target:n,targetPosition:a=$.Top,center:o,offset:r,stepPosition:i}){let l=nE[t],u=nE[a],c={x:e.x+l.x*r,y:e.y+l.y*r},f={x:n.x+u.x*r,y:n.y+u.y*r},d=$O({source:c,sourcePosition:t,target:f}),s=d.x!==0?"x":"y",h=d[s],y=[],x,S,g={x:0,y:0},p={x:0,y:0},[,,m,v]=dg({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[s]*u[s]===-1){s==="x"?(x=o.x??c.x+(f.x-c.x)*i,S=o.y??(c.y+f.y)/2):(x=o.x??(c.x+f.x)/2,S=o.y??c.y+(f.y-c.y)*i);let _=[{x,y:c.y},{x,y:f.y}],T=[{x:c.x,y:S},{x:f.x,y:S}];l[s]===h?y=s==="x"?_:T:y=s==="x"?T:_}else{let _=[{x:c.x,y:f.y}],T=[{x:f.x,y:c.y}];if(s==="x"?y=l.x===h?T:_:y=l.y===h?_:T,t===a){let w=Math.abs(e[s]-n[s]);if(w<=r){let C=Math.min(r-1,r-w);l[s]===h?g[s]=(c[s]>e[s]?-1:1)*C:p[s]=(f[s]>n[s]?-1:1)*C}}if(t!==a){let w=s==="x"?"y":"x",C=l[s]===u[w],M=c[w]>f[w],z=c[w]<f[w];(l[s]===1&&(!C&&M||C&&z)||l[s]!==1&&(!C&&z||C&&M))&&(y=s==="x"?_:T)}let D={x:c.x+g.x,y:c.y+g.y},L={x:f.x+p.x,y:f.y+p.y},k=Math.max(Math.abs(D.x-y[0].x),Math.abs(L.x-y[0].x)),V=Math.max(Math.abs(D.y-y[0].y),Math.abs(L.y-y[0].y));k>=V?(x=(D.x+L.x)/2,S=y[0].y):(x=y[0].x,S=(D.y+L.y)/2)}let b={x:c.x+g.x,y:c.y+g.y},E={x:f.x+p.x,y:f.y+p.y};return[[e,...b.x!==y[0].x||b.y!==y[0].y?[b]:[],...y,...E.x!==y[y.length-1].x||E.y!==y[y.length-1].y?[E]:[],n],x,S,m,v]}function QO(e,t,n,a){let o=Math.min(aE(e,t)/2,aE(t,n)/2,a),{x:r,y:i}=t;if(e.x===r&&r===n.x||e.y===i&&i===n.y)return`L${r} ${i}`;if(e.y===i){let c=e.x<n.x?-1:1,f=e.y<n.y?1:-1;return`L ${r+o*c},${i}Q ${r},${i} ${r},${i+o*f}`}let l=e.x<n.x?1:-1,u=e.y<n.y?-1:1;return`L ${r},${i+o*u}Q ${r},${i} ${r+o*l},${i}`}function Fl({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:a,targetY:o,targetPosition:r=$.Top,borderRadius:i=5,centerX:l,centerY:u,offset:c=20,stepPosition:f=.5}){let[d,s,h,y,x]=IO({source:{x:e,y:t},sourcePosition:n,target:{x:a,y:o},targetPosition:r,center:{x:l,y:u},offset:c,stepPosition:f}),S=`M${d[0].x} ${d[0].y}`;for(let g=1;g<d.length-1;g++)S+=QO(d[g-1],d[g],d[g+1],i);return S+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[S,s,h,y,x]}function oE(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function wE(e){let{sourceNode:t,targetNode:n}=e;if(!oE(t)||!oE(n))return null;let a=t.internals.handleBounds||rE(t.handles),o=n.internals.handleBounds||rE(n.handles),r=iE(a?.source??[],e.sourceHandle),i=iE(e.connectionMode===Ka.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),e.targetHandle);if(!r||!i)return e.onError?.("008",kt.error008(r?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let l=r?.position||$.Bottom,u=i?.position||$.Top,c=Fa(t,r,l),f=Fa(n,i,u);return{sourceX:c.x,sourceY:c.y,targetX:f.x,targetY:f.y,sourcePosition:l,targetPosition:u}}function rE(e){if(!e)return null;let t=[],n=[];for(let a of e)a.width=a.width??1,a.height=a.height??1,a.type==="source"?t.push(a):a.type==="target"&&n.push(a);return{source:t,target:n}}function Fa(e,t,n=$.Left,a=!1){let o=(t?.x??0)+e.internals.positionAbsolute.x,r=(t?.y??0)+e.internals.positionAbsolute.y,{width:i,height:l}=t??tn(e);if(a)return{x:o+i/2,y:r+l/2};switch(t?.position??n){case $.Top:return{x:o+i/2,y:r};case $.Right:return{x:o+i,y:r+l/2};case $.Bottom:return{x:o+i/2,y:r+l};case $.Left:return{x:o,y:r+l/2}}}function iE(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function Ws(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function EE(e,{id:t,defaultColor:n,defaultMarkerStart:a,defaultMarkerEnd:o}){let r=new Set;return e.reduce((i,l)=>([l.markerStart||a,l.markerEnd||o].forEach(u=>{if(u&&typeof u=="object"){let c=Ws(u,t);r.has(c)||(i.push({id:c,color:u.color||n,...u}),r.add(c))}}),i),[]).sort((i,l)=>i.id.localeCompare(l.id))}var _E=1e3,jO=10,mg={nodeOrigin:[0,0],nodeExtent:ii,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},KO={...mg,checkEquality:!0};function hg(e,t){let n={...e};for(let a in t)t[a]!==void 0&&(n[a]=t[a]);return n}function NE(e,t,n){let a=hg(mg,n);for(let o of e.values())if(o.parentId)pg(o,e,t,a);else{let r=jl(o,a.nodeOrigin),i=Io(o.extent)?o.extent:a.nodeExtent,l=Zo(r,i,tn(o));o.internals.positionAbsolute=l}}function JO(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],a=[];for(let o of e.handles){let r={id:o.id,width:o.width??1,height:o.height??1,nodeId:e.id,x:o.x,y:o.y,position:o.position,type:o.type};o.type==="source"?n.push(r):o.type==="target"&&a.push(r)}return{source:n,target:a}}function gg(e){return e==="manual"}function ef(e,t,n,a={}){let o=hg(KO,a),r={i:0},i=new Map(t),l=o?.elevateNodesOnSelect&&!gg(o.zIndexMode)?_E:0,u=e.length>0,c=!1;t.clear(),n.clear();for(let f of e){let d=i.get(f.id);if(o.checkEquality&&f===d?.internals.userNode)t.set(f.id,d);else{let s=jl(f,o.nodeOrigin),h=Io(f.extent)?f.extent:o.nodeExtent,y=Zo(s,h,tn(f));d={...o.defaults,...f,measured:{width:f.measured?.width,height:f.measured?.height},internals:{positionAbsolute:y,handleBounds:JO(f,d),z:TE(f,l,o.zIndexMode),userNode:f}},t.set(f.id,d)}(d.measured===void 0||d.measured.width===void 0||d.measured.height===void 0)&&!d.hidden&&(u=!1),f.parentId&&pg(d,t,n,a,r),c||=f.selected??!1}return{nodesInitialized:u,hasSelectedNodes:c}}function FO(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function pg(e,t,n,a,o){let{elevateNodesOnSelect:r,nodeOrigin:i,nodeExtent:l,zIndexMode:u}=hg(mg,a),c=e.parentId,f=t.get(c);if(!f){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}FO(e,n),o&&!f.parentId&&f.internals.rootParentIndex===void 0&&u==="auto"&&(f.internals.rootParentIndex=++o.i,f.internals.z=f.internals.z+o.i*jO),o&&f.internals.rootParentIndex!==void 0&&(o.i=f.internals.rootParentIndex);let d=r&&!gg(u)?_E:0,{x:s,y:h,z:y}=PO(e,f,i,l,d,u),{positionAbsolute:x}=e.internals,S=s!==x.x||h!==x.y;(S||y!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:s,y:h}:x,z:y}})}function TE(e,t,n){let a=Wt(e.zIndex)?e.zIndex:0;return gg(n)?a:a+(e.selected?t:0)}function PO(e,t,n,a,o,r){let{x:i,y:l}=t.internals.positionAbsolute,u=tn(e),c=jl(e,n),f=Io(e.extent)?Zo(c,e.extent,u):c,d=Zo({x:i+f.x,y:l+f.y},a,u);e.extent==="parent"&&(d=gE(d,u,t));let s=TE(e,o,r),h=t.internals.z??0;return{x:d.x,y:d.y,z:h>=s?h+1:s}}function tf(e,t,n,a=[0,0]){let o=[],r=new Map;for(let i of e){let l=t.get(i.parentId);if(!l)continue;let u=r.get(i.parentId)?.expandedRect??ui(l),c=ng(u,i.rect);r.set(i.parentId,{expandedRect:c,parent:l})}return r.size>0&&r.forEach(({expandedRect:i,parent:l},u)=>{let c=l.internals.positionAbsolute,f=tn(l),d=l.origin??a,s=i.x<c.x?Math.round(Math.abs(c.x-i.x)):0,h=i.y<c.y?Math.round(Math.abs(c.y-i.y)):0,y=Math.max(f.width,Math.round(i.width)),x=Math.max(f.height,Math.round(i.height)),S=(y-f.width)*d[0],g=(x-f.height)*d[1];(s>0||h>0||S||g)&&(o.push({id:u,type:"position",position:{x:l.position.x-s+S,y:l.position.y-h+g}}),n.get(u)?.forEach(p=>{e.some(m=>m.id===p.id)||o.push({id:p.id,type:"position",position:{x:p.position.x+s,y:p.position.y+h}})})),(f.width<i.width||f.height<i.height||s||h)&&o.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:y+(s?d[0]*s-S:0),height:x+(h?d[1]*h-g:0)}})}),o}function CE(e,t,n,a,o,r,i){let l=a?.querySelector(".xyflow__viewport"),u=!1;if(!l)return{changes:[],updatedInternals:u};let c=[],f=window.getComputedStyle(l),{m22:d}=new window.DOMMatrixReadOnly(f.transform),s=[];for(let h of e.values()){let y=t.get(h.id);if(!y)continue;if(y.hidden){t.set(y.id,{...y,internals:{...y.internals,handleBounds:void 0}}),u=!0;continue}let x=Ks(h.nodeElement),S=y.measured.width!==x.width||y.measured.height!==x.height;if(!!(x.width&&x.height&&(S||!y.internals.handleBounds||h.force))){let p=h.nodeElement.getBoundingClientRect(),m=Io(y.extent)?y.extent:r,{positionAbsolute:v}=y.internals;if(y.parentId&&y.extent==="parent"){let E=t.get(y.parentId);E&&(v=gE(v,x,E))}else m&&(v=Zo(v,m,x));let b={...y,measured:x,internals:{...y.internals,positionAbsolute:v,handleBounds:{source:eE("source",h.nodeElement,p,d,y.id),target:eE("target",h.nodeElement,p,d,y.id)}}};t.set(y.id,b),y.parentId&&pg(b,t,n,{nodeOrigin:o,zIndexMode:i}),u=!0,S&&(c.push({id:y.id,type:"dimensions",dimensions:x}),y.expandParent&&y.parentId&&s.push({id:y.id,parentId:y.parentId,rect:ui(b,o)}))}}if(s.length>0){let h=tf(s,t,n,o);c.push(...h)}return{changes:c,updatedInternals:u}}async function ME({delta:e,panZoom:t,transform:n,translateExtent:a,width:o,height:r}){if(!t||!e.x&&!e.y)return!1;let i=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,r]],a);return!!i&&(i.x!==n[0]||i.y!==n[1]||i.k!==n[2])}function lE(e,t,n,a,o,r){let i=o,l=a.get(i)||new Map;a.set(i,l.set(n,t)),i=`${o}-${e}`;let u=a.get(i)||new Map;if(a.set(i,u.set(n,t)),r){i=`${o}-${e}-${r}`;let c=a.get(i)||new Map;a.set(i,c.set(n,t))}}function yg(e,t,n){e.clear(),t.clear();for(let a of n){let{source:o,target:r,sourceHandle:i=null,targetHandle:l=null}=a,u={edgeId:a.id,source:o,target:r,sourceHandle:i,targetHandle:l},c=`${o}-${i}--${r}-${l}`,f=`${r}-${l}--${o}-${i}`;lE("source",u,f,e,o,i),lE("target",u,c,e,r,l),t.set(a.id,a)}}function zE(e,t){if(!e.parentId)return!1;let n=t.get(e.parentId);return n?n.selected?!0:zE(n,t):!1}function uE(e,t,n){let a=e;do{if(a?.matches?.(t))return!0;if(a===n)return!1;a=a?.parentElement}while(a);return!1}function WO(e,t,n,a){let o=new Map;for(let[r,i]of e)if((i.selected||i.id===a)&&(!i.parentId||!zE(i,e))&&(i.draggable||t&&typeof i.draggable>"u")){let l=e.get(r);l&&o.set(r,{id:r,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return o}function $h({nodeId:e,dragItems:t,nodeLookup:n,dragging:a=!0}){let o=[];for(let[i,l]of t){let u=n.get(i)?.internals.userNode;u&&o.push({...u,position:l.position,dragging:a})}if(!e)return[o[0],o];let r=n.get(e)?.internals.userNode;return[r?{...r,position:t.get(e)?.position||r.position,dragging:a}:o[0],o]}function eD({dragItems:e,snapGrid:t,x:n,y:a}){let o=e.values().next().value;if(!o)return null;let r={x:n-o.distance.x,y:a-o.distance.y},i=ci(r,t);return{x:i.x-r.x,y:i.y-r.y}}function AE({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:a,onDragStop:o}){let r={x:null,y:null},i=0,l=new Map,u=!1,c={x:0,y:0},f=null,d=!1,s=null,h=!1,y=!1,x=null;function S({noDragClassName:p,handleSelector:m,domNode:v,isSelectable:b,nodeId:E,nodeClickDistance:N=0}){s=Je(v);function _({x:k,y:V}){let{nodeLookup:w,nodeExtent:C,snapGrid:M,snapToGrid:z,nodeOrigin:R,onNodeDrag:H,onSelectionDrag:G,onError:q,updateNodePositions:X}=t();r={x:k,y:V};let K=!1,Z=l.size>1,J=Z&&C?jh(li(l)):null,re=Z&&z?eD({dragItems:l,snapGrid:M,x:k,y:V}):null;for(let[j,Y]of l){if(!w.has(j))continue;let I={x:k-Y.distance.x,y:V-Y.distance.y};z&&(I=re?{x:Math.round(I.x+re.x),y:Math.round(I.y+re.y)}:ci(I,M));let ae=null;if(Z&&C&&!Y.extent&&J){let{positionAbsolute:P}=Y.internals,ie=P.x-J.x+C[0][0],ce=P.x+Y.measured.width-J.x2+C[1][0],ge=P.y-J.y+C[0][1],Pe=P.y+Y.measured.height-J.y2+C[1][1];ae=[[ie,ge],[ce,Pe]]}let{position:te,positionAbsolute:Q}=tg({nodeId:j,nextPosition:I,nodeLookup:w,nodeExtent:ae||C,nodeOrigin:R,onError:q});K=K||Y.position.x!==te.x||Y.position.y!==te.y,Y.position=te,Y.internals.positionAbsolute=Q}if(y=y||K,!!K&&(X(l,!0),x&&(a||H||!E&&G))){let[j,Y]=$h({nodeId:E,dragItems:l,nodeLookup:w});a?.(x,l,j,Y),H?.(x,j,Y),E||G?.(x,Y)}}async function T(){if(!f)return;let{transform:k,panBy:V,autoPanSpeed:w,autoPanOnNodeDrag:C}=t();if(!C){u=!1,cancelAnimationFrame(i);return}let[M,z]=Is(c,f,w);(M!==0||z!==0)&&(r.x=(r.x??0)-M/k[2],r.y=(r.y??0)-z/k[2],await V({x:M,y:z})&&_(r)),i=requestAnimationFrame(T)}function D(k){let{nodeLookup:V,multiSelectionActive:w,nodesDraggable:C,transform:M,snapGrid:z,snapToGrid:R,selectNodesOnDrag:H,onNodeDragStart:G,onSelectionDragStart:q,unselectNodesAndEdges:X}=t();d=!0,(!H||!b)&&!w&&E&&(V.get(E)?.selected||X()),b&&H&&E&&e?.(E);let K=Ql(k.sourceEvent,{transform:M,snapGrid:z,snapToGrid:R,containerBounds:f});if(r=K,l=WO(V,C,K,E),l.size>0&&(n||G||!E&&q)){let[Z,J]=$h({nodeId:E,dragItems:l,nodeLookup:V});n?.(k.sourceEvent,l,Z,J),G?.(k.sourceEvent,Z,J),E||q?.(k.sourceEvent,J)}}let L=xs().clickDistance(N).on("start",k=>{let{domNode:V,nodeDragThreshold:w,transform:C,snapGrid:M,snapToGrid:z}=t();f=V?.getBoundingClientRect()||null,h=!1,y=!1,x=k.sourceEvent,w===0&&D(k),r=Ql(k.sourceEvent,{transform:C,snapGrid:M,snapToGrid:z,containerBounds:f}),c=en(k.sourceEvent,f)}).on("drag",k=>{let{autoPanOnNodeDrag:V,transform:w,snapGrid:C,snapToGrid:M,nodeDragThreshold:z,nodeLookup:R}=t(),H=Ql(k.sourceEvent,{transform:w,snapGrid:C,snapToGrid:M,containerBounds:f});if(x=k.sourceEvent,(k.sourceEvent.type==="touchmove"&&k.sourceEvent.touches.length>1||E&&!R.has(E))&&(h=!0),!h){if(!u&&V&&d&&(u=!0,T()),!d){let G=en(k.sourceEvent,f),q=G.x-c.x,X=G.y-c.y;Math.sqrt(q*q+X*X)>z&&D(k)}(r.x!==H.xSnapped||r.y!==H.ySnapped)&&l&&d&&(c=en(k.sourceEvent,f),_(H))}}).on("end",k=>{if(!d||h){h&&l.size>0&&t().updateNodePositions(l,!1);return}if(u=!1,d=!1,cancelAnimationFrame(i),l.size>0){let{nodeLookup:V,updateNodePositions:w,onNodeDragStop:C,onSelectionDragStop:M}=t();if(y&&(w(l,!1),y=!1),o||C||!E&&M){let[z,R]=$h({nodeId:E,dragItems:l,nodeLookup:V,dragging:!1});o?.(k.sourceEvent,l,z,R),C?.(k.sourceEvent,z,R),E||M?.(k.sourceEvent,R)}}}).filter(k=>{let V=k.target;return!k.button&&(!p||!uE(V,`.${p}`,v))&&(!m||uE(V,m,v))});s.call(L)}function g(){s?.on(".drag",null)}return{update:S,destroy:g}}function tD(e,t,n){let a=[],o={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let r of t.values())Kl(o,ui(r))>0&&a.push(r);return a}var nD=250;function aD(e,t,n,a){let o=[],r=1/0,i=tD(e,n,t+nD);for(let l of i){let u=[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]];for(let c of u){if(a.nodeId===c.nodeId&&a.type===c.type&&a.id===c.id)continue;let{x:f,y:d}=Fa(l,c,c.position,!0),s=Math.sqrt(Math.pow(f-e.x,2)+Math.pow(d-e.y,2));s>t||(s<r?(o=[{...c,x:f,y:d}],r=s):s===r&&o.push({...c,x:f,y:d}))}}if(!o.length)return null;if(o.length>1){let l=a.type==="source"?"target":"source";return o.find(u=>u.type===l)??o[0]}return o[0]}function OE(e,t,n,a,o,r=!1){let i=a.get(e);if(!i)return null;let l=o==="strict"?i.internals.handleBounds?.[t]:[...i.internals.handleBounds?.source??[],...i.internals.handleBounds?.target??[]],u=(n?l?.find(c=>c.id===n):l?.[0])??null;return u&&r?{...u,...Fa(i,u,u.position,!0)}:u}function DE(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function oD(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}var RE=()=>!0;function rD(e,{connectionMode:t,connectionRadius:n,handleId:a,nodeId:o,edgeUpdaterType:r,isTarget:i,domNode:l,nodeLookup:u,lib:c,autoPanOnConnect:f,flowId:d,panBy:s,cancelConnection:h,onConnectStart:y,onConnect:x,onConnectEnd:S,isValidConnection:g=RE,onReconnectEnd:p,updateConnection:m,getTransform:v,getFromHandle:b,autoPanSpeed:E,dragThreshold:N=1,handleDomNode:_}){let T=cg(e.target),D=0,L,{x:k,y:V}=en(e),w=DE(r,_),C=l?.getBoundingClientRect(),M=!1;if(!C||!w)return;let z=OE(o,w,a,u,t);if(!z)return;let R=en(e,C),H=!1,G=null,q=!1,X=null;function K(){if(!f||!C)return;let[te,Q]=Is(R,C,E);s({x:te,y:Q}),D=requestAnimationFrame(K)}let Z={...z,nodeId:o,type:w,position:z.position},J=u.get(o),j={inProgress:!0,isValid:null,from:Fa(J,Z,$.Left,!0),fromHandle:Z,fromPosition:Z.position,fromNode:J,to:R,toHandle:null,toPosition:Pw[Z.position],toNode:null,pointer:R};function Y(){M=!0,m(j),y?.(e,{nodeId:o,handleId:a,handleType:w})}N===0&&Y();function I(te){if(!M){let{x:Pe,y:Hn}=en(te),hn=Pe-k,gn=Hn-V;if(!(hn*hn+gn*gn>N*N))return;Y()}if(!b()||!Z){ae(te);return}let Q=v();R=en(te,C),L=aD(si(R,Q,!1,[1,1]),n,u,Z),H||(K(),H=!0);let P=HE(te,{handle:L,connectionMode:t,fromNodeId:o,fromHandleId:a,fromType:i?"target":"source",isValidConnection:g,doc:T,lib:c,flowId:d,nodeLookup:u});X=P.handleDomNode,G=P.connection,q=oD(!!L,P.isValid);let ie=u.get(o),ce=ie?Fa(ie,Z,$.Left,!0):j.from,ge={...j,from:ce,isValid:q,to:P.toHandle&&q?$o({x:P.toHandle.x,y:P.toHandle.y},Q):R,toHandle:P.toHandle,toPosition:q&&P.toHandle?P.toHandle.position:Pw[Z.position],toNode:P.toHandle?u.get(P.toHandle.nodeId):null,pointer:R};m(ge),j=ge}function ae(te){if(!("touches"in te&&te.touches.length>0)){if(M){(L||X)&&G&&q&&x?.(G);let{inProgress:Q,...P}=j,ie={...P,toPosition:j.toHandle?j.toPosition:null};S?.(te,ie),r&&p?.(te,ie)}h(),cancelAnimationFrame(D),H=!1,q=!1,G=null,X=null,T.removeEventListener("mousemove",I),T.removeEventListener("mouseup",ae),T.removeEventListener("touchmove",I),T.removeEventListener("touchend",ae)}}T.addEventListener("mousemove",I),T.addEventListener("mouseup",ae),T.addEventListener("touchmove",I),T.addEventListener("touchend",ae)}function HE(e,{handle:t,connectionMode:n,fromNodeId:a,fromHandleId:o,fromType:r,doc:i,lib:l,flowId:u,isValidConnection:c=RE,nodeLookup:f}){let d=r==="target",s=t?i.querySelector(`.${l}-flow__handle[data-id="${u}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:h,y}=en(e),x=i.elementFromPoint(h,y),S=x?.classList.contains(`${l}-flow__handle`)?x:s,g={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let p=DE(void 0,S),m=S.getAttribute("data-nodeid"),v=S.getAttribute("data-handleid"),b=S.classList.contains("connectable"),E=S.classList.contains("connectableend");if(!m||!p)return g;let N={source:d?m:a,sourceHandle:d?v:o,target:d?a:m,targetHandle:d?o:v};g.connection=N;let T=b&&E&&(n===Ka.Strict?d&&p==="source"||!d&&p==="target":m!==a||v!==o);g.isValid=T&&c(N),g.toHandle=OE(m,p,v,f,n,!0)}return g}var nf={onPointerDown:rD,isValid:HE};function BE({domNode:e,panZoom:t,getTransform:n,getViewScale:a}){let o=Je(e);function r({translateExtent:l,width:u,height:c,zoomStep:f=1,pannable:d=!0,zoomable:s=!0,inversePan:h=!1}){let y=m=>{if(m.sourceEvent.type!=="wheel"||!t)return;let v=n(),b=m.sourceEvent.ctrlKey&&fi()?10:1,E=-m.sourceEvent.deltaY*(m.sourceEvent.deltaMode===1?.05:m.sourceEvent.deltaMode?1:.002)*f,N=v[2]*Math.pow(2,E*b);t.scaleTo(N)},x=[0,0],S=m=>{(m.sourceEvent.type==="mousedown"||m.sourceEvent.type==="touchstart")&&(x=[m.sourceEvent.clientX??m.sourceEvent.touches[0].clientX,m.sourceEvent.clientY??m.sourceEvent.touches[0].clientY])},g=m=>{let v=n();if(m.sourceEvent.type!=="mousemove"&&m.sourceEvent.type!=="touchmove"||!t)return;let b=[m.sourceEvent.clientX??m.sourceEvent.touches[0].clientX,m.sourceEvent.clientY??m.sourceEvent.touches[0].clientY],E=[b[0]-x[0],b[1]-x[1]];x=b;let N=a()*Math.max(v[2],Math.log(v[2]))*(h?-1:1),_={x:v[0]-E[0]*N,y:v[1]-E[1]*N},T=[[0,0],[u,c]];t.setViewportConstrained({x:_.x,y:_.y,zoom:v[2]},T,l)},p=qs().on("start",S).on("zoom",d?g:null).on("zoom.wheel",s?y:null);o.call(p,{})}function i(){o.on("zoom",null)}return{update:r,destroy:i,pointer:gt}}var af=e=>({x:e.x,y:e.y,zoom:e.k}),Ih=({x:e,y:t,zoom:n})=>Go.translate(e,t).scale(n),ja=(e,t)=>e.target.closest(`.${t}`),LE=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),iD=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Qh=(e,t=0,n=iD,a=()=>{})=>{let o=typeof t=="number"&&t>0;return o||a(),o?e.transition().duration(t).ease(n).on("end",a):e},UE=e=>{let t=e.ctrlKey&&fi()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function lD({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:a,panOnScrollMode:o,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:l,onPanZoom:u,onPanZoomEnd:c}){return f=>{if(ja(f,t))return f.ctrlKey&&f.preventDefault(),!1;f.preventDefault(),f.stopImmediatePropagation();let d=n.property("__zoom").k||1;if(f.ctrlKey&&i){let S=gt(f),g=UE(f),p=d*Math.pow(2,g);a.scaleTo(n,p,S,f);return}let s=f.deltaMode===1?20:1,h=o===ca.Vertical?0:f.deltaX*s,y=o===ca.Horizontal?0:f.deltaY*s;!fi()&&f.shiftKey&&o!==ca.Vertical&&(h=f.deltaY*s,y=0),a.translateBy(n,-(h/d)*r,-(y/d)*r,{internal:!0});let x=af(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?u?.(f,x):(e.isPanScrolling=!0,l?.(f,x)),e.panScrollTimeout=setTimeout(()=>{c?.(f,x),e.isPanScrolling=!1},150)}}function uD({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(a,o){let r=a.type==="wheel",i=!t&&r&&!a.ctrlKey,l=ja(a,e);if(a.ctrlKey&&r&&l&&a.preventDefault(),i||l)return null;a.preventDefault(),n.call(this,a,o)}}function cD({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return a=>{if(a.sourceEvent?.internal)return;let o=af(a.transform);e.mouseButton=a.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=o,a.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(a.sourceEvent,o)}}function sD({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:a,onPanZoom:o}){return r=>{e.usedRightMouseButton=!!(n&&LE(t,e.mouseButton??0)),r.sourceEvent?.sync||a([r.transform.x,r.transform.y,r.transform.k]),o&&!r.sourceEvent?.internal&&o?.(r.sourceEvent,af(r.transform))}}function fD({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:a,onPanZoomEnd:o,onPaneContextMenu:r}){return i=>{if(!i.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,r&&LE(t,e.mouseButton??0)&&!e.usedRightMouseButton&&i.sourceEvent&&r(i.sourceEvent),e.usedRightMouseButton=!1,a(!1),o)){let l=af(i.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o?.(i.sourceEvent,l)},n?150:0)}}}function dD({panActivationKeyPressed:e,zoomActivationKeyPressed:t,zoomOnScroll:n,zoomOnPinch:a,panOnDrag:o,panOnScroll:r,zoomOnDoubleClick:i,userSelectionActive:l,noWheelClassName:u,noPanClassName:c,lib:f,connectionInProgress:d}){return s=>{let h=t||n,y=a&&s.ctrlKey,x=s.type==="wheel";if(s.button===1&&s.type==="mousedown"&&(ja(s,`${f}-flow__node`)||ja(s,`${f}-flow__edge`)||ja(s,`${f}-flow__selection`)||ja(s,`${f}-flow__nodesselection`)))return!0;if(!o&&!h&&!r&&!i&&!a||l||d&&!x||ja(s,u)&&x||ja(s,c)&&(!x||r&&x&&!t)||!a&&s.ctrlKey&&x)return!1;if(!a&&s.type==="touchstart"&&s.touches?.length>1)return s.preventDefault(),!1;if(!h&&!r&&!y&&x||!o&&(s.type==="mousedown"||s.type==="touchstart")||Array.isArray(o)&&!o.includes(s.button)&&s.type==="mousedown")return!1;let S=Array.isArray(o)&&o.includes(s.button)||!s.button||s.button<=1;return(!s.ctrlKey||x||e)&&S}}function VE({domNode:e,minZoom:t,maxZoom:n,translateExtent:a,viewport:o,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:l,onDraggingChange:u}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),d=[[0,0],[f.width,f.height]];(typeof ResizeObserver<"u"?new ResizeObserver(V=>{let w=V[0];w&&(d=[[0,0],[w.contentRect.width,w.contentRect.height]])}):null)?.observe(e);let h=qs().extent(()=>d).scaleExtent([t,n]).translateExtent(a),y=Je(e).call(h);v({x:o.x,y:o.y,zoom:ri(o.zoom,t,n)},[[0,0],[f.width,f.height]],a);let x=y.on("wheel.zoom"),S=y.on("dblclick.zoom");h.wheelDelta(UE);async function g(V,w){return y?new Promise(C=>{h?.interpolate(w?.interpolate==="linear"?la:Yo).transform(Qh(y,w?.duration,w?.ease,()=>C(!0)),V)}):!1}function p({noWheelClassName:V,noPanClassName:w,onPaneContextMenu:C,userSelectionActive:M,panOnScroll:z,panOnDrag:R,panOnScrollMode:H,panOnScrollSpeed:G,preventScrolling:q,zoomOnPinch:X,zoomOnScroll:K,zoomOnDoubleClick:Z,panActivationKeyPressed:J=!1,zoomActivationKeyPressed:re,lib:j,onTransformChange:Y,connectionInProgress:I,paneClickDistance:ae,selectionOnDrag:te}){M&&!c.isZoomingOrPanning&&m();let Q=z&&!re&&!M;h.clickDistance(te?1/0:!Wt(ae)||ae<0?0:ae);let P=Q?lD({zoomPanValues:c,noWheelClassName:V,d3Selection:y,d3Zoom:h,panOnScrollMode:H,panOnScrollSpeed:G,zoomOnPinch:X,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:l}):uD({noWheelClassName:V,preventScrolling:q,d3ZoomHandler:x});y.on("wheel.zoom",P,{passive:!1});let ie=cD({zoomPanValues:c,onDraggingChange:u,onPanZoomStart:i});h.on("start",ie);let ce=sD({zoomPanValues:c,panOnDrag:R,onPaneContextMenu:!!C,onPanZoom:r,onTransformChange:Y});h.on("zoom",ce);let ge=fD({zoomPanValues:c,panOnDrag:R,panOnScroll:z,onPaneContextMenu:C,onPanZoomEnd:l,onDraggingChange:u});h.on("end",ge);let Pe=dD({panActivationKeyPressed:J,zoomActivationKeyPressed:re,panOnDrag:R,zoomOnScroll:K,panOnScroll:z,zoomOnDoubleClick:Z,zoomOnPinch:X,userSelectionActive:M,noPanClassName:w,noWheelClassName:V,lib:j,connectionInProgress:I});h.filter(Pe),Z?y.on("dblclick.zoom",S):y.on("dblclick.zoom",null)}function m(){h.on("zoom",null)}async function v(V,w,C){let M=Ih(V),z=h?.constrain()(M,w,C);return z&&await g(z),z}async function b(V,w){let C=Ih(V);return await g(C,w),C}function E(V){if(y){let w=Ih(V),C=y.property("__zoom");(C.k!==V.zoom||C.x!==V.x||C.y!==V.y)&&h?.transform(y,w,null,{sync:!0})}}function N(){let V=y?Il(y.node()):{x:0,y:0,k:1};return{x:V.x,y:V.y,zoom:V.k}}async function _(V,w){return y?new Promise(C=>{h?.interpolate(w?.interpolate==="linear"?la:Yo).scaleTo(Qh(y,w?.duration,w?.ease,()=>C(!0)),V)}):!1}async function T(V,w){return y?new Promise(C=>{h?.interpolate(w?.interpolate==="linear"?la:Yo).scaleBy(Qh(y,w?.duration,w?.ease,()=>C(!0)),V)}):!1}function D(V){h?.scaleExtent(V)}function L(V){h?.translateExtent(V)}function k(V){let w=!Wt(V)||V<0?0:V;h?.clickDistance(w)}return{update:p,destroy:m,setViewport:b,setViewportConstrained:v,getViewport:N,scaleTo:_,scaleBy:T,setScaleExtent:D,setTranslateExtent:L,syncViewport:E,setClickDistance:k}}var Pa;(function(e){e.Line="line",e.Handle="handle"})(Pa||(Pa={}));function mD({width:e,prevWidth:t,height:n,prevHeight:a,affectsX:o,affectsY:r}){let i=e-t,l=n-a,u=[i>0?1:i<0?-1:0,l>0?1:l<0?-1:0];return i&&o&&(u[0]=u[0]*-1),l&&r&&(u[1]=u[1]*-1),u}function cE(e){let t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),a=e.includes("left"),o=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:a,affectsY:o}}function Ia(e,t){return Math.max(0,t-e)}function Qa(e,t){return Math.max(0,e-t)}function Xs(e,t,n){return Math.max(0,t-e,e-n)}function sE(e,t){return e?!t:t}function hD(e,t,n,a,o,r,i,l){let{affectsX:u,affectsY:c}=t,{isHorizontal:f,isVertical:d}=t,s=f&&d,{xSnapped:h,ySnapped:y}=n,{minWidth:x,maxWidth:S,minHeight:g,maxHeight:p}=a,{x:m,y:v,width:b,height:E,aspectRatio:N}=e,_=Math.floor(f?h-e.pointerX:0),T=Math.floor(d?y-e.pointerY:0),D=b+(u?-_:_),L=E+(c?-T:T),k=-r[0]*b,V=-r[1]*E,w=Xs(D,x,S),C=Xs(L,g,p);if(i){let R=0,H=0;u&&_<0?R=Ia(m+_+k,i[0][0]):!u&&_>0&&(R=Qa(m+D+k,i[1][0])),c&&T<0?H=Ia(v+T+V,i[0][1]):!c&&T>0&&(H=Qa(v+L+V,i[1][1])),w=Math.max(w,R),C=Math.max(C,H)}if(l){let R=0,H=0;u&&_>0?R=Qa(m+_,l[0][0]):!u&&_<0&&(R=Ia(m+D,l[1][0])),c&&T>0?H=Qa(v+T,l[0][1]):!c&&T<0&&(H=Ia(v+L,l[1][1])),w=Math.max(w,R),C=Math.max(C,H)}if(o){if(f){let R=Xs(D/N,g,p)*N;if(w=Math.max(w,R),i){let H=0;!u&&!c||u&&!c&&s?H=Qa(v+V+D/N,i[1][1])*N:H=Ia(v+V+(u?_:-_)/N,i[0][1])*N,w=Math.max(w,H)}if(l){let H=0;!u&&!c||u&&!c&&s?H=Ia(v+D/N,l[1][1])*N:H=Qa(v+(u?_:-_)/N,l[0][1])*N,w=Math.max(w,H)}}if(d){let R=Xs(L*N,x,S)/N;if(C=Math.max(C,R),i){let H=0;!u&&!c||c&&!u&&s?H=Qa(m+L*N+k,i[1][0])/N:H=Ia(m+(c?T:-T)*N+k,i[0][0])/N,C=Math.max(C,H)}if(l){let H=0;!u&&!c||c&&!u&&s?H=Ia(m+L*N,l[1][0])/N:H=Qa(m+(c?T:-T)*N,l[0][0])/N,C=Math.max(C,H)}}}T=T+(T<0?C:-C),_=_+(_<0?w:-w),o&&(s?D>L*N?T=(sE(u,c)?-_:_)/N:_=(sE(u,c)?-T:T)*N:f?(T=_/N,c=u):(_=T*N,u=c));let M=u?m+_:m,z=c?v+T:v;return{width:b+(u?-_:_),height:E+(c?-T:T),x:r[0]*_*(u?-1:1)+M,y:r[1]*T*(c?-1:1)+z}}var YE={width:0,height:0,x:0,y:0},gD={...YE,pointerX:0,pointerY:0,aspectRatio:1};function pD(e,t,n){let a=t.position.x+e.position.x,o=t.position.y+e.position.y,r=e.measured.width??0,i=e.measured.height??0,l=n[0]*r,u=n[1]*i;return[[a-l,o-u],[a+r-l,o+i-u]]}function kE({domNode:e,nodeId:t,getStoreItems:n,onChange:a,onEnd:o}){let r=Je(e),i={controlDirection:cE("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function l({controlPosition:c,boundaries:f,keepAspectRatio:d,resizeDirection:s,onResizeStart:h,onResize:y,onResizeEnd:x,shouldResize:S}){let g={...YE},p={...gD};i={boundaries:f,resizeDirection:s,keepAspectRatio:d,controlDirection:cE(c)};let m,v=null,b=[],E,N,_,T=xs().on("start",D=>{let{nodeLookup:L,transform:k,snapGrid:V,snapToGrid:w,nodeOrigin:C,paneDomNode:M}=n();if(m=L.get(t),!m)return;v=M?.getBoundingClientRect()??null;let{xSnapped:z,ySnapped:R}=Ql(D.sourceEvent,{transform:k,snapGrid:V,snapToGrid:w,containerBounds:v});g={width:m.measured.width??0,height:m.measured.height??0,x:m.position.x??0,y:m.position.y??0},p={...g,pointerX:z,pointerY:R,aspectRatio:g.width/g.height},E=void 0,N=Io(m.extent)?m.extent:void 0,m.parentId&&(m.extent==="parent"||m.expandParent)&&(E=L.get(m.parentId)),E&&m.extent==="parent"&&(N=[[0,0],[E.measured.width,E.measured.height]]),b=[],_=void 0;for(let[H,G]of L)if(G.parentId===t&&(b.push({id:H,position:{...G.position},extent:G.extent}),G.extent==="parent"||G.expandParent)){let q=pD(G,m,G.origin??C);_?_=[[Math.min(q[0][0],_[0][0]),Math.min(q[0][1],_[0][1])],[Math.max(q[1][0],_[1][0]),Math.max(q[1][1],_[1][1])]]:_=q}h?.(D,{...g})}).on("drag",D=>{let{transform:L,snapGrid:k,snapToGrid:V,nodeOrigin:w}=n(),C=Ql(D.sourceEvent,{transform:L,snapGrid:k,snapToGrid:V,containerBounds:v}),M=[];if(!m)return;let{x:z,y:R,width:H,height:G}=g,q={},X=m.origin??w,{width:K,height:Z,x:J,y:re}=hD(p,i.controlDirection,C,i.boundaries,i.keepAspectRatio,X,N,_),j=K!==H,Y=Z!==G,I=J!==z&&j,ae=re!==R&&Y;if(!I&&!ae&&!j&&!Y)return;let te={prevValues:{...g},startX:p.x,startY:p.y,childNodes:b.map(ce=>({...ce,position:{...ce.position}}))};if((I||ae||X[0]===1||X[1]===1)&&(q.x=I?J:g.x,q.y=ae?re:g.y,g.x=q.x,g.y=q.y,b.length>0)){let ce=J-z,ge=re-R;for(let Pe of b)Pe.position={x:Pe.position.x-ce+X[0]*(K-H),y:Pe.position.y-ge+X[1]*(Z-G)},M.push(Pe)}if((j||Y)&&(q.width=j&&(!i.resizeDirection||i.resizeDirection==="horizontal")?K:g.width,q.height=Y&&(!i.resizeDirection||i.resizeDirection==="vertical")?Z:g.height,g.width=q.width,g.height=q.height),E&&m.expandParent){let ce=X[0]*(q.width??0);q.x&&q.x<ce&&(g.x=ce,p.x=p.x-(q.x-ce));let ge=X[1]*(q.height??0);q.y&&q.y<ge&&(g.y=ge,p.y=p.y-(q.y-ge))}let Q=mD({width:g.width,prevWidth:H,height:g.height,prevHeight:G,affectsX:i.controlDirection.affectsX,affectsY:i.controlDirection.affectsY}),P={...g,direction:Q};if(S?.(D,P)===!1){g=te.prevValues,p.x=te.startX,p.y=te.startY,b.forEach((ce,ge)=>{ce.position=te.childNodes[ge].position});return}y?.(D,P),a(q,M)}).on("end",D=>{x?.(D,{...g}),o?.({...g})});r.call(T)}function u(){r.on(".drag",null)}return{update:l,destroy:u}}var PE=an(da(),1),WE=an(jE(),1);var KE=e=>{let t,n=new Set,a=(f,d)=>{let s=typeof f=="function"?f(t):f;if(!Object.is(s,t)){let h=t;t=d??(typeof s!="object"||s===null)?s:Object.assign({},t,s),n.forEach(y=>y(t,h))}},o=()=>t,u={setState:a,getState:o,getInitialState:()=>c,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(a,o,u);return u},JE=e=>e?KE(e):KE;var{useDebugValue:HD}=PE.default,{useSyncExternalStoreWithSelector:BD}=WE.default,LD=e=>e;function bg(e,t=LD,n){let a=BD(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return HD(a),a}var FE=(e,t)=>{let n=JE(e),a=(o,r=t)=>bg(n,o,r);return Object.assign(a,n),a},e2=(e,t)=>e?FE(e,t):FE;function Ae(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(let[a,o]of e)if(!Object.is(o,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let a of n)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}var UD=an(Gf()),uf=(0,O.createContext)(null),VD=uf.Provider,C2=kt.error001("react");function fe(e,t){let n=(0,O.useContext)(uf);if(n===null)throw new Error(C2);return bg(n,e,t)}function Ce(){let e=(0,O.useContext)(uf);if(e===null)throw new Error(C2);return(0,O.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}var t2={display:"none"},YD={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},M2="react-flow__node-desc",z2="react-flow__edge-desc",kD="react-flow__aria-live",qD=e=>e.ariaLiveMessage,GD=e=>e.ariaLabelConfig;function XD({rfId:e}){let t=fe(qD);return(0,A.jsx)("div",{id:`${kD}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:YD,children:t})}function ZD({rfId:e,disableKeyboardA11y:t}){let n=fe(GD);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{id:`${M2}-${e}`,style:t2,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),(0,A.jsx)("div",{id:`${z2}-${e}`,style:t2,children:n["edge.a11yDescription.default"]}),!t&&(0,A.jsx)(XD,{rfId:e})]})}var cf=(0,O.forwardRef)(({position:e="top-left",children:t,className:n,style:a,...o},r)=>{let i=`${e}`.split("-");return(0,A.jsx)("div",{className:Be(["react-flow__panel",n,...i]),style:a,ref:r,...o,children:t})});cf.displayName="Panel";var n2="https://reactflow.dev?utm_source=attribution";function $D({proOptions:e,position:t="bottom-right"}){return(0,O.useEffect)(()=>{},[]),e?.hideAttribution?null:(0,A.jsx)(cf,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${n2}`,children:(0,A.jsx)("a",{href:n2,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var ID=e=>{let t=[],n=[];for(let[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(let[,a]of e.edgeLookup)a.selected&&n.push(a);return{selectedNodes:t,selectedEdges:n}},rf=e=>e.id;function QD(e,t){return Ae(e.selectedNodes.map(rf),t.selectedNodes.map(rf))&&Ae(e.selectedEdges.map(rf),t.selectedEdges.map(rf))}function jD({onSelectionChange:e}){let t=Ce(),{selectedNodes:n,selectedEdges:a}=fe(ID,QD);return(0,O.useEffect)(()=>{let o={nodes:n,edges:a};e?.(o),t.getState().onSelectionChangeHandlers.forEach(r=>r(o))},[n,a,e]),null}var KD=e=>!!e.onSelectionChangeHandlers;function JD({onSelectionChange:e}){let t=fe(KD);return e||t?(0,A.jsx)(jD,{onSelectionChange:e}):null}var A2=[0,0],FD={x:0,y:0,zoom:1},PD=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],a2=[...PD,"rfId"],WD=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}),o2={translateExtent:ii,nodeOrigin:A2,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function e6(e){let{setNodes:t,setEdges:n,setMinZoom:a,setMaxZoom:o,setTranslateExtent:r,setNodeExtent:i,reset:l,setDefaultNodesAndEdges:u}=fe(WD,Ae),c=Ce();(0,O.useEffect)(()=>(u(e.defaultNodes,e.defaultEdges),()=>{f.current=o2,l()}),[]);let f=(0,O.useRef)(o2);return(0,O.useEffect)(()=>{for(let d of a2){let s=e[d],h=f.current[d];s!==h&&(typeof e[d]>"u"||(d==="nodes"?t(s):d==="edges"?n(s):d==="minZoom"?a(s):d==="maxZoom"?o(s):d==="translateExtent"?r(s):d==="nodeExtent"?i(s):d==="ariaLabelConfig"?c.setState({ariaLabelConfig:vE(s)}):d==="fitView"?c.setState({fitViewQueued:s}):d==="fitViewOptions"?c.setState({fitViewOptions:s}):c.setState({[d]:s})))}f.current=e},a2.map(d=>e[d])),null}function r2(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function t6(e){let[t,n]=(0,O.useState)(e==="system"?null:e);return(0,O.useEffect)(()=>{if(e!=="system"){n(e);return}let a=r2(),o=()=>n(a?.matches?"dark":"light");return o(),a?.addEventListener("change",o),()=>{a?.removeEventListener("change",o)}},[e]),t!==null?t:r2()?.matches?"dark":"light"}var i2=typeof document<"u"?document:null;function Pl(e=null,t={target:i2,actInsideInputWithModifier:!0}){let[n,a]=(0,O.useState)(!1),o=(0,O.useRef)(!1),r=(0,O.useRef)(new Set([])),[i,l]=(0,O.useMemo)(()=>{if(e!==null){let c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace(/\+/g,`
|
|
548
|
+
`,T4=`${tS}${N4}`,aS=e=>{if(e.getElementById(nS)!=null)return;let t=e.createElement("style");t.id=nS,t.textContent=T4,e.head.prepend(t)};var A=an(Pr()),O=an(da());function Be(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,a;n<e.length;n++)(a=Be(e[n]))!==""&&(t+=(t&&" ")+a);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var z4={value:()=>{}};function uS(){for(var e=0,t=arguments.length,n={},a;e<t;++e){if(!(a=arguments[e]+"")||a in n||/[\s.]/.test(a))throw new Error("illegal type: "+a);n[a]=[]}return new hs(n)}function hs(e){this._=e}function A4(e,t){return e.trim().split(/^|\s+/).map(function(n){var a="",o=n.indexOf(".");if(o>=0&&(a=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}hs.prototype=uS.prototype={constructor:hs,on:function(e,t){var n=this._,a=A4(e+"",n),o,r=-1,i=a.length;if(arguments.length<2){for(;++r<i;)if((o=(e=a[r]).type)&&(o=O4(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<i;)if(o=(e=a[r]).type)n[o]=lS(n[o],e.name,t);else if(t==null)for(o in n)n[o]=lS(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 hs(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),a=0,o,r;a<o;++a)n[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],a=0,o=r.length;a<o;++a)r[a].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],o=0,r=a.length;o<r;++o)a[o].value.apply(t,n)}};function O4(e,t){for(var n=0,a=e.length,o;n<a;++n)if((o=e[n]).name===t)return o.value}function lS(e,t,n){for(var a=0,o=e.length;a<o;++a)if(e[a].name===t){e[a]=z4,e=e.slice(0,a).concat(e.slice(a+1));break}return n!=null&&e.push({name:t,value:n}),e}var Ro=uS;var gs="http://www.w3.org/1999/xhtml",Dh={svg:"http://www.w3.org/2000/svg",xhtml:gs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ra(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Dh.hasOwnProperty(t)?{space:Dh[t],local:e}:e}function D4(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gs&&t.documentElement.namespaceURI===gs?t.createElement(e):t.createElementNS(n,e)}}function R4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ps(e){var t=ra(e);return(t.local?R4:D4)(t)}function H4(){}function Ho(e){return e==null?H4:function(){return this.querySelector(e)}}function cS(e){typeof e!="function"&&(e=Ho(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var r=t[o],i=r.length,l=a[o]=new Array(i),u,c,f=0;f<i;++f)(u=r[f])&&(c=e.call(u,u.__data__,f,r))&&("__data__"in u&&(c.__data__=u.__data__),l[f]=c);return new Le(a,this._parents)}function Rh(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function B4(){return[]}function Nl(e){return e==null?B4:function(){return this.querySelectorAll(e)}}function L4(e){return function(){return Rh(e.apply(this,arguments))}}function sS(e){typeof e=="function"?e=L4(e):e=Nl(e);for(var t=this._groups,n=t.length,a=[],o=[],r=0;r<n;++r)for(var i=t[r],l=i.length,u,c=0;c<l;++c)(u=i[c])&&(a.push(e.call(u,u.__data__,c,i)),o.push(u));return new Le(a,o)}function Tl(e){return function(){return this.matches(e)}}function ys(e){return function(t){return t.matches(e)}}var V4=Array.prototype.find;function U4(e){return function(){return V4.call(this.children,e)}}function Y4(){return this.firstElementChild}function fS(e){return this.select(e==null?Y4:U4(typeof e=="function"?e:ys(e)))}var k4=Array.prototype.filter;function q4(){return Array.from(this.children)}function G4(e){return function(){return k4.call(this.children,e)}}function dS(e){return this.selectAll(e==null?q4:G4(typeof e=="function"?e:ys(e)))}function mS(e){typeof e!="function"&&(e=Tl(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var r=t[o],i=r.length,l=a[o]=[],u,c=0;c<i;++c)(u=r[c])&&e.call(u,u.__data__,c,r)&&l.push(u);return new Le(a,this._parents)}function vs(e){return new Array(e.length)}function hS(){return new Le(this._enter||this._groups.map(vs),this._parents)}function Cl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Cl.prototype={constructor:Cl,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 gS(e){return function(){return e}}function X4(e,t,n,a,o,r){for(var i=0,l,u=t.length,c=r.length;i<c;++i)(l=t[i])?(l.__data__=r[i],a[i]=l):n[i]=new Cl(e,r[i]);for(;i<u;++i)(l=t[i])&&(o[i]=l)}function Z4(e,t,n,a,o,r,i){var l,u,c=new Map,f=t.length,d=r.length,s=new Array(f),h;for(l=0;l<f;++l)(u=t[l])&&(s[l]=h=i.call(u,u.__data__,l,t)+"",c.has(h)?o[l]=u:c.set(h,u));for(l=0;l<d;++l)h=i.call(e,r[l],l,r)+"",(u=c.get(h))?(a[l]=u,u.__data__=r[l],c.delete(h)):n[l]=new Cl(e,r[l]);for(l=0;l<f;++l)(u=t[l])&&c.get(s[l])===u&&(o[l]=u)}function $4(e){return e.__data__}function pS(e,t){if(!arguments.length)return Array.from(this,$4);var n=t?Z4:X4,a=this._parents,o=this._groups;typeof e!="function"&&(e=gS(e));for(var r=o.length,i=new Array(r),l=new Array(r),u=new Array(r),c=0;c<r;++c){var f=a[c],d=o[c],s=d.length,h=I4(e.call(f,f&&f.__data__,c,a)),y=h.length,x=l[c]=new Array(y),S=i[c]=new Array(y),g=u[c]=new Array(s);n(f,d,x,S,g,h,t);for(var p=0,m=0,v,b;p<y;++p)if(v=x[p]){for(p>=m&&(m=p+1);!(b=S[m])&&++m<y;);v._next=b||null}}return i=new Le(i,a),i._enter=l,i._exit=u,i}function I4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function yS(){return new Le(this._exit||this._groups.map(vs),this._parents)}function vS(e,t,n){var a=this.enter(),o=this,r=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?r.remove():n(r),a&&o?a.merge(o).order():o}function bS(e){for(var t=e.selection?e.selection():e,n=this._groups,a=t._groups,o=n.length,r=a.length,i=Math.min(o,r),l=new Array(o),u=0;u<i;++u)for(var c=n[u],f=a[u],d=c.length,s=l[u]=new Array(d),h,y=0;y<d;++y)(h=c[y]||f[y])&&(s[y]=h);for(;u<o;++u)l[u]=n[u];return new Le(l,this._parents)}function xS(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var a=e[t],o=a.length-1,r=a[o],i;--o>=0;)(i=a[o])&&(r&&i.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(i,r),r=i);return this}function SS(e){e||(e=Q4);function t(d,s){return d&&s?e(d.__data__,s.__data__):!d-!s}for(var n=this._groups,a=n.length,o=new Array(a),r=0;r<a;++r){for(var i=n[r],l=i.length,u=o[r]=new Array(l),c,f=0;f<l;++f)(c=i[f])&&(u[f]=c);u.sort(t)}return new Le(o,this._parents).order()}function Q4(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wS(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ES(){return Array.from(this)}function _S(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var a=e[t],o=0,r=a.length;o<r;++o){var i=a[o];if(i)return i}return null}function NS(){let e=0;for(let t of this)++e;return e}function TS(){return!this.node()}function CS(e){for(var t=this._groups,n=0,a=t.length;n<a;++n)for(var o=t[n],r=0,i=o.length,l;r<i;++r)(l=o[r])&&e.call(l,l.__data__,r,o);return this}function j4(e){return function(){this.removeAttribute(e)}}function K4(e){return function(){this.removeAttributeNS(e.space,e.local)}}function J4(e,t){return function(){this.setAttribute(e,t)}}function F4(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function P4(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function W4(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 MS(e,t){var n=ra(e);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((t==null?n.local?K4:j4:typeof t=="function"?n.local?W4:P4:n.local?F4:J4)(n,t))}function bs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function eA(e){return function(){this.style.removeProperty(e)}}function tA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function nA(e,t,n){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,n)}}function zS(e,t,n){return arguments.length>1?this.each((t==null?eA:typeof t=="function"?nA:tA)(e,t,n??"")):Xa(this.node(),e)}function Xa(e,t){return e.style.getPropertyValue(t)||bs(e).getComputedStyle(e,null).getPropertyValue(t)}function aA(e){return function(){delete this[e]}}function oA(e,t){return function(){this[e]=t}}function rA(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function AS(e,t){return arguments.length>1?this.each((t==null?aA:typeof t=="function"?rA:oA)(e,t)):this.node()[e]}function OS(e){return e.trim().split(/^|\s+/)}function Hh(e){return e.classList||new DS(e)}function DS(e){this._node=e,this._names=OS(e.getAttribute("class")||"")}DS.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 RS(e,t){for(var n=Hh(e),a=-1,o=t.length;++a<o;)n.add(t[a])}function HS(e,t){for(var n=Hh(e),a=-1,o=t.length;++a<o;)n.remove(t[a])}function iA(e){return function(){RS(this,e)}}function lA(e){return function(){HS(this,e)}}function uA(e,t){return function(){(t.apply(this,arguments)?RS:HS)(this,e)}}function BS(e,t){var n=OS(e+"");if(arguments.length<2){for(var a=Hh(this.node()),o=-1,r=n.length;++o<r;)if(!a.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?uA:t?iA:lA)(n,t))}function cA(){this.textContent=""}function sA(e){return function(){this.textContent=e}}function fA(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function LS(e){return arguments.length?this.each(e==null?cA:(typeof e=="function"?fA:sA)(e)):this.node().textContent}function dA(){this.innerHTML=""}function mA(e){return function(){this.innerHTML=e}}function hA(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function VS(e){return arguments.length?this.each(e==null?dA:(typeof e=="function"?hA:mA)(e)):this.node().innerHTML}function gA(){this.nextSibling&&this.parentNode.appendChild(this)}function US(){return this.each(gA)}function pA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function YS(){return this.each(pA)}function kS(e){var t=typeof e=="function"?e:ps(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yA(){return null}function qS(e,t){var n=typeof e=="function"?e:ps(e),a=t==null?yA:typeof t=="function"?t:Ho(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}function vA(){var e=this.parentNode;e&&e.removeChild(this)}function GS(){return this.each(vA)}function bA(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xA(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function XS(e){return this.select(e?xA:bA)}function ZS(e){return arguments.length?this.property("__data__",e):this.node().__data__}function SA(e){return function(t){e.call(this,t,this.__data__)}}function wA(e){return e.trim().split(/^|\s+/).map(function(t){var n="",a=t.indexOf(".");return a>=0&&(n=t.slice(a+1),t=t.slice(0,a)),{type:t,name:n}})}function EA(e){return function(){var t=this.__on;if(t){for(var n=0,a=-1,o=t.length,r;n<o;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++a]=r;++a?t.length=a:delete this.__on}}}function _A(e,t,n){return function(){var a=this.__on,o,r=SA(t);if(a){for(var i=0,l=a.length;i<l;++i)if((o=a[i]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=r,o.options=n),o.value=t;return}}this.addEventListener(e.type,r,n),o={type:e.type,name:e.name,value:t,listener:r,options:n},a?a.push(o):this.__on=[o]}}function $S(e,t,n){var a=wA(e+""),o,r=a.length,i;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,c=l.length,f;u<c;++u)for(o=0,f=l[u];o<r;++o)if((i=a[o]).type===f.type&&i.name===f.name)return f.value}return}for(l=t?_A:EA,o=0;o<r;++o)this.each(l(a[o],t,n));return this}function IS(e,t,n){var a=bs(e),o=a.CustomEvent;typeof o=="function"?o=new o(t,n):(o=a.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function NA(e,t){return function(){return IS(this,e,t)}}function TA(e,t){return function(){return IS(this,e,t.apply(this,arguments))}}function QS(e,t){return this.each((typeof t=="function"?TA:NA)(e,t))}function*jS(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var a=e[t],o=0,r=a.length,i;o<r;++o)(i=a[o])&&(yield i)}var Bh=[null];function Le(e,t){this._groups=e,this._parents=t}function KS(){return new Le([[document.documentElement]],Bh)}function CA(){return this}Le.prototype=KS.prototype={constructor:Le,select:cS,selectAll:sS,selectChild:fS,selectChildren:dS,filter:mS,data:pS,enter:hS,exit:yS,join:vS,merge:bS,selection:CA,order:xS,sort:SS,call:wS,nodes:ES,node:_S,size:NS,empty:TS,each:CS,attr:MS,style:zS,property:AS,classed:BS,text:LS,html:VS,raise:US,lower:YS,append:kS,insert:qS,remove:GS,clone:XS,datum:ZS,on:$S,dispatch:QS,[Symbol.iterator]:jS};var ia=KS;function Je(e){return typeof e=="string"?new Le([[document.querySelector(e)]],[document.documentElement]):new Le([[e]],Bh)}function JS(e){let t;for(;t=e.sourceEvent;)e=t;return e}function gt(e,t){if(e=JS(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(t.getScreenCTM().inverse()),[a.x,a.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]}var FS={passive:!1},Bo={capture:!0,passive:!1};function xs(e){e.stopImmediatePropagation()}function Za(e){e.preventDefault(),e.stopImmediatePropagation()}function Ml(e){var t=e.document.documentElement,n=Je(e).on("dragstart.drag",Za,Bo);"onselectstart"in t?n.on("selectstart.drag",Za,Bo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function zl(e,t){var n=e.document.documentElement,a=Je(e).on("dragstart.drag",null);t&&(a.on("click.drag",Za,Bo),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in n?a.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Al=e=>()=>e;function Ol(e,{sourceEvent:t,subject:n,target:a,identifier:o,active:r,x:i,y:l,dx:u,dy:c,dispatch:f}){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:a,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:f}})}Ol.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function MA(e){return!e.ctrlKey&&!e.button}function zA(){return this.parentNode}function AA(e,t){return t??{x:e.x,y:e.y}}function OA(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ss(){var e=MA,t=zA,n=AA,a=OA,o={},r=Ro("start","drag","end"),i=0,l,u,c,f,d=0;function s(v){v.on("mousedown.drag",h).filter(a).on("touchstart.drag",S).on("touchmove.drag",g,FS).on("touchend.drag touchcancel.drag",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(v,b){if(!(f||!e.call(this,v,b))){var E=m(this,t.call(this,v,b),v,b,"mouse");E&&(Je(v.view).on("mousemove.drag",y,Bo).on("mouseup.drag",x,Bo),Ml(v.view),xs(v),c=!1,l=v.clientX,u=v.clientY,E("start",v))}}function y(v){if(Za(v),!c){var b=v.clientX-l,E=v.clientY-u;c=b*b+E*E>d}o.mouse("drag",v)}function x(v){Je(v.view).on("mousemove.drag mouseup.drag",null),zl(v.view,c),Za(v),o.mouse("end",v)}function S(v,b){if(e.call(this,v,b)){var E=v.changedTouches,N=t.call(this,v,b),_=E.length,T,D;for(T=0;T<_;++T)(D=m(this,N,v,b,E[T].identifier,E[T]))&&(xs(v),D("start",v,E[T]))}}function g(v){var b=v.changedTouches,E=b.length,N,_;for(N=0;N<E;++N)(_=o[b[N].identifier])&&(Za(v),_("drag",v,b[N]))}function p(v){var b=v.changedTouches,E=b.length,N,_;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),N=0;N<E;++N)(_=o[b[N].identifier])&&(xs(v),_("end",v,b[N]))}function m(v,b,E,N,_,T){var D=r.copy(),L=gt(T||E,b),k,U,w;if((w=n.call(v,new Ol("beforestart",{sourceEvent:E,target:s,identifier:_,active:i,x:L[0],y:L[1],dx:0,dy:0,dispatch:D}),N))!=null)return k=w.x-L[0]||0,U=w.y-L[1]||0,function C(M,z,R){var H=L,G;switch(M){case"start":o[_]=C,G=i++;break;case"end":delete o[_],--i;case"drag":L=gt(R||z,b),G=i;break}D.call(M,v,new Ol(M,{sourceEvent:z,subject:w,target:s,identifier:_,active:G,x:L[0]+k,y:L[1]+U,dx:L[0]-H[0],dy:L[1]-H[1],dispatch:D}),N)}}return s.filter=function(v){return arguments.length?(e=typeof v=="function"?v:Al(!!v),s):e},s.container=function(v){return arguments.length?(t=typeof v=="function"?v:Al(v),s):t},s.subject=function(v){return arguments.length?(n=typeof v=="function"?v:Al(v),s):n},s.touchable=function(v){return arguments.length?(a=typeof v=="function"?v:Al(!!v),s):a},s.on=function(){var v=r.on.apply(r,arguments);return v===r?s:v},s.clickDistance=function(v){return arguments.length?(d=(v=+v)*v,s):Math.sqrt(d)},s}function ws(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lh(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function Hl(){}var Dl=.7,Ns=1/Dl,Wr="\\s*([+-]?\\d+)\\s*",Rl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DA=/^#([0-9a-f]{3,8})$/,RA=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),HA=new RegExp(`^rgb\\(${On},${On},${On}\\)$`),BA=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${Rl}\\)$`),LA=new RegExp(`^rgba\\(${On},${On},${On},${Rl}\\)$`),VA=new RegExp(`^hsl\\(${Rl},${On},${On}\\)$`),UA=new RegExp(`^hsla\\(${Rl},${On},${On},${Rl}\\)$`),PS={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};ws(Hl,dn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WS,formatHex:WS,formatHex8:YA,formatHsl:kA,formatRgb:ew,toString:ew});function WS(){return this.rgb().formatHex()}function YA(){return this.rgb().formatHex8()}function kA(){return iw(this).formatHsl()}function ew(){return this.rgb().formatRgb()}function dn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DA.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?tw(t):n===3?new Ct(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Es(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Es(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=RA.exec(e))?new Ct(t[1],t[2],t[3],1):(t=HA.exec(e))?new Ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=BA.exec(e))?Es(t[1],t[2],t[3],t[4]):(t=LA.exec(e))?Es(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VA.exec(e))?ow(t[1],t[2]/100,t[3]/100,1):(t=UA.exec(e))?ow(t[1],t[2]/100,t[3]/100,t[4]):PS.hasOwnProperty(e)?tw(PS[e]):e==="transparent"?new Ct(NaN,NaN,NaN,0):null}function tw(e){return new Ct(e>>16&255,e>>8&255,e&255,1)}function Es(e,t,n,a){return a<=0&&(e=t=n=NaN),new Ct(e,t,n,a)}function qA(e){return e instanceof Hl||(e=dn(e)),e?(e=e.rgb(),new Ct(e.r,e.g,e.b,e.opacity)):new Ct}function ei(e,t,n,a){return arguments.length===1?qA(e):new Ct(e,t,n,a??1)}function Ct(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}ws(Ct,ei,Lh(Hl,{brighter(e){return e=e==null?Ns:Math.pow(Ns,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dl:Math.pow(Dl,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ct(Vo(this.r),Vo(this.g),Vo(this.b),Ts(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:nw,formatHex:nw,formatHex8:GA,formatRgb:aw,toString:aw}));function nw(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}`}function GA(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}${Lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function aw(){let e=Ts(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function Ts(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function ow(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fn(e,t,n,a)}function iw(e){if(e instanceof fn)return new fn(e.h,e.s,e.l,e.opacity);if(e instanceof Hl||(e=dn(e)),!e)return new fn;if(e instanceof fn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,a=e.b/255,o=Math.min(t,n,a),r=Math.max(t,n,a),i=NaN,l=r-o,u=(r+o)/2;return l?(t===r?i=(n-a)/l+(n<a)*6:n===r?i=(a-t)/l+2:i=(t-n)/l+4,l/=u<.5?r+o:2-r-o,i*=60):l=u>0&&u<1?0:i,new fn(i,l,u,e.opacity)}function lw(e,t,n,a){return arguments.length===1?iw(e):new fn(e,t,n,a??1)}function fn(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}ws(fn,lw,Lh(Hl,{brighter(e){return e=e==null?Ns:Math.pow(Ns,e),new fn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dl:Math.pow(Dl,e),new fn(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,a=n+(n<.5?n:1-n)*t,o=2*n-a;return new Ct(Vh(e>=240?e-240:e+120,o,a),Vh(e,o,a),Vh(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new fn(rw(this.h),_s(this.s),_s(this.l),Ts(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Ts(this.opacity);return`${e===1?"hsl(":"hsla("}${rw(this.h)}, ${_s(this.s)*100}%, ${_s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function rw(e){return e=(e||0)%360,e<0?e+360:e}function _s(e){return Math.max(0,Math.min(1,e||0))}function Vh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Uh(e,t,n,a,o){var r=e*e,i=r*e;return((1-3*e+3*r-i)*t+(4-6*r+3*i)*n+(1+3*e+3*r-3*i)*a+i*o)/6}function uw(e){var t=e.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[a],r=e[a+1],i=a>0?e[a-1]:2*o-r,l=a<t-1?e[a+2]:2*r-o;return Uh((n-a/t)*t,i,o,r,l)}}function cw(e){var t=e.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*t),o=e[(a+t-1)%t],r=e[a%t],i=e[(a+1)%t],l=e[(a+2)%t];return Uh((n-a/t)*t,o,r,i,l)}}var Bl=e=>()=>e;function XA(e,t){return function(n){return e+n*t}}function ZA(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(a){return Math.pow(e+a*t,n)}}function sw(e){return(e=+e)==1?Cs:function(t,n){return n-t?ZA(t,n,e):Bl(isNaN(t)?n:t)}}function Cs(e,t){var n=t-e;return n?XA(e,n):Bl(isNaN(e)?t:e)}var Uo=(function e(t){var n=sw(t);function a(o,r){var i=n((o=ei(o)).r,(r=ei(r)).r),l=n(o.g,r.g),u=n(o.b,r.b),c=Cs(o.opacity,r.opacity);return function(f){return o.r=i(f),o.g=l(f),o.b=u(f),o.opacity=c(f),o+""}}return a.gamma=e,a})(1);function fw(e){return function(t){var n=t.length,a=new Array(n),o=new Array(n),r=new Array(n),i,l;for(i=0;i<n;++i)l=ei(t[i]),a[i]=l.r||0,o[i]=l.g||0,r[i]=l.b||0;return a=e(a),o=e(o),r=e(r),l.opacity=1,function(u){return l.r=a(u),l.g=o(u),l.b=r(u),l+""}}}var $A=fw(uw),IA=fw(cw);function dw(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,a=t.slice(),o;return function(r){for(o=0;o<n;++o)a[o]=e[o]*(1-r)+t[o]*r;return a}}function mw(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function hw(e,t){var n=t?t.length:0,a=e?Math.min(n,e.length):0,o=new Array(a),r=new Array(n),i;for(i=0;i<a;++i)o[i]=la(e[i],t[i]);for(;i<n;++i)r[i]=t[i];return function(l){for(i=0;i<a;++i)r[i]=o[i](l);return r}}function gw(e,t){var n=new Date;return e=+e,t=+t,function(a){return n.setTime(e*(1-a)+t*a),n}}function pt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function pw(e,t){var n={},a={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=la(e[o],t[o]):a[o]=t[o];return function(r){for(o in n)a[o]=n[o](r);return a}}var kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yh=new RegExp(kh.source,"g");function QA(e){return function(){return e}}function jA(e){return function(t){return e(t)+""}}function Ll(e,t){var n=kh.lastIndex=Yh.lastIndex=0,a,o,r,i=-1,l=[],u=[];for(e=e+"",t=t+"";(a=kh.exec(e))&&(o=Yh.exec(t));)(r=o.index)>n&&(r=t.slice(n,r),l[i]?l[i]+=r:l[++i]=r),(a=a[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,u.push({i,x:pt(a,o)})),n=Yh.lastIndex;return n<t.length&&(r=t.slice(n),l[i]?l[i]+=r:l[++i]=r),l.length<2?u[0]?jA(u[0].x):QA(t):(t=u.length,function(c){for(var f=0,d;f<t;++f)l[(d=u[f]).i]=d.x(c);return l.join("")})}function la(e,t){var n=typeof t,a;return t==null||n==="boolean"?Bl(t):(n==="number"?pt:n==="string"?(a=dn(t))?(t=a,Uo):Ll:t instanceof dn?Uo:t instanceof Date?gw:mw(t)?dw:Array.isArray(t)?hw:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?pw:pt)(e,t)}var yw=180/Math.PI,Ms={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qh(e,t,n,a,o,r){var i,l,u;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(u=e*n+t*a)&&(n-=e*u,a-=t*u),(l=Math.sqrt(n*n+a*a))&&(n/=l,a/=l,u/=l),e*a<t*n&&(e=-e,t=-t,u=-u,i=-i),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*yw,skewX:Math.atan(u)*yw,scaleX:i,scaleY:l}}var zs;function vw(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ms:qh(t.a,t.b,t.c,t.d,t.e,t.f)}function bw(e){return e==null?Ms:(zs||(zs=document.createElementNS("http://www.w3.org/2000/svg","g")),zs.setAttribute("transform",e),(e=zs.transform.baseVal.consolidate())?(e=e.matrix,qh(e.a,e.b,e.c,e.d,e.e,e.f)):Ms)}function xw(e,t,n,a){function o(c){return c.length?c.pop()+" ":""}function r(c,f,d,s,h,y){if(c!==d||f!==s){var x=h.push("translate(",null,t,null,n);y.push({i:x-4,x:pt(c,d)},{i:x-2,x:pt(f,s)})}else(d||s)&&h.push("translate("+d+t+s+n)}function i(c,f,d,s){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),s.push({i:d.push(o(d)+"rotate(",null,a)-2,x:pt(c,f)})):f&&d.push(o(d)+"rotate("+f+a)}function l(c,f,d,s){c!==f?s.push({i:d.push(o(d)+"skewX(",null,a)-2,x:pt(c,f)}):f&&d.push(o(d)+"skewX("+f+a)}function u(c,f,d,s,h,y){if(c!==d||f!==s){var x=h.push(o(h)+"scale(",null,",",null,")");y.push({i:x-4,x:pt(c,d)},{i:x-2,x:pt(f,s)})}else(d!==1||s!==1)&&h.push(o(h)+"scale("+d+","+s+")")}return function(c,f){var d=[],s=[];return c=e(c),f=e(f),r(c.translateX,c.translateY,f.translateX,f.translateY,d,s),i(c.rotate,f.rotate,d,s),l(c.skewX,f.skewX,d,s),u(c.scaleX,c.scaleY,f.scaleX,f.scaleY,d,s),c=f=null,function(h){for(var y=-1,x=s.length,S;++y<x;)d[(S=s[y]).i]=S.x(h);return d.join("")}}}var Gh=xw(vw,"px, ","px)","deg)"),Xh=xw(bw,", ",")",")");var KA=1e-12;function Sw(e){return((e=Math.exp(e))+1/e)/2}function JA(e){return((e=Math.exp(e))-1/e)/2}function FA(e){return((e=Math.exp(2*e))-1)/(e+1)}var Yo=(function e(t,n,a){function o(r,i){var l=r[0],u=r[1],c=r[2],f=i[0],d=i[1],s=i[2],h=f-l,y=d-u,x=h*h+y*y,S,g;if(x<KA)g=Math.log(s/c)/t,S=function(N){return[l+N*h,u+N*y,c*Math.exp(t*N*g)]};else{var p=Math.sqrt(x),m=(s*s-c*c+a*x)/(2*c*n*p),v=(s*s-c*c-a*x)/(2*s*n*p),b=Math.log(Math.sqrt(m*m+1)-m),E=Math.log(Math.sqrt(v*v+1)-v);g=(E-b)/t,S=function(N){var _=N*g,T=Sw(b),D=c/(n*p)*(T*FA(t*_+b)-JA(b));return[l+D*h,u+D*y,c*T/Sw(t*_+b)]}}return S.duration=g*1e3*t/Math.SQRT2,S}return o.rho=function(r){var i=Math.max(.001,+r),l=i*i,u=l*l;return e(i,l,u)},o})(Math.SQRT2,2,4);var ti=0,Ul=0,Vl=0,Ew=1e3,As,Yl,Os=0,ko=0,Ds=0,kl=typeof performance=="object"&&performance.now?performance:Date,_w=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Gl(){return ko||(_w(PA),ko=kl.now()+Ds)}function PA(){ko=0}function ql(){this._call=this._time=this._next=null}ql.prototype=Rs.prototype={constructor:ql,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Gl():+n)+(t==null?0:+t),!this._next&&Yl!==this&&(Yl?Yl._next=this:As=this,Yl=this),this._call=e,this._time=n,Zh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zh())}};function Rs(e,t,n){var a=new ql;return a.restart(e,t,n),a}function Nw(){Gl(),++ti;for(var e=As,t;e;)(t=ko-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ti}function ww(){ko=(Os=kl.now())+Ds,ti=Ul=0;try{Nw()}finally{ti=0,eO(),ko=0}}function WA(){var e=kl.now(),t=e-Os;t>Ew&&(Ds-=t,Os=e)}function eO(){for(var e,t=As,n,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:As=n);Yl=e,Zh(a)}function Zh(e){if(!ti){Ul&&(Ul=clearTimeout(Ul));var t=e-ko;t>24?(e<1/0&&(Ul=setTimeout(ww,e-kl.now()-Ds)),Vl&&(Vl=clearInterval(Vl))):(Vl||(Os=kl.now(),Vl=setInterval(WA,Ew)),ti=1,_w(ww))}}function Hs(e,t,n){var a=new ql;return t=t==null?0:+t,a.restart(o=>{a.stop(),e(o+t)},t,n),a}var tO=Ro("start","end","cancel","interrupt"),nO=[],Mw=0,Tw=1,Ls=2,Bs=3,Cw=4,Vs=5,Xl=6;function $a(e,t,n,a,o,r){var i=e.__transition;if(!i)e.__transition={};else if(n in i)return;aO(e,n,{name:t,index:a,group:o,on:tO,tween:nO,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Mw})}function Zl(e,t){var n=$e(e,t);if(n.state>Mw)throw new Error("too late; already scheduled");return n}function it(e,t){var n=$e(e,t);if(n.state>Bs)throw new Error("too late; already running");return n}function $e(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function aO(e,t,n){var a=e.__transition,o;a[t]=n,n.timer=Rs(r,0,n.time);function r(c){n.state=Tw,n.timer.restart(i,n.delay,n.time),n.delay<=c&&i(c-n.delay)}function i(c){var f,d,s,h;if(n.state!==Tw)return u();for(f in a)if(h=a[f],h.name===n.name){if(h.state===Bs)return Hs(i);h.state===Cw?(h.state=Xl,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete a[f]):+f<t&&(h.state=Xl,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete a[f])}if(Hs(function(){n.state===Bs&&(n.state=Cw,n.timer.restart(l,n.delay,n.time),l(c))}),n.state=Ls,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ls){for(n.state=Bs,o=new Array(s=n.tween.length),f=0,d=-1;f<s;++f)(h=n.tween[f].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=h);o.length=d+1}}function l(c){for(var f=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=Vs,1),d=-1,s=o.length;++d<s;)o[d].call(e,f);n.state===Vs&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Xl,n.timer.stop(),delete a[t];for(var c in a)return;delete e.__transition}}function qo(e,t){var n=e.__transition,a,o,r=!0,i;if(n){t=t==null?null:t+"";for(i in n){if((a=n[i]).name!==t){r=!1;continue}o=a.state>Ls&&a.state<Vs,a.state=Xl,a.timer.stop(),a.on.call(o?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete n[i]}r&&delete e.__transition}}function zw(e){return this.each(function(){qo(this,e)})}function oO(e,t){var n,a;return function(){var o=it(this,e),r=o.tween;if(r!==n){a=n=r;for(var i=0,l=a.length;i<l;++i)if(a[i].name===t){a=a.slice(),a.splice(i,1);break}}o.tween=a}}function rO(e,t,n){var a,o;if(typeof n!="function")throw new Error;return function(){var r=it(this,e),i=r.tween;if(i!==a){o=(a=i).slice();for(var l={name:t,value:n},u=0,c=o.length;u<c;++u)if(o[u].name===t){o[u]=l;break}u===c&&o.push(l)}r.tween=o}}function Aw(e,t){var n=this._id;if(e+="",arguments.length<2){for(var a=$e(this.node(),n).tween,o=0,r=a.length,i;o<r;++o)if((i=a[o]).name===e)return i.value;return null}return this.each((t==null?oO:rO)(n,e,t))}function ni(e,t,n){var a=e._id;return e.each(function(){var o=it(this,a);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return $e(o,a).value[t]}}function Us(e,t){var n;return(typeof t=="number"?pt:t instanceof dn?Uo:(n=dn(t))?(t=n,Uo):Ll)(e,t)}function iO(e){return function(){this.removeAttribute(e)}}function lO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function uO(e,t,n){var a,o=n+"",r;return function(){var i=this.getAttribute(e);return i===o?null:i===a?r:r=t(a=i,n)}}function cO(e,t,n){var a,o=n+"",r;return function(){var i=this.getAttributeNS(e.space,e.local);return i===o?null:i===a?r:r=t(a=i,n)}}function sO(e,t,n){var a,o,r;return function(){var i,l=n(this),u;return l==null?void this.removeAttribute(e):(i=this.getAttribute(e),u=l+"",i===u?null:i===a&&u===o?r:(o=u,r=t(a=i,l)))}}function fO(e,t,n){var a,o,r;return function(){var i,l=n(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(i=this.getAttributeNS(e.space,e.local),u=l+"",i===u?null:i===a&&u===o?r:(o=u,r=t(a=i,l)))}}function Ow(e,t){var n=ra(e),a=n==="transform"?Xh:Us;return this.attrTween(e,typeof t=="function"?(n.local?fO:sO)(n,a,ni(this,"attr."+e,t)):t==null?(n.local?lO:iO)(n):(n.local?cO:uO)(n,a,t))}function dO(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function mO(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function hO(e,t){var n,a;function o(){var r=t.apply(this,arguments);return r!==a&&(n=(a=r)&&mO(e,r)),n}return o._value=t,o}function gO(e,t){var n,a;function o(){var r=t.apply(this,arguments);return r!==a&&(n=(a=r)&&dO(e,r)),n}return o._value=t,o}function Dw(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 a=ra(e);return this.tween(n,(a.local?hO:gO)(a,t))}function pO(e,t){return function(){Zl(this,e).delay=+t.apply(this,arguments)}}function yO(e,t){return t=+t,function(){Zl(this,e).delay=t}}function Rw(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?pO:yO)(t,e)):$e(this.node(),t).delay}function vO(e,t){return function(){it(this,e).duration=+t.apply(this,arguments)}}function bO(e,t){return t=+t,function(){it(this,e).duration=t}}function Hw(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vO:bO)(t,e)):$e(this.node(),t).duration}function xO(e,t){if(typeof t!="function")throw new Error;return function(){it(this,e).ease=t}}function Bw(e){var t=this._id;return arguments.length?this.each(xO(t,e)):$e(this.node(),t).ease}function SO(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;it(this,e).ease=n}}function Lw(e){if(typeof e!="function")throw new Error;return this.each(SO(this._id,e))}function Vw(e){typeof e!="function"&&(e=Tl(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var r=t[o],i=r.length,l=a[o]=[],u,c=0;c<i;++c)(u=r[c])&&e.call(u,u.__data__,c,r)&&l.push(u);return new yt(a,this._parents,this._name,this._id)}function Uw(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,a=t.length,o=n.length,r=Math.min(a,o),i=new Array(a),l=0;l<r;++l)for(var u=t[l],c=n[l],f=u.length,d=i[l]=new Array(f),s,h=0;h<f;++h)(s=u[h]||c[h])&&(d[h]=s);for(;l<a;++l)i[l]=t[l];return new yt(i,this._parents,this._name,this._id)}function wO(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 EO(e,t,n){var a,o,r=wO(t)?Zl:it;return function(){var i=r(this,e),l=i.on;l!==a&&(o=(a=l).copy()).on(t,n),i.on=o}}function Yw(e,t){var n=this._id;return arguments.length<2?$e(this.node(),n).on.on(e):this.each(EO(n,e,t))}function _O(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function kw(){return this.on("end.remove",_O(this._id))}function qw(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ho(e));for(var a=this._groups,o=a.length,r=new Array(o),i=0;i<o;++i)for(var l=a[i],u=l.length,c=r[i]=new Array(u),f,d,s=0;s<u;++s)(f=l[s])&&(d=e.call(f,f.__data__,s,l))&&("__data__"in f&&(d.__data__=f.__data__),c[s]=d,$a(c[s],t,n,s,c,$e(f,n)));return new yt(r,this._parents,t,n)}function Gw(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Nl(e));for(var a=this._groups,o=a.length,r=[],i=[],l=0;l<o;++l)for(var u=a[l],c=u.length,f,d=0;d<c;++d)if(f=u[d]){for(var s=e.call(f,f.__data__,d,u),h,y=$e(f,n),x=0,S=s.length;x<S;++x)(h=s[x])&&$a(h,t,n,x,s,y);r.push(s),i.push(f)}return new yt(r,i,t,n)}var NO=ia.prototype.constructor;function Xw(){return new NO(this._groups,this._parents)}function TO(e,t){var n,a,o;return function(){var r=Xa(this,e),i=(this.style.removeProperty(e),Xa(this,e));return r===i?null:r===n&&i===a?o:o=t(n=r,a=i)}}function Zw(e){return function(){this.style.removeProperty(e)}}function CO(e,t,n){var a,o=n+"",r;return function(){var i=Xa(this,e);return i===o?null:i===a?r:r=t(a=i,n)}}function MO(e,t,n){var a,o,r;return function(){var i=Xa(this,e),l=n(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),Xa(this,e))),i===u?null:i===a&&u===o?r:(o=u,r=t(a=i,l))}}function zO(e,t){var n,a,o,r="style."+t,i="end."+r,l;return function(){var u=it(this,e),c=u.on,f=u.value[r]==null?l||(l=Zw(t)):void 0;(c!==n||o!==f)&&(a=(n=c).copy()).on(i,o=f),u.on=a}}function $w(e,t,n){var a=(e+="")=="transform"?Gh:Us;return t==null?this.styleTween(e,TO(e,a)).on("end.style."+e,Zw(e)):typeof t=="function"?this.styleTween(e,MO(e,a,ni(this,"style."+e,t))).each(zO(this._id,e)):this.styleTween(e,CO(e,a,t),n).on("end.style."+e,null)}function AO(e,t,n){return function(a){this.style.setProperty(e,t.call(this,a),n)}}function OO(e,t,n){var a,o;function r(){var i=t.apply(this,arguments);return i!==o&&(a=(o=i)&&AO(e,i,n)),a}return r._value=t,r}function Iw(e,t,n){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,OO(e,t,n??""))}function DO(e){return function(){this.textContent=e}}function RO(e){return function(){var t=e(this);this.textContent=t??""}}function Qw(e){return this.tween("text",typeof e=="function"?RO(ni(this,"text",e)):DO(e==null?"":e+""))}function HO(e){return function(t){this.textContent=e.call(this,t)}}function BO(e){var t,n;function a(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&HO(o)),t}return a._value=e,a}function jw(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,BO(e))}function Kw(){for(var e=this._name,t=this._id,n=Ys(),a=this._groups,o=a.length,r=0;r<o;++r)for(var i=a[r],l=i.length,u,c=0;c<l;++c)if(u=i[c]){var f=$e(u,t);$a(u,e,n,c,i,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new yt(a,this._parents,e,n)}function Jw(){var e,t,n=this,a=n._id,o=n.size();return new Promise(function(r,i){var l={value:i},u={value:function(){--o===0&&r()}};n.each(function(){var c=it(this,a),f=c.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),c.on=t}),o===0&&r()})}var LO=0;function yt(e,t,n,a){this._groups=e,this._parents=t,this._name=n,this._id=a}function Fw(e){return ia().transition(e)}function Ys(){return++LO}var ua=ia.prototype;yt.prototype=Fw.prototype={constructor:yt,select:qw,selectAll:Gw,selectChild:ua.selectChild,selectChildren:ua.selectChildren,filter:Vw,merge:Uw,selection:Xw,transition:Kw,call:ua.call,nodes:ua.nodes,node:ua.node,size:ua.size,empty:ua.empty,each:ua.each,on:Yw,attr:Ow,attrTween:Dw,style:$w,styleTween:Iw,text:Qw,textTween:jw,remove:kw,tween:Aw,delay:Rw,duration:Hw,ease:Bw,easeVarying:Lw,end:Jw,[Symbol.iterator]:ua[Symbol.iterator]};function ks(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var VO={time:null,delay:0,duration:250,ease:ks};function UO(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 Pw(e){var t,n;e instanceof yt?(t=e._id,e=e._name):(t=Ys(),(n=VO).time=Gl(),e=e==null?null:e+"");for(var a=this._groups,o=a.length,r=0;r<o;++r)for(var i=a[r],l=i.length,u,c=0;c<l;++c)(u=i[c])&&$a(u,e,t,c,i,n||UO(u,t));return new yt(a,this._parents,e,t)}ia.prototype.interrupt=zw;ia.prototype.transition=Pw;var $l=e=>()=>e;function $h(e,{sourceEvent:t,target:n,transform:a,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:a,enumerable:!0,configurable:!0},_:{value:o}})}function mn(e,t,n){this.k=e,this.x=t,this.y=n}mn.prototype={constructor:mn,scale:function(e){return e===1?this:new mn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new mn(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 Go=new mn(1,0,0);Il.prototype=mn.prototype;function Il(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Go;return e.__zoom}function qs(e){e.stopImmediatePropagation()}function ai(e){e.preventDefault(),e.stopImmediatePropagation()}function YO(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function kO(){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 Ww(){return this.__zoom||Go}function qO(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function GO(){return navigator.maxTouchPoints||"ontouchstart"in this}function XO(e,t,n){var a=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],i=e.invertY(t[1][1])-n[1][1];return e.translate(o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o),i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i))}function Gs(){var e=YO,t=kO,n=XO,a=qO,o=GO,r=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],l=250,u=Yo,c=Ro("start","zoom","end"),f,d,s,h=500,y=150,x=0,S=10;function g(w){w.property("__zoom",Ww).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",D).filter(o).on("touchstart.zoom",L).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(w,C,M,z){var R=w.selection?w.selection():w;R.property("__zoom",Ww),w!==R?b(w,C,M,z):R.interrupt().each(function(){E(this,arguments).event(z).start().zoom(null,typeof C=="function"?C.apply(this,arguments):C).end()})},g.scaleBy=function(w,C,M,z){g.scaleTo(w,function(){var R=this.__zoom.k,H=typeof C=="function"?C.apply(this,arguments):C;return R*H},M,z)},g.scaleTo=function(w,C,M,z){g.transform(w,function(){var R=t.apply(this,arguments),H=this.__zoom,G=M==null?v(R):typeof M=="function"?M.apply(this,arguments):M,q=H.invert(G),X=typeof C=="function"?C.apply(this,arguments):C;return n(m(p(H,X),G,q),R,i)},M,z)},g.translateBy=function(w,C,M,z){g.transform(w,function(){return n(this.__zoom.translate(typeof C=="function"?C.apply(this,arguments):C,typeof M=="function"?M.apply(this,arguments):M),t.apply(this,arguments),i)},null,z)},g.translateTo=function(w,C,M,z,R){g.transform(w,function(){var H=t.apply(this,arguments),G=this.__zoom,q=z==null?v(H):typeof z=="function"?z.apply(this,arguments):z;return n(Go.translate(q[0],q[1]).scale(G.k).translate(typeof C=="function"?-C.apply(this,arguments):-C,typeof M=="function"?-M.apply(this,arguments):-M),H,i)},z,R)};function p(w,C){return C=Math.max(r[0],Math.min(r[1],C)),C===w.k?w:new mn(C,w.x,w.y)}function m(w,C,M){var z=C[0]-M[0]*w.k,R=C[1]-M[1]*w.k;return z===w.x&&R===w.y?w:new mn(w.k,z,R)}function v(w){return[(+w[0][0]+ +w[1][0])/2,(+w[0][1]+ +w[1][1])/2]}function b(w,C,M,z){w.on("start.zoom",function(){E(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){E(this,arguments).event(z).end()}).tween("zoom",function(){var R=this,H=arguments,G=E(R,H).event(z),q=t.apply(R,H),X=M==null?v(q):typeof M=="function"?M.apply(R,H):M,K=Math.max(q[1][0]-q[0][0],q[1][1]-q[0][1]),Z=R.__zoom,J=typeof C=="function"?C.apply(R,H):C,re=u(Z.invert(X).concat(K/Z.k),J.invert(X).concat(K/J.k));return function(j){if(j===1)j=J;else{var Y=re(j),I=K/Y[2];j=new mn(I,X[0]-Y[0]*I,X[1]-Y[1]*I)}G.zoom(null,j)}})}function E(w,C,M){return!M&&w.__zooming||new N(w,C)}function N(w,C){this.that=w,this.args=C,this.active=0,this.sourceEvent=null,this.extent=t.apply(w,C),this.taps=0}N.prototype={event:function(w){return w&&(this.sourceEvent=w),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(w,C){return this.mouse&&w!=="mouse"&&(this.mouse[1]=C.invert(this.mouse[0])),this.touch0&&w!=="touch"&&(this.touch0[1]=C.invert(this.touch0[0])),this.touch1&&w!=="touch"&&(this.touch1[1]=C.invert(this.touch1[0])),this.that.__zoom=C,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(w){var C=Je(this.that).datum();c.call(w,this.that,new $h(w,{sourceEvent:this.sourceEvent,target:g,type:w,transform:this.that.__zoom,dispatch:c}),C)}};function _(w,...C){if(!e.apply(this,arguments))return;var M=E(this,C).event(w),z=this.__zoom,R=Math.max(r[0],Math.min(r[1],z.k*Math.pow(2,a.apply(this,arguments)))),H=gt(w);if(M.wheel)(M.mouse[0][0]!==H[0]||M.mouse[0][1]!==H[1])&&(M.mouse[1]=z.invert(M.mouse[0]=H)),clearTimeout(M.wheel);else{if(z.k===R)return;M.mouse=[H,z.invert(H)],qo(this),M.start()}ai(w),M.wheel=setTimeout(G,y),M.zoom("mouse",n(m(p(z,R),M.mouse[0],M.mouse[1]),M.extent,i));function G(){M.wheel=null,M.end()}}function T(w,...C){if(s||!e.apply(this,arguments))return;var M=w.currentTarget,z=E(this,C,!0).event(w),R=Je(w.view).on("mousemove.zoom",X,!0).on("mouseup.zoom",K,!0),H=gt(w,M),G=w.clientX,q=w.clientY;Ml(w.view),qs(w),z.mouse=[H,this.__zoom.invert(H)],qo(this),z.start();function X(Z){if(ai(Z),!z.moved){var J=Z.clientX-G,re=Z.clientY-q;z.moved=J*J+re*re>x}z.event(Z).zoom("mouse",n(m(z.that.__zoom,z.mouse[0]=gt(Z,M),z.mouse[1]),z.extent,i))}function K(Z){R.on("mousemove.zoom mouseup.zoom",null),zl(Z.view,z.moved),ai(Z),z.event(Z).end()}}function D(w,...C){if(e.apply(this,arguments)){var M=this.__zoom,z=gt(w.changedTouches?w.changedTouches[0]:w,this),R=M.invert(z),H=M.k*(w.shiftKey?.5:2),G=n(m(p(M,H),z,R),t.apply(this,C),i);ai(w),l>0?Je(this).transition().duration(l).call(b,G,z,w):Je(this).call(g.transform,G,z,w)}}function L(w,...C){if(e.apply(this,arguments)){var M=w.touches,z=M.length,R=E(this,C,w.changedTouches.length===z).event(w),H,G,q,X;for(qs(w),G=0;G<z;++G)q=M[G],X=gt(q,this),X=[X,this.__zoom.invert(X),q.identifier],R.touch0?!R.touch1&&R.touch0[2]!==X[2]&&(R.touch1=X,R.taps=0):(R.touch0=X,H=!0,R.taps=1+!!f);f&&(f=clearTimeout(f)),H&&(R.taps<2&&(d=X[0],f=setTimeout(function(){f=null},h)),qo(this),R.start())}}function k(w,...C){if(this.__zooming){var M=E(this,C).event(w),z=w.changedTouches,R=z.length,H,G,q,X;for(ai(w),H=0;H<R;++H)G=z[H],q=gt(G,this),M.touch0&&M.touch0[2]===G.identifier?M.touch0[0]=q:M.touch1&&M.touch1[2]===G.identifier&&(M.touch1[0]=q);if(G=M.that.__zoom,M.touch1){var K=M.touch0[0],Z=M.touch0[1],J=M.touch1[0],re=M.touch1[1],j=(j=J[0]-K[0])*j+(j=J[1]-K[1])*j,Y=(Y=re[0]-Z[0])*Y+(Y=re[1]-Z[1])*Y;G=p(G,Math.sqrt(j/Y)),q=[(K[0]+J[0])/2,(K[1]+J[1])/2],X=[(Z[0]+re[0])/2,(Z[1]+re[1])/2]}else if(M.touch0)q=M.touch0[0],X=M.touch0[1];else return;M.zoom("touch",n(m(G,q,X),M.extent,i))}}function U(w,...C){if(this.__zooming){var M=E(this,C).event(w),z=w.changedTouches,R=z.length,H,G;for(qs(w),s&&clearTimeout(s),s=setTimeout(function(){s=null},h),H=0;H<R;++H)G=z[H],M.touch0&&M.touch0[2]===G.identifier?delete M.touch0:M.touch1&&M.touch1[2]===G.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&&(G=gt(G,this),Math.hypot(d[0]-G[0],d[1]-G[1])<S)){var q=Je(this).on("dblclick.zoom");q&&q.apply(this,arguments)}}}return g.wheelDelta=function(w){return arguments.length?(a=typeof w=="function"?w:$l(+w),g):a},g.filter=function(w){return arguments.length?(e=typeof w=="function"?w:$l(!!w),g):e},g.touchable=function(w){return arguments.length?(o=typeof w=="function"?w:$l(!!w),g):o},g.extent=function(w){return arguments.length?(t=typeof w=="function"?w:$l([[+w[0][0],+w[0][1]],[+w[1][0],+w[1][1]]]),g):t},g.scaleExtent=function(w){return arguments.length?(r[0]=+w[0],r[1]=+w[1],g):[r[0],r[1]]},g.translateExtent=function(w){return arguments.length?(i[0][0]=+w[0][0],i[1][0]=+w[1][0],i[0][1]=+w[0][1],i[1][1]=+w[1][1],g):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},g.constrain=function(w){return arguments.length?(n=w,g):n},g.duration=function(w){return arguments.length?(l=+w,g):l},g.interpolate=function(w){return arguments.length?(u=w,g):u},g.on=function(){var w=c.on.apply(c,arguments);return w===c?g:w},g.clickDistance=function(w){return arguments.length?(x=(w=+w)*w,g):Math.sqrt(x)},g.tapDistance=function(w){return arguments.length?(S=+w,g):S},g}var kt={error001:(e="react")=>`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007: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:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:a}", 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.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},ii=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Jh=["Enter"," ","Escape"],Fh={"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"},Ka;(function(e){e.Strict="strict",e.Loose="loose"})(Ka||(Ka={}));var ca;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(ca||(ca={}));var Xo;(function(e){e.Partial="partial",e.Full="full"})(Xo||(Xo={}));var Ph={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},Dn;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Dn||(Dn={}));var Ja;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Ja||(Ja={}));var $;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})($||($={}));var eE={[$.Left]:$.Right,[$.Right]:$.Left,[$.Top]:$.Bottom,[$.Bottom]:$.Top},Wh=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,mE=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),eg=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e);var jl=(e,t=[0,0])=>{let{width:n,height:a}=tn(e),o=e.origin??t,r=n*o[0],i=a*o[1];return{x:e.position.x-r,y:e.position.y-i}},tg=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};let n=!1,a=e.reduce((o,r)=>{let i=typeof r=="string",l=!t.nodeLookup&&!i?r:void 0;return t.nodeLookup&&(l=i?t.nodeLookup.get(r):eg(r)?r:t.nodeLookup.get(r.id)),l?(n=!0,js(o,$s(l,t.nodeOrigin))):o},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return n?Ks(a):{x:0,y:0,width:0,height:0}},li=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(o=>{(t.filter===void 0||t.filter(o))&&(n=js(n,$s(o)),a=!0)}),a?Ks(n):{x:0,y:0,width:0,height:0}},Is=(e,t,[n,a,o]=[0,0,1],r=!1,i=!1)=>{let l=(t.x-n)/o,u=(t.y-a)/o,c=t.width/o,f=t.height/o,d=[];for(let s of e.values()){let{measured:h,selectable:y=!0,hidden:x=!1}=s;if(i&&!y||x)continue;let S=h.width??s.width??s.initialWidth??0,g=h.height??s.height??s.initialHeight??0,{x:p,y:m}=s.internals.positionAbsolute,v=vE(l,u,c,f,p,m,S,g),b=S*g,E=r&&v>0;(!s.internals.handleBounds||E||v>=b||s.dragging)&&d.push(s)}return d},hE=(e,t)=>{let n=new Set;return e.forEach(a=>{n.add(a.id)}),t.filter(a=>n.has(a.source)||n.has(a.target))};function ZO(e,t){let n=new Map,a=t?.nodes?new Set(t.nodes.map(o=>o.id)):null;return e.forEach(o=>{let r;if(t?.includeHiddenNodes){let{width:i,height:l}=tn(o);r=i>0&&l>0}else r=!!(o.measured.width&&o.measured.height&&!o.hidden);r&&(!a||a.has(o.id))&&n.set(o.id,o)}),n}async function gE({nodes:e,width:t,height:n,panZoom:a,minZoom:o,maxZoom:r},i){if(e.size===0)return!0;let l=ZO(e,i),u=li(l),c=Jl(u,t,n,i?.minZoom??o,i?.maxZoom??r,i?.padding??.1);return await a.setViewport(c,{duration:i?.duration,ease:i?.ease,interpolate:i?.interpolate}),!0}function ng({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:a=[0,0],nodeExtent:o,onError:r}){let i=n.get(e),l=i.parentId?n.get(i.parentId):void 0,{x:u,y:c}=l?l.internals.positionAbsolute:{x:0,y:0},f=i.origin??a,d=i.extent||o;if(i.extent==="parent"&&!i.expandParent)if(!l)r?.("005",kt.error005());else{let{width:h,height:y}=tn(l);h&&y&&(d=[[u,c],[u+h,c+y]])}else l&&Io(i.extent)&&(d=[[i.extent[0][0]+u,i.extent[0][1]+c],[i.extent[1][0]+u,i.extent[1][1]+c]]);let s=Io(d)?Zo(t,d,i.measured):t;return(i.measured.width===void 0||i.measured.height===void 0)&&r?.("015",kt.error015()),{position:{x:s.x-u+(i.measured.width??0)*f[0],y:s.y-c+(i.measured.height??0)*f[1]},positionAbsolute:s}}async function pE({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:a,onBeforeDelete:o}){let r=new Set(e.map(s=>s.id)),i=[];for(let s of n){if(s.deletable===!1)continue;let h=r.has(s.id),y=!h&&s.parentId&&i.find(x=>x.id===s.parentId);(h||y)&&i.push(s)}let l=new Set(t.map(s=>s.id)),u=a.filter(s=>s.deletable!==!1),f=hE(i,u);for(let s of u)l.has(s.id)&&!f.find(y=>y.id===s.id)&&f.push(s);if(!o)return{edges:f,nodes:i};let d=await o({nodes:i,edges:f});return typeof d=="boolean"?d?{edges:f,nodes:i}:{edges:[],nodes:[]}:d}var ri=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Zo=(e={x:0,y:0},t,n)=>({x:ri(e.x,t[0][0],t[1][0]-(n?.width??0)),y:ri(e.y,t[0][1],t[1][1]-(n?.height??0))});function yE(e,t,n){let{width:a,height:o}=tn(n),{x:r,y:i}=n.internals.positionAbsolute;return Zo(e,[[r,i],[r+a,i+o]],t)}var tE=(e,t,n)=>e<t?ri(Math.abs(e-t),1,t)/t:e>n?-ri(Math.abs(e-n),1,t)/t:0,Qs=(e,t,n=15,a=40)=>{let o=tE(e.x,a,t.width-a)*n,r=tE(e.y,a,t.height-a)*n;return[o,r]},js=(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)}),Kh=({x:e,y:t,width:n,height:a})=>({x:e,y:t,x2:e+n,y2:t+a}),Ks=({x:e,y:t,x2:n,y2:a})=>({x:e,y:t,width:n-e,height:a-t}),ui=(e,t=[0,0])=>{let{x:n,y:a}=eg(e)?e.internals.positionAbsolute:jl(e,t);return{x:n,y:a,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},$s=(e,t=[0,0])=>{let{x:n,y:a}=eg(e)?e.internals.positionAbsolute:jl(e,t);return{x:n,y:a,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:a+(e.measured?.height??e.height??e.initialHeight??0)}},ag=(e,t)=>Ks(js(Kh(e),Kh(t))),vE=(e,t,n,a,o,r,i,l)=>{let u=Math.max(0,Math.min(e+n,o+i)-Math.max(e,o)),c=Math.max(0,Math.min(t+a,r+l)-Math.max(t,r));return Math.ceil(u*c)},Kl=(e,t)=>vE(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),og=e=>Wt(e.width)&&Wt(e.height)&&Wt(e.x)&&Wt(e.y),Wt=e=>!isNaN(e)&&isFinite(e),rg=(e,t)=>(n,a)=>{},ci=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),si=({x:e,y:t},[n,a,o],r=!1,i=[1,1])=>{let l={x:(e-n)/o,y:(t-a)/o};return r?ci(l,i):l},$o=({x:e,y:t},[n,a,o])=>({x:e*o+n,y:t*o+a});function oi(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function $O(e,t,n){if(typeof e=="string"||typeof e=="number"){let a=oi(e,n),o=oi(e,t);return{top:a,right:o,bottom:a,left:o,x:o*2,y:a*2}}if(typeof e=="object"){let a=oi(e.top??e.y??0,n),o=oi(e.bottom??e.y??0,n),r=oi(e.left??e.x??0,t),i=oi(e.right??e.x??0,t);return{top:a,right:i,bottom:o,left:r,x:r+i,y:a+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function IO(e,t,n,a,o,r){let{x:i,y:l}=$o(e,[t,n,a]),{x:u,y:c}=$o({x:e.x+e.width,y:e.y+e.height},[t,n,a]),f=o-u,d=r-c;return{left:Math.floor(i),top:Math.floor(l),right:Math.floor(f),bottom:Math.floor(d)}}var Jl=(e,t,n,a,o,r)=>{let i=$O(r,t,n),l=(t-i.x)/e.width,u=(n-i.y)/e.height,c=Math.min(l,u),f=ri(c,a,o),d=e.x+e.width/2,s=e.y+e.height/2,h=t/2-d*f,y=n/2-s*f,x=IO(e,h,y,f,t,n),S={left:Math.min(x.left-i.left,0),top:Math.min(x.top-i.top,0),right:Math.min(x.right-i.right,0),bottom:Math.min(x.bottom-i.bottom,0)};return{x:h-S.left+S.right,y:y-S.top+S.bottom,zoom:f}},fi=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function Io(e){return e!=null&&e!=="parent"}function tn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function ig(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function lg(e,t={width:0,height:0},n,a,o){let r={...e},i=a.get(n);if(i){let l=i.origin||o;r.x+=i.internals.positionAbsolute.x-(t.width??0)*l[0],r.y+=i.internals.positionAbsolute.y-(t.height??0)*l[1]}return r}function ug(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function bE(){let e,t;return{promise:new Promise((a,o)=>{e=a,t=o}),resolve:e,reject:t}}function xE(e){return{...Fh,...e||{}}}function cg(e){return e===null?null:e?"valid":"invalid"}function Ql(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:a,containerBounds:o}){let{x:r,y:i}=en(e),l=si({x:r-(o?.left??0),y:i-(o?.top??0)},a),{x:u,y:c}=n?ci(l,t):l;return{xSnapped:u,ySnapped:c,...l}}var Js=e=>({width:e.offsetWidth,height:e.offsetHeight}),sg=e=>e?.getRootNode?.()||window?.document,QO=["INPUT","SELECT","TEXTAREA"];function fg(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType!==1?!1:QO.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}var dg=e=>"clientX"in e,en=(e,t)=>{let n=dg(e),a=n?e.clientX:e.touches?.[0].clientX,o=n?e.clientY:e.touches?.[0].clientY;return{x:a-(t?.left??0),y:o-(t?.top??0)}},nE=(e,t,n,a,o)=>{let r=t.querySelectorAll(`.${e}`);return!r||!r.length?null:Array.from(r).map(i=>{let l=i.getBoundingClientRect();return{id:i.getAttribute("data-handleid"),type:e,nodeId:o,position:i.getAttribute("data-handlepos"),x:(l.left-n.left)/a,y:(l.top-n.top)/a,...Js(i)}})};function Fs({sourceX:e,sourceY:t,targetX:n,targetY:a,sourceControlX:o,sourceControlY:r,targetControlX:i,targetControlY:l}){let u=e*.125+o*.375+i*.375+n*.125,c=t*.125+r*.375+l*.375+a*.125,f=Math.abs(u-e),d=Math.abs(c-t);return[u,c,f,d]}function Xs(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function aE({pos:e,x1:t,y1:n,x2:a,y2:o,c:r}){switch(e){case $.Left:return[t-Xs(t-a,r),n];case $.Right:return[t+Xs(a-t,r),n];case $.Top:return[t,n-Xs(n-o,r)];case $.Bottom:return[t,n+Xs(o-n,r)]}}function Ps({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:a,targetY:o,targetPosition:r=$.Top,curvature:i=.25}){let[l,u]=aE({pos:n,x1:e,y1:t,x2:a,y2:o,c:i}),[c,f]=aE({pos:r,x1:a,y1:o,x2:e,y2:t,c:i}),[d,s,h,y]=Fs({sourceX:e,sourceY:t,targetX:a,targetY:o,sourceControlX:l,sourceControlY:u,targetControlX:c,targetControlY:f});return[`M${e},${t} C${l},${u} ${c},${f} ${a},${o}`,d,s,h,y]}function mg({sourceX:e,sourceY:t,targetX:n,targetY:a}){let o=Math.abs(n-e)/2,r=n<e?n+o:n-o,i=Math.abs(a-t)/2,l=a<t?a+i:a-i;return[r,l,o,i]}function SE({sourceNode:e,targetNode:t,selected:n=!1,zIndex:a=0,elevateOnSelect:o=!1,zIndexMode:r="basic"}){if(r==="manual")return a;let i=o&&n?a+1e3:a,l=Math.max(e.parentId||o&&e.selected?e.internals.z:0,t.parentId||o&&t.selected?t.internals.z:0);return i+l}function wE({sourceNode:e,targetNode:t,width:n,height:a,transform:o}){let r=js($s(e),$s(t));r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1);let i={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:a/o[2]};return Kl(i,Ks(r))>0}var jO=({source:e,sourceHandle:t,target:n,targetHandle:a})=>`xy-edge__${e}${t||""}-${n}${a||""}`,KO=(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)),EE=(e,t,n={})=>{if(!e.source||!e.target)return n.onError?.("006",kt.error006()),t;let a=n.getEdgeId||jO,o;return Wh(e)?o={...e}:o={...e,id:a(e)},KO(o,t)?t:(o.sourceHandle===null&&delete o.sourceHandle,o.targetHandle===null&&delete o.targetHandle,t.concat(o))};function Ws({sourceX:e,sourceY:t,targetX:n,targetY:a}){let[o,r,i,l]=mg({sourceX:e,sourceY:t,targetX:n,targetY:a});return[`M ${e},${t}L ${n},${a}`,o,r,i,l]}var oE={[$.Left]:{x:-1,y:0},[$.Right]:{x:1,y:0},[$.Top]:{x:0,y:-1},[$.Bottom]:{x:0,y:1}},JO=({source:e,sourcePosition:t=$.Bottom,target:n})=>t===$.Left||t===$.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},rE=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function FO({source:e,sourcePosition:t=$.Bottom,target:n,targetPosition:a=$.Top,center:o,offset:r,stepPosition:i}){let l=oE[t],u=oE[a],c={x:e.x+l.x*r,y:e.y+l.y*r},f={x:n.x+u.x*r,y:n.y+u.y*r},d=JO({source:c,sourcePosition:t,target:f}),s=d.x!==0?"x":"y",h=d[s],y=[],x,S,g={x:0,y:0},p={x:0,y:0},[,,m,v]=mg({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[s]*u[s]===-1){s==="x"?(x=o.x??c.x+(f.x-c.x)*i,S=o.y??(c.y+f.y)/2):(x=o.x??(c.x+f.x)/2,S=o.y??c.y+(f.y-c.y)*i);let _=[{x,y:c.y},{x,y:f.y}],T=[{x:c.x,y:S},{x:f.x,y:S}];l[s]===h?y=s==="x"?_:T:y=s==="x"?T:_}else{let _=[{x:c.x,y:f.y}],T=[{x:f.x,y:c.y}];if(s==="x"?y=l.x===h?T:_:y=l.y===h?_:T,t===a){let w=Math.abs(e[s]-n[s]);if(w<=r){let C=Math.min(r-1,r-w);l[s]===h?g[s]=(c[s]>e[s]?-1:1)*C:p[s]=(f[s]>n[s]?-1:1)*C}}if(t!==a){let w=s==="x"?"y":"x",C=l[s]===u[w],M=c[w]>f[w],z=c[w]<f[w];(l[s]===1&&(!C&&M||C&&z)||l[s]!==1&&(!C&&z||C&&M))&&(y=s==="x"?_:T)}let D={x:c.x+g.x,y:c.y+g.y},L={x:f.x+p.x,y:f.y+p.y},k=Math.max(Math.abs(D.x-y[0].x),Math.abs(L.x-y[0].x)),U=Math.max(Math.abs(D.y-y[0].y),Math.abs(L.y-y[0].y));k>=U?(x=(D.x+L.x)/2,S=y[0].y):(x=y[0].x,S=(D.y+L.y)/2)}let b={x:c.x+g.x,y:c.y+g.y},E={x:f.x+p.x,y:f.y+p.y};return[[e,...b.x!==y[0].x||b.y!==y[0].y?[b]:[],...y,...E.x!==y[y.length-1].x||E.y!==y[y.length-1].y?[E]:[],n],x,S,m,v]}function PO(e,t,n,a){let o=Math.min(rE(e,t)/2,rE(t,n)/2,a),{x:r,y:i}=t;if(e.x===r&&r===n.x||e.y===i&&i===n.y)return`L${r} ${i}`;if(e.y===i){let c=e.x<n.x?-1:1,f=e.y<n.y?1:-1;return`L ${r+o*c},${i}Q ${r},${i} ${r},${i+o*f}`}let l=e.x<n.x?1:-1,u=e.y<n.y?-1:1;return`L ${r},${i+o*u}Q ${r},${i} ${r+o*l},${i}`}function Fl({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:a,targetY:o,targetPosition:r=$.Top,borderRadius:i=5,centerX:l,centerY:u,offset:c=20,stepPosition:f=.5}){let[d,s,h,y,x]=FO({source:{x:e,y:t},sourcePosition:n,target:{x:a,y:o},targetPosition:r,center:{x:l,y:u},offset:c,stepPosition:f}),S=`M${d[0].x} ${d[0].y}`;for(let g=1;g<d.length-1;g++)S+=PO(d[g-1],d[g],d[g+1],i);return S+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[S,s,h,y,x]}function iE(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function _E(e){let{sourceNode:t,targetNode:n}=e;if(!iE(t)||!iE(n))return null;let a=t.internals.handleBounds||lE(t.handles),o=n.internals.handleBounds||lE(n.handles),r=uE(a?.source??[],e.sourceHandle),i=uE(e.connectionMode===Ka.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),e.targetHandle);if(!r||!i)return e.onError?.("008",kt.error008(r?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let l=r?.position||$.Bottom,u=i?.position||$.Top,c=Fa(t,r,l),f=Fa(n,i,u);return{sourceX:c.x,sourceY:c.y,targetX:f.x,targetY:f.y,sourcePosition:l,targetPosition:u}}function lE(e){if(!e)return null;let t=[],n=[];for(let a of e)a.width=a.width??1,a.height=a.height??1,a.type==="source"?t.push(a):a.type==="target"&&n.push(a);return{source:t,target:n}}function Fa(e,t,n=$.Left,a=!1){let o=(t?.x??0)+e.internals.positionAbsolute.x,r=(t?.y??0)+e.internals.positionAbsolute.y,{width:i,height:l}=t??tn(e);if(a)return{x:o+i/2,y:r+l/2};switch(t?.position??n){case $.Top:return{x:o+i/2,y:r};case $.Right:return{x:o+i,y:r+l/2};case $.Bottom:return{x:o+i/2,y:r+l};case $.Left:return{x:o,y:r+l/2}}}function uE(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function ef(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function NE(e,{id:t,defaultColor:n,defaultMarkerStart:a,defaultMarkerEnd:o}){let r=new Set;return e.reduce((i,l)=>([l.markerStart||a,l.markerEnd||o].forEach(u=>{if(u&&typeof u=="object"){let c=ef(u,t);r.has(c)||(i.push({id:c,color:u.color||n,...u}),r.add(c))}}),i),[]).sort((i,l)=>i.id.localeCompare(l.id))}var TE=1e3,WO=10,hg={nodeOrigin:[0,0],nodeExtent:ii,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},eD={...hg,checkEquality:!0};function gg(e,t){let n={...e};for(let a in t)t[a]!==void 0&&(n[a]=t[a]);return n}function CE(e,t,n){let a=gg(hg,n);for(let o of e.values())if(o.parentId)yg(o,e,t,a);else{let r=jl(o,a.nodeOrigin),i=Io(o.extent)?o.extent:a.nodeExtent,l=Zo(r,i,tn(o));o.internals.positionAbsolute=l}}function tD(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],a=[];for(let o of e.handles){let r={id:o.id,width:o.width??1,height:o.height??1,nodeId:e.id,x:o.x,y:o.y,position:o.position,type:o.type};o.type==="source"?n.push(r):o.type==="target"&&a.push(r)}return{source:n,target:a}}function pg(e){return e==="manual"}function tf(e,t,n,a={}){let o=gg(eD,a),r={i:0},i=new Map(t),l=o?.elevateNodesOnSelect&&!pg(o.zIndexMode)?TE:0,u=e.length>0,c=!1;t.clear(),n.clear();for(let f of e){let d=i.get(f.id);if(o.checkEquality&&f===d?.internals.userNode)t.set(f.id,d);else{let s=jl(f,o.nodeOrigin),h=Io(f.extent)?f.extent:o.nodeExtent,y=Zo(s,h,tn(f));d={...o.defaults,...f,measured:{width:f.measured?.width,height:f.measured?.height},internals:{positionAbsolute:y,handleBounds:tD(f,d),z:ME(f,l,o.zIndexMode),userNode:f}},t.set(f.id,d)}(d.measured===void 0||d.measured.width===void 0||d.measured.height===void 0)&&!d.hidden&&(u=!1),f.parentId&&yg(d,t,n,a,r),c||=f.selected??!1}return{nodesInitialized:u,hasSelectedNodes:c}}function nD(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function yg(e,t,n,a,o){let{elevateNodesOnSelect:r,nodeOrigin:i,nodeExtent:l,zIndexMode:u}=gg(hg,a),c=e.parentId,f=t.get(c);if(!f){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}nD(e,n),o&&!f.parentId&&f.internals.rootParentIndex===void 0&&u==="auto"&&(f.internals.rootParentIndex=++o.i,f.internals.z=f.internals.z+o.i*WO),o&&f.internals.rootParentIndex!==void 0&&(o.i=f.internals.rootParentIndex);let d=r&&!pg(u)?TE:0,{x:s,y:h,z:y}=aD(e,f,i,l,d,u),{positionAbsolute:x}=e.internals,S=s!==x.x||h!==x.y;(S||y!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:s,y:h}:x,z:y}})}function ME(e,t,n){let a=Wt(e.zIndex)?e.zIndex:0;return pg(n)?a:a+(e.selected?t:0)}function aD(e,t,n,a,o,r){let{x:i,y:l}=t.internals.positionAbsolute,u=tn(e),c=jl(e,n),f=Io(e.extent)?Zo(c,e.extent,u):c,d=Zo({x:i+f.x,y:l+f.y},a,u);e.extent==="parent"&&(d=yE(d,u,t));let s=ME(e,o,r),h=t.internals.z??0;return{x:d.x,y:d.y,z:h>=s?h+1:s}}function nf(e,t,n,a=[0,0]){let o=[],r=new Map;for(let i of e){let l=t.get(i.parentId);if(!l)continue;let u=r.get(i.parentId)?.expandedRect??ui(l),c=ag(u,i.rect);r.set(i.parentId,{expandedRect:c,parent:l})}return r.size>0&&r.forEach(({expandedRect:i,parent:l},u)=>{let c=l.internals.positionAbsolute,f=tn(l),d=l.origin??a,s=i.x<c.x?Math.round(Math.abs(c.x-i.x)):0,h=i.y<c.y?Math.round(Math.abs(c.y-i.y)):0,y=Math.max(f.width,Math.round(i.width)),x=Math.max(f.height,Math.round(i.height)),S=(y-f.width)*d[0],g=(x-f.height)*d[1];(s>0||h>0||S||g)&&(o.push({id:u,type:"position",position:{x:l.position.x-s+S,y:l.position.y-h+g}}),n.get(u)?.forEach(p=>{e.some(m=>m.id===p.id)||o.push({id:p.id,type:"position",position:{x:p.position.x+s,y:p.position.y+h}})})),(f.width<i.width||f.height<i.height||s||h)&&o.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:y+(s?d[0]*s-S:0),height:x+(h?d[1]*h-g:0)}})}),o}function zE(e,t,n,a,o,r,i){let l=a?.querySelector(".xyflow__viewport"),u=!1;if(!l)return{changes:[],updatedInternals:u};let c=[],f=window.getComputedStyle(l),{m22:d}=new window.DOMMatrixReadOnly(f.transform),s=[];for(let h of e.values()){let y=t.get(h.id);if(!y)continue;if(y.hidden){t.set(y.id,{...y,internals:{...y.internals,handleBounds:void 0}}),u=!0;continue}let x=Js(h.nodeElement),S=y.measured.width!==x.width||y.measured.height!==x.height;if(!!(x.width&&x.height&&(S||!y.internals.handleBounds||h.force))){let p=h.nodeElement.getBoundingClientRect(),m=Io(y.extent)?y.extent:r,{positionAbsolute:v}=y.internals;if(y.parentId&&y.extent==="parent"){let E=t.get(y.parentId);E&&(v=yE(v,x,E))}else m&&(v=Zo(v,m,x));let b={...y,measured:x,internals:{...y.internals,positionAbsolute:v,handleBounds:{source:nE("source",h.nodeElement,p,d,y.id),target:nE("target",h.nodeElement,p,d,y.id)}}};t.set(y.id,b),y.parentId&&yg(b,t,n,{nodeOrigin:o,zIndexMode:i}),u=!0,S&&(c.push({id:y.id,type:"dimensions",dimensions:x}),y.expandParent&&y.parentId&&s.push({id:y.id,parentId:y.parentId,rect:ui(b,o)}))}}if(s.length>0){let h=nf(s,t,n,o);c.push(...h)}return{changes:c,updatedInternals:u}}async function AE({delta:e,panZoom:t,transform:n,translateExtent:a,width:o,height:r}){if(!t||!e.x&&!e.y)return!1;let i=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,r]],a);return!!i&&(i.x!==n[0]||i.y!==n[1]||i.k!==n[2])}function cE(e,t,n,a,o,r){let i=o,l=a.get(i)||new Map;a.set(i,l.set(n,t)),i=`${o}-${e}`;let u=a.get(i)||new Map;if(a.set(i,u.set(n,t)),r){i=`${o}-${e}-${r}`;let c=a.get(i)||new Map;a.set(i,c.set(n,t))}}function vg(e,t,n){e.clear(),t.clear();for(let a of n){let{source:o,target:r,sourceHandle:i=null,targetHandle:l=null}=a,u={edgeId:a.id,source:o,target:r,sourceHandle:i,targetHandle:l},c=`${o}-${i}--${r}-${l}`,f=`${r}-${l}--${o}-${i}`;cE("source",u,f,e,o,i),cE("target",u,c,e,r,l),t.set(a.id,a)}}function OE(e,t){if(!e.parentId)return!1;let n=t.get(e.parentId);return n?n.selected?!0:OE(n,t):!1}function sE(e,t,n){let a=e;do{if(a?.matches?.(t))return!0;if(a===n)return!1;a=a?.parentElement}while(a);return!1}function oD(e,t,n,a){let o=new Map;for(let[r,i]of e)if((i.selected||i.id===a)&&(!i.parentId||!OE(i,e))&&(i.draggable||t&&typeof i.draggable>"u")){let l=e.get(r);l&&o.set(r,{id:r,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return o}function Ih({nodeId:e,dragItems:t,nodeLookup:n,dragging:a=!0}){let o=[];for(let[i,l]of t){let u=n.get(i)?.internals.userNode;u&&o.push({...u,position:l.position,dragging:a})}if(!e)return[o[0],o];let r=n.get(e)?.internals.userNode;return[r?{...r,position:t.get(e)?.position||r.position,dragging:a}:o[0],o]}function rD({dragItems:e,snapGrid:t,x:n,y:a}){let o=e.values().next().value;if(!o)return null;let r={x:n-o.distance.x,y:a-o.distance.y},i=ci(r,t);return{x:i.x-r.x,y:i.y-r.y}}function DE({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:a,onDragStop:o}){let r={x:null,y:null},i=0,l=new Map,u=!1,c={x:0,y:0},f=null,d=!1,s=null,h=!1,y=!1,x=null;function S({noDragClassName:p,handleSelector:m,domNode:v,isSelectable:b,nodeId:E,nodeClickDistance:N=0}){s=Je(v);function _({x:k,y:U}){let{nodeLookup:w,nodeExtent:C,snapGrid:M,snapToGrid:z,nodeOrigin:R,onNodeDrag:H,onSelectionDrag:G,onError:q,updateNodePositions:X}=t();r={x:k,y:U};let K=!1,Z=l.size>1,J=Z&&C?Kh(li(l)):null,re=Z&&z?rD({dragItems:l,snapGrid:M,x:k,y:U}):null;for(let[j,Y]of l){if(!w.has(j))continue;let I={x:k-Y.distance.x,y:U-Y.distance.y};z&&(I=re?{x:Math.round(I.x+re.x),y:Math.round(I.y+re.y)}:ci(I,M));let ae=null;if(Z&&C&&!Y.extent&&J){let{positionAbsolute:P}=Y.internals,ie=P.x-J.x+C[0][0],ce=P.x+Y.measured.width-J.x2+C[1][0],ge=P.y-J.y+C[0][1],Pe=P.y+Y.measured.height-J.y2+C[1][1];ae=[[ie,ge],[ce,Pe]]}let{position:te,positionAbsolute:Q}=ng({nodeId:j,nextPosition:I,nodeLookup:w,nodeExtent:ae||C,nodeOrigin:R,onError:q});K=K||Y.position.x!==te.x||Y.position.y!==te.y,Y.position=te,Y.internals.positionAbsolute=Q}if(y=y||K,!!K&&(X(l,!0),x&&(a||H||!E&&G))){let[j,Y]=Ih({nodeId:E,dragItems:l,nodeLookup:w});a?.(x,l,j,Y),H?.(x,j,Y),E||G?.(x,Y)}}async function T(){if(!f)return;let{transform:k,panBy:U,autoPanSpeed:w,autoPanOnNodeDrag:C}=t();if(!C){u=!1,cancelAnimationFrame(i);return}let[M,z]=Qs(c,f,w);(M!==0||z!==0)&&(r.x=(r.x??0)-M/k[2],r.y=(r.y??0)-z/k[2],await U({x:M,y:z})&&_(r)),i=requestAnimationFrame(T)}function D(k){let{nodeLookup:U,multiSelectionActive:w,nodesDraggable:C,transform:M,snapGrid:z,snapToGrid:R,selectNodesOnDrag:H,onNodeDragStart:G,onSelectionDragStart:q,unselectNodesAndEdges:X}=t();d=!0,(!H||!b)&&!w&&E&&(U.get(E)?.selected||X()),b&&H&&E&&e?.(E);let K=Ql(k.sourceEvent,{transform:M,snapGrid:z,snapToGrid:R,containerBounds:f});if(r=K,l=oD(U,C,K,E),l.size>0&&(n||G||!E&&q)){let[Z,J]=Ih({nodeId:E,dragItems:l,nodeLookup:U});n?.(k.sourceEvent,l,Z,J),G?.(k.sourceEvent,Z,J),E||q?.(k.sourceEvent,J)}}let L=Ss().clickDistance(N).on("start",k=>{let{domNode:U,nodeDragThreshold:w,transform:C,snapGrid:M,snapToGrid:z}=t();f=U?.getBoundingClientRect()||null,h=!1,y=!1,x=k.sourceEvent,w===0&&D(k),r=Ql(k.sourceEvent,{transform:C,snapGrid:M,snapToGrid:z,containerBounds:f}),c=en(k.sourceEvent,f)}).on("drag",k=>{let{autoPanOnNodeDrag:U,transform:w,snapGrid:C,snapToGrid:M,nodeDragThreshold:z,nodeLookup:R}=t(),H=Ql(k.sourceEvent,{transform:w,snapGrid:C,snapToGrid:M,containerBounds:f});if(x=k.sourceEvent,(k.sourceEvent.type==="touchmove"&&k.sourceEvent.touches.length>1||E&&!R.has(E))&&(h=!0),!h){if(!u&&U&&d&&(u=!0,T()),!d){let G=en(k.sourceEvent,f),q=G.x-c.x,X=G.y-c.y;Math.sqrt(q*q+X*X)>z&&D(k)}(r.x!==H.xSnapped||r.y!==H.ySnapped)&&l&&d&&(c=en(k.sourceEvent,f),_(H))}}).on("end",k=>{if(!d||h){h&&l.size>0&&t().updateNodePositions(l,!1);return}if(u=!1,d=!1,cancelAnimationFrame(i),l.size>0){let{nodeLookup:U,updateNodePositions:w,onNodeDragStop:C,onSelectionDragStop:M}=t();if(y&&(w(l,!1),y=!1),o||C||!E&&M){let[z,R]=Ih({nodeId:E,dragItems:l,nodeLookup:U,dragging:!1});o?.(k.sourceEvent,l,z,R),C?.(k.sourceEvent,z,R),E||M?.(k.sourceEvent,R)}}}).filter(k=>{let U=k.target;return!k.button&&(!p||!sE(U,`.${p}`,v))&&(!m||sE(U,m,v))});s.call(L)}function g(){s?.on(".drag",null)}return{update:S,destroy:g}}function iD(e,t,n){let a=[],o={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let r of t.values())Kl(o,ui(r))>0&&a.push(r);return a}var lD=250;function uD(e,t,n,a){let o=[],r=1/0,i=iD(e,n,t+lD);for(let l of i){let u=[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]];for(let c of u){if(a.nodeId===c.nodeId&&a.type===c.type&&a.id===c.id)continue;let{x:f,y:d}=Fa(l,c,c.position,!0),s=Math.sqrt(Math.pow(f-e.x,2)+Math.pow(d-e.y,2));s>t||(s<r?(o=[{...c,x:f,y:d}],r=s):s===r&&o.push({...c,x:f,y:d}))}}if(!o.length)return null;if(o.length>1){let l=a.type==="source"?"target":"source";return o.find(u=>u.type===l)??o[0]}return o[0]}function RE(e,t,n,a,o,r=!1){let i=a.get(e);if(!i)return null;let l=o==="strict"?i.internals.handleBounds?.[t]:[...i.internals.handleBounds?.source??[],...i.internals.handleBounds?.target??[]],u=(n?l?.find(c=>c.id===n):l?.[0])??null;return u&&r?{...u,...Fa(i,u,u.position,!0)}:u}function HE(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function cD(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}var BE=()=>!0;function sD(e,{connectionMode:t,connectionRadius:n,handleId:a,nodeId:o,edgeUpdaterType:r,isTarget:i,domNode:l,nodeLookup:u,lib:c,autoPanOnConnect:f,flowId:d,panBy:s,cancelConnection:h,onConnectStart:y,onConnect:x,onConnectEnd:S,isValidConnection:g=BE,onReconnectEnd:p,updateConnection:m,getTransform:v,getFromHandle:b,autoPanSpeed:E,dragThreshold:N=1,handleDomNode:_}){let T=sg(e.target),D=0,L,{x:k,y:U}=en(e),w=HE(r,_),C=l?.getBoundingClientRect(),M=!1;if(!C||!w)return;let z=RE(o,w,a,u,t);if(!z)return;let R=en(e,C),H=!1,G=null,q=!1,X=null;function K(){if(!f||!C)return;let[te,Q]=Qs(R,C,E);s({x:te,y:Q}),D=requestAnimationFrame(K)}let Z={...z,nodeId:o,type:w,position:z.position},J=u.get(o),j={inProgress:!0,isValid:null,from:Fa(J,Z,$.Left,!0),fromHandle:Z,fromPosition:Z.position,fromNode:J,to:R,toHandle:null,toPosition:eE[Z.position],toNode:null,pointer:R};function Y(){M=!0,m(j),y?.(e,{nodeId:o,handleId:a,handleType:w})}N===0&&Y();function I(te){if(!M){let{x:Pe,y:Hn}=en(te),hn=Pe-k,gn=Hn-U;if(!(hn*hn+gn*gn>N*N))return;Y()}if(!b()||!Z){ae(te);return}let Q=v();R=en(te,C),L=uD(si(R,Q,!1,[1,1]),n,u,Z),H||(K(),H=!0);let P=LE(te,{handle:L,connectionMode:t,fromNodeId:o,fromHandleId:a,fromType:i?"target":"source",isValidConnection:g,doc:T,lib:c,flowId:d,nodeLookup:u});X=P.handleDomNode,G=P.connection,q=cD(!!L,P.isValid);let ie=u.get(o),ce=ie?Fa(ie,Z,$.Left,!0):j.from,ge={...j,from:ce,isValid:q,to:P.toHandle&&q?$o({x:P.toHandle.x,y:P.toHandle.y},Q):R,toHandle:P.toHandle,toPosition:q&&P.toHandle?P.toHandle.position:eE[Z.position],toNode:P.toHandle?u.get(P.toHandle.nodeId):null,pointer:R};m(ge),j=ge}function ae(te){if(!("touches"in te&&te.touches.length>0)){if(M){(L||X)&&G&&q&&x?.(G);let{inProgress:Q,...P}=j,ie={...P,toPosition:j.toHandle?j.toPosition:null};S?.(te,ie),r&&p?.(te,ie)}h(),cancelAnimationFrame(D),H=!1,q=!1,G=null,X=null,T.removeEventListener("mousemove",I),T.removeEventListener("mouseup",ae),T.removeEventListener("touchmove",I),T.removeEventListener("touchend",ae)}}T.addEventListener("mousemove",I),T.addEventListener("mouseup",ae),T.addEventListener("touchmove",I),T.addEventListener("touchend",ae)}function LE(e,{handle:t,connectionMode:n,fromNodeId:a,fromHandleId:o,fromType:r,doc:i,lib:l,flowId:u,isValidConnection:c=BE,nodeLookup:f}){let d=r==="target",s=t?i.querySelector(`.${l}-flow__handle[data-id="${u}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:h,y}=en(e),x=i.elementFromPoint(h,y),S=x?.classList.contains(`${l}-flow__handle`)?x:s,g={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let p=HE(void 0,S),m=S.getAttribute("data-nodeid"),v=S.getAttribute("data-handleid"),b=S.classList.contains("connectable"),E=S.classList.contains("connectableend");if(!m||!p)return g;let N={source:d?m:a,sourceHandle:d?v:o,target:d?a:m,targetHandle:d?o:v};g.connection=N;let T=b&&E&&(n===Ka.Strict?d&&p==="source"||!d&&p==="target":m!==a||v!==o);g.isValid=T&&c(N),g.toHandle=RE(m,p,v,f,n,!0)}return g}var af={onPointerDown:sD,isValid:LE};function VE({domNode:e,panZoom:t,getTransform:n,getViewScale:a}){let o=Je(e);function r({translateExtent:l,width:u,height:c,zoomStep:f=1,pannable:d=!0,zoomable:s=!0,inversePan:h=!1}){let y=m=>{if(m.sourceEvent.type!=="wheel"||!t)return;let v=n(),b=m.sourceEvent.ctrlKey&&fi()?10:1,E=-m.sourceEvent.deltaY*(m.sourceEvent.deltaMode===1?.05:m.sourceEvent.deltaMode?1:.002)*f,N=v[2]*Math.pow(2,E*b);t.scaleTo(N)},x=[0,0],S=m=>{(m.sourceEvent.type==="mousedown"||m.sourceEvent.type==="touchstart")&&(x=[m.sourceEvent.clientX??m.sourceEvent.touches[0].clientX,m.sourceEvent.clientY??m.sourceEvent.touches[0].clientY])},g=m=>{let v=n();if(m.sourceEvent.type!=="mousemove"&&m.sourceEvent.type!=="touchmove"||!t)return;let b=[m.sourceEvent.clientX??m.sourceEvent.touches[0].clientX,m.sourceEvent.clientY??m.sourceEvent.touches[0].clientY],E=[b[0]-x[0],b[1]-x[1]];x=b;let N=a()*Math.max(v[2],Math.log(v[2]))*(h?-1:1),_={x:v[0]-E[0]*N,y:v[1]-E[1]*N},T=[[0,0],[u,c]];t.setViewportConstrained({x:_.x,y:_.y,zoom:v[2]},T,l)},p=Gs().on("start",S).on("zoom",d?g:null).on("zoom.wheel",s?y:null);o.call(p,{})}function i(){o.on("zoom",null)}return{update:r,destroy:i,pointer:gt}}var of=e=>({x:e.x,y:e.y,zoom:e.k}),Qh=({x:e,y:t,zoom:n})=>Go.translate(e,t).scale(n),ja=(e,t)=>e.target.closest(`.${t}`),UE=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),fD=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,jh=(e,t=0,n=fD,a=()=>{})=>{let o=typeof t=="number"&&t>0;return o||a(),o?e.transition().duration(t).ease(n).on("end",a):e},YE=e=>{let t=e.ctrlKey&&fi()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function dD({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:a,panOnScrollMode:o,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:l,onPanZoom:u,onPanZoomEnd:c}){return f=>{if(ja(f,t))return f.ctrlKey&&f.preventDefault(),!1;f.preventDefault(),f.stopImmediatePropagation();let d=n.property("__zoom").k||1;if(f.ctrlKey&&i){let S=gt(f),g=YE(f),p=d*Math.pow(2,g);a.scaleTo(n,p,S,f);return}let s=f.deltaMode===1?20:1,h=o===ca.Vertical?0:f.deltaX*s,y=o===ca.Horizontal?0:f.deltaY*s;!fi()&&f.shiftKey&&o!==ca.Vertical&&(h=f.deltaY*s,y=0),a.translateBy(n,-(h/d)*r,-(y/d)*r,{internal:!0});let x=of(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?u?.(f,x):(e.isPanScrolling=!0,l?.(f,x)),e.panScrollTimeout=setTimeout(()=>{c?.(f,x),e.isPanScrolling=!1},150)}}function mD({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(a,o){let r=a.type==="wheel",i=!t&&r&&!a.ctrlKey,l=ja(a,e);if(a.ctrlKey&&r&&l&&a.preventDefault(),i||l)return null;a.preventDefault(),n.call(this,a,o)}}function hD({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return a=>{if(a.sourceEvent?.internal)return;let o=of(a.transform);e.mouseButton=a.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=o,a.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(a.sourceEvent,o)}}function gD({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:a,onPanZoom:o}){return r=>{e.usedRightMouseButton=!!(n&&UE(t,e.mouseButton??0)),r.sourceEvent?.sync||a([r.transform.x,r.transform.y,r.transform.k]),o&&!r.sourceEvent?.internal&&o?.(r.sourceEvent,of(r.transform))}}function pD({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:a,onPanZoomEnd:o,onPaneContextMenu:r}){return i=>{if(!i.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,r&&UE(t,e.mouseButton??0)&&!e.usedRightMouseButton&&i.sourceEvent&&r(i.sourceEvent),e.usedRightMouseButton=!1,a(!1),o)){let l=of(i.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o?.(i.sourceEvent,l)},n?150:0)}}}function yD({panActivationKeyPressed:e,zoomActivationKeyPressed:t,zoomOnScroll:n,zoomOnPinch:a,panOnDrag:o,panOnScroll:r,zoomOnDoubleClick:i,userSelectionActive:l,noWheelClassName:u,noPanClassName:c,lib:f,connectionInProgress:d}){return s=>{let h=t||n,y=a&&s.ctrlKey,x=s.type==="wheel";if(s.button===1&&s.type==="mousedown"&&(ja(s,`${f}-flow__node`)||ja(s,`${f}-flow__edge`)||ja(s,`${f}-flow__selection`)||ja(s,`${f}-flow__nodesselection`)))return!0;if(!o&&!h&&!r&&!i&&!a||l||d&&!x||ja(s,u)&&x||ja(s,c)&&(!x||r&&x&&!t)||!a&&s.ctrlKey&&x)return!1;if(!a&&s.type==="touchstart"&&s.touches?.length>1)return s.preventDefault(),!1;if(!h&&!r&&!y&&x||!o&&(s.type==="mousedown"||s.type==="touchstart")||Array.isArray(o)&&!o.includes(s.button)&&s.type==="mousedown")return!1;let S=Array.isArray(o)&&o.includes(s.button)||!s.button||s.button<=1;return(!s.ctrlKey||x||e)&&S}}function kE({domNode:e,minZoom:t,maxZoom:n,translateExtent:a,viewport:o,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:l,onDraggingChange:u}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),d=[[0,0],[f.width,f.height]];(typeof ResizeObserver<"u"?new ResizeObserver(U=>{let w=U[0];w&&(d=[[0,0],[w.contentRect.width,w.contentRect.height]])}):null)?.observe(e);let h=Gs().extent(()=>d).scaleExtent([t,n]).translateExtent(a),y=Je(e).call(h);v({x:o.x,y:o.y,zoom:ri(o.zoom,t,n)},[[0,0],[f.width,f.height]],a);let x=y.on("wheel.zoom"),S=y.on("dblclick.zoom");h.wheelDelta(YE);async function g(U,w){return y?new Promise(C=>{h?.interpolate(w?.interpolate==="linear"?la:Yo).transform(jh(y,w?.duration,w?.ease,()=>C(!0)),U)}):!1}function p({noWheelClassName:U,noPanClassName:w,onPaneContextMenu:C,userSelectionActive:M,panOnScroll:z,panOnDrag:R,panOnScrollMode:H,panOnScrollSpeed:G,preventScrolling:q,zoomOnPinch:X,zoomOnScroll:K,zoomOnDoubleClick:Z,panActivationKeyPressed:J=!1,zoomActivationKeyPressed:re,lib:j,onTransformChange:Y,connectionInProgress:I,paneClickDistance:ae,selectionOnDrag:te}){M&&!c.isZoomingOrPanning&&m();let Q=z&&!re&&!M;h.clickDistance(te?1/0:!Wt(ae)||ae<0?0:ae);let P=Q?dD({zoomPanValues:c,noWheelClassName:U,d3Selection:y,d3Zoom:h,panOnScrollMode:H,panOnScrollSpeed:G,zoomOnPinch:X,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:l}):mD({noWheelClassName:U,preventScrolling:q,d3ZoomHandler:x});y.on("wheel.zoom",P,{passive:!1});let ie=hD({zoomPanValues:c,onDraggingChange:u,onPanZoomStart:i});h.on("start",ie);let ce=gD({zoomPanValues:c,panOnDrag:R,onPaneContextMenu:!!C,onPanZoom:r,onTransformChange:Y});h.on("zoom",ce);let ge=pD({zoomPanValues:c,panOnDrag:R,panOnScroll:z,onPaneContextMenu:C,onPanZoomEnd:l,onDraggingChange:u});h.on("end",ge);let Pe=yD({panActivationKeyPressed:J,zoomActivationKeyPressed:re,panOnDrag:R,zoomOnScroll:K,panOnScroll:z,zoomOnDoubleClick:Z,zoomOnPinch:X,userSelectionActive:M,noPanClassName:w,noWheelClassName:U,lib:j,connectionInProgress:I});h.filter(Pe),Z?y.on("dblclick.zoom",S):y.on("dblclick.zoom",null)}function m(){h.on("zoom",null)}async function v(U,w,C){let M=Qh(U),z=h?.constrain()(M,w,C);return z&&await g(z),z}async function b(U,w){let C=Qh(U);return await g(C,w),C}function E(U){if(y){let w=Qh(U),C=y.property("__zoom");(C.k!==U.zoom||C.x!==U.x||C.y!==U.y)&&h?.transform(y,w,null,{sync:!0})}}function N(){let U=y?Il(y.node()):{x:0,y:0,k:1};return{x:U.x,y:U.y,zoom:U.k}}async function _(U,w){return y?new Promise(C=>{h?.interpolate(w?.interpolate==="linear"?la:Yo).scaleTo(jh(y,w?.duration,w?.ease,()=>C(!0)),U)}):!1}async function T(U,w){return y?new Promise(C=>{h?.interpolate(w?.interpolate==="linear"?la:Yo).scaleBy(jh(y,w?.duration,w?.ease,()=>C(!0)),U)}):!1}function D(U){h?.scaleExtent(U)}function L(U){h?.translateExtent(U)}function k(U){let w=!Wt(U)||U<0?0:U;h?.clickDistance(w)}return{update:p,destroy:m,setViewport:b,setViewportConstrained:v,getViewport:N,scaleTo:_,scaleBy:T,setScaleExtent:D,setTranslateExtent:L,syncViewport:E,setClickDistance:k}}var Pa;(function(e){e.Line="line",e.Handle="handle"})(Pa||(Pa={}));function vD({width:e,prevWidth:t,height:n,prevHeight:a,affectsX:o,affectsY:r}){let i=e-t,l=n-a,u=[i>0?1:i<0?-1:0,l>0?1:l<0?-1:0];return i&&o&&(u[0]=u[0]*-1),l&&r&&(u[1]=u[1]*-1),u}function fE(e){let t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),a=e.includes("left"),o=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:a,affectsY:o}}function Ia(e,t){return Math.max(0,t-e)}function Qa(e,t){return Math.max(0,e-t)}function Zs(e,t,n){return Math.max(0,t-e,e-n)}function dE(e,t){return e?!t:t}function bD(e,t,n,a,o,r,i,l){let{affectsX:u,affectsY:c}=t,{isHorizontal:f,isVertical:d}=t,s=f&&d,{xSnapped:h,ySnapped:y}=n,{minWidth:x,maxWidth:S,minHeight:g,maxHeight:p}=a,{x:m,y:v,width:b,height:E,aspectRatio:N}=e,_=Math.floor(f?h-e.pointerX:0),T=Math.floor(d?y-e.pointerY:0),D=b+(u?-_:_),L=E+(c?-T:T),k=-r[0]*b,U=-r[1]*E,w=Zs(D,x,S),C=Zs(L,g,p);if(i){let R=0,H=0;u&&_<0?R=Ia(m+_+k,i[0][0]):!u&&_>0&&(R=Qa(m+D+k,i[1][0])),c&&T<0?H=Ia(v+T+U,i[0][1]):!c&&T>0&&(H=Qa(v+L+U,i[1][1])),w=Math.max(w,R),C=Math.max(C,H)}if(l){let R=0,H=0;u&&_>0?R=Qa(m+_,l[0][0]):!u&&_<0&&(R=Ia(m+D,l[1][0])),c&&T>0?H=Qa(v+T,l[0][1]):!c&&T<0&&(H=Ia(v+L,l[1][1])),w=Math.max(w,R),C=Math.max(C,H)}if(o){if(f){let R=Zs(D/N,g,p)*N;if(w=Math.max(w,R),i){let H=0;!u&&!c||u&&!c&&s?H=Qa(v+U+D/N,i[1][1])*N:H=Ia(v+U+(u?_:-_)/N,i[0][1])*N,w=Math.max(w,H)}if(l){let H=0;!u&&!c||u&&!c&&s?H=Ia(v+D/N,l[1][1])*N:H=Qa(v+(u?_:-_)/N,l[0][1])*N,w=Math.max(w,H)}}if(d){let R=Zs(L*N,x,S)/N;if(C=Math.max(C,R),i){let H=0;!u&&!c||c&&!u&&s?H=Qa(m+L*N+k,i[1][0])/N:H=Ia(m+(c?T:-T)*N+k,i[0][0])/N,C=Math.max(C,H)}if(l){let H=0;!u&&!c||c&&!u&&s?H=Ia(m+L*N,l[1][0])/N:H=Qa(m+(c?T:-T)*N,l[0][0])/N,C=Math.max(C,H)}}}T=T+(T<0?C:-C),_=_+(_<0?w:-w),o&&(s?D>L*N?T=(dE(u,c)?-_:_)/N:_=(dE(u,c)?-T:T)*N:f?(T=_/N,c=u):(_=T*N,u=c));let M=u?m+_:m,z=c?v+T:v;return{width:b+(u?-_:_),height:E+(c?-T:T),x:r[0]*_*(u?-1:1)+M,y:r[1]*T*(c?-1:1)+z}}var qE={width:0,height:0,x:0,y:0},xD={...qE,pointerX:0,pointerY:0,aspectRatio:1};function SD(e,t,n){let a=t.position.x+e.position.x,o=t.position.y+e.position.y,r=e.measured.width??0,i=e.measured.height??0,l=n[0]*r,u=n[1]*i;return[[a-l,o-u],[a+r-l,o+i-u]]}function GE({domNode:e,nodeId:t,getStoreItems:n,onChange:a,onEnd:o}){let r=Je(e),i={controlDirection:fE("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function l({controlPosition:c,boundaries:f,keepAspectRatio:d,resizeDirection:s,onResizeStart:h,onResize:y,onResizeEnd:x,shouldResize:S}){let g={...qE},p={...xD};i={boundaries:f,resizeDirection:s,keepAspectRatio:d,controlDirection:fE(c)};let m,v=null,b=[],E,N,_,T=Ss().on("start",D=>{let{nodeLookup:L,transform:k,snapGrid:U,snapToGrid:w,nodeOrigin:C,paneDomNode:M}=n();if(m=L.get(t),!m)return;v=M?.getBoundingClientRect()??null;let{xSnapped:z,ySnapped:R}=Ql(D.sourceEvent,{transform:k,snapGrid:U,snapToGrid:w,containerBounds:v});g={width:m.measured.width??0,height:m.measured.height??0,x:m.position.x??0,y:m.position.y??0},p={...g,pointerX:z,pointerY:R,aspectRatio:g.width/g.height},E=void 0,N=Io(m.extent)?m.extent:void 0,m.parentId&&(m.extent==="parent"||m.expandParent)&&(E=L.get(m.parentId)),E&&m.extent==="parent"&&(N=[[0,0],[E.measured.width,E.measured.height]]),b=[],_=void 0;for(let[H,G]of L)if(G.parentId===t&&(b.push({id:H,position:{...G.position},extent:G.extent}),G.extent==="parent"||G.expandParent)){let q=SD(G,m,G.origin??C);_?_=[[Math.min(q[0][0],_[0][0]),Math.min(q[0][1],_[0][1])],[Math.max(q[1][0],_[1][0]),Math.max(q[1][1],_[1][1])]]:_=q}h?.(D,{...g})}).on("drag",D=>{let{transform:L,snapGrid:k,snapToGrid:U,nodeOrigin:w}=n(),C=Ql(D.sourceEvent,{transform:L,snapGrid:k,snapToGrid:U,containerBounds:v}),M=[];if(!m)return;let{x:z,y:R,width:H,height:G}=g,q={},X=m.origin??w,{width:K,height:Z,x:J,y:re}=bD(p,i.controlDirection,C,i.boundaries,i.keepAspectRatio,X,N,_),j=K!==H,Y=Z!==G,I=J!==z&&j,ae=re!==R&&Y;if(!I&&!ae&&!j&&!Y)return;let te={prevValues:{...g},startX:p.x,startY:p.y,childNodes:b.map(ce=>({...ce,position:{...ce.position}}))};if((I||ae||X[0]===1||X[1]===1)&&(q.x=I?J:g.x,q.y=ae?re:g.y,g.x=q.x,g.y=q.y,b.length>0)){let ce=J-z,ge=re-R;for(let Pe of b)Pe.position={x:Pe.position.x-ce+X[0]*(K-H),y:Pe.position.y-ge+X[1]*(Z-G)},M.push(Pe)}if((j||Y)&&(q.width=j&&(!i.resizeDirection||i.resizeDirection==="horizontal")?K:g.width,q.height=Y&&(!i.resizeDirection||i.resizeDirection==="vertical")?Z:g.height,g.width=q.width,g.height=q.height),E&&m.expandParent){let ce=X[0]*(q.width??0);q.x&&q.x<ce&&(g.x=ce,p.x=p.x-(q.x-ce));let ge=X[1]*(q.height??0);q.y&&q.y<ge&&(g.y=ge,p.y=p.y-(q.y-ge))}let Q=vD({width:g.width,prevWidth:H,height:g.height,prevHeight:G,affectsX:i.controlDirection.affectsX,affectsY:i.controlDirection.affectsY}),P={...g,direction:Q};if(S?.(D,P)===!1){g=te.prevValues,p.x=te.startX,p.y=te.startY,b.forEach((ce,ge)=>{ce.position=te.childNodes[ge].position});return}y?.(D,P),a(q,M)}).on("end",D=>{x?.(D,{...g}),o?.({...g})});r.call(T)}function u(){r.on(".drag",null)}return{update:l,destroy:u}}var e2=an(da(),1),t2=an(JE(),1);var FE=e=>{let t,n=new Set,a=(f,d)=>{let s=typeof f=="function"?f(t):f;if(!Object.is(s,t)){let h=t;t=d??(typeof s!="object"||s===null)?s:Object.assign({},t,s),n.forEach(y=>y(t,h))}},o=()=>t,u={setState:a,getState:o,getInitialState:()=>c,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(a,o,u);return u},PE=e=>e?FE(e):FE;var{useDebugValue:YD}=e2.default,{useSyncExternalStoreWithSelector:kD}=t2.default,qD=e=>e;function xg(e,t=qD,n){let a=kD(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return YD(a),a}var WE=(e,t)=>{let n=PE(e),a=(o,r=t)=>xg(n,o,r);return Object.assign(a,n),a},n2=(e,t)=>e?WE(e,t):WE;function Ae(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(let[a,o]of e)if(!Object.is(o,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let a of n)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}var GD=an(Xf()),cf=(0,O.createContext)(null),XD=cf.Provider,z2=kt.error001("react");function fe(e,t){let n=(0,O.useContext)(cf);if(n===null)throw new Error(z2);return xg(n,e,t)}function Ce(){let e=(0,O.useContext)(cf);if(e===null)throw new Error(z2);return(0,O.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}var a2={display:"none"},ZD={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},A2="react-flow__node-desc",O2="react-flow__edge-desc",$D="react-flow__aria-live",ID=e=>e.ariaLiveMessage,QD=e=>e.ariaLabelConfig;function jD({rfId:e}){let t=fe(ID);return(0,A.jsx)("div",{id:`${$D}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:ZD,children:t})}function KD({rfId:e,disableKeyboardA11y:t}){let n=fe(QD);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{id:`${A2}-${e}`,style:a2,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),(0,A.jsx)("div",{id:`${O2}-${e}`,style:a2,children:n["edge.a11yDescription.default"]}),!t&&(0,A.jsx)(jD,{rfId:e})]})}var sf=(0,O.forwardRef)(({position:e="top-left",children:t,className:n,style:a,...o},r)=>{let i=`${e}`.split("-");return(0,A.jsx)("div",{className:Be(["react-flow__panel",n,...i]),style:a,ref:r,...o,children:t})});sf.displayName="Panel";var o2="https://reactflow.dev?utm_source=attribution";function JD({proOptions:e,position:t="bottom-right"}){return(0,O.useEffect)(()=>{},[]),e?.hideAttribution?null:(0,A.jsx)(sf,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${o2}`,children:(0,A.jsx)("a",{href:o2,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var FD=e=>{let t=[],n=[];for(let[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(let[,a]of e.edgeLookup)a.selected&&n.push(a);return{selectedNodes:t,selectedEdges:n}},lf=e=>e.id;function PD(e,t){return Ae(e.selectedNodes.map(lf),t.selectedNodes.map(lf))&&Ae(e.selectedEdges.map(lf),t.selectedEdges.map(lf))}function WD({onSelectionChange:e}){let t=Ce(),{selectedNodes:n,selectedEdges:a}=fe(FD,PD);return(0,O.useEffect)(()=>{let o={nodes:n,edges:a};e?.(o),t.getState().onSelectionChangeHandlers.forEach(r=>r(o))},[n,a,e]),null}var e6=e=>!!e.onSelectionChangeHandlers;function t6({onSelectionChange:e}){let t=fe(e6);return e||t?(0,A.jsx)(WD,{onSelectionChange:e}):null}var D2=[0,0],n6={x:0,y:0,zoom:1},a6=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],r2=[...a6,"rfId"],o6=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}),i2={translateExtent:ii,nodeOrigin:D2,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function r6(e){let{setNodes:t,setEdges:n,setMinZoom:a,setMaxZoom:o,setTranslateExtent:r,setNodeExtent:i,reset:l,setDefaultNodesAndEdges:u}=fe(o6,Ae),c=Ce();(0,O.useEffect)(()=>(u(e.defaultNodes,e.defaultEdges),()=>{f.current=i2,l()}),[]);let f=(0,O.useRef)(i2);return(0,O.useEffect)(()=>{for(let d of r2){let s=e[d],h=f.current[d];s!==h&&(typeof e[d]>"u"||(d==="nodes"?t(s):d==="edges"?n(s):d==="minZoom"?a(s):d==="maxZoom"?o(s):d==="translateExtent"?r(s):d==="nodeExtent"?i(s):d==="ariaLabelConfig"?c.setState({ariaLabelConfig:xE(s)}):d==="fitView"?c.setState({fitViewQueued:s}):d==="fitViewOptions"?c.setState({fitViewOptions:s}):c.setState({[d]:s})))}f.current=e},r2.map(d=>e[d])),null}function l2(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function i6(e){let[t,n]=(0,O.useState)(e==="system"?null:e);return(0,O.useEffect)(()=>{if(e!=="system"){n(e);return}let a=l2(),o=()=>n(a?.matches?"dark":"light");return o(),a?.addEventListener("change",o),()=>{a?.removeEventListener("change",o)}},[e]),t!==null?t:l2()?.matches?"dark":"light"}var u2=typeof document<"u"?document:null;function Pl(e=null,t={target:u2,actInsideInputWithModifier:!0}){let[n,a]=(0,O.useState)(!1),o=(0,O.useRef)(!1),r=(0,O.useRef)(new Set([])),[i,l]=(0,O.useMemo)(()=>{if(e!==null){let c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace(/\+/g,`
|
|
549
549
|
`).replace(`
|
|
550
550
|
|
|
551
551
|
`,`
|
|
552
552
|
+`).split(`
|
|
553
|
-
`)),f=c.reduce((d,s)=>d.concat(...s),[]);return[c,f]}return[[],[]]},[e]);return(0,O.useEffect)(()=>{let u=t?.target??i2,c=t?.actInsideInputWithModifier??!0;if(e!==null){let f=h=>{if(o.current=h.ctrlKey||h.metaKey||h.shiftKey||h.altKey,(!o.current||o.current&&!c)&&sg(h))return!1;let x=u2(h.code,l);if(r.current.add(h[x]),l2(i,r.current,!1)){let S=h.composedPath?.()?.[0]||h.target,g=S?.nodeName==="BUTTON"||S?.nodeName==="A";t.preventDefault!==!1&&(o.current||!g)&&h.preventDefault(),a(!0)}},d=h=>{let y=u2(h.code,l);l2(i,r.current,!0)?(a(!1),r.current.clear()):r.current.delete(h[y]),h.key==="Meta"&&r.current.clear(),o.current=!1},s=()=>{r.current.clear(),a(!1)};return u?.addEventListener("keydown",f),u?.addEventListener("keyup",d),window.addEventListener("blur",s),window.addEventListener("contextmenu",s),()=>{u?.removeEventListener("keydown",f),u?.removeEventListener("keyup",d),window.removeEventListener("blur",s),window.removeEventListener("contextmenu",s)}}},[e,a]),n}function l2(e,t,n){return e.filter(a=>n||a.length===t.size).some(a=>a.every(o=>t.has(o)))}function u2(e,t){return t.includes(e)?"code":"key"}var n6=()=>{let e=Ce();return(0,O.useMemo)(()=>({zoomIn:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):!1},zoomOut:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):!1},zoomTo:async(t,n)=>{let{panZoom:a}=e.getState();return a?a.scaleTo(t,n):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{let{transform:[a,o,r],panZoom:i}=e.getState();return i?(await i.setViewport({x:t.x??a,y:t.y??o,zoom:t.zoom??r},n),!0):!1},getViewport:()=>{let[t,n,a]=e.getState().transform;return{x:t,y:n,zoom:a}},setCenter:async(t,n,a)=>e.getState().setCenter(t,n,a),fitBounds:async(t,n)=>{let{width:a,height:o,minZoom:r,maxZoom:i,panZoom:l}=e.getState(),u=Jl(t,a,o,r,i,n?.padding??.1);return l?(await l.setViewport(u,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),!0):!1},screenToFlowPosition:(t,n={})=>{let{transform:a,snapGrid:o,snapToGrid:r,domNode:i}=e.getState();if(!i)return t;let{x:l,y:u}=i.getBoundingClientRect(),c={x:t.x-l,y:t.y-u},f=n.snapGrid??o,d=n.snapToGrid??r;return si(c,a,d,f)},flowToScreenPosition:t=>{let{transform:n,domNode:a}=e.getState();if(!a)return t;let{x:o,y:r}=a.getBoundingClientRect(),i=$o(t,n);return{x:i.x+o,y:i.y+r}}}),[])};function O2(e,t){let n=[],a=new Map,o=[];for(let r of e)if(r.type==="add"){o.push(r);continue}else if(r.type==="remove"||r.type==="replace")a.set(r.id,[r]);else{let i=a.get(r.id);i?i.push(r):a.set(r.id,[r])}for(let r of t){let i=a.get(r.id);if(!i){n.push(r);continue}if(i[0].type==="remove")continue;if(i[0].type==="replace"){n.push({...i[0].item});continue}let l={...r};for(let u of i)a6(u,l);n.push(l)}return o.length&&o.forEach(r=>{r.index!==void 0?n.splice(r.index,0,{...r.item}):n.push({...r.item})}),n}function a6(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={...e.dimensions},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 Eg(e,t){return O2(e,t)}function o6(e,t){return O2(e,t)}function Qo(e,t){return{id:e,type:"select",selected:t}}function mi(e,t=new Set,n=!1){let a=[];for(let[o,r]of e){let i=t.has(o);!(r.selected===void 0&&!i)&&r.selected!==i&&(n&&(r.selected=i),a.push(Qo(r.id,i)))}return a}function c2({items:e=[],lookup:t}){let n=[],a=new Map(e.map(o=>[o.id,o]));for(let[o,r]of e.entries()){let i=t.get(r.id),l=i?.internals?.userNode??i;l!==void 0&&l!==r&&n.push({id:r.id,item:r,type:"replace"}),l===void 0&&n.push({item:r,type:"add",index:o})}for(let[o]of t)a.get(o)===void 0&&n.push({id:o,type:"remove"});return n}function s2(e){return{id:e.id,type:"remove"}}var r6=og("React Flow","https://reactflow.dev/");function i6(e,t,n={}){return SE(e,t,{...n,onError:n.onError??r6})}var f2=e=>fE(e),l6=e=>Ph(e);function D2(e){return(0,O.forwardRef)(e)}var R2=typeof window<"u"?O.useLayoutEffect:O.useEffect;function d2(e){let[t,n]=(0,O.useState)(BigInt(0)),[a]=(0,O.useState)(()=>u6(()=>n(o=>o+BigInt(1))));return R2(()=>{let o=a.get();o.length&&(e(o),a.reset())},[t]),a}function u6(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}var H2=(0,O.createContext)(null);function c6({children:e}){let t=Ce(),n=(0,O.useCallback)(l=>{let{nodes:u=[],setNodes:c,hasDefaultNodes:f,onNodesChange:d,nodeLookup:s,fitViewQueued:h,onNodesChangeMiddlewareMap:y}=t.getState(),x=u;for(let g of l)x=typeof g=="function"?g(x):g;let S=c2({items:x,lookup:s});for(let g of y.values())S=g(S);f&&c(x),S.length>0?d?.(S):h&&window.requestAnimationFrame(()=>{let{fitViewQueued:g,nodes:p,setNodes:m}=t.getState();g&&m(p)})},[]),a=d2(n),o=(0,O.useCallback)(l=>{let{edges:u=[],setEdges:c,hasDefaultEdges:f,onEdgesChange:d,edgeLookup:s}=t.getState(),h=u;for(let y of l)h=typeof y=="function"?y(h):y;f?c(h):d&&d(c2({items:h,lookup:s}))},[]),r=d2(o),i=(0,O.useMemo)(()=>({nodeQueue:a,edgeQueue:r}),[]);return(0,A.jsx)(H2.Provider,{value:i,children:e})}function s6(){let e=(0,O.useContext)(H2);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}var f6=e=>!!e.panZoom;function Wl(){let e=n6(),t=Ce(),n=s6(),a=fe(f6),o=(0,O.useMemo)(()=>{let r=d=>t.getState().nodeLookup.get(d),i=d=>{n.nodeQueue.push(d)},l=d=>{n.edgeQueue.push(d)},u=d=>{let{nodeLookup:s,nodeOrigin:h}=t.getState(),y=f2(d)?d:s.get(d.id),x=y.parentId?ig(y.position,y.measured,y.parentId,s,h):y.position,S={...y,position:x,width:y.measured?.width??y.width,height:y.measured?.height??y.height};return ui(S)},c=(d,s,h={replace:!1})=>{i(y=>y.map(x=>{if(x.id===d){let S=typeof s=="function"?s(x):s;return h.replace&&f2(S)?S:{...x,...S}}return x}))},f=(d,s,h={replace:!1})=>{l(y=>y.map(x=>{if(x.id===d){let S=typeof s=="function"?s(x):s;return h.replace&&l6(S)?S:{...x,...S}}return x}))};return{getNodes:()=>t.getState().nodes.map(d=>({...d})),getNode:d=>r(d)?.internals.userNode,getInternalNode:r,getEdges:()=>{let{edges:d=[]}=t.getState();return d.map(s=>({...s}))},getEdge:d=>t.getState().edgeLookup.get(d),setNodes:i,setEdges:l,addNodes:d=>{let s=Array.isArray(d)?d:[d];n.nodeQueue.push(h=>[...h,...s])},addEdges:d=>{let s=Array.isArray(d)?d:[d];n.edgeQueue.push(h=>[...h,...s])},toObject:()=>{let{nodes:d=[],edges:s=[],transform:h}=t.getState(),[y,x,S]=h;return{nodes:d.map(g=>({...g})),edges:s.map(g=>({...g})),viewport:{x:y,y:x,zoom:S}}},deleteElements:async({nodes:d=[],edges:s=[]})=>{let{nodes:h,edges:y,onNodesDelete:x,onEdgesDelete:S,triggerNodeChanges:g,triggerEdgeChanges:p,onDelete:m,onBeforeDelete:v}=t.getState(),{nodes:b,edges:E}=await hE({nodesToRemove:d,edgesToRemove:s,nodes:h,edges:y,onBeforeDelete:v}),N=E.length>0,_=b.length>0;if(N){let T=E.map(s2);S?.(E),p(T)}if(_){let T=b.map(s2);x?.(b),g(T)}return(_||N)&&m?.({nodes:b,edges:E}),{deletedNodes:b,deletedEdges:E}},getIntersectingNodes:(d,s=!0,h)=>{let y=ag(d),x=y?d:u(d),S=h!==void 0;return x?(h||t.getState().nodes).filter(g=>{let p=t.getState().nodeLookup.get(g.id);if(p&&!y&&(g.id===d.id||!p.internals.positionAbsolute))return!1;let m=ui(S?g:p),v=Kl(m,x);return s&&v>0||v>=m.width*m.height||v>=x.width*x.height}):[]},isNodeIntersecting:(d,s,h=!0)=>{let x=ag(d)?d:u(d);if(!x)return!1;let S=Kl(x,s);return h&&S>0||S>=s.width*s.height||S>=x.width*x.height},updateNode:c,updateNodeData:(d,s,h={replace:!1})=>{c(d,y=>{let x=typeof s=="function"?s(y):s;return h.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},h)},updateEdge:f,updateEdgeData:(d,s,h={replace:!1})=>{f(d,y=>{let x=typeof s=="function"?s(y):s;return h.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},h)},getNodesBounds:d=>{let{nodeLookup:s,nodeOrigin:h}=t.getState();return eg(d,{nodeLookup:s,nodeOrigin:h})},getHandleConnections:({type:d,id:s,nodeId:h})=>Array.from(t.getState().connectionLookup.get(`${h}-${d}${s?`-${s}`:""}`)?.values()??[]),getNodeConnections:({type:d,handleId:s,nodeId:h})=>Array.from(t.getState().connectionLookup.get(`${h}${d?s?`-${d}-${s}`:`-${d}`:""}`)?.values()??[]),fitView:async d=>{let s=t.getState().fitViewResolver??yE();return t.setState({fitViewQueued:!0,fitViewOptions:d,fitViewResolver:s}),n.nodeQueue.push(h=>[...h]),s.promise}}},[]);return(0,O.useMemo)(()=>({...o,...e,viewportInitialized:a}),[a])}var m2=e=>e.selected,d6=typeof window<"u"?window:void 0;function m6({deleteKeyCode:e,multiSelectionKeyCode:t}){let n=Ce(),{deleteElements:a}=Wl(),o=Pl(e,{actInsideInputWithModifier:!1}),r=Pl(t,{target:d6});(0,O.useEffect)(()=>{if(o){let{edges:i,nodes:l}=n.getState();a({nodes:l.filter(m2),edges:i.filter(m2)}),n.setState({nodesSelectionActive:!1})}},[o]),(0,O.useEffect)(()=>{n.setState({multiSelectionActive:r})},[r])}function h6(e){let t=Ce();(0,O.useEffect)(()=>{let n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;let a=Ks(e.current);(a.height===0||a.width===0)&&t.getState().onError?.("004",kt.error004()),t.setState({width:a.width||500,height:a.height||500})};if(e.current){n(),window.addEventListener("resize",n);let a=new ResizeObserver(()=>n());return a.observe(e.current),()=>{window.removeEventListener("resize",n),a&&e.current&&a.unobserve(e.current)}}},[])}var sf={position:"absolute",width:"100%",height:"100%",top:0,left:0},g6=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function p6({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:a=!1,panActivationKeyPressed:o,panOnScrollSpeed:r=.5,panOnScrollMode:i=ca.Free,zoomOnDoubleClick:l=!0,panOnDrag:u=!0,defaultViewport:c,translateExtent:f,minZoom:d,maxZoom:s,zoomActivationKeyCode:h,preventScrolling:y=!0,children:x,noWheelClassName:S,noPanClassName:g,onViewportChange:p,isControlledViewport:m,paneClickDistance:v,selectionOnDrag:b}){let E=Ce(),N=(0,O.useRef)(null),{userSelectionActive:_,lib:T,connectionInProgress:D}=fe(g6,Ae),L=Pl(h),k=(0,O.useRef)();h6(N);let V=(0,O.useCallback)(w=>{p?.({x:w[0],y:w[1],zoom:w[2]}),m||E.setState({transform:w})},[p,m]);return(0,O.useEffect)(()=>{if(N.current){k.current=VE({domNode:N.current,minZoom:d,maxZoom:s,translateExtent:f,viewport:c,onDraggingChange:z=>E.setState(R=>R.paneDragging===z?R:{paneDragging:z}),onPanZoomStart:(z,R)=>{let{onViewportChangeStart:H,onMoveStart:G}=E.getState();G?.(z,R),H?.(R)},onPanZoom:(z,R)=>{let{onViewportChange:H,onMove:G}=E.getState();G?.(z,R),H?.(R)},onPanZoomEnd:(z,R)=>{let{onViewportChangeEnd:H,onMoveEnd:G}=E.getState();G?.(z,R),H?.(R)}});let{x:w,y:C,zoom:M}=k.current.getViewport();return E.setState({panZoom:k.current,transform:[w,C,M],domNode:N.current.closest(".react-flow")}),()=>{k.current?.destroy()}}},[]),(0,O.useEffect)(()=>{k.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:a,panActivationKeyPressed:o,panOnScrollSpeed:r,panOnScrollMode:i,zoomOnDoubleClick:l,panOnDrag:u,zoomActivationKeyPressed:L,preventScrolling:y,noPanClassName:g,userSelectionActive:_,noWheelClassName:S,lib:T,onTransformChange:V,connectionInProgress:D,selectionOnDrag:b,paneClickDistance:v})},[e,t,n,a,o,r,i,l,u,L,y,g,_,S,T,V,D,b,v]),(0,A.jsx)("div",{className:"react-flow__renderer",ref:N,style:sf,children:x})}var y6=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function v6(){let{userSelectionActive:e,userSelectionRect:t}=fe(y6,Ae);return e&&t?(0,A.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}var xg=(e,t)=>n=>{n.target===t.current&&e?.(n)},b6=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function x6({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Xo.Full,panOnDrag:a,autoPanOnSelection:o,paneClickDistance:r,selectionOnDrag:i,onSelectionStart:l,onSelectionEnd:u,onPaneClick:c,onPaneContextMenu:f,onPaneScroll:d,onPaneMouseEnter:s,onPaneMouseMove:h,onPaneMouseLeave:y,children:x}){let S=(0,O.useRef)(0),g=Ce(),{userSelectionActive:p,elementsSelectable:m,dragging:v,panBy:b,autoPanSpeed:E}=fe(b6,Ae),N=m&&(e||p),_=(0,O.useRef)(null),T=(0,O.useRef)(),D=(0,O.useRef)(new Set),L=(0,O.useRef)(new Set),k=(0,O.useRef)(!1),V=(0,O.useRef)(!1),w=(0,O.useRef)({x:0,y:0}),C=(0,O.useRef)(!1),M=Y=>{if(V.current||k.current||g.getState().connection.inProgress){V.current=!1,k.current=!1;return}c?.(Y),g.getState().resetSelectedElements(),g.setState({nodesSelectionActive:!1})},z=Y=>{if(Array.isArray(a)&&a?.includes(2)){Y.preventDefault();return}f?.(Y)},R=d?Y=>d(Y):void 0,H=Y=>{V.current&&(Y.stopPropagation(),V.current=!1)},G=Y=>{if(Y.pointerType==="touch"&&a!==!1&&!t)return;let{domNode:I,transform:ae}=g.getState();if(T.current=I?.getBoundingClientRect(),!T.current)return;let te=Y.target===_.current;if(!te&&!!Y.target.closest(".nokey")||!e||!(i&&te||t)||Y.button!==0||!Y.isPrimary)return;Y.target?.setPointerCapture?.(Y.pointerId),V.current=!1;let{x:ie,y:ce}=en(Y.nativeEvent,T.current),ge=si({x:ie,y:ce},ae);g.setState({userSelectionRect:{width:0,height:0,startX:ge.x,startY:ge.y,x:ie,y:ce}}),te||(Y.stopPropagation(),Y.preventDefault())};function q(Y,I){let{userSelectionRect:ae}=g.getState();if(!ae)return;let{transform:te,nodeLookup:Q,edgeLookup:P,connectionLookup:ie,triggerNodeChanges:ce,triggerEdgeChanges:ge,defaultEdgeOptions:Pe}=g.getState(),Hn={x:ae.startX,y:ae.startY},{x:hn,y:gn}=$o(Hn,te),Bn={startX:Hn.x,startY:Hn.y,x:Y<hn?Y:hn,y:I<gn?I:gn,width:Math.abs(Y-hn),height:Math.abs(I-gn)},pi=D.current,to=L.current;D.current=new Set($s(Q,Bn,te,n===Xo.Partial,!0).map(nn=>nn.id)),L.current=new Set;let no=Pe?.selectable??!0;for(let nn of D.current){let Ln=ie.get(nn);if(Ln)for(let{edgeId:Un}of Ln.values()){let ao=P.get(Un);ao&&(ao.selectable??no)&&L.current.add(Un)}}if(!lg(pi,D.current)){let nn=mi(Q,D.current,!0);ce(nn)}if(!lg(to,L.current)){let nn=mi(P,L.current);ge(nn)}g.setState({userSelectionRect:Bn,userSelectionActive:!0,nodesSelectionActive:!1})}function X(){if(!o||!T.current)return;let[Y,I]=Is(w.current,T.current,E);b({x:Y,y:I}).then(ae=>{if(!V.current||!ae){S.current=requestAnimationFrame(X);return}let{x:te,y:Q}=w.current;q(te,Q),S.current=requestAnimationFrame(X)})}let K=()=>{cancelAnimationFrame(S.current),S.current=0,C.current=!1};(0,O.useEffect)(()=>()=>K(),[]);let Z=Y=>{let{userSelectionRect:I,transform:ae,resetSelectedElements:te}=g.getState();if(!T.current||!I)return;let{x:Q,y:P}=en(Y.nativeEvent,T.current);w.current={x:Q,y:P};let ie=$o({x:I.startX,y:I.startY},ae);if(!V.current){let ce=t?0:r;if(Math.hypot(Q-ie.x,P-ie.y)<=ce)return;te(),l?.(Y)}V.current=!0,C.current||(X(),C.current=!0),q(Q,P)},J=Y=>{if(!N){Y.target===_.current&&g.getState().connection.inProgress&&(k.current=!0);return}Y.button===0&&(Y.target?.releasePointerCapture?.(Y.pointerId),!p&&Y.target===_.current&&g.getState().userSelectionRect&&M?.(Y),g.setState({userSelectionActive:!1,userSelectionRect:null}),V.current&&(u?.(Y),g.setState({nodesSelectionActive:D.current.size>0})),K())},re=Y=>{Y.target?.releasePointerCapture?.(Y.pointerId),K()},j=a===!0||Array.isArray(a)&&a.includes(0);return(0,A.jsxs)("div",{className:Be(["react-flow__pane",{draggable:j,dragging:v,selection:e}]),onClick:N?void 0:xg(M,_),onContextMenu:xg(z,_),onWheel:xg(R,_),onPointerEnter:N?void 0:s,onPointerMove:N?Z:h,onPointerUp:J,onPointerCancel:N?re:void 0,onPointerDownCapture:N?G:void 0,onClickCapture:N?H:void 0,onPointerLeave:y,ref:_,style:sf,children:[x,(0,A.jsx)(v6,{})]})}function wg({id:e,store:t,unselect:n=!1,nodeRef:a}){let{addSelectedNodes:o,unselectNodesAndEdges:r,multiSelectionActive:i,nodeLookup:l,onError:u}=t.getState(),c=l.get(e);if(!c){u?.("012",kt.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&i)&&(r({nodes:[c],edges:[]}),requestAnimationFrame(()=>a?.current?.blur())):o([e])}function B2({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:a,nodeId:o,isSelectable:r,nodeClickDistance:i}){let l=Ce(),[u,c]=(0,O.useState)(!1),f=(0,O.useRef)();return(0,O.useEffect)(()=>{if(!t)return f.current=AE({getStoreItems:()=>l.getState(),onNodeMouseDown:d=>{wg({id:d,store:l,nodeRef:e})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}}),()=>{f.current?.destroy(),f.current=void 0}},[t,l,e]),(0,O.useEffect)(()=>{t||!e.current||!f.current||f.current.update({noDragClassName:n,handleSelector:a,domNode:e.current,isSelectable:r,nodeId:o,nodeClickDistance:i})},[n,a,t,r,e,o,i]),u}var S6=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function L2(){let e=Ce();return(0,O.useCallback)(n=>{let{nodeExtent:a,snapToGrid:o,snapGrid:r,nodesDraggable:i,onError:l,updateNodePositions:u,nodeLookup:c,nodeOrigin:f}=e.getState(),d=new Map,s=S6(i),h=o?r[0]:5,y=o?r[1]:5,x=n.direction.x*h*n.factor,S=n.direction.y*y*n.factor;for(let[,g]of c){if(!s(g))continue;let p={x:g.internals.positionAbsolute.x+x,y:g.internals.positionAbsolute.y+S};o&&(p=ci(p,r));let{position:m,positionAbsolute:v}=tg({nodeId:g.id,nextPosition:p,nodeLookup:c,nodeExtent:a,nodeOrigin:f,onError:l});g.position=m,g.internals.positionAbsolute=v,d.set(g.id,g)}u(d)},[])}var _g=(0,O.createContext)(null),w6=_g.Provider;_g.Consumer;var U2=()=>(0,O.useContext)(_g),E6=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),V2=(0,O.createContext)(null);function _6({children:e}){let t=fe(E6,Ae);return(0,A.jsx)(V2.Provider,{value:t,children:e})}function N6(){let e=(0,O.useContext)(V2);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}var T6={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},C6=(e,t,n)=>a=>{let{connectionClickStartHandle:o,connectionMode:r,connection:i}=a,{fromHandle:l,toHandle:u,isValid:c}=i;if(!l&&!o)return T6;let f=u?.nodeId===e&&u?.id===t&&u?.type===n;return{connectingFrom:l?.nodeId===e&&l?.id===t&&l?.type===n,connectingTo:f,clickConnecting:o?.nodeId===e&&o?.id===t&&o?.type===n,isPossibleEndHandle:r===Ka.Strict?l?.type!==n:e!==l?.nodeId||t!==l?.id,connectionInProcess:!!l,clickConnectionInProcess:!!o,valid:f&&c}};function M6({type:e="source",position:t=$.Top,isValidConnection:n,isConnectable:a=!0,isConnectableStart:o=!0,isConnectableEnd:r=!0,id:i,onConnect:l,children:u,className:c,onMouseDown:f,onTouchStart:d,...s},h){let y=i||null,x=e==="target",S=Ce(),g=U2(),{connectOnClick:p,noPanClassName:m,rfId:v}=N6(),{connectingFrom:b,connectingTo:E,clickConnecting:N,isPossibleEndHandle:_,connectionInProcess:T,clickConnectionInProcess:D,valid:L}=fe(C6(g,y,e),Ae);g||S.getState().onError?.("010",kt.error010());let k=C=>{let{defaultEdgeOptions:M,onConnect:z,hasDefaultEdges:R}=S.getState(),H={...M,...C};if(R){let{edges:G,setEdges:q,onError:X}=S.getState();q(i6(H,G,{onError:X}))}z?.(H),l?.(H)},V=C=>{if(!g)return;let M=fg(C.nativeEvent);if(o&&(M&&C.button===0||!M)){let z=S.getState();nf.onPointerDown(C.nativeEvent,{handleDomNode:C.currentTarget,autoPanOnConnect:z.autoPanOnConnect,connectionMode:z.connectionMode,connectionRadius:z.connectionRadius,domNode:z.domNode,nodeLookup:z.nodeLookup,lib:z.lib,isTarget:x,handleId:y,nodeId:g,flowId:z.rfId,panBy:z.panBy,cancelConnection:z.cancelConnection,onConnectStart:z.onConnectStart,onConnectEnd:(...R)=>S.getState().onConnectEnd?.(...R),updateConnection:z.updateConnection,onConnect:k,isValidConnection:n||((...R)=>S.getState().isValidConnection?.(...R)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:z.autoPanSpeed,dragThreshold:z.connectionDragThreshold})}M?f?.(C):d?.(C)},w=C=>{let{onClickConnectStart:M,onClickConnectEnd:z,connectionClickStartHandle:R,connectionMode:H,isValidConnection:G,lib:q,rfId:X,nodeLookup:K,connection:Z}=S.getState();if(!g||!R&&!o)return;if(!R){M?.(C.nativeEvent,{nodeId:g,handleId:y,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:g,type:e,id:y}});return}let J=cg(C.target),re=n||G,{connection:j,isValid:Y}=nf.isValid(C.nativeEvent,{handle:{nodeId:g,id:y,type:e},connectionMode:H,fromNodeId:R.nodeId,fromHandleId:R.id||null,fromType:R.type,isValidConnection:re,flowId:X,doc:J,lib:q,nodeLookup:K});Y&&j&&k(j);let I=structuredClone(Z);delete I.inProgress,I.toPosition=I.toHandle?I.toHandle.position:null,z?.(C,I),S.setState({connectionClickStartHandle:null})};return(0,A.jsx)("div",{"data-handleid":y,"data-nodeid":g,"data-handlepos":t,"data-id":`${v}-${g}-${y}-${e}`,className:Be(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",m,c,{source:!x,target:x,connectable:a,connectablestart:o,connectableend:r,clickconnecting:N,connectingfrom:b,connectingto:E,valid:L,connectionindicator:a&&(!T||_)&&(T||D?r:o)}]),onMouseDown:V,onTouchStart:V,onClick:p?w:void 0,ref:h,...s,children:u})}var sa=(0,O.memo)(D2(M6));function z6({data:e,isConnectable:t,sourcePosition:n=$.Bottom}){return(0,A.jsxs)(A.Fragment,{children:[e?.label,(0,A.jsx)(sa,{type:"source",position:n,isConnectable:t})]})}function A6({data:e,isConnectable:t,targetPosition:n=$.Top,sourcePosition:a=$.Bottom}){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(sa,{type:"target",position:n,isConnectable:t}),e?.label,(0,A.jsx)(sa,{type:"source",position:a,isConnectable:t})]})}function O6(){return null}function D6({data:e,isConnectable:t,targetPosition:n=$.Top}){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(sa,{type:"target",position:n,isConnectable:t}),e?.label]})}var lf={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},h2={input:z6,default:A6,output:D6,group:O6};function R6(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}var H6=e=>{let{width:t,height:n,x:a,y:o}=li(e.nodeLookup,{filter:r=>!!r.selected});return{width:Wt(t)?t:null,height:Wt(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${o}px)`}};function B6({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){let a=Ce(),{width:o,height:r,transformString:i,userSelectionActive:l}=fe(H6,Ae),u=L2(),c=(0,O.useRef)(null);(0,O.useEffect)(()=>{n||c.current?.focus({preventScroll:!0})},[n]);let f=!l&&o!==null&&r!==null;if(B2({nodeRef:c,disabled:!f}),!f)return null;let d=e?h=>{let y=a.getState().nodes.filter(x=>x.selected);e(h,y)}:void 0,s=h=>{Object.prototype.hasOwnProperty.call(lf,h.key)&&(h.preventDefault(),u({direction:lf[h.key],factor:h.shiftKey?4:1}))};return(0,A.jsx)("div",{className:Be(["react-flow__nodesselection","react-flow__container",t]),style:{transform:i},children:(0,A.jsx)("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:s,style:{width:o,height:r}})})}var g2=typeof window<"u"?window:void 0,L6=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Y2({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:a,onPaneMouseLeave:o,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:l,deleteKeyCode:u,selectionKeyCode:c,selectionOnDrag:f,selectionMode:d,onSelectionStart:s,onSelectionEnd:h,multiSelectionKeyCode:y,panActivationKeyCode:x,zoomActivationKeyCode:S,elementsSelectable:g,zoomOnScroll:p,zoomOnPinch:m,panOnScroll:v,panOnScrollSpeed:b,panOnScrollMode:E,zoomOnDoubleClick:N,panOnDrag:_,autoPanOnSelection:T,defaultViewport:D,translateExtent:L,minZoom:k,maxZoom:V,preventScrolling:w,onSelectionContextMenu:C,noWheelClassName:M,noPanClassName:z,disableKeyboardA11y:R,onViewportChange:H,isControlledViewport:G}){let{nodesSelectionActive:q,userSelectionActive:X}=fe(L6,Ae),K=Pl(c,{target:g2}),Z=Pl(x,{target:g2}),J=Z||_,re=Z||v,j=f&&J!==!0,Y=K||X||j;return m6({deleteKeyCode:u,multiSelectionKeyCode:y}),(0,A.jsx)(p6,{onPaneContextMenu:r,elementsSelectable:g,zoomOnScroll:p,zoomOnPinch:m,panOnScroll:re,panActivationKeyPressed:Z,panOnScrollSpeed:b,panOnScrollMode:E,zoomOnDoubleClick:N,panOnDrag:!K&&J,defaultViewport:D,translateExtent:L,minZoom:k,maxZoom:V,zoomActivationKeyCode:S,preventScrolling:w,noWheelClassName:M,noPanClassName:z,onViewportChange:H,isControlledViewport:G,paneClickDistance:l,selectionOnDrag:j,children:(0,A.jsxs)(x6,{onSelectionStart:s,onSelectionEnd:h,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:a,onPaneMouseLeave:o,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:J,autoPanOnSelection:T,isSelecting:!!Y,selectionMode:d,selectionKeyPressed:K,paneClickDistance:l,selectionOnDrag:j,children:[e,q&&(0,A.jsx)(B6,{onSelectionContextMenu:C,noPanClassName:z,disableKeyboardA11y:R})]})})}Y2.displayName="FlowRenderer";var U6=(0,O.memo)(Y2),V6=e=>t=>e?$s(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 Y6(e){return fe((0,O.useCallback)(V6(e),[e]),Ae)}var k6=e=>e.updateNodeInternals;function q6(){let e=fe(k6),[t]=(0,O.useState)(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{let a=new Map;n.forEach(o=>{let r=o.target.getAttribute("data-id");a.set(r,{id:r,nodeElement:o.target,force:!0})}),e(a)}));return(0,O.useEffect)(()=>()=>{t?.disconnect()},[t]),t}function G6({node:e,nodeType:t,hasDimensions:n,resizeObserver:a}){let o=Ce(),r=(0,O.useRef)(null),i=(0,O.useRef)(null),l=(0,O.useRef)(e.sourcePosition),u=(0,O.useRef)(e.targetPosition),c=(0,O.useRef)(t),f=n&&!!e.internals.handleBounds;return(0,O.useEffect)(()=>{r.current&&!e.hidden&&(!f||i.current!==r.current)&&(i.current&&a?.unobserve(i.current),a?.observe(r.current),i.current=r.current)},[f,e.hidden]),(0,O.useEffect)(()=>()=>{i.current&&(a?.unobserve(i.current),i.current=null)},[]),(0,O.useEffect)(()=>{if(r.current){let d=c.current!==t,s=l.current!==e.sourcePosition,h=u.current!==e.targetPosition;(d||s||h)&&(c.current=t,l.current=e.sourcePosition,u.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:r.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),r}function X6({id:e,onClick:t,onMouseEnter:n,onMouseMove:a,onMouseLeave:o,onContextMenu:r,onDoubleClick:i,nodesDraggable:l,elementsSelectable:u,nodesConnectable:c,nodesFocusable:f,resizeObserver:d,noDragClassName:s,noPanClassName:h,disableKeyboardA11y:y,rfId:x,nodeTypes:S,nodeClickDistance:g,onError:p}){let{node:m,internals:v,isParent:b}=fe(Y=>{let I=Y.nodeLookup.get(e),ae=Y.parentLookup.has(e);return{node:I,internals:I.internals,isParent:ae}},Ae),E=m.type||"default",N=S?.[E]||h2[E];N===void 0&&(p?.("003",kt.error003(E)),E="default",N=S?.default||h2.default);let _=!!(m.draggable||l&&typeof m.draggable>"u"),T=!!(m.selectable||u&&typeof m.selectable>"u"),D=!!(m.connectable||c&&typeof m.connectable>"u"),L=!!(m.focusable||f&&typeof m.focusable>"u"),k=Ce(),V=rg(m),w=G6({node:m,nodeType:E,hasDimensions:V,resizeObserver:d}),C=B2({nodeRef:w,disabled:m.hidden||!_,noDragClassName:s,handleSelector:m.dragHandle,nodeId:e,isSelectable:T,nodeClickDistance:g}),M=L2();if(m.hidden)return null;let z=tn(m),R=R6(m),H=T||_||t||n||a||o,G=n?Y=>n(Y,{...v.userNode}):void 0,q=a?Y=>a(Y,{...v.userNode}):void 0,X=o?Y=>o(Y,{...v.userNode}):void 0,K=r?Y=>r(Y,{...v.userNode}):void 0,Z=i?Y=>i(Y,{...v.userNode}):void 0,J=Y=>{let{selectNodesOnDrag:I,nodeDragThreshold:ae}=k.getState();T&&(!I||!_||ae>0)&&wg({id:e,store:k,nodeRef:w}),t&&t(Y,{...v.userNode})},re=Y=>{if(!(sg(Y.nativeEvent)||y)){if(Kh.includes(Y.key)&&T){let I=Y.key==="Escape";wg({id:e,store:k,unselect:I,nodeRef:w})}else if(_&&m.selected&&Object.prototype.hasOwnProperty.call(lf,Y.key)){Y.preventDefault();let{ariaLabelConfig:I}=k.getState();k.setState({ariaLiveMessage:I["node.a11yDescription.ariaLiveMessage"]({direction:Y.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),M({direction:lf[Y.key],factor:Y.shiftKey?4:1})}}},j=()=>{if(y||!w.current?.matches(":focus-visible"))return;let{transform:Y,width:I,height:ae,autoPanOnNodeFocus:te,setCenter:Q}=k.getState();if(!te)return;$s(new Map([[e,m]]),{x:0,y:0,width:I,height:ae},Y,!0).length>0||Q(m.position.x+z.width/2,m.position.y+z.height/2,{zoom:Y[2]})};return(0,A.jsx)("div",{className:Be(["react-flow__node",`react-flow__node-${E}`,{[h]:_},m.className,{selected:m.selected,selectable:T,parent:b,draggable:_,dragging:C}]),ref:w,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:H?"all":"none",visibility:V?"visible":"hidden",...m.style,...R},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:G,onMouseMove:q,onMouseLeave:X,onContextMenu:K,onClick:J,onDoubleClick:Z,onKeyDown:L?re:void 0,tabIndex:L?0:void 0,onFocus:L?j:void 0,role:m.ariaRole??(L?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${M2}-${x}`,"aria-label":m.ariaLabel,...m.domAttributes,children:(0,A.jsx)(w6,{value:e,children:(0,A.jsx)(N,{id:e,data:m.data,type:E,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:m.selected??!1,selectable:T,draggable:_,deletable:m.deletable??!0,isConnectable:D,sourcePosition:m.sourcePosition,targetPosition:m.targetPosition,dragging:C,dragHandle:m.dragHandle,zIndex:v.z,parentId:m.parentId,...z})})})}var Z6=(0,O.memo)(X6),$6=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function k2(e){let{nodesConnectable:t,nodesFocusable:n,elementsSelectable:a,onError:o}=fe($6,Ae),r=Y6(e.onlyRenderVisibleElements),i=q6();return(0,A.jsx)("div",{className:"react-flow__nodes",style:sf,children:r.map(l=>(0,A.jsx)(Z6,{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:i,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:n,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:o},l))})}k2.displayName="NodeRenderer";var I6=(0,O.memo)(k2);function Q6(e){return fe((0,O.useCallback)(n=>{if(!e)return n.edges.map(o=>o.id);let a=[];if(n.width&&n.height)for(let o of n.edges){let r=n.nodeLookup.get(o.source),i=n.nodeLookup.get(o.target);r&&i&&xE({sourceNode:r,targetNode:i,width:n.width,height:n.height,transform:n.transform})&&a.push(o.id)}return a},[e]),Ae)}var j6=({color:e="none",strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e}};return(0,A.jsx)("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},K6=({color:e="none",strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e,fill:e}};return(0,A.jsx)("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},p2={[Ja.Arrow]:j6,[Ja.ArrowClosed]:K6};function J6(e){let t=Ce();return(0,O.useMemo)(()=>Object.prototype.hasOwnProperty.call(p2,e)?p2[e]:(t.getState().onError?.("009",kt.error009(e)),null),[e])}var F6=({id:e,type:t,color:n,width:a=12.5,height:o=12.5,markerUnits:r="strokeWidth",strokeWidth:i,orient:l="auto-start-reverse"})=>{let u=J6(t);return u?(0,A.jsx)("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:r,orient:l,refX:"0",refY:"0",children:(0,A.jsx)(u,{color:n,strokeWidth:i})}):null},q2=({defaultColor:e,rfId:t})=>{let n=fe(r=>r.edges),a=fe(r=>r.defaultEdgeOptions),o=(0,O.useMemo)(()=>EE(n,{id:t,defaultColor:e,defaultMarkerStart:a?.markerStart,defaultMarkerEnd:a?.markerEnd}),[n,a,t,e]);return o.length?(0,A.jsx)("svg",{className:"react-flow__marker","aria-hidden":"true",children:(0,A.jsx)("defs",{children:o.map(r=>(0,A.jsx)(F6,{id:r.id,type:r.type,color:r.color,width:r.width,height:r.height,markerUnits:r.markerUnits,strokeWidth:r.strokeWidth,orient:r.orient},r.id))})}):null};q2.displayName="MarkerDefinitions";var P6=(0,O.memo)(q2);function G2({x:e,y:t,label:n,labelStyle:a,labelShowBg:o=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:l=2,children:u,className:c,...f}){let[d,s]=(0,O.useState)({x:1,y:0,width:0,height:0}),h=Be(["react-flow__edge-textwrapper",c]),y=(0,O.useRef)(null);return(0,O.useEffect)(()=>{if(y.current){let x=y.current.getBBox();s({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?(0,A.jsxs)("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:h,visibility:d.width?"visible":"hidden",...f,children:[o&&(0,A.jsx)("rect",{width:d.width+2*i[0],x:-i[0],y:-i[1],height:d.height+2*i[1],className:"react-flow__edge-textbg",style:r,rx:l,ry:l}),(0,A.jsx)("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:y,style:a,children:n}),u]}):null}G2.displayName="EdgeText";var W6=(0,O.memo)(G2);function hi({path:e,labelX:t,labelY:n,label:a,labelStyle:o,labelShowBg:r,labelBgStyle:i,labelBgPadding:l,labelBgBorderRadius:u,interactionWidth:c=20,...f}){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("path",{...f,d:e,fill:"none",className:Be(["react-flow__edge-path",f.className])}),c?(0,A.jsx)("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:c,className:"react-flow__edge-interaction"}):null,a&&Wt(t)&&Wt(n)?(0,A.jsx)(W6,{x:t,y:n,label:a,labelStyle:o,labelShowBg:r,labelBgStyle:i,labelBgPadding:l,labelBgBorderRadius:u}):null]})}function y2({pos:e,x1:t,y1:n,x2:a,y2:o}){return e===$.Left||e===$.Right?[.5*(t+a),n]:[t,.5*(n+o)]}function X2({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:a,targetY:o,targetPosition:r=$.Top}){let[i,l]=y2({pos:n,x1:e,y1:t,x2:a,y2:o}),[u,c]=y2({pos:r,x1:a,y1:o,x2:e,y2:t}),[f,d,s,h]=Js({sourceX:e,sourceY:t,targetX:a,targetY:o,sourceControlX:i,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${i},${l} ${u},${c} ${a},${o}`,f,d,s,h]}function Z2(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,sourcePosition:i,targetPosition:l,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,interactionWidth:g})=>{let[p,m,v]=X2({sourceX:n,sourceY:a,sourcePosition:i,targetX:o,targetY:r,targetPosition:l}),b=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:b,path:p,labelX:m,labelY:v,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,interactionWidth:g})})}var e8=Z2({isInternal:!1}),$2=Z2({isInternal:!0});e8.displayName="SimpleBezierEdge";$2.displayName="SimpleBezierEdgeInternal";function I2(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,sourcePosition:h=$.Bottom,targetPosition:y=$.Top,markerEnd:x,markerStart:S,pathOptions:g,interactionWidth:p})=>{let[m,v,b]=Fl({sourceX:n,sourceY:a,sourcePosition:h,targetX:o,targetY:r,targetPosition:y,borderRadius:g?.borderRadius,offset:g?.offset,stepPosition:g?.stepPosition}),E=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:E,path:m,labelX:v,labelY:b,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,markerEnd:x,markerStart:S,interactionWidth:p})})}var Q2=I2({isInternal:!1}),j2=I2({isInternal:!0});Q2.displayName="SmoothStepEdge";j2.displayName="SmoothStepEdgeInternal";function K2(e){return(0,O.memo)(({id:t,...n})=>{let a=e.isInternal?void 0:t;return(0,A.jsx)(Q2,{...n,id:a,pathOptions:(0,O.useMemo)(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}var t8=K2({isInternal:!1}),J2=K2({isInternal:!0});t8.displayName="StepEdge";J2.displayName="StepEdgeInternal";function F2(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,markerEnd:h,markerStart:y,interactionWidth:x})=>{let[S,g,p]=Ps({sourceX:n,sourceY:a,targetX:o,targetY:r}),m=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:m,path:S,labelX:g,labelY:p,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,markerEnd:h,markerStart:y,interactionWidth:x})})}var n8=F2({isInternal:!1}),P2=F2({isInternal:!0});n8.displayName="StraightEdge";P2.displayName="StraightEdgeInternal";function W2(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,sourcePosition:i=$.Bottom,targetPosition:l=$.Top,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,pathOptions:g,interactionWidth:p})=>{let[m,v,b]=Fs({sourceX:n,sourceY:a,sourcePosition:i,targetX:o,targetY:r,targetPosition:l,curvature:g?.curvature}),E=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:E,path:m,labelX:v,labelY:b,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,interactionWidth:p})})}var a8=W2({isInternal:!1}),e_=W2({isInternal:!0});a8.displayName="BezierEdge";e_.displayName="BezierEdgeInternal";var v2={default:e_,straight:P2,step:J2,smoothstep:j2,simplebezier:$2},b2={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},o8=(e,t,n)=>n===$.Left?e-t:n===$.Right?e+t:e,r8=(e,t,n)=>n===$.Top?e-t:n===$.Bottom?e+t:e,x2="react-flow__edgeupdater";function S2({position:e,centerX:t,centerY:n,radius:a=10,onMouseDown:o,onMouseEnter:r,onMouseOut:i,type:l}){return(0,A.jsx)("circle",{onMouseDown:o,onMouseEnter:r,onMouseOut:i,className:Be([x2,`${x2}-${l}`]),cx:o8(t,a,e),cy:r8(n,a,e),r:a,stroke:"transparent",fill:"transparent"})}function i8({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:a,sourceY:o,targetX:r,targetY:i,sourcePosition:l,targetPosition:u,onReconnect:c,onReconnectStart:f,onReconnectEnd:d,setReconnecting:s,setUpdateHover:h}){let y=Ce(),x=(v,b)=>{if(v.button!==0)return;let{autoPanOnConnect:E,domNode:N,connectionMode:_,connectionRadius:T,lib:D,onConnectStart:L,cancelConnection:k,nodeLookup:V,rfId:w,panBy:C,updateConnection:M}=y.getState(),z=b.type==="target",R=(q,X)=>{s(!1),d?.(q,n,b.type,X)},H=q=>c?.(n,q),G=(q,X)=>{s(!0),f?.(v,n,b.type),L?.(q,X)};nf.onPointerDown(v.nativeEvent,{autoPanOnConnect:E,connectionMode:_,connectionRadius:T,domNode:N,handleId:b.id,nodeId:b.nodeId,nodeLookup:V,isTarget:z,edgeUpdaterType:b.type,lib:D,flowId:w,cancelConnection:k,panBy:C,isValidConnection:(...q)=>y.getState().isValidConnection?.(...q)??!0,onConnect:H,onConnectStart:G,onConnectEnd:(...q)=>y.getState().onConnectEnd?.(...q),onReconnectEnd:R,updateConnection:M,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold,handleDomNode:v.currentTarget})},S=v=>x(v,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),g=v=>x(v,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),p=()=>h(!0),m=()=>h(!1);return(0,A.jsxs)(A.Fragment,{children:[(e===!0||e==="source")&&(0,A.jsx)(S2,{position:l,centerX:a,centerY:o,radius:t,onMouseDown:S,onMouseEnter:p,onMouseOut:m,type:"source"}),(e===!0||e==="target")&&(0,A.jsx)(S2,{position:u,centerX:r,centerY:i,radius:t,onMouseDown:g,onMouseEnter:p,onMouseOut:m,type:"target"})]})}function l8({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:a,onClick:o,onDoubleClick:r,onContextMenu:i,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,reconnectRadius:f,onReconnect:d,onReconnectStart:s,onReconnectEnd:h,rfId:y,edgeTypes:x,noPanClassName:S,onError:g,disableKeyboardA11y:p}){let m=fe(Q=>Q.edgeLookup.get(e)),v=fe(Q=>Q.defaultEdgeOptions);m=v?{...v,...m}:m;let b=m.type||"default",E=x?.[b]||v2[b];E===void 0&&(g?.("011",kt.error011(b)),b="default",E=x?.default||v2.default);let N=!!(m.focusable||t&&typeof m.focusable>"u"),_=typeof d<"u"&&(m.reconnectable||n&&typeof m.reconnectable>"u"),T=!!(m.selectable||a&&typeof m.selectable>"u"),D=(0,O.useRef)(null),[L,k]=(0,O.useState)(!1),[V,w]=(0,O.useState)(!1),C=Ce(),{zIndex:M=m.zIndex,sourceX:z,sourceY:R,targetX:H,targetY:G,sourcePosition:q,targetPosition:X}=fe((0,O.useCallback)(Q=>{let P=Q.nodeLookup.get(m.source),ie=Q.nodeLookup.get(m.target);if(!P||!ie)return b2;let ce=wE({id:e,sourceNode:P,targetNode:ie,sourceHandle:m.sourceHandle||null,targetHandle:m.targetHandle||null,connectionMode:Q.connectionMode,onError:g}),ge=bE({selected:m.selected,zIndex:m.zIndex,sourceNode:P,targetNode:ie,elevateOnSelect:Q.elevateEdgesOnSelect,zIndexMode:Q.zIndexMode});return{...ce||b2,zIndex:ge}},[m.source,m.target,m.sourceHandle,m.targetHandle,m.selected,m.zIndex,g]),Ae),K=(0,O.useMemo)(()=>m.markerStart?`url('#${Ws(m.markerStart,y)}')`:void 0,[m.markerStart,y]),Z=(0,O.useMemo)(()=>m.markerEnd?`url('#${Ws(m.markerEnd,y)}')`:void 0,[m.markerEnd,y]);if(m.hidden||z===null||R===null||H===null||G===null)return null;let J=Q=>{let{addSelectedEdges:P,unselectNodesAndEdges:ie,multiSelectionActive:ce}=C.getState();T&&(C.setState({nodesSelectionActive:!1}),m.selected&&ce?(ie({nodes:[],edges:[m]}),D.current?.blur()):P([e])),o&&o(Q,m)},re=r?Q=>{r(Q,{...m})}:void 0,j=i?Q=>{i(Q,{...m})}:void 0,Y=l?Q=>{l(Q,{...m})}:void 0,I=u?Q=>{u(Q,{...m})}:void 0,ae=c?Q=>{c(Q,{...m})}:void 0,te=Q=>{if(!p&&Kh.includes(Q.key)&&T){let{unselectNodesAndEdges:P,addSelectedEdges:ie}=C.getState();Q.key==="Escape"?(D.current?.blur(),P({edges:[m]})):ie([e])}};return(0,A.jsx)("svg",{style:{zIndex:M},children:(0,A.jsxs)("g",{className:Be(["react-flow__edge",`react-flow__edge-${b}`,m.className,S,{selected:m.selected,animated:m.animated,inactive:!T&&!o,updating:L,selectable:T}]),onClick:J,onDoubleClick:re,onContextMenu:j,onMouseEnter:Y,onMouseMove:I,onMouseLeave:ae,onKeyDown:N?te:void 0,tabIndex:N?0:void 0,role:m.ariaRole??(N?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":m.ariaLabel===null?void 0:m.ariaLabel||`Edge from ${m.source} to ${m.target}`,"aria-describedby":N?`${z2}-${y}`:void 0,ref:D,...m.domAttributes,children:[!V&&(0,A.jsx)(E,{id:e,source:m.source,target:m.target,type:m.type,selected:m.selected,animated:m.animated,selectable:T,deletable:m.deletable??!0,label:m.label,labelStyle:m.labelStyle,labelShowBg:m.labelShowBg,labelBgStyle:m.labelBgStyle,labelBgPadding:m.labelBgPadding,labelBgBorderRadius:m.labelBgBorderRadius,sourceX:z,sourceY:R,targetX:H,targetY:G,sourcePosition:q,targetPosition:X,data:m.data,style:m.style,sourceHandleId:m.sourceHandle,targetHandleId:m.targetHandle,markerStart:K,markerEnd:Z,pathOptions:"pathOptions"in m?m.pathOptions:void 0,interactionWidth:m.interactionWidth}),_&&(0,A.jsx)(i8,{edge:m,isReconnectable:_,reconnectRadius:f,onReconnect:d,onReconnectStart:s,onReconnectEnd:h,sourceX:z,sourceY:R,targetX:H,targetY:G,sourcePosition:q,targetPosition:X,setUpdateHover:k,setReconnecting:w})]})})}var u8=(0,O.memo)(l8),c8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function t_({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:a,noPanClassName:o,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:c,onEdgeClick:f,reconnectRadius:d,onEdgeDoubleClick:s,onReconnectStart:h,onReconnectEnd:y,disableKeyboardA11y:x}){let{edgesFocusable:S,edgesReconnectable:g,elementsSelectable:p,onError:m}=fe(c8,Ae),v=Q6(t);return(0,A.jsxs)("div",{className:"react-flow__edges",children:[(0,A.jsx)(P6,{defaultColor:e,rfId:n}),v.map(b=>(0,A.jsx)(u8,{id:b,edgesFocusable:S,edgesReconnectable:g,elementsSelectable:p,noPanClassName:o,onReconnect:r,onContextMenu:i,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f,reconnectRadius:d,onDoubleClick:s,onReconnectStart:h,onReconnectEnd:y,rfId:n,onError:m,edgeTypes:a,disableKeyboardA11y:x},b))]})}t_.displayName="EdgeRenderer";var s8=(0,O.memo)(t_),w2=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function f8({children:e}){let t=Ce(),n=(0,O.useRef)(null),[a]=(0,O.useState)(()=>t.getState().transform);return R2(()=>{let o=null,r=()=>{let i=t.getState().transform;o&&i[0]===o[0]&&i[1]===o[1]&&i[2]===o[2]||(o=i,n.current&&(n.current.style.transform=w2(i)))};return r(),t.subscribe(r)},[t]),(0,A.jsx)("div",{ref:n,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:w2(a)},children:e})}function d8(e){let t=Wl(),n=(0,O.useRef)(!1);(0,O.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}var m8=e=>e.panZoom?.syncViewport;function h8(e){let t=fe(m8),n=Ce();return(0,O.useEffect)(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function E2(e){return e.connection.inProgress?{...e.connection,to:si(e.connection.to,e.transform)}:{...e.connection}}function g8(e){return e?n=>{let a=E2(n);return e(a)}:E2}function p8(e){let t=g8(e);return fe(t,Ae)}var y8=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function v8({containerStyle:e,style:t,type:n,component:a}){let{nodesConnectable:o,width:r,height:i,isValid:l,inProgress:u}=fe(y8,Ae);return!(r&&o&&u)?null:(0,A.jsx)("svg",{style:e,width:r,height:i,className:"react-flow__connectionline react-flow__container",children:(0,A.jsx)("g",{className:Be(["react-flow__connection",ug(l)]),children:(0,A.jsx)(n_,{style:t,type:n,CustomComponent:a,isValid:l})})})}var n_=({style:e,type:t=Dn.Bezier,CustomComponent:n,isValid:a})=>{let{inProgress:o,from:r,fromNode:i,fromHandle:l,fromPosition:u,to:c,toNode:f,toHandle:d,toPosition:s,pointer:h}=p8();if(!o)return;if(n)return(0,A.jsx)(n,{connectionLineType:t,connectionLineStyle:e,fromNode:i,fromHandle:l,fromX:r.x,fromY:r.y,toX:c.x,toY:c.y,fromPosition:u,toPosition:s,connectionStatus:ug(a),toNode:f,toHandle:d,pointer:h});let y="",x={sourceX:r.x,sourceY:r.y,sourcePosition:u,targetX:c.x,targetY:c.y,targetPosition:s};switch(t){case Dn.Bezier:[y]=Fs(x);break;case Dn.SimpleBezier:[y]=X2(x);break;case Dn.Step:[y]=Fl({...x,borderRadius:0});break;case Dn.SmoothStep:[y]=Fl(x);break;default:[y]=Ps(x)}return(0,A.jsx)("path",{d:y,fill:"none",className:"react-flow__connection-path",style:e})};n_.displayName="ConnectionLine";var b8={};function _2(e=b8){let t=(0,O.useRef)(e),n=Ce();(0,O.useEffect)(()=>{},[e])}function x8(){let e=Ce(),t=(0,O.useRef)(!1);(0,O.useEffect)(()=>{},[])}function a_({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:a,onEdgeClick:o,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:c,onNodeContextMenu:f,onSelectionContextMenu:d,onSelectionStart:s,onSelectionEnd:h,connectionLineType:y,connectionLineStyle:x,connectionLineComponent:S,connectionLineContainerStyle:g,selectionKeyCode:p,selectionOnDrag:m,selectionMode:v,multiSelectionKeyCode:b,panActivationKeyCode:E,zoomActivationKeyCode:N,deleteKeyCode:_,onlyRenderVisibleElements:T,elementsSelectable:D,defaultViewport:L,translateExtent:k,minZoom:V,maxZoom:w,preventScrolling:C,defaultMarkerColor:M,zoomOnScroll:z,zoomOnPinch:R,panOnScroll:H,panOnScrollSpeed:G,panOnScrollMode:q,zoomOnDoubleClick:X,panOnDrag:K,autoPanOnSelection:Z,onPaneClick:J,onPaneMouseEnter:re,onPaneMouseMove:j,onPaneMouseLeave:Y,onPaneScroll:I,onPaneContextMenu:ae,paneClickDistance:te,nodeClickDistance:Q,onEdgeContextMenu:P,onEdgeMouseEnter:ie,onEdgeMouseMove:ce,onEdgeMouseLeave:ge,reconnectRadius:Pe,onReconnect:Hn,onReconnectStart:hn,onReconnectEnd:gn,noDragClassName:Bn,noWheelClassName:pi,noPanClassName:to,disableKeyboardA11y:no,nodeExtent:nn,rfId:Ln,viewport:Un,onViewportChange:ao,nodesDraggable:df}){return _2(e),_2(t),x8(),d8(n),h8(Un),(0,A.jsx)(U6,{onPaneClick:J,onPaneMouseEnter:re,onPaneMouseMove:j,onPaneMouseLeave:Y,onPaneContextMenu:ae,onPaneScroll:I,paneClickDistance:te,deleteKeyCode:_,selectionKeyCode:p,selectionOnDrag:m,selectionMode:v,onSelectionStart:s,onSelectionEnd:h,multiSelectionKeyCode:b,panActivationKeyCode:E,zoomActivationKeyCode:N,elementsSelectable:D,zoomOnScroll:z,zoomOnPinch:R,zoomOnDoubleClick:X,panOnScroll:H,panOnScrollSpeed:G,panOnScrollMode:q,panOnDrag:K,autoPanOnSelection:Z,defaultViewport:L,translateExtent:k,minZoom:V,maxZoom:w,onSelectionContextMenu:d,preventScrolling:C,noDragClassName:Bn,noWheelClassName:pi,noPanClassName:to,disableKeyboardA11y:no,onViewportChange:ao,isControlledViewport:!!Un,children:(0,A.jsxs)(f8,{children:[(0,A.jsx)(s8,{edgeTypes:t,onEdgeClick:o,onEdgeDoubleClick:i,onReconnect:Hn,onReconnectStart:hn,onReconnectEnd:gn,onlyRenderVisibleElements:T,onEdgeContextMenu:P,onEdgeMouseEnter:ie,onEdgeMouseMove:ce,onEdgeMouseLeave:ge,reconnectRadius:Pe,defaultMarkerColor:M,noPanClassName:to,disableKeyboardA11y:no,rfId:Ln}),(0,A.jsx)(v8,{style:x,type:y,component:S,containerStyle:g}),(0,A.jsx)("div",{className:"react-flow__edgelabel-renderer"}),(0,A.jsx)(I6,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:r,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:c,onNodeContextMenu:f,nodeClickDistance:Q,onlyRenderVisibleElements:T,noPanClassName:to,noDragClassName:Bn,disableKeyboardA11y:no,nodeExtent:nn,rfId:Ln,nodesDraggable:df}),(0,A.jsx)("div",{className:"react-flow__viewport-portal"})]})})}a_.displayName="GraphView";var S8=(0,O.memo)(a_),w8=og("React Flow","https://reactflow.dev/"),N2=({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,width:o,height:r,fitView:i,fitViewOptions:l,minZoom:u=.5,maxZoom:c=2,nodeOrigin:f,nodeExtent:d,zIndexMode:s="basic"}={})=>{let h=new Map,y=new Map,x=new Map,S=new Map,g=a??t??[],p=n??e??[],m=f??[0,0],v=d??ii;yg(x,S,g);let{nodesInitialized:b}=ef(p,h,y,{nodeOrigin:m,nodeExtent:v,zIndexMode:s}),E=[0,0,1];if(i&&o&&r){let N=li(h,{filter:L=>!!((L.width||L.initialWidth)&&(L.height||L.initialHeight))}),{x:_,y:T,zoom:D}=Jl(N,o,r,u,c,l?.padding??.1);E=[_,T,D]}return{rfId:"1",width:o??0,height:r??0,transform:E,nodes:p,nodesInitialized:b,nodeLookup:h,parentLookup:y,edges:g,edgeLookup:S,connectionLookup:x,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:u,maxZoom:c,translateExtent:ii,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ka.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:m,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:l,fitViewResolver:null,connection:{...Fh},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:w8,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:Jh,zIndexMode:s,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},E8=({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,width:o,height:r,fitView:i,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:f,nodeExtent:d,zIndexMode:s})=>e2((h,y)=>{async function x(){let{nodeLookup:S,panZoom:g,fitViewOptions:p,fitViewResolver:m,width:v,height:b,minZoom:E,maxZoom:N}=y();g&&(await mE({nodes:S,width:v,height:b,panZoom:g,minZoom:E,maxZoom:N},p),m?.resolve(!0),h({fitViewResolver:null}))}return{...N2({nodes:e,edges:t,width:o,height:r,fitView:i,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:f,nodeExtent:d,defaultNodes:n,defaultEdges:a,zIndexMode:s}),setNodes:S=>{let{nodeLookup:g,parentLookup:p,nodeOrigin:m,nodeExtent:v,elevateNodesOnSelect:b,fitViewQueued:E,zIndexMode:N,nodesSelectionActive:_}=y(),{nodesInitialized:T,hasSelectedNodes:D}=ef(S,g,p,{nodeOrigin:m,nodeExtent:v,elevateNodesOnSelect:b,checkEquality:!0,zIndexMode:N}),L=_&&D;E&&T?(x(),h({nodes:S,nodesInitialized:T,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:L})):h({nodes:S,nodesInitialized:T,nodesSelectionActive:L})},setEdges:S=>{let{connectionLookup:g,edgeLookup:p}=y();yg(g,p,S),h({edges:S})},setDefaultNodesAndEdges:(S,g)=>{if(S){let{setNodes:p}=y();p(S),h({hasDefaultNodes:!0})}if(g){let{setEdges:p}=y();p(g),h({hasDefaultEdges:!0})}},updateNodeInternals:S=>{let{triggerNodeChanges:g,nodeLookup:p,parentLookup:m,domNode:v,nodeOrigin:b,nodeExtent:E,debug:N,fitViewQueued:_,zIndexMode:T}=y(),{changes:D,updatedInternals:L}=CE(S,p,m,v,b,E,T);L&&(NE(p,m,{nodeOrigin:b,nodeExtent:E,zIndexMode:T}),_?(x(),h({fitViewQueued:!1,fitViewOptions:void 0})):h({}),D?.length>0&&(N&&console.log("React Flow: trigger node changes",D),g?.(D)))},updateNodePositions:(S,g=!1)=>{let p=[],m=[],{nodeLookup:v,triggerNodeChanges:b,connection:E,updateConnection:N,onNodesChangeMiddlewareMap:_}=y();for(let[T,D]of S){let L=v.get(T),k=!!(L?.expandParent&&L?.parentId&&D?.position),V={id:T,type:"position",position:k?{x:Math.max(0,D.position.x),y:Math.max(0,D.position.y)}:D.position,dragging:g};if(L&&E.inProgress&&E.fromNode.id===L.id){let w=Fa(L,E.fromHandle,$.Left,!0);N({...E,from:w})}k&&L.parentId&&p.push({id:T,parentId:L.parentId,rect:{...D.internals.positionAbsolute,width:D.measured.width??0,height:D.measured.height??0}}),m.push(V)}if(p.length>0){let{parentLookup:T,nodeOrigin:D}=y(),L=tf(p,v,T,D);m.push(...L)}for(let T of _.values())m=T(m);b(m)},triggerNodeChanges:S=>{let{onNodesChange:g,setNodes:p,nodes:m,hasDefaultNodes:v,debug:b}=y();if(S?.length){if(v){let E=Eg(S,m);p(E)}b&&console.log("React Flow: trigger node changes",S),g?.(S)}},triggerEdgeChanges:S=>{let{onEdgesChange:g,setEdges:p,edges:m,hasDefaultEdges:v,debug:b}=y();if(S?.length){if(v){let E=o6(S,m);p(E)}b&&console.log("React Flow: trigger edge changes",S),g?.(S)}},addSelectedNodes:S=>{let{multiSelectionActive:g,edgeLookup:p,nodeLookup:m,triggerNodeChanges:v,triggerEdgeChanges:b}=y();if(g){let E=S.map(N=>Qo(N,!0));v(E);return}v(mi(m,new Set([...S]),!0)),b(mi(p))},addSelectedEdges:S=>{let{multiSelectionActive:g,edgeLookup:p,nodeLookup:m,triggerNodeChanges:v,triggerEdgeChanges:b}=y();if(g){let E=S.map(N=>Qo(N,!0));b(E);return}b(mi(p,new Set([...S]))),v(mi(m,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:g}={})=>{let{edges:p,nodes:m,nodeLookup:v,triggerNodeChanges:b,triggerEdgeChanges:E}=y(),N=S||m,_=g||p,T=[];for(let L of N){if(!L.selected)continue;let k=v.get(L.id);k&&(k.selected=!1),T.push(Qo(L.id,!1))}let D=[];for(let L of _)L.selected&&D.push(Qo(L.id,!1));b(T),E(D)},setMinZoom:S=>{let{panZoom:g,maxZoom:p}=y();g?.setScaleExtent([S,p]),h({minZoom:S})},setMaxZoom:S=>{let{panZoom:g,minZoom:p}=y();g?.setScaleExtent([p,S]),h({maxZoom:S})},setTranslateExtent:S=>{y().panZoom?.setTranslateExtent(S),h({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:g,triggerNodeChanges:p,triggerEdgeChanges:m,elementsSelectable:v}=y();if(!v)return;let b=g.reduce((N,_)=>_.selected?[...N,Qo(_.id,!1)]:N,[]),E=S.reduce((N,_)=>_.selected?[...N,Qo(_.id,!1)]:N,[]);p(b),m(E)},setNodeExtent:S=>{let{nodes:g,nodeLookup:p,parentLookup:m,nodeOrigin:v,elevateNodesOnSelect:b,nodeExtent:E,zIndexMode:N}=y();S[0][0]===E[0][0]&&S[0][1]===E[0][1]&&S[1][0]===E[1][0]&&S[1][1]===E[1][1]||(ef(g,p,m,{nodeOrigin:v,nodeExtent:S,elevateNodesOnSelect:b,checkEquality:!1,zIndexMode:N}),h({nodeExtent:S}))},panBy:S=>{let{transform:g,width:p,height:m,panZoom:v,translateExtent:b}=y();return ME({delta:S,panZoom:v,transform:g,translateExtent:b,width:p,height:m})},setCenter:async(S,g,p)=>{let{width:m,height:v,maxZoom:b,panZoom:E}=y();if(!E)return!1;let N=typeof p?.zoom<"u"?p.zoom:b;return await E.setViewport({x:m/2-S*N,y:v/2-g*N,zoom:N},{duration:p?.duration,ease:p?.ease,interpolate:p?.interpolate}),!0},cancelConnection:()=>{h({connection:{...Fh}})},updateConnection:S=>{h({connection:S})},reset:()=>h({...N2()})}},Object.is);function Ng({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:a,initialWidth:o,initialHeight:r,initialMinZoom:i,initialMaxZoom:l,initialFitViewOptions:u,fitView:c,nodeOrigin:f,nodeExtent:d,zIndexMode:s,children:h}){let[y]=(0,O.useState)(()=>E8({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,width:o,height:r,fitView:c,minZoom:i,maxZoom:l,fitViewOptions:u,nodeOrigin:f,nodeExtent:d,zIndexMode:s}));return(0,A.jsx)(VD,{value:y,children:(0,A.jsx)(c6,{children:(0,A.jsx)(_6,{children:h})})})}function _8({children:e,nodes:t,edges:n,defaultNodes:a,defaultEdges:o,width:r,height:i,fitView:l,fitViewOptions:u,minZoom:c,maxZoom:f,nodeOrigin:d,nodeExtent:s,zIndexMode:h}){return(0,O.useContext)(uf)?(0,A.jsx)(A.Fragment,{children:e}):(0,A.jsx)(Ng,{initialNodes:t,initialEdges:n,defaultNodes:a,defaultEdges:o,initialWidth:r,initialHeight:i,fitView:l,initialFitViewOptions:u,initialMinZoom:c,initialMaxZoom:f,nodeOrigin:d,nodeExtent:s,zIndexMode:h,children:e})}var N8={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function T8({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,className:o,nodeTypes:r,edgeTypes:i,onNodeClick:l,onEdgeClick:u,onInit:c,onMove:f,onMoveStart:d,onMoveEnd:s,onConnect:h,onConnectStart:y,onConnectEnd:x,onClickConnectStart:S,onClickConnectEnd:g,onNodeMouseEnter:p,onNodeMouseMove:m,onNodeMouseLeave:v,onNodeContextMenu:b,onNodeDoubleClick:E,onNodeDragStart:N,onNodeDrag:_,onNodeDragStop:T,onNodesDelete:D,onEdgesDelete:L,onDelete:k,onSelectionChange:V,onSelectionDragStart:w,onSelectionDrag:C,onSelectionDragStop:M,onSelectionContextMenu:z,onSelectionStart:R,onSelectionEnd:H,onBeforeDelete:G,connectionMode:q,connectionLineType:X=Dn.Bezier,connectionLineStyle:K,connectionLineComponent:Z,connectionLineContainerStyle:J,deleteKeyCode:re="Backspace",selectionKeyCode:j="Shift",selectionOnDrag:Y=!1,selectionMode:I=Xo.Full,panActivationKeyCode:ae="Space",multiSelectionKeyCode:te=fi()?"Meta":"Control",zoomActivationKeyCode:Q=fi()?"Meta":"Control",snapToGrid:P,snapGrid:ie,onlyRenderVisibleElements:ce=!1,selectNodesOnDrag:ge,nodesDraggable:Pe,autoPanOnNodeFocus:Hn,nodesConnectable:hn,nodesFocusable:gn,nodeOrigin:Bn=A2,edgesFocusable:pi,edgesReconnectable:to,elementsSelectable:no=!0,defaultViewport:nn=FD,minZoom:Ln=.5,maxZoom:Un=2,translateExtent:ao=ii,preventScrolling:df=!0,nodeExtent:mf,defaultMarkerColor:T_="#b1b1b7",zoomOnScroll:C_=!0,zoomOnPinch:M_=!0,panOnScroll:z_=!1,panOnScrollSpeed:A_=.5,panOnScrollMode:O_=ca.Free,zoomOnDoubleClick:D_=!0,panOnDrag:R_=!0,onPaneClick:H_,onPaneMouseEnter:B_,onPaneMouseMove:L_,onPaneMouseLeave:U_,onPaneScroll:V_,onPaneContextMenu:Y_,paneClickDistance:k_=1,nodeClickDistance:q_=0,children:G_,onReconnect:X_,onReconnectStart:Z_,onReconnectEnd:$_,onEdgeContextMenu:I_,onEdgeDoubleClick:Q_,onEdgeMouseEnter:j_,onEdgeMouseMove:K_,onEdgeMouseLeave:J_,reconnectRadius:F_=10,onNodesChange:P_,onEdgesChange:W_,noDragClassName:eN="nodrag",noWheelClassName:tN="nowheel",noPanClassName:Ag="nopan",fitView:Og,fitViewOptions:Dg,connectOnClick:nN,attributionPosition:aN,proOptions:oN,defaultEdgeOptions:rN,elevateNodesOnSelect:iN=!0,elevateEdgesOnSelect:lN=!1,disableKeyboardA11y:Rg=!1,autoPanOnConnect:uN,autoPanOnNodeDrag:cN,autoPanOnSelection:sN=!0,autoPanSpeed:fN,connectionRadius:dN,isValidConnection:mN,onError:hN,style:gN,id:Hg,nodeDragThreshold:pN,connectionDragThreshold:yN,viewport:vN,onViewportChange:bN,width:xN,height:SN,colorMode:wN="light",debug:EN,onScroll:Bg,ariaLabelConfig:_N,zIndexMode:Lg="basic",...NN},TN){let hf=Hg||"1",CN=t6(wN),MN=(0,O.useCallback)(Ug=>{Ug.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Bg?.(Ug)},[Bg]);return(0,A.jsx)("div",{"data-testid":"rf__wrapper",...NN,onScroll:MN,style:{...gN,...N8},ref:TN,className:Be(["react-flow",o,CN]),id:Hg,role:"application",children:(0,A.jsxs)(_8,{nodes:e,edges:t,width:xN,height:SN,fitView:Og,fitViewOptions:Dg,minZoom:Ln,maxZoom:Un,nodeOrigin:Bn,nodeExtent:mf,zIndexMode:Lg,children:[(0,A.jsx)(e6,{nodes:e,edges:t,defaultNodes:n,defaultEdges:a,onConnect:h,onConnectStart:y,onConnectEnd:x,onClickConnectStart:S,onClickConnectEnd:g,nodesDraggable:Pe,autoPanOnNodeFocus:Hn,nodesConnectable:hn,nodesFocusable:gn,edgesFocusable:pi,edgesReconnectable:to,elementsSelectable:no,elevateNodesOnSelect:iN,elevateEdgesOnSelect:lN,minZoom:Ln,maxZoom:Un,nodeExtent:mf,onNodesChange:P_,onEdgesChange:W_,snapToGrid:P,snapGrid:ie,connectionMode:q,translateExtent:ao,connectOnClick:nN,defaultEdgeOptions:rN,fitView:Og,fitViewOptions:Dg,onNodesDelete:D,onEdgesDelete:L,onDelete:k,onNodeDragStart:N,onNodeDrag:_,onNodeDragStop:T,onSelectionDrag:C,onSelectionDragStart:w,onSelectionDragStop:M,onMove:f,onMoveStart:d,onMoveEnd:s,noPanClassName:Ag,nodeOrigin:Bn,rfId:hf,autoPanOnConnect:uN,autoPanOnNodeDrag:cN,autoPanSpeed:fN,onError:hN,connectionRadius:dN,isValidConnection:mN,selectNodesOnDrag:ge,nodeDragThreshold:pN,connectionDragThreshold:yN,onBeforeDelete:G,debug:EN,ariaLabelConfig:_N,zIndexMode:Lg}),(0,A.jsx)(S8,{onInit:c,onNodeClick:l,onEdgeClick:u,onNodeMouseEnter:p,onNodeMouseMove:m,onNodeMouseLeave:v,onNodeContextMenu:b,onNodeDoubleClick:E,nodeTypes:r,edgeTypes:i,connectionLineType:X,connectionLineStyle:K,connectionLineComponent:Z,connectionLineContainerStyle:J,selectionKeyCode:j,selectionOnDrag:Y,selectionMode:I,deleteKeyCode:re,multiSelectionKeyCode:te,panActivationKeyCode:ae,zoomActivationKeyCode:Q,onlyRenderVisibleElements:ce,defaultViewport:nn,translateExtent:ao,minZoom:Ln,maxZoom:Un,preventScrolling:df,zoomOnScroll:C_,zoomOnPinch:M_,zoomOnDoubleClick:D_,panOnScroll:z_,panOnScrollSpeed:A_,panOnScrollMode:O_,panOnDrag:R_,autoPanOnSelection:sN,onPaneClick:H_,onPaneMouseEnter:B_,onPaneMouseMove:L_,onPaneMouseLeave:U_,onPaneScroll:V_,onPaneContextMenu:Y_,paneClickDistance:k_,nodeClickDistance:q_,onSelectionContextMenu:z,onSelectionStart:R,onSelectionEnd:H,onReconnect:X_,onReconnectStart:Z_,onReconnectEnd:$_,onEdgeContextMenu:I_,onEdgeDoubleClick:Q_,onEdgeMouseEnter:j_,onEdgeMouseMove:K_,onEdgeMouseLeave:J_,reconnectRadius:F_,defaultMarkerColor:T_,noDragClassName:eN,noWheelClassName:tN,noPanClassName:Ag,rfId:hf,disableKeyboardA11y:Rg,nodeExtent:mf,viewport:vN,onViewportChange:bN,nodesDraggable:Pe}),(0,A.jsx)(JD,{onSelectionChange:V}),G_,(0,A.jsx)($D,{proOptions:oN,position:aN}),(0,A.jsx)(ZD,{rfId:hf,disableKeyboardA11y:Rg})]})})}var o_=D2(T8);var zV=kt.error014();function C8({dimensions:e,lineWidth:t,variant:n,className:a}){return(0,A.jsx)("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Be(["react-flow__background-pattern",n,a])})}function M8({radius:e,className:t}){return(0,A.jsx)("circle",{cx:e,cy:e,r:e,className:Be(["react-flow__background-pattern","dots",t])})}var Rn;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Rn||(Rn={}));var z8={[Rn.Dots]:1,[Rn.Lines]:1,[Rn.Cross]:6},A8=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function r_({id:e,variant:t=Rn.Dots,gap:n=20,size:a,lineWidth:o=1,offset:r=0,color:i,bgColor:l,style:u,className:c,patternClassName:f}){let d=(0,O.useRef)(null),{transform:s,patternId:h}=fe(A8,Ae),y=a||z8[t],x=t===Rn.Dots,S=t===Rn.Cross,g=Array.isArray(n)?n:[n,n],p=[g[0]*s[2]||1,g[1]*s[2]||1],m=y*s[2],v=Array.isArray(r)?r:[r,r],b=S?[m,m]:p,E=[v[0]*s[2]+b[0]/2,v[1]*s[2]+b[1]/2],N=`${h}${e||""}`;return(0,A.jsxs)("svg",{className:Be(["react-flow__background",c]),style:{...u,...sf,"--xy-background-color-props":l,"--xy-background-pattern-color-props":i},ref:d,"data-testid":"rf__background",children:[(0,A.jsx)("pattern",{id:N,x:s[0]%p[0],y:s[1]%p[1],width:p[0],height:p[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${E[0]},-${E[1]})`,children:x?(0,A.jsx)(M8,{radius:m/2,className:f}):(0,A.jsx)(C8,{dimensions:b,lineWidth:o,variant:t,className:f})}),(0,A.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${N})`})]})}r_.displayName="Background";var i_=(0,O.memo)(r_);function O8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,A.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function D8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,A.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function R8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,A.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 H8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,A.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 B8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,A.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 Wa({children:e,className:t,...n}){return(0,A.jsx)("button",{type:"button",className:Be(["react-flow__controls-button",t]),...n,children:e})}var L8=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function l_({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:a=!0,fitViewOptions:o,onZoomIn:r,onZoomOut:i,onFitView:l,onInteractiveChange:u,className:c,children:f,position:d="bottom-left",orientation:s="vertical","aria-label":h}){let y=Ce(),{isInteractive:x,minZoomReached:S,maxZoomReached:g,ariaLabelConfig:p}=fe(L8,Ae),{zoomIn:m,zoomOut:v,fitView:b}=Wl(),E=()=>{m(),r?.()},N=()=>{v(),i?.()},_=()=>{b(o),l?.()},T=()=>{y.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),u?.(!x)};return(0,A.jsxs)(cf,{className:Be(["react-flow__controls",s==="horizontal"?"horizontal":"vertical",c]),position:d,style:e,"data-testid":"rf__controls","aria-label":h??p["controls.ariaLabel"],children:[t&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Wa,{onClick:E,className:"react-flow__controls-zoomin",title:p["controls.zoomIn.ariaLabel"],"aria-label":p["controls.zoomIn.ariaLabel"],disabled:g,children:(0,A.jsx)(O8,{})}),(0,A.jsx)(Wa,{onClick:N,className:"react-flow__controls-zoomout",title:p["controls.zoomOut.ariaLabel"],"aria-label":p["controls.zoomOut.ariaLabel"],disabled:S,children:(0,A.jsx)(D8,{})})]}),n&&(0,A.jsx)(Wa,{className:"react-flow__controls-fitview",onClick:_,title:p["controls.fitView.ariaLabel"],"aria-label":p["controls.fitView.ariaLabel"],children:(0,A.jsx)(R8,{})}),a&&(0,A.jsx)(Wa,{className:"react-flow__controls-interactive",onClick:T,title:p["controls.interactive.ariaLabel"],"aria-label":p["controls.interactive.ariaLabel"],children:x?(0,A.jsx)(B8,{}):(0,A.jsx)(H8,{})}),f]})}l_.displayName="Controls";var u_=(0,O.memo)(l_);function U8({id:e,x:t,y:n,width:a,height:o,style:r,color:i,strokeColor:l,strokeWidth:u,className:c,borderRadius:f,shapeRendering:d,selected:s,onClick:h}){let{background:y,backgroundColor:x}=r||{},S=i||y||x;return(0,A.jsx)("rect",{className:Be(["react-flow__minimap-node",{selected:s},c]),x:t,y:n,rx:f,ry:f,width:a,height:o,style:{fill:S,stroke:l,strokeWidth:u},shapeRendering:d,onClick:h?g=>h(g,e):void 0})}var V8=(0,O.memo)(U8),Y8=e=>e.nodes.map(t=>t.id),Sg=e=>e instanceof Function?e:()=>e;function k8({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:a=5,nodeStrokeWidth:o,nodeComponent:r=V8,onClick:i}){let l=fe(Y8,Ae),u=Sg(t),c=Sg(e),f=Sg(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return(0,A.jsx)(A.Fragment,{children:l.map(s=>(0,A.jsx)(G8,{id:s,nodeColorFunc:u,nodeStrokeColorFunc:c,nodeClassNameFunc:f,nodeBorderRadius:a,nodeStrokeWidth:o,NodeComponent:r,onClick:i,shapeRendering:d},s))})}function q8({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:a,nodeBorderRadius:o,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:l,onClick:u}){let{node:c,x:f,y:d,width:s,height:h}=fe(y=>{let x=y.nodeLookup.get(e);if(!x)return{node:void 0,x:0,y:0,width:0,height:0};let S=x.internals.userNode,{x:g,y:p}=x.internals.positionAbsolute,{width:m,height:v}=tn(S);return{node:S,x:g,y:p,width:m,height:v}},Ae);return!c||c.hidden||!rg(c)?null:(0,A.jsx)(l,{x:f,y:d,width:s,height:h,style:c.style,selected:!!c.selected,className:a(c),color:t(c),borderRadius:o,strokeColor:n(c),strokeWidth:r,shapeRendering:i,onClick:u,id:c.id})}var G8=(0,O.memo)(q8),X8=(0,O.memo)(k8),Z8=200,$8=150,I8=e=>!e.hidden,Q8=e=>{let 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]},n=!1;for(let a of e.nodeLookup.values())if(!a.hidden){n=!0;break}return{viewBB:t,boundingRect:n?ng(li(e.nodeLookup,{filter:I8}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},T2=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,j8=(e,t)=>T2(e.viewBB,t.viewBB)&&T2(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,K8="react-flow__minimap-desc";function c_({style:e,className:t,nodeStrokeColor:n,nodeColor:a,nodeClassName:o="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:l,bgColor:u,maskColor:c,maskStrokeColor:f,maskStrokeWidth:d,position:s="bottom-right",onClick:h,onNodeClick:y,pannable:x=!1,zoomable:S=!1,ariaLabel:g,inversePan:p,zoomStep:m=1,offsetScale:v=5}){let b=Ce(),E=(0,O.useRef)(null),{boundingRect:N,panZoom:_,viewBB:T,rfId:D,translateExtent:L,flowWidth:k,flowHeight:V,ariaLabelConfig:w}=fe(Q8,j8),C=e?.width??Z8,M=e?.height??$8,z=N.width/C,R=N.height/M,H=Math.max(z,R),G=H*C,q=H*M,X=v*H,K=N.x-(G-N.width)/2-X,Z=N.y-(q-N.height)/2-X,J=G+X*2,re=q+X*2,j=`${K8}-${D}`,Y=(0,O.useRef)(0),I=(0,O.useRef)();Y.current=H,(0,O.useEffect)(()=>{let ie=b.getState().panZoom;if(E.current&&ie)return I.current=BE({domNode:E.current,panZoom:ie,getTransform:()=>b.getState().transform,getViewScale:()=>Y.current}),()=>{I.current?.destroy()}},[_]),(0,O.useEffect)(()=>{I.current?.update({translateExtent:L,width:k,height:V,inversePan:p,pannable:x,zoomStep:m,zoomable:S})},[x,S,p,m,L,k,V]);let ae=h?ie=>{let[ce,ge]=I.current?.pointer(ie)||[0,0];h(ie,{x:ce,y:ge})}:void 0,te=(0,O.useCallback)((ie,ce)=>{let ge=b.getState().nodeLookup.get(ce).internals.userNode;y?.(ie,ge)},[y]),Q=y?te:void 0,P=g??w["minimap.ariaLabel"];return(0,A.jsx)(cf,{position:s,style:{...e,"--xy-minimap-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*H:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof i=="number"?i:void 0},className:Be(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:(0,A.jsxs)("svg",{width:C,height:M,viewBox:`${K} ${Z} ${J} ${re}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":j,ref:E,onClick:ae,children:[P&&(0,A.jsx)("title",{id:j,children:P}),(0,A.jsx)(X8,{onClick:Q,nodeColor:a,nodeStrokeColor:n,nodeBorderRadius:r,nodeClassName:o,nodeStrokeWidth:i,nodeComponent:l}),(0,A.jsx)("path",{className:"react-flow__minimap-mask",d:`M${K-X},${Z-X}h${J+X*2}v${re+X*2}h${-J-X*2}z
|
|
554
|
-
M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}c_.displayName="MiniMap";var s_=(0,O.memo)(c_),J8=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,F8={[Pa.Line]:"right",[Pa.Handle]:"bottom-right"};function P8({nodeId:e,position:t,variant:n=Pa.Handle,className:a,style:o=void 0,children:r,color:i,minWidth:l=10,minHeight:u=10,maxWidth:c=Number.MAX_VALUE,maxHeight:f=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:s,autoScale:h=!0,shouldResize:y,onResizeStart:x,onResize:S,onResizeEnd:g}){let p=U2(),m=typeof e=="string"?e:p,v=Ce(),b=(0,O.useRef)(null),E=n===Pa.Handle,N=fe((0,O.useCallback)(J8(E&&h),[E,h]),Ae),_=(0,O.useRef)(null),T=t??F8[n];(0,O.useEffect)(()=>{if(!(!b.current||!m))return _.current||(_.current=kE({domNode:b.current,nodeId:m,getStoreItems:()=>{let{nodeLookup:L,transform:k,snapGrid:V,snapToGrid:w,nodeOrigin:C,domNode:M}=v.getState();return{nodeLookup:L,transform:k,snapGrid:V,snapToGrid:w,nodeOrigin:C,paneDomNode:M}},onChange:(L,k)=>{let{triggerNodeChanges:V,nodeLookup:w,parentLookup:C,nodeOrigin:M}=v.getState(),z=[],R={x:L.x,y:L.y},H=w.get(m);if(H&&H.expandParent&&H.parentId){let G=H.origin??M,q=L.width??H.measured.width??0,X=L.height??H.measured.height??0,K={id:H.id,parentId:H.parentId,rect:{width:q,height:X,...ig({x:L.x??H.position.x,y:L.y??H.position.y},{width:q,height:X},H.parentId,w,G)}},Z=tf([K],w,C,M);z.push(...Z),R.x=L.x?Math.max(G[0]*q,L.x):void 0,R.y=L.y?Math.max(G[1]*X,L.y):void 0}if(R.x!==void 0&&R.y!==void 0){let G={id:m,type:"position",position:{...R}};z.push(G)}if(L.width!==void 0&&L.height!==void 0){let q={id:m,type:"dimensions",resizing:!0,setAttributes:s?s==="horizontal"?"width":"height":!0,dimensions:{width:L.width,height:L.height}};z.push(q)}for(let G of k){let q={...G,type:"position"};z.push(q)}V(z)},onEnd:({width:L,height:k})=>{let V={id:m,type:"dimensions",resizing:!1,dimensions:{width:L,height:k}};v.getState().triggerNodeChanges([V])}})),_.current.update({controlPosition:T,boundaries:{minWidth:l,minHeight:u,maxWidth:c,maxHeight:f},keepAspectRatio:d,resizeDirection:s,onResizeStart:x,onResize:S,onResizeEnd:g,shouldResize:y}),()=>{_.current?.destroy()}},[T,l,u,c,f,d,x,S,g,y]);let D=T.split("-");return(0,A.jsx)("div",{className:Be(["react-flow__resize-control","nodrag",...D,n,a]),ref:b,style:{...o,scale:N,...i&&{[E?"backgroundColor":"borderColor"]:i}},children:r})}var AV=(0,O.memo)(P8);var Fe=an(da(),1);var eu=e=>Math.round(e*10)/10;var f_=(e,t,n,a,o,r)=>{let i=(s,h)=>`${eu(s)},${eu(h)}`;if(Math.abs(t-a)<.6)return`M${i(e,t)} L${i(o,a)}`;let l=n>=e?1:-1,u=o>=n?1:-1,c=a>t?1:-1,f=Math.min(r,Math.abs(n-e),Math.abs(a-t)/2),d=Math.min(r,Math.abs(o-n),Math.abs(a-t)/2);return[`M${i(e,t)}`,`L${i(n-l*f,t)}`,`Q${i(n,t)} ${i(n,t+c*f)}`,`L${i(n,a-c*d)}`,`Q${i(n,a)} ${i(n+u*d,a)}`,`L${i(o,a)}`].join(" ")};var W8=["string","number","bool","json","timestamp"];var GV=`pk / fk(<table>) / fk[](<table>) / enum("a"|"b") / ${W8.join(" / ")}`;var d_=(e,t)=>{let n=new Map(e.map(a=>[a.name,a]));return t.map(a=>{let o=n.get(a.from),r=n.get(a.to),i=o!=null&&r!=null&&r.x+r.w/2>=o.x+o.w/2;return{id:`${a.from}.${a.field}-${a.fieldIndex}\u2192${a.to}`,from:a.from,to:a.to,fieldIndex:a.fieldIndex,list:a.list,sourceSide:i?"r":"l",targetSide:i?"l":"r"}})},Mt={headerH:26,rowH:19,padX:11,padBottom:9,gapNameType:18,minW:158,gapY:22,gapInnerX:30,gapGroupX:108,gapGroupY:40,framePad:14,frameLabelH:22,maxColH:1020,lane:10,corner:7,margin:16,legendH:24,radius:10,baselineDrop:4},XV=Mt.margin,ZV=Mt.gapGroupY,$V=Mt.frameLabelH,IV=Mt.framePad;var eR=(e,t)=>{let n=i=>`${eu(i.x)},${eu(i.y)}`,a=e[0],o=e[e.length-1];if(a==null||o==null)return"";let r=[`M${n(a)}`];for(let i=1;i<e.length-1;i+=1){let l=e[i-1],u=e[i],c=e[i+1];if(l==null||u==null||c==null)continue;let f=Math.sign(u.x-l.x),d=Math.sign(u.y-l.y),s=Math.sign(c.x-u.x),h=Math.sign(c.y-u.y),y=Math.abs(u.x-l.x)+Math.abs(u.y-l.y),x=Math.abs(c.x-u.x)+Math.abs(c.y-u.y),S=Math.min(t,y/2,x/2),g={x:u.x-f*S,y:u.y-d*S},p={x:u.x+s*S,y:u.y+h*S};r.push(`L${n(g)}`,`Q${n(u)} ${n(p)}`)}return r.push(`L${n(o)}`),r.join(" ")};var tR=(e,t)=>{let n=new Map(e.map(b=>[b.name,b.index])),a=new Map(e.map(b=>[b.index,b])),o=new Map;for(let b of e)o.set(b.x,Math.max(o.get(b.x)??0,b.x+b.w));let r=[...o.keys()].sort((b,E)=>b-E),i=new Map(r.map((b,E)=>[b,E])),l=b=>{let E=o.get(b)??b,N=r.find(_=>_>b);return[E,N??E+Mt.gapInnerX]},u=b=>{let E=r.filter(_=>_<b),N=E[E.length-1];return[N==null?b-Mt.gapInnerX:o.get(N)??b,b]},c=([b,E])=>(b+E)/2,f=([b,E])=>Math.max(0,Math.min(12,(E-b)/2-6)),d=[];for(let b of t){let E=n.get(b.from),N=n.get(b.to);if(E==null||N==null)continue;let _=a.get(E),T=a.get(N);if(_==null||T==null)continue;let L=_.rows.find(R=>R.fieldIndex===b.fieldIndex)?.y??_.y+_.headerH/2,k=T.x>=_.x+_.w,V=!k&&T.x+T.w>_.x,w=k||V?l(_.x):u(_.x),C=k?u(T.x):l(T.x),M=i.get(_.x)??0,z=i.get(T.x)??0;d.push({edge:b,from:E,to:N,sx:k||V?_.x+_.w:_.x,sy:L,tx:k?T.x:T.x+T.w,side:k?"l":"r",bundle:`${N}:${k?"l":"r"}:${_.x}`,base:c(w),room:f(w),long:Math.abs(M-z)>1,targetBase:c(C)})}let s=new Map;for(let b of d){let E=s.get(b.bundle);E?E.push(b):s.set(b.bundle,[b])}let h=new Map,y=new Map;for(let[b,E]of s){let N=E[0];if(N==null)continue;let _=`${Math.round(N.base)}`,T=y.get(_);T?T.push(b):y.set(_,[b])}for(let b of y.values())b.forEach((E,N)=>{let _=s.get(E)?.[0];if(_==null)return;let T=b.length<=1?0:Math.min(Mt.lane,_.room*2/(b.length-1)||0);h.set(E,_.base+(N-(b.length-1)/2)*T)});let x=new Map,S=new Map;for(let[b,E]of s){let N=E[0];if(N==null)continue;let _=`${N.to}:${N.side}`,T=S.get(_);T?T.push(b):S.set(_,[b])}for(let b of S.values())b.forEach((E,N)=>{let _=s.get(E)?.[0],T=_==null?void 0:a.get(_.to);if(T==null)return;let D=Math.min(6,(T.h-Mt.headerH)/Math.max(1,b.length));x.set(E,T.y+T.headerH/2+(N-(b.length-1)/2)*D)});let g=e.reduce((b,E)=>Math.max(b,E.y+E.h),0),p=new Map,m=[...s.entries()].filter(([,b])=>b[0]?.long===!0);m.forEach(([b],E)=>{p.set(b,g+Mt.gapY+E*Mt.lane)});let v=m.length===0?g:g+Mt.gapY+(m.length-1)*Mt.lane;return{edges:d.map(b=>{let E=h.get(b.bundle)??b.base,N=x.get(b.bundle)??b.sy,_=p.get(b.bundle);return{from:b.from,to:b.to,fieldIndex:b.edge.fieldIndex,list:b.edge.list,d:_==null?f_(b.sx,b.sy,E,N,b.tx,Mt.corner):eR([{x:b.sx,y:b.sy},{x:E,y:b.sy},{x:E,y:_},{x:b.targetBase,y:_},{x:b.targetBase,y:N},{x:b.tx,y:N}],Mt.corner)}}),bottom:v}},m_=(e,t)=>tR(e,t).edges;var W=an(Pr(),1),Tg="docs:sg:",ff=14,tu="var(--doc-fg, #000000)",y_="var(--doc-fg-2, #2a3140)",au="var(--doc-fg-3, #5b6271)",v_="var(--doc-fg-4, #9099a8)",eo="var(--doc-border, #dde3eb)",Cg="var(--doc-panel, #ffffff)",gi="var(--doc-accent-2, #0277bd)",nR="var(--doc-accent, #1b4994)",nu="ui-monospace,SFMono-Regular,Menlo,Consolas,monospace",aR=e=>{try{let t=window.localStorage.getItem(`${Tg}${e}`);return t==null?{}:JSON.parse(t)}catch{return{}}},h_=(e,t)=>{try{if(Object.keys(t).length===0){window.localStorage.removeItem(`${Tg}${e}`);return}window.localStorage.setItem(`${Tg}${e}`,JSON.stringify(t))}catch{}},oR=({id:e,data:t,style:n,markerEnd:a,interactionWidth:o})=>(0,W.jsx)(hi,{id:e,path:t?.path??"",style:n,markerEnd:a,interactionWidth:o}),rR=e=>({fontSize:10.5,color:e==="pk"?gi:e==="scalar"?au:nR,whiteSpace:"nowrap"}),iR=({data:e,selected:t})=>{let{box:n,dim:a}=e;return(0,W.jsxs)("div",{style:{width:n.w,minHeight:n.h,fontFamily:nu,background:Cg,border:`1px solid ${t?gi:eo}`,borderRadius:10,boxShadow:t?`0 0 0 1px ${gi}`:"none",opacity:a?.45:1,overflow:"hidden",cursor:"grab"},children:[(0,W.jsx)("div",{style:{height:n.headerH,lineHeight:`${n.headerH}px`,padding:"0 11px",fontSize:12.5,color:tu,background:`color-mix(in srgb, ${gi} 10%, transparent)`,borderBottom:`1px solid ${eo}`},children:n.name}),n.rows.map(o=>o.kind==="note"?(0,W.jsx)("div",{style:{padding:"0 11px",fontSize:10.5,lineHeight:"19px",color:v_},children:o.label},`n:${o.label}`):(0,W.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",gap:14,padding:"0 11px",lineHeight:"19px"},children:[(0,W.jsx)("span",{style:{fontSize:11.5,color:y_,whiteSpace:"nowrap"},children:o.label}),(0,W.jsx)("span",{style:rR(o.kind),children:o.type})]},`f:${o.label}`)),n.rows.filter(o=>o.fieldIndex!=null&&(o.kind==="fk"||o.kind==="fkList")).flatMap(o=>[(0,W.jsx)(sa,{id:`f${o.fieldIndex}r`,type:"source",position:$.Right,style:{top:o.dy,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1},`sr${o.fieldIndex}`),(0,W.jsx)(sa,{id:`f${o.fieldIndex}l`,type:"source",position:$.Left,style:{top:o.dy,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1},`sl${o.fieldIndex}`)]),(0,W.jsx)(sa,{id:"tl",type:"target",position:$.Left,style:{top:n.headerH/2,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1}),(0,W.jsx)(sa,{id:"tr",type:"target",position:$.Right,style:{top:n.headerH/2,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1})]})},lR=({data:e,width:t,height:n})=>(0,W.jsxs)("div",{style:{width:t,height:n,position:"relative",pointerEvents:"none"},children:[(0,W.jsx)("div",{style:{position:"absolute",inset:0,border:`1px dashed ${eo}`,borderRadius:14,background:`color-mix(in srgb, ${tu} 3%, transparent)`}}),(0,W.jsx)("div",{style:{position:"absolute",top:-18,left:4,fontFamily:nu,fontSize:11.5,color:au},children:e.label})]}),uR={sgTable:iR,sgFrame:lR},cR={sgPath:oR},sR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M4 4h7v2H6v5H4V4zm9 0h7v7h-2V6h-5V4zM4 13h2v5h5v2H4v-7zm14 0h2v7h-7v-2h5v-5z"})}),fR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M6 10h5V5H9v3H6v2zm7-5v5h5V8h-3V5h-2zM6 14v2h3v3h2v-5H6zm7 0v5h2v-3h3v-2h-5z"})}),dR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M12 5V2L7 6l5 4V7a5 5 0 1 1-5 5H5a7 7 0 1 0 7-7z"})}),mR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})}),g_={font:"inherit",fontSize:11,fontFamily:nu,color:au,background:"transparent",border:`1px solid ${eo}`,borderRadius:6,padding:"2px 8px",cursor:"pointer"},hR=({source:e,onClose:t})=>{let[n,a]=(0,Fe.useState)(!1),o=(0,Fe.useCallback)(()=>{navigator.clipboard?.writeText(e).then(()=>{a(!0),window.setTimeout(()=>a(!1),1200)}).catch(()=>{})},[e]);return(0,W.jsxs)("div",{style:{position:"absolute",inset:0,zIndex:6,background:Cg,display:"flex",flexDirection:"column"},children:[(0,W.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"6px 10px",borderBottom:`1px solid ${eo}`},children:[(0,W.jsx)("span",{style:{fontFamily:nu,fontSize:11,color:au},children:"table DSL"}),(0,W.jsx)("span",{style:{flex:1}}),(0,W.jsx)("button",{type:"button",onClick:o,style:g_,title:"copy",children:n?"copied":"copy"}),(0,W.jsx)("button",{type:"button",onClick:t,style:g_,title:"Back to graph (Esc)",children:"graph"})]}),(0,W.jsx)("pre",{style:{margin:0,flex:1,overflow:"auto",padding:"12px 14px",fontFamily:nu,fontSize:12,lineHeight:1.65,color:y_,whiteSpace:"pre"},children:e})]})},b_=(e,t)=>{let n=e.filter(o=>o.type==="sgTable"),a=new Map(n.map(o=>[o.id,o]));return e.map(o=>{if(o.type!=="sgFrame")return o;let r=t.groups[Number(o.id.slice(6))],i=(r?.members??[]).map(u=>a.get(u)).filter(u=>u!=null);if(r==null||i.length===0)return o;let l=i.reduce((u,c)=>({x1:Math.min(u.x1,c.position.x),y1:Math.min(u.y1,c.position.y),x2:Math.max(u.x2,c.position.x+c.data.box.w),y2:Math.max(u.y2,c.position.y+c.data.box.h)}),{x1:Number.POSITIVE_INFINITY,y1:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY});return{...o,position:{x:l.x1-ff,y:l.y1-ff},width:l.x2-l.x1+ff*2,height:l.y2-l.y1+ff*2}})},p_=(e,t)=>{let n=e.groups.map((o,r)=>({id:`frame:${r}`,type:"sgFrame",position:{x:o.x,y:o.y},width:o.w,height:o.h,data:{label:o.label},draggable:!1,selectable:!1,focusable:!1,zIndex:-1})),a=e.nodes.map(o=>{let r=t[o.name];return{id:o.name,type:"sgTable",position:r==null?{x:o.x,y:o.y}:{x:r[0],y:r[1]},data:{box:o,dim:!1}}});return b_([...n,...a],e)},gR=({data:e,height:t})=>{let{fitView:n}=Wl(),[a,o]=(0,Fe.useState)(()=>p_(e,aR(e.uid))),[r,i]=(0,Fe.useState)(null),[l,u]=(0,Fe.useState)(!1),[c,f]=(0,Fe.useState)(!1),d=(0,Fe.useCallback)(g=>{o(p=>b_(Eg(g,p),e))},[e]);(0,Fe.useEffect)(()=>{o(g=>{let p=new Set;if(r!=null){p.add(r);for(let m of e.edges)m.from===r&&p.add(m.to),m.to===r&&p.add(m.from)}return g.map(m=>{if(m.type!=="sgTable")return m;let v=r!=null&&!p.has(m.id);return v===m.data.dim?m:{...m,data:{...m.data,dim:v}}})})},[r,e.edges]);let s=(0,Fe.useMemo)(()=>{let p=a.filter(v=>v.type==="sgTable").map(v=>({name:v.id,index:v.data.box.index,x:v.position.x,y:v.position.y,w:v.data.box.w,h:v.data.box.h,headerH:v.data.box.headerH,rows:v.data.box.rows.map(b=>({y:v.position.y+b.dy,fieldIndex:b.fieldIndex}))})),m=m_(p,e.edges);return d_(p,e.edges).map((v,b)=>{let E=r!=null&&(v.from===r||v.to===r);return{id:v.id,source:v.from,target:v.to,sourceHandle:`f${v.fieldIndex}${v.sourceSide}`,targetHandle:v.targetSide==="l"?"tl":"tr",type:"sgPath",data:{path:m[b]?.d??""},markerEnd:{type:Ja.ArrowClosed,width:14,height:14,color:E?gi:au},style:{stroke:E?gi:`color-mix(in srgb, ${tu} 30%, transparent)`,strokeWidth:E?1.8:1.2,strokeDasharray:v.list?"5 4":void 0,opacity:r==null||E?1:.12},zIndex:E?1:0}})},[a,e.edges,r]),h=(0,Fe.useCallback)(()=>{o(g=>{let p={};for(let m of g)m.type==="sgTable"&&(p[m.id]=[Math.round(m.position.x),Math.round(m.position.y)]);return h_(e.uid,p),g})},[e.uid]),y=(0,Fe.useMemo)(()=>l?{padding:.04,minZoom:.3,maxZoom:1.4,duration:150}:{padding:.06,minZoom:.55,maxZoom:1,duration:150},[l]),x=(0,Fe.useCallback)(()=>{h_(e.uid,{}),o(p_(e,{})),window.setTimeout(()=>n(y),0)},[e,n,y]);(0,Fe.useEffect)(()=>{if(!l&&!c)return;let g=p=>{if(p.key==="Escape"){if(c){f(!1);return}u(!1)}};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[l,c]),(0,Fe.useEffect)(()=>{let g=window.setTimeout(()=>n(y),l?60:20);return()=>window.clearTimeout(g)},[l,n,y]);let S=l?{position:"fixed",inset:0,zIndex:9998,background:"var(--doc-bg, #ffffff)"}:{position:"relative",width:"100%",height:t??"min(62vh, 520px)",border:`1px solid ${eo}`,borderRadius:10,overflow:"hidden"};return(0,W.jsxs)("div",{style:S,children:[c&&e.source!=null?(0,W.jsx)(hR,{source:e.source,onClose:()=>f(!1)}):null,(0,W.jsxs)(o_,{nodes:a,edges:s,nodeTypes:uR,edgeTypes:cR,onNodesChange:d,onNodeDragStop:h,onNodeMouseEnter:(g,p)=>i(p.type==="sgTable"?p.id:null),onNodeMouseLeave:()=>i(null),fitView:!0,fitViewOptions:y,minZoom:.1,maxZoom:4,nodesConnectable:!1,edgesFocusable:!1,proOptions:{hideAttribution:!0},style:{background:"transparent"},children:[(0,W.jsx)(i_,{variant:Rn.Dots,gap:22,size:1,color:v_}),(0,W.jsxs)(u_,{showInteractive:!1,children:[(0,W.jsx)(Wa,{onClick:()=>u(g=>!g),title:l?"Close expanded view (Esc)":"Expand view",children:l?(0,W.jsx)(fR,{}):(0,W.jsx)(sR,{})}),(0,W.jsx)(Wa,{onClick:x,title:"Reset layout",children:(0,W.jsx)(dR,{})}),e.source==null?null:(0,W.jsx)(Wa,{onClick:()=>f(!0),title:"Show raw tables (DSL)",children:(0,W.jsx)(mR,{})})]}),(0,W.jsx)(s_,{pannable:!0,zoomable:!0,nodeStrokeWidth:2,bgColor:Cg,maskColor:`color-mix(in srgb, ${tu} 8%, transparent)`,nodeColor:`color-mix(in srgb, ${tu} 22%, transparent)`,nodeStrokeColor:eo,style:{width:150,height:96,border:`1px solid ${eo}`,borderRadius:6}})]})]})},x_=e=>(0,W.jsx)(Ng,{children:(0,W.jsx)(gR,{...e})});var __=an(Pr(),1),Mg="sgMounted",w_=e=>{let t=e.dataset.sgLayout;if(t==null||e.dataset[Mg]==="1")return;let n;try{n=JSON.parse(t)}catch{return}if(n.nodes.length===0)return;e.dataset[Mg]="1",tS(e.ownerDocument);let a=e.ownerDocument.createElement("div");a.className="doc-sg-flow",e.parentElement?.insertBefore(a,e),e.style.display="none";let o=(0,S_.createRoot)(a);return o.render((0,__.jsx)(x_,{data:n})),()=>{o?.unmount(),o=void 0,a.remove(),e.style.removeProperty("display"),delete e.dataset[Mg]}},E_=(e=document)=>{let t=[];for(let n of e.querySelectorAll("svg[data-sg-layout]")){let a=w_(n);a!=null&&t.push(a)}return()=>{for(let n of t)n()}},zg=(e=document)=>{let t=new Map,n=new Set,a=new IntersectionObserver(i=>{for(let l of i){if(!l.isIntersecting)continue;let u=l.target;if(a.unobserve(u),n.delete(u),!e.contains(u))continue;let c=w_(u);c&&t.set(u,c)}},{rootMargin:"200px"}),o=i=>{let l=[...i.querySelectorAll("svg[data-sg-layout]")];i instanceof SVGSVGElement&&i.matches("svg[data-sg-layout]")&&l.unshift(i);for(let u of l)t.has(u)||n.has(u)||(n.add(u),a.observe(u))};o(e);let r=new MutationObserver(i=>{for(let l of n)e.contains(l)||(n.delete(l),a.unobserve(l));for(let[l,u]of t)e.contains(l)||(u(),t.delete(l));for(let l of i)for(let u of l.addedNodes)u instanceof Element&&e.contains(u)&&o(u)});return r.observe(e instanceof Document?e.body??e:e,{childList:!0,subtree:!0}),()=>{r.disconnect(),a.disconnect(),n.clear();for(let i of t.values())i();t.clear()}};var N_=()=>{let e=document.querySelector("main")??document;zg(e),D0(e)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",N_,{once:!0}):N_();window.docsSchemaGraph={mount:E_,watch:zg};export{E_ as mountSchemaGraphs,zg as watchSchemaGraphs};
|
|
553
|
+
`)),f=c.reduce((d,s)=>d.concat(...s),[]);return[c,f]}return[[],[]]},[e]);return(0,O.useEffect)(()=>{let u=t?.target??u2,c=t?.actInsideInputWithModifier??!0;if(e!==null){let f=h=>{if(o.current=h.ctrlKey||h.metaKey||h.shiftKey||h.altKey,(!o.current||o.current&&!c)&&fg(h))return!1;let x=s2(h.code,l);if(r.current.add(h[x]),c2(i,r.current,!1)){let S=h.composedPath?.()?.[0]||h.target,g=S?.nodeName==="BUTTON"||S?.nodeName==="A";t.preventDefault!==!1&&(o.current||!g)&&h.preventDefault(),a(!0)}},d=h=>{let y=s2(h.code,l);c2(i,r.current,!0)?(a(!1),r.current.clear()):r.current.delete(h[y]),h.key==="Meta"&&r.current.clear(),o.current=!1},s=()=>{r.current.clear(),a(!1)};return u?.addEventListener("keydown",f),u?.addEventListener("keyup",d),window.addEventListener("blur",s),window.addEventListener("contextmenu",s),()=>{u?.removeEventListener("keydown",f),u?.removeEventListener("keyup",d),window.removeEventListener("blur",s),window.removeEventListener("contextmenu",s)}}},[e,a]),n}function c2(e,t,n){return e.filter(a=>n||a.length===t.size).some(a=>a.every(o=>t.has(o)))}function s2(e,t){return t.includes(e)?"code":"key"}var l6=()=>{let e=Ce();return(0,O.useMemo)(()=>({zoomIn:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):!1},zoomOut:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):!1},zoomTo:async(t,n)=>{let{panZoom:a}=e.getState();return a?a.scaleTo(t,n):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{let{transform:[a,o,r],panZoom:i}=e.getState();return i?(await i.setViewport({x:t.x??a,y:t.y??o,zoom:t.zoom??r},n),!0):!1},getViewport:()=>{let[t,n,a]=e.getState().transform;return{x:t,y:n,zoom:a}},setCenter:async(t,n,a)=>e.getState().setCenter(t,n,a),fitBounds:async(t,n)=>{let{width:a,height:o,minZoom:r,maxZoom:i,panZoom:l}=e.getState(),u=Jl(t,a,o,r,i,n?.padding??.1);return l?(await l.setViewport(u,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),!0):!1},screenToFlowPosition:(t,n={})=>{let{transform:a,snapGrid:o,snapToGrid:r,domNode:i}=e.getState();if(!i)return t;let{x:l,y:u}=i.getBoundingClientRect(),c={x:t.x-l,y:t.y-u},f=n.snapGrid??o,d=n.snapToGrid??r;return si(c,a,d,f)},flowToScreenPosition:t=>{let{transform:n,domNode:a}=e.getState();if(!a)return t;let{x:o,y:r}=a.getBoundingClientRect(),i=$o(t,n);return{x:i.x+o,y:i.y+r}}}),[])};function R2(e,t){let n=[],a=new Map,o=[];for(let r of e)if(r.type==="add"){o.push(r);continue}else if(r.type==="remove"||r.type==="replace")a.set(r.id,[r]);else{let i=a.get(r.id);i?i.push(r):a.set(r.id,[r])}for(let r of t){let i=a.get(r.id);if(!i){n.push(r);continue}if(i[0].type==="remove")continue;if(i[0].type==="replace"){n.push({...i[0].item});continue}let l={...r};for(let u of i)u6(u,l);n.push(l)}return o.length&&o.forEach(r=>{r.index!==void 0?n.splice(r.index,0,{...r.item}):n.push({...r.item})}),n}function u6(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={...e.dimensions},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 _g(e,t){return R2(e,t)}function c6(e,t){return R2(e,t)}function Qo(e,t){return{id:e,type:"select",selected:t}}function mi(e,t=new Set,n=!1){let a=[];for(let[o,r]of e){let i=t.has(o);!(r.selected===void 0&&!i)&&r.selected!==i&&(n&&(r.selected=i),a.push(Qo(r.id,i)))}return a}function f2({items:e=[],lookup:t}){let n=[],a=new Map(e.map(o=>[o.id,o]));for(let[o,r]of e.entries()){let i=t.get(r.id),l=i?.internals?.userNode??i;l!==void 0&&l!==r&&n.push({id:r.id,item:r,type:"replace"}),l===void 0&&n.push({item:r,type:"add",index:o})}for(let[o]of t)a.get(o)===void 0&&n.push({id:o,type:"remove"});return n}function d2(e){return{id:e.id,type:"remove"}}var s6=rg("React Flow","https://reactflow.dev/");function f6(e,t,n={}){return EE(e,t,{...n,onError:n.onError??s6})}var m2=e=>mE(e),d6=e=>Wh(e);function H2(e){return(0,O.forwardRef)(e)}var B2=typeof window<"u"?O.useLayoutEffect:O.useEffect;function h2(e){let[t,n]=(0,O.useState)(BigInt(0)),[a]=(0,O.useState)(()=>m6(()=>n(o=>o+BigInt(1))));return B2(()=>{let o=a.get();o.length&&(e(o),a.reset())},[t]),a}function m6(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}var L2=(0,O.createContext)(null);function h6({children:e}){let t=Ce(),n=(0,O.useCallback)(l=>{let{nodes:u=[],setNodes:c,hasDefaultNodes:f,onNodesChange:d,nodeLookup:s,fitViewQueued:h,onNodesChangeMiddlewareMap:y}=t.getState(),x=u;for(let g of l)x=typeof g=="function"?g(x):g;let S=f2({items:x,lookup:s});for(let g of y.values())S=g(S);f&&c(x),S.length>0?d?.(S):h&&window.requestAnimationFrame(()=>{let{fitViewQueued:g,nodes:p,setNodes:m}=t.getState();g&&m(p)})},[]),a=h2(n),o=(0,O.useCallback)(l=>{let{edges:u=[],setEdges:c,hasDefaultEdges:f,onEdgesChange:d,edgeLookup:s}=t.getState(),h=u;for(let y of l)h=typeof y=="function"?y(h):y;f?c(h):d&&d(f2({items:h,lookup:s}))},[]),r=h2(o),i=(0,O.useMemo)(()=>({nodeQueue:a,edgeQueue:r}),[]);return(0,A.jsx)(L2.Provider,{value:i,children:e})}function g6(){let e=(0,O.useContext)(L2);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}var p6=e=>!!e.panZoom;function Wl(){let e=l6(),t=Ce(),n=g6(),a=fe(p6),o=(0,O.useMemo)(()=>{let r=d=>t.getState().nodeLookup.get(d),i=d=>{n.nodeQueue.push(d)},l=d=>{n.edgeQueue.push(d)},u=d=>{let{nodeLookup:s,nodeOrigin:h}=t.getState(),y=m2(d)?d:s.get(d.id),x=y.parentId?lg(y.position,y.measured,y.parentId,s,h):y.position,S={...y,position:x,width:y.measured?.width??y.width,height:y.measured?.height??y.height};return ui(S)},c=(d,s,h={replace:!1})=>{i(y=>y.map(x=>{if(x.id===d){let S=typeof s=="function"?s(x):s;return h.replace&&m2(S)?S:{...x,...S}}return x}))},f=(d,s,h={replace:!1})=>{l(y=>y.map(x=>{if(x.id===d){let S=typeof s=="function"?s(x):s;return h.replace&&d6(S)?S:{...x,...S}}return x}))};return{getNodes:()=>t.getState().nodes.map(d=>({...d})),getNode:d=>r(d)?.internals.userNode,getInternalNode:r,getEdges:()=>{let{edges:d=[]}=t.getState();return d.map(s=>({...s}))},getEdge:d=>t.getState().edgeLookup.get(d),setNodes:i,setEdges:l,addNodes:d=>{let s=Array.isArray(d)?d:[d];n.nodeQueue.push(h=>[...h,...s])},addEdges:d=>{let s=Array.isArray(d)?d:[d];n.edgeQueue.push(h=>[...h,...s])},toObject:()=>{let{nodes:d=[],edges:s=[],transform:h}=t.getState(),[y,x,S]=h;return{nodes:d.map(g=>({...g})),edges:s.map(g=>({...g})),viewport:{x:y,y:x,zoom:S}}},deleteElements:async({nodes:d=[],edges:s=[]})=>{let{nodes:h,edges:y,onNodesDelete:x,onEdgesDelete:S,triggerNodeChanges:g,triggerEdgeChanges:p,onDelete:m,onBeforeDelete:v}=t.getState(),{nodes:b,edges:E}=await pE({nodesToRemove:d,edgesToRemove:s,nodes:h,edges:y,onBeforeDelete:v}),N=E.length>0,_=b.length>0;if(N){let T=E.map(d2);S?.(E),p(T)}if(_){let T=b.map(d2);x?.(b),g(T)}return(_||N)&&m?.({nodes:b,edges:E}),{deletedNodes:b,deletedEdges:E}},getIntersectingNodes:(d,s=!0,h)=>{let y=og(d),x=y?d:u(d),S=h!==void 0;return x?(h||t.getState().nodes).filter(g=>{let p=t.getState().nodeLookup.get(g.id);if(p&&!y&&(g.id===d.id||!p.internals.positionAbsolute))return!1;let m=ui(S?g:p),v=Kl(m,x);return s&&v>0||v>=m.width*m.height||v>=x.width*x.height}):[]},isNodeIntersecting:(d,s,h=!0)=>{let x=og(d)?d:u(d);if(!x)return!1;let S=Kl(x,s);return h&&S>0||S>=s.width*s.height||S>=x.width*x.height},updateNode:c,updateNodeData:(d,s,h={replace:!1})=>{c(d,y=>{let x=typeof s=="function"?s(y):s;return h.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},h)},updateEdge:f,updateEdgeData:(d,s,h={replace:!1})=>{f(d,y=>{let x=typeof s=="function"?s(y):s;return h.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},h)},getNodesBounds:d=>{let{nodeLookup:s,nodeOrigin:h}=t.getState();return tg(d,{nodeLookup:s,nodeOrigin:h})},getHandleConnections:({type:d,id:s,nodeId:h})=>Array.from(t.getState().connectionLookup.get(`${h}-${d}${s?`-${s}`:""}`)?.values()??[]),getNodeConnections:({type:d,handleId:s,nodeId:h})=>Array.from(t.getState().connectionLookup.get(`${h}${d?s?`-${d}-${s}`:`-${d}`:""}`)?.values()??[]),fitView:async d=>{let s=t.getState().fitViewResolver??bE();return t.setState({fitViewQueued:!0,fitViewOptions:d,fitViewResolver:s}),n.nodeQueue.push(h=>[...h]),s.promise}}},[]);return(0,O.useMemo)(()=>({...o,...e,viewportInitialized:a}),[a])}var g2=e=>e.selected,y6=typeof window<"u"?window:void 0;function v6({deleteKeyCode:e,multiSelectionKeyCode:t}){let n=Ce(),{deleteElements:a}=Wl(),o=Pl(e,{actInsideInputWithModifier:!1}),r=Pl(t,{target:y6});(0,O.useEffect)(()=>{if(o){let{edges:i,nodes:l}=n.getState();a({nodes:l.filter(g2),edges:i.filter(g2)}),n.setState({nodesSelectionActive:!1})}},[o]),(0,O.useEffect)(()=>{n.setState({multiSelectionActive:r})},[r])}function b6(e){let t=Ce();(0,O.useEffect)(()=>{let n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;let a=Js(e.current);(a.height===0||a.width===0)&&t.getState().onError?.("004",kt.error004()),t.setState({width:a.width||500,height:a.height||500})};if(e.current){n(),window.addEventListener("resize",n);let a=new ResizeObserver(()=>n());return a.observe(e.current),()=>{window.removeEventListener("resize",n),a&&e.current&&a.unobserve(e.current)}}},[])}var ff={position:"absolute",width:"100%",height:"100%",top:0,left:0},x6=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function S6({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:a=!1,panActivationKeyPressed:o,panOnScrollSpeed:r=.5,panOnScrollMode:i=ca.Free,zoomOnDoubleClick:l=!0,panOnDrag:u=!0,defaultViewport:c,translateExtent:f,minZoom:d,maxZoom:s,zoomActivationKeyCode:h,preventScrolling:y=!0,children:x,noWheelClassName:S,noPanClassName:g,onViewportChange:p,isControlledViewport:m,paneClickDistance:v,selectionOnDrag:b}){let E=Ce(),N=(0,O.useRef)(null),{userSelectionActive:_,lib:T,connectionInProgress:D}=fe(x6,Ae),L=Pl(h),k=(0,O.useRef)();b6(N);let U=(0,O.useCallback)(w=>{p?.({x:w[0],y:w[1],zoom:w[2]}),m||E.setState({transform:w})},[p,m]);return(0,O.useEffect)(()=>{if(N.current){k.current=kE({domNode:N.current,minZoom:d,maxZoom:s,translateExtent:f,viewport:c,onDraggingChange:z=>E.setState(R=>R.paneDragging===z?R:{paneDragging:z}),onPanZoomStart:(z,R)=>{let{onViewportChangeStart:H,onMoveStart:G}=E.getState();G?.(z,R),H?.(R)},onPanZoom:(z,R)=>{let{onViewportChange:H,onMove:G}=E.getState();G?.(z,R),H?.(R)},onPanZoomEnd:(z,R)=>{let{onViewportChangeEnd:H,onMoveEnd:G}=E.getState();G?.(z,R),H?.(R)}});let{x:w,y:C,zoom:M}=k.current.getViewport();return E.setState({panZoom:k.current,transform:[w,C,M],domNode:N.current.closest(".react-flow")}),()=>{k.current?.destroy()}}},[]),(0,O.useEffect)(()=>{k.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:a,panActivationKeyPressed:o,panOnScrollSpeed:r,panOnScrollMode:i,zoomOnDoubleClick:l,panOnDrag:u,zoomActivationKeyPressed:L,preventScrolling:y,noPanClassName:g,userSelectionActive:_,noWheelClassName:S,lib:T,onTransformChange:U,connectionInProgress:D,selectionOnDrag:b,paneClickDistance:v})},[e,t,n,a,o,r,i,l,u,L,y,g,_,S,T,U,D,b,v]),(0,A.jsx)("div",{className:"react-flow__renderer",ref:N,style:ff,children:x})}var w6=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function E6(){let{userSelectionActive:e,userSelectionRect:t}=fe(w6,Ae);return e&&t?(0,A.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}var Sg=(e,t)=>n=>{n.target===t.current&&e?.(n)},_6=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function N6({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Xo.Full,panOnDrag:a,autoPanOnSelection:o,paneClickDistance:r,selectionOnDrag:i,onSelectionStart:l,onSelectionEnd:u,onPaneClick:c,onPaneContextMenu:f,onPaneScroll:d,onPaneMouseEnter:s,onPaneMouseMove:h,onPaneMouseLeave:y,children:x}){let S=(0,O.useRef)(0),g=Ce(),{userSelectionActive:p,elementsSelectable:m,dragging:v,panBy:b,autoPanSpeed:E}=fe(_6,Ae),N=m&&(e||p),_=(0,O.useRef)(null),T=(0,O.useRef)(),D=(0,O.useRef)(new Set),L=(0,O.useRef)(new Set),k=(0,O.useRef)(!1),U=(0,O.useRef)(!1),w=(0,O.useRef)({x:0,y:0}),C=(0,O.useRef)(!1),M=Y=>{if(U.current||k.current||g.getState().connection.inProgress){U.current=!1,k.current=!1;return}c?.(Y),g.getState().resetSelectedElements(),g.setState({nodesSelectionActive:!1})},z=Y=>{if(Array.isArray(a)&&a?.includes(2)){Y.preventDefault();return}f?.(Y)},R=d?Y=>d(Y):void 0,H=Y=>{U.current&&(Y.stopPropagation(),U.current=!1)},G=Y=>{if(Y.pointerType==="touch"&&a!==!1&&!t)return;let{domNode:I,transform:ae}=g.getState();if(T.current=I?.getBoundingClientRect(),!T.current)return;let te=Y.target===_.current;if(!te&&!!Y.target.closest(".nokey")||!e||!(i&&te||t)||Y.button!==0||!Y.isPrimary)return;Y.target?.setPointerCapture?.(Y.pointerId),U.current=!1;let{x:ie,y:ce}=en(Y.nativeEvent,T.current),ge=si({x:ie,y:ce},ae);g.setState({userSelectionRect:{width:0,height:0,startX:ge.x,startY:ge.y,x:ie,y:ce}}),te||(Y.stopPropagation(),Y.preventDefault())};function q(Y,I){let{userSelectionRect:ae}=g.getState();if(!ae)return;let{transform:te,nodeLookup:Q,edgeLookup:P,connectionLookup:ie,triggerNodeChanges:ce,triggerEdgeChanges:ge,defaultEdgeOptions:Pe}=g.getState(),Hn={x:ae.startX,y:ae.startY},{x:hn,y:gn}=$o(Hn,te),Bn={startX:Hn.x,startY:Hn.y,x:Y<hn?Y:hn,y:I<gn?I:gn,width:Math.abs(Y-hn),height:Math.abs(I-gn)},pi=D.current,to=L.current;D.current=new Set(Is(Q,Bn,te,n===Xo.Partial,!0).map(nn=>nn.id)),L.current=new Set;let no=Pe?.selectable??!0;for(let nn of D.current){let Ln=ie.get(nn);if(Ln)for(let{edgeId:Vn}of Ln.values()){let ao=P.get(Vn);ao&&(ao.selectable??no)&&L.current.add(Vn)}}if(!ug(pi,D.current)){let nn=mi(Q,D.current,!0);ce(nn)}if(!ug(to,L.current)){let nn=mi(P,L.current);ge(nn)}g.setState({userSelectionRect:Bn,userSelectionActive:!0,nodesSelectionActive:!1})}function X(){if(!o||!T.current)return;let[Y,I]=Qs(w.current,T.current,E);b({x:Y,y:I}).then(ae=>{if(!U.current||!ae){S.current=requestAnimationFrame(X);return}let{x:te,y:Q}=w.current;q(te,Q),S.current=requestAnimationFrame(X)})}let K=()=>{cancelAnimationFrame(S.current),S.current=0,C.current=!1};(0,O.useEffect)(()=>()=>K(),[]);let Z=Y=>{let{userSelectionRect:I,transform:ae,resetSelectedElements:te}=g.getState();if(!T.current||!I)return;let{x:Q,y:P}=en(Y.nativeEvent,T.current);w.current={x:Q,y:P};let ie=$o({x:I.startX,y:I.startY},ae);if(!U.current){let ce=t?0:r;if(Math.hypot(Q-ie.x,P-ie.y)<=ce)return;te(),l?.(Y)}U.current=!0,C.current||(X(),C.current=!0),q(Q,P)},J=Y=>{if(!N){Y.target===_.current&&g.getState().connection.inProgress&&(k.current=!0);return}Y.button===0&&(Y.target?.releasePointerCapture?.(Y.pointerId),!p&&Y.target===_.current&&g.getState().userSelectionRect&&M?.(Y),g.setState({userSelectionActive:!1,userSelectionRect:null}),U.current&&(u?.(Y),g.setState({nodesSelectionActive:D.current.size>0})),K())},re=Y=>{Y.target?.releasePointerCapture?.(Y.pointerId),K()},j=a===!0||Array.isArray(a)&&a.includes(0);return(0,A.jsxs)("div",{className:Be(["react-flow__pane",{draggable:j,dragging:v,selection:e}]),onClick:N?void 0:Sg(M,_),onContextMenu:Sg(z,_),onWheel:Sg(R,_),onPointerEnter:N?void 0:s,onPointerMove:N?Z:h,onPointerUp:J,onPointerCancel:N?re:void 0,onPointerDownCapture:N?G:void 0,onClickCapture:N?H:void 0,onPointerLeave:y,ref:_,style:ff,children:[x,(0,A.jsx)(E6,{})]})}function Eg({id:e,store:t,unselect:n=!1,nodeRef:a}){let{addSelectedNodes:o,unselectNodesAndEdges:r,multiSelectionActive:i,nodeLookup:l,onError:u}=t.getState(),c=l.get(e);if(!c){u?.("012",kt.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&i)&&(r({nodes:[c],edges:[]}),requestAnimationFrame(()=>a?.current?.blur())):o([e])}function V2({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:a,nodeId:o,isSelectable:r,nodeClickDistance:i}){let l=Ce(),[u,c]=(0,O.useState)(!1),f=(0,O.useRef)();return(0,O.useEffect)(()=>{if(!t)return f.current=DE({getStoreItems:()=>l.getState(),onNodeMouseDown:d=>{Eg({id:d,store:l,nodeRef:e})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}}),()=>{f.current?.destroy(),f.current=void 0}},[t,l,e]),(0,O.useEffect)(()=>{t||!e.current||!f.current||f.current.update({noDragClassName:n,handleSelector:a,domNode:e.current,isSelectable:r,nodeId:o,nodeClickDistance:i})},[n,a,t,r,e,o,i]),u}var T6=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function U2(){let e=Ce();return(0,O.useCallback)(n=>{let{nodeExtent:a,snapToGrid:o,snapGrid:r,nodesDraggable:i,onError:l,updateNodePositions:u,nodeLookup:c,nodeOrigin:f}=e.getState(),d=new Map,s=T6(i),h=o?r[0]:5,y=o?r[1]:5,x=n.direction.x*h*n.factor,S=n.direction.y*y*n.factor;for(let[,g]of c){if(!s(g))continue;let p={x:g.internals.positionAbsolute.x+x,y:g.internals.positionAbsolute.y+S};o&&(p=ci(p,r));let{position:m,positionAbsolute:v}=ng({nodeId:g.id,nextPosition:p,nodeLookup:c,nodeExtent:a,nodeOrigin:f,onError:l});g.position=m,g.internals.positionAbsolute=v,d.set(g.id,g)}u(d)},[])}var Ng=(0,O.createContext)(null),C6=Ng.Provider;Ng.Consumer;var Y2=()=>(0,O.useContext)(Ng),M6=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),k2=(0,O.createContext)(null);function z6({children:e}){let t=fe(M6,Ae);return(0,A.jsx)(k2.Provider,{value:t,children:e})}function A6(){let e=(0,O.useContext)(k2);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}var O6={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},D6=(e,t,n)=>a=>{let{connectionClickStartHandle:o,connectionMode:r,connection:i}=a,{fromHandle:l,toHandle:u,isValid:c}=i;if(!l&&!o)return O6;let f=u?.nodeId===e&&u?.id===t&&u?.type===n;return{connectingFrom:l?.nodeId===e&&l?.id===t&&l?.type===n,connectingTo:f,clickConnecting:o?.nodeId===e&&o?.id===t&&o?.type===n,isPossibleEndHandle:r===Ka.Strict?l?.type!==n:e!==l?.nodeId||t!==l?.id,connectionInProcess:!!l,clickConnectionInProcess:!!o,valid:f&&c}};function R6({type:e="source",position:t=$.Top,isValidConnection:n,isConnectable:a=!0,isConnectableStart:o=!0,isConnectableEnd:r=!0,id:i,onConnect:l,children:u,className:c,onMouseDown:f,onTouchStart:d,...s},h){let y=i||null,x=e==="target",S=Ce(),g=Y2(),{connectOnClick:p,noPanClassName:m,rfId:v}=A6(),{connectingFrom:b,connectingTo:E,clickConnecting:N,isPossibleEndHandle:_,connectionInProcess:T,clickConnectionInProcess:D,valid:L}=fe(D6(g,y,e),Ae);g||S.getState().onError?.("010",kt.error010());let k=C=>{let{defaultEdgeOptions:M,onConnect:z,hasDefaultEdges:R}=S.getState(),H={...M,...C};if(R){let{edges:G,setEdges:q,onError:X}=S.getState();q(f6(H,G,{onError:X}))}z?.(H),l?.(H)},U=C=>{if(!g)return;let M=dg(C.nativeEvent);if(o&&(M&&C.button===0||!M)){let z=S.getState();af.onPointerDown(C.nativeEvent,{handleDomNode:C.currentTarget,autoPanOnConnect:z.autoPanOnConnect,connectionMode:z.connectionMode,connectionRadius:z.connectionRadius,domNode:z.domNode,nodeLookup:z.nodeLookup,lib:z.lib,isTarget:x,handleId:y,nodeId:g,flowId:z.rfId,panBy:z.panBy,cancelConnection:z.cancelConnection,onConnectStart:z.onConnectStart,onConnectEnd:(...R)=>S.getState().onConnectEnd?.(...R),updateConnection:z.updateConnection,onConnect:k,isValidConnection:n||((...R)=>S.getState().isValidConnection?.(...R)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:z.autoPanSpeed,dragThreshold:z.connectionDragThreshold})}M?f?.(C):d?.(C)},w=C=>{let{onClickConnectStart:M,onClickConnectEnd:z,connectionClickStartHandle:R,connectionMode:H,isValidConnection:G,lib:q,rfId:X,nodeLookup:K,connection:Z}=S.getState();if(!g||!R&&!o)return;if(!R){M?.(C.nativeEvent,{nodeId:g,handleId:y,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:g,type:e,id:y}});return}let J=sg(C.target),re=n||G,{connection:j,isValid:Y}=af.isValid(C.nativeEvent,{handle:{nodeId:g,id:y,type:e},connectionMode:H,fromNodeId:R.nodeId,fromHandleId:R.id||null,fromType:R.type,isValidConnection:re,flowId:X,doc:J,lib:q,nodeLookup:K});Y&&j&&k(j);let I=structuredClone(Z);delete I.inProgress,I.toPosition=I.toHandle?I.toHandle.position:null,z?.(C,I),S.setState({connectionClickStartHandle:null})};return(0,A.jsx)("div",{"data-handleid":y,"data-nodeid":g,"data-handlepos":t,"data-id":`${v}-${g}-${y}-${e}`,className:Be(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",m,c,{source:!x,target:x,connectable:a,connectablestart:o,connectableend:r,clickconnecting:N,connectingfrom:b,connectingto:E,valid:L,connectionindicator:a&&(!T||_)&&(T||D?r:o)}]),onMouseDown:U,onTouchStart:U,onClick:p?w:void 0,ref:h,...s,children:u})}var sa=(0,O.memo)(H2(R6));function H6({data:e,isConnectable:t,sourcePosition:n=$.Bottom}){return(0,A.jsxs)(A.Fragment,{children:[e?.label,(0,A.jsx)(sa,{type:"source",position:n,isConnectable:t})]})}function B6({data:e,isConnectable:t,targetPosition:n=$.Top,sourcePosition:a=$.Bottom}){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(sa,{type:"target",position:n,isConnectable:t}),e?.label,(0,A.jsx)(sa,{type:"source",position:a,isConnectable:t})]})}function L6(){return null}function V6({data:e,isConnectable:t,targetPosition:n=$.Top}){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(sa,{type:"target",position:n,isConnectable:t}),e?.label]})}var uf={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},p2={input:H6,default:B6,output:V6,group:L6};function U6(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}var Y6=e=>{let{width:t,height:n,x:a,y:o}=li(e.nodeLookup,{filter:r=>!!r.selected});return{width:Wt(t)?t:null,height:Wt(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${o}px)`}};function k6({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){let a=Ce(),{width:o,height:r,transformString:i,userSelectionActive:l}=fe(Y6,Ae),u=U2(),c=(0,O.useRef)(null);(0,O.useEffect)(()=>{n||c.current?.focus({preventScroll:!0})},[n]);let f=!l&&o!==null&&r!==null;if(V2({nodeRef:c,disabled:!f}),!f)return null;let d=e?h=>{let y=a.getState().nodes.filter(x=>x.selected);e(h,y)}:void 0,s=h=>{Object.prototype.hasOwnProperty.call(uf,h.key)&&(h.preventDefault(),u({direction:uf[h.key],factor:h.shiftKey?4:1}))};return(0,A.jsx)("div",{className:Be(["react-flow__nodesselection","react-flow__container",t]),style:{transform:i},children:(0,A.jsx)("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:s,style:{width:o,height:r}})})}var y2=typeof window<"u"?window:void 0,q6=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function q2({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:a,onPaneMouseLeave:o,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:l,deleteKeyCode:u,selectionKeyCode:c,selectionOnDrag:f,selectionMode:d,onSelectionStart:s,onSelectionEnd:h,multiSelectionKeyCode:y,panActivationKeyCode:x,zoomActivationKeyCode:S,elementsSelectable:g,zoomOnScroll:p,zoomOnPinch:m,panOnScroll:v,panOnScrollSpeed:b,panOnScrollMode:E,zoomOnDoubleClick:N,panOnDrag:_,autoPanOnSelection:T,defaultViewport:D,translateExtent:L,minZoom:k,maxZoom:U,preventScrolling:w,onSelectionContextMenu:C,noWheelClassName:M,noPanClassName:z,disableKeyboardA11y:R,onViewportChange:H,isControlledViewport:G}){let{nodesSelectionActive:q,userSelectionActive:X}=fe(q6,Ae),K=Pl(c,{target:y2}),Z=Pl(x,{target:y2}),J=Z||_,re=Z||v,j=f&&J!==!0,Y=K||X||j;return v6({deleteKeyCode:u,multiSelectionKeyCode:y}),(0,A.jsx)(S6,{onPaneContextMenu:r,elementsSelectable:g,zoomOnScroll:p,zoomOnPinch:m,panOnScroll:re,panActivationKeyPressed:Z,panOnScrollSpeed:b,panOnScrollMode:E,zoomOnDoubleClick:N,panOnDrag:!K&&J,defaultViewport:D,translateExtent:L,minZoom:k,maxZoom:U,zoomActivationKeyCode:S,preventScrolling:w,noWheelClassName:M,noPanClassName:z,onViewportChange:H,isControlledViewport:G,paneClickDistance:l,selectionOnDrag:j,children:(0,A.jsxs)(N6,{onSelectionStart:s,onSelectionEnd:h,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:a,onPaneMouseLeave:o,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:J,autoPanOnSelection:T,isSelecting:!!Y,selectionMode:d,selectionKeyPressed:K,paneClickDistance:l,selectionOnDrag:j,children:[e,q&&(0,A.jsx)(k6,{onSelectionContextMenu:C,noPanClassName:z,disableKeyboardA11y:R})]})})}q2.displayName="FlowRenderer";var G6=(0,O.memo)(q2),X6=e=>t=>e?Is(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 Z6(e){return fe((0,O.useCallback)(X6(e),[e]),Ae)}var $6=e=>e.updateNodeInternals;function I6(){let e=fe($6),[t]=(0,O.useState)(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{let a=new Map;n.forEach(o=>{let r=o.target.getAttribute("data-id");a.set(r,{id:r,nodeElement:o.target,force:!0})}),e(a)}));return(0,O.useEffect)(()=>()=>{t?.disconnect()},[t]),t}function Q6({node:e,nodeType:t,hasDimensions:n,resizeObserver:a}){let o=Ce(),r=(0,O.useRef)(null),i=(0,O.useRef)(null),l=(0,O.useRef)(e.sourcePosition),u=(0,O.useRef)(e.targetPosition),c=(0,O.useRef)(t),f=n&&!!e.internals.handleBounds;return(0,O.useEffect)(()=>{r.current&&!e.hidden&&(!f||i.current!==r.current)&&(i.current&&a?.unobserve(i.current),a?.observe(r.current),i.current=r.current)},[f,e.hidden]),(0,O.useEffect)(()=>()=>{i.current&&(a?.unobserve(i.current),i.current=null)},[]),(0,O.useEffect)(()=>{if(r.current){let d=c.current!==t,s=l.current!==e.sourcePosition,h=u.current!==e.targetPosition;(d||s||h)&&(c.current=t,l.current=e.sourcePosition,u.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:r.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),r}function j6({id:e,onClick:t,onMouseEnter:n,onMouseMove:a,onMouseLeave:o,onContextMenu:r,onDoubleClick:i,nodesDraggable:l,elementsSelectable:u,nodesConnectable:c,nodesFocusable:f,resizeObserver:d,noDragClassName:s,noPanClassName:h,disableKeyboardA11y:y,rfId:x,nodeTypes:S,nodeClickDistance:g,onError:p}){let{node:m,internals:v,isParent:b}=fe(Y=>{let I=Y.nodeLookup.get(e),ae=Y.parentLookup.has(e);return{node:I,internals:I.internals,isParent:ae}},Ae),E=m.type||"default",N=S?.[E]||p2[E];N===void 0&&(p?.("003",kt.error003(E)),E="default",N=S?.default||p2.default);let _=!!(m.draggable||l&&typeof m.draggable>"u"),T=!!(m.selectable||u&&typeof m.selectable>"u"),D=!!(m.connectable||c&&typeof m.connectable>"u"),L=!!(m.focusable||f&&typeof m.focusable>"u"),k=Ce(),U=ig(m),w=Q6({node:m,nodeType:E,hasDimensions:U,resizeObserver:d}),C=V2({nodeRef:w,disabled:m.hidden||!_,noDragClassName:s,handleSelector:m.dragHandle,nodeId:e,isSelectable:T,nodeClickDistance:g}),M=U2();if(m.hidden)return null;let z=tn(m),R=U6(m),H=T||_||t||n||a||o,G=n?Y=>n(Y,{...v.userNode}):void 0,q=a?Y=>a(Y,{...v.userNode}):void 0,X=o?Y=>o(Y,{...v.userNode}):void 0,K=r?Y=>r(Y,{...v.userNode}):void 0,Z=i?Y=>i(Y,{...v.userNode}):void 0,J=Y=>{let{selectNodesOnDrag:I,nodeDragThreshold:ae}=k.getState();T&&(!I||!_||ae>0)&&Eg({id:e,store:k,nodeRef:w}),t&&t(Y,{...v.userNode})},re=Y=>{if(!(fg(Y.nativeEvent)||y)){if(Jh.includes(Y.key)&&T){let I=Y.key==="Escape";Eg({id:e,store:k,unselect:I,nodeRef:w})}else if(_&&m.selected&&Object.prototype.hasOwnProperty.call(uf,Y.key)){Y.preventDefault();let{ariaLabelConfig:I}=k.getState();k.setState({ariaLiveMessage:I["node.a11yDescription.ariaLiveMessage"]({direction:Y.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),M({direction:uf[Y.key],factor:Y.shiftKey?4:1})}}},j=()=>{if(y||!w.current?.matches(":focus-visible"))return;let{transform:Y,width:I,height:ae,autoPanOnNodeFocus:te,setCenter:Q}=k.getState();if(!te)return;Is(new Map([[e,m]]),{x:0,y:0,width:I,height:ae},Y,!0).length>0||Q(m.position.x+z.width/2,m.position.y+z.height/2,{zoom:Y[2]})};return(0,A.jsx)("div",{className:Be(["react-flow__node",`react-flow__node-${E}`,{[h]:_},m.className,{selected:m.selected,selectable:T,parent:b,draggable:_,dragging:C}]),ref:w,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:H?"all":"none",visibility:U?"visible":"hidden",...m.style,...R},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:G,onMouseMove:q,onMouseLeave:X,onContextMenu:K,onClick:J,onDoubleClick:Z,onKeyDown:L?re:void 0,tabIndex:L?0:void 0,onFocus:L?j:void 0,role:m.ariaRole??(L?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${A2}-${x}`,"aria-label":m.ariaLabel,...m.domAttributes,children:(0,A.jsx)(C6,{value:e,children:(0,A.jsx)(N,{id:e,data:m.data,type:E,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:m.selected??!1,selectable:T,draggable:_,deletable:m.deletable??!0,isConnectable:D,sourcePosition:m.sourcePosition,targetPosition:m.targetPosition,dragging:C,dragHandle:m.dragHandle,zIndex:v.z,parentId:m.parentId,...z})})})}var K6=(0,O.memo)(j6),J6=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function G2(e){let{nodesConnectable:t,nodesFocusable:n,elementsSelectable:a,onError:o}=fe(J6,Ae),r=Z6(e.onlyRenderVisibleElements),i=I6();return(0,A.jsx)("div",{className:"react-flow__nodes",style:ff,children:r.map(l=>(0,A.jsx)(K6,{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:i,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:n,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:o},l))})}G2.displayName="NodeRenderer";var F6=(0,O.memo)(G2);function P6(e){return fe((0,O.useCallback)(n=>{if(!e)return n.edges.map(o=>o.id);let a=[];if(n.width&&n.height)for(let o of n.edges){let r=n.nodeLookup.get(o.source),i=n.nodeLookup.get(o.target);r&&i&&wE({sourceNode:r,targetNode:i,width:n.width,height:n.height,transform:n.transform})&&a.push(o.id)}return a},[e]),Ae)}var W6=({color:e="none",strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e}};return(0,A.jsx)("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},e8=({color:e="none",strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e,fill:e}};return(0,A.jsx)("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},v2={[Ja.Arrow]:W6,[Ja.ArrowClosed]:e8};function t8(e){let t=Ce();return(0,O.useMemo)(()=>Object.prototype.hasOwnProperty.call(v2,e)?v2[e]:(t.getState().onError?.("009",kt.error009(e)),null),[e])}var n8=({id:e,type:t,color:n,width:a=12.5,height:o=12.5,markerUnits:r="strokeWidth",strokeWidth:i,orient:l="auto-start-reverse"})=>{let u=t8(t);return u?(0,A.jsx)("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:r,orient:l,refX:"0",refY:"0",children:(0,A.jsx)(u,{color:n,strokeWidth:i})}):null},X2=({defaultColor:e,rfId:t})=>{let n=fe(r=>r.edges),a=fe(r=>r.defaultEdgeOptions),o=(0,O.useMemo)(()=>NE(n,{id:t,defaultColor:e,defaultMarkerStart:a?.markerStart,defaultMarkerEnd:a?.markerEnd}),[n,a,t,e]);return o.length?(0,A.jsx)("svg",{className:"react-flow__marker","aria-hidden":"true",children:(0,A.jsx)("defs",{children:o.map(r=>(0,A.jsx)(n8,{id:r.id,type:r.type,color:r.color,width:r.width,height:r.height,markerUnits:r.markerUnits,strokeWidth:r.strokeWidth,orient:r.orient},r.id))})}):null};X2.displayName="MarkerDefinitions";var a8=(0,O.memo)(X2);function Z2({x:e,y:t,label:n,labelStyle:a,labelShowBg:o=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:l=2,children:u,className:c,...f}){let[d,s]=(0,O.useState)({x:1,y:0,width:0,height:0}),h=Be(["react-flow__edge-textwrapper",c]),y=(0,O.useRef)(null);return(0,O.useEffect)(()=>{if(y.current){let x=y.current.getBBox();s({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?(0,A.jsxs)("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:h,visibility:d.width?"visible":"hidden",...f,children:[o&&(0,A.jsx)("rect",{width:d.width+2*i[0],x:-i[0],y:-i[1],height:d.height+2*i[1],className:"react-flow__edge-textbg",style:r,rx:l,ry:l}),(0,A.jsx)("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:y,style:a,children:n}),u]}):null}Z2.displayName="EdgeText";var o8=(0,O.memo)(Z2);function hi({path:e,labelX:t,labelY:n,label:a,labelStyle:o,labelShowBg:r,labelBgStyle:i,labelBgPadding:l,labelBgBorderRadius:u,interactionWidth:c=20,...f}){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("path",{...f,d:e,fill:"none",className:Be(["react-flow__edge-path",f.className])}),c?(0,A.jsx)("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:c,className:"react-flow__edge-interaction"}):null,a&&Wt(t)&&Wt(n)?(0,A.jsx)(o8,{x:t,y:n,label:a,labelStyle:o,labelShowBg:r,labelBgStyle:i,labelBgPadding:l,labelBgBorderRadius:u}):null]})}function b2({pos:e,x1:t,y1:n,x2:a,y2:o}){return e===$.Left||e===$.Right?[.5*(t+a),n]:[t,.5*(n+o)]}function $2({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:a,targetY:o,targetPosition:r=$.Top}){let[i,l]=b2({pos:n,x1:e,y1:t,x2:a,y2:o}),[u,c]=b2({pos:r,x1:a,y1:o,x2:e,y2:t}),[f,d,s,h]=Fs({sourceX:e,sourceY:t,targetX:a,targetY:o,sourceControlX:i,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${i},${l} ${u},${c} ${a},${o}`,f,d,s,h]}function I2(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,sourcePosition:i,targetPosition:l,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,interactionWidth:g})=>{let[p,m,v]=$2({sourceX:n,sourceY:a,sourcePosition:i,targetX:o,targetY:r,targetPosition:l}),b=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:b,path:p,labelX:m,labelY:v,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,interactionWidth:g})})}var r8=I2({isInternal:!1}),Q2=I2({isInternal:!0});r8.displayName="SimpleBezierEdge";Q2.displayName="SimpleBezierEdgeInternal";function j2(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,sourcePosition:h=$.Bottom,targetPosition:y=$.Top,markerEnd:x,markerStart:S,pathOptions:g,interactionWidth:p})=>{let[m,v,b]=Fl({sourceX:n,sourceY:a,sourcePosition:h,targetX:o,targetY:r,targetPosition:y,borderRadius:g?.borderRadius,offset:g?.offset,stepPosition:g?.stepPosition}),E=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:E,path:m,labelX:v,labelY:b,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,markerEnd:x,markerStart:S,interactionWidth:p})})}var K2=j2({isInternal:!1}),J2=j2({isInternal:!0});K2.displayName="SmoothStepEdge";J2.displayName="SmoothStepEdgeInternal";function F2(e){return(0,O.memo)(({id:t,...n})=>{let a=e.isInternal?void 0:t;return(0,A.jsx)(K2,{...n,id:a,pathOptions:(0,O.useMemo)(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}var i8=F2({isInternal:!1}),P2=F2({isInternal:!0});i8.displayName="StepEdge";P2.displayName="StepEdgeInternal";function W2(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,markerEnd:h,markerStart:y,interactionWidth:x})=>{let[S,g,p]=Ws({sourceX:n,sourceY:a,targetX:o,targetY:r}),m=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:m,path:S,labelX:g,labelY:p,label:i,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,style:s,markerEnd:h,markerStart:y,interactionWidth:x})})}var l8=W2({isInternal:!1}),e_=W2({isInternal:!0});l8.displayName="StraightEdge";e_.displayName="StraightEdgeInternal";function t_(e){return(0,O.memo)(({id:t,sourceX:n,sourceY:a,targetX:o,targetY:r,sourcePosition:i=$.Bottom,targetPosition:l=$.Top,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,pathOptions:g,interactionWidth:p})=>{let[m,v,b]=Ps({sourceX:n,sourceY:a,sourcePosition:i,targetX:o,targetY:r,targetPosition:l,curvature:g?.curvature}),E=e.isInternal?void 0:t;return(0,A.jsx)(hi,{id:E,path:m,labelX:v,labelY:b,label:u,labelStyle:c,labelShowBg:f,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:h,style:y,markerEnd:x,markerStart:S,interactionWidth:p})})}var u8=t_({isInternal:!1}),n_=t_({isInternal:!0});u8.displayName="BezierEdge";n_.displayName="BezierEdgeInternal";var x2={default:n_,straight:e_,step:P2,smoothstep:J2,simplebezier:Q2},S2={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},c8=(e,t,n)=>n===$.Left?e-t:n===$.Right?e+t:e,s8=(e,t,n)=>n===$.Top?e-t:n===$.Bottom?e+t:e,w2="react-flow__edgeupdater";function E2({position:e,centerX:t,centerY:n,radius:a=10,onMouseDown:o,onMouseEnter:r,onMouseOut:i,type:l}){return(0,A.jsx)("circle",{onMouseDown:o,onMouseEnter:r,onMouseOut:i,className:Be([w2,`${w2}-${l}`]),cx:c8(t,a,e),cy:s8(n,a,e),r:a,stroke:"transparent",fill:"transparent"})}function f8({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:a,sourceY:o,targetX:r,targetY:i,sourcePosition:l,targetPosition:u,onReconnect:c,onReconnectStart:f,onReconnectEnd:d,setReconnecting:s,setUpdateHover:h}){let y=Ce(),x=(v,b)=>{if(v.button!==0)return;let{autoPanOnConnect:E,domNode:N,connectionMode:_,connectionRadius:T,lib:D,onConnectStart:L,cancelConnection:k,nodeLookup:U,rfId:w,panBy:C,updateConnection:M}=y.getState(),z=b.type==="target",R=(q,X)=>{s(!1),d?.(q,n,b.type,X)},H=q=>c?.(n,q),G=(q,X)=>{s(!0),f?.(v,n,b.type),L?.(q,X)};af.onPointerDown(v.nativeEvent,{autoPanOnConnect:E,connectionMode:_,connectionRadius:T,domNode:N,handleId:b.id,nodeId:b.nodeId,nodeLookup:U,isTarget:z,edgeUpdaterType:b.type,lib:D,flowId:w,cancelConnection:k,panBy:C,isValidConnection:(...q)=>y.getState().isValidConnection?.(...q)??!0,onConnect:H,onConnectStart:G,onConnectEnd:(...q)=>y.getState().onConnectEnd?.(...q),onReconnectEnd:R,updateConnection:M,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold,handleDomNode:v.currentTarget})},S=v=>x(v,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),g=v=>x(v,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),p=()=>h(!0),m=()=>h(!1);return(0,A.jsxs)(A.Fragment,{children:[(e===!0||e==="source")&&(0,A.jsx)(E2,{position:l,centerX:a,centerY:o,radius:t,onMouseDown:S,onMouseEnter:p,onMouseOut:m,type:"source"}),(e===!0||e==="target")&&(0,A.jsx)(E2,{position:u,centerX:r,centerY:i,radius:t,onMouseDown:g,onMouseEnter:p,onMouseOut:m,type:"target"})]})}function d8({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:a,onClick:o,onDoubleClick:r,onContextMenu:i,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,reconnectRadius:f,onReconnect:d,onReconnectStart:s,onReconnectEnd:h,rfId:y,edgeTypes:x,noPanClassName:S,onError:g,disableKeyboardA11y:p}){let m=fe(Q=>Q.edgeLookup.get(e)),v=fe(Q=>Q.defaultEdgeOptions);m=v?{...v,...m}:m;let b=m.type||"default",E=x?.[b]||x2[b];E===void 0&&(g?.("011",kt.error011(b)),b="default",E=x?.default||x2.default);let N=!!(m.focusable||t&&typeof m.focusable>"u"),_=typeof d<"u"&&(m.reconnectable||n&&typeof m.reconnectable>"u"),T=!!(m.selectable||a&&typeof m.selectable>"u"),D=(0,O.useRef)(null),[L,k]=(0,O.useState)(!1),[U,w]=(0,O.useState)(!1),C=Ce(),{zIndex:M=m.zIndex,sourceX:z,sourceY:R,targetX:H,targetY:G,sourcePosition:q,targetPosition:X}=fe((0,O.useCallback)(Q=>{let P=Q.nodeLookup.get(m.source),ie=Q.nodeLookup.get(m.target);if(!P||!ie)return S2;let ce=_E({id:e,sourceNode:P,targetNode:ie,sourceHandle:m.sourceHandle||null,targetHandle:m.targetHandle||null,connectionMode:Q.connectionMode,onError:g}),ge=SE({selected:m.selected,zIndex:m.zIndex,sourceNode:P,targetNode:ie,elevateOnSelect:Q.elevateEdgesOnSelect,zIndexMode:Q.zIndexMode});return{...ce||S2,zIndex:ge}},[m.source,m.target,m.sourceHandle,m.targetHandle,m.selected,m.zIndex,g]),Ae),K=(0,O.useMemo)(()=>m.markerStart?`url('#${ef(m.markerStart,y)}')`:void 0,[m.markerStart,y]),Z=(0,O.useMemo)(()=>m.markerEnd?`url('#${ef(m.markerEnd,y)}')`:void 0,[m.markerEnd,y]);if(m.hidden||z===null||R===null||H===null||G===null)return null;let J=Q=>{let{addSelectedEdges:P,unselectNodesAndEdges:ie,multiSelectionActive:ce}=C.getState();T&&(C.setState({nodesSelectionActive:!1}),m.selected&&ce?(ie({nodes:[],edges:[m]}),D.current?.blur()):P([e])),o&&o(Q,m)},re=r?Q=>{r(Q,{...m})}:void 0,j=i?Q=>{i(Q,{...m})}:void 0,Y=l?Q=>{l(Q,{...m})}:void 0,I=u?Q=>{u(Q,{...m})}:void 0,ae=c?Q=>{c(Q,{...m})}:void 0,te=Q=>{if(!p&&Jh.includes(Q.key)&&T){let{unselectNodesAndEdges:P,addSelectedEdges:ie}=C.getState();Q.key==="Escape"?(D.current?.blur(),P({edges:[m]})):ie([e])}};return(0,A.jsx)("svg",{style:{zIndex:M},children:(0,A.jsxs)("g",{className:Be(["react-flow__edge",`react-flow__edge-${b}`,m.className,S,{selected:m.selected,animated:m.animated,inactive:!T&&!o,updating:L,selectable:T}]),onClick:J,onDoubleClick:re,onContextMenu:j,onMouseEnter:Y,onMouseMove:I,onMouseLeave:ae,onKeyDown:N?te:void 0,tabIndex:N?0:void 0,role:m.ariaRole??(N?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":m.ariaLabel===null?void 0:m.ariaLabel||`Edge from ${m.source} to ${m.target}`,"aria-describedby":N?`${O2}-${y}`:void 0,ref:D,...m.domAttributes,children:[!U&&(0,A.jsx)(E,{id:e,source:m.source,target:m.target,type:m.type,selected:m.selected,animated:m.animated,selectable:T,deletable:m.deletable??!0,label:m.label,labelStyle:m.labelStyle,labelShowBg:m.labelShowBg,labelBgStyle:m.labelBgStyle,labelBgPadding:m.labelBgPadding,labelBgBorderRadius:m.labelBgBorderRadius,sourceX:z,sourceY:R,targetX:H,targetY:G,sourcePosition:q,targetPosition:X,data:m.data,style:m.style,sourceHandleId:m.sourceHandle,targetHandleId:m.targetHandle,markerStart:K,markerEnd:Z,pathOptions:"pathOptions"in m?m.pathOptions:void 0,interactionWidth:m.interactionWidth}),_&&(0,A.jsx)(f8,{edge:m,isReconnectable:_,reconnectRadius:f,onReconnect:d,onReconnectStart:s,onReconnectEnd:h,sourceX:z,sourceY:R,targetX:H,targetY:G,sourcePosition:q,targetPosition:X,setUpdateHover:k,setReconnecting:w})]})})}var m8=(0,O.memo)(d8),h8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function a_({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:a,noPanClassName:o,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:c,onEdgeClick:f,reconnectRadius:d,onEdgeDoubleClick:s,onReconnectStart:h,onReconnectEnd:y,disableKeyboardA11y:x}){let{edgesFocusable:S,edgesReconnectable:g,elementsSelectable:p,onError:m}=fe(h8,Ae),v=P6(t);return(0,A.jsxs)("div",{className:"react-flow__edges",children:[(0,A.jsx)(a8,{defaultColor:e,rfId:n}),v.map(b=>(0,A.jsx)(m8,{id:b,edgesFocusable:S,edgesReconnectable:g,elementsSelectable:p,noPanClassName:o,onReconnect:r,onContextMenu:i,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f,reconnectRadius:d,onDoubleClick:s,onReconnectStart:h,onReconnectEnd:y,rfId:n,onError:m,edgeTypes:a,disableKeyboardA11y:x},b))]})}a_.displayName="EdgeRenderer";var g8=(0,O.memo)(a_),_2=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function p8({children:e}){let t=Ce(),n=(0,O.useRef)(null),[a]=(0,O.useState)(()=>t.getState().transform);return B2(()=>{let o=null,r=()=>{let i=t.getState().transform;o&&i[0]===o[0]&&i[1]===o[1]&&i[2]===o[2]||(o=i,n.current&&(n.current.style.transform=_2(i)))};return r(),t.subscribe(r)},[t]),(0,A.jsx)("div",{ref:n,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:_2(a)},children:e})}function y8(e){let t=Wl(),n=(0,O.useRef)(!1);(0,O.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}var v8=e=>e.panZoom?.syncViewport;function b8(e){let t=fe(v8),n=Ce();return(0,O.useEffect)(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function N2(e){return e.connection.inProgress?{...e.connection,to:si(e.connection.to,e.transform)}:{...e.connection}}function x8(e){return e?n=>{let a=N2(n);return e(a)}:N2}function S8(e){let t=x8(e);return fe(t,Ae)}var w8=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function E8({containerStyle:e,style:t,type:n,component:a}){let{nodesConnectable:o,width:r,height:i,isValid:l,inProgress:u}=fe(w8,Ae);return!(r&&o&&u)?null:(0,A.jsx)("svg",{style:e,width:r,height:i,className:"react-flow__connectionline react-flow__container",children:(0,A.jsx)("g",{className:Be(["react-flow__connection",cg(l)]),children:(0,A.jsx)(o_,{style:t,type:n,CustomComponent:a,isValid:l})})})}var o_=({style:e,type:t=Dn.Bezier,CustomComponent:n,isValid:a})=>{let{inProgress:o,from:r,fromNode:i,fromHandle:l,fromPosition:u,to:c,toNode:f,toHandle:d,toPosition:s,pointer:h}=S8();if(!o)return;if(n)return(0,A.jsx)(n,{connectionLineType:t,connectionLineStyle:e,fromNode:i,fromHandle:l,fromX:r.x,fromY:r.y,toX:c.x,toY:c.y,fromPosition:u,toPosition:s,connectionStatus:cg(a),toNode:f,toHandle:d,pointer:h});let y="",x={sourceX:r.x,sourceY:r.y,sourcePosition:u,targetX:c.x,targetY:c.y,targetPosition:s};switch(t){case Dn.Bezier:[y]=Ps(x);break;case Dn.SimpleBezier:[y]=$2(x);break;case Dn.Step:[y]=Fl({...x,borderRadius:0});break;case Dn.SmoothStep:[y]=Fl(x);break;default:[y]=Ws(x)}return(0,A.jsx)("path",{d:y,fill:"none",className:"react-flow__connection-path",style:e})};o_.displayName="ConnectionLine";var _8={};function T2(e=_8){let t=(0,O.useRef)(e),n=Ce();(0,O.useEffect)(()=>{},[e])}function N8(){let e=Ce(),t=(0,O.useRef)(!1);(0,O.useEffect)(()=>{},[])}function r_({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:a,onEdgeClick:o,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:c,onNodeContextMenu:f,onSelectionContextMenu:d,onSelectionStart:s,onSelectionEnd:h,connectionLineType:y,connectionLineStyle:x,connectionLineComponent:S,connectionLineContainerStyle:g,selectionKeyCode:p,selectionOnDrag:m,selectionMode:v,multiSelectionKeyCode:b,panActivationKeyCode:E,zoomActivationKeyCode:N,deleteKeyCode:_,onlyRenderVisibleElements:T,elementsSelectable:D,defaultViewport:L,translateExtent:k,minZoom:U,maxZoom:w,preventScrolling:C,defaultMarkerColor:M,zoomOnScroll:z,zoomOnPinch:R,panOnScroll:H,panOnScrollSpeed:G,panOnScrollMode:q,zoomOnDoubleClick:X,panOnDrag:K,autoPanOnSelection:Z,onPaneClick:J,onPaneMouseEnter:re,onPaneMouseMove:j,onPaneMouseLeave:Y,onPaneScroll:I,onPaneContextMenu:ae,paneClickDistance:te,nodeClickDistance:Q,onEdgeContextMenu:P,onEdgeMouseEnter:ie,onEdgeMouseMove:ce,onEdgeMouseLeave:ge,reconnectRadius:Pe,onReconnect:Hn,onReconnectStart:hn,onReconnectEnd:gn,noDragClassName:Bn,noWheelClassName:pi,noPanClassName:to,disableKeyboardA11y:no,nodeExtent:nn,rfId:Ln,viewport:Vn,onViewportChange:ao,nodesDraggable:mf}){return T2(e),T2(t),N8(),y8(n),b8(Vn),(0,A.jsx)(G6,{onPaneClick:J,onPaneMouseEnter:re,onPaneMouseMove:j,onPaneMouseLeave:Y,onPaneContextMenu:ae,onPaneScroll:I,paneClickDistance:te,deleteKeyCode:_,selectionKeyCode:p,selectionOnDrag:m,selectionMode:v,onSelectionStart:s,onSelectionEnd:h,multiSelectionKeyCode:b,panActivationKeyCode:E,zoomActivationKeyCode:N,elementsSelectable:D,zoomOnScroll:z,zoomOnPinch:R,zoomOnDoubleClick:X,panOnScroll:H,panOnScrollSpeed:G,panOnScrollMode:q,panOnDrag:K,autoPanOnSelection:Z,defaultViewport:L,translateExtent:k,minZoom:U,maxZoom:w,onSelectionContextMenu:d,preventScrolling:C,noDragClassName:Bn,noWheelClassName:pi,noPanClassName:to,disableKeyboardA11y:no,onViewportChange:ao,isControlledViewport:!!Vn,children:(0,A.jsxs)(p8,{children:[(0,A.jsx)(g8,{edgeTypes:t,onEdgeClick:o,onEdgeDoubleClick:i,onReconnect:Hn,onReconnectStart:hn,onReconnectEnd:gn,onlyRenderVisibleElements:T,onEdgeContextMenu:P,onEdgeMouseEnter:ie,onEdgeMouseMove:ce,onEdgeMouseLeave:ge,reconnectRadius:Pe,defaultMarkerColor:M,noPanClassName:to,disableKeyboardA11y:no,rfId:Ln}),(0,A.jsx)(E8,{style:x,type:y,component:S,containerStyle:g}),(0,A.jsx)("div",{className:"react-flow__edgelabel-renderer"}),(0,A.jsx)(F6,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:r,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:c,onNodeContextMenu:f,nodeClickDistance:Q,onlyRenderVisibleElements:T,noPanClassName:to,noDragClassName:Bn,disableKeyboardA11y:no,nodeExtent:nn,rfId:Ln,nodesDraggable:mf}),(0,A.jsx)("div",{className:"react-flow__viewport-portal"})]})})}r_.displayName="GraphView";var T8=(0,O.memo)(r_),C8=rg("React Flow","https://reactflow.dev/"),C2=({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,width:o,height:r,fitView:i,fitViewOptions:l,minZoom:u=.5,maxZoom:c=2,nodeOrigin:f,nodeExtent:d,zIndexMode:s="basic"}={})=>{let h=new Map,y=new Map,x=new Map,S=new Map,g=a??t??[],p=n??e??[],m=f??[0,0],v=d??ii;vg(x,S,g);let{nodesInitialized:b}=tf(p,h,y,{nodeOrigin:m,nodeExtent:v,zIndexMode:s}),E=[0,0,1];if(i&&o&&r){let N=li(h,{filter:L=>!!((L.width||L.initialWidth)&&(L.height||L.initialHeight))}),{x:_,y:T,zoom:D}=Jl(N,o,r,u,c,l?.padding??.1);E=[_,T,D]}return{rfId:"1",width:o??0,height:r??0,transform:E,nodes:p,nodesInitialized:b,nodeLookup:h,parentLookup:y,edges:g,edgeLookup:S,connectionLookup:x,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:u,maxZoom:c,translateExtent:ii,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ka.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:m,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:l,fitViewResolver:null,connection:{...Ph},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:C8,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:Fh,zIndexMode:s,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},M8=({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,width:o,height:r,fitView:i,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:f,nodeExtent:d,zIndexMode:s})=>n2((h,y)=>{async function x(){let{nodeLookup:S,panZoom:g,fitViewOptions:p,fitViewResolver:m,width:v,height:b,minZoom:E,maxZoom:N}=y();g&&(await gE({nodes:S,width:v,height:b,panZoom:g,minZoom:E,maxZoom:N},p),m?.resolve(!0),h({fitViewResolver:null}))}return{...C2({nodes:e,edges:t,width:o,height:r,fitView:i,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:f,nodeExtent:d,defaultNodes:n,defaultEdges:a,zIndexMode:s}),setNodes:S=>{let{nodeLookup:g,parentLookup:p,nodeOrigin:m,nodeExtent:v,elevateNodesOnSelect:b,fitViewQueued:E,zIndexMode:N,nodesSelectionActive:_}=y(),{nodesInitialized:T,hasSelectedNodes:D}=tf(S,g,p,{nodeOrigin:m,nodeExtent:v,elevateNodesOnSelect:b,checkEquality:!0,zIndexMode:N}),L=_&&D;E&&T?(x(),h({nodes:S,nodesInitialized:T,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:L})):h({nodes:S,nodesInitialized:T,nodesSelectionActive:L})},setEdges:S=>{let{connectionLookup:g,edgeLookup:p}=y();vg(g,p,S),h({edges:S})},setDefaultNodesAndEdges:(S,g)=>{if(S){let{setNodes:p}=y();p(S),h({hasDefaultNodes:!0})}if(g){let{setEdges:p}=y();p(g),h({hasDefaultEdges:!0})}},updateNodeInternals:S=>{let{triggerNodeChanges:g,nodeLookup:p,parentLookup:m,domNode:v,nodeOrigin:b,nodeExtent:E,debug:N,fitViewQueued:_,zIndexMode:T}=y(),{changes:D,updatedInternals:L}=zE(S,p,m,v,b,E,T);L&&(CE(p,m,{nodeOrigin:b,nodeExtent:E,zIndexMode:T}),_?(x(),h({fitViewQueued:!1,fitViewOptions:void 0})):h({}),D?.length>0&&(N&&console.log("React Flow: trigger node changes",D),g?.(D)))},updateNodePositions:(S,g=!1)=>{let p=[],m=[],{nodeLookup:v,triggerNodeChanges:b,connection:E,updateConnection:N,onNodesChangeMiddlewareMap:_}=y();for(let[T,D]of S){let L=v.get(T),k=!!(L?.expandParent&&L?.parentId&&D?.position),U={id:T,type:"position",position:k?{x:Math.max(0,D.position.x),y:Math.max(0,D.position.y)}:D.position,dragging:g};if(L&&E.inProgress&&E.fromNode.id===L.id){let w=Fa(L,E.fromHandle,$.Left,!0);N({...E,from:w})}k&&L.parentId&&p.push({id:T,parentId:L.parentId,rect:{...D.internals.positionAbsolute,width:D.measured.width??0,height:D.measured.height??0}}),m.push(U)}if(p.length>0){let{parentLookup:T,nodeOrigin:D}=y(),L=nf(p,v,T,D);m.push(...L)}for(let T of _.values())m=T(m);b(m)},triggerNodeChanges:S=>{let{onNodesChange:g,setNodes:p,nodes:m,hasDefaultNodes:v,debug:b}=y();if(S?.length){if(v){let E=_g(S,m);p(E)}b&&console.log("React Flow: trigger node changes",S),g?.(S)}},triggerEdgeChanges:S=>{let{onEdgesChange:g,setEdges:p,edges:m,hasDefaultEdges:v,debug:b}=y();if(S?.length){if(v){let E=c6(S,m);p(E)}b&&console.log("React Flow: trigger edge changes",S),g?.(S)}},addSelectedNodes:S=>{let{multiSelectionActive:g,edgeLookup:p,nodeLookup:m,triggerNodeChanges:v,triggerEdgeChanges:b}=y();if(g){let E=S.map(N=>Qo(N,!0));v(E);return}v(mi(m,new Set([...S]),!0)),b(mi(p))},addSelectedEdges:S=>{let{multiSelectionActive:g,edgeLookup:p,nodeLookup:m,triggerNodeChanges:v,triggerEdgeChanges:b}=y();if(g){let E=S.map(N=>Qo(N,!0));b(E);return}b(mi(p,new Set([...S]))),v(mi(m,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:g}={})=>{let{edges:p,nodes:m,nodeLookup:v,triggerNodeChanges:b,triggerEdgeChanges:E}=y(),N=S||m,_=g||p,T=[];for(let L of N){if(!L.selected)continue;let k=v.get(L.id);k&&(k.selected=!1),T.push(Qo(L.id,!1))}let D=[];for(let L of _)L.selected&&D.push(Qo(L.id,!1));b(T),E(D)},setMinZoom:S=>{let{panZoom:g,maxZoom:p}=y();g?.setScaleExtent([S,p]),h({minZoom:S})},setMaxZoom:S=>{let{panZoom:g,minZoom:p}=y();g?.setScaleExtent([p,S]),h({maxZoom:S})},setTranslateExtent:S=>{y().panZoom?.setTranslateExtent(S),h({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:g,triggerNodeChanges:p,triggerEdgeChanges:m,elementsSelectable:v}=y();if(!v)return;let b=g.reduce((N,_)=>_.selected?[...N,Qo(_.id,!1)]:N,[]),E=S.reduce((N,_)=>_.selected?[...N,Qo(_.id,!1)]:N,[]);p(b),m(E)},setNodeExtent:S=>{let{nodes:g,nodeLookup:p,parentLookup:m,nodeOrigin:v,elevateNodesOnSelect:b,nodeExtent:E,zIndexMode:N}=y();S[0][0]===E[0][0]&&S[0][1]===E[0][1]&&S[1][0]===E[1][0]&&S[1][1]===E[1][1]||(tf(g,p,m,{nodeOrigin:v,nodeExtent:S,elevateNodesOnSelect:b,checkEquality:!1,zIndexMode:N}),h({nodeExtent:S}))},panBy:S=>{let{transform:g,width:p,height:m,panZoom:v,translateExtent:b}=y();return AE({delta:S,panZoom:v,transform:g,translateExtent:b,width:p,height:m})},setCenter:async(S,g,p)=>{let{width:m,height:v,maxZoom:b,panZoom:E}=y();if(!E)return!1;let N=typeof p?.zoom<"u"?p.zoom:b;return await E.setViewport({x:m/2-S*N,y:v/2-g*N,zoom:N},{duration:p?.duration,ease:p?.ease,interpolate:p?.interpolate}),!0},cancelConnection:()=>{h({connection:{...Ph}})},updateConnection:S=>{h({connection:S})},reset:()=>h({...C2()})}},Object.is);function Tg({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:a,initialWidth:o,initialHeight:r,initialMinZoom:i,initialMaxZoom:l,initialFitViewOptions:u,fitView:c,nodeOrigin:f,nodeExtent:d,zIndexMode:s,children:h}){let[y]=(0,O.useState)(()=>M8({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,width:o,height:r,fitView:c,minZoom:i,maxZoom:l,fitViewOptions:u,nodeOrigin:f,nodeExtent:d,zIndexMode:s}));return(0,A.jsx)(XD,{value:y,children:(0,A.jsx)(h6,{children:(0,A.jsx)(z6,{children:h})})})}function z8({children:e,nodes:t,edges:n,defaultNodes:a,defaultEdges:o,width:r,height:i,fitView:l,fitViewOptions:u,minZoom:c,maxZoom:f,nodeOrigin:d,nodeExtent:s,zIndexMode:h}){return(0,O.useContext)(cf)?(0,A.jsx)(A.Fragment,{children:e}):(0,A.jsx)(Tg,{initialNodes:t,initialEdges:n,defaultNodes:a,defaultEdges:o,initialWidth:r,initialHeight:i,fitView:l,initialFitViewOptions:u,initialMinZoom:c,initialMaxZoom:f,nodeOrigin:d,nodeExtent:s,zIndexMode:h,children:e})}var A8={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function O8({nodes:e,edges:t,defaultNodes:n,defaultEdges:a,className:o,nodeTypes:r,edgeTypes:i,onNodeClick:l,onEdgeClick:u,onInit:c,onMove:f,onMoveStart:d,onMoveEnd:s,onConnect:h,onConnectStart:y,onConnectEnd:x,onClickConnectStart:S,onClickConnectEnd:g,onNodeMouseEnter:p,onNodeMouseMove:m,onNodeMouseLeave:v,onNodeContextMenu:b,onNodeDoubleClick:E,onNodeDragStart:N,onNodeDrag:_,onNodeDragStop:T,onNodesDelete:D,onEdgesDelete:L,onDelete:k,onSelectionChange:U,onSelectionDragStart:w,onSelectionDrag:C,onSelectionDragStop:M,onSelectionContextMenu:z,onSelectionStart:R,onSelectionEnd:H,onBeforeDelete:G,connectionMode:q,connectionLineType:X=Dn.Bezier,connectionLineStyle:K,connectionLineComponent:Z,connectionLineContainerStyle:J,deleteKeyCode:re="Backspace",selectionKeyCode:j="Shift",selectionOnDrag:Y=!1,selectionMode:I=Xo.Full,panActivationKeyCode:ae="Space",multiSelectionKeyCode:te=fi()?"Meta":"Control",zoomActivationKeyCode:Q=fi()?"Meta":"Control",snapToGrid:P,snapGrid:ie,onlyRenderVisibleElements:ce=!1,selectNodesOnDrag:ge,nodesDraggable:Pe,autoPanOnNodeFocus:Hn,nodesConnectable:hn,nodesFocusable:gn,nodeOrigin:Bn=D2,edgesFocusable:pi,edgesReconnectable:to,elementsSelectable:no=!0,defaultViewport:nn=n6,minZoom:Ln=.5,maxZoom:Vn=2,translateExtent:ao=ii,preventScrolling:mf=!0,nodeExtent:hf,defaultMarkerColor:M_="#b1b1b7",zoomOnScroll:z_=!0,zoomOnPinch:A_=!0,panOnScroll:O_=!1,panOnScrollSpeed:D_=.5,panOnScrollMode:R_=ca.Free,zoomOnDoubleClick:H_=!0,panOnDrag:B_=!0,onPaneClick:L_,onPaneMouseEnter:V_,onPaneMouseMove:U_,onPaneMouseLeave:Y_,onPaneScroll:k_,onPaneContextMenu:q_,paneClickDistance:G_=1,nodeClickDistance:X_=0,children:Z_,onReconnect:$_,onReconnectStart:I_,onReconnectEnd:Q_,onEdgeContextMenu:j_,onEdgeDoubleClick:K_,onEdgeMouseEnter:J_,onEdgeMouseMove:F_,onEdgeMouseLeave:P_,reconnectRadius:W_=10,onNodesChange:eN,onEdgesChange:tN,noDragClassName:nN="nodrag",noWheelClassName:aN="nowheel",noPanClassName:Og="nopan",fitView:Dg,fitViewOptions:Rg,connectOnClick:oN,attributionPosition:rN,proOptions:iN,defaultEdgeOptions:lN,elevateNodesOnSelect:uN=!0,elevateEdgesOnSelect:cN=!1,disableKeyboardA11y:Hg=!1,autoPanOnConnect:sN,autoPanOnNodeDrag:fN,autoPanOnSelection:dN=!0,autoPanSpeed:mN,connectionRadius:hN,isValidConnection:gN,onError:pN,style:yN,id:Bg,nodeDragThreshold:vN,connectionDragThreshold:bN,viewport:xN,onViewportChange:SN,width:wN,height:EN,colorMode:_N="light",debug:NN,onScroll:Lg,ariaLabelConfig:TN,zIndexMode:Vg="basic",...CN},MN){let gf=Bg||"1",zN=i6(_N),AN=(0,O.useCallback)(Ug=>{Ug.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Lg?.(Ug)},[Lg]);return(0,A.jsx)("div",{"data-testid":"rf__wrapper",...CN,onScroll:AN,style:{...yN,...A8},ref:MN,className:Be(["react-flow",o,zN]),id:Bg,role:"application",children:(0,A.jsxs)(z8,{nodes:e,edges:t,width:wN,height:EN,fitView:Dg,fitViewOptions:Rg,minZoom:Ln,maxZoom:Vn,nodeOrigin:Bn,nodeExtent:hf,zIndexMode:Vg,children:[(0,A.jsx)(r6,{nodes:e,edges:t,defaultNodes:n,defaultEdges:a,onConnect:h,onConnectStart:y,onConnectEnd:x,onClickConnectStart:S,onClickConnectEnd:g,nodesDraggable:Pe,autoPanOnNodeFocus:Hn,nodesConnectable:hn,nodesFocusable:gn,edgesFocusable:pi,edgesReconnectable:to,elementsSelectable:no,elevateNodesOnSelect:uN,elevateEdgesOnSelect:cN,minZoom:Ln,maxZoom:Vn,nodeExtent:hf,onNodesChange:eN,onEdgesChange:tN,snapToGrid:P,snapGrid:ie,connectionMode:q,translateExtent:ao,connectOnClick:oN,defaultEdgeOptions:lN,fitView:Dg,fitViewOptions:Rg,onNodesDelete:D,onEdgesDelete:L,onDelete:k,onNodeDragStart:N,onNodeDrag:_,onNodeDragStop:T,onSelectionDrag:C,onSelectionDragStart:w,onSelectionDragStop:M,onMove:f,onMoveStart:d,onMoveEnd:s,noPanClassName:Og,nodeOrigin:Bn,rfId:gf,autoPanOnConnect:sN,autoPanOnNodeDrag:fN,autoPanSpeed:mN,onError:pN,connectionRadius:hN,isValidConnection:gN,selectNodesOnDrag:ge,nodeDragThreshold:vN,connectionDragThreshold:bN,onBeforeDelete:G,debug:NN,ariaLabelConfig:TN,zIndexMode:Vg}),(0,A.jsx)(T8,{onInit:c,onNodeClick:l,onEdgeClick:u,onNodeMouseEnter:p,onNodeMouseMove:m,onNodeMouseLeave:v,onNodeContextMenu:b,onNodeDoubleClick:E,nodeTypes:r,edgeTypes:i,connectionLineType:X,connectionLineStyle:K,connectionLineComponent:Z,connectionLineContainerStyle:J,selectionKeyCode:j,selectionOnDrag:Y,selectionMode:I,deleteKeyCode:re,multiSelectionKeyCode:te,panActivationKeyCode:ae,zoomActivationKeyCode:Q,onlyRenderVisibleElements:ce,defaultViewport:nn,translateExtent:ao,minZoom:Ln,maxZoom:Vn,preventScrolling:mf,zoomOnScroll:z_,zoomOnPinch:A_,zoomOnDoubleClick:H_,panOnScroll:O_,panOnScrollSpeed:D_,panOnScrollMode:R_,panOnDrag:B_,autoPanOnSelection:dN,onPaneClick:L_,onPaneMouseEnter:V_,onPaneMouseMove:U_,onPaneMouseLeave:Y_,onPaneScroll:k_,onPaneContextMenu:q_,paneClickDistance:G_,nodeClickDistance:X_,onSelectionContextMenu:z,onSelectionStart:R,onSelectionEnd:H,onReconnect:$_,onReconnectStart:I_,onReconnectEnd:Q_,onEdgeContextMenu:j_,onEdgeDoubleClick:K_,onEdgeMouseEnter:J_,onEdgeMouseMove:F_,onEdgeMouseLeave:P_,reconnectRadius:W_,defaultMarkerColor:M_,noDragClassName:nN,noWheelClassName:aN,noPanClassName:Og,rfId:gf,disableKeyboardA11y:Hg,nodeExtent:hf,viewport:xN,onViewportChange:SN,nodesDraggable:Pe}),(0,A.jsx)(t6,{onSelectionChange:U}),Z_,(0,A.jsx)(JD,{proOptions:iN,position:rN}),(0,A.jsx)(KD,{rfId:gf,disableKeyboardA11y:Hg})]})})}var i_=H2(O8);var HU=kt.error014();function D8({dimensions:e,lineWidth:t,variant:n,className:a}){return(0,A.jsx)("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Be(["react-flow__background-pattern",n,a])})}function R8({radius:e,className:t}){return(0,A.jsx)("circle",{cx:e,cy:e,r:e,className:Be(["react-flow__background-pattern","dots",t])})}var Rn;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Rn||(Rn={}));var H8={[Rn.Dots]:1,[Rn.Lines]:1,[Rn.Cross]:6},B8=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function l_({id:e,variant:t=Rn.Dots,gap:n=20,size:a,lineWidth:o=1,offset:r=0,color:i,bgColor:l,style:u,className:c,patternClassName:f}){let d=(0,O.useRef)(null),{transform:s,patternId:h}=fe(B8,Ae),y=a||H8[t],x=t===Rn.Dots,S=t===Rn.Cross,g=Array.isArray(n)?n:[n,n],p=[g[0]*s[2]||1,g[1]*s[2]||1],m=y*s[2],v=Array.isArray(r)?r:[r,r],b=S?[m,m]:p,E=[v[0]*s[2]+b[0]/2,v[1]*s[2]+b[1]/2],N=`${h}${e||""}`;return(0,A.jsxs)("svg",{className:Be(["react-flow__background",c]),style:{...u,...ff,"--xy-background-color-props":l,"--xy-background-pattern-color-props":i},ref:d,"data-testid":"rf__background",children:[(0,A.jsx)("pattern",{id:N,x:s[0]%p[0],y:s[1]%p[1],width:p[0],height:p[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${E[0]},-${E[1]})`,children:x?(0,A.jsx)(R8,{radius:m/2,className:f}):(0,A.jsx)(D8,{dimensions:b,lineWidth:o,variant:t,className:f})}),(0,A.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${N})`})]})}l_.displayName="Background";var u_=(0,O.memo)(l_);function L8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,A.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function V8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,A.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function U8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,A.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 Y8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,A.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 k8(){return(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,A.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 Wa({children:e,className:t,...n}){return(0,A.jsx)("button",{type:"button",className:Be(["react-flow__controls-button",t]),...n,children:e})}var q8=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function c_({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:a=!0,fitViewOptions:o,onZoomIn:r,onZoomOut:i,onFitView:l,onInteractiveChange:u,className:c,children:f,position:d="bottom-left",orientation:s="vertical","aria-label":h}){let y=Ce(),{isInteractive:x,minZoomReached:S,maxZoomReached:g,ariaLabelConfig:p}=fe(q8,Ae),{zoomIn:m,zoomOut:v,fitView:b}=Wl(),E=()=>{m(),r?.()},N=()=>{v(),i?.()},_=()=>{b(o),l?.()},T=()=>{y.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),u?.(!x)};return(0,A.jsxs)(sf,{className:Be(["react-flow__controls",s==="horizontal"?"horizontal":"vertical",c]),position:d,style:e,"data-testid":"rf__controls","aria-label":h??p["controls.ariaLabel"],children:[t&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Wa,{onClick:E,className:"react-flow__controls-zoomin",title:p["controls.zoomIn.ariaLabel"],"aria-label":p["controls.zoomIn.ariaLabel"],disabled:g,children:(0,A.jsx)(L8,{})}),(0,A.jsx)(Wa,{onClick:N,className:"react-flow__controls-zoomout",title:p["controls.zoomOut.ariaLabel"],"aria-label":p["controls.zoomOut.ariaLabel"],disabled:S,children:(0,A.jsx)(V8,{})})]}),n&&(0,A.jsx)(Wa,{className:"react-flow__controls-fitview",onClick:_,title:p["controls.fitView.ariaLabel"],"aria-label":p["controls.fitView.ariaLabel"],children:(0,A.jsx)(U8,{})}),a&&(0,A.jsx)(Wa,{className:"react-flow__controls-interactive",onClick:T,title:p["controls.interactive.ariaLabel"],"aria-label":p["controls.interactive.ariaLabel"],children:x?(0,A.jsx)(k8,{}):(0,A.jsx)(Y8,{})}),f]})}c_.displayName="Controls";var s_=(0,O.memo)(c_);function G8({id:e,x:t,y:n,width:a,height:o,style:r,color:i,strokeColor:l,strokeWidth:u,className:c,borderRadius:f,shapeRendering:d,selected:s,onClick:h}){let{background:y,backgroundColor:x}=r||{},S=i||y||x;return(0,A.jsx)("rect",{className:Be(["react-flow__minimap-node",{selected:s},c]),x:t,y:n,rx:f,ry:f,width:a,height:o,style:{fill:S,stroke:l,strokeWidth:u},shapeRendering:d,onClick:h?g=>h(g,e):void 0})}var X8=(0,O.memo)(G8),Z8=e=>e.nodes.map(t=>t.id),wg=e=>e instanceof Function?e:()=>e;function $8({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:a=5,nodeStrokeWidth:o,nodeComponent:r=X8,onClick:i}){let l=fe(Z8,Ae),u=wg(t),c=wg(e),f=wg(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return(0,A.jsx)(A.Fragment,{children:l.map(s=>(0,A.jsx)(Q8,{id:s,nodeColorFunc:u,nodeStrokeColorFunc:c,nodeClassNameFunc:f,nodeBorderRadius:a,nodeStrokeWidth:o,NodeComponent:r,onClick:i,shapeRendering:d},s))})}function I8({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:a,nodeBorderRadius:o,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:l,onClick:u}){let{node:c,x:f,y:d,width:s,height:h}=fe(y=>{let x=y.nodeLookup.get(e);if(!x)return{node:void 0,x:0,y:0,width:0,height:0};let S=x.internals.userNode,{x:g,y:p}=x.internals.positionAbsolute,{width:m,height:v}=tn(S);return{node:S,x:g,y:p,width:m,height:v}},Ae);return!c||c.hidden||!ig(c)?null:(0,A.jsx)(l,{x:f,y:d,width:s,height:h,style:c.style,selected:!!c.selected,className:a(c),color:t(c),borderRadius:o,strokeColor:n(c),strokeWidth:r,shapeRendering:i,onClick:u,id:c.id})}var Q8=(0,O.memo)(I8),j8=(0,O.memo)($8),K8=200,J8=150,F8=e=>!e.hidden,P8=e=>{let 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]},n=!1;for(let a of e.nodeLookup.values())if(!a.hidden){n=!0;break}return{viewBB:t,boundingRect:n?ag(li(e.nodeLookup,{filter:F8}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},M2=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,W8=(e,t)=>M2(e.viewBB,t.viewBB)&&M2(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,eR="react-flow__minimap-desc";function f_({style:e,className:t,nodeStrokeColor:n,nodeColor:a,nodeClassName:o="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:l,bgColor:u,maskColor:c,maskStrokeColor:f,maskStrokeWidth:d,position:s="bottom-right",onClick:h,onNodeClick:y,pannable:x=!1,zoomable:S=!1,ariaLabel:g,inversePan:p,zoomStep:m=1,offsetScale:v=5}){let b=Ce(),E=(0,O.useRef)(null),{boundingRect:N,panZoom:_,viewBB:T,rfId:D,translateExtent:L,flowWidth:k,flowHeight:U,ariaLabelConfig:w}=fe(P8,W8),C=e?.width??K8,M=e?.height??J8,z=N.width/C,R=N.height/M,H=Math.max(z,R),G=H*C,q=H*M,X=v*H,K=N.x-(G-N.width)/2-X,Z=N.y-(q-N.height)/2-X,J=G+X*2,re=q+X*2,j=`${eR}-${D}`,Y=(0,O.useRef)(0),I=(0,O.useRef)();Y.current=H,(0,O.useEffect)(()=>{let ie=b.getState().panZoom;if(E.current&&ie)return I.current=VE({domNode:E.current,panZoom:ie,getTransform:()=>b.getState().transform,getViewScale:()=>Y.current}),()=>{I.current?.destroy()}},[_]),(0,O.useEffect)(()=>{I.current?.update({translateExtent:L,width:k,height:U,inversePan:p,pannable:x,zoomStep:m,zoomable:S})},[x,S,p,m,L,k,U]);let ae=h?ie=>{let[ce,ge]=I.current?.pointer(ie)||[0,0];h(ie,{x:ce,y:ge})}:void 0,te=(0,O.useCallback)((ie,ce)=>{let ge=b.getState().nodeLookup.get(ce).internals.userNode;y?.(ie,ge)},[y]),Q=y?te:void 0,P=g??w["minimap.ariaLabel"];return(0,A.jsx)(sf,{position:s,style:{...e,"--xy-minimap-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*H:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof i=="number"?i:void 0},className:Be(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:(0,A.jsxs)("svg",{width:C,height:M,viewBox:`${K} ${Z} ${J} ${re}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":j,ref:E,onClick:ae,children:[P&&(0,A.jsx)("title",{id:j,children:P}),(0,A.jsx)(j8,{onClick:Q,nodeColor:a,nodeStrokeColor:n,nodeBorderRadius:r,nodeClassName:o,nodeStrokeWidth:i,nodeComponent:l}),(0,A.jsx)("path",{className:"react-flow__minimap-mask",d:`M${K-X},${Z-X}h${J+X*2}v${re+X*2}h${-J-X*2}z
|
|
554
|
+
M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}f_.displayName="MiniMap";var d_=(0,O.memo)(f_),tR=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,nR={[Pa.Line]:"right",[Pa.Handle]:"bottom-right"};function aR({nodeId:e,position:t,variant:n=Pa.Handle,className:a,style:o=void 0,children:r,color:i,minWidth:l=10,minHeight:u=10,maxWidth:c=Number.MAX_VALUE,maxHeight:f=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:s,autoScale:h=!0,shouldResize:y,onResizeStart:x,onResize:S,onResizeEnd:g}){let p=Y2(),m=typeof e=="string"?e:p,v=Ce(),b=(0,O.useRef)(null),E=n===Pa.Handle,N=fe((0,O.useCallback)(tR(E&&h),[E,h]),Ae),_=(0,O.useRef)(null),T=t??nR[n];(0,O.useEffect)(()=>{if(!(!b.current||!m))return _.current||(_.current=GE({domNode:b.current,nodeId:m,getStoreItems:()=>{let{nodeLookup:L,transform:k,snapGrid:U,snapToGrid:w,nodeOrigin:C,domNode:M}=v.getState();return{nodeLookup:L,transform:k,snapGrid:U,snapToGrid:w,nodeOrigin:C,paneDomNode:M}},onChange:(L,k)=>{let{triggerNodeChanges:U,nodeLookup:w,parentLookup:C,nodeOrigin:M}=v.getState(),z=[],R={x:L.x,y:L.y},H=w.get(m);if(H&&H.expandParent&&H.parentId){let G=H.origin??M,q=L.width??H.measured.width??0,X=L.height??H.measured.height??0,K={id:H.id,parentId:H.parentId,rect:{width:q,height:X,...lg({x:L.x??H.position.x,y:L.y??H.position.y},{width:q,height:X},H.parentId,w,G)}},Z=nf([K],w,C,M);z.push(...Z),R.x=L.x?Math.max(G[0]*q,L.x):void 0,R.y=L.y?Math.max(G[1]*X,L.y):void 0}if(R.x!==void 0&&R.y!==void 0){let G={id:m,type:"position",position:{...R}};z.push(G)}if(L.width!==void 0&&L.height!==void 0){let q={id:m,type:"dimensions",resizing:!0,setAttributes:s?s==="horizontal"?"width":"height":!0,dimensions:{width:L.width,height:L.height}};z.push(q)}for(let G of k){let q={...G,type:"position"};z.push(q)}U(z)},onEnd:({width:L,height:k})=>{let U={id:m,type:"dimensions",resizing:!1,dimensions:{width:L,height:k}};v.getState().triggerNodeChanges([U])}})),_.current.update({controlPosition:T,boundaries:{minWidth:l,minHeight:u,maxWidth:c,maxHeight:f},keepAspectRatio:d,resizeDirection:s,onResizeStart:x,onResize:S,onResizeEnd:g,shouldResize:y}),()=>{_.current?.destroy()}},[T,l,u,c,f,d,x,S,g,y]);let D=T.split("-");return(0,A.jsx)("div",{className:Be(["react-flow__resize-control","nodrag",...D,n,a]),ref:b,style:{...o,scale:N,...i&&{[E?"backgroundColor":"borderColor"]:i}},children:r})}var BU=(0,O.memo)(aR);var Fe=an(da(),1);var eu=e=>Math.round(e*10)/10;var m_=(e,t,n,a,o,r)=>{let i=(s,h)=>`${eu(s)},${eu(h)}`;if(Math.abs(t-a)<.6)return`M${i(e,t)} L${i(o,a)}`;let l=n>=e?1:-1,u=o>=n?1:-1,c=a>t?1:-1,f=Math.min(r,Math.abs(n-e),Math.abs(a-t)/2),d=Math.min(r,Math.abs(o-n),Math.abs(a-t)/2);return[`M${i(e,t)}`,`L${i(n-l*f,t)}`,`Q${i(n,t)} ${i(n,t+c*f)}`,`L${i(n,a-c*d)}`,`Q${i(n,a)} ${i(n+u*d,a)}`,`L${i(o,a)}`].join(" ")};var oR=["string","number","bool","json","timestamp"];var QU=`pk / fk(<table>) / fk[](<table>) / enum("a"|"b") / ${oR.join(" / ")}`;var h_=(e,t)=>{let n=new Map(e.map(a=>[a.name,a]));return t.map(a=>{let o=n.get(a.from),r=n.get(a.to),i=o!=null&&r!=null&&r.x+r.w/2>=o.x+o.w/2;return{id:`${a.from}.${a.field}-${a.fieldIndex}\u2192${a.to}`,from:a.from,to:a.to,fieldIndex:a.fieldIndex,list:a.list,sourceSide:i?"r":"l",targetSide:i?"l":"r"}})},Mt={headerH:26,rowH:19,padX:11,padBottom:9,gapNameType:18,minW:158,gapY:22,gapInnerX:30,gapGroupX:108,gapGroupY:40,framePad:14,frameLabelH:22,maxColH:1020,lane:10,corner:7,margin:16,legendH:24,radius:10,baselineDrop:4},jU=Mt.margin,KU=Mt.gapGroupY,JU=Mt.frameLabelH,FU=Mt.framePad;var rR=(e,t)=>{let n=i=>`${eu(i.x)},${eu(i.y)}`,a=e[0],o=e[e.length-1];if(a==null||o==null)return"";let r=[`M${n(a)}`];for(let i=1;i<e.length-1;i+=1){let l=e[i-1],u=e[i],c=e[i+1];if(l==null||u==null||c==null)continue;let f=Math.sign(u.x-l.x),d=Math.sign(u.y-l.y),s=Math.sign(c.x-u.x),h=Math.sign(c.y-u.y),y=Math.abs(u.x-l.x)+Math.abs(u.y-l.y),x=Math.abs(c.x-u.x)+Math.abs(c.y-u.y),S=Math.min(t,y/2,x/2),g={x:u.x-f*S,y:u.y-d*S},p={x:u.x+s*S,y:u.y+h*S};r.push(`L${n(g)}`,`Q${n(u)} ${n(p)}`)}return r.push(`L${n(o)}`),r.join(" ")};var iR=(e,t)=>{let n=new Map(e.map(b=>[b.name,b.index])),a=new Map(e.map(b=>[b.index,b])),o=new Map;for(let b of e)o.set(b.x,Math.max(o.get(b.x)??0,b.x+b.w));let r=[...o.keys()].sort((b,E)=>b-E),i=new Map(r.map((b,E)=>[b,E])),l=b=>{let E=o.get(b)??b,N=r.find(_=>_>b);return[E,N??E+Mt.gapInnerX]},u=b=>{let E=r.filter(_=>_<b),N=E[E.length-1];return[N==null?b-Mt.gapInnerX:o.get(N)??b,b]},c=([b,E])=>(b+E)/2,f=([b,E])=>Math.max(0,Math.min(12,(E-b)/2-6)),d=[];for(let b of t){let E=n.get(b.from),N=n.get(b.to);if(E==null||N==null)continue;let _=a.get(E),T=a.get(N);if(_==null||T==null)continue;let L=_.rows.find(R=>R.fieldIndex===b.fieldIndex)?.y??_.y+_.headerH/2,k=T.x>=_.x+_.w,U=!k&&T.x+T.w>_.x,w=k||U?l(_.x):u(_.x),C=k?u(T.x):l(T.x),M=i.get(_.x)??0,z=i.get(T.x)??0;d.push({edge:b,from:E,to:N,sx:k||U?_.x+_.w:_.x,sy:L,tx:k?T.x:T.x+T.w,side:k?"l":"r",bundle:`${N}:${k?"l":"r"}:${_.x}`,base:c(w),room:f(w),long:Math.abs(M-z)>1,targetBase:c(C)})}let s=new Map;for(let b of d){let E=s.get(b.bundle);E?E.push(b):s.set(b.bundle,[b])}let h=new Map,y=new Map;for(let[b,E]of s){let N=E[0];if(N==null)continue;let _=`${Math.round(N.base)}`,T=y.get(_);T?T.push(b):y.set(_,[b])}for(let b of y.values())b.forEach((E,N)=>{let _=s.get(E)?.[0];if(_==null)return;let T=b.length<=1?0:Math.min(Mt.lane,_.room*2/(b.length-1)||0);h.set(E,_.base+(N-(b.length-1)/2)*T)});let x=new Map,S=new Map;for(let[b,E]of s){let N=E[0];if(N==null)continue;let _=`${N.to}:${N.side}`,T=S.get(_);T?T.push(b):S.set(_,[b])}for(let b of S.values())b.forEach((E,N)=>{let _=s.get(E)?.[0],T=_==null?void 0:a.get(_.to);if(T==null)return;let D=Math.min(6,(T.h-Mt.headerH)/Math.max(1,b.length));x.set(E,T.y+T.headerH/2+(N-(b.length-1)/2)*D)});let g=e.reduce((b,E)=>Math.max(b,E.y+E.h),0),p=new Map,m=[...s.entries()].filter(([,b])=>b[0]?.long===!0);m.forEach(([b],E)=>{p.set(b,g+Mt.gapY+E*Mt.lane)});let v=m.length===0?g:g+Mt.gapY+(m.length-1)*Mt.lane;return{edges:d.map(b=>{let E=h.get(b.bundle)??b.base,N=x.get(b.bundle)??b.sy,_=p.get(b.bundle);return{from:b.from,to:b.to,fieldIndex:b.edge.fieldIndex,list:b.edge.list,d:_==null?m_(b.sx,b.sy,E,N,b.tx,Mt.corner):rR([{x:b.sx,y:b.sy},{x:E,y:b.sy},{x:E,y:_},{x:b.targetBase,y:_},{x:b.targetBase,y:N},{x:b.tx,y:N}],Mt.corner)}}),bottom:v}},g_=(e,t)=>iR(e,t).edges;var W=an(Pr(),1),Cg="docs:sg:",df=14,tu="var(--doc-fg, #000000)",b_="var(--doc-fg-2, #2a3140)",au="var(--doc-fg-3, #5b6271)",x_="var(--doc-fg-4, #9099a8)",eo="var(--doc-border, #dde3eb)",Mg="var(--doc-panel, #ffffff)",gi="var(--doc-accent-2, #0277bd)",lR="var(--doc-accent, #1b4994)",nu="ui-monospace,SFMono-Regular,Menlo,Consolas,monospace",uR=e=>{try{let t=window.localStorage.getItem(`${Cg}${e}`);return t==null?{}:JSON.parse(t)}catch{return{}}},p_=(e,t)=>{try{if(Object.keys(t).length===0){window.localStorage.removeItem(`${Cg}${e}`);return}window.localStorage.setItem(`${Cg}${e}`,JSON.stringify(t))}catch{}},cR=({id:e,data:t,style:n,markerEnd:a,interactionWidth:o})=>(0,W.jsx)(hi,{id:e,path:t?.path??"",style:n,markerEnd:a,interactionWidth:o}),sR=e=>({fontSize:10.5,color:e==="pk"?gi:e==="scalar"?au:lR,whiteSpace:"nowrap"}),fR=({data:e,selected:t})=>{let{box:n,dim:a}=e;return(0,W.jsxs)("div",{style:{width:n.w,minHeight:n.h,fontFamily:nu,background:Mg,border:`1px solid ${t?gi:eo}`,borderRadius:10,boxShadow:t?`0 0 0 1px ${gi}`:"none",opacity:a?.45:1,overflow:"hidden",cursor:"grab"},children:[(0,W.jsx)("div",{style:{height:n.headerH,lineHeight:`${n.headerH}px`,padding:"0 11px",fontSize:12.5,color:tu,background:`color-mix(in srgb, ${gi} 10%, transparent)`,borderBottom:`1px solid ${eo}`},children:n.name}),n.rows.map(o=>o.kind==="note"?(0,W.jsx)("div",{style:{padding:"0 11px",fontSize:10.5,lineHeight:"19px",color:x_},children:o.label},`n:${o.label}`):(0,W.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",gap:14,padding:"0 11px",lineHeight:"19px"},children:[(0,W.jsx)("span",{style:{fontSize:11.5,color:b_,whiteSpace:"nowrap"},children:o.label}),(0,W.jsx)("span",{style:sR(o.kind),children:o.type})]},`f:${o.label}`)),n.rows.filter(o=>o.fieldIndex!=null&&(o.kind==="fk"||o.kind==="fkList")).flatMap(o=>[(0,W.jsx)(sa,{id:`f${o.fieldIndex}r`,type:"source",position:$.Right,style:{top:o.dy,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1},`sr${o.fieldIndex}`),(0,W.jsx)(sa,{id:`f${o.fieldIndex}l`,type:"source",position:$.Left,style:{top:o.dy,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1},`sl${o.fieldIndex}`)]),(0,W.jsx)(sa,{id:"tl",type:"target",position:$.Left,style:{top:n.headerH/2,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1}),(0,W.jsx)(sa,{id:"tr",type:"target",position:$.Right,style:{top:n.headerH/2,opacity:0,width:1,height:1,minWidth:1},isConnectable:!1})]})},dR=({data:e,width:t,height:n})=>(0,W.jsxs)("div",{style:{width:t,height:n,position:"relative",pointerEvents:"none"},children:[(0,W.jsx)("div",{style:{position:"absolute",inset:0,border:`1px dashed ${eo}`,borderRadius:14,background:`color-mix(in srgb, ${tu} 3%, transparent)`}}),(0,W.jsx)("div",{style:{position:"absolute",top:-18,left:4,fontFamily:nu,fontSize:11.5,color:au},children:e.label})]}),mR={sgTable:fR,sgFrame:dR},hR={sgPath:cR},gR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M4 4h7v2H6v5H4V4zm9 0h7v7h-2V6h-5V4zM4 13h2v5h5v2H4v-7zm14 0h2v7h-7v-2h5v-5z"})}),pR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M6 10h5V5H9v3H6v2zm7-5v5h5V8h-3V5h-2zM6 14v2h3v3h2v-5H6zm7 0v5h2v-3h3v-2h-5z"})}),yR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M12 5V2L7 6l5 4V7a5 5 0 1 1-5 5H5a7 7 0 1 0 7-7z"})}),vR=()=>(0,W.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",children:(0,W.jsx)("path",{fill:"currentColor",d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})}),y_={font:"inherit",fontSize:11,fontFamily:nu,color:au,background:"transparent",border:`1px solid ${eo}`,borderRadius:6,padding:"2px 8px",cursor:"pointer"},bR=({source:e,onClose:t})=>{let[n,a]=(0,Fe.useState)(!1),o=(0,Fe.useCallback)(()=>{navigator.clipboard?.writeText(e).then(()=>{a(!0),window.setTimeout(()=>a(!1),1200)}).catch(()=>{})},[e]);return(0,W.jsxs)("div",{style:{position:"absolute",inset:0,zIndex:6,background:Mg,display:"flex",flexDirection:"column"},children:[(0,W.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"6px 10px",borderBottom:`1px solid ${eo}`},children:[(0,W.jsx)("span",{style:{fontFamily:nu,fontSize:11,color:au},children:"table DSL"}),(0,W.jsx)("span",{style:{flex:1}}),(0,W.jsx)("button",{type:"button",onClick:o,style:y_,title:"copy",children:n?"copied":"copy"}),(0,W.jsx)("button",{type:"button",onClick:t,style:y_,title:"Back to graph (Esc)",children:"graph"})]}),(0,W.jsx)("pre",{style:{margin:0,flex:1,overflow:"auto",padding:"12px 14px",fontFamily:nu,fontSize:12,lineHeight:1.65,color:b_,whiteSpace:"pre"},children:e})]})},S_=(e,t)=>{let n=e.filter(o=>o.type==="sgTable"),a=new Map(n.map(o=>[o.id,o]));return e.map(o=>{if(o.type!=="sgFrame")return o;let r=t.groups[Number(o.id.slice(6))],i=(r?.members??[]).map(u=>a.get(u)).filter(u=>u!=null);if(r==null||i.length===0)return o;let l=i.reduce((u,c)=>({x1:Math.min(u.x1,c.position.x),y1:Math.min(u.y1,c.position.y),x2:Math.max(u.x2,c.position.x+c.data.box.w),y2:Math.max(u.y2,c.position.y+c.data.box.h)}),{x1:Number.POSITIVE_INFINITY,y1:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY});return{...o,position:{x:l.x1-df,y:l.y1-df},width:l.x2-l.x1+df*2,height:l.y2-l.y1+df*2}})},v_=(e,t)=>{let n=e.groups.map((o,r)=>({id:`frame:${r}`,type:"sgFrame",position:{x:o.x,y:o.y},width:o.w,height:o.h,data:{label:o.label},draggable:!1,selectable:!1,focusable:!1,zIndex:-1})),a=e.nodes.map(o=>{let r=t[o.name];return{id:o.name,type:"sgTable",position:r==null?{x:o.x,y:o.y}:{x:r[0],y:r[1]},data:{box:o,dim:!1}}});return S_([...n,...a],e)},xR=({data:e,height:t})=>{let{fitView:n}=Wl(),[a,o]=(0,Fe.useState)(()=>v_(e,uR(e.uid))),[r,i]=(0,Fe.useState)(null),[l,u]=(0,Fe.useState)(!1),[c,f]=(0,Fe.useState)(!1),d=(0,Fe.useCallback)(g=>{o(p=>S_(_g(g,p),e))},[e]);(0,Fe.useEffect)(()=>{o(g=>{let p=new Set;if(r!=null){p.add(r);for(let m of e.edges)m.from===r&&p.add(m.to),m.to===r&&p.add(m.from)}return g.map(m=>{if(m.type!=="sgTable")return m;let v=r!=null&&!p.has(m.id);return v===m.data.dim?m:{...m,data:{...m.data,dim:v}}})})},[r,e.edges]);let s=(0,Fe.useMemo)(()=>{let p=a.filter(v=>v.type==="sgTable").map(v=>({name:v.id,index:v.data.box.index,x:v.position.x,y:v.position.y,w:v.data.box.w,h:v.data.box.h,headerH:v.data.box.headerH,rows:v.data.box.rows.map(b=>({y:v.position.y+b.dy,fieldIndex:b.fieldIndex}))})),m=g_(p,e.edges);return h_(p,e.edges).map((v,b)=>{let E=r!=null&&(v.from===r||v.to===r);return{id:v.id,source:v.from,target:v.to,sourceHandle:`f${v.fieldIndex}${v.sourceSide}`,targetHandle:v.targetSide==="l"?"tl":"tr",type:"sgPath",data:{path:m[b]?.d??""},markerEnd:{type:Ja.ArrowClosed,width:14,height:14,color:E?gi:au},style:{stroke:E?gi:`color-mix(in srgb, ${tu} 30%, transparent)`,strokeWidth:E?1.8:1.2,strokeDasharray:v.list?"5 4":void 0,opacity:r==null||E?1:.12},zIndex:E?1:0}})},[a,e.edges,r]),h=(0,Fe.useCallback)(()=>{o(g=>{let p={};for(let m of g)m.type==="sgTable"&&(p[m.id]=[Math.round(m.position.x),Math.round(m.position.y)]);return p_(e.uid,p),g})},[e.uid]),y=(0,Fe.useMemo)(()=>l?{padding:.04,minZoom:.3,maxZoom:1.4,duration:150}:{padding:.06,minZoom:.55,maxZoom:1,duration:150},[l]),x=(0,Fe.useCallback)(()=>{p_(e.uid,{}),o(v_(e,{})),window.setTimeout(()=>n(y),0)},[e,n,y]);(0,Fe.useEffect)(()=>{if(!l&&!c)return;let g=p=>{if(p.key==="Escape"){if(c){f(!1);return}u(!1)}};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[l,c]),(0,Fe.useEffect)(()=>{let g=window.setTimeout(()=>n(y),l?60:20);return()=>window.clearTimeout(g)},[l,n,y]);let S=l?{position:"fixed",inset:0,zIndex:9998,background:"var(--doc-bg, #ffffff)"}:{position:"relative",width:"100%",height:t??"min(62vh, 520px)",border:`1px solid ${eo}`,borderRadius:10,overflow:"hidden"};return(0,W.jsxs)("div",{style:S,children:[c&&e.source!=null?(0,W.jsx)(bR,{source:e.source,onClose:()=>f(!1)}):null,(0,W.jsxs)(i_,{nodes:a,edges:s,nodeTypes:mR,edgeTypes:hR,onNodesChange:d,onNodeDragStop:h,onNodeMouseEnter:(g,p)=>i(p.type==="sgTable"?p.id:null),onNodeMouseLeave:()=>i(null),fitView:!0,fitViewOptions:y,minZoom:.1,maxZoom:4,nodesConnectable:!1,edgesFocusable:!1,proOptions:{hideAttribution:!0},style:{background:"transparent"},children:[(0,W.jsx)(u_,{variant:Rn.Dots,gap:22,size:1,color:x_}),(0,W.jsxs)(s_,{showInteractive:!1,children:[(0,W.jsx)(Wa,{onClick:()=>u(g=>!g),title:l?"Close expanded view (Esc)":"Expand view",children:l?(0,W.jsx)(pR,{}):(0,W.jsx)(gR,{})}),(0,W.jsx)(Wa,{onClick:x,title:"Reset layout",children:(0,W.jsx)(yR,{})}),e.source==null?null:(0,W.jsx)(Wa,{onClick:()=>f(!0),title:"Show raw tables (DSL)",children:(0,W.jsx)(vR,{})})]}),(0,W.jsx)(d_,{pannable:!0,zoomable:!0,nodeStrokeWidth:2,bgColor:Mg,maskColor:`color-mix(in srgb, ${tu} 8%, transparent)`,nodeColor:`color-mix(in srgb, ${tu} 22%, transparent)`,nodeStrokeColor:eo,style:{width:150,height:96,border:`1px solid ${eo}`,borderRadius:6}})]})]})},w_=e=>(0,W.jsx)(Tg,{children:(0,W.jsx)(xR,{...e})});var T_=an(Pr(),1),zg="sgMounted",__=e=>{let t=e.dataset.sgLayout;if(t==null||e.dataset[zg]==="1")return;let n;try{n=JSON.parse(t)}catch{return}if(n.nodes.length===0)return;e.dataset[zg]="1",aS(e.ownerDocument);let a=e.ownerDocument.createElement("div");a.className="doc-sg-flow",e.parentElement?.insertBefore(a,e),e.style.display="none";let o=(0,E_.createRoot)(a);return o.render((0,T_.jsx)(w_,{data:n})),()=>{o?.unmount(),o=void 0,a.remove(),e.style.removeProperty("display"),delete e.dataset[zg]}},N_=(e=document)=>{let t=[];for(let n of e.querySelectorAll("svg[data-sg-layout]")){let a=__(n);a!=null&&t.push(a)}return()=>{for(let n of t)n()}},Ag=(e=document)=>{let t=new Map,n=new Set,a=new IntersectionObserver(i=>{for(let l of i){if(!l.isIntersecting)continue;let u=l.target;if(a.unobserve(u),n.delete(u),!e.contains(u))continue;let c=__(u);c&&t.set(u,c)}},{rootMargin:"200px"}),o=i=>{let l=[...i.querySelectorAll("svg[data-sg-layout]")];i instanceof SVGSVGElement&&i.matches("svg[data-sg-layout]")&&l.unshift(i);for(let u of l)t.has(u)||n.has(u)||(n.add(u),a.observe(u))};o(e);let r=new MutationObserver(i=>{for(let l of n)e.contains(l)||(n.delete(l),a.unobserve(l));for(let[l,u]of t)e.contains(l)||(u(),t.delete(l));for(let l of i)for(let u of l.addedNodes)u instanceof Element&&e.contains(u)&&o(u)});return r.observe(e instanceof Document?e.body??e:e,{childList:!0,subtree:!0}),()=>{r.disconnect(),a.disconnect(),n.clear();for(let i of t.values())i();t.clear()}};var C_=()=>{let e=document.querySelector("main")??document;Ag(e),H0(e)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",C_,{once:!0}):C_();window.docsSchemaGraph={mount:N_,watch:Ag};export{N_ as mountSchemaGraphs,Ag as watchSchemaGraphs};
|
|
555
555
|
/*! Bundled license information:
|
|
556
556
|
|
|
557
557
|
scheduler/cjs/scheduler.production.js:
|